---
jsApi: true
title: "[F] getEncode"

---
```ts
getEncode(program, target): EncodeData | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](Interface.Program.md) |
| `target` | [`ModelProperty`](Interface.ModelProperty.md) \| [`Scalar`](Interface.Scalar.md) |

## Returns

[`EncodeData`](Namespace.decorators.Interface.EncodeData.md) \| `undefined`
