Introduce @RawMap and @RawList
Closed this issue · 1 comments
lejard-h commented
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;
}
tejainece commented
We can probably implement it using CustomFieldProcessor
?