IPDetails.fromJson constructor

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

Implementation

factory IPDetails.fromJson(Map<String, dynamic> json) => IPDetails(
  asn: json['asn'],
  city: json['city'],
  country: json['country'],
  isp: json['isp'],
  region: json['region'],
  fraudScore: json['fraudScore']?.toDouble(),
  latitude: json['latitude']?.toDouble(),
  longitude: json['longitude']?.toDouble(),
);