Required Instance Methodswift 6.2.4Swift

encodeNil(forKey:)

Encodes a null value for the given key.

mutating func encodeNil(forKey key: Self.Key) throws

Parameters

key

The key to associate the value with.

Throws

EncodingError.invalidValue if a null value is invalid in the current context for this format.