ModelRegistry
public struct ModelRegistry
Warning
Although this haspublic
access, it is intended for internal use and should not be used directly
by host applications. The behavior of this may change without warning.
-
Declaration
Swift
public static var models: [Model.Type] { get }
-
Declaration
Swift
public static var modelSchemas: [ModelSchema] { get }
-
Declaration
Swift
public static func register(modelType: Model.Type)
-
Declaration
Swift
public static func register(modelType: Model.Type, modelSchema: ModelSchema, jsonDecoder: @escaping (String, JSONDecoder?) throws -> Model)
-
Declaration
Swift
public static func modelSchema(from modelType: Model.Type) -> ModelSchema?
-
Declaration
Swift
public static func modelSchema(from name: ModelName) -> ModelSchema?
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
static var hasSyncableModels: Bool { get }