KeyedEncodingContainer
extension KeyedEncodingContainer
extending KeyedEncodingContainer
so it will only encode a wrapped value it is non nil
-
Declaration
Swift
public mutating func encode<T>(_ value: T, forKey key: KeyedEncodingContainer<K>.Key) throws where T : OptionalCustomCodingWrapper, T : Encodable