# Backlog

This class defines the Backlog of a [[Book]].

A Backlog is a list of pending tasks in a Book

## Extends

- `Resource`\<`bkper.Backlog`\>

### Constructor

```ts
new Backlog(payload?, config?): Backlog;
```

#### Parameters

| Parameter | Type |
| :------ | :------ |
| `payload?` | `Backlog` |
| `config?` | [`Config`](https://bkper.com/docs/api/bkper-js/interfaces/config.md) |

#### Returns

`Backlog`

#### Overrides

```ts
Resource<bkper.Backlog>.constructor
```

### payload

```ts
payload: Backlog;
```

The underlying payload data for this resource

#### Inherited from

```ts
Resource.payload
```

### getCount()

```ts
getCount(): number | undefined;
```

Returns the number of pending tasks in this Backlog.

#### Returns

`number` \| `undefined`

The number of tasks in the Backlog, or undefined if not available.

***

### json()

```ts
json(): Backlog;
```

Gets an immutable copy of the JSON payload for this resource.

#### Returns

`Backlog`

An immutable copy of the json payload

#### Inherited from

```ts
Resource.json
```
