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()

Available where Self: Entity

Available where Self: NSObject

  • subscript(_:) Extension method

    Undocumented

    Declaration

    Swift

    public subscript(key: String) -> Any? { get nonmutating set }