toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json[r'name'] = name;
_json[r'localPort'] = localPort;
_json[r'remoteAddress'] = remoteAddress;
_json[r'remotePort'] = remotePort;
_json[r'protocols'] = protocols;
if (firewall != null) {
_json[r'firewall'] = firewall;
}
if (ips != null) {
_json[r'ips'] = ips;
}
_json[r'variables'] = variables;
return _json;
}