copyWith method
Implementation
HomeV2 copyWith(
{int? id,
String? name,
enums.WeatherConditionV2? weatherCondition,
double? weatherTempF,
enums.WeatherTimePeriodV2? weatherTimePeriod,
DeviceAddressV2? address,
List<DeviceV2>? devices}) {
return HomeV2(
id: id ?? this.id,
name: name ?? this.name,
weatherCondition: weatherCondition ?? this.weatherCondition,
weatherTempF: weatherTempF ?? this.weatherTempF,
weatherTimePeriod: weatherTimePeriod ?? this.weatherTimePeriod,
address: address ?? this.address,
devices: devices ?? this.devices);
}