Converts the CookieState] to Json and vice versa.
Returns a serialized value of the state.
Returns a serialized value of the state.
The state to serialize.
A serialized value of the state.
Unserializes the state.
Unserializes the state.
The string representation of the state.
Some state on success, otherwise None.
The cookie state companion object.