overrideTestPatternCustomGradientOrientationGetSetListFromJson function

List<OverrideTestPatternCustomGradientOrientationGetSet> overrideTestPatternCustomGradientOrientationGetSetListFromJson(
  1. List? overrideTestPatternCustomGradientOrientationGetSet, [
  2. List<OverrideTestPatternCustomGradientOrientationGetSet>? defaultValue
])

Implementation

List<enums.OverrideTestPatternCustomGradientOrientationGetSet>
    overrideTestPatternCustomGradientOrientationGetSetListFromJson(
  List? overrideTestPatternCustomGradientOrientationGetSet, [
  List<enums.OverrideTestPatternCustomGradientOrientationGetSet>? defaultValue,
]) {
  if (overrideTestPatternCustomGradientOrientationGetSet == null) {
    return defaultValue ?? [];
  }

  return overrideTestPatternCustomGradientOrientationGetSet
      .map((e) => overrideTestPatternCustomGradientOrientationGetSetFromJson(
          e.toString()))
      .toList();
}