json_serializable.dart
json_serializable.dart copied to clipboard
For classes stored as values in a map, make it easy to pass the corresponding key to the constructor
I've hit this a few times. Often you want to structure your serialized value as a map, but you want to have the key data stored in the value, without duplicating the key as a field in the value