toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = super.toMap();
  json.addAll({
    'trackedBrush': _trackedBrush.toMap(),
    'aimedBrush': _aimedBrush.toMap(),
    'selectingBrush': _selectingBrush.toMap(),
    'selectedBrush': _selectedBrush.toMap(),
    'shouldShowHints': _shouldShowHints,
    'shouldShowScanAreaGuides': _shouldShowScanAreaGuides,
    'viewfinder': _viewfinder.toMap(),
    'style': style.toString(),
    'frozenBackgroundColor': _frozenBackgroundColor.jsonValue,
  });
  return json;
}