copyWith method
Implementation
DeviceInfo copyWith({
int? deviceId,
String? version,
String? deviceName,
String? manufacturerName,
String? productName,
int? productId,
int? vendorId,
String? serialNumber,
}) {
return DeviceInfo(
deviceId: deviceId ?? this.deviceId,
version: version ?? this.version,
deviceName: deviceName ?? this.deviceName,
manufacturerName: manufacturerName ?? this.manufacturerName,
productName: productName ?? this.productName,
productId: productId ?? this.productId,
vendorId: vendorId ?? this.vendorId,
serialNumber: serialNumber ?? this.serialNumber,
);
}