@classmethod
def _from_dict(cls, _dict):
    """Initialize a DocInfo object from a json dictionary."""
    args = {}
    if 'html' in _dict:
        args['html'] = _dict.get('html')
    if 'title' in _dict:
        args['title'] = _dict.get('title')
    if 'hash' in _dict:
        args['hash'] = _dict.get('hash')
    return cls(**args)
