APIReturnable
public protocol APIReturnable
Defines the methods required for an object to be returned by an APIService
-
Defines how to convert returned
Data
into anAPIReturnable
objectDeclaration
Swift
init(from data: Data) throws
-
init(from:)
Default implementationDefault Implementation
Conversion from
Data
to aDecodable
type using aJSONDecoder
Declaration
Swift
init(from data: Data) throws