AutomaticBodyDecoding
public protocol AutomaticBodyDecoding
A protocol for types that can be initialized from Data
provided by a network response
-
Create
Self
fromData?
, or throw an errorDeclaration
Swift
init?(fromData: Data?) throws
Parameters
fromData
The data to decode