JsonCodecExtensions extension

JsonCodec extensions.

on

Methods

decodeWithReviver(String source) → dynamic

Available on JsonCodec, provided by the JsonCodecExtensions extension

decode method with a reviver to instantiate the correct objects from model
safeEncode(Object obj) String

Available on JsonCodec, provided by the JsonCodecExtensions extension

encode method with toEncodable to correctly encode a DateTime object.