func (this RequestMode) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(requestModeToWasmTable) {
		return requestModeToWasmTable[idx]
	}
	panic("unknown input value")
}
Value is converting this into javascript defined
string value
package fetch
import js "github.com/gowebapi/webapi/core/js"
import (
	"github.com/gowebapi/webapi/dom/domcore"
	"github.com/gowebapi/webapi/file"
	"github.com/gowebapi/webapi/html"
	"github.com/gowebapi/webapi/javascript"
	"github.com/gowebapi/webapi/patch"
)
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 ReferrerPolicy int
const (
	EmptyString0ReferrerPolicy ReferrerPolicy = iota
	NoReferrerReferrerPolicy
	NoReferrerWhenDowngradeReferrerPolicy
	SameOriginReferrerPolicy
	OriginReferrerPolicy
	StrictOriginReferrerPolicy
	OriginWhenCrossOriginReferrerPolicy
	StrictOriginWhenCrossOriginReferrerPolicy
	UnsafeUrlReferrerPolicy
)
var referrerPolicyToWasmTable = []string{
	"", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url",
}
var referrerPolicyFromWasmTable = map[string]ReferrerPolicy{
	"": EmptyString0ReferrerPolicy, "no-referrer": NoReferrerReferrerPolicy, "no-referrer-when-downgrade": NoReferrerWhenDowngradeReferrerPolicy, "same-origin": SameOriginReferrerPolicy, "origin": OriginReferrerPolicy, "strict-origin": StrictOriginReferrerPolicy, "origin-when-cross-origin": OriginWhenCrossOriginReferrerPolicy, "strict-origin-when-cross-origin": StrictOriginWhenCrossOriginReferrerPolicy, "unsafe-url": UnsafeUrlReferrerPolicy,
}
func (this *ReferrerPolicy) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this ReferrerPolicy) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(referrerPolicyToWasmTable) {
		return referrerPolicyToWasmTable[idx]
	}
	panic("unknown input value")
}
func ReferrerPolicyFromJS(value js.Value) ReferrerPolicy {
	key := value.String()
	conv, ok := referrerPolicyFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type RequestCache int
const (
	DefaultRequestCache RequestCache = iota
	NoStoreRequestCache
	ReloadRequestCache
	NoCacheRequestCache
	ForceCacheRequestCache
	OnlyIfCachedRequestCache
)
var requestCacheToWasmTable = []string{
	"default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached",
}
var requestCacheFromWasmTable = map[string]RequestCache{
	"default": DefaultRequestCache, "no-store": NoStoreRequestCache, "reload": ReloadRequestCache, "no-cache": NoCacheRequestCache, "force-cache": ForceCacheRequestCache, "only-if-cached": OnlyIfCachedRequestCache,
}
func (this *RequestCache) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this RequestCache) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(requestCacheToWasmTable) {
		return requestCacheToWasmTable[idx]
	}
	panic("unknown input value")
}
func RequestCacheFromJS(value js.Value) RequestCache {
	key := value.String()
	conv, ok := requestCacheFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type RequestCredentials int
const (
	OmitRequestCredentials RequestCredentials = iota
	SameOriginRequestCredentials
	IncludeRequestCredentials
)
var requestCredentialsToWasmTable = []string{
	"omit", "same-origin", "include",
}
var requestCredentialsFromWasmTable = map[string]RequestCredentials{
	"omit": OmitRequestCredentials, "same-origin": SameOriginRequestCredentials, "include": IncludeRequestCredentials,
}
func (this *RequestCredentials) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this RequestCredentials) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(requestCredentialsToWasmTable) {
		return requestCredentialsToWasmTable[idx]
	}
	panic("unknown input value")
}
func RequestCredentialsFromJS(value js.Value) RequestCredentials {
	key := value.String()
	conv, ok := requestCredentialsFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type RequestDestination int
const (
	EmptyString0RequestDestination RequestDestination = iota
	AudioRequestDestination
	AudioworkletRequestDestination
	DocumentRequestDestination
	EmbedRequestDestination
	FontRequestDestination
	ImageRequestDestination
	ManifestRequestDestination
	ObjectRequestDestination
	PaintworkletRequestDestination
	ReportRequestDestination
	ScriptRequestDestination
	SharedworkerRequestDestination
	StyleRequestDestination
	TrackRequestDestination
	VideoRequestDestination
	WorkerRequestDestination
	XsltRequestDestination
)
var requestDestinationToWasmTable = []string{
	"", "audio", "audioworklet", "document", "embed", "font", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt",
}
var requestDestinationFromWasmTable = map[string]RequestDestination{
	"": EmptyString0RequestDestination, "audio": AudioRequestDestination, "audioworklet": AudioworkletRequestDestination, "document": DocumentRequestDestination, "embed": EmbedRequestDestination, "font": FontRequestDestination, "image": ImageRequestDestination, "manifest": ManifestRequestDestination, "object": ObjectRequestDestination, "paintworklet": PaintworkletRequestDestination, "report": ReportRequestDestination, "script": ScriptRequestDestination, "sharedworker": SharedworkerRequestDestination, "style": StyleRequestDestination, "track": TrackRequestDestination, "video": VideoRequestDestination, "worker": WorkerRequestDestination, "xslt": XsltRequestDestination,
}
func (this *RequestDestination) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this RequestDestination) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(requestDestinationToWasmTable) {
		return requestDestinationToWasmTable[idx]
	}
	panic("unknown input value")
}
func RequestDestinationFromJS(value js.Value) RequestDestination {
	key := value.String()
	conv, ok := requestDestinationFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type RequestMode int
const (
	NavigateRequestMode RequestMode = iota
	SameOriginRequestMode
	NoCorsRequestMode
	CorsRequestMode
)
var requestModeToWasmTable = []string{
	"navigate", "same-origin", "no-cors", "cors",
}
var requestModeFromWasmTable = map[string]RequestMode{
	"navigate": NavigateRequestMode, "same-origin": SameOriginRequestMode, "no-cors": NoCorsRequestMode, "cors": CorsRequestMode,
}
func (this *RequestMode) JSValue() js.Value {
	return js.ValueOf(this.Value())
}