webApiIncludeExcludeAllNullableFromJson function
WebApiIncludeExcludeAll?
webApiIncludeExcludeAllNullableFromJson(
- Object? webApiIncludeExcludeAll, [
- WebApiIncludeExcludeAll? defaultValue
Implementation
enums.WebApiIncludeExcludeAll? webApiIncludeExcludeAllNullableFromJson(
Object? webApiIncludeExcludeAll, [
enums.WebApiIncludeExcludeAll? defaultValue,
]) {
if (webApiIncludeExcludeAll == null) {
return null;
}
return enums.WebApiIncludeExcludeAll.values.firstWhereOrNull(
(e) => e.value == webApiIncludeExcludeAll,
) ??
defaultValue;
}