code: def filter(self):
          
          if isinstance(self._filter, str):
              return self._decode_query(self._filter)
          return self._filter
docs: Get the query of this Query.
  
          The device query
  
          :return: The query of this Query.
          :rtype: dict