code: def dict(self):
      '''Returns a dictionary representing this query.'''
      d = dict()
      d['key'] = str(self.key)
  
      if self.limit is not None:
        d['limit'] = self.limit
      if self.offset > 0:
        d['offset'] = self.offset
      if self.offset_key:
        d['offset_key'] = str(self.offset_key)
      if len(self.filters) > 0:
        d['filter'] = [[f.field, f.op, f.value] for f in self.filters]
      if len(self.orders) > 0:
        d['order'] = [str(o) for o in self.orders]
  
      return f dict(self):
      '''Returns a dictionary representing this query.'''
      d = dict()
      d['key'] = str(self.key)
  
      if self.limit is not None:
        d['limit'] = self.limit
      if self.offset > 0:
        d['offset'] = self.offset
      if self.offset_key:
        d['offset_key'] = str(self.offset_key)
      if len(self.filters) > 0:
        d['filter'] = [[f.field, f.op, f.value] for f in self.filters]
      if len(self.orders) > 0:
        d['order'] = [str(o) for o in self.orders]
  
      return d
docs: Returns a dictionary representing this query.