@classmethod
def from_dict(cls, dict_obj):
    """ Creates a yalchemy CheckConstraint from a dictionary.

        The dictionary has the following specification::

            {
                # The check is the string of the check we want to
                # have on the constraint. It should be verbatium
                # what the check would be in SQL
                'name': str(required),
                'check': str(required),
            }
        """
    return cls(name=dict_obj['name'], check=dict_obj['check'])
