code: func ConvertWorkItemLinkTypeFromModel(request *http.Request, modelLinkType link.WorkItemLinkType) app.WorkItemLinkTypeSingle {
  	spaceTemplateRelatedURL := rest.AbsoluteURL(request, app.SpaceTemplateHref(modelLinkType.SpaceTemplateID.String()))
  	spaceRelatedURL := rest.AbsoluteURL(request, app.SpaceHref(space.SystemSpace.String()))
  
  	topologyStr := modelLinkType.Topology.String()
  	var converted = app.WorkItemLinkTypeSingle{
  		Data: &app.WorkItemLinkTypeData{
  			Type: link.EndpointWorkItemLinkTypes,
  			ID:   &modelLinkType.ID,
  			Attributes: &app.WorkItemLinkTypeAttributes{
  				Name:               &modelLinkType.Name,
  				Description:        modelLinkType.Description,
  				Version:            &modelLinkType.Version,
  				CreatedAt:          &modelLinkType.CreatedAt,
  				UpdatedAt:          &modelLinkType.UpdatedAt,
  				ForwardName:        &modelLinkType.ForwardName,
  				ForwardDescription: modelLinkType.ForwardDescription,
  				ReverseName:        &modelLinkType.ReverseName,
  				ReverseDescription: modelLinkType.ReverseDescription,
  				Topology:           &topologyStr,
  			},
  			Relationships: &app.WorkItemLinkTypeRelationships{
  				Space:         app.NewSpaceRelation(space.SystemSpace, spaceRelatedURL),
  				SpaceTemplate: app.NewSpaceTemplateRelation(modelLinkType.SpaceTemplateID, spaceTemplateRelatedURL),
  			},
  		},
  	}
  	return converted
  }
docs: // ConvertWorkItemLinkTypeFromModel converts a work item link type from model to REST representation