toJson method
Implementation
Map<String, dynamic> toJson() {
final addressId = this.addressId;
final city = this.city;
final company = this.company;
final country = this.country;
final isRestricted = this.isRestricted;
final landmark = this.landmark;
final name = this.name;
final phoneNumber = this.phoneNumber;
final postalCode = this.postalCode;
final prefectureOrDistrict = this.prefectureOrDistrict;
final stateOrProvince = this.stateOrProvince;
final street1 = this.street1;
final street2 = this.street2;
final street3 = this.street3;
return {
if (addressId != null) 'AddressId': addressId,
if (city != null) 'City': city,
if (company != null) 'Company': company,
if (country != null) 'Country': country,
if (isRestricted != null) 'IsRestricted': isRestricted,
if (landmark != null) 'Landmark': landmark,
if (name != null) 'Name': name,
if (phoneNumber != null) 'PhoneNumber': phoneNumber,
if (postalCode != null) 'PostalCode': postalCode,
if (prefectureOrDistrict != null)
'PrefectureOrDistrict': prefectureOrDistrict,
if (stateOrProvince != null) 'StateOrProvince': stateOrProvince,
if (street1 != null) 'Street1': street1,
if (street2 != null) 'Street2': street2,
if (street3 != null) 'Street3': street3,
};
}