# `EventStore.Serializer`
[🔗](https://github.com/commanded/eventstore/blob/v1.4.10/lib/event_store/serializer.ex#L1)

Specification of a serializer to convert between an Elixir term and its
representation in the database.

# `config`

```elixir
@type config() :: Keyword.t()
```

# `t`

```elixir
@type t() :: module()
```

# `deserialize`

```elixir
@callback deserialize(binary() | map(), config()) :: any()
```

Deserialize the given data to the corresponding term.

# `serialize`

```elixir
@callback serialize(any()) :: binary() | map()
```

Serialize the given term to a representation that can be stored by the
database.

# `serializer`

Get the serializer module from the given config for the event store.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
