code: func ConvertLinkFromModel(request *http.Request, t link.WorkItemLink) app.WorkItemLinkSingle {
  	linkSelfURL := rest.AbsoluteURL(request, app.WorkItemLinkHref(t.ID.String()))
  	linkTypeRelatedURL := rest.AbsoluteURL(request, app.WorkItemLinkTypeHref(t.LinkTypeID.String()))
  
  	sourceRelatedURL := rest.AbsoluteURL(request, app.WorkitemHref(t.SourceID.String()))
  	targetRelatedURL := rest.AbsoluteURL(request, app.WorkitemHref(t.TargetID.String()))
  
  	var converted = app.WorkItemLinkSingle{
  		Data: &app.WorkItemLinkData{
  			Type: link.EndpointWorkItemLinks,
  			ID:   &t.ID,
  			Attributes: &app.WorkItemLinkAttributes{
  				CreatedAt: &t.CreatedAt,
  				UpdatedAt: &t.UpdatedAt,
  				Version:   &t.Version,
  			},
  			Links: &app.GenericLinks{
  				Self: &linkSelfURL,
  			},
  			Relationships: &app.WorkItemLinkRelationships{
  				LinkType: &app.RelationWorkItemLinkType{
  					Data: &app.RelationWorkItemLinkTypeData{
  						Type: link.EndpointWorkItemLinkTypes,
  						ID:   t.LinkTypeID,
  					},
  					Links: &app.GenericLinks{
  						Self: &linkTypeRelatedURL,
  					},
  				},
  				Source: &app.RelationWorkItem{
  					Data: &app.RelationWorkItemData{
  						Type: link.EndpointWorkItems,
  						ID:   t.SourceID,
  					},
  					Links: &app.GenericLinks{
  						Related: &sourceRelatedURL,
  					},
  				},
  				Target: &app.RelationWorkItem{
  					Data: &app.RelationWorkItemData{
  						Type: link.EndpointWorkItems,
  						ID:   t.TargetID,
  					},
  					Links: &app.GenericLinks{
  						Related: &targetRelatedURL,
  					},
  				},
  			},
  		},
  	}
  	return converted
  }
docs: // ConvertLinkFromModel converts a work item from model to REST representation