Location.fromJson constructor
Implementation
factory Location.fromJson(Map<String, dynamic> json) {
return Location(
country: json['country'] as String,
countryCode: json['countryCode'] as String,
region: json['region'] as String,
regionName: json['regionName'] as String,
timezone: json['timezone'] as String,
latitude: json['lat'] as double,
longitude: json['lon'] as double,
isp: json['isp'] as String,
currentIP: json['query'] as String,
);
}