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