- Add DateTimeUtcCodec an UTC DateTime codec.
- Add ObjectId a simple ObjectId codec (for Mongo BSON).
Breaking changes:
- Move codecs/codec.dart to codecs.dart
- In class Serialize, serializer getter is no more static.
- Remove DateTimeCodec from Serializer.Json and Serializer.TypedJson factories
- Support cyclical objects (@referenceable & @reference annotations)
- Support SerializedName class inheritance
- Support mixins
type_info_key
is now optional
Breaking changes:
- no
initSerializer
function anymore, instead, you have to instanciate a serializer classeSerializer serializer = new Serializer.Json();
toJson
andfromJson
replace byencode
anddecode
- see doc for more infos
type_info_key
is now parametrable- json output is now simpler
- Basic JSON serialization and desarialization