A JsonCodec encodes JSON objects to strings and decodes strings to JSON objects.
Properties
- JsonDecoder decoder
-
read-only
- JsonEncoder encoder
-
read-only
- Codec<String,Object> inverted
-
read-only, inheritedInverts
this
.
Constructors
- JsonCodec({dynamic reviver(key, value), dynamic toEncodable(object)})
-
constCreates a
JsonCodec
with the given reviver and encoding function. - JsonCodec.withReviver(dynamic reviver(key, value))
-
Creates a
JsonCodec
with the given reviver.