getNotificationList method
Implementation
@override
Future<Either<Failure, List<NotificationItem>>> getNotificationList() async {
try {
var result = await _httpHandler.get(
url: Api.notification.notificationList,
withAccessToken: true,
withToken: true,
);
return Right(NotificationItemDTO.fromJson(result).jsonObject);
} on Exception catch (error) {
return Left(FailureResponse.mapExceptionToFailure(error));
}
}