cacheValidatedProxies method
Caches a list of validated proxies
proxies
is the list of validated proxies to cache
Implementation
@override
Future<void> cacheValidatedProxies(List<ProxyModel> proxies) async {
final jsonList = proxies.map((proxy) => proxy.toJson()).toList();
final jsonString = json.encode(jsonList);
await sharedPreferences.setString(cachedValidatedProxiesKey, jsonString);
}