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