> Documentation index: https://developer.android.com/reference/llms.txt

# A2uiCoreCatalogDefinitionSerializer

Artifact: [androidx.a2ui:a2ui-engine](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/engine/catalog/A2uiCoreCatalogDefinitionSerializer.kt+class:androidx.a2ui.engine.catalog.A2uiCoreCatalogDefinitionSerializer) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

*** ** * ** ***


```
class A2uiCoreCatalogDefinitionSerializer
```

<br />

*** ** * ** ***

Serializes an `A2uiCatalogDefinition` into JSON Schema representations.

Traversal and JSON formatting are computed lazily and cached per serializer instance, so keep the instance to reuse the results.

## Summary

| ### Public constructors |
|---|
| `A2uiCoreCatalogDefinitionSerializer(catalog: A2uiCatalogDefinition)` |

| ### Public properties |
|---|---|
| `A2uiCatalogDefinition` | `catalog` the catalog to serialize |
| `Map<String, Any?>` | `jsonSchemaMap` The serialized JSON Schema Map representation of `catalog`. |
| `String` | `jsonSchemaString` The serialized JSON Schema string representation of `catalog`. |

## Public constructors

### A2uiCoreCatalogDefinitionSerializer

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
A2uiCoreCatalogDefinitionSerializer(catalog: A2uiCatalogDefinition)
```

| Parameters |
|---|---|
| `catalog: A2uiCatalogDefinition` | the catalog to serialize |

## Public properties

### catalog

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
val catalog: A2uiCatalogDefinition
```

the catalog to serialize

### jsonSchemaMap

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
val jsonSchemaMap: Map<String, Any?>
```

The serialized JSON Schema Map representation of `catalog`.

### jsonSchemaString

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
val jsonSchemaString: String
```

The serialized JSON Schema string representation of `catalog`.