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