Protocolswift 6.0.1Swift
Decoder
A type that can decode values from a native format into in-memory representations.
protocol Decoder
Requirements
Instance members
var codingPath: [any 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 -> any SingleValueDecodingContainer Returns the data stored in this decoder as represented in a container appropriate for holding a single primitive value.
func unkeyedContainer(
) throws -> any UnkeyedDecodingContainer Returns the data stored in this decoder as represented in a container appropriate for holding values with no keys.