v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson function

V1SpeechToSpeechVoiceIdPostOutputFormat? v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson(
  1. Object? v1SpeechToSpeechVoiceIdPostOutputFormat, [
  2. V1SpeechToSpeechVoiceIdPostOutputFormat? defaultValue
])

Implementation

enums.V1SpeechToSpeechVoiceIdPostOutputFormat?
    v1SpeechToSpeechVoiceIdPostOutputFormatNullableFromJson(
  Object? v1SpeechToSpeechVoiceIdPostOutputFormat, [
  enums.V1SpeechToSpeechVoiceIdPostOutputFormat? defaultValue,
]) {
  if (v1SpeechToSpeechVoiceIdPostOutputFormat == null) {
    return null;
  }
  return enums.V1SpeechToSpeechVoiceIdPostOutputFormat.values.firstWhereOrNull(
          (e) => e.value == v1SpeechToSpeechVoiceIdPostOutputFormat) ??
      defaultValue;
}