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