notificationTypeDTOListToJson function
- List<
NotificationTypeDTO> ? notificationTypeDTO
Implementation
List<String> notificationTypeDTOListToJson(
List<enums.NotificationTypeDTO>? notificationTypeDTO) {
if (notificationTypeDTO == null) {
return [];
}
return notificationTypeDTO.map((e) => e.value!).toList();
}