IpInfo class
Main container for IP address information.
Constructors
- IpInfo({required String ip, IspInfo? isp, LocationInfo? location, RiskInfo? risk})
- Creates a new IP information object.
-
IpInfo.fromJson(Map<
String, dynamic> json) -
Creates an IpInfo from a JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ip → String
-
The IP address
final
- isp → IspInfo?
-
ISP information (may be null)
final
- location → LocationInfo?
-
Geographic location information (may be null)
final
- risk → RiskInfo?
-
Security and risk assessment information (may be null)
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 IpInfo to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited