overrideTestPatternCustomGradientOrientationGetSetNullableFromJson function
OverrideTestPatternCustomGradientOrientationGetSet?
overrideTestPatternCustomGradientOrientationGetSetNullableFromJson(
- Object? overrideTestPatternCustomGradientOrientationGetSet, [
- 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;
}