toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'country': country,
  if (state != null) 'state': state,
  if (city != null) 'city': city,
  'name': name,
  'coordinates': coordinates.toJson(),
  'isIndoor': isIndoor,
};