Available with elements plugin
new(enumFields:Array<String>, enumValues:Array<Dynamic>)
inlinegetEnumFields():Array<String>
inlinegetEnumFieldFromValue(value:Dynamic):Null<Null<String>>
createEnumValue(name:String):Dynamic