copyWithWrapped method
DeviceDetailsDTO
copyWithWrapped({ - Wrapped<DeviceDTO?>? device,
- Wrapped<PowerSourceDTO?>? powerSource,
- Wrapped<SwitchStateDTO?>? switchState,
- Wrapped<CoolingTypeDTO?>? coolingType,
- Wrapped<ConnectionTypeDTO?>? connectionType,
- Wrapped<String?>? serverIpAddress,
- Wrapped<ServiceAgreementDTO?>? serviceAgreement,
- Wrapped<ExerciseInfoDTO?>? exercise,
- Wrapped<DateTime?>? lastRanTimestamp,
- Wrapped<double?>? totalRuntimeHours,
- Wrapped<double?>? totalOperationHours,
- Wrapped<double?>? runtimeSinceLastMaintenanceHours,
- Wrapped<int?>? remoteResetCounterSeconds,
- Wrapped<String?>? addedBy,
- Wrapped<List<String>?>? associatedUsers,
- Wrapped<DateTime?>? controllerClockTimestamp,
- Wrapped<FuelTypeDTO?>? fuelType,
- Wrapped<double?>? batteryVoltageV,
- Wrapped<double?>? engineCoolantTempF,
- Wrapped<double?>? engineFrequencyHz,
- Wrapped<double?>? engineSpeedRpm,
- Wrapped<double?>? lubeOilTempF,
- Wrapped<double?>? controllerTempF,
- Wrapped<double?>? engineCompartmentTempF,
- Wrapped<double?>? engineOilPressurePsi,
- Wrapped<bool?>? engineOilPressureOk,
- Wrapped<double?>? generatorLoadW,
- Wrapped<double?>? generatorLoadPercent,
- Wrapped<double?>? generatorVoltageAvgV,
- Wrapped<double?>? setOutputVoltageV,
- Wrapped<double?>? utilityVoltageV,
- Wrapped<GensetStateDTO?>? engineState,
- Wrapped<String?>? engineStateDisplayNameEn,
- Wrapped<PeripheralDTO?>? loadShed,
- Wrapped<PeripheralDTO?>? pim,
- Wrapped<DateTime?>? cellularExpiryDate,
- Wrapped<DateTime?>? cellularInstallationDate,
- Wrapped<double?>? cellularDataPercentage,
- Wrapped<CellularDataStatusDTO?>? cellularDataStatus,
})
Implementation
DeviceDetailsDTO copyWithWrapped(
{Wrapped<DeviceDTO?>? device,
Wrapped<enums.PowerSourceDTO?>? powerSource,
Wrapped<enums.SwitchStateDTO?>? switchState,
Wrapped<enums.CoolingTypeDTO?>? coolingType,
Wrapped<enums.ConnectionTypeDTO?>? connectionType,
Wrapped<String?>? serverIpAddress,
Wrapped<ServiceAgreementDTO?>? serviceAgreement,
Wrapped<ExerciseInfoDTO?>? exercise,
Wrapped<DateTime?>? lastRanTimestamp,
Wrapped<double?>? totalRuntimeHours,
Wrapped<double?>? totalOperationHours,
Wrapped<double?>? runtimeSinceLastMaintenanceHours,
Wrapped<int?>? remoteResetCounterSeconds,
Wrapped<String?>? addedBy,
Wrapped<List<String>?>? associatedUsers,
Wrapped<DateTime?>? controllerClockTimestamp,
Wrapped<enums.FuelTypeDTO?>? fuelType,
Wrapped<double?>? batteryVoltageV,
Wrapped<double?>? engineCoolantTempF,
Wrapped<double?>? engineFrequencyHz,
Wrapped<double?>? engineSpeedRpm,
Wrapped<double?>? lubeOilTempF,
Wrapped<double?>? controllerTempF,
Wrapped<double?>? engineCompartmentTempF,
Wrapped<double?>? engineOilPressurePsi,
Wrapped<bool?>? engineOilPressureOk,
Wrapped<double?>? generatorLoadW,
Wrapped<double?>? generatorLoadPercent,
Wrapped<double?>? generatorVoltageAvgV,
Wrapped<double?>? setOutputVoltageV,
Wrapped<double?>? utilityVoltageV,
Wrapped<enums.GensetStateDTO?>? engineState,
Wrapped<String?>? engineStateDisplayNameEn,
Wrapped<PeripheralDTO?>? loadShed,
Wrapped<PeripheralDTO?>? pim,
Wrapped<DateTime?>? cellularExpiryDate,
Wrapped<DateTime?>? cellularInstallationDate,
Wrapped<double?>? cellularDataPercentage,
Wrapped<enums.CellularDataStatusDTO?>? cellularDataStatus}) {
return DeviceDetailsDTO(
device: (device != null ? device.value : this.device),
powerSource:
(powerSource != null ? powerSource.value : this.powerSource),
switchState:
(switchState != null ? switchState.value : this.switchState),
coolingType:
(coolingType != null ? coolingType.value : this.coolingType),
connectionType: (connectionType != null
? connectionType.value
: this.connectionType),
serverIpAddress: (serverIpAddress != null
? serverIpAddress.value
: this.serverIpAddress),
serviceAgreement: (serviceAgreement != null
? serviceAgreement.value
: this.serviceAgreement),
exercise: (exercise != null ? exercise.value : this.exercise),
lastRanTimestamp: (lastRanTimestamp != null
? lastRanTimestamp.value
: this.lastRanTimestamp),
totalRuntimeHours: (totalRuntimeHours != null
? totalRuntimeHours.value
: this.totalRuntimeHours),
totalOperationHours: (totalOperationHours != null
? totalOperationHours.value
: this.totalOperationHours),
runtimeSinceLastMaintenanceHours:
(runtimeSinceLastMaintenanceHours != null
? runtimeSinceLastMaintenanceHours.value
: this.runtimeSinceLastMaintenanceHours),
remoteResetCounterSeconds: (remoteResetCounterSeconds != null
? remoteResetCounterSeconds.value
: this.remoteResetCounterSeconds),
addedBy: (addedBy != null ? addedBy.value : this.addedBy),
associatedUsers: (associatedUsers != null
? associatedUsers.value
: this.associatedUsers),
controllerClockTimestamp: (controllerClockTimestamp != null
? controllerClockTimestamp.value
: this.controllerClockTimestamp),
fuelType: (fuelType != null ? fuelType.value : this.fuelType),
batteryVoltageV: (batteryVoltageV != null
? batteryVoltageV.value
: this.batteryVoltageV),
engineCoolantTempF: (engineCoolantTempF != null
? engineCoolantTempF.value
: this.engineCoolantTempF),
engineFrequencyHz: (engineFrequencyHz != null
? engineFrequencyHz.value
: this.engineFrequencyHz),
engineSpeedRpm: (engineSpeedRpm != null
? engineSpeedRpm.value
: this.engineSpeedRpm),
lubeOilTempF:
(lubeOilTempF != null ? lubeOilTempF.value : this.lubeOilTempF),
controllerTempF: (controllerTempF != null
? controllerTempF.value
: this.controllerTempF),
engineCompartmentTempF: (engineCompartmentTempF != null
? engineCompartmentTempF.value
: this.engineCompartmentTempF),
engineOilPressurePsi: (engineOilPressurePsi != null
? engineOilPressurePsi.value
: this.engineOilPressurePsi),
engineOilPressureOk: (engineOilPressureOk != null
? engineOilPressureOk.value
: this.engineOilPressureOk),
generatorLoadW: (generatorLoadW != null
? generatorLoadW.value
: this.generatorLoadW),
generatorLoadPercent: (generatorLoadPercent != null
? generatorLoadPercent.value
: this.generatorLoadPercent),
generatorVoltageAvgV: (generatorVoltageAvgV != null
? generatorVoltageAvgV.value
: this.generatorVoltageAvgV),
setOutputVoltageV: (setOutputVoltageV != null
? setOutputVoltageV.value
: this.setOutputVoltageV),
utilityVoltageV: (utilityVoltageV != null
? utilityVoltageV.value
: this.utilityVoltageV),
engineState:
(engineState != null ? engineState.value : this.engineState),
engineStateDisplayNameEn: (engineStateDisplayNameEn != null
? engineStateDisplayNameEn.value
: this.engineStateDisplayNameEn),
loadShed: (loadShed != null ? loadShed.value : this.loadShed),
pim: (pim != null ? pim.value : this.pim),
cellularExpiryDate: (cellularExpiryDate != null
? cellularExpiryDate.value
: this.cellularExpiryDate),
cellularInstallationDate: (cellularInstallationDate != null
? cellularInstallationDate.value
: this.cellularInstallationDate),
cellularDataPercentage: (cellularDataPercentage != null
? cellularDataPercentage.value
: this.cellularDataPercentage),
cellularDataStatus: (cellularDataStatus != null
? cellularDataStatus.value
: this.cellularDataStatus));
}