encode(_:forKey:)
Encodes the given value for the given key.
Declaration
mutating func encode<T>(_ value: T, forKey key: KeyedEncodingContainer<K>.Key) throws where T : EncodableParameters
- value:
The value to encode.
- key:
The key to associate the value with.