watchlistScreeningDocumentTypeNullableListFromJson function

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

Implementation

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

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