container(keyedBy:)
Returns the data stored in this decoder as represented in a container keyed by the given key type.
Declaration
func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKeyParameters
- type:
The key type to use for the container.
Return Value
A keyed decoding container view into this decoder.