layertree/types.go
func (t *ScrollRectType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ScrollRectType(in.String()) {
	case ScrollRectTypeRepaintsOnScroll:
		*t = ScrollRectTypeRepaintsOnScroll
	case ScrollRectTypeTouchEventHandler:
		*t = ScrollRectTypeTouchEventHandler
	case ScrollRectTypeWheelEventHandler:
		*t = ScrollRectTypeWheelEventHandler

	default:
		in.AddError(errors.New("unknown ScrollRectType value"))
	}
}
func (t *ScrollRectType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ScrollRectType(in.String()) {
	case ScrollRectTypeRepaintsOnScroll:
		*t = ScrollRectTypeRepaintsOnScroll
	case ScrollRectTypeTouchEventHandler:
		*t = ScrollRectTypeTouchEventHandler
	case ScrollRectTypeWheelEventHandler:
		*t = ScrollRectTypeWheelEventHandler

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