toJson method
Converts a IPBlock instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempCidr = cidr;
final tempExcept = except;
jsonData['cidr'] = tempCidr;
if (tempExcept != null) {
jsonData['except'] = tempExcept;
}
return jsonData;
}