attributes property Null safety
override
Holds all values that should be serialized. Can either be generated upon demand or used all the time. Example for using attributes as the data store:
MySerializableEnum get myEnum => attributes['my-enum'];
set myEnum(MySerializableEnum value) => attributes['my-enum'] = value;
Implementation
@override
Map<String, dynamic> get attributes => _attributes;