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.new({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? lon, String? timezone, int? offset, String? currency, String? isp, String? org, String? asno, String? asname, String? reverse, 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?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - asno ↔ String?
-
getter/setter pair
- city ↔ String?
-
getter/setter pair
- continent ↔ String?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - continentCode ↔ String?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - country ↔ String?
-
getter/setter pair
- countryCode ↔ String?
-
getter/setter pair
- currency ↔ String?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - district ↔ String?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- hosting ↔ bool?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - isp ↔ String?
-
getter/setter pair
- lang ↔ String?
-
getter/setter pair
- lat ↔ double?
-
getter/setter pair
- lon ↔ double?
-
getter/setter pair
- mobile ↔ bool?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - offset ↔ int?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - org ↔ String?
-
getter/setter pair
- proxy ↔ bool?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
getter/setter pair - query ↔ String?
-
getter/setter pair
- region ↔ String?
-
getter/setter pair
- regionName ↔ String?
-
getter/setter pair
- reverse ↔ String?
-
Only contained in response from IP-API.com if part of
fields
when callinggetData
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