copyWithWrapped method

HomeV2 copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<String?>? name,
  3. Wrapped<WeatherConditionV2?>? weatherCondition,
  4. Wrapped<double?>? weatherTempF,
  5. Wrapped<WeatherTimePeriodV2?>? weatherTimePeriod,
  6. Wrapped<DeviceAddressV2?>? address,
  7. Wrapped<List<DeviceV2>?>? devices,
})

Implementation

HomeV2 copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<String?>? name,
    Wrapped<enums.WeatherConditionV2?>? weatherCondition,
    Wrapped<double?>? weatherTempF,
    Wrapped<enums.WeatherTimePeriodV2?>? weatherTimePeriod,
    Wrapped<DeviceAddressV2?>? address,
    Wrapped<List<DeviceV2>?>? devices}) {
  return HomeV2(
      id: (id != null ? id.value : this.id),
      name: (name != null ? name.value : this.name),
      weatherCondition: (weatherCondition != null
          ? weatherCondition.value
          : this.weatherCondition),
      weatherTempF:
          (weatherTempF != null ? weatherTempF.value : this.weatherTempF),
      weatherTimePeriod: (weatherTimePeriod != null
          ? weatherTimePeriod.value
          : this.weatherTimePeriod),
      address: (address != null ? address.value : this.address),
      devices: (devices != null ? devices.value : this.devices));
}