Encodes the specified default value as undefined and skips it during serialization. During deserialization, the undefined value will be replaced with the specified default value.
Overload | Description |
Optional<T>(JsonCoder<T>,T) | Encodes the specified default value as undefined and skips it during serialization. During deserialization, the undefined value will be replaced with the specified default value. |
Optional<T>(JsonCoder<T>) | Skips empty objects during serialization and deserializes undefined values as a default object. |