GoogleCloudDialogflowCxV3SynthesizeSpeechConfig.fromJson constructor
GoogleCloudDialogflowCxV3SynthesizeSpeechConfig.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3SynthesizeSpeechConfig.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')
? GoogleCloudDialogflowCxV3VoiceSelectionParams.fromJson(
json_['voice'] as core.Map<core.String, core.dynamic>)
: null,
volumeGainDb: json_.containsKey('volumeGainDb')
? (json_['volumeGainDb'] as core.num).toDouble()
: null,
);