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