fromJson method
Loads the country block list from a JSON string.
The JSON string should contain a list of country codes. This method clears the current list of blocked countries and replaces it with the list of country codes in the JSON string.
Implementation
void fromJson(String json) {
blocked.clear();
blocked.addAll(jsonDecode(json) as Iterable<String>);
}