GoogleCloudDialogflowV2SpeechToTextConfig.fromMap constructor
GoogleCloudDialogflowV2SpeechToTextConfig.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2SpeechToTextConfig.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2SpeechToTextConfig(
model: (() { final guardedValue = map['model']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
speechModelVariant: (() { final guardedValue = map['speechModelVariant']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2SpeechToTextConfigSpeechModelVariant.fromValue(guardedValue as String)); })(),
useTimeoutBasedEndpointing: (() { final guardedValue = map['useTimeoutBasedEndpointing']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
);
}