func (_this *InputDeviceCapabilitiesInit) JSValue() js.Value {
	out := js.Global().Get("Object").New()
	value0 := _this.FiresTouchEvents
	out.Set("firesTouchEvents", value0)
	value1 := _this.PointerMovementScrolls
	out.Set("pointerMovementScrolls", value1)
	return out
}
JSValue is allocating a new javasript object and copy
all values
package inputcapabilities
import js "github.com/gowebapi/webapi/core/js"
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 InputDeviceCapabilitiesInit struct {
	FiresTouchEvents       bool
	PointerMovementScrolls bool
}