ForwardGeo.fromJson constructor

ForwardGeo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ForwardGeo.fromJson(Map<String, dynamic> json) {
  return ForwardGeo(
    placeId: json['place_id'],
    licence: json['licence'],
    osmType: json['osm_type'],
    osmId: json['osm_id'],
    lat: json['lat'],
    lon: json['lon'],
    displayName: json['display_name'],
    boundingBox: List<String>.from(json['boundingbox']),
    classValue: json['class'],
    type: json['type'],
    importance: json['importance'] is double
        ? json['importance']
        : json['importance'].toDouble(),
    icon: json['icon'],
  );
}