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