toJson method
Implementation
Map<String, dynamic> toJson() {
final address = this.address;
final latitude = this.latitude;
final longitude = this.longitude;
return {
if (address != null) 'Address': address,
if (latitude != null) 'Latitude': latitude,
if (longitude != null) 'Longitude': longitude,
};
}