<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_dict(self):
 """ Convert all rules to dict and return them. """

        out = {
            property_name: getattr(self, property_name)
            for property_name in self._property_names
        }

        if "frequency" in out:
            out["frequency"] = int(out["frequency"])

        return out