code: func ConvertFieldTypeFromModel(t workitem.FieldType) app.FieldType {
  	result := app.FieldType{}
  	result.Kind = string(t.GetKind())
  	switch modelFieldType := t.(type) {
  	case workitem.ListType:
  		result.ComponentType = ptr.String(string(modelFieldType.ComponentType.GetKind()))
  		if modelFieldType.DefaultValue != nil {
  			result.DefaultValue = &modelFieldType.DefaultValue
  		}
  	case workitem.EnumType:
  		result.BaseType = ptr.String(string(modelFieldType.BaseType.GetKind()))
  		result.Values = modelFieldType.Values
  		if modelFieldType.DefaultValue != nil {
  			result.DefaultValue = &modelFieldType.DefaultValue
  		}
  	case workitem.SimpleType:
  		if modelFieldType.DefaultValue != nil {
  			result.DefaultValue = &modelFieldType.DefaultValue
  		}
  	}
  
  	return result
  }
docs: // converts the field type from model to app representation