Map<String, dynamic> toJson() { final portMappings = this.portMappings; return { if (portMappings != null) 'portMappings': portMappings, }; }