overrideTestPatternCustomGradientOrientationGetSetNullableFromJson function

OverrideTestPatternCustomGradientOrientationGetSet? overrideTestPatternCustomGradientOrientationGetSetNullableFromJson(
  1. Object? overrideTestPatternCustomGradientOrientationGetSet, [
  2. OverrideTestPatternCustomGradientOrientationGetSet? defaultValue
])

Implementation

enums.OverrideTestPatternCustomGradientOrientationGetSet?
    overrideTestPatternCustomGradientOrientationGetSetNullableFromJson(
  Object? overrideTestPatternCustomGradientOrientationGetSet, [
  enums.OverrideTestPatternCustomGradientOrientationGetSet? defaultValue,
]) {
  if (overrideTestPatternCustomGradientOrientationGetSet == null) {
    return null;
  }
  return enums.OverrideTestPatternCustomGradientOrientationGetSet.values
          .firstWhereOrNull((e) =>
              e.value == overrideTestPatternCustomGradientOrientationGetSet) ??
      defaultValue;
}