Decodes the wire representation into the entity based on the data format.
Encodes the given input into the wire representation based on the data format.