def dump(self):
        """Serialize the state of this InMemoryStorageEngine to a dict.

        Returns:
            dict: The serialized data.
        """

        return {
            u'storage_data': [x.asdict() for x in self.storage_data],
            u'streaming_data': [x.asdict() for x in self.streaming_data]
        }
def dump ( self ) : return { u'storage_data' : [ x . asdict ( ) for x in self . storage_data ] , u'streaming_data' : [ x . asdict ( ) for x in self . streaming_data ] }
Serialize the state of this InMemoryStorageEngine to a dict.

        Returns:
            dict: The serialized data.