toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = {
'type': 'rectangularWithIcons',
'brushesForState': _brushesForState.map((e) => e.toMap()).toList(),
'hasAsyncProvider': asyncStyleProvider != null,
'styleResponseCacheEnabled': styleResponseCacheEnabled,
'minimumHighlightWidth': minimumHighlightWidth,
'minimumHighlightHeight': minimumHighlightHeight,
'statusIconSettings': statusIconSettings.toMap(),
};
if (_iconsForState.isNotEmpty) {
json['iconsForState'] = _iconsForState.map((e) => e.toMap()).toList();
}
return json;
}