toJson method
Converts this ProxyModel to a JSON map
Implementation
Map<String, dynamic> toJson() {
return {
'ip': ip,
'port': port,
if (countryCode != null) 'countryCode': countryCode,
'isHttps': isHttps,
if (anonymityLevel != null) 'anonymityLevel': anonymityLevel,
if (lastChecked != null) 'lastChecked': lastChecked,
if (responseTime != null) 'responseTime': responseTime,
};
}