v3.1.1
Changelog
-
The builder now respects basic initializer expressions of a constructor. This makes it
possible to do field renaming or assigning to private fields without requiring an additional
getter matching the parameter.The following is now supported out of the box:
class MyClass { MyClass(int value, {String? name}) // Effectively renaming 'value' to 'data'. : data = value, // Assigning to a private field + having a null fallback. _name = name ?? 'Unnamed'; final int value; final String _name;
-
Fixed encoding of a map now returns a
Map<String, dynamic>where possible
(instead of aMap<dynamic, dynamic>) -
Fixed supporting expressions in
@MappableClass.includeCustomMappers. -
Fixed error when using non-literal values in
@MappableValue(). -
Fixed generic decoding when using generic superclass.
-
Fixed unknown-type bug for serialized non-constructor fields.
-
Fixed bug with undetermined
includeSubClasses.