ExplicitNull
@propertyWrapper
public struct ExplicitNull<Value>extension ExplicitNull: Equatable where Value: Equatableextension ExplicitNull: Hashable where Value: Hashableextension ExplicitNull: Encodable where Value: Encodableextension ExplicitNull: Decodable where Value: DecodableWraps an Optional field in a Codable object such that when the field
has a nil value it will encode to a null value in Firestore. Normally,
optional fields are omitted from the encoded document.
This is useful for ensuring a field is present in a Firestore document, even when there is no associated value.
-
Undocumented
Declaration
Swift
public init(wrappedValue value: Value?) -
Undocumented
Declaration
Swift
public var wrappedValue: Value? { get set }
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws