webApiIncludeExcludeAllFromJson function

WebApiIncludeExcludeAll webApiIncludeExcludeAllFromJson(
  1. Object? webApiIncludeExcludeAll, [
  2. WebApiIncludeExcludeAll? defaultValue
])

Implementation

enums.WebApiIncludeExcludeAll webApiIncludeExcludeAllFromJson(
  Object? webApiIncludeExcludeAll, [
  enums.WebApiIncludeExcludeAll? defaultValue,
]) {
  return enums.WebApiIncludeExcludeAll.values.firstWhereOrNull(
        (e) => e.value == webApiIncludeExcludeAll,
      ) ??
      defaultValue ??
      enums.WebApiIncludeExcludeAll.swaggerGeneratedUnknown;
}