docs: def to_json(self) -> Dict:
          """Return this query as a JSON object."""
          rv = {
              'network_ids': self.network_ids,
          }
  
          if self.seeding:
              rv['seeding'] = self.seeding.to_json()
  
          if self.pipeline:
              rv['pipeline'] = self.pipeline.to_json()
  
          return rv