code: def dump(self):
          
  
          reading = self.reading
          if reading is not None:
              reading = reading.asdict()
  
          return {
              u'selector': str(self.selector),
              u'reading': reading
          }
docs: Serialize the state of this stream walker.
  
          Returns:
              dict: The serialized state.