func convertFieldTypeFromModel(t workitem.FieldType) app.FieldType {
	result := app.FieldType{}
	result.Kind = string(t.GetKind())
	switch t2 := t.(type) {
	case workitem.ListType:
		kind := string(t2.ComponentType.GetKind())
		result.ComponentType = &kind
	case workitem.EnumType:
		kind := string(t2.BaseType.GetKind())
		result.BaseType = &kind
		result.Values = t2.Values
	}

	return result
}
// converts the field type from modesl to app representation
converts the field type from modesl to app representation
// converts the field type from modesl to app representation
func convertFieldTypeFromModel(t workitem.FieldType) app.FieldType {
	result := app.FieldType{}
	result.Kind = string(t.GetKind())
	switch t2 := t.(type) {
	case workitem.ListType:
		kind := string(t2.ComponentType.GetKind())
		result.ComponentType = &kind
	case workitem.EnumType:
		kind := string(t2.BaseType.GetKind())
		result.BaseType = &kind
		result.Values = t2.Values
	}
	return result
}
func convertFieldTypeFromModel ( t workitem . FieldType ) app . FieldType { result := app . FieldType { } result . Kind = string ( t . GetKind ( ) ) switch t2 := t . ( type ) { case workitem . ListType : kind := string ( t2 . ComponentType . GetKind ( ) ) result . ComponentType = & kind case workitem . EnumType : kind := string ( t2 . BaseType . GetKind ( ) ) result . BaseType = & kind result . Values = t2 . Values } return result }
converts the field type from modesl to app representation
converts the field type from modesl to app representation