Returns this `Flags` object's fields as a dictionary.

def to_dict(self):
        """
        Returns this `Flags` object's fields as a dictionary.
        """
        return dict((k, self.get(k)) for k in self.flags.keys())