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