UFULocalInfoModel.fromJson constructor
UFULocalInfoModel.fromJson(
- Map<String, dynamic> json
)
Implementation
UFULocalInfoModel.fromJson(Map<String, dynamic> json) {
status = json['status']?.toString();
country = json['country']?.toString();
countryCode = json['countryCode']?.toString();
region = json['region']?.toString();
regionName = json['regionName']?.toString();
city = json['city']?.toString();
zip = json['zip']?.toString();
lat = double.tryParse(json['lat']?.toString() ?? '');
lon = double.tryParse(json['lon']?.toString() ?? '');
timezone = json['timezone']?.toString();
isp = json['isp']?.toString();
org = json['org']?.toString();
theAs = json['as']?.toString();
query = json['query']?.toString();
}