IPBlock.fromJson constructor
Creates a IPBlock from JSON data.
Implementation
factory IPBlock.fromJson(Map<String, dynamic> json) {
final tempCidrJson = json['cidr'];
final tempExceptJson = json['except'];
final String tempCidr = tempCidrJson;
final List<String>? tempExcept =
tempExceptJson != null ? List<String>.from(tempExceptJson) : null;
return IPBlock(
cidr: tempCidr,
except: tempExcept,
);
}