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