def METHOD_NAME(self):
    data = {
        "QoS": self.QoS,
        "noLocal": self.noLocal,
        "retainAsPublished": self.retainAsPublished,
        "retainHandling": self.retainHandling,
    }
    return data