Generic Instance Method

container(keyedBy:)

Returns the data stored in this decoder as represented in a container keyed by the given key type.

Required.

Declaration

func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey

Parameters

type

The key type to use for the container.

Return Value

A keyed decoding container view into this decoder.