toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = <String, dynamic>{
    'type': 'barcodeSelection',
    'feedback': _feedback.toMap(),
    'settings': _settings.toMap()
  };
  if (_pointOfInterest != null) {
    json['pointOfInterest'] = _pointOfInterest?.toMap();
  }
  return json;
}