processorTokenCreateRequestProcessorListFromJson function

List<ProcessorTokenCreateRequestProcessor> processorTokenCreateRequestProcessorListFromJson(
  1. List? processorTokenCreateRequestProcessor, [
  2. List<ProcessorTokenCreateRequestProcessor>? defaultValue
])

Implementation

List<enums.ProcessorTokenCreateRequestProcessor>
    processorTokenCreateRequestProcessorListFromJson(
  List? processorTokenCreateRequestProcessor, [
  List<enums.ProcessorTokenCreateRequestProcessor>? defaultValue,
]) {
  if (processorTokenCreateRequestProcessor == null) {
    return defaultValue ?? [];
  }

  return processorTokenCreateRequestProcessor
      .map((e) => processorTokenCreateRequestProcessorFromJson(e.toString()))
      .toList();
}