DefaultModelIdentifier
extension DefaultModelIdentifier
-
Factory to instantiate a
DefaultModelIdentifier
.Declaration
Swift
public static func makeDefault(id: String) -> ModelIdentifier<M, ModelIdentifierFormat.Default>
Parameters
id
model id value
Return Value
an instance of
ModelIdentifier
for the given model type -
Convenience factory to instantiate a
DefaultModelIdentifier
from a given modelDeclaration
Swift
public static func makeDefault(fromModel model: M) -> ModelIdentifier<M, ModelIdentifierFormat.Default>
Parameters
model
model
Return Value
an instance of
ModelIdentifier
for the given model type