Function: toJSON()
toJSON<
T
>(maybe
):Serialized
<T
>
Create an Object
representation of a Maybe
instance.
Useful for serialization. JSON.stringify()
uses it.
Type Parameters
T
T
extends object
Parameters
maybe
Maybe
<T
>
The value to convert to JSON
Returns
Serialized
<T
>
The JSON representation of the Maybe