toJson method

Map<String, dynamic> toJson()

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,
  };
}