> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

# DefinedDataType

> The codegen-decoded form of any of these: what DamlRecord describes, a Variant without type parameters, or any DamlEnum. Its encoded counterpart is Value, which can be produced with toValue().

## DefinedDataType - stable

Upstream docs: [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html)

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
public interface DefinedDataType<T>
```

**Members**

| Docs                                                                                                                                     | Member          | Introduced | Deprecated | Removed |
| ---------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------- | ---------- | ------- |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#jsonEncoder%28%29) | `jsonEncoder()` | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#toJson%28%29)      | `toJson()`      | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#toValue%28%29)     | `toValue()`     | `3.4.8`    | -          | -       |
