// 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 AttendeeType int

const (
    REQUIRED_ATTENDEETYPE AttendeeType = iota
    OPTIONAL_ATTENDEETYPE
    RESOURCE_ATTENDEETYPE
)

func (i AttendeeType) String() string {
    return []string{"required", "optional", "resource"}[i]
}
func ParseAttendeeType(v string) (any, error) {
    result := REQUIRED_ATTENDEETYPE
    switch v {
        case "required":
            result = REQUIRED_ATTENDEETYPE
        case "optional":
            result = OPTIONAL_ATTENDEETYPE
        case "resource":
            result = RESOURCE_ATTENDEETYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeAttendeeType(values []AttendeeType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i AttendeeType) isMultiValue() bool {
    return false
}
