toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (city != null) "city": encodeValue(city),
"country": encodeValue(country),
if (line1 != null) "line1": encodeValue(line1),
if (line2 != null) "line2": encodeValue(line2),
if (name != null) "name": encodeValue(name),
if (phoneNumber != null) "phone_number": encodeValue(phoneNumber),
if (postCode != null) "post_code": encodeValue(postCode),
if (region != null) "region": encodeValue(region),
};