processingColourReplaceMethodGetSetListToJson function

List<String> processingColourReplaceMethodGetSetListToJson(
  1. List<ProcessingColourReplaceMethodGetSet>? processingColourReplaceMethodGetSet
)

Implementation

List<String> processingColourReplaceMethodGetSetListToJson(
    List<enums.ProcessingColourReplaceMethodGetSet>?
        processingColourReplaceMethodGetSet) {
  if (processingColourReplaceMethodGetSet == null) {
    return [];
  }

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