func (this *USBDirection) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
JSValue is converting this enum into a javascript object
package usb
import "syscall/js"
import (
	"github.com/gowebapi/webapi/dom/domcore"
	"github.com/gowebapi/webapi/dom/permissions"
	"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 USBDirection int
const (
	InUSBDirection USBDirection = iota
	OutUSBDirection
)
var uSBDirectionToWasmTable = []string{
	"in", "out",
}
var uSBDirectionFromWasmTable = map[string]USBDirection{
	"in": InUSBDirection, "out": OutUSBDirection,
}