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(),
// ignore: deprecated_member_use_from_same_package
'style': style.toString()
});
json['modeId'] = _mode.toMap()['modeId'];
return json;
}