fromJson method

void fromJson(
  1. String json
)

Loads the IP block list from a JSON string NOTE: THIS WILL CLEAR ALL THE IP BLOCKS

Implementation

void fromJson(String json) {
  blockedIps.clear();
  blockedIps.addAll(jsonDecode(json) as Iterable<String>);
}