v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson function
V1SpeechToSpeechVoiceIdPostOutputFormat?
v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson(
- Object? v1SpeechToSpeechVoiceIdPostOutputFormat, [
- V1SpeechToSpeechVoiceIdPostOutputFormat? defaultValue
Implementation
enums.V1SpeechToSpeechVoiceIdPostOutputFormat?
v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson(
Object? v1SpeechToSpeechVoiceIdPostOutputFormat, [
enums.V1SpeechToSpeechVoiceIdPostOutputFormat? defaultValue,
]) {
if (v1SpeechToSpeechVoiceIdPostOutputFormat == null) {
return null;
}
return enums.V1SpeechToSpeechVoiceIdPostOutputFormat.values.firstWhereOrNull(
(e) => e.value == v1SpeechToSpeechVoiceIdPostOutputFormat) ??
defaultValue;
}