toJson method
Converts to JSON.
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'object': object,
'usage_bytes': usageBytes,
'created_at': createdAt,
'vector_store_id': vectorStoreId,
'status': status.toJson(),
if (lastError != null) 'last_error': lastError!.toJson(),
if (chunkingStrategy != null)
'chunking_strategy': chunkingStrategy!.toJson(),
};