toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = <String, dynamic>{
    'type': 'success',
    'barcodeFeedback': {
      'visualFeedbackColor': _visualFeedbackColor.jsonValue,
      'brush': _brush.toMap(),
    },
  };
  if (_feedback != null) {
    json['barcodeFeedback']['feedback'] = _feedback.toMap();
  }
  return json;
}