watchlistScreeningDocumentTypeListFromJson function

List<WatchlistScreeningDocumentType> watchlistScreeningDocumentTypeListFromJson(
  1. List? watchlistScreeningDocumentType, [
  2. List<WatchlistScreeningDocumentType>? defaultValue
])

Implementation

List<enums.WatchlistScreeningDocumentType>
    watchlistScreeningDocumentTypeListFromJson(
  List? watchlistScreeningDocumentType, [
  List<enums.WatchlistScreeningDocumentType>? defaultValue,
]) {
  if (watchlistScreeningDocumentType == null) {
    return defaultValue ?? [];
  }

  return watchlistScreeningDocumentType
      .map((e) => watchlistScreeningDocumentTypeFromJson(e.toString()))
      .toList();
}