> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# declarativeDashboardToYaml()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/from/declarativeDashboardToYaml.ts

**Signature:**

```typescript
export declare function declarativeDashboardToYaml(entities: FromEntities, dashboard: DeclarativeAnalyticalDashboard, filterContexts?: DeclarativeFilterContext[], context?: IErrorContext): {
    content: string;
    json: Dashboard;
};
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| entities | [FromEntities](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.fromentities/index.md) |  |
| dashboard | DeclarativeAnalyticalDashboard |  |
| filterContexts | DeclarativeFilterContext[] | _(Optional)_ |
| context | [IErrorContext](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.ierrorcontext/index.md) | _(Optional)_ |

**Returns:**

{ content: string; json: Dashboard; }
