@classmethod
def _from_dict(cls, _dict):
    """Initialize a WordError object from a json dictionary."""
    args = {}
    if 'element' in _dict:
        args['element'] = _dict.get('element')
    else:
        raise ValueError(
            "Required property 'element' not present in WordError JSON")
    return cls(**args)
