processingColourReplaceMethodGetSetNullableListFromJson function

List<ProcessingColourReplaceMethodGetSet>? processingColourReplaceMethodGetSetNullableListFromJson(
  1. List? processingColourReplaceMethodGetSet, [
  2. List<ProcessingColourReplaceMethodGetSet>? defaultValue
])

Implementation

List<enums.ProcessingColourReplaceMethodGetSet>?
    processingColourReplaceMethodGetSetNullableListFromJson(
  List? processingColourReplaceMethodGetSet, [
  List<enums.ProcessingColourReplaceMethodGetSet>? defaultValue,
]) {
  if (processingColourReplaceMethodGetSet == null) {
    return defaultValue;
  }

  return processingColourReplaceMethodGetSet
      .map((e) => processingColourReplaceMethodGetSetFromJson(e.toString()))
      .toList();
}