@classmethod
def _from_dict(cls, _dict):
    """Initialize a NluEnrichmentEntities object from a json dictionary."""
    args = {}
    if 'sentiment' in _dict:
        args['sentiment'] = _dict.get('sentiment')
    if 'emotion' in _dict:
        args['emotion'] = _dict.get('emotion')
    if 'limit' in _dict:
        args['limit'] = _dict.get('limit')
    if 'mentions' in _dict:
        args['mentions'] = _dict.get('mentions')
    if 'mention_types' in _dict:
        args['mention_types'] = _dict.get('mention_types')
    if 'sentence_locations' in _dict:
        args['sentence_locations'] = _dict.get('sentence_locations')
    if 'model' in _dict:
        args['model'] = _dict.get('model')
    return cls(**args)
