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

const (
    STUDENT_EDUCATIONUSERROLE EducationUserRole = iota
    TEACHER_EDUCATIONUSERROLE
    NONE_EDUCATIONUSERROLE
    UNKNOWNFUTUREVALUE_EDUCATIONUSERROLE
)

func (i EducationUserRole) String() string {
    return []string{"student", "teacher", "none", "unknownFutureValue"}[i]
}
func ParseEducationUserRole(v string) (any, error) {
    result := STUDENT_EDUCATIONUSERROLE
    switch v {
        case "student":
            result = STUDENT_EDUCATIONUSERROLE
        case "teacher":
            result = TEACHER_EDUCATIONUSERROLE
        case "none":
            result = NONE_EDUCATIONUSERROLE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_EDUCATIONUSERROLE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeEducationUserRole(values []EducationUserRole) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i EducationUserRole) isMultiValue() bool {
    return false
}
