IpStackResponse.fromJson constructor
IpStackResponse.fromJson(
- dynamic json
Implementation
IpStackResponse.fromJson(dynamic json) {
_ip = json["ip"];
_type = json["type"];
_continentCode = json["continent_code"];
_continentName = json["continent_name"];
_countryCode = json["country_code"];
_countryName = json["country_name"];
_regionCode = json["region_code"];
_regionName = json["region_name"];
_city = json["city"];
_zip = json["zip"];
_latitude = json["latitude"];
_longitude = json["longitude"];
_location =
json["location"] != null ? Location.fromJson(json["location"]) : null;
}