ProxyModel class

Represents a proxy server with its details

Constructors

ProxyModel.new({required String ip, required int port, String? countryCode, bool isHttps = false, String? anonymityLevel, int? lastChecked, int? responseTime})
Creates a new ProxyModel instance
const
ProxyModel.fromJson(Map<String, dynamic> json)
Creates a ProxyModel from a JSON map
factory

Properties

anonymityLevel String?
Anonymity level of the proxy (e.g., 'elite', 'anonymous', 'transparent')
final
countryCode String?
Country code of the proxy server (optional)
final
hashCode int
The hash code for this object.
no setterinherited
ip String
IP address of the proxy server
final
isHttps bool
Whether the proxy supports HTTPS
final
lastChecked int?
Last time the proxy was checked (in milliseconds since epoch)
final
port int
Port number of the proxy server
final
responseTime int?
Response time of the proxy in milliseconds (optional)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
Returns the proxy URL in the format 'http(s)://ip:port'
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this ProxyModel to a JSON map
toString() String
Returns a string representation of the proxy in the format 'ip:port'
override

Operators

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