notificationTypeDTONullableListFromJson function
- List? notificationTypeDTO, [
- 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();
}