asJson method
Returns the country block list as a JSON string
The JSON string is a list of country codes (e.g. "US", "CA", "UK", etc.).
Implementation
String asJson() {
return jsonEncode(blocked.toList());
}
Returns the country block list as a JSON string
The JSON string is a list of country codes (e.g. "US", "CA", "UK", etc.).
String asJson() {
return jsonEncode(blocked.toList());
}