code: func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard {
  	dash := NewDashboardFromJson(cmd.Dashboard)
  	userId := cmd.UserId
  
  	if userId == 0 {
  		userId = -1
  	}
  
  	dash.UpdatedBy = userId
  	dash.OrgId = cmd.OrgId
  	dash.PluginId = cmd.PluginId
  	dash.IsFolder = cmd.IsFolder
  	dash.FolderId = cmd.FolderId
  	dash.UpdateSlug()
  	return dash
  }
docs: // GetDashboardModel turns the command into the saveable model