@override Object toJson() => { if (toolName case final toolName?) 'toolName': toolName, if (toolInput case final toolInput?) 'toolInput': toolInput, };