copyWith method
Implementation
HomeDTO copyWith(
{int? id,
String? name,
enums.WeatherConditionDTO? weatherCondition,
double? weatherTempF,
enums.WeatherTimePeriodDTO? weatherTimePeriod,
AddressDTO? address,
List<DeviceDTO>? devices,
List<HomeUserDTO>? users}) {
return HomeDTO(
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,
users: users ?? this.users);
}