SpeakerVoiceConfig.fromJson constructor
SpeakerVoiceConfig.fromJson(
- Object? j
Implementation
factory SpeakerVoiceConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SpeakerVoiceConfig(
speaker: switch (json['speaker']) {
null => '',
Object $1 => decodeString($1),
},
voiceConfig: switch (json['voiceConfig']) {
null => null,
Object $1 => VoiceConfig.fromJson($1),
},
);
}