Serializer contract for converting values to a serialized representation.
Transforms runtime objects into a serializable format (usually JSON-compatible).
Difference from ICodec (Encoder):
Serializer: Works with arbitrary plain data (no custom class instances)
Encoder: Can be specialized for specific types
Common use cases:
Convert domain objects to JSON for API responses
Transform data structures for storage/caching
Prepare data for transmission over the network
Type Parameters
TSerializedValue = unknown
The serialized output format (usually JSON-compatible, defaults to unknown)
Serializer contract for converting values to a serialized representation. Transforms runtime objects into a serializable format (usually JSON-compatible).
Difference from ICodec (Encoder):
Common use cases: