overrideTestPatternCustomGradientOrientationGetSetFromJson function

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

Implementation

enums.OverrideTestPatternCustomGradientOrientationGetSet
    overrideTestPatternCustomGradientOrientationGetSetFromJson(
  Object? overrideTestPatternCustomGradientOrientationGetSet, [
  enums.OverrideTestPatternCustomGradientOrientationGetSet? defaultValue,
]) {
  return enums.OverrideTestPatternCustomGradientOrientationGetSet.values
          .firstWhereOrNull((e) =>
              e.value.toString().toLowerCase() ==
              overrideTestPatternCustomGradientOrientationGetSet
                  ?.toString()
                  .toLowerCase()) ??
      defaultValue ??
      enums.OverrideTestPatternCustomGradientOrientationGetSet
          .swaggerGeneratedUnknown;
}