v1TextToSpeechVoiceIdStreamPostOutputFormatFromJson function

V1TextToSpeechVoiceIdStreamPostOutputFormat v1TextToSpeechVoiceIdStreamPostOutputFormatFromJson(
  1. Object? v1TextToSpeechVoiceIdStreamPostOutputFormat, [
  2. V1TextToSpeechVoiceIdStreamPostOutputFormat? defaultValue
])

Implementation

enums.V1TextToSpeechVoiceIdStreamPostOutputFormat
    v1TextToSpeechVoiceIdStreamPostOutputFormatFromJson(
  Object? v1TextToSpeechVoiceIdStreamPostOutputFormat, [
  enums.V1TextToSpeechVoiceIdStreamPostOutputFormat? defaultValue,
]) {
  return enums.V1TextToSpeechVoiceIdStreamPostOutputFormat.values
          .firstWhereOrNull(
              (e) => e.value == v1TextToSpeechVoiceIdStreamPostOutputFormat) ??
      defaultValue ??
      enums.V1TextToSpeechVoiceIdStreamPostOutputFormat.swaggerGeneratedUnknown;
}