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