IndexStats.fromJson constructor
IndexStats.fromJson(
- Object? j
Implementation
factory IndexStats.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return IndexStats(
vectorsCount: switch (json['vectorsCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
sparseVectorsCount: switch (json['sparseVectorsCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
shardsCount: switch (json['shardsCount']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}