toJson method
Implementation
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["ip"] = _ip;
map["type"] = _type;
map["continent_code"] = _continentCode;
map["continent_name"] = _continentName;
map["country_code"] = _countryCode;
map["country_name"] = _countryName;
map["region_code"] = _regionCode;
map["region_name"] = _regionName;
map["city"] = _city;
map["zip"] = _zip;
map["latitude"] = _latitude;
map["longitude"] = _longitude;
if (_location != null) {
map["location"] = _location!.toJson();
}
return map;
}