func FontFaceSetLoadStatusFromJS(value js.Value) FontFaceSetLoadStatus {
	key := value.String()
	conv, ok := fontFaceSetLoadStatusFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
FontFaceSetLoadStatusFromJS is converting a javascript value into
a FontFaceSetLoadStatus enum value.
package loading
import js "github.com/gowebapi/webapi/core/js"
import (
	"github.com/gowebapi/webapi/dom/domcore"
	"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 FontFaceLoadStatus int
const (
	UnloadedFontFaceLoadStatus FontFaceLoadStatus = iota
	LoadingFontFaceLoadStatus
	LoadedFontFaceLoadStatus
	ErrorFontFaceLoadStatus
)
var fontFaceLoadStatusToWasmTable = []string{
	"unloaded", "loading", "loaded", "error",
}
var fontFaceLoadStatusFromWasmTable = map[string]FontFaceLoadStatus{
	"unloaded": UnloadedFontFaceLoadStatus, "loading": LoadingFontFaceLoadStatus, "loaded": LoadedFontFaceLoadStatus, "error": ErrorFontFaceLoadStatus,
}
func (this *FontFaceLoadStatus) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this FontFaceLoadStatus) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(fontFaceLoadStatusToWasmTable) {
		return fontFaceLoadStatusToWasmTable[idx]
	}
	panic("unknown input value")
}
func FontFaceLoadStatusFromJS(value js.Value) FontFaceLoadStatus {
	key := value.String()
	conv, ok := fontFaceLoadStatusFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type FontFaceSetLoadStatus int
const (
	LoadingFontFaceSetLoadStatus FontFaceSetLoadStatus = iota
	LoadedFontFaceSetLoadStatus
)
var fontFaceSetLoadStatusToWasmTable = []string{
	"loading", "loaded",
}
var fontFaceSetLoadStatusFromWasmTable = map[string]FontFaceSetLoadStatus{
	"loading": LoadingFontFaceSetLoadStatus, "loaded": LoadedFontFaceSetLoadStatus,
}
func (this *FontFaceSetLoadStatus) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this FontFaceSetLoadStatus) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(fontFaceSetLoadStatusToWasmTable) {
		return fontFaceSetLoadStatusToWasmTable[idx]
	}
	panic("unknown input value")
}