@classmethod
def _from_dict(cls, _dict):
    """Initialize a QueryEvidenceEntity object from a json dictionary."""
    args = {}
    if 'type' in _dict:
        args['type'] = _dict.get('type')
    if 'text' in _dict:
        args['text'] = _dict.get('text')
    if 'start_offset' in _dict:
        args['start_offset'] = _dict.get('start_offset')
    if 'end_offset' in _dict:
        args['end_offset'] = _dict.get('end_offset')
    return cls(**args)
