toMap method
Convert to string map to store in entity info cache file.
Implementation
Map<String, Object> toMap() {
final map = <String, Object>{};
if (dimensions != null) {
map["dimensions"] = dimensions!;
}
if (neighborsPerNode != null) {
map["neighborsPerNode"] = neighborsPerNode!;
}
if (indexingSearchCount != null) {
map["indexingSearchCount"] = indexingSearchCount!;
}
if (flags != null) {
map["flags"] = flags!;
}
if (distanceType != null) {
map["distanceType"] = distanceType!;
}
if (reparationBacklinkProbability != null) {
map["reparationBacklinkProbability"] = reparationBacklinkProbability!;
}
if (vectorCacheHintSizeKB != null) {
map["vectorCacheHintSizeKB"] = vectorCacheHintSizeKB!;
}
if (quantization != null) {
map["quantization"] = quantization!;
}
if (quantizationOversample != null) {
map["quantizationOversample"] = quantizationOversample!;
}
if (quantizationRescoreFactor != null) {
map["quantizationRescoreFactor"] = quantizationRescoreFactor!;
}
if (searchLevel != null) {
map["searchLevel"] = searchLevel!;
}
if (buildLevel != null) {
map["buildLevel"] = buildLevel!;
}
if (bruteForceMaxCandidates != null) {
map["bruteForceMaxCandidates"] = bruteForceMaxCandidates!;
}
if (filteredSearchMaxNodes != null) {
map["filteredSearchMaxNodes"] = filteredSearchMaxNodes!;
}
if (randomSeed != null) {
map["randomSeed"] = randomSeed!;
}
return map;
}