toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = <String, dynamic>{
    'View': {
      'viewSettings': _barcodPickViewSettings.toMap(),
      'cameraSettings': _cameraSettings?.toMap(),
      'hasActionListeners': _actionListeners.isNotEmpty,
      'hasViewListeners': _viewListeners.isNotEmpty,
      'hasViewUiListener': uiListener != null,
      'isStarted': _isViewStarted,
    },
    'BarcodePick': _barcodePick.toMap()
  };

  return json;
}