toJson method

Map<String, dynamic> toJson()

Converts this IpInfo to a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'ip': ip,
      'isp': isp?.toJson(),
      'location': location?.toJson(),
      'risk': risk?.toJson(),
    };