code: def FromDict(cls, obj):
          
  
          timestamp = obj.get('timestamp')
          if timestamp is not None:
              import dateutil.parser
              timestamp = dateutil.parser.parse(timestamp)
  
          return IOTileEvent(obj.get('device_timestamp'), obj.get('stream'), obj.get('extra_data'),
                             obj.get('data'), reading_id=obj.get('streamer_local_id'), reading_time=timestamp)
docs: Create an IOTileEvent from the result of a previous call to asdict().
  
          Args:
              obj (dict): A dictionary produced by a call to IOTileEvent.asdict()
  
          Returns:
              IOTileEvent: The converted IOTileEvent object.