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