Decodable
protocol Decodable
-
Faciliates the use of extracting a single object from
includesbased onrelationships, and converting that object to typeT, which must beCodableDeclaration
Swift
public func decodeSingle<T: Codable>( fromRelationships relationships: RelationshipSingle?, withIncludes includes: IncludesData? = []) throws -> T? -
Faciliates the use of extracting multiple objects from
includesbased onrelationships, and converting those objects to typeT, which must beCodableDeclaration
Swift
public func decodeMany<T: Codable>( fromRelationships relationships: RelationshipMany?, withIncludes includes: IncludesData? = []) throws -> [T]?
View on GitHub
Decodable Extension Reference