# SerializerProtocol

> **Class** in `langgraph.checkpoint`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/SerializerProtocol)

Protocol for serialization and deserialization of objects.

- `dumps_typed`: Serialize an object to a tuple `(type, bytes)`.
- `loads_typed`: Deserialize an object from a tuple `(type, bytes)`.

Valid implementations include the `pickle`, `json` and `orjson` modules.

## Signature

```python
SerializerProtocol()
```

## Extends

- `Protocol`

## Methods

- [`dumps_typed()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/SerializerProtocol/dumps_typed)
- [`loads_typed()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/SerializerProtocol/loads_typed)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint/langgraph/checkpoint/serde/base.py#L14)