asJson method

String asJson()

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());
}