Add docstring to the serialization hook