***

title: toDict
slug: /reference/typescript/agents/pom-builder/to-dict
description: Convert the POM to a list of section data objects.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Convert the POM to a list of section data objects. Useful for serializing the POM
for storage or passing to other components.

## **Parameters**

None.

## **Returns**

`PomSectionData[]` -- Serialized section list. Each object contains keys
like `"title"`, `"body"`, and `"bullets"`.

## **Example**

```typescript {6}
import { PomBuilder } from '@signalwire/sdk';

const pom = new PomBuilder();
pom.addSection('Role', { body: 'You are a helpful assistant.' });

const data = pom.toDict();
console.log(JSON.stringify(data, null, 2));
```