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

# CrossmintDeserializationException

> Flutter Final Class

**Final Class**

Thrown when a JSON payload from the Crossmint API is missing a required field, contains the wrong type for a field, or otherwise cannot be parsed into a typed model. Carries the `entity` being parsed and the offending `field` so consumer code can react programmatically instead of pattern matching on the message string.

```dart theme={null}
final class CrossmintDeserializationException extends CrossmintException
```

## Constructors

### CrossmintDeserializationException

```dart theme={null}
const CrossmintDeserializationException(
  super.message, {
  this.entity,
  this.field,
  super.cause,
})
```

Creates a deserialization exception. Always carries `CrossmintErrorCode.deserializationError`.

## Properties

### entity

```dart theme={null}
final String? entity
```

The name of the model type being parsed (e.g. `"CrossmintWallet"`).

### field

```dart theme={null}
final String? field
```

The name of the field that failed to parse.
