Place.fromJson constructor
Implementation
factory Place.fromJson(Map<String, dynamic> json) {
return Place(
placeId: json['place_id'],
licence: json['licence'],
osmType: json['osm_type'],
osmId: json['osm_id'],
lat: json['lat'],
lon: json['lon'],
className: json['class'],
type: json['type'],
placeRank: json['place_rank'],
importance: json['importance'],
addresstype: json['addresstype'],
name: json['name'],
displayName: json['display_name'],
address: Address.fromJson(json['address']),
boundingbox: List<String>.from(json['boundingbox'].map((x) => x)),
// geojson: Geojson.fromJson(json['geojson']),
);
}