Decodable

protocol Decodable
  • Faciliates the use of extracting a single object from includes based on relationships, and converting that object to type T, which must be Codable

    Declaration

    Swift

    public func decodeSingle<T: Codable>(
        fromRelationships relationships: RelationshipSingle?,
        withIncludes includes: IncludesData? = []) throws -> T?
  • Faciliates the use of extracting multiple objects from includes based on relationships, and converting those objects to type T, which must be Codable

    Declaration

    Swift

    public func decodeMany<T: Codable>(
        fromRelationships relationships: RelationshipMany?,
        withIncludes includes: IncludesData? = []) throws -> [T]?