GoogleCloudDialogflowV2SynthesizeSpeechConfig.fromJson constructor

GoogleCloudDialogflowV2SynthesizeSpeechConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2SynthesizeSpeechConfig.fromJson(core.Map json_)
    : this(
        effectsProfileId: json_.containsKey('effectsProfileId')
            ? (json_['effectsProfileId'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pitch: json_.containsKey('pitch')
            ? (json_['pitch'] as core.num).toDouble()
            : null,
        speakingRate: json_.containsKey('speakingRate')
            ? (json_['speakingRate'] as core.num).toDouble()
            : null,
        voice: json_.containsKey('voice')
            ? GoogleCloudDialogflowV2VoiceSelectionParams.fromJson(
                json_['voice'] as core.Map<core.String, core.dynamic>)
            : null,
        volumeGainDb: json_.containsKey('volumeGainDb')
            ? (json_['volumeGainDb'] as core.num).toDouble()
            : null,
      );