EntryPersistable
public protocol EntryPersistable: ContentSysPersistable
Conform to EntryPersistable protocol to enable mapping of your Contentful content type to
your NSManagedObject subclass.
-
The identifier of the Contentful content type that will map to this type of
EntryPersistableDeclaration
Swift
static var contentTypeId: ContentTypeId -
This method must be implemented to provide a custom mapping from Contentful fields to Swift properties. Note that after Swift 4 is release, this method will be deprecated in favor of leveraging the auto-synthesized
CodingKeysenum that is generated for all types conforming toCodable.Declaration
Swift
static func fieldMapping() -> [FieldName: String]
EntryPersistable Protocol Reference