copyWithWrapped method

AtsDetailsDTO copyWithWrapped({
  1. Wrapped<AtsDTO?>? ats,
  2. Wrapped<AtsSystemSettingsDTO?>? systemSettings,
  3. Wrapped<AtsUtilityToGeneratorSettingsDTO?>? utilityToGeneratorSettings,
  4. Wrapped<AtsGeneratorToUtilitySettingsDTO?>? generatorToUtilitySettings,
})

Implementation

AtsDetailsDTO copyWithWrapped(
    {Wrapped<AtsDTO?>? ats,
    Wrapped<AtsSystemSettingsDTO?>? systemSettings,
    Wrapped<AtsUtilityToGeneratorSettingsDTO?>? utilityToGeneratorSettings,
    Wrapped<AtsGeneratorToUtilitySettingsDTO?>? generatorToUtilitySettings}) {
  return AtsDetailsDTO(
      ats: (ats != null ? ats.value : this.ats),
      systemSettings: (systemSettings != null
          ? systemSettings.value
          : this.systemSettings),
      utilityToGeneratorSettings: (utilityToGeneratorSettings != null
          ? utilityToGeneratorSettings.value
          : this.utilityToGeneratorSettings),
      generatorToUtilitySettings: (generatorToUtilitySettings != null
          ? generatorToUtilitySettings.value
          : this.generatorToUtilitySettings));
}