fromJson static method
Implementation
static GeoData fromJson(dynamic json) {
var mobileJson = json['mobile'];
var browserJson = json['browser'];
IPData? mobile;
IPData? browser;
if (mobileJson != null) {
mobile = IPData.fromJson(mobileJson);
}
if (browserJson != null) {
browser = IPData.fromJson(browserJson);
}
return GeoData(mobile, browser);
}