def METHOD_NAME(cls, rest_obj: DeploymentValidateResult) -> MutableValidationResult:
    """Create a validation result from a rest object. Note that the created validation result does not have
    target_obj so should only be used for merging.
    :param rest_obj: The Deployment Validate REST obj
    :type rest_obj: DeploymentValidateResult
    :return: The validation result created from rest_obj
    :rtype: MutableValidationResult
    """
    if not rest_obj.error or not rest_obj.error.details:
        return ValidationResultBuilder.success()
    result = MutableValidationResult(target_obj=None)
    details: typing.List[ErrorResponse] = rest_obj.error.details
    for detail in details:
        result.append_error(
            message=detail.message,
            yaml_path=detail.target.replace("/", "."),
            error_code=detail.code,
            # will always be UserError for now, not sure if innerError can be passed back
        )
    return result