DecodableModel
public protocol DecodableModel : Decodable
Helper providing informations to sucessfully decode each model. Each CoinapaprikaAPI Model conforms to this protocol. Use decoder properties if you want to store our models.
-
decoderDefault implementationJSONDecoder ready to decode the model.
Default Implementation
Declaration
Swift
static var decoder: JSONDecoder { get } -
dateDecodingStrategyDefault implementationDateDecodingStrategy for JSONDecoder, it could be either iso8601 or unix timestamp. Use it only if you want to build your own decoder.
Default Implementation
Declaration
Swift
static var dateDecodingStrategy: JSONDecoder.DateDecodingStrategy? { get }
DecodableModel Protocol Reference