watchlistScreeningDocumentTypeListToJson function

List<String> watchlistScreeningDocumentTypeListToJson(
  1. List<WatchlistScreeningDocumentType>? watchlistScreeningDocumentType
)

Implementation

List<String> watchlistScreeningDocumentTypeListToJson(
    List<enums.WatchlistScreeningDocumentType>?
        watchlistScreeningDocumentType) {
  if (watchlistScreeningDocumentType == null) {
    return [];
  }

  return watchlistScreeningDocumentType
      .map((e) => enums.$WatchlistScreeningDocumentTypeMap[e]!)
      .toList();
}