UrpDeviceConfig constructor

UrpDeviceConfig({
  1. int? version,
  2. UrpScanConfig? scan,
  3. UrpButtonConfig? button,
  4. UrpCalibration? calibration,
  5. bool? autoUpdate,
  6. bool? bleEnabled,
  7. bool? usbEnabled,
  8. bool? wifiEnabled,
  9. bool? autoTokenRefresh,
  10. int? tokenRefreshThreshold,
  11. int? tokenRefreshExpiryMarginS,
  12. bool? cloudPresence,
  13. String? otaUrl,
  14. bool? blePairingEnabled,
})

Implementation

factory UrpDeviceConfig({
  $core.int? version,
  UrpScanConfig? scan,
  UrpButtonConfig? button,
  UrpCalibration? calibration,
  $core.bool? autoUpdate,
  $core.bool? bleEnabled,
  $core.bool? usbEnabled,
  $core.bool? wifiEnabled,
  $core.bool? autoTokenRefresh,
  $core.int? tokenRefreshThreshold,
  $core.int? tokenRefreshExpiryMarginS,
  $core.bool? cloudPresence,
  $core.String? otaUrl,
  $core.bool? blePairingEnabled,
}) {
  final $result = create();
  if (version != null) {
    $result.version = version;
  }
  if (scan != null) {
    $result.scan = scan;
  }
  if (button != null) {
    $result.button = button;
  }
  if (calibration != null) {
    $result.calibration = calibration;
  }
  if (autoUpdate != null) {
    $result.autoUpdate = autoUpdate;
  }
  if (bleEnabled != null) {
    $result.bleEnabled = bleEnabled;
  }
  if (usbEnabled != null) {
    $result.usbEnabled = usbEnabled;
  }
  if (wifiEnabled != null) {
    $result.wifiEnabled = wifiEnabled;
  }
  if (autoTokenRefresh != null) {
    $result.autoTokenRefresh = autoTokenRefresh;
  }
  if (tokenRefreshThreshold != null) {
    $result.tokenRefreshThreshold = tokenRefreshThreshold;
  }
  if (tokenRefreshExpiryMarginS != null) {
    $result.tokenRefreshExpiryMarginS = tokenRefreshExpiryMarginS;
  }
  if (cloudPresence != null) {
    $result.cloudPresence = cloudPresence;
  }
  if (otaUrl != null) {
    $result.otaUrl = otaUrl;
  }
  if (blePairingEnabled != null) {
    $result.blePairingEnabled = blePairingEnabled;
  }
  return $result;
}