Converts domain values into a serialized representation.
domain input type to be encoded.
serialized output type produced by the encoder.
Encodes the provided input into the serialized representation.