input/types.go
func (t *ButtonType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ButtonType(in.String()) {
	case ButtonNone:
		*t = ButtonNone
	case ButtonLeft:
		*t = ButtonLeft
	case ButtonMiddle:
		*t = ButtonMiddle
	case ButtonRight:
		*t = ButtonRight
	case ButtonBack:
		*t = ButtonBack
	case ButtonForward:
		*t = ButtonForward

	default:
		in.AddError(errors.New("unknown ButtonType value"))
	}
}
func (t *ButtonType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ButtonType(in.String()) {
	case ButtonNone:
		*t = ButtonNone
	case ButtonLeft:
		*t = ButtonLeft
	case ButtonMiddle:
		*t = ButtonMiddle
	case ButtonRight:
		*t = ButtonRight
	case ButtonBack:
		*t = ButtonBack
	case ButtonForward:
		*t = ButtonForward

	default:
		in.AddError(errors.New("unknown ButtonType value"))
	}
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.