toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'triggerButtonCollapseTimeout': triggerButtonCollapseTimeout.inSeconds,
    'continuousCaptureTimeout': _continuousCaptureTimeout.inSeconds,
    'defaultTorchState': defaultTorchState.toString(),
    'defaultScanningMode': defaultScanningMode.toMap(),
    'holdToScanEnabled': holdToScanEnabled,
    'defaultHandMode': defaultHandMode.jsonValue,
    'soundEnabled': soundEnabled,
    'hapticEnabled': hapticEnabled,
    'hardwareTriggerEnabled': hardwareTriggerEnabled,
    'hardwareTriggerKeyCode': hardwareTriggerKeyCode,
    'visualFeedbackEnabled': visualFeedbackEnabled,
    'zoomFactorIn': zoomFactorIn,
    'zoomFactorOut': zoomFactorOut,
    'inactiveStateTimeout': inactiveStateTimeout.inSeconds,
    'shouldShowOnTopAlways': shouldShowOnTopAlways,
    'defaultCameraPosition': defaultCameraPosition.toString(),
  };
}