v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatNullableFromJson function

V1TextToSpeechVoiceIdWithTimestampsPostOutputFormat? v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatNullableFromJson(
  1. Object? v1TextToSpeechVoiceIdWithTimestampsPostOutputFormat, [
  2. 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;
}