@override Object toJson() => { if (toolName != null) 'toolName': toolName, if (toolInput != null) 'toolInput': toolInput, };