overrideTestPatternTypeGetSetNullableFromJson function

OverrideTestPatternTypeGetSet? overrideTestPatternTypeGetSetNullableFromJson(
  1. Object? overrideTestPatternTypeGetSet, [
  2. 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;
}