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