# DowncastConversionApi

interface

Conversion interface that is registered for given [`DowncastDispatcher`](module_engine_conversion_downcastdispatcher-DowncastDispatcher.md) and is passed as one of parameters when [dispatcher](module_engine_conversion_downcastdispatcher-DowncastDispatcher.md) fires its events.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L967)

<a id="properties">

## Properties

<a id="member-consumable">

### `consumable: ModelConsumable`

Stores the information about what parts of a processed model item are still waiting to be handled. After a piece of a model item was converted, an appropriate consumable value should be [consumed](module_engine_conversion_modelconsumable-ModelConsumable.md#function-consume).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L979)

<a id="member-dispatcher">

### `dispatcher: DowncastDispatcher`

The [`DowncastDispatcher`](module_engine_conversion_downcastdispatcher-DowncastDispatcher.md) instance.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L972)

<a id="member-mapper">

### `mapper: Mapper`

The [`Mapper`](module_engine_conversion_mapper-Mapper.md) instance.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L984)

<a id="member-options">

### `options: Record<string, unknown>`

An object with an additional configuration which can be used during the conversion process. Available only for data downcast conversion.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L1000)

<a id="member-schema">

### `schema: ModelSchema`

The [`ModelSchema`](module_engine_model_schema-ModelSchema.md) instance set for the model that is downcast.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L989)

<a id="member-writer">

### `writer: ViewDowncastWriter`

The [`ViewDowncastWriter`](module_engine_view_downcastwriter-ViewDowncastWriter.md) instance used to manipulate the data during conversion.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L994)

<a id="methods">

## Methods

<a id="function-canReuseView">

### `canReuseView( element ) → boolean`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L1023)

#### Parameters

* `element: ViewElement`

#### Returns

* `boolean`

<a id="function-convertAttributes">

### `convertAttributes( item ) → void`

Triggers conversion of attributes of a specified item.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L1022)

#### Parameters

* `item: ModelItem`

  The model item to trigger attribute conversion on.

#### Returns

* `void`

<a id="function-convertChildren">

### `convertChildren( element ) → void`

Triggers conversion of children of a specified element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L1015)

#### Parameters

* `element: ModelElement`

  The model element to trigger children insert conversion on.

#### Returns

* `void`

<a id="function-convertItem">

### `convertItem( item ) → void`

Triggers conversion of a specified item. This conversion is triggered within (as a separate process of) the parent conversion.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcastdispatcher.ts#L1008)

#### Parameters

* `item: ModelItem`

  The model item to trigger nested insert conversion on.

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
