Persistable
public protocol Persistable : JSONDecodable, JSONEncodable
Protocol that turns a NSObject into a persistable class to be used in a DataStore
.
-
Provides the collection name to be matched with the backend.
Declaration
Swift
static func collectionName() throws -> String
-
Provides property translations for queries
Declaration
Swift
static func translate(property: String) throws -> String?
-
Default Constructor.
Declaration
Swift
init()
-
observe(_:
Extension method) Undocumented
Declaration
Swift
public func observe(_ block: @escaping (ObjectChange<Self>) -> Void) -> AnyNotificationToken?
-
subscript(_:
Extension method) Undocumented
Declaration
Swift
public subscript(key: String) -> Any? { get nonmutating set }