GoogleCloudDialogflowCxV3beta1InputAudioConfig.fromMap constructor

GoogleCloudDialogflowCxV3beta1InputAudioConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudDialogflowCxV3beta1InputAudioConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowCxV3beta1InputAudioConfig(
    audioEncoding: pulumi.Input.fromValue(GoogleCloudDialogflowCxV3beta1InputAudioConfigAudioEncoding.fromValue(map['audioEncoding']! as String)),
    bargeInConfig: (() { final guardedValue = map['bargeInConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowCxV3beta1BargeInConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    enableWordInfo: (() { final guardedValue = map['enableWordInfo']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    model: (() { final guardedValue = map['model']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    modelVariant: (() { final guardedValue = map['modelVariant']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowCxV3beta1InputAudioConfigModelVariant.fromValue(guardedValue as String)); })(),
    phraseHints: (() { final guardedValue = map['phraseHints']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    sampleRateHertz: (() { final guardedValue = map['sampleRateHertz']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    singleUtterance: (() { final guardedValue = map['singleUtterance']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
  );
}