Jaguar-dart/jaguar_serializer

Introduce @RawMap and @RawList

Closed this issue · 1 comments

In Order to be able to serialize and deserialize Map<String, dynamic>, Map, List<dynamic>, List

We could introduce @RawMap and @RawList annotations to tell to the serializer to directly use the result of JSON.decode

@GenSerializer()
@RawMap(#map)
@RawList(#list)
class ModelSerializer extends Serializer<Model> {
  ...
}

class Model {
  Map<String, dynamic> map;
  List list;
}