Decodable
protocol Decodable
-
Faciliates the use of extracting a single object from
includes
based onrelationships
, and converting that object to typeT
, which must beCodable
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 onrelationships
, and converting those objects to typeT
, which must beCodable
Declaration
Swift
public func decodeMany<T: Codable>( fromRelationships relationships: RelationshipMany?, withIncludes includes: IncludesData? = []) throws -> [T]?