getNotification method

Future<Either<BaseException, NotificationModel>> getNotification(
  1. String id
)

Implementation

Future<Either<BaseException, NotificationModel>> getNotification(String id) {
  return get(
    '${NotificationsUrls.getDetail}$id',
    mapper: (json) => NotificationModel.fromMap(json),
  );
}