toMap method

Map<String, Object> toMap()

Convert to string map to store in entity info cache file.

Implementation

Map<String, Object> toMap() {
  final map = <String, Object>{};
  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!;
  }
  return map;
}