v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatNullableFromJson function

V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat? v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatNullableFromJson(
  1. Object? v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat, [
  2. 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;
}