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