JsonCodecExtensions extension
JsonCodec extensions.
- on
Methods
-
decodeWithReviver(
String source) → dynamic -
Available on JsonCodec, provided by the JsonCodecExtensions extension
decode method with areviver
to instantiate the correct objects frommodel
-
safeEncode(
Object obj) → String -
Available on JsonCodec, provided by the JsonCodecExtensions extension
encode method withtoEncodable
to correctly encode a DateTime object.