@override Object toJson() => { 'parent': parent, 'query': ?query?.toJson(), if (tools.isNotDefault) 'tools': [for (final i in tools) i.toJson()], };