13 lines
283 B
Dart
13 lines
283 B
Dart
|
|
class DocumentInfo {
|
||
|
|
final String docId;
|
||
|
|
final int chunks;
|
||
|
|
|
||
|
|
DocumentInfo({required this.docId, required this.chunks});
|
||
|
|
|
||
|
|
factory DocumentInfo.fromJson(Map<String, dynamic> json) {
|
||
|
|
return DocumentInfo(
|
||
|
|
docId: json['doc_id'],
|
||
|
|
chunks: json['chunks'],
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|