toMap property

Map<String, dynamic> get toMap

Implementation

Map<String, dynamic> get toMap => {
      'PARAM_LIST': {
        'scanner_selection': 'auto',
        'scanner_input_enabled': 'true',
        'aim_type': AimType.values.indexOf(aimType).toString(),
        if (timeoutBetweenScans > 0) 'same_barcode_timeout': timeoutBetweenScans.toString(),
        ..._mapOfDisabledBarcodes,
        ..._mapOfEnabledBarcodes,
      },
      'PLUGIN_NAME': PluginNames.barcode,
      'RESET_CONFIG': 'true'
    };