toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  if (vectorStoreIds != null) 'vector_store_ids': vectorStoreIds,
  if (vectorStores != null)
    'vector_stores': vectorStores!.map((v) => v.toJson()).toList(),
};