code: public Link link(String name, BaseAsset asset, String url,
                       boolean onMenu, Map<String, Object> attributes) {
          Link link = new Link(instance);
  
          link.setAsset(asset);
          link.setName(name);
          link.setURL(url);
          link.setOnMenu(onMenu);
          addAttributes(link, attributes);
          link.save();
          return link;
      }
docs: Create a new link with a name.
  
  @param name       The initial name of the link.
  @param asset      The asset this link belongs to.
  @param url        The URL of the link.
  @param onMenu     True to show on the asset's detail page menu.
  @param attributes additional attributes for the Link.
  @return A newly minted Link that exists in the VersionOne system.