copyWithWrapped method

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

Implementation

GetGeneratorHistoricalParameterValuesResponseModel copyWithWrapped(
    {Wrapped<GetGeneratorBatteryVoltageValueResponseModel?>? batteryVoltage,
    Wrapped<GetGeneratorEngineCoolantTemperatureValueResponseModel?>?
        engineCoolantTemperature,
    Wrapped<GetGeneratorEngineFrequencyValueResponseModel?>? engineFrequency,
    Wrapped<GetGeneratorLubeOilTemperatureValueResponseModel?>?
        lubeOilTemperature,
    Wrapped<GetGeneratorEngineOilPressureValueResponseModel?>?
        engineOilPressure,
    Wrapped<GetGeneratorEngineSpeedValueResponseModel?>? engineSpeed}) {
  return GetGeneratorHistoricalParameterValuesResponseModel(
      batteryVoltage: (batteryVoltage != null
          ? batteryVoltage.value
          : this.batteryVoltage),
      engineCoolantTemperature: (engineCoolantTemperature != null
          ? engineCoolantTemperature.value
          : this.engineCoolantTemperature),
      engineFrequency: (engineFrequency != null
          ? engineFrequency.value
          : this.engineFrequency),
      lubeOilTemperature: (lubeOilTemperature != null
          ? lubeOilTemperature.value
          : this.lubeOilTemperature),
      engineOilPressure: (engineOilPressure != null
          ? engineOilPressure.value
          : this.engineOilPressure),
      engineSpeed:
          (engineSpeed != null ? engineSpeed.value : this.engineSpeed));
}