SynthesizeSpeechRequest.fromJson constructor

SynthesizeSpeechRequest.fromJson(
  1. 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,
      );