RiskInfo class

Security and risk assessment information for an IP address.

Constructors

RiskInfo({required bool isMobile, required bool isVpn, required bool isTor, required bool isProxy, required bool isDatacenter, required int riskScore})
Creates a new risk information object.
RiskInfo.fromJson(Map<String, dynamic> json)
Creates a RiskInfo from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isDatacenter bool
Whether the IP is from a datacenter
final
isMobile bool
Whether the IP is from a mobile network
final
isProxy bool
Whether the IP is from a proxy server
final
isTor bool
Whether the IP is from the Tor network
final
isVpn bool
Whether the IP is from a VPN
final
riskScore int
Risk score (0-100, higher means riskier)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this RiskInfo to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited