overrideTestPatternCustomGradientOrientationGetSetListToJson function

List<String> overrideTestPatternCustomGradientOrientationGetSetListToJson(
  1. List<OverrideTestPatternCustomGradientOrientationGetSet>? overrideTestPatternCustomGradientOrientationGetSet
)

Implementation

List<String> overrideTestPatternCustomGradientOrientationGetSetListToJson(
    List<enums.OverrideTestPatternCustomGradientOrientationGetSet>?
        overrideTestPatternCustomGradientOrientationGetSet) {
  if (overrideTestPatternCustomGradientOrientationGetSet == null) {
    return [];
  }

  return overrideTestPatternCustomGradientOrientationGetSet
      .map((e) => e.value!)
      .toList();
}