notificationTypeDTONullableListFromJson function

List<NotificationTypeDTO>? notificationTypeDTONullableListFromJson(
  1. List? notificationTypeDTO, [
  2. List<NotificationTypeDTO>? defaultValue
])

Implementation

List<enums.NotificationTypeDTO>? notificationTypeDTONullableListFromJson(
  List? notificationTypeDTO, [
  List<enums.NotificationTypeDTO>? defaultValue,
]) {
  if (notificationTypeDTO == null) {
    return defaultValue;
  }

  return notificationTypeDTO
      .map((e) => notificationTypeDTOFromJson(e.toString()))
      .toList();
}