ProtocolSwift
Decoder
A type that can decode values from a native format into in-memory representations.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
protocol Decoder
var codingPath: [CodingKey]
The path of coding keys taken to get to this point in decoding.
var userInfo: [CodingUserInfoKey : Any]
Any contextual information set by the user for decoding.
func container<Key>(keyedBy: Key.Type) throws -> KeyedDecodingContainer<Key>
Returns the data stored in this decoder as represented in a container keyed by the given key type.
func singleValueContainer() throws -> SingleValueDecodingContainer
Returns the data stored in this decoder as represented in a container appropriate for holding a single primitive value.
func unkeyedContainer() throws -> UnkeyedDecodingContainer
Returns the data stored in this decoder as represented in a container appropriate for holding values with no keys.