SpeechConfig.fromJson constructor

SpeechConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SpeechConfig.fromJson(Map<String, dynamic> json) {
  return SpeechConfig(
    voiceConfig: decode(json['voiceConfig'], VoiceConfig.fromJson),
    multiSpeakerVoiceConfig: decode(
      json['multiSpeakerVoiceConfig'],
      MultiSpeakerVoiceConfig.fromJson,
    ),
    languageCode: json['languageCode'] ?? '',
  );
}