toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = super.toMap();
json.addAll({
'defaultBrush': _brush.toMap(),
'shouldShowScanAreaGuides': _shouldShowScanAreaGuides,
'style': style.toString(),
'hasListener': _listener != null,
'modeId': _mode.toMap()['modeId'],
});
return json;
}