toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
if (this.phone != null) {
json[r'phone'] = this.phone;
} else {
json[r'phone'] = null;
}
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.postalCode != null) {
json[r'postal_code'] = this.postalCode;
} else {
json[r'postal_code'] = null;
}
if (this.city != null) {
json[r'city'] = this.city;
} else {
json[r'city'] = null;
}
if (this.state != null) {
json[r'state'] = this.state;
} else {
json[r'state'] = null;
}
if (this.country != null) {
json[r'country'] = this.country;
} else {
json[r'country'] = null;
}
return json;
}