toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (addressType != null) {
json[r'addressType'] = addressType;
}
if (description != null) {
json[r'description'] = description;
}
if (street != null) {
json[r'street'] = street;
}
if (houseNumber != null) {
json[r'houseNumber'] = houseNumber;
}
if (postboxNumber != null) {
json[r'postboxNumber'] = postboxNumber;
}
if (postalCode != null) {
json[r'postalCode'] = postalCode;
}
if (city != null) {
json[r'city'] = city;
}
if (state != null) {
json[r'state'] = state;
}
if (country != null) {
json[r'country'] = country;
}
if (note != null) {
json[r'note'] = note;
}
json[r'telecoms'] = telecoms;
return json;
}