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