Specification of a generic serializer.
Deserialize the given data to the corresponding term.
Serialize the given term.
@type config() :: Keyword.t()
@type t() :: module()
@callback deserialize(binary() | map(), config()) :: any()
@callback serialize(any()) :: binary() | map()