toJson method

Map<String, dynamic> toJson()

Converts the Placemark instance into a Map instance that can be serialized to JSON.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'name': name,
  'street': street,
  'isoCountryCode': isoCountryCode,
  'country': country,
  'postalCode': postalCode,
  'administrativeArea': administrativeArea,
  'subAdministrativeArea': subAdministrativeArea,
  'locality': locality,
  'subLocality': subLocality,
  'thoroughfare': thoroughfare,
  'subThoroughfare': subThoroughfare,
};