KeyedEncodingContainer
-
Encodes the given value for the given key.
Throws
EncodingError.invalidValue
if the given value is invalid in the current context for this format. -
Encodes the given value for the given key if it is not
nil
.Throws
EncodingError.invalidValue
if the given value is invalid in the current context for this format.