attributes property
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
Map<String, dynamic> get attributes;