Location.fromJson constructor

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

Implementation

factory Location.fromJson(Map<String, dynamic> json) => Location(
      country: json["country"],
      countryCode: json["country_code"],
      locality: json["locality"],
      region: json["region"],
      subRegion: json["sub_region"],
      fullName: json["full_name"],
      geo: Geo.fromJson(json["geo"]),
    );