GoogleCloudDialogflowV2InputAudioConfig.fromJson constructor

GoogleCloudDialogflowV2InputAudioConfig.fromJson(
  1. Map json_
)

Implementation

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