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