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

const (
    TEXT_ANSWERINPUTTYPE AnswerInputType = iota
    RADIOBUTTON_ANSWERINPUTTYPE
    UNKNOWNFUTUREVALUE_ANSWERINPUTTYPE
)

func (i AnswerInputType) String() string {
    return []string{"text", "radioButton", "unknownFutureValue"}[i]
}
func ParseAnswerInputType(v string) (any, error) {
    result := TEXT_ANSWERINPUTTYPE
    switch v {
        case "text":
            result = TEXT_ANSWERINPUTTYPE
        case "radioButton":
            result = RADIOBUTTON_ANSWERINPUTTYPE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_ANSWERINPUTTYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeAnswerInputType(values []AnswerInputType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i AnswerInputType) isMultiValue() bool {
    return false
}
