IPLocationData.fromJSON constructor
IPLocationData.fromJSON(
- Map<String, dynamic> json
)
Implementation
factory IPLocationData.fromJSON(Map<String, dynamic> json) {
return IPLocationData()
..ip = json['ip'] ?? ""
..city = json['city'] ?? ""
..countryLong = json['countryLong'] ?? ""
..countryShort = json['countryShort'] ?? ""
..latitude = json['latitude'] ?? 0.0
..longitude = json['longitude'] ?? 0.0
..region = json['region'] ?? ""
..timeZone = json['timeZone'] ?? ""
..zipCode = json['zipCode'] ?? "";
}