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 EntryPersistable

    Declaration

    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 CodingKeys enum that is generated for all types conforming to Codable.

    Declaration

    Swift

    static func fieldMapping() -> [FieldName: String]