nestedContainer(keyedBy:forKey:)
Stores a keyed encoding container for the given key and returns it.
Declaration
mutating func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type, forKey key: KeyedEncodingContainer<K>.Key) -> KeyedEncodingContainer<NestedKey> where NestedKey : CodingKeyParameters
- keyType:
The key type to use for the container.
- key:
The key to encode the container for.
Return Value
A new keyed encoding container.