v1TextToSpeechVoiceIdPostOutputFormatNullableFromJson function

V1TextToSpeechVoiceIdPostOutputFormat? v1TextToSpeechVoiceIdPostOutputFormatNullableFromJson(
  1. Object? v1TextToSpeechVoiceIdPostOutputFormat, [
  2. V1TextToSpeechVoiceIdPostOutputFormat? defaultValue
])

Implementation

enums.V1TextToSpeechVoiceIdPostOutputFormat?
    v1TextToSpeechVoiceIdPostOutputFormatNullableFromJson(
  Object? v1TextToSpeechVoiceIdPostOutputFormat, [
  enums.V1TextToSpeechVoiceIdPostOutputFormat? defaultValue,
]) {
  if (v1TextToSpeechVoiceIdPostOutputFormat == null) {
    return null;
  }
  return enums.V1TextToSpeechVoiceIdPostOutputFormat.values.firstWhereOrNull(
          (e) => e.value == v1TextToSpeechVoiceIdPostOutputFormat) ??
      defaultValue;
}