code: def AsDict(self):
      
      source_type_attributes = {'query': self.query}
      if self.base_object:
        source_type_attributes['base_object'] = self.base_object
  
      return source_type_attributes
docs: Represents a source type as a dictionary.
  
      Returns:
        dict[str, str]: source type attributes.