Method accepts a valid serialized string and based on the accepted class it deserializes it.
Method accepts a valid serialized string and based on the accepted class it deserializes it. If the expected class does not match expectations, deserialization fails with an exception. Also, if the string is not valid representation, it also fails.
expected class
valid serialized entity
deserialized object or exception
Method accepts a value to be serialized into the string.
Method accepts a value to be serialized into the string. Based on the implementation, it returns a string representing the value or provides an exception, if the computation fails.
value to be serialized
serialized string or exception
Provides a encode and decode methods to serialize objects into strings and vise versa.