@classmethod
def deserialize(cls, serializer, s_state):
    """
        Serializes the instance using the provided serializer.

        :type  serializer: :class:`SpiffWorkflow.serializer.base.Serializer`
        :param serializer: The serializer to use.
        :rtype:  object
        :returns: The serialized object.
        """
    return serializer.deserialize_operator(s_state)
