VectorStoreFileCounts.fromJson constructor

VectorStoreFileCounts.fromJson(
  1. Map<String, dynamic> json
)

Creates a VectorStoreFileCounts from JSON.

Implementation

factory VectorStoreFileCounts.fromJson(Map<String, dynamic> json) {
  return VectorStoreFileCounts(
    inProgress: json['in_progress'] as int,
    completed: json['completed'] as int,
    failed: json['failed'] as int,
    cancelled: json['cancelled'] as int,
    total: json['total'] as int,
  );
}