SpeechConfig.fromJson constructor

SpeechConfig.fromJson(
  1. Object? j
)

Implementation

factory SpeechConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SpeechConfig(
    voiceConfig: switch (json['voiceConfig']) {
      null => null,
      Object $1 => VoiceConfig.fromJson($1),
    },
    multiSpeakerVoiceConfig: switch (json['multiSpeakerVoiceConfig']) {
      null => null,
      Object $1 => MultiSpeakerVoiceConfig.fromJson($1),
    },
    languageCode: switch (json['languageCode']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}