GoogleCloudDialogflowV2TextToSpeechSettings.fromJson constructor

GoogleCloudDialogflowV2TextToSpeechSettings.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2TextToSpeechSettings.fromJson(core.Map json_)
    : this(
        enableTextToSpeech: json_.containsKey('enableTextToSpeech')
            ? json_['enableTextToSpeech'] as core.bool
            : null,
        outputAudioEncoding: json_.containsKey('outputAudioEncoding')
            ? json_['outputAudioEncoding'] as core.String
            : null,
        sampleRateHertz: json_.containsKey('sampleRateHertz')
            ? json_['sampleRateHertz'] as core.int
            : null,
        synthesizeSpeechConfigs: json_.containsKey('synthesizeSpeechConfigs')
            ? (json_['synthesizeSpeechConfigs']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudDialogflowV2SynthesizeSpeechConfig.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );