trendV2PathParamFromJson function

TrendV2PathParam trendV2PathParamFromJson(
  1. Object? trendV2PathParam, [
  2. TrendV2PathParam? defaultValue
])

Implementation

enums.TrendV2PathParam trendV2PathParamFromJson(
  Object? trendV2PathParam, [
  enums.TrendV2PathParam? defaultValue,
]) {
  return enums.TrendV2PathParam.values
          .firstWhereOrNull((e) => e.value == trendV2PathParam) ??
      defaultValue ??
      enums.TrendV2PathParam.swaggerGeneratedUnknown;
}