An object to represent any value that might come from a backend, but that we either don't know about or can't represent in this ADT.
An object to represent any value that might come from a backend, but that
we either don't know about or can't represent in this ADT. We represent it
with JS's undefined
, just because no other value will ever be translated
that way.
NB: For parsing arbitrary JSON into Data
, _not_ for deserializing Data
previously serialized as JSON.
NB: For parsing arbitrary JSON into Data
, _not_ for deserializing Data
previously serialized as JSON. For that, see DataCodec
.
Converts the parts of Data
that it can, then stores the rest in,
effectively, Free.Pure
.