core.Map<core.String, core.dynamic> toJson() => { if (userInput != null) 'userInput': userInput!, if (virtualAgentOutput != null) 'virtualAgentOutput': virtualAgentOutput!, };