# `Commanded.Serialization.Serializer`
[🔗](https://github.com/commanded/commanded/blob/v1.4.12/lib/commanded/serialization/serializer.ex#L1)

Specification of a generic serializer.

# `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.

---

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