Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix serialization of non-nullable enums using _$xxxEnumMap
Before this change, serializing non-nullable enums in a subtype was incorrectly producing nullable string types. For example, serializing a class member of type Map<enum, String> produced a type Map<String?, dynamic> where Map<String, dynamic> should have been produced. Nullable enums should still produce nullable types, eg. serializing List<enum?> should produce List<String?> fixes 1145
- Loading branch information