This class does the actual work behind the Optional companion function. In addition to
implementing the Serializable interface it also stores the Serializable instance of the
payload of the Optional and uses it to provide a decoder for the OptionalInner type.
This class does the actual work behind the Optional companion function. In addition to implementing the Serializable interface it also stores the Serializable instance of the payload of the Optional and uses it to provide a decoder for the OptionalInner type.