GeolocationData.fromJson constructor

GeolocationData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GeolocationData.fromJson(Map<String, dynamic> json) {
  return GeolocationData(
      country: json['country'],
      countryCode: json['countryCode'],
      timezone: json['timezone'],
      ip: json['query'],
      lat: json['lat'],
      lon: json['lon']);
}