bodySpeechToTextV1SpeechToTextPostFileFormatFromJson function

BodySpeechToTextV1SpeechToTextPostFileFormat bodySpeechToTextV1SpeechToTextPostFileFormatFromJson(
  1. Object? bodySpeechToTextV1SpeechToTextPostFileFormat, [
  2. BodySpeechToTextV1SpeechToTextPostFileFormat? defaultValue
])

Implementation

enums.BodySpeechToTextV1SpeechToTextPostFileFormat
    bodySpeechToTextV1SpeechToTextPostFileFormatFromJson(
  Object? bodySpeechToTextV1SpeechToTextPostFileFormat, [
  enums.BodySpeechToTextV1SpeechToTextPostFileFormat? defaultValue,
]) {
  return enums.BodySpeechToTextV1SpeechToTextPostFileFormat.values
          .firstWhereOrNull(
              (e) => e.value == bodySpeechToTextV1SpeechToTextPostFileFormat) ??
      defaultValue ??
      enums
          .BodySpeechToTextV1SpeechToTextPostFileFormat.swaggerGeneratedUnknown;
}