def METHOD_NAME(self):
    res = {
        "sequence_number": self.sequence_number,
        "type": self.measure,
    }
    if not self.cc_all_versions:
        res["cc_version_min"] = self.cc_version_min
        res["cc_version_max"] = self.cc_version_max
    if not self.app_all_versions:
        res["app_version_min"] = self.app_version_min
        res["app_version_max"] = self.app_version_max
    return res