AiIndexMetadataConfigAlgorithmConfigTreeAhConfig.fromMap constructor
AiIndexMetadataConfigAlgorithmConfigTreeAhConfig.fromMap(
- Map<String, dynamic> map
)
Implementation
factory AiIndexMetadataConfigAlgorithmConfigTreeAhConfig.fromMap(Map<String, dynamic> map) {
return AiIndexMetadataConfigAlgorithmConfigTreeAhConfig(
leafNodeEmbeddingCount: (() { final guardedValue = map['leafNodeEmbeddingCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
leafNodesToSearchPercent: (() { final guardedValue = map['leafNodesToSearchPercent']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
);
}