Required Instance Methodswift 6.0.3Swift

nestedContainer(keyedBy:forKey:)

Stores a keyed encoding container for the given key and returns it.

mutating func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type, forKey key: Self.Key) -> KeyedEncodingContainer<NestedKey> where NestedKey : CodingKey

Parameters

keyType

The key type to use for the container.

key

The key to encode the container for.

Returns

A new keyed encoding container.