GoogleCloudDialogflowV2InputAudioConfig.fromJson constructor

GoogleCloudDialogflowV2InputAudioConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2InputAudioConfig.fromJson(core.Map json_)
    : this(
        audioEncoding: json_['audioEncoding'] as core.String?,
        disableNoSpeechRecognizedEvent:
            json_['disableNoSpeechRecognizedEvent'] as core.bool?,
        enableAutomaticPunctuation:
            json_['enableAutomaticPunctuation'] as core.bool?,
        enableWordInfo: json_['enableWordInfo'] as core.bool?,
        languageCode: json_['languageCode'] as core.String?,
        model: json_['model'] as core.String?,
        modelVariant: json_['modelVariant'] as core.String?,
        optOutConformerModelMigration:
            json_['optOutConformerModelMigration'] as core.bool?,
        phraseHints: (json_['phraseHints'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        phraseSets: (json_['phraseSets'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        sampleRateHertz: json_['sampleRateHertz'] as core.int?,
        singleUtterance: json_['singleUtterance'] as core.bool?,
        speechContexts: (json_['speechContexts'] as core.List?)
            ?.map((value) => GoogleCloudDialogflowV2SpeechContext.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );