IpLocation.fromJsObject constructor
IpLocation.fromJsObject(
- dynamic jsObject
Creates class instance from JavaScript object
Implementation
IpLocation.fromJsObject(dynamic jsObject)
: accuracyRadius = jsObject.accuracyRadius,
latitude = jsObject.latitude,
longitude = jsObject.longitude,
postalCode = jsObject.postalCode,
timezone = jsObject.timezone,
city = City.fromJsObject(jsObject.city),
country = Country.fromJsObject(jsObject.country),
continent = Continent.fromJsObject(jsObject.continent),
subdivisions = List<Subdivision>.from((jsObject.subdivisions as List)
.map((subdivision) => Subdivision.fromJsObject(subdivision)));