@classmethod
def serialize(cls, conversation):
    """
        Serialize a conversation instance for storage.
        """
    return {'namespace': conversation.namespace, 'units': sorted(
        conversation.units), 'scope': conversation.scope}
