copyWithWrapped method
Implementation
AddressDTO copyWithWrapped(
{Wrapped<double?>? lat,
Wrapped<double?>? long,
Wrapped<String?>? address1,
Wrapped<String?>? address2,
Wrapped<String?>? city,
Wrapped<String?>? state,
Wrapped<String?>? postalCode,
Wrapped<String?>? country}) {
return AddressDTO(
lat: (lat != null ? lat.value : this.lat),
long: (long != null ? long.value : this.long),
address1: (address1 != null ? address1.value : this.address1),
address2: (address2 != null ? address2.value : this.address2),
city: (city != null ? city.value : this.city),
state: (state != null ? state.value : this.state),
postalCode: (postalCode != null ? postalCode.value : this.postalCode),
country: (country != null ? country.value : this.country));
}