toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
if (address != null) {
data['address'] = address;
}
if (city != null) {
data['city'] = city;
}
if (code != null) {
data['code'] = code;
}
if (country != null) {
data['country'] = country;
}
if (longitude != null) {
data['longitude'] = longitude;
}
if (latitude != null) {
data['latitude'] = latitude;
}
if (province != null) {
data['province'] = province;
}
if (suburb != null) {
data['suburb'] = suburb;
}
if (streetNumber != null) {
data['streetNumber'] = streetNumber;
}
if (streetAddress != null) {
data['streetAddress'] = streetAddress;
}
return data;
}