asJson method

String asJson()

Returns the IP block list as a JSON string

The JSON string is a list of IP addresses.

Implementation

String asJson() {
  return jsonEncode(blockedIps.toList());
}