bodySpeechToTextV1SpeechToTextPostFileFormatNullableFromJson function
BodySpeechToTextV1SpeechToTextPostFileFormat?
bodySpeechToTextV1SpeechToTextPostFileFormatNullableFromJson(
- Object? bodySpeechToTextV1SpeechToTextPostFileFormat, [
- 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;
}