toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = super.toMap();
json.addAll({
'brush': _brush.toMap(),
'shouldShowScanAreaGuides': _shouldShowScanAreaGuides,
'viewfinder': _viewfinder == null ? _noViewfinder : _viewfinder?.toMap(),
'style': style.toString()
});
return json;
}