notificationTypeDTOListToJson function

List<String> notificationTypeDTOListToJson(
  1. List<NotificationTypeDTO>? notificationTypeDTO
)

Implementation

List<String> notificationTypeDTOListToJson(
    List<enums.NotificationTypeDTO>? notificationTypeDTO) {
  if (notificationTypeDTO == null) {
    return [];
  }

  return notificationTypeDTO.map((e) => e.value!).toList();
}