copyWith method

DeviceConfiguration copyWith({
  1. DeviceType? deviceType,
  2. String? terminalId,
  3. TerminalType? terminalType,
  4. String? identifier,
  5. bool? contactlessAllowed,
  6. bool? keyedEntryAllowed,
  7. bool? heartbeatEnabled,
  8. bool? barcodeReaderEnabled,
  9. int? sleepTimeoutSeconds,
})

Implementation

DeviceConfiguration copyWith({
  DeviceType? deviceType,
  String? terminalId,
  TerminalType? terminalType,
  String? identifier,
  bool? contactlessAllowed,
  bool? keyedEntryAllowed,
  bool? heartbeatEnabled,
  bool? barcodeReaderEnabled,
  int? sleepTimeoutSeconds,
}) => DeviceConfiguration(
  deviceType: deviceType ?? this.deviceType,
  terminalId: terminalId ?? this.terminalId,
  terminalType: terminalType ?? this.terminalType,
  identifier: identifier ?? this.identifier,
  contactlessAllowed: contactlessAllowed ?? this.contactlessAllowed,
  keyedEntryAllowed: keyedEntryAllowed ?? this.keyedEntryAllowed,
  heartbeatEnabled: heartbeatEnabled ?? this.heartbeatEnabled,
  barcodeReaderEnabled: barcodeReaderEnabled ?? this.barcodeReaderEnabled,
  sleepTimeoutSeconds: sleepTimeoutSeconds ?? this.sleepTimeoutSeconds,
);