func EyeFromJS(value js.Value) Eye {
	key := value.String()
	conv, ok := vREyeFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
EyeFromJS is converting a javascript value into
a Eye enum value.
package webvr
import "syscall/js"
import (
	"github.com/gowebapi/webapi/core/jsarray"
	"github.com/gowebapi/webapi/dom/domcore"
	"github.com/gowebapi/webapi/html/htmlcommon"
	"github.com/gowebapi/webapi/javascript"
)
func unused(value interface{}) {
}
type Union struct {
	Value js.Value
}
func (u *Union) JSValue() js.Value {
	return u.Value
}
func UnionFromJS(value js.Value) *Union {
	return &Union{Value: value}
}
type DisplayEventReason int
const (
	Mounted DisplayEventReason = iota
	Navigation
	Requested
	Unmounted
)
var vRDisplayEventReasonToWasmTable = []string{
	"mounted", "navigation", "requested", "unmounted",
}
var vRDisplayEventReasonFromWasmTable = map[string]DisplayEventReason{
	"mounted": Mounted, "navigation": Navigation, "requested": Requested, "unmounted": Unmounted,
}
func (this *DisplayEventReason) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this DisplayEventReason) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(vRDisplayEventReasonToWasmTable) {
		return vRDisplayEventReasonToWasmTable[idx]
	}
	panic("unknown input value")
}
func DisplayEventReasonFromJS(value js.Value) DisplayEventReason {
	key := value.String()
	conv, ok := vRDisplayEventReasonFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type Eye int
const (
	Left Eye = iota
	Right
)
var vREyeToWasmTable = []string{
	"left", "right",
}
var vREyeFromWasmTable = map[string]Eye{
	"left": Left, "right": Right,
}
func (this *Eye) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this Eye) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(vREyeToWasmTable) {
		return vREyeToWasmTable[idx]
	}
	panic("unknown input value")
}