[]
if variant value is undefined it will be converted to null instead During deserialization, the null value will be replaced with the undefiend variant should be usedin in combination with Default coder
public static JsonCoder<T> NullAsUndefined<T>(this JsonCoder<T> coder)
Type | Name | Description |
---|---|---|
JsonCoder<T> | coder | The current JsonCoder<T> to encode and decode the value. |
Type | Description |
---|---|
JsonCoder<T> | A JsonCoder<T> with the default value handling. |
Name | Description |
---|---|
T | A type of the value. |