GeoData class
GeoData will be returned as a result from getData
and provides
structured access to the geo data returned from IP-API.com as json
- Annotations
-
- @JsonSerializable()
Constructors
- GeoData({String? lang, String? query, String? status, String? continent, String? continentCode, String? country, String? countryCode, String? region, String? regionName, String? city, String? district, String? zip, double? lat, double? long, String? timezone, int? offset, String? currency, String? isp, String? org, String? asno, String? asname, bool? mobile, bool? proxy, bool? hosting})
-
GeoData.fromJson(Map<
String, dynamic> json) -
Factory method to transform json data returned by IP-API.com to GeoData
factory
Properties
- asname ↔ String?
-
getter/setter pair
- asno ↔ String?
-
getter/setter pair
- city ↔ String?
-
getter/setter pair
- continent ↔ String?
-
getter/setter pair
- continentCode ↔ String?
-
getter/setter pair
- country ↔ String?
-
getter/setter pair
- countryCode ↔ String?
-
getter/setter pair
- currency ↔ String?
-
getter/setter pair
- district ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hosting ↔ bool?
-
getter/setter pair
- isp ↔ String?
-
getter/setter pair
- lang ↔ String?
-
getter/setter pair
- lat ↔ double?
-
getter/setter pair
- long ↔ double?
-
getter/setter pair
- mobile ↔ bool?
-
getter/setter pair
- offset ↔ int?
-
getter/setter pair
- org ↔ String?
-
getter/setter pair
- proxy ↔ bool?
-
getter/setter pair
- query ↔ String?
-
getter/setter pair
- region ↔ String?
-
getter/setter pair
- regionName ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
getter/setter pair
- timezone ↔ String?
-
getter/setter pair
- zip ↔ String?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Helper method to transform GeoData back into json format
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited