func ConvertLinkFromModel(t link.WorkItemLink) app.WorkItemLinkSingle {
	var converted = app.WorkItemLinkSingle{
		Data: &app.WorkItemLinkData{
			Type: link.EndpointWorkItemLinks,
			ID:   &t.ID,
			Attributes: &app.WorkItemLinkAttributes{
				Version: &t.Version,
			},
			Relationships: &app.WorkItemLinkRelationships{
				LinkType: &app.RelationWorkItemLinkType{
					Data: &app.RelationWorkItemLinkTypeData{
						Type: link.EndpointWorkItemLinkTypes,
						ID:   t.LinkTypeID,
					},
				},
				Source: &app.RelationWorkItem{
					Data: &app.RelationWorkItemData{
						Type: link.EndpointWorkItems,
						ID:   strconv.FormatUint(t.SourceID, 10),
					},
				},
				Target: &app.RelationWorkItem{
					Data: &app.RelationWorkItemData{
						Type: link.EndpointWorkItems,
						ID:   strconv.FormatUint(t.TargetID, 10),
					},
				},
			},
		},
	}
	return converted
}
// ConvertLinkFromModel converts a work item from model to REST representation
ConvertLinkFromModel converts a work item from model to REST representation
// ConvertLinkFromModel converts a work item from model to REST representation
func ConvertLinkFromModel(t link.WorkItemLink) app.WorkItemLinkSingle {
	var converted = app.WorkItemLinkSingle{
		Data: &app.WorkItemLinkData{
			Type: link.EndpointWorkItemLinks,
			ID:   &t.ID,
			Attributes: &app.WorkItemLinkAttributes{
				Version: &t.Version,
			},
			Relationships: &app.WorkItemLinkRelationships{
				LinkType: &app.RelationWorkItemLinkType{
					Data: &app.RelationWorkItemLinkTypeData{
						Type: link.EndpointWorkItemLinkTypes,
						ID:   t.LinkTypeID,
					},
				},
				Source: &app.RelationWorkItem{
					Data: &app.RelationWorkItemData{
						Type: link.EndpointWorkItems,
						ID:   strconv.FormatUint(t.SourceID, 10),
					},
				},
				Target: &app.RelationWorkItem{
					Data: &app.RelationWorkItemData{
						Type: link.EndpointWorkItems,
						ID:   strconv.FormatUint(t.TargetID, 10),
					},
				},
			},
		},
	}
	return converted
}
func ConvertLinkFromModel ( t link . WorkItemLink ) app . WorkItemLinkSingle { var converted = app . WorkItemLinkSingle { Data : & app . WorkItemLinkData { Type : link . EndpointWorkItemLinks , ID : & t . ID , Attributes : & app . WorkItemLinkAttributes { Version : & t . Version , } , Relationships : & app . WorkItemLinkRelationships { LinkType : & app . RelationWorkItemLinkType { Data : & app . RelationWorkItemLinkTypeData { Type : link . EndpointWorkItemLinkTypes , ID : t . LinkTypeID , } , } , Source : & app . RelationWorkItem { Data : & app . RelationWorkItemData { Type : link . EndpointWorkItems , ID : strconv . FormatUint ( t . SourceID , 10 ) , } , } , Target : & app . RelationWorkItem { Data : & app . RelationWorkItemData { Type : link . EndpointWorkItems , ID : strconv . FormatUint ( t . TargetID , 10 ) , } , } , } , } , } return converted }
ConvertLinkFromModel converts a work item from model to REST representation
ConvertLinkFromModel converts a work item from model to REST representation