fromMap static method
Create from a string map created by toMap.
Implementation
static ModelHnswParams? fromMap(Map<String, dynamic>? map) {
if (map == null) return null;
return ModelHnswParams(
dimensions: map["dimensions"] as int,
neighborsPerNode: map["neighborsPerNode"] as int?,
indexingSearchCount: map["indexingSearchCount"] as int?,
flags: map["flags"] as int?,
distanceType: map["distanceType"] as int?,
reparationBacklinkProbability:
map["reparationBacklinkProbability"] as double?,
vectorCacheHintSizeKB: map["vectorCacheHintSizeKB"] as int?,
);
}