Serializer
Contract for converting domain entities to/from a data storage format.
Implementations must ensure that deserialize(serialize(input)) = input (round-trip integrity).
This contract was based on roby2014 - uni-projects/TDS
Parameters
T
The domain entity type to be serialized/deserialized.
U
The data format type for storage (e.g., String, ByteArray, etc.).