Allow loading of rule data from a dictionary.

def from_dict(cls, rules_dict: dict, default_rule=None, raise_error=False):
        """Allow loading of rule data from a dictionary."""

        # Parse the rules stored in the dictionary
        rules = {k: _parser.parse_rule(v, raise_error)
                 for k, v in rules_dict.items()}

        return cls(rules, default_rule)