code: func resourceInfoToObject(info *resource.Info, c *Client) runtime.Object {
  	internalObj, err := asInternal(info)
  	if err != nil {
  		// If the problem is just that the resource is not registered, don't print any
  		// error. This is normal for custom resources.
  		if !runtime.IsNotRegisteredError(err) {
  			c.Log("Warning: conversion to internal type failed: %v", err)
  		}
  		// Add the unstructured object in this situation. It will still get listed, just
  		// with less information.
  		return info.Object
  	}
  
  	return internalObj
  }
docs: // Return the resource info as internal