toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = {
'type': 'rectangularWithIcons',
'brushesForState': _brushesForState.map((e) => e.toMap()).toList(),
'iconStyle': iconStyle.toString(),
};
if (_iconsForState.isNotEmpty) {
json['iconsForState'] = _iconsForState.map((e) => e.toMap()).toList();
}
return json;
}