bodySpeechToTextV1SpeechToTextPostFileFormatNullableFromJson function

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

Implementation

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