copyWith method

GetGeneratorHistoricalParameterValuesResponseModel copyWith({
  1. GetGeneratorBatteryVoltageValueResponseModel? batteryVoltage,
  2. GetGeneratorEngineCoolantTemperatureValueResponseModel? engineCoolantTemperature,
  3. GetGeneratorEngineFrequencyValueResponseModel? engineFrequency,
  4. GetGeneratorLubeOilTemperatureValueResponseModel? lubeOilTemperature,
  5. GetGeneratorEngineOilPressureValueResponseModel? engineOilPressure,
  6. GetGeneratorEngineSpeedValueResponseModel? engineSpeed,
})

Implementation

GetGeneratorHistoricalParameterValuesResponseModel copyWith(
    {GetGeneratorBatteryVoltageValueResponseModel? batteryVoltage,
    GetGeneratorEngineCoolantTemperatureValueResponseModel?
        engineCoolantTemperature,
    GetGeneratorEngineFrequencyValueResponseModel? engineFrequency,
    GetGeneratorLubeOilTemperatureValueResponseModel? lubeOilTemperature,
    GetGeneratorEngineOilPressureValueResponseModel? engineOilPressure,
    GetGeneratorEngineSpeedValueResponseModel? engineSpeed}) {
  return GetGeneratorHistoricalParameterValuesResponseModel(
      batteryVoltage: batteryVoltage ?? this.batteryVoltage,
      engineCoolantTemperature:
          engineCoolantTemperature ?? this.engineCoolantTemperature,
      engineFrequency: engineFrequency ?? this.engineFrequency,
      lubeOilTemperature: lubeOilTemperature ?? this.lubeOilTemperature,
      engineOilPressure: engineOilPressure ?? this.engineOilPressure,
      engineSpeed: engineSpeed ?? this.engineSpeed);
}