toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.line1 != null) {
json[r'line1'] = this.line1;
} else {
json[r'line1'] = null;
}
if (this.line2 != null) {
json[r'line2'] = this.line2;
} else {
json[r'line2'] = null;
}
if (this.city != null) {
json[r'city'] = this.city;
} else {
json[r'city'] = null;
}
if (this.stateProvince != null) {
json[r'stateProvince'] = this.stateProvince;
} else {
json[r'stateProvince'] = null;
}
if (this.postalCode != null) {
json[r'postalCode'] = this.postalCode;
} else {
json[r'postalCode'] = null;
}
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.countryName != null) {
json[r'countryName'] = this.countryName;
} else {
json[r'countryName'] = null;
}
return json;
}