toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'file_search',
'vector_store_ids': vectorStoreIds,
if (filters != null) 'filters': filters!.map((e) => e.toJson()).toList(),
if (rankingOptions != null) 'ranking_options': rankingOptions!.toJson(),
if (maxNumResults != null) 'max_num_results': maxNumResults,
};