AiIndexMetadataConfigAlgorithmConfigTreeAhConfig.fromMap constructor

AiIndexMetadataConfigAlgorithmConfigTreeAhConfig.fromMap(
  1. 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()); })(),
  );
}