Serializable
Parameters
T
The type of object this Serializable instance handles.
encodeToString
A function that converts an object of type T to a string representation.
decodeFromString
A function that converts a string representation back to an object of type T.