protocol Decodable
Inheritance | View Protocol Hierarchy → |
---|---|
Import | import Swift |
Initializers
init(from:) Required
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
decoder
: The decoder to read data from.
Declaration
init(from decoder: Decoder)
A type that can decode itself from an external representation.