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