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