Converts serialized payloads into strongly typed domain values.
serialized input type the decoder consumes.
domain output type produced after decoding.
Attempts to decode the provided input.