bodySpeechToTextV1SpeechToTextPostTimestampsGranularityFromJson function

BodySpeechToTextV1SpeechToTextPostTimestampsGranularity bodySpeechToTextV1SpeechToTextPostTimestampsGranularityFromJson(
  1. Object? bodySpeechToTextV1SpeechToTextPostTimestampsGranularity, [
  2. BodySpeechToTextV1SpeechToTextPostTimestampsGranularity? defaultValue
])

Implementation

enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity
    bodySpeechToTextV1SpeechToTextPostTimestampsGranularityFromJson(
  Object? bodySpeechToTextV1SpeechToTextPostTimestampsGranularity, [
  enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity? defaultValue,
]) {
  return enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity.values
          .firstWhereOrNull((e) =>
              e.value ==
              bodySpeechToTextV1SpeechToTextPostTimestampsGranularity) ??
      defaultValue ??
      enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity
          .swaggerGeneratedUnknown;
}