code: func (s *Scheme) DecodeToVersion(data []byte, gv unversioned.GroupVersion) (Object, error) {
  	obj, err := s.raw.DecodeToVersion(data, gv)
  	if err != nil {
  		return nil, err
  	}
  	return obj.(Object), nil
  }
docs: // DecodeToVersion converts a YAML or JSON string back into a pointer to an api
  // object.  Deduces the type based upon the APIVersion and Kind fields, which
  // are set by Encode. Only versioned objects (APIVersion != "") are
  // accepted. The object will be converted into the in-memory versioned type
  // requested before being returned.