code: func ConvertBoardFromModel(request *http.Request, b workitem.Board) *app.WorkItemBoardData {
  	res := &app.WorkItemBoardData{
  		ID:   &b.ID,
  		Type: APIWorkItemBoards,
  		Links: &app.GenericLinks{
  			Related: ptr.String(rest.AbsoluteURL(request, app.WorkItemBoardHref(b.ID))),
  		},
  		Attributes: &app.WorkItemBoardAttributes{
  			Context:     b.Context,
  			ContextType: b.ContextType,
  			Name:        b.Name,
  			CreatedAt:   ptr.Time(b.CreatedAt.UTC()),
  			UpdatedAt:   ptr.Time(b.UpdatedAt.UTC()),
  		},
  		Relationships: &app.WorkItemBoardRelationships{
  			Columns: &app.RelationGenericList{
  				Data: make([]*app.GenericData, len(b.Columns)),
  			},
  			SpaceTemplate: &app.RelationGeneric{
  				Data: &app.GenericData{
  					ID:   ptr.String(b.SpaceTemplateID.String()),
  					Type: &APISpaceTemplates,
  				},
  			},
  		},
  	}
  
  	// iterate over the columns and attach them as an
  	// included relationship
  	for i, column := range b.Columns {
  		res.Relationships.Columns.Data[i] = &app.GenericData{
  			ID:   ptr.String(column.ID.String()),
  			Type: ptr.String(APIBoardColumns),
  		}
  	}
  
  	return res
  }
docs: // ConvertBoardFromModel converts WorkitemTypeBoard model to a response resource
  // object for jsonapi.org specification