toMap method

  1. @override
Map<String, dynamic> toMap()

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;
}