# Class: `webpack.SerializerMiddleware`

## Constructors

### `new SerializerMiddleware()`

* Returns: {SerializerMiddleware<DeserializedType, SerializedType, Context>}

## Methods

### `deserialize(data, context)`

* `data` {SerializedType}
* `context` {Context}
* Returns: {DeserializedType | Promise<DeserializedType>}

Restores this instance from the provided deserializer context.

***

### `serialize(data, context)`

* `data` {DeserializedType}
* `context` {Context}
* Returns: {SerializedType | Promise<SerializedType> | null}

Serializes this instance into the provided serializer context.
