def METHOD_NAME(self):
    result = {
        "name": self.name,
        "webhook": self.webhook,
        "user": self.user,
        "password": self.password,
        "authorization_header": self.authorization_header,
        "data": self.data,
        "forward_whole_payload": self.forward_whole_payload,
    }
    if self.team:
        result["team"] = self.team.name
        result["team_id"] = self.team.public_primary_key
    else:
        result["team"] = "General"
    return result