RemoteIpDetails.fromJson constructor

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

Implementation

factory RemoteIpDetails.fromJson(Map<String, dynamic> json) {
  return RemoteIpDetails(
    city: json['city'] != null
        ? City.fromJson(json['city'] as Map<String, dynamic>)
        : null,
    country: json['country'] != null
        ? Country.fromJson(json['country'] as Map<String, dynamic>)
        : null,
    geoLocation: json['geoLocation'] != null
        ? GeoLocation.fromJson(json['geoLocation'] as Map<String, dynamic>)
        : null,
    ipAddressV4: json['ipAddressV4'] as String?,
    organization: json['organization'] != null
        ? Organization.fromJson(json['organization'] as Map<String, dynamic>)
        : null,
  );
}