// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package models
type GroupType int

const (
    UNIFIEDGROUPS_GROUPTYPE GroupType = iota
    AZUREAD_GROUPTYPE
    UNKNOWNFUTUREVALUE_GROUPTYPE
)

func (i GroupType) String() string {
    return []string{"unifiedGroups", "azureAD", "unknownFutureValue"}[i]
}
func ParseGroupType(v string) (any, error) {
    result := UNIFIEDGROUPS_GROUPTYPE
    switch v {
        case "unifiedGroups":
            result = UNIFIEDGROUPS_GROUPTYPE
        case "azureAD":
            result = AZUREAD_GROUPTYPE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_GROUPTYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeGroupType(values []GroupType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i GroupType) isMultiValue() bool {
    return false
}
