copyWithWrapped method
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));
}