> ## 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.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# 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().

[Back to package](./index)

com.daml.ledger.javaapi.data.codegen

# 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().

Java

Package
com.daml.ledger.javaapi.data.codegen

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

## Signature

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

## Members

| Member | Lifecycle | Upstream docs |
| - | - | - |
| `jsonEncoder()` | - | [Open](https://javadoc.io/doc/com.daml/bindings-java/3.7.5/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#jsonEncoder%28%29) |
| `toJson()` | - | [Open](https://javadoc.io/doc/com.daml/bindings-java/3.7.5/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#toJson%28%29) |
| `toValue()` | - | [Open](https://javadoc.io/doc/com.daml/bindings-java/3.7.5/com/daml/ledger/javaapi/data/codegen/DefinedDataType.html#toValue%28%29) |
