SynthesizeSpeechRequest.fromJson constructor
SynthesizeSpeechRequest.fromJson(
- Map json_
Implementation
SynthesizeSpeechRequest.fromJson(core.Map json_)
: this(
audioConfig: json_.containsKey('audioConfig')
? AudioConfig.fromJson(
json_['audioConfig'] as core.Map<core.String, core.dynamic>)
: null,
input: json_.containsKey('input')
? SynthesisInput.fromJson(
json_['input'] as core.Map<core.String, core.dynamic>)
: null,
voice: json_.containsKey('voice')
? VoiceSelectionParams.fromJson(
json_['voice'] as core.Map<core.String, core.dynamic>)
: null,
);