code: def asdict(self):
          
  
          return {
              'stream': self.stream,
              'device_timestamp': self.raw_time,
              'streamer_local_id': self.reading_id,
              'timestamp': self.reading_time,
              'extra_data': self.summary_data,
              'data': self.raw_data
          }
docs: Encode the data in this event into a dictionary.
  
          The dictionary returned from this method is a reference to the data
          stored in the IOTileEvent, not a copy.  It should be treated as read
          only.
  
          Returns:
              dict: A dictionary containing the information from this event.