Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
3test cases
133files differ
115modified
18new
0deleted
13,640changed lines
+8,961 −4,679insertions / deletions
Base 4fae346ba5a108350e23f153a6e0d2edc996fc3f · PR merge 65f788ba0db3c5d920dbc115999d6133261cfbbf · Head 10ef2d2f5a0ff202a0d79e61e5407a4e26479ff3 · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +6,240 −4,448
Mcjsondefault / TopLevel.c+453 −323
@@ -6483,6 +6483,61 @@ void cJSON_DeleteFrom(struct From * x) {
64836483 }
64846484 }
64856485
6486+struct FromDict * cJSON_ParseFromDict(const char * s) {
6487+ struct FromDict * x = NULL;
6488+ if (NULL != s) {
6489+ cJSON * j = cJSON_Parse(s);
6490+ if (NULL != j) {
6491+ x = cJSON_GetFromDictValue(j);
6492+ cJSON_Delete(j);
6493+ }
6494+ }
6495+ return x;
6496+}
6497+
6498+struct FromDict * cJSON_GetFromDictValue(const cJSON * j) {
6499+ struct FromDict * x = NULL;
6500+ if (NULL != j) {
6501+ if (NULL != (x = cJSON_malloc(sizeof(struct FromDict)))) {
6502+ memset(x, 0, sizeof(struct FromDict));
6503+ if (!cJSON_HasObjectItem(j, "from_dict")) { cJSON_DeleteFromDict(x); return NULL; }
6504+ if (cJSON_HasObjectItem(j, "from_dict")) {
6505+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "from_dict"))) { cJSON_DeleteFromDict(x); return NULL; }
6506+ x->from_dict = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "from_dict"));
6507+ }
6508+ }
6509+ }
6510+ return x;
6511+}
6512+
6513+cJSON * cJSON_CreateFromDict(const struct FromDict * x) {
6514+ cJSON * j = NULL;
6515+ if (NULL != x) {
6516+ if (NULL != (j = cJSON_CreateObject())) {
6517+ cJSON_AddNumberToObject(j, "from_dict", x->from_dict);
6518+ }
6519+ }
6520+ return j;
6521+}
6522+
6523+char * cJSON_PrintFromDict(const struct FromDict * x) {
6524+ char * s = NULL;
6525+ if (NULL != x) {
6526+ cJSON * j = cJSON_CreateFromDict(x);
6527+ if (NULL != j) {
6528+ s = cJSON_Print(j);
6529+ cJSON_Delete(j);
6530+ }
6531+ }
6532+ return s;
6533+}
6534+
6535+void cJSON_DeleteFromDict(struct FromDict * x) {
6536+ if (NULL != x) {
6537+ cJSON_free(x);
6538+ }
6539+}
6540+
64866541 struct FromJson * cJSON_ParseFromJson(const char * s) {
64876542 struct FromJson * x = NULL;
64886543 if (NULL != s) {
@@ -7693,61 +7748,6 @@ void cJSON_DeleteFriend(struct Friend * x) {
76937748 }
76947749 }
76957750
7696-struct Goto * cJSON_ParseGoto(const char * s) {
7697- struct Goto * x = NULL;
7698- if (NULL != s) {
7699- cJSON * j = cJSON_Parse(s);
7700- if (NULL != j) {
7701- x = cJSON_GetGotoValue(j);
7702- cJSON_Delete(j);
7703- }
7704- }
7705- return x;
7706-}
7707-
7708-struct Goto * cJSON_GetGotoValue(const cJSON * j) {
7709- struct Goto * x = NULL;
7710- if (NULL != j) {
7711- if (NULL != (x = cJSON_malloc(sizeof(struct Goto)))) {
7712- memset(x, 0, sizeof(struct Goto));
7713- if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteGoto(x); return NULL; }
7714- if (cJSON_HasObjectItem(j, "goto")) {
7715- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteGoto(x); return NULL; }
7716- x->goto_goto = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "goto"));
7717- }
7718- }
7719- }
7720- return x;
7721-}
7722-
7723-cJSON * cJSON_CreateGoto(const struct Goto * x) {
7724- cJSON * j = NULL;
7725- if (NULL != x) {
7726- if (NULL != (j = cJSON_CreateObject())) {
7727- cJSON_AddNumberToObject(j, "goto", x->goto_goto);
7728- }
7729- }
7730- return j;
7731-}
7732-
7733-char * cJSON_PrintGoto(const struct Goto * x) {
7734- char * s = NULL;
7735- if (NULL != x) {
7736- cJSON * j = cJSON_CreateGoto(x);
7737- if (NULL != j) {
7738- s = cJSON_Print(j);
7739- cJSON_Delete(j);
7740- }
7741- }
7742- return s;
7743-}
7744-
7745-void cJSON_DeleteGoto(struct Goto * x) {
7746- if (NULL != x) {
7747- cJSON_free(x);
7748- }
7749-}
7750-
77517751 struct Obj2False * cJSON_ParseObj2False(const char * s) {
77527752 struct Obj2False * x = NULL;
77537753 if (NULL != s) {
@@ -8065,6 +8065,12 @@ struct Obj2 * cJSON_GetObj2Value(const cJSON * j) {
80658065 x->from = cJSON_GetFromValue(cJSON_GetObjectItemCaseSensitive(j, "from"));
80668066 if (NULL == x->from) { cJSON_DeleteObj2(x); return NULL; }
80678067 }
8068+ if (!cJSON_HasObjectItem(j, "from_dict")) { cJSON_DeleteObj2(x); return NULL; }
8069+ if (cJSON_HasObjectItem(j, "from_dict")) {
8070+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "from_dict"))) { cJSON_DeleteObj2(x); return NULL; }
8071+ x->from_dict = cJSON_GetFromDictValue(cJSON_GetObjectItemCaseSensitive(j, "from_dict"));
8072+ if (NULL == x->from_dict) { cJSON_DeleteObj2(x); return NULL; }
8073+ }
80688074 if (!cJSON_HasObjectItem(j, "from_json")) { cJSON_DeleteObj2(x); return NULL; }
80698075 if (cJSON_HasObjectItem(j, "from_json")) {
80708076 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "from_json"))) { cJSON_DeleteObj2(x); return NULL; }
@@ -8197,12 +8203,6 @@ struct Obj2 * cJSON_GetObj2Value(const cJSON * j) {
81978203 x->obj2_friend = cJSON_GetFriendValue(cJSON_GetObjectItemCaseSensitive(j, "friend"));
81988204 if (NULL == x->obj2_friend) { cJSON_DeleteObj2(x); return NULL; }
81998205 }
8200- if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj2(x); return NULL; }
8201- if (cJSON_HasObjectItem(j, "goto")) {
8202- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj2(x); return NULL; }
8203- x->obj2_goto = cJSON_GetGotoValue(cJSON_GetObjectItemCaseSensitive(j, "goto"));
8204- if (NULL == x->obj2_goto) { cJSON_DeleteObj2(x); return NULL; }
8205- }
82068206 if (!cJSON_HasObjectItem(j, "false")) { cJSON_DeleteObj2(x); return NULL; }
82078207 if (cJSON_HasObjectItem(j, "false")) {
82088208 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "false"))) { cJSON_DeleteObj2(x); return NULL; }
@@ -8259,6 +8259,7 @@ cJSON * cJSON_CreateObj2(const struct Obj2 * x) {
82598259 cJSON_AddItemToObject(j, "foreach", cJSON_CreateForeach(x->foreach));
82608260 cJSON_AddItemToObject(j, "FormatException", cJSON_CreateFormatException(x->format_exception));
82618261 cJSON_AddItemToObject(j, "from", cJSON_CreateFrom(x->from));
8262+ cJSON_AddItemToObject(j, "from_dict", cJSON_CreateFromDict(x->from_dict));
82628263 cJSON_AddItemToObject(j, "from_json", cJSON_CreateFromJson(x->from_json));
82638264 cJSON_AddItemToObject(j, "func", cJSON_CreateFunc(x->func));
82648265 cJSON_AddItemToObject(j, "function", cJSON_CreateFunction(x->function));
@@ -8281,7 +8282,6 @@ cJSON * cJSON_CreateObj2(const struct Obj2 * x) {
82818282 cJSON_AddItemToObject(j, "float", cJSON_CreateFloat(x->obj2_float));
82828283 cJSON_AddItemToObject(j, "for", cJSON_CreateFor(x->obj2_for));
82838284 cJSON_AddItemToObject(j, "friend", cJSON_CreateFriend(x->obj2_friend));
8284- cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj2_goto));
82858285 cJSON_AddItemToObject(j, "false", cJSON_CreateObj2False(x->purple_false));
82868286 }
82878287 }
@@ -8422,6 +8422,9 @@ void cJSON_DeleteObj2(struct Obj2 * x) {
84228422 if (NULL != x->from) {
84238423 cJSON_DeleteFrom(x->from);
84248424 }
8425+ if (NULL != x->from_dict) {
8426+ cJSON_DeleteFromDict(x->from_dict);
8427+ }
84258428 if (NULL != x->from_json) {
84268429 cJSON_DeleteFromJson(x->from_json);
84278430 }
@@ -8488,9 +8491,6 @@ void cJSON_DeleteObj2(struct Obj2 * x) {
84888491 if (NULL != x->obj2_friend) {
84898492 cJSON_DeleteFriend(x->obj2_friend);
84908493 }
8491- if (NULL != x->obj2_goto) {
8492- cJSON_DeleteGoto(x->obj2_goto);
8493- }
84948494 if (NULL != x->purple_false) {
84958495 cJSON_DeleteObj2False(x->purple_false);
84968496 }
@@ -11471,6 +11471,61 @@ void cJSON_DeleteNo(struct No * x) {
1147111471 }
1147211472 }
1147311473
11474+struct Goto * cJSON_ParseGoto(const char * s) {
11475+ struct Goto * x = NULL;
11476+ if (NULL != s) {
11477+ cJSON * j = cJSON_Parse(s);
11478+ if (NULL != j) {
11479+ x = cJSON_GetGotoValue(j);
11480+ cJSON_Delete(j);
11481+ }
11482+ }
11483+ return x;
11484+}
11485+
11486+struct Goto * cJSON_GetGotoValue(const cJSON * j) {
11487+ struct Goto * x = NULL;
11488+ if (NULL != j) {
11489+ if (NULL != (x = cJSON_malloc(sizeof(struct Goto)))) {
11490+ memset(x, 0, sizeof(struct Goto));
11491+ if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteGoto(x); return NULL; }
11492+ if (cJSON_HasObjectItem(j, "goto")) {
11493+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteGoto(x); return NULL; }
11494+ x->goto_goto = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "goto"));
11495+ }
11496+ }
11497+ }
11498+ return x;
11499+}
11500+
11501+cJSON * cJSON_CreateGoto(const struct Goto * x) {
11502+ cJSON * j = NULL;
11503+ if (NULL != x) {
11504+ if (NULL != (j = cJSON_CreateObject())) {
11505+ cJSON_AddNumberToObject(j, "goto", x->goto_goto);
11506+ }
11507+ }
11508+ return j;
11509+}
11510+
11511+char * cJSON_PrintGoto(const struct Goto * x) {
11512+ char * s = NULL;
11513+ if (NULL != x) {
11514+ cJSON * j = cJSON_CreateGoto(x);
11515+ if (NULL != j) {
11516+ s = cJSON_Print(j);
11517+ cJSON_Delete(j);
11518+ }
11519+ }
11520+ return s;
11521+}
11522+
11523+void cJSON_DeleteGoto(struct Goto * x) {
11524+ if (NULL != x) {
11525+ cJSON_free(x);
11526+ }
11527+}
11528+
1147411529 struct If * cJSON_ParseIf(const char * s) {
1147511530 struct If * x = NULL;
1147611531 if (NULL != s) {
@@ -11966,61 +12021,6 @@ void cJSON_DeleteNew(struct New * x) {
1196612021 }
1196712022 }
1196812023
11969-struct Noexcept * cJSON_ParseNoexcept(const char * s) {
11970- struct Noexcept * x = NULL;
11971- if (NULL != s) {
11972- cJSON * j = cJSON_Parse(s);
11973- if (NULL != j) {
11974- x = cJSON_GetNoexceptValue(j);
11975- cJSON_Delete(j);
11976- }
11977- }
11978- return x;
11979-}
11980-
11981-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) {
11982- struct Noexcept * x = NULL;
11983- if (NULL != j) {
11984- if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) {
11985- memset(x, 0, sizeof(struct Noexcept));
11986- if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; }
11987- if (cJSON_HasObjectItem(j, "noexcept")) {
11988- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; }
11989- x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
11990- }
11991- }
11992- }
11993- return x;
11994-}
11995-
11996-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) {
11997- cJSON * j = NULL;
11998- if (NULL != x) {
11999- if (NULL != (j = cJSON_CreateObject())) {
12000- cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept);
12001- }
12002- }
12003- return j;
12004-}
12005-
12006-char * cJSON_PrintNoexcept(const struct Noexcept * x) {
12007- char * s = NULL;
12008- if (NULL != x) {
12009- cJSON * j = cJSON_CreateNoexcept(x);
12010- if (NULL != j) {
12011- s = cJSON_Print(j);
12012- cJSON_Delete(j);
12013- }
12014- }
12015- return s;
12016-}
12017-
12018-void cJSON_DeleteNoexcept(struct Noexcept * x) {
12019- if (NULL != x) {
12020- cJSON_free(x);
12021- }
12022-}
12023-
1202412024 struct Obj3 * cJSON_ParseObj3(const char * s) {
1202512025 struct Obj3 * x = NULL;
1202612026 if (NULL != s) {
@@ -12367,6 +12367,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1236712367 x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
1236812368 if (NULL == x->no) { cJSON_DeleteObj3(x); return NULL; }
1236912369 }
12370+ if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj3(x); return NULL; }
12371+ if (cJSON_HasObjectItem(j, "goto")) {
12372+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj3(x); return NULL; }
12373+ x->obj3_goto = cJSON_GetGotoValue(cJSON_GetObjectItemCaseSensitive(j, "goto"));
12374+ if (NULL == x->obj3_goto) { cJSON_DeleteObj3(x); return NULL; }
12375+ }
1237012376 if (!cJSON_HasObjectItem(j, "if")) { cJSON_DeleteObj3(x); return NULL; }
1237112377 if (cJSON_HasObjectItem(j, "if")) {
1237212378 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "if"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12421,12 +12427,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1242112427 x->obj3_new = cJSON_GetNewValue(cJSON_GetObjectItemCaseSensitive(j, "new"));
1242212428 if (NULL == x->obj3_new) { cJSON_DeleteObj3(x); return NULL; }
1242312429 }
12424- if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj3(x); return NULL; }
12425- if (cJSON_HasObjectItem(j, "noexcept")) {
12426- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj3(x); return NULL; }
12427- x->obj3_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
12428- if (NULL == x->obj3_noexcept) { cJSON_DeleteObj3(x); return NULL; }
12429- }
1243012430 }
1243112431 }
1243212432 return x;
@@ -12491,6 +12491,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1249112491 cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft));
1249212492 cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil));
1249312493 cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no));
12494+ cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj3_goto));
1249412495 cJSON_AddItemToObject(j, "if", cJSON_CreateIf(x->obj3_if));
1249512496 cJSON_AddItemToObject(j, "import", cJSON_CreateImport(x->obj3_import));
1249612497 cJSON_AddItemToObject(j, "inline", cJSON_CreateInline(x->obj3_inline));
@@ -12500,7 +12501,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1250012501 cJSON_AddItemToObject(j, "mutable", cJSON_CreateMutable(x->obj3_mutable));
1250112502 cJSON_AddItemToObject(j, "namespace", cJSON_CreateNamespace(x->obj3_namespace));
1250212503 cJSON_AddItemToObject(j, "new", cJSON_CreateNew(x->obj3_new));
12503- cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj3_noexcept));
1250412504 }
1250512505 }
1250612506 return j;
@@ -12682,6 +12682,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1268212682 if (NULL != x->no) {
1268312683 cJSON_DeleteNo(x->no);
1268412684 }
12685+ if (NULL != x->obj3_goto) {
12686+ cJSON_DeleteGoto(x->obj3_goto);
12687+ }
1268512688 if (NULL != x->obj3_if) {
1268612689 cJSON_DeleteIf(x->obj3_if);
1268712690 }
@@ -12709,9 +12712,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1270912712 if (NULL != x->obj3_new) {
1271012713 cJSON_DeleteNew(x->obj3_new);
1271112714 }
12712- if (NULL != x->obj3_noexcept) {
12713- cJSON_DeleteNoexcept(x->obj3_noexcept);
12714- }
1271512715 cJSON_free(x);
1271612716 }
1271712717 }
@@ -13266,47 +13266,47 @@ void cJSON_DeleteNumberClass(struct NumberClass * x) {
1326613266 }
1326713267 }
1326813268
13269-struct NoneClass * cJSON_ParseNoneClass(const char * s) {
13270- struct NoneClass * x = NULL;
13269+struct Noexcept * cJSON_ParseNoexcept(const char * s) {
13270+ struct Noexcept * x = NULL;
1327113271 if (NULL != s) {
1327213272 cJSON * j = cJSON_Parse(s);
1327313273 if (NULL != j) {
13274- x = cJSON_GetNoneClassValue(j);
13274+ x = cJSON_GetNoexceptValue(j);
1327513275 cJSON_Delete(j);
1327613276 }
1327713277 }
1327813278 return x;
1327913279 }
1328013280
13281-struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j) {
13282- struct NoneClass * x = NULL;
13281+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) {
13282+ struct Noexcept * x = NULL;
1328313283 if (NULL != j) {
13284- if (NULL != (x = cJSON_malloc(sizeof(struct NoneClass)))) {
13285- memset(x, 0, sizeof(struct NoneClass));
13286- if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteNoneClass(x); return NULL; }
13287- if (cJSON_HasObjectItem(j, "none")) {
13288- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteNoneClass(x); return NULL; }
13289- x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "none"));
13284+ if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) {
13285+ memset(x, 0, sizeof(struct Noexcept));
13286+ if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; }
13287+ if (cJSON_HasObjectItem(j, "noexcept")) {
13288+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; }
13289+ x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
1329013290 }
1329113291 }
1329213292 }
1329313293 return x;
1329413294 }
1329513295
13296-cJSON * cJSON_CreateNoneClass(const struct NoneClass * x) {
13296+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) {
1329713297 cJSON * j = NULL;
1329813298 if (NULL != x) {
1329913299 if (NULL != (j = cJSON_CreateObject())) {
13300- cJSON_AddNumberToObject(j, "none", x->none);
13300+ cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept);
1330113301 }
1330213302 }
1330313303 return j;
1330413304 }
1330513305
13306-char * cJSON_PrintNoneClass(const struct NoneClass * x) {
13306+char * cJSON_PrintNoexcept(const struct Noexcept * x) {
1330713307 char * s = NULL;
1330813308 if (NULL != x) {
13309- cJSON * j = cJSON_CreateNoneClass(x);
13309+ cJSON * j = cJSON_CreateNoexcept(x);
1331013310 if (NULL != j) {
1331113311 s = cJSON_Print(j);
1331213312 cJSON_Delete(j);
@@ -13315,27 +13315,82 @@ char * cJSON_PrintNoneClass(const struct NoneClass * x) {
1331513315 return s;
1331613316 }
1331713317
13318-void cJSON_DeleteNoneClass(struct NoneClass * x) {
13318+void cJSON_DeleteNoexcept(struct Noexcept * x) {
1331913319 if (NULL != x) {
1332013320 cJSON_free(x);
1332113321 }
1332213322 }
1332313323
13324-struct Not * cJSON_ParseNot(const char * s) {
13325- struct Not * x = NULL;
13324+struct NoneClass * cJSON_ParseNoneClass(const char * s) {
13325+ struct NoneClass * x = NULL;
1332613326 if (NULL != s) {
1332713327 cJSON * j = cJSON_Parse(s);
1332813328 if (NULL != j) {
13329- x = cJSON_GetNotValue(j);
13329+ x = cJSON_GetNoneClassValue(j);
1333013330 cJSON_Delete(j);
1333113331 }
1333213332 }
1333313333 return x;
1333413334 }
1333513335
13336-struct Not * cJSON_GetNotValue(const cJSON * j) {
13337- struct Not * x = NULL;
13338- if (NULL != j) {
13336+struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j) {
13337+ struct NoneClass * x = NULL;
13338+ if (NULL != j) {
13339+ if (NULL != (x = cJSON_malloc(sizeof(struct NoneClass)))) {
13340+ memset(x, 0, sizeof(struct NoneClass));
13341+ if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteNoneClass(x); return NULL; }
13342+ if (cJSON_HasObjectItem(j, "none")) {
13343+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteNoneClass(x); return NULL; }
13344+ x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "none"));
13345+ }
13346+ }
13347+ }
13348+ return x;
13349+}
13350+
13351+cJSON * cJSON_CreateNoneClass(const struct NoneClass * x) {
13352+ cJSON * j = NULL;
13353+ if (NULL != x) {
13354+ if (NULL != (j = cJSON_CreateObject())) {
13355+ cJSON_AddNumberToObject(j, "none", x->none);
13356+ }
13357+ }
13358+ return j;
13359+}
13360+
13361+char * cJSON_PrintNoneClass(const struct NoneClass * x) {
13362+ char * s = NULL;
13363+ if (NULL != x) {
13364+ cJSON * j = cJSON_CreateNoneClass(x);
13365+ if (NULL != j) {
13366+ s = cJSON_Print(j);
13367+ cJSON_Delete(j);
13368+ }
13369+ }
13370+ return s;
13371+}
13372+
13373+void cJSON_DeleteNoneClass(struct NoneClass * x) {
13374+ if (NULL != x) {
13375+ cJSON_free(x);
13376+ }
13377+}
13378+
13379+struct Not * cJSON_ParseNot(const char * s) {
13380+ struct Not * x = NULL;
13381+ if (NULL != s) {
13382+ cJSON * j = cJSON_Parse(s);
13383+ if (NULL != j) {
13384+ x = cJSON_GetNotValue(j);
13385+ cJSON_Delete(j);
13386+ }
13387+ }
13388+ return x;
13389+}
13390+
13391+struct Not * cJSON_GetNotValue(const cJSON * j) {
13392+ struct Not * x = NULL;
13393+ if (NULL != j) {
1333913394 if (NULL != (x = cJSON_malloc(sizeof(struct Not)))) {
1334013395 memset(x, 0, sizeof(struct Not));
1334113396 if (!cJSON_HasObjectItem(j, "not")) { cJSON_DeleteNot(x); return NULL; }
@@ -16194,61 +16249,6 @@ void cJSON_DeleteSel(struct Sel * x) {
1619416249 }
1619516250 }
1619616251
16197-struct Select * cJSON_ParseSelect(const char * s) {
16198- struct Select * x = NULL;
16199- if (NULL != s) {
16200- cJSON * j = cJSON_Parse(s);
16201- if (NULL != j) {
16202- x = cJSON_GetSelectValue(j);
16203- cJSON_Delete(j);
16204- }
16205- }
16206- return x;
16207-}
16208-
16209-struct Select * cJSON_GetSelectValue(const cJSON * j) {
16210- struct Select * x = NULL;
16211- if (NULL != j) {
16212- if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) {
16213- memset(x, 0, sizeof(struct Select));
16214- if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; }
16215- if (cJSON_HasObjectItem(j, "select")) {
16216- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; }
16217- x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
16218- }
16219- }
16220- }
16221- return x;
16222-}
16223-
16224-cJSON * cJSON_CreateSelect(const struct Select * x) {
16225- cJSON * j = NULL;
16226- if (NULL != x) {
16227- if (NULL != (j = cJSON_CreateObject())) {
16228- cJSON_AddNumberToObject(j, "select", x->select);
16229- }
16230- }
16231- return j;
16232-}
16233-
16234-char * cJSON_PrintSelect(const struct Select * x) {
16235- char * s = NULL;
16236- if (NULL != x) {
16237- cJSON * j = cJSON_CreateSelect(x);
16238- if (NULL != j) {
16239- s = cJSON_Print(j);
16240- cJSON_Delete(j);
16241- }
16242- }
16243- return s;
16244-}
16245-
16246-void cJSON_DeleteSelect(struct Select * x) {
16247- if (NULL != x) {
16248- cJSON_free(x);
16249- }
16250-}
16251-
1625216252 struct Obj4 * cJSON_ParseObj4(const char * s) {
1625316253 struct Obj4 * x = NULL;
1625416254 if (NULL != s) {
@@ -16331,6 +16331,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1633116331 x->number = cJSON_GetNumberClassValue(cJSON_GetObjectItemCaseSensitive(j, "number"));
1633216332 if (NULL == x->number) { cJSON_DeleteObj4(x); return NULL; }
1633316333 }
16334+ if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj4(x); return NULL; }
16335+ if (cJSON_HasObjectItem(j, "noexcept")) {
16336+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj4(x); return NULL; }
16337+ x->obj4_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
16338+ if (NULL == x->obj4_noexcept) { cJSON_DeleteObj4(x); return NULL; }
16339+ }
1633416340 if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteObj4(x); return NULL; }
1633516341 if (cJSON_HasObjectItem(j, "none")) {
1633616342 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16649,12 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1664916655 x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
1665016656 if (NULL == x->sel) { cJSON_DeleteObj4(x); return NULL; }
1665116657 }
16652- if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj4(x); return NULL; }
16653- if (cJSON_HasObjectItem(j, "select")) {
16654- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj4(x); return NULL; }
16655- x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
16656- if (NULL == x->select) { cJSON_DeleteObj4(x); return NULL; }
16657- }
1665816658 }
1665916659 }
1666016660 return x;
@@ -16675,6 +16675,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1667516675 cJSON_AddItemToObject(j, "NSString", cJSON_CreateNsString(x->ns_string));
1667616676 cJSON_AddItemToObject(j, "NULL", cJSON_CreateNullClass(x->null));
1667716677 cJSON_AddItemToObject(j, "number", cJSON_CreateNumberClass(x->number));
16678+ cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj4_noexcept));
1667816679 cJSON_AddItemToObject(j, "none", cJSON_CreateNoneClass(x->obj4_none));
1667916680 cJSON_AddItemToObject(j, "not", cJSON_CreateNot(x->obj4_not));
1668016681 cJSON_AddItemToObject(j, "not_eq", cJSON_CreateNotEq(x->obj4_not_eq));
@@ -16728,7 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1672816729 cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte));
1672916730 cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
1673016731 cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel));
16731- cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select));
1673216732 }
1673316733 }
1673416734 return j;
@@ -16778,6 +16778,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1677816778 if (NULL != x->number) {
1677916779 cJSON_DeleteNumberClass(x->number);
1678016780 }
16781+ if (NULL != x->obj4_noexcept) {
16782+ cJSON_DeleteNoexcept(x->obj4_noexcept);
16783+ }
1678116784 if (NULL != x->obj4_none) {
1678216785 cJSON_DeleteNoneClass(x->obj4_none);
1678316786 }
@@ -16937,9 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1693716940 if (NULL != x->sel) {
1693816941 cJSON_DeleteSel(x->sel);
1693916942 }
16940- if (NULL != x->select) {
16941- cJSON_DeleteSelect(x->select);
16942- }
1694316943 cJSON_free(x);
1694416944 }
1694516945 }
@@ -18264,47 +18264,47 @@ void cJSON_DeleteUsing(struct Using * x) {
1826418264 }
1826518265 }
1826618266
18267-struct Virtual * cJSON_ParseVirtual(const char * s) {
18268- struct Virtual * x = NULL;
18267+struct Obj5True * cJSON_ParseObj5True(const char * s) {
18268+ struct Obj5True * x = NULL;
1826918269 if (NULL != s) {
1827018270 cJSON * j = cJSON_Parse(s);
1827118271 if (NULL != j) {
18272- x = cJSON_GetVirtualValue(j);
18272+ x = cJSON_GetObj5TrueValue(j);
1827318273 cJSON_Delete(j);
1827418274 }
1827518275 }
1827618276 return x;
1827718277 }
1827818278
18279-struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
18280- struct Virtual * x = NULL;
18279+struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18280+ struct Obj5True * x = NULL;
1828118281 if (NULL != j) {
18282- if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
18283- memset(x, 0, sizeof(struct Virtual));
18284- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
18285- if (cJSON_HasObjectItem(j, "virtual")) {
18286- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
18287- x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
18282+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18283+ memset(x, 0, sizeof(struct Obj5True));
18284+ if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18285+ if (cJSON_HasObjectItem(j, "true")) {
18286+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18287+ x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
1828818288 }
1828918289 }
1829018290 }
1829118291 return x;
1829218292 }
1829318293
18294-cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
18294+cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
1829518295 cJSON * j = NULL;
1829618296 if (NULL != x) {
1829718297 if (NULL != (j = cJSON_CreateObject())) {
18298- cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
18298+ cJSON_AddNumberToObject(j, "true", x->true_true);
1829918299 }
1830018300 }
1830118301 return j;
1830218302 }
1830318303
18304-char * cJSON_PrintVirtual(const struct Virtual * x) {
18304+char * cJSON_PrintObj5True(const struct Obj5True * x) {
1830518305 char * s = NULL;
1830618306 if (NULL != x) {
18307- cJSON * j = cJSON_CreateVirtual(x);
18307+ cJSON * j = cJSON_CreateObj5True(x);
1830818308 if (NULL != j) {
1830918309 s = cJSON_Print(j);
1831018310 cJSON_Delete(j);
@@ -18313,53 +18313,53 @@ char * cJSON_PrintVirtual(const struct Virtual * x) {
1831318313 return s;
1831418314 }
1831518315
18316-void cJSON_DeleteVirtual(struct Virtual * x) {
18316+void cJSON_DeleteObj5True(struct Obj5True * x) {
1831718317 if (NULL != x) {
1831818318 cJSON_free(x);
1831918319 }
1832018320 }
1832118321
18322-struct Obj5True * cJSON_ParseObj5True(const char * s) {
18323- struct Obj5True * x = NULL;
18322+struct Select * cJSON_ParseSelect(const char * s) {
18323+ struct Select * x = NULL;
1832418324 if (NULL != s) {
1832518325 cJSON * j = cJSON_Parse(s);
1832618326 if (NULL != j) {
18327- x = cJSON_GetObj5TrueValue(j);
18327+ x = cJSON_GetSelectValue(j);
1832818328 cJSON_Delete(j);
1832918329 }
1833018330 }
1833118331 return x;
1833218332 }
1833318333
18334-struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18335- struct Obj5True * x = NULL;
18334+struct Select * cJSON_GetSelectValue(const cJSON * j) {
18335+ struct Select * x = NULL;
1833618336 if (NULL != j) {
18337- if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18338- memset(x, 0, sizeof(struct Obj5True));
18339- if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18340- if (cJSON_HasObjectItem(j, "true")) {
18341- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18342- x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
18337+ if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) {
18338+ memset(x, 0, sizeof(struct Select));
18339+ if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; }
18340+ if (cJSON_HasObjectItem(j, "select")) {
18341+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; }
18342+ x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
1834318343 }
1834418344 }
1834518345 }
1834618346 return x;
1834718347 }
1834818348
18349-cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
18349+cJSON * cJSON_CreateSelect(const struct Select * x) {
1835018350 cJSON * j = NULL;
1835118351 if (NULL != x) {
1835218352 if (NULL != (j = cJSON_CreateObject())) {
18353- cJSON_AddNumberToObject(j, "true", x->true_true);
18353+ cJSON_AddNumberToObject(j, "select", x->select);
1835418354 }
1835518355 }
1835618356 return j;
1835718357 }
1835818358
18359-char * cJSON_PrintObj5True(const struct Obj5True * x) {
18359+char * cJSON_PrintSelect(const struct Select * x) {
1836018360 char * s = NULL;
1836118361 if (NULL != x) {
18362- cJSON * j = cJSON_CreateObj5True(x);
18362+ cJSON * j = cJSON_CreateSelect(x);
1836318363 if (NULL != j) {
1836418364 s = cJSON_Print(j);
1836518365 cJSON_Delete(j);
@@ -18368,7 +18368,7 @@ char * cJSON_PrintObj5True(const struct Obj5True * x) {
1836818368 return s;
1836918369 }
1837018370
18371-void cJSON_DeleteObj5True(struct Obj5True * x) {
18371+void cJSON_DeleteSelect(struct Select * x) {
1837218372 if (NULL != x) {
1837318373 cJSON_free(x);
1837418374 }
@@ -19529,6 +19529,61 @@ void cJSON_DeleteTimeZone(struct TimeZone * x) {
1952919529 }
1953019530 }
1953119531
19532+struct ToDict * cJSON_ParseToDict(const char * s) {
19533+ struct ToDict * x = NULL;
19534+ if (NULL != s) {
19535+ cJSON * j = cJSON_Parse(s);
19536+ if (NULL != j) {
19537+ x = cJSON_GetToDictValue(j);
19538+ cJSON_Delete(j);
19539+ }
19540+ }
19541+ return x;
19542+}
19543+
19544+struct ToDict * cJSON_GetToDictValue(const cJSON * j) {
19545+ struct ToDict * x = NULL;
19546+ if (NULL != j) {
19547+ if (NULL != (x = cJSON_malloc(sizeof(struct ToDict)))) {
19548+ memset(x, 0, sizeof(struct ToDict));
19549+ if (!cJSON_HasObjectItem(j, "to_dict")) { cJSON_DeleteToDict(x); return NULL; }
19550+ if (cJSON_HasObjectItem(j, "to_dict")) {
19551+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteToDict(x); return NULL; }
19552+ x->to_dict = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
19553+ }
19554+ }
19555+ }
19556+ return x;
19557+}
19558+
19559+cJSON * cJSON_CreateToDict(const struct ToDict * x) {
19560+ cJSON * j = NULL;
19561+ if (NULL != x) {
19562+ if (NULL != (j = cJSON_CreateObject())) {
19563+ cJSON_AddNumberToObject(j, "to_dict", x->to_dict);
19564+ }
19565+ }
19566+ return j;
19567+}
19568+
19569+char * cJSON_PrintToDict(const struct ToDict * x) {
19570+ char * s = NULL;
19571+ if (NULL != x) {
19572+ cJSON * j = cJSON_CreateToDict(x);
19573+ if (NULL != j) {
19574+ s = cJSON_Print(j);
19575+ cJSON_Delete(j);
19576+ }
19577+ }
19578+ return s;
19579+}
19580+
19581+void cJSON_DeleteToDict(struct ToDict * x) {
19582+ if (NULL != x) {
19583+ cJSON_free(x);
19584+ }
19585+}
19586+
1953219587 struct ToJson * cJSON_ParseToJson(const char * s) {
1953319588 struct ToJson * x = NULL;
1953419589 if (NULL != s) {
@@ -20409,61 +20464,6 @@ void cJSON_DeleteUuid(struct Uuid * x) {
2040920464 }
2041020465 }
2041120466
20412-struct Var * cJSON_ParseVar(const char * s) {
20413- struct Var * x = NULL;
20414- if (NULL != s) {
20415- cJSON * j = cJSON_Parse(s);
20416- if (NULL != j) {
20417- x = cJSON_GetVarValue(j);
20418- cJSON_Delete(j);
20419- }
20420- }
20421- return x;
20422-}
20423-
20424-struct Var * cJSON_GetVarValue(const cJSON * j) {
20425- struct Var * x = NULL;
20426- if (NULL != j) {
20427- if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
20428- memset(x, 0, sizeof(struct Var));
20429- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
20430- if (cJSON_HasObjectItem(j, "var")) {
20431- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
20432- x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20433- }
20434- }
20435- }
20436- return x;
20437-}
20438-
20439-cJSON * cJSON_CreateVar(const struct Var * x) {
20440- cJSON * j = NULL;
20441- if (NULL != x) {
20442- if (NULL != (j = cJSON_CreateObject())) {
20443- cJSON_AddNumberToObject(j, "var", x->var);
20444- }
20445- }
20446- return j;
20447-}
20448-
20449-char * cJSON_PrintVar(const struct Var * x) {
20450- char * s = NULL;
20451- if (NULL != x) {
20452- cJSON * j = cJSON_CreateVar(x);
20453- if (NULL != j) {
20454- s = cJSON_Print(j);
20455- cJSON_Delete(j);
20456- }
20457- }
20458- return s;
20459-}
20460-
20461-void cJSON_DeleteVar(struct Var * x) {
20462- if (NULL != x) {
20463- cJSON_free(x);
20464- }
20465-}
20466-
2046720467 struct Obj5 * cJSON_ParseObj5(const char * s) {
2046820468 struct Obj5 * x = NULL;
2046920469 if (NULL != s) {
@@ -20630,18 +20630,18 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2063020630 x->obj5_using = cJSON_GetUsingValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
2063120631 if (NULL == x->obj5_using) { cJSON_DeleteObj5(x); return NULL; }
2063220632 }
20633- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj5(x); return NULL; }
20634- if (cJSON_HasObjectItem(j, "virtual")) {
20635- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj5(x); return NULL; }
20636- x->obj5_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
20637- if (NULL == x->obj5_virtual) { cJSON_DeleteObj5(x); return NULL; }
20638- }
2063920633 if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5(x); return NULL; }
2064020634 if (cJSON_HasObjectItem(j, "true")) {
2064120635 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5(x); return NULL; }
2064220636 x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
2064320637 if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; }
2064420638 }
20639+ if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj5(x); return NULL; }
20640+ if (cJSON_HasObjectItem(j, "select")) {
20641+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj5(x); return NULL; }
20642+ x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
20643+ if (NULL == x->select) { cJSON_DeleteObj5(x); return NULL; }
20644+ }
2064520645 if (!cJSON_HasObjectItem(j, "Self")) { cJSON_DeleteObj5(x); return NULL; }
2064620646 if (cJSON_HasObjectItem(j, "Self")) {
2064720647 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Self"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20768,6 +20768,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2076820768 x->time_zone = cJSON_GetTimeZoneValue(cJSON_GetObjectItemCaseSensitive(j, "TimeZone"));
2076920769 if (NULL == x->time_zone) { cJSON_DeleteObj5(x); return NULL; }
2077020770 }
20771+ if (!cJSON_HasObjectItem(j, "to_dict")) { cJSON_DeleteObj5(x); return NULL; }
20772+ if (cJSON_HasObjectItem(j, "to_dict")) {
20773+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteObj5(x); return NULL; }
20774+ x->to_dict = cJSON_GetToDictValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
20775+ if (NULL == x->to_dict) { cJSON_DeleteObj5(x); return NULL; }
20776+ }
2077120777 if (!cJSON_HasObjectItem(j, "to_json")) { cJSON_DeleteObj5(x); return NULL; }
2077220778 if (cJSON_HasObjectItem(j, "to_json")) {
2077320779 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "to_json"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20864,12 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2086420870 x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
2086520871 if (NULL == x->uuid) { cJSON_DeleteObj5(x); return NULL; }
2086620872 }
20867- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj5(x); return NULL; }
20868- if (cJSON_HasObjectItem(j, "var")) {
20869- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj5(x); return NULL; }
20870- x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20871- if (NULL == x->var) { cJSON_DeleteObj5(x); return NULL; }
20872- }
2087320873 }
2087420874 }
2087520875 return x;
@@ -20904,8 +20904,8 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2090420904 cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
2090520905 cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned));
2090620906 cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj5_using));
20907- cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj5_virtual));
2090820907 cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true));
20908+ cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select));
2090920909 cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self));
2091020910 cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable));
2091120911 cJSON_AddItemToObject(j, "serialize", cJSON_CreateSerialize(x->serialize));
@@ -20927,6 +20927,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2092720927 cJSON_AddItemToObject(j, "TimeOnly", cJSON_CreateTimeOnly(x->time_only));
2092820928 cJSON_AddItemToObject(j, "TimeOnlyConverter", cJSON_CreateTimeOnlyConverter(x->time_only_converter));
2092920929 cJSON_AddItemToObject(j, "TimeZone", cJSON_CreateTimeZone(x->time_zone));
20930+ cJSON_AddItemToObject(j, "to_dict", cJSON_CreateToDict(x->to_dict));
2093020931 cJSON_AddItemToObject(j, "to_json", cJSON_CreateToJson(x->to_json));
2093120932 cJSON_AddItemToObject(j, "toString", cJSON_CreateToString(x->to_string));
2093220933 cJSON_AddItemToObject(j, "top_level", cJSON_CreateTopLevelClass(x->top_level));
@@ -20943,7 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2094320944 cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
2094420945 cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
2094520946 cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
20946- cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2094720947 }
2094820948 }
2094920949 return j;
@@ -21035,12 +21035,12 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103521035 if (NULL != x->obj5_using) {
2103621036 cJSON_DeleteUsing(x->obj5_using);
2103721037 }
21038- if (NULL != x->obj5_virtual) {
21039- cJSON_DeleteVirtual(x->obj5_virtual);
21040- }
2104121038 if (NULL != x->purple_true) {
2104221039 cJSON_DeleteObj5True(x->purple_true);
2104321040 }
21041+ if (NULL != x->select) {
21042+ cJSON_DeleteSelect(x->select);
21043+ }
2104421044 if (NULL != x->self) {
2104521045 cJSON_DeleteSelf(x->self);
2104621046 }
@@ -21104,6 +21104,9 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2110421104 if (NULL != x->time_zone) {
2110521105 cJSON_DeleteTimeZone(x->time_zone);
2110621106 }
21107+ if (NULL != x->to_dict) {
21108+ cJSON_DeleteToDict(x->to_dict);
21109+ }
2110721110 if (NULL != x->to_json) {
2110821111 cJSON_DeleteToJson(x->to_json);
2110921112 }
@@ -21152,9 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2115221155 if (NULL != x->uuid) {
2115321156 cJSON_DeleteUuid(x->uuid);
2115421157 }
21155- if (NULL != x->var) {
21156- cJSON_DeleteVar(x->var);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Virtual * cJSON_ParseVirtual(const char * s) {
21163+ struct Virtual * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetVirtualValue(j);
21168+ cJSON_Delete(j);
2115721169 }
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
21175+ struct Virtual * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
21178+ memset(x, 0, sizeof(struct Virtual));
21179+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "virtual")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
21182+ x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
21183+ }
21184+ }
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
21194+ }
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintVirtual(const struct Virtual * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateVirtual(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
21206+ }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteVirtual(struct Virtual * x) {
21212+ if (NULL != x) {
2115821213 cJSON_free(x);
2115921214 }
2116021215 }
@@ -21489,6 +21544,61 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2148921544 }
2149021545 }
2149121546
21547+struct Var * cJSON_ParseVar(const char * s) {
21548+ struct Var * x = NULL;
21549+ if (NULL != s) {
21550+ cJSON * j = cJSON_Parse(s);
21551+ if (NULL != j) {
21552+ x = cJSON_GetVarValue(j);
21553+ cJSON_Delete(j);
21554+ }
21555+ }
21556+ return x;
21557+}
21558+
21559+struct Var * cJSON_GetVarValue(const cJSON * j) {
21560+ struct Var * x = NULL;
21561+ if (NULL != j) {
21562+ if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
21563+ memset(x, 0, sizeof(struct Var));
21564+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
21565+ if (cJSON_HasObjectItem(j, "var")) {
21566+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
21567+ x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
21568+ }
21569+ }
21570+ }
21571+ return x;
21572+}
21573+
21574+cJSON * cJSON_CreateVar(const struct Var * x) {
21575+ cJSON * j = NULL;
21576+ if (NULL != x) {
21577+ if (NULL != (j = cJSON_CreateObject())) {
21578+ cJSON_AddNumberToObject(j, "var", x->var);
21579+ }
21580+ }
21581+ return j;
21582+}
21583+
21584+char * cJSON_PrintVar(const struct Var * x) {
21585+ char * s = NULL;
21586+ if (NULL != x) {
21587+ cJSON * j = cJSON_CreateVar(x);
21588+ if (NULL != j) {
21589+ s = cJSON_Print(j);
21590+ cJSON_Delete(j);
21591+ }
21592+ }
21593+ return s;
21594+}
21595+
21596+void cJSON_DeleteVar(struct Var * x) {
21597+ if (NULL != x) {
21598+ cJSON_free(x);
21599+ }
21600+}
21601+
2149221602 struct Weak * cJSON_ParseWeak(const char * s) {
2149321603 struct Weak * x = NULL;
2149421604 if (NULL != s) {
@@ -21841,6 +21951,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2184121951 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2184221952 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2184321953 }
21954+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj6(x); return NULL; }
21955+ if (cJSON_HasObjectItem(j, "virtual")) {
21956+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj6(x); return NULL; }
21957+ x->obj6_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
21958+ if (NULL == x->obj6_virtual) { cJSON_DeleteObj6(x); return NULL; }
21959+ }
2184421960 if (!cJSON_HasObjectItem(j, "void")) { cJSON_DeleteObj6(x); return NULL; }
2184521961 if (cJSON_HasObjectItem(j, "void")) {
2184621962 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "void"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21877,6 +21993,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2187721993 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2187821994 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2187921995 }
21996+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj6(x); return NULL; }
21997+ if (cJSON_HasObjectItem(j, "var")) {
21998+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj6(x); return NULL; }
21999+ x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
22000+ if (NULL == x->var) { cJSON_DeleteObj6(x); return NULL; }
22001+ }
2188022002 if (!cJSON_HasObjectItem(j, "weak")) { cJSON_DeleteObj6(x); return NULL; }
2188122003 if (cJSON_HasObjectItem(j, "weak")) {
2188222004 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "weak"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21923,12 +22045,14 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2192322045 if (NULL != x) {
2192422046 if (NULL != (j = cJSON_CreateObject())) {
2192522047 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22048+ cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
2192622049 cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void));
2192722050 cJSON_AddItemToObject(j, "volatile", cJSON_CreateVolatile(x->obj6_volatile));
2192822051 cJSON_AddItemToObject(j, "wchar_t", cJSON_CreateWcharT(x->obj6_wchar_t));
2192922052 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2193022053 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2193122054 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22055+ cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2193222056 cJSON_AddItemToObject(j, "weak", cJSON_CreateWeak(x->weak));
2193322057 cJSON_AddItemToObject(j, "where", cJSON_CreateWhere(x->where));
2193422058 cJSON_AddItemToObject(j, "willSet", cJSON_CreateWillSet(x->will_set));
@@ -21954,6 +22078,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2195422078
2195522079 void cJSON_DeleteObj6(struct Obj6 * x) {
2195622080 if (NULL != x) {
22081+ if (NULL != x->obj6_virtual) {
22082+ cJSON_DeleteVirtual(x->obj6_virtual);
22083+ }
2195722084 if (NULL != x->obj6_void) {
2195822085 cJSON_DeleteVoid(x->obj6_void);
2195922086 }
@@ -21972,6 +22099,9 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2197222099 if (NULL != x->obj6_xor_eq) {
2197322100 cJSON_DeleteXorEq(x->obj6_xor_eq);
2197422101 }
22102+ if (NULL != x->var) {
22103+ cJSON_DeleteVar(x->var);
22104+ }
2197522105 if (NULL != x->weak) {
2197622106 cJSON_DeleteWeak(x->weak);
2197722107 }
Mcjsondefault / TopLevel.h+77 −55
@@ -537,6 +537,10 @@ struct From {
537537 int64_t from;
538538 };
539539
540+struct FromDict {
541+ int64_t from_dict;
542+};
543+
540544 struct FromJson {
541545 int64_t from_json;
542546 };
@@ -625,10 +629,6 @@ struct Friend {
625629 int64_t friend_friend;
626630 };
627631
628-struct Goto {
629- int64_t goto_goto;
630-};
631-
632632 struct Obj2False {
633633 int64_t false_false;
634634 };
@@ -675,6 +675,7 @@ struct Obj2 {
675675 struct Foreach * foreach;
676676 struct FormatException * format_exception;
677677 struct From * from;
678+ struct FromDict * from_dict;
678679 struct FromJson * from_json;
679680 struct Func * func;
680681 struct Function * function;
@@ -697,7 +698,6 @@ struct Obj2 {
697698 struct Float * obj2_float;
698699 struct For * obj2_for;
699700 struct Friend * obj2_friend;
700- struct Goto * obj2_goto;
701701 struct Obj2False * purple_false;
702702 };
703703
@@ -917,6 +917,10 @@ struct No {
917917 int64_t no;
918918 };
919919
920+struct Goto {
921+ int64_t goto_goto;
922+};
923+
920924 struct If {
921925 int64_t if_if;
922926 };
@@ -953,10 +957,6 @@ struct New {
953957 int64_t new_new;
954958 };
955959
956-struct Noexcept {
957- int64_t noexcept_noexcept;
958-};
959-
960960 struct Obj3 {
961961 int64_t dummy;
962962 struct Guard * guard;
@@ -1013,6 +1013,7 @@ struct Obj3 {
10131013 struct Newtonsoft * newtonsoft;
10141014 struct Nil * nil;
10151015 struct No * no;
1016+ struct Goto * obj3_goto;
10161017 struct If * obj3_if;
10171018 struct Import * obj3_import;
10181019 struct Inline * obj3_inline;
@@ -1022,7 +1023,6 @@ struct Obj3 {
10221023 struct Mutable * obj3_mutable;
10231024 struct Namespace * obj3_namespace;
10241025 struct New * obj3_new;
1025- struct Noexcept * obj3_noexcept;
10261026 };
10271027
10281028 struct NoSuchMethod {
@@ -1065,6 +1065,10 @@ struct NumberClass {
10651065 int64_t number;
10661066 };
10671067
1068+struct Noexcept {
1069+ int64_t noexcept_noexcept;
1070+};
1071+
10681072 struct NoneClass {
10691073 int64_t none;
10701074 };
@@ -1277,10 +1281,6 @@ struct Sel {
12771281 int64_t sel;
12781282 };
12791283
1280-struct Select {
1281- int64_t select;
1282-};
1283-
12841284 struct Obj4 {
12851285 int64_t dummy;
12861286 struct NoSuchMethod * no_such_method;
@@ -1293,6 +1293,7 @@ struct Obj4 {
12931293 struct NsString * ns_string;
12941294 struct NullClass * null;
12951295 struct NumberClass * number;
1296+ struct Noexcept * obj4_noexcept;
12961297 struct NoneClass * obj4_none;
12971298 struct Not * obj4_not;
12981299 struct NotEq * obj4_not_eq;
@@ -1346,7 +1347,6 @@ struct Obj4 {
13461347 struct Sbyte * sbyte;
13471348 struct Sealed * sealed;
13481349 struct Sel * sel;
1349- struct Select * select;
13501350 };
13511351
13521352 struct SelfClass {
@@ -1445,14 +1445,14 @@ struct Using {
14451445 int64_t using_using;
14461446 };
14471447
1448-struct Virtual {
1449- int64_t virtual_virtual;
1450-};
1451-
14521448 struct Obj5True {
14531449 int64_t true_true;
14541450 };
14551451
1452+struct Select {
1453+ int64_t select;
1454+};
1455+
14561456 struct Self {
14571457 int64_t self;
14581458 };
@@ -1537,6 +1537,10 @@ struct TimeZone {
15371537 int64_t time_zone;
15381538 };
15391539
1540+struct ToDict {
1541+ int64_t to_dict;
1542+};
1543+
15401544 struct ToJson {
15411545 int64_t to_json;
15421546 };
@@ -1601,10 +1605,6 @@ struct Uuid {
16011605 int64_t uuid;
16021606 };
16031607
1604-struct Var {
1605- int64_t var;
1606-};
1607-
16081608 struct Obj5 {
16091609 int64_t dummy;
16101610 struct SelfClass * obj5_self;
@@ -1631,8 +1631,8 @@ struct Obj5 {
16311631 struct Union * obj5_union;
16321632 struct Unsigned * obj5_unsigned;
16331633 struct Using * obj5_using;
1634- struct Virtual * obj5_virtual;
16351634 struct Obj5True * purple_true;
1635+ struct Select * select;
16361636 struct Self * self;
16371637 struct Sendable * sendable;
16381638 struct Serialize * serialize;
@@ -1654,6 +1654,7 @@ struct Obj5 {
16541654 struct TimeOnly * time_only;
16551655 struct TimeOnlyConverter * time_only_converter;
16561656 struct TimeZone * time_zone;
1657+ struct ToDict * to_dict;
16571658 struct ToJson * to_json;
16581659 struct ToString * to_string;
16591660 struct TopLevelClass * top_level;
@@ -1670,7 +1671,10 @@ struct Obj5 {
16701671 struct Utf8JsonReader * utf8_json_reader;
16711672 struct Utf8JsonWriter * utf8_json_writer;
16721673 struct Uuid * uuid;
1673- struct Var * var;
1674+};
1675+
1676+struct Virtual {
1677+ int64_t virtual_virtual;
16741678 };
16751679
16761680 struct Void {
@@ -1697,6 +1701,10 @@ struct XorEq {
16971701 int64_t xor_eq_xor_eq;
16981702 };
16991703
1704+struct Var {
1705+ int64_t var;
1706+};
1707+
17001708 struct Weak {
17011709 int64_t weak;
17021710 };
@@ -1723,12 +1731,14 @@ struct Yield {
17231731
17241732 struct Obj6 {
17251733 int64_t dummy;
1734+ struct Virtual * obj6_virtual;
17261735 struct Void * obj6_void;
17271736 struct Volatile * obj6_volatile;
17281737 struct WcharT * obj6_wchar_t;
17291738 struct While * obj6_while;
17301739 struct Xor * obj6_xor;
17311740 struct XorEq * obj6_xor_eq;
1741+ struct Var * var;
17321742 struct Weak * weak;
17331743 struct Where * where;
17341744 struct WillSet * will_set;
@@ -2380,6 +2390,12 @@ cJSON * cJSON_CreateFrom(const struct From * x);
23802390 char * cJSON_PrintFrom(const struct From * x);
23812391 void cJSON_DeleteFrom(struct From * x);
23822392
2393+struct FromDict * cJSON_ParseFromDict(const char * s);
2394+struct FromDict * cJSON_GetFromDictValue(const cJSON * j);
2395+cJSON * cJSON_CreateFromDict(const struct FromDict * x);
2396+char * cJSON_PrintFromDict(const struct FromDict * x);
2397+void cJSON_DeleteFromDict(struct FromDict * x);
2398+
23832399 struct FromJson * cJSON_ParseFromJson(const char * s);
23842400 struct FromJson * cJSON_GetFromJsonValue(const cJSON * j);
23852401 cJSON * cJSON_CreateFromJson(const struct FromJson * x);
@@ -2512,12 +2528,6 @@ cJSON * cJSON_CreateFriend(const struct Friend * x);
25122528 char * cJSON_PrintFriend(const struct Friend * x);
25132529 void cJSON_DeleteFriend(struct Friend * x);
25142530
2515-struct Goto * cJSON_ParseGoto(const char * s);
2516-struct Goto * cJSON_GetGotoValue(const cJSON * j);
2517-cJSON * cJSON_CreateGoto(const struct Goto * x);
2518-char * cJSON_PrintGoto(const struct Goto * x);
2519-void cJSON_DeleteGoto(struct Goto * x);
2520-
25212531 struct Obj2False * cJSON_ParseObj2False(const char * s);
25222532 struct Obj2False * cJSON_GetObj2FalseValue(const cJSON * j);
25232533 cJSON * cJSON_CreateObj2False(const struct Obj2False * x);
@@ -2854,6 +2864,12 @@ cJSON * cJSON_CreateNo(const struct No * x);
28542864 char * cJSON_PrintNo(const struct No * x);
28552865 void cJSON_DeleteNo(struct No * x);
28562866
2867+struct Goto * cJSON_ParseGoto(const char * s);
2868+struct Goto * cJSON_GetGotoValue(const cJSON * j);
2869+cJSON * cJSON_CreateGoto(const struct Goto * x);
2870+char * cJSON_PrintGoto(const struct Goto * x);
2871+void cJSON_DeleteGoto(struct Goto * x);
2872+
28572873 struct If * cJSON_ParseIf(const char * s);
28582874 struct If * cJSON_GetIfValue(const cJSON * j);
28592875 cJSON * cJSON_CreateIf(const struct If * x);
@@ -2908,12 +2924,6 @@ cJSON * cJSON_CreateNew(const struct New * x);
29082924 char * cJSON_PrintNew(const struct New * x);
29092925 void cJSON_DeleteNew(struct New * x);
29102926
2911-struct Noexcept * cJSON_ParseNoexcept(const char * s);
2912-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
2913-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
2914-char * cJSON_PrintNoexcept(const struct Noexcept * x);
2915-void cJSON_DeleteNoexcept(struct Noexcept * x);
2916-
29172927 struct Obj3 * cJSON_ParseObj3(const char * s);
29182928 struct Obj3 * cJSON_GetObj3Value(const cJSON * j);
29192929 cJSON * cJSON_CreateObj3(const struct Obj3 * x);
@@ -2980,6 +2990,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x);
29802990 char * cJSON_PrintNumberClass(const struct NumberClass * x);
29812991 void cJSON_DeleteNumberClass(struct NumberClass * x);
29822992
2993+struct Noexcept * cJSON_ParseNoexcept(const char * s);
2994+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
2995+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
2996+char * cJSON_PrintNoexcept(const struct Noexcept * x);
2997+void cJSON_DeleteNoexcept(struct Noexcept * x);
2998+
29832999 struct NoneClass * cJSON_ParseNoneClass(const char * s);
29843000 struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j);
29853001 cJSON * cJSON_CreateNoneClass(const struct NoneClass * x);
@@ -3298,12 +3314,6 @@ cJSON * cJSON_CreateSel(const struct Sel * x);
32983314 char * cJSON_PrintSel(const struct Sel * x);
32993315 void cJSON_DeleteSel(struct Sel * x);
33003316
3301-struct Select * cJSON_ParseSelect(const char * s);
3302-struct Select * cJSON_GetSelectValue(const cJSON * j);
3303-cJSON * cJSON_CreateSelect(const struct Select * x);
3304-char * cJSON_PrintSelect(const struct Select * x);
3305-void cJSON_DeleteSelect(struct Select * x);
3306-
33073317 struct Obj4 * cJSON_ParseObj4(const char * s);
33083318 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
33093319 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3454,18 +3464,18 @@ cJSON * cJSON_CreateUsing(const struct Using * x);
34543464 char * cJSON_PrintUsing(const struct Using * x);
34553465 void cJSON_DeleteUsing(struct Using * x);
34563466
3457-struct Virtual * cJSON_ParseVirtual(const char * s);
3458-struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3459-cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3460-char * cJSON_PrintVirtual(const struct Virtual * x);
3461-void cJSON_DeleteVirtual(struct Virtual * x);
3462-
34633467 struct Obj5True * cJSON_ParseObj5True(const char * s);
34643468 struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j);
34653469 cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
34663470 char * cJSON_PrintObj5True(const struct Obj5True * x);
34673471 void cJSON_DeleteObj5True(struct Obj5True * x);
34683472
3473+struct Select * cJSON_ParseSelect(const char * s);
3474+struct Select * cJSON_GetSelectValue(const cJSON * j);
3475+cJSON * cJSON_CreateSelect(const struct Select * x);
3476+char * cJSON_PrintSelect(const struct Select * x);
3477+void cJSON_DeleteSelect(struct Select * x);
3478+
34693479 struct Self * cJSON_ParseSelf(const char * s);
34703480 struct Self * cJSON_GetSelfValue(const cJSON * j);
34713481 cJSON * cJSON_CreateSelf(const struct Self * x);
@@ -3592,6 +3602,12 @@ cJSON * cJSON_CreateTimeZone(const struct TimeZone * x);
35923602 char * cJSON_PrintTimeZone(const struct TimeZone * x);
35933603 void cJSON_DeleteTimeZone(struct TimeZone * x);
35943604
3605+struct ToDict * cJSON_ParseToDict(const char * s);
3606+struct ToDict * cJSON_GetToDictValue(const cJSON * j);
3607+cJSON * cJSON_CreateToDict(const struct ToDict * x);
3608+char * cJSON_PrintToDict(const struct ToDict * x);
3609+void cJSON_DeleteToDict(struct ToDict * x);
3610+
35953611 struct ToJson * cJSON_ParseToJson(const char * s);
35963612 struct ToJson * cJSON_GetToJsonValue(const cJSON * j);
35973613 cJSON * cJSON_CreateToJson(const struct ToJson * x);
@@ -3688,18 +3704,18 @@ cJSON * cJSON_CreateUuid(const struct Uuid * x);
36883704 char * cJSON_PrintUuid(const struct Uuid * x);
36893705 void cJSON_DeleteUuid(struct Uuid * x);
36903706
3691-struct Var * cJSON_ParseVar(const char * s);
3692-struct Var * cJSON_GetVarValue(const cJSON * j);
3693-cJSON * cJSON_CreateVar(const struct Var * x);
3694-char * cJSON_PrintVar(const struct Var * x);
3695-void cJSON_DeleteVar(struct Var * x);
3696-
36973707 struct Obj5 * cJSON_ParseObj5(const char * s);
36983708 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
36993709 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37003710 char * cJSON_PrintObj5(const struct Obj5 * x);
37013711 void cJSON_DeleteObj5(struct Obj5 * x);
37023712
3713+struct Virtual * cJSON_ParseVirtual(const char * s);
3714+struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3715+cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3716+char * cJSON_PrintVirtual(const struct Virtual * x);
3717+void cJSON_DeleteVirtual(struct Virtual * x);
3718+
37033719 struct Void * cJSON_ParseVoid(const char * s);
37043720 struct Void * cJSON_GetVoidValue(const cJSON * j);
37053721 cJSON * cJSON_CreateVoid(const struct Void * x);
@@ -3736,6 +3752,12 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
37363752 char * cJSON_PrintXorEq(const struct XorEq * x);
37373753 void cJSON_DeleteXorEq(struct XorEq * x);
37383754
3755+struct Var * cJSON_ParseVar(const char * s);
3756+struct Var * cJSON_GetVarValue(const cJSON * j);
3757+cJSON * cJSON_CreateVar(const struct Var * x);
3758+char * cJSON_PrintVar(const struct Var * x);
3759+void cJSON_DeleteVar(struct Var * x);
3760+
37393761 struct Weak * cJSON_ParseWeak(const char * s);
37403762 struct Weak * cJSON_GetWeakValue(const cJSON * j);
37413763 cJSON * cJSON_CreateWeak(const struct Weak * x);
Mcplusplusdefault / quicktype.hpp+243 −173
@@ -1823,6 +1823,20 @@ namespace quicktype {
18231823 void set_from(const int64_t & value) { this->from = value; }
18241824 };
18251825
1826+ class FromDict {
1827+ public:
1828+ FromDict() = default;
1829+ virtual ~FromDict() = default;
1830+
1831+ private:
1832+ int64_t from_dict;
1833+
1834+ public:
1835+ const int64_t & get_from_dict() const { return from_dict; }
1836+ int64_t & get_mutable_from_dict() { return from_dict; }
1837+ void set_from_dict(const int64_t & value) { this->from_dict = value; }
1838+ };
1839+
18261840 class FromJson {
18271841 public:
18281842 FromJson() = default;
@@ -2131,20 +2145,6 @@ namespace quicktype {
21312145 void set_friend_friend(const int64_t & value) { this->friend_friend = value; }
21322146 };
21332147
2134- class Goto {
2135- public:
2136- Goto() = default;
2137- virtual ~Goto() = default;
2138-
2139- private:
2140- int64_t goto_goto;
2141-
2142- public:
2143- const int64_t & get_goto_goto() const { return goto_goto; }
2144- int64_t & get_mutable_goto_goto() { return goto_goto; }
2145- void set_goto_goto(const int64_t & value) { this->goto_goto = value; }
2146- };
2147-
21482148 class FalseClass {
21492149 public:
21502150 FalseClass() = default;
@@ -2206,6 +2206,7 @@ namespace quicktype {
22062206 Foreach foreach;
22072207 FormatException format_exception;
22082208 From from;
2209+ FromDict from_dict;
22092210 FromJson from_json;
22102211 Func func;
22112212 Function function;
@@ -2228,7 +2229,6 @@ namespace quicktype {
22282229 Float obj2_float;
22292230 For obj2_for;
22302231 Friend obj2_friend;
2231- Goto obj2_goto;
22322232 FalseClass purple_false;
22332233
22342234 public:
@@ -2396,6 +2396,10 @@ namespace quicktype {
23962396 From & get_mutable_from() { return from; }
23972397 void set_from(const From & value) { this->from = value; }
23982398
2399+ const FromDict & get_from_dict() const { return from_dict; }
2400+ FromDict & get_mutable_from_dict() { return from_dict; }
2401+ void set_from_dict(const FromDict & value) { this->from_dict = value; }
2402+
23992403 const FromJson & get_from_json() const { return from_json; }
24002404 FromJson & get_mutable_from_json() { return from_json; }
24012405 void set_from_json(const FromJson & value) { this->from_json = value; }
@@ -2484,10 +2488,6 @@ namespace quicktype {
24842488 Friend & get_mutable_obj2_friend() { return obj2_friend; }
24852489 void set_obj2_friend(const Friend & value) { this->obj2_friend = value; }
24862490
2487- const Goto & get_obj2_goto() const { return obj2_goto; }
2488- Goto & get_mutable_obj2_goto() { return obj2_goto; }
2489- void set_obj2_goto(const Goto & value) { this->obj2_goto = value; }
2490-
24912491 const FalseClass & get_purple_false() const { return purple_false; }
24922492 FalseClass & get_mutable_purple_false() { return purple_false; }
24932493 void set_purple_false(const FalseClass & value) { this->purple_false = value; }
@@ -3249,6 +3249,20 @@ namespace quicktype {
32493249 void set_no(const int64_t & value) { this->no = value; }
32503250 };
32513251
3252+ class Goto {
3253+ public:
3254+ Goto() = default;
3255+ virtual ~Goto() = default;
3256+
3257+ private:
3258+ int64_t goto_goto;
3259+
3260+ public:
3261+ const int64_t & get_goto_goto() const { return goto_goto; }
3262+ int64_t & get_mutable_goto_goto() { return goto_goto; }
3263+ void set_goto_goto(const int64_t & value) { this->goto_goto = value; }
3264+ };
3265+
32523266 class If {
32533267 public:
32543268 If() = default;
@@ -3375,20 +3389,6 @@ namespace quicktype {
33753389 void set_new_new(const int64_t & value) { this->new_new = value; }
33763390 };
33773391
3378- class Noexcept {
3379- public:
3380- Noexcept() = default;
3381- virtual ~Noexcept() = default;
3382-
3383- private:
3384- int64_t noexcept_noexcept;
3385-
3386- public:
3387- const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; }
3388- int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; }
3389- void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; }
3390- };
3391-
33923392 class Obj3 {
33933393 public:
33943394 Obj3() = default;
@@ -3450,6 +3450,7 @@ namespace quicktype {
34503450 Newtonsoft newtonsoft;
34513451 Nil nil;
34523452 No no;
3453+ Goto obj3_goto;
34533454 If obj3_if;
34543455 Import obj3_import;
34553456 Inline obj3_inline;
@@ -3459,7 +3460,6 @@ namespace quicktype {
34593460 Mutable obj3_mutable;
34603461 Namespace obj3_namespace;
34613462 New obj3_new;
3462- Noexcept obj3_noexcept;
34633463
34643464 public:
34653465 const int64_t & get_dummy() const { return dummy; }
@@ -3682,6 +3682,10 @@ namespace quicktype {
36823682 No & get_mutable_no() { return no; }
36833683 void set_no(const No & value) { this->no = value; }
36843684
3685+ const Goto & get_obj3_goto() const { return obj3_goto; }
3686+ Goto & get_mutable_obj3_goto() { return obj3_goto; }
3687+ void set_obj3_goto(const Goto & value) { this->obj3_goto = value; }
3688+
36853689 const If & get_obj3_if() const { return obj3_if; }
36863690 If & get_mutable_obj3_if() { return obj3_if; }
36873691 void set_obj3_if(const If & value) { this->obj3_if = value; }
@@ -3717,10 +3721,6 @@ namespace quicktype {
37173721 const New & get_obj3_new() const { return obj3_new; }
37183722 New & get_mutable_obj3_new() { return obj3_new; }
37193723 void set_obj3_new(const New & value) { this->obj3_new = value; }
3720-
3721- const Noexcept & get_obj3_noexcept() const { return obj3_noexcept; }
3722- Noexcept & get_mutable_obj3_noexcept() { return obj3_noexcept; }
3723- void set_obj3_noexcept(const Noexcept & value) { this->obj3_noexcept = value; }
37243724 };
37253725
37263726 class NoSuchMethod {
@@ -3863,6 +3863,20 @@ namespace quicktype {
38633863 void set_number(const int64_t & value) { this->number = value; }
38643864 };
38653865
3866+ class Noexcept {
3867+ public:
3868+ Noexcept() = default;
3869+ virtual ~Noexcept() = default;
3870+
3871+ private:
3872+ int64_t noexcept_noexcept;
3873+
3874+ public:
3875+ const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; }
3876+ int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; }
3877+ void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; }
3878+ };
3879+
38663880 class NoneClass {
38673881 public:
38683882 NoneClass() = default;
@@ -4605,20 +4619,6 @@ namespace quicktype {
46054619 void set_sel(const int64_t & value) { this->sel = value; }
46064620 };
46074621
4608- class Select {
4609- public:
4610- Select() = default;
4611- virtual ~Select() = default;
4612-
4613- private:
4614- int64_t select;
4615-
4616- public:
4617- const int64_t & get_select() const { return select; }
4618- int64_t & get_mutable_select() { return select; }
4619- void set_select(const int64_t & value) { this->select = value; }
4620- };
4621-
46224622 class Obj4 {
46234623 public:
46244624 Obj4() = default;
@@ -4636,6 +4636,7 @@ namespace quicktype {
46364636 NsString ns_string;
46374637 Null null;
46384638 Number number;
4639+ Noexcept obj4_noexcept;
46394640 NoneClass obj4_none;
46404641 Not obj4_not;
46414642 NotEq obj4_not_eq;
@@ -4689,7 +4690,6 @@ namespace quicktype {
46894690 Sbyte sbyte;
46904691 Sealed sealed;
46914692 Sel sel;
4692- Select select;
46934693
46944694 public:
46954695 const int64_t & get_dummy() const { return dummy; }
@@ -4736,6 +4736,10 @@ namespace quicktype {
47364736 Number & get_mutable_number() { return number; }
47374737 void set_number(const Number & value) { this->number = value; }
47384738
4739+ const Noexcept & get_obj4_noexcept() const { return obj4_noexcept; }
4740+ Noexcept & get_mutable_obj4_noexcept() { return obj4_noexcept; }
4741+ void set_obj4_noexcept(const Noexcept & value) { this->obj4_noexcept = value; }
4742+
47394743 const NoneClass & get_obj4_none() const { return obj4_none; }
47404744 NoneClass & get_mutable_obj4_none() { return obj4_none; }
47414745 void set_obj4_none(const NoneClass & value) { this->obj4_none = value; }
@@ -4947,10 +4951,6 @@ namespace quicktype {
49474951 const Sel & get_sel() const { return sel; }
49484952 Sel & get_mutable_sel() { return sel; }
49494953 void set_sel(const Sel & value) { this->sel = value; }
4950-
4951- const Select & get_select() const { return select; }
4952- Select & get_mutable_select() { return select; }
4953- void set_select(const Select & value) { this->select = value; }
49544954 };
49554955
49564956 class SelfClass {
@@ -5275,20 +5275,6 @@ namespace quicktype {
52755275 void set_using_using(const int64_t & value) { this->using_using = value; }
52765276 };
52775277
5278- class Virtual {
5279- public:
5280- Virtual() = default;
5281- virtual ~Virtual() = default;
5282-
5283- private:
5284- int64_t virtual_virtual;
5285-
5286- public:
5287- const int64_t & get_virtual_virtual() const { return virtual_virtual; }
5288- int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
5289- void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
5290- };
5291-
52925278 class TrueClass {
52935279 public:
52945280 TrueClass() = default;
@@ -5303,6 +5289,20 @@ namespace quicktype {
53035289 void set_true_true(const int64_t & value) { this->true_true = value; }
53045290 };
53055291
5292+ class Select {
5293+ public:
5294+ Select() = default;
5295+ virtual ~Select() = default;
5296+
5297+ private:
5298+ int64_t select;
5299+
5300+ public:
5301+ const int64_t & get_select() const { return select; }
5302+ int64_t & get_mutable_select() { return select; }
5303+ void set_select(const int64_t & value) { this->select = value; }
5304+ };
5305+
53065306 class Self {
53075307 public:
53085308 Self() = default;
@@ -5597,6 +5597,20 @@ namespace quicktype {
55975597 void set_time_zone(const int64_t & value) { this->time_zone = value; }
55985598 };
55995599
5600+ class ToDict {
5601+ public:
5602+ ToDict() = default;
5603+ virtual ~ToDict() = default;
5604+
5605+ private:
5606+ int64_t to_dict;
5607+
5608+ public:
5609+ const int64_t & get_to_dict() const { return to_dict; }
5610+ int64_t & get_mutable_to_dict() { return to_dict; }
5611+ void set_to_dict(const int64_t & value) { this->to_dict = value; }
5612+ };
5613+
56005614 class ToJson {
56015615 public:
56025616 ToJson() = default;
@@ -5835,20 +5849,6 @@ namespace quicktype {
58355849 void set_uuid(const int64_t & value) { this->uuid = value; }
58365850 };
58375851
5838- class Var {
5839- public:
5840- Var() = default;
5841- virtual ~Var() = default;
5842-
5843- private:
5844- int64_t var;
5845-
5846- public:
5847- const int64_t & get_var() const { return var; }
5848- int64_t & get_mutable_var() { return var; }
5849- void set_var(const int64_t & value) { this->var = value; }
5850- };
5851-
58525852 class Obj5 {
58535853 public:
58545854 Obj5() = default;
@@ -5879,8 +5879,8 @@ namespace quicktype {
58795879 Union obj5_union;
58805880 Unsigned obj5_unsigned;
58815881 Using obj5_using;
5882- Virtual obj5_virtual;
58835882 TrueClass purple_true;
5883+ Select select;
58845884 Self self;
58855885 Sendable sendable;
58865886 Serialize serialize;
@@ -5902,6 +5902,7 @@ namespace quicktype {
59025902 TimeOnly time_only;
59035903 TimeOnlyConverter time_only_converter;
59045904 TimeZone time_zone;
5905+ ToDict to_dict;
59055906 ToJson to_json;
59065907 ToString to_string;
59075908 TopLevelClass top_level;
@@ -5919,7 +5920,6 @@ namespace quicktype {
59195920 Utf8JsonReader utf8_json_reader;
59205921 Utf8JsonWriter utf8_json_writer;
59215922 Uuid uuid;
5922- Var var;
59235923
59245924 public:
59255925 const int64_t & get_dummy() const { return dummy; }
@@ -6018,14 +6018,14 @@ namespace quicktype {
60186018 Using & get_mutable_obj5_using() { return obj5_using; }
60196019 void set_obj5_using(const Using & value) { this->obj5_using = value; }
60206020
6021- const Virtual & get_obj5_virtual() const { return obj5_virtual; }
6022- Virtual & get_mutable_obj5_virtual() { return obj5_virtual; }
6023- void set_obj5_virtual(const Virtual & value) { this->obj5_virtual = value; }
6024-
60256021 const TrueClass & get_purple_true() const { return purple_true; }
60266022 TrueClass & get_mutable_purple_true() { return purple_true; }
60276023 void set_purple_true(const TrueClass & value) { this->purple_true = value; }
60286024
6025+ const Select & get_select() const { return select; }
6026+ Select & get_mutable_select() { return select; }
6027+ void set_select(const Select & value) { this->select = value; }
6028+
60296029 const Self & get_self() const { return self; }
60306030 Self & get_mutable_self() { return self; }
60316031 void set_self(const Self & value) { this->self = value; }
@@ -6110,6 +6110,10 @@ namespace quicktype {
61106110 TimeZone & get_mutable_time_zone() { return time_zone; }
61116111 void set_time_zone(const TimeZone & value) { this->time_zone = value; }
61126112
6113+ const ToDict & get_to_dict() const { return to_dict; }
6114+ ToDict & get_mutable_to_dict() { return to_dict; }
6115+ void set_to_dict(const ToDict & value) { this->to_dict = value; }
6116+
61136117 const ToJson & get_to_json() const { return to_json; }
61146118 ToJson & get_mutable_to_json() { return to_json; }
61156119 void set_to_json(const ToJson & value) { this->to_json = value; }
@@ -6177,10 +6181,20 @@ namespace quicktype {
61776181 const Uuid & get_uuid() const { return uuid; }
61786182 Uuid & get_mutable_uuid() { return uuid; }
61796183 void set_uuid(const Uuid & value) { this->uuid = value; }
6184+ };
61806185
6181- const Var & get_var() const { return var; }
6182- Var & get_mutable_var() { return var; }
6183- void set_var(const Var & value) { this->var = value; }
6186+ class Virtual {
6187+ public:
6188+ Virtual() = default;
6189+ virtual ~Virtual() = default;
6190+
6191+ private:
6192+ int64_t virtual_virtual;
6193+
6194+ public:
6195+ const int64_t & get_virtual_virtual() const { return virtual_virtual; }
6196+ int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
6197+ void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
61846198 };
61856199
61866200 class Void {
@@ -6267,6 +6281,20 @@ namespace quicktype {
62676281 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
62686282 };
62696283
6284+ class Var {
6285+ public:
6286+ Var() = default;
6287+ virtual ~Var() = default;
6288+
6289+ private:
6290+ int64_t var;
6291+
6292+ public:
6293+ const int64_t & get_var() const { return var; }
6294+ int64_t & get_mutable_var() { return var; }
6295+ void set_var(const int64_t & value) { this->var = value; }
6296+ };
6297+
62706298 class Weak {
62716299 public:
62726300 Weak() = default;
@@ -6358,12 +6386,14 @@ namespace quicktype {
63586386
63596387 private:
63606388 int64_t dummy;
6389+ Virtual obj6_virtual;
63616390 Void obj6_void;
63626391 Volatile obj6_volatile;
63636392 WcharT obj6_wchar_t;
63646393 While obj6_while;
63656394 Xor obj6_xor;
63666395 XorEq obj6_xor_eq;
6396+ Var var;
63676397 Weak weak;
63686398 Where where;
63696399 WillSet will_set;
@@ -6376,6 +6406,10 @@ namespace quicktype {
63766406 int64_t & get_mutable_dummy() { return dummy; }
63776407 void set_dummy(const int64_t & value) { this->dummy = value; }
63786408
6409+ const Virtual & get_obj6_virtual() const { return obj6_virtual; }
6410+ Virtual & get_mutable_obj6_virtual() { return obj6_virtual; }
6411+ void set_obj6_virtual(const Virtual & value) { this->obj6_virtual = value; }
6412+
63796413 const Void & get_obj6_void() const { return obj6_void; }
63806414 Void & get_mutable_obj6_void() { return obj6_void; }
63816415 void set_obj6_void(const Void & value) { this->obj6_void = value; }
@@ -6400,6 +6434,10 @@ namespace quicktype {
64006434 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
64016435 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
64026436
6437+ const Var & get_var() const { return var; }
6438+ Var & get_mutable_var() { return var; }
6439+ void set_var(const Var & value) { this->var = value; }
6440+
64036441 const Weak & get_weak() const { return weak; }
64046442 Weak & get_mutable_weak() { return weak; }
64056443 void set_weak(const Weak & value) { this->weak = value; }
@@ -6786,6 +6824,9 @@ namespace quicktype {
67866824 void from_json(const json & j, From & x);
67876825 void to_json(json & j, const From & x);
67886826
6827+ void from_json(const json & j, FromDict & x);
6828+ void to_json(json & j, const FromDict & x);
6829+
67896830 void from_json(const json & j, FromJson & x);
67906831 void to_json(json & j, const FromJson & x);
67916832
@@ -6852,9 +6893,6 @@ namespace quicktype {
68526893 void from_json(const json & j, Friend & x);
68536894 void to_json(json & j, const Friend & x);
68546895
6855- void from_json(const json & j, Goto & x);
6856- void to_json(json & j, const Goto & x);
6857-
68586896 void from_json(const json & j, FalseClass & x);
68596897 void to_json(json & j, const FalseClass & x);
68606898
@@ -7023,6 +7061,9 @@ namespace quicktype {
70237061 void from_json(const json & j, No & x);
70247062 void to_json(json & j, const No & x);
70257063
7064+ void from_json(const json & j, Goto & x);
7065+ void to_json(json & j, const Goto & x);
7066+
70267067 void from_json(const json & j, If & x);
70277068 void to_json(json & j, const If & x);
70287069
@@ -7050,9 +7091,6 @@ namespace quicktype {
70507091 void from_json(const json & j, New & x);
70517092 void to_json(json & j, const New & x);
70527093
7053- void from_json(const json & j, Noexcept & x);
7054- void to_json(json & j, const Noexcept & x);
7055-
70567094 void from_json(const json & j, Obj3 & x);
70577095 void to_json(json & j, const Obj3 & x);
70587096
@@ -7086,6 +7124,9 @@ namespace quicktype {
70867124 void from_json(const json & j, Number & x);
70877125 void to_json(json & j, const Number & x);
70887126
7127+ void from_json(const json & j, Noexcept & x);
7128+ void to_json(json & j, const Noexcept & x);
7129+
70897130 void from_json(const json & j, NoneClass & x);
70907131 void to_json(json & j, const NoneClass & x);
70917132
@@ -7245,9 +7286,6 @@ namespace quicktype {
72457286 void from_json(const json & j, Sel & x);
72467287 void to_json(json & j, const Sel & x);
72477288
7248- void from_json(const json & j, Select & x);
7249- void to_json(json & j, const Select & x);
7250-
72517289 void from_json(const json & j, Obj4 & x);
72527290 void to_json(json & j, const Obj4 & x);
72537291
@@ -7320,12 +7358,12 @@ namespace quicktype {
73207358 void from_json(const json & j, Using & x);
73217359 void to_json(json & j, const Using & x);
73227360
7323- void from_json(const json & j, Virtual & x);
7324- void to_json(json & j, const Virtual & x);
7325-
73267361 void from_json(const json & j, TrueClass & x);
73277362 void to_json(json & j, const TrueClass & x);
73287363
7364+ void from_json(const json & j, Select & x);
7365+ void to_json(json & j, const Select & x);
7366+
73297367 void from_json(const json & j, Self & x);
73307368 void to_json(json & j, const Self & x);
73317369
@@ -7389,6 +7427,9 @@ namespace quicktype {
73897427 void from_json(const json & j, TimeZone & x);
73907428 void to_json(json & j, const TimeZone & x);
73917429
7430+ void from_json(const json & j, ToDict & x);
7431+ void to_json(json & j, const ToDict & x);
7432+
73927433 void from_json(const json & j, ToJson & x);
73937434 void to_json(json & j, const ToJson & x);
73947435
@@ -7440,12 +7481,12 @@ namespace quicktype {
74407481 void from_json(const json & j, Uuid & x);
74417482 void to_json(json & j, const Uuid & x);
74427483
7443- void from_json(const json & j, Var & x);
7444- void to_json(json & j, const Var & x);
7445-
74467484 void from_json(const json & j, Obj5 & x);
74477485 void to_json(json & j, const Obj5 & x);
74487486
7487+ void from_json(const json & j, Virtual & x);
7488+ void to_json(json & j, const Virtual & x);
7489+
74497490 void from_json(const json & j, Void & x);
74507491 void to_json(json & j, const Void & x);
74517492
@@ -7464,6 +7505,9 @@ namespace quicktype {
74647505 void from_json(const json & j, XorEq & x);
74657506 void to_json(json & j, const XorEq & x);
74667507
7508+ void from_json(const json & j, Var & x);
7509+ void to_json(json & j, const Var & x);
7510+
74677511 void from_json(const json & j, Weak & x);
74687512 void to_json(json & j, const Weak & x);
74697513
@@ -8773,6 +8817,17 @@ namespace quicktype {
87738817 j["from"] = x.get_from();
87748818 }
87758819
8820+ inline void from_json(const json & j, FromDict& x) {
8821+ if (!j.is_object()) throw std::runtime_error("Expected object");
8822+ if (j.find("from_dict") != j.end() && !j.at("from_dict").is_number_integer()) throw std::runtime_error("Expected integer");
8823+ x.set_from_dict(j.at("from_dict").get<int64_t>());
8824+ }
8825+
8826+ inline void to_json(json & j, const FromDict & x) {
8827+ j = json::object();
8828+ j["from_dict"] = x.get_from_dict();
8829+ }
8830+
87768831 inline void from_json(const json & j, FromJson& x) {
87778832 if (!j.is_object()) throw std::runtime_error("Expected object");
87788833 if (j.find("from_json") != j.end() && !j.at("from_json").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9015,17 +9070,6 @@ namespace quicktype {
90159070 j["friend"] = x.get_friend_friend();
90169071 }
90179072
9018- inline void from_json(const json & j, Goto& x) {
9019- if (!j.is_object()) throw std::runtime_error("Expected object");
9020- if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
9021- x.set_goto_goto(j.at("goto").get<int64_t>());
9022- }
9023-
9024- inline void to_json(json & j, const Goto & x) {
9025- j = json::object();
9026- j["goto"] = x.get_goto_goto();
9027- }
9028-
90299073 inline void from_json(const json & j, FalseClass& x) {
90309074 if (!j.is_object()) throw std::runtime_error("Expected object");
90319075 if (j.find("false") != j.end() && !j.at("false").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9081,6 +9125,7 @@ namespace quicktype {
90819125 x.set_foreach(j.at("foreach").get<Foreach>());
90829126 x.set_format_exception(j.at("FormatException").get<FormatException>());
90839127 x.set_from(j.at("from").get<From>());
9128+ x.set_from_dict(j.at("from_dict").get<FromDict>());
90849129 x.set_from_json(j.at("from_json").get<FromJson>());
90859130 x.set_func(j.at("func").get<Func>());
90869131 x.set_function(j.at("function").get<Function>());
@@ -9103,7 +9148,6 @@ namespace quicktype {
91039148 x.set_obj2_float(j.at("float").get<Float>());
91049149 x.set_obj2_for(j.at("for").get<For>());
91059150 x.set_obj2_friend(j.at("friend").get<Friend>());
9106- x.set_obj2_goto(j.at("goto").get<Goto>());
91079151 x.set_purple_false(j.at("false").get<FalseClass>());
91089152 }
91099153
@@ -9150,6 +9194,7 @@ namespace quicktype {
91509194 j["foreach"] = x.get_foreach();
91519195 j["FormatException"] = x.get_format_exception();
91529196 j["from"] = x.get_from();
9197+ j["from_dict"] = x.get_from_dict();
91539198 j["from_json"] = x.get_from_json();
91549199 j["func"] = x.get_func();
91559200 j["function"] = x.get_function();
@@ -9172,7 +9217,6 @@ namespace quicktype {
91729217 j["float"] = x.get_obj2_float();
91739218 j["for"] = x.get_obj2_for();
91749219 j["friend"] = x.get_obj2_friend();
9175- j["goto"] = x.get_obj2_goto();
91769220 j["false"] = x.get_purple_false();
91779221 }
91789222
@@ -9769,6 +9813,17 @@ namespace quicktype {
97699813 j["NO"] = x.get_no();
97709814 }
97719815
9816+ inline void from_json(const json & j, Goto& x) {
9817+ if (!j.is_object()) throw std::runtime_error("Expected object");
9818+ if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
9819+ x.set_goto_goto(j.at("goto").get<int64_t>());
9820+ }
9821+
9822+ inline void to_json(json & j, const Goto & x) {
9823+ j = json::object();
9824+ j["goto"] = x.get_goto_goto();
9825+ }
9826+
97729827 inline void from_json(const json & j, If& x) {
97739828 if (!j.is_object()) throw std::runtime_error("Expected object");
97749829 if (j.find("if") != j.end() && !j.at("if").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9868,17 +9923,6 @@ namespace quicktype {
98689923 j["new"] = x.get_new_new();
98699924 }
98709925
9871- inline void from_json(const json & j, Noexcept& x) {
9872- if (!j.is_object()) throw std::runtime_error("Expected object");
9873- if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
9874- x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
9875- }
9876-
9877- inline void to_json(json & j, const Noexcept & x) {
9878- j = json::object();
9879- j["noexcept"] = x.get_noexcept_noexcept();
9880- }
9881-
98829926 inline void from_json(const json & j, Obj3& x) {
98839927 if (!j.is_object()) throw std::runtime_error("Expected object");
98849928 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9937,6 +9981,7 @@ namespace quicktype {
99379981 x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>());
99389982 x.set_nil(j.at("nil").get<Nil>());
99399983 x.set_no(j.at("NO").get<No>());
9984+ x.set_obj3_goto(j.at("goto").get<Goto>());
99409985 x.set_obj3_if(j.at("if").get<If>());
99419986 x.set_obj3_import(j.at("import").get<Import>());
99429987 x.set_obj3_inline(j.at("inline").get<Inline>());
@@ -9946,7 +9991,6 @@ namespace quicktype {
99469991 x.set_obj3_mutable(j.at("mutable").get<Mutable>());
99479992 x.set_obj3_namespace(j.at("namespace").get<Namespace>());
99489993 x.set_obj3_new(j.at("new").get<New>());
9949- x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>());
99509994 }
99519995
99529996 inline void to_json(json & j, const Obj3 & x) {
@@ -10006,6 +10050,7 @@ namespace quicktype {
1000610050 j["newtonsoft"] = x.get_newtonsoft();
1000710051 j["nil"] = x.get_nil();
1000810052 j["NO"] = x.get_no();
10053+ j["goto"] = x.get_obj3_goto();
1000910054 j["if"] = x.get_obj3_if();
1001010055 j["import"] = x.get_obj3_import();
1001110056 j["inline"] = x.get_obj3_inline();
@@ -10015,7 +10060,6 @@ namespace quicktype {
1001510060 j["mutable"] = x.get_obj3_mutable();
1001610061 j["namespace"] = x.get_obj3_namespace();
1001710062 j["new"] = x.get_obj3_new();
10018- j["noexcept"] = x.get_obj3_noexcept();
1001910063 }
1002010064
1002110065 inline void from_json(const json & j, NoSuchMethod& x) {
@@ -10128,6 +10172,17 @@ namespace quicktype {
1012810172 j["number"] = x.get_number();
1012910173 }
1013010174
10175+ inline void from_json(const json & j, Noexcept& x) {
10176+ if (!j.is_object()) throw std::runtime_error("Expected object");
10177+ if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10178+ x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10179+ }
10180+
10181+ inline void to_json(json & j, const Noexcept & x) {
10182+ j = json::object();
10183+ j["noexcept"] = x.get_noexcept_noexcept();
10184+ }
10185+
1013110186 inline void from_json(const json & j, NoneClass& x) {
1013210187 if (!j.is_object()) throw std::runtime_error("Expected object");
1013310188 if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10711,17 +10766,6 @@ namespace quicktype {
1071110766 j["SEL"] = x.get_sel();
1071210767 }
1071310768
10714- inline void from_json(const json & j, Select& x) {
10715- if (!j.is_object()) throw std::runtime_error("Expected object");
10716- if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
10717- x.set_select(j.at("select").get<int64_t>());
10718- }
10719-
10720- inline void to_json(json & j, const Select & x) {
10721- j = json::object();
10722- j["select"] = x.get_select();
10723- }
10724-
1072510769 inline void from_json(const json & j, Obj4& x) {
1072610770 if (!j.is_object()) throw std::runtime_error("Expected object");
1072710771 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10736,6 +10780,7 @@ namespace quicktype {
1073610780 x.set_ns_string(j.at("NSString").get<NsString>());
1073710781 x.set_null(j.at("NULL").get<Null>());
1073810782 x.set_number(j.at("number").get<Number>());
10783+ x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>());
1073910784 x.set_obj4_none(j.at("none").get<NoneClass>());
1074010785 x.set_obj4_not(j.at("not").get<Not>());
1074110786 x.set_obj4_not_eq(j.at("not_eq").get<NotEq>());
@@ -10789,7 +10834,6 @@ namespace quicktype {
1078910834 x.set_sbyte(j.at("sbyte").get<Sbyte>());
1079010835 x.set_sealed(j.at("sealed").get<Sealed>());
1079110836 x.set_sel(j.at("SEL").get<Sel>());
10792- x.set_select(j.at("select").get<Select>());
1079310837 }
1079410838
1079510839 inline void to_json(json & j, const Obj4 & x) {
@@ -10805,6 +10849,7 @@ namespace quicktype {
1080510849 j["NSString"] = x.get_ns_string();
1080610850 j["NULL"] = x.get_null();
1080710851 j["number"] = x.get_number();
10852+ j["noexcept"] = x.get_obj4_noexcept();
1080810853 j["none"] = x.get_obj4_none();
1080910854 j["not"] = x.get_obj4_not();
1081010855 j["not_eq"] = x.get_obj4_not_eq();
@@ -10858,7 +10903,6 @@ namespace quicktype {
1085810903 j["sbyte"] = x.get_sbyte();
1085910904 j["sealed"] = x.get_sealed();
1086010905 j["SEL"] = x.get_sel();
10861- j["select"] = x.get_select();
1086210906 }
1086310907
1086410908 inline void from_json(const json & j, SelfClass& x) {
@@ -11114,26 +11158,26 @@ namespace quicktype {
1111411158 j["using"] = x.get_using_using();
1111511159 }
1111611160
11117- inline void from_json(const json & j, Virtual& x) {
11161+ inline void from_json(const json & j, TrueClass& x) {
1111811162 if (!j.is_object()) throw std::runtime_error("Expected object");
11119- if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11120- x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11163+ if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11164+ x.set_true_true(j.at("true").get<int64_t>());
1112111165 }
1112211166
11123- inline void to_json(json & j, const Virtual & x) {
11167+ inline void to_json(json & j, const TrueClass & x) {
1112411168 j = json::object();
11125- j["virtual"] = x.get_virtual_virtual();
11169+ j["true"] = x.get_true_true();
1112611170 }
1112711171
11128- inline void from_json(const json & j, TrueClass& x) {
11172+ inline void from_json(const json & j, Select& x) {
1112911173 if (!j.is_object()) throw std::runtime_error("Expected object");
11130- if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11131- x.set_true_true(j.at("true").get<int64_t>());
11174+ if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
11175+ x.set_select(j.at("select").get<int64_t>());
1113211176 }
1113311177
11134- inline void to_json(json & j, const TrueClass & x) {
11178+ inline void to_json(json & j, const Select & x) {
1113511179 j = json::object();
11136- j["true"] = x.get_true_true();
11180+ j["select"] = x.get_select();
1113711181 }
1113811182
1113911183 inline void from_json(const json & j, Self& x) {
@@ -11367,6 +11411,17 @@ namespace quicktype {
1136711411 j["TimeZone"] = x.get_time_zone();
1136811412 }
1136911413
11414+ inline void from_json(const json & j, ToDict& x) {
11415+ if (!j.is_object()) throw std::runtime_error("Expected object");
11416+ if (j.find("to_dict") != j.end() && !j.at("to_dict").is_number_integer()) throw std::runtime_error("Expected integer");
11417+ x.set_to_dict(j.at("to_dict").get<int64_t>());
11418+ }
11419+
11420+ inline void to_json(json & j, const ToDict & x) {
11421+ j = json::object();
11422+ j["to_dict"] = x.get_to_dict();
11423+ }
11424+
1137011425 inline void from_json(const json & j, ToJson& x) {
1137111426 if (!j.is_object()) throw std::runtime_error("Expected object");
1137211427 if (j.find("to_json") != j.end() && !j.at("to_json").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11554,17 +11609,6 @@ namespace quicktype {
1155411609 j["UUID"] = x.get_uuid();
1155511610 }
1155611611
11557- inline void from_json(const json & j, Var& x) {
11558- if (!j.is_object()) throw std::runtime_error("Expected object");
11559- if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11560- x.set_var(j.at("var").get<int64_t>());
11561- }
11562-
11563- inline void to_json(json & j, const Var & x) {
11564- j = json::object();
11565- j["var"] = x.get_var();
11566- }
11567-
1156811612 inline void from_json(const json & j, Obj5& x) {
1156911613 if (!j.is_object()) throw std::runtime_error("Expected object");
1157011614 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11592,8 +11636,8 @@ namespace quicktype {
1159211636 x.set_obj5_union(j.at("union").get<Union>());
1159311637 x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>());
1159411638 x.set_obj5_using(j.at("using").get<Using>());
11595- x.set_obj5_virtual(j.at("virtual").get<Virtual>());
1159611639 x.set_purple_true(j.at("true").get<TrueClass>());
11640+ x.set_select(j.at("select").get<Select>());
1159711641 x.set_self(j.at("Self").get<Self>());
1159811642 x.set_sendable(j.at("Sendable").get<Sendable>());
1159911643 x.set_serialize(j.at("serialize").get<Serialize>());
@@ -11615,6 +11659,7 @@ namespace quicktype {
1161511659 x.set_time_only(j.at("TimeOnly").get<TimeOnly>());
1161611660 x.set_time_only_converter(j.at("TimeOnlyConverter").get<TimeOnlyConverter>());
1161711661 x.set_time_zone(j.at("TimeZone").get<TimeZone>());
11662+ x.set_to_dict(j.at("to_dict").get<ToDict>());
1161811663 x.set_to_json(j.at("to_json").get<ToJson>());
1161911664 x.set_to_string(j.at("toString").get<ToString>());
1162011665 x.set_top_level(j.at("top_level").get<TopLevelClass>());
@@ -11632,7 +11677,6 @@ namespace quicktype {
1163211677 x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
1163311678 x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
1163411679 x.set_uuid(j.at("UUID").get<Uuid>());
11635- x.set_var(j.at("var").get<Var>());
1163611680 }
1163711681
1163811682 inline void to_json(json & j, const Obj5 & x) {
@@ -11661,8 +11705,8 @@ namespace quicktype {
1166111705 j["union"] = x.get_obj5_union();
1166211706 j["unsigned"] = x.get_obj5_unsigned();
1166311707 j["using"] = x.get_obj5_using();
11664- j["virtual"] = x.get_obj5_virtual();
1166511708 j["true"] = x.get_purple_true();
11709+ j["select"] = x.get_select();
1166611710 j["Self"] = x.get_self();
1166711711 j["Sendable"] = x.get_sendable();
1166811712 j["serialize"] = x.get_serialize();
@@ -11684,6 +11728,7 @@ namespace quicktype {
1168411728 j["TimeOnly"] = x.get_time_only();
1168511729 j["TimeOnlyConverter"] = x.get_time_only_converter();
1168611730 j["TimeZone"] = x.get_time_zone();
11731+ j["to_dict"] = x.get_to_dict();
1168711732 j["to_json"] = x.get_to_json();
1168811733 j["toString"] = x.get_to_string();
1168911734 j["top_level"] = x.get_top_level();
@@ -11701,7 +11746,17 @@ namespace quicktype {
1170111746 j["Utf8JsonReader"] = x.get_utf8_json_reader();
1170211747 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
1170311748 j["UUID"] = x.get_uuid();
11704- j["var"] = x.get_var();
11749+ }
11750+
11751+ inline void from_json(const json & j, Virtual& x) {
11752+ if (!j.is_object()) throw std::runtime_error("Expected object");
11753+ if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11754+ x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11755+ }
11756+
11757+ inline void to_json(json & j, const Virtual & x) {
11758+ j = json::object();
11759+ j["virtual"] = x.get_virtual_virtual();
1170511760 }
1170611761
1170711762 inline void from_json(const json & j, Void& x) {
@@ -11770,6 +11825,17 @@ namespace quicktype {
1177011825 j["xor_eq"] = x.get_xor_eq_xor_eq();
1177111826 }
1177211827
11828+ inline void from_json(const json & j, Var& x) {
11829+ if (!j.is_object()) throw std::runtime_error("Expected object");
11830+ if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11831+ x.set_var(j.at("var").get<int64_t>());
11832+ }
11833+
11834+ inline void to_json(json & j, const Var & x) {
11835+ j = json::object();
11836+ j["var"] = x.get_var();
11837+ }
11838+
1177311839 inline void from_json(const json & j, Weak& x) {
1177411840 if (!j.is_object()) throw std::runtime_error("Expected object");
1177511841 if (j.find("weak") != j.end() && !j.at("weak").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11840,12 +11906,14 @@ namespace quicktype {
1184011906 if (!j.is_object()) throw std::runtime_error("Expected object");
1184111907 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1184211908 x.set_dummy(j.at("dummy").get<int64_t>());
11909+ x.set_obj6_virtual(j.at("virtual").get<Virtual>());
1184311910 x.set_obj6_void(j.at("void").get<Void>());
1184411911 x.set_obj6_volatile(j.at("volatile").get<Volatile>());
1184511912 x.set_obj6_wchar_t(j.at("wchar_t").get<WcharT>());
1184611913 x.set_obj6_while(j.at("while").get<While>());
1184711914 x.set_obj6_xor(j.at("xor").get<Xor>());
1184811915 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
11916+ x.set_var(j.at("var").get<Var>());
1184911917 x.set_weak(j.at("weak").get<Weak>());
1185011918 x.set_where(j.at("where").get<Where>());
1185111919 x.set_will_set(j.at("willSet").get<WillSet>());
@@ -11857,12 +11925,14 @@ namespace quicktype {
1185711925 inline void to_json(json & j, const Obj6 & x) {
1185811926 j = json::object();
1185911927 j["dummy"] = x.get_dummy();
11928+ j["virtual"] = x.get_obj6_virtual();
1186011929 j["void"] = x.get_obj6_void();
1186111930 j["volatile"] = x.get_obj6_volatile();
1186211931 j["wchar_t"] = x.get_obj6_wchar_t();
1186311932 j["while"] = x.get_obj6_while();
1186411933 j["xor"] = x.get_obj6_xor();
1186511934 j["xor_eq"] = x.get_obj6_xor_eq();
11935+ j["var"] = x.get_var();
1186611936 j["weak"] = x.get_weak();
1186711937 j["where"] = x.get_where();
1186811938 j["willSet"] = x.get_will_set();
Mcrystaldefault / TopLevel.cr+56 −40
@@ -692,6 +692,8 @@ class Obj2
692692
693693 property from : From
694694
695+ property from_dict : FromDict
696+
695697 property from_json : FromJson
696698
697699 property func : Func
@@ -704,8 +706,6 @@ class Obj2
704706
705707 property go : Go
706708
707- property goto : Goto
708-
709709 @[JSON::Field(key: "def")]
710710 property obj2_def : Def
711711
@@ -1041,6 +1041,12 @@ class From
10411041 property from : Int64
10421042 end
10431043
1044+class FromDict
1045+ include JSON::Serializable
1046+
1047+ property from_dict : Int64
1048+end
1049+
10441050 class FromJson
10451051 include JSON::Serializable
10461052
@@ -1077,12 +1083,6 @@ class Go
10771083 property go : Int64
10781084 end
10791085
1080-class Goto
1081- include JSON::Serializable
1082-
1083- property goto : Int64
1084-end
1085-
10861086 class Def
10871087 include JSON::Serializable
10881088
@@ -1137,6 +1137,8 @@ class Obj3
11371137
11381138 property dummy : Int64
11391139
1140+ property goto : Goto
1141+
11401142 property guard : Guard
11411143
11421144 @[JSON::Field(key: "hasOwnProperty")]
@@ -1275,8 +1277,6 @@ class Obj3
12751277 @[JSON::Field(key: "NO")]
12761278 property no : No
12771279
1278- property noexcept : Noexcept
1279-
12801280 @[JSON::Field(key: "if")]
12811281 property obj3_if : If
12821282
@@ -1290,6 +1290,12 @@ class Obj3
12901290 property obj3_nil : NilClass
12911291 end
12921292
1293+class Goto
1294+ include JSON::Serializable
1295+
1296+ property goto : Int64
1297+end
1298+
12931299 class Guard
12941300 include JSON::Serializable
12951301
@@ -1664,12 +1670,6 @@ class No
16641670 property no : Int64
16651671 end
16661672
1667-class Noexcept
1668- include JSON::Serializable
1669-
1670- property noexcept : Int64
1671-end
1672-
16731673 class If
16741674 include JSON::Serializable
16751675
@@ -1706,6 +1706,8 @@ class Obj4
17061706 @[JSON::Field(key: "noSuchMethod")]
17071707 property no_such_method : NoSuchMethod
17081708
1709+ property noexcept : Noexcept
1710+
17091711 property nonatomic : Nonatomic
17101712
17111713 @[JSON::Field(key: "None")]
@@ -1762,9 +1764,6 @@ class Obj4
17621764 @[JSON::Field(key: "return")]
17631765 property obj4_return : Return
17641766
1765- @[JSON::Field(key: "select")]
1766- property obj4_select : Select
1767-
17681767 property object : ObjectClass
17691768
17701769 @[JSON::Field(key: "ObjectMapper")]
@@ -1861,6 +1860,12 @@ class NoSuchMethod
18611860 property no_such_method : Int64
18621861 end
18631862
1863+class Noexcept
1864+ include JSON::Serializable
1865+
1866+ property noexcept : Int64
1867+end
1868+
18641869 class Nonatomic
18651870 include JSON::Serializable
18661871
@@ -1998,13 +2003,6 @@ class Return
19982003 property return_return : Int64
19992004 end
20002005
2001-class Select
2002- include JSON::Serializable
2003-
2004- @[JSON::Field(key: "select")]
2005- property select_select : Int64
2006-end
2007-
20082006 class ObjectClass
20092007 include JSON::Serializable
20102008
@@ -2262,6 +2260,9 @@ class Obj5
22622260
22632261 property dummy : Int64
22642262
2263+ @[JSON::Field(key: "select")]
2264+ property obj5_select : Select
2265+
22652266 @[JSON::Field(key: "Self")]
22662267 property obj5_self : Self
22672268
@@ -2368,6 +2369,8 @@ class Obj5
23682369 @[JSON::Field(key: "TimeZone")]
23692370 property time_zone : TimeZone
23702371
2372+ property to_dict : ToDict
2373+
23712374 @[JSON::Field(key: "toString")]
23722375 property to_string : ToString
23732376
@@ -2411,10 +2414,13 @@ class Obj5
24112414
24122415 @[JSON::Field(key: "UUID")]
24132416 property uuid : Uuid
2417+end
24142418
2415- property var : Var
2419+class Select
2420+ include JSON::Serializable
24162421
2417- property virtual : Virtual
2422+ @[JSON::Field(key: "select")]
2423+ property select_select : Int64
24182424 end
24192425
24202426 class Self
@@ -2691,6 +2697,12 @@ class TimeZone
26912697 property time_zone : Int64
26922698 end
26932699
2700+class ToDict
2701+ include JSON::Serializable
2702+
2703+ property to_dict : Int64
2704+end
2705+
26942706 class ToString
26952707 include JSON::Serializable
26962708
@@ -2815,18 +2827,6 @@ class Uuid
28152827 property uuid : Int64
28162828 end
28172829
2818-class Var
2819- include JSON::Serializable
2820-
2821- property var : Int64
2822-end
2823-
2824-class Virtual
2825- include JSON::Serializable
2826-
2827- property virtual : Int64
2828-end
2829-
28302830 class Obj6
28312831 include JSON::Serializable
28322832
@@ -2841,6 +2841,10 @@ class Obj6
28412841 @[JSON::Field(key: "yield")]
28422842 property obj6_yield : Yield
28432843
2844+ property var : Var
2845+
2846+ property virtual : Virtual
2847+
28442848 property void : VoidClass
28452849
28462850 property volatile : Volatile
@@ -2883,6 +2887,18 @@ class Yield
28832887 property yield_yield : Int64
28842888 end
28852889
2890+class Var
2891+ include JSON::Serializable
2892+
2893+ property var : Int64
2894+end
2895+
2896+class Virtual
2897+ include JSON::Serializable
2898+
2899+ property virtual : Int64
2900+end
2901+
28862902 class VoidClass
28872903 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+62 −44
@@ -799,6 +799,9 @@ namespace QuickType
799799 [JsonProperty("from", Required = Required.Always)]
800800 public From From { get; set; }
801801
802+ [JsonProperty("from_dict", Required = Required.Always)]
803+ public FromDict FromDict { get; set; }
804+
802805 [JsonProperty("func", Required = Required.Always)]
803806 public Func Func { get; set; }
804807
@@ -814,9 +817,6 @@ namespace QuickType
814817 [JsonProperty("go", Required = Required.Always)]
815818 public Go Go { get; set; }
816819
817- [JsonProperty("goto", Required = Required.Always)]
818- public Goto Goto { get; set; }
819-
820820 [JsonProperty("equalityContract", Required = Required.Always)]
821821 public EqualityContractClass Obj2EqualityContract { get; set; }
822822
@@ -1157,6 +1157,12 @@ namespace QuickType
11571157 public long FromFrom { get; set; }
11581158 }
11591159
1160+ public partial record FromDict
1161+ {
1162+ [JsonProperty("from_dict", Required = Required.Always)]
1163+ public long FromDictFromDict { get; set; }
1164+ }
1165+
11601166 public partial record Func
11611167 {
11621168 [JsonProperty("func", Required = Required.Always)]
@@ -1187,12 +1193,6 @@ namespace QuickType
11871193 public long GoGo { get; set; }
11881194 }
11891195
1190- public partial record Goto
1191- {
1192- [JsonProperty("goto", Required = Required.Always)]
1193- public long GotoGoto { get; set; }
1194- }
1195-
11961196 public partial record EqualityContractClass
11971197 {
11981198 [JsonProperty("equalityContract", Required = Required.Always)]
@@ -1216,6 +1216,9 @@ namespace QuickType
12161216 [JsonProperty("dummy", Required = Required.Always)]
12171217 public long Dummy { get; set; }
12181218
1219+ [JsonProperty("goto", Required = Required.Always)]
1220+ public Goto Goto { get; set; }
1221+
12191222 [JsonProperty("guard", Required = Required.Always)]
12201223 public Guard Guard { get; set; }
12211224
@@ -1404,9 +1407,12 @@ namespace QuickType
14041407
14051408 [JsonProperty("NO", Required = Required.Always)]
14061409 public No No { get; set; }
1410+ }
14071411
1408- [JsonProperty("noexcept", Required = Required.Always)]
1409- public Noexcept Noexcept { get; set; }
1412+ public partial record Goto
1413+ {
1414+ [JsonProperty("goto", Required = Required.Always)]
1415+ public long GotoGoto { get; set; }
14101416 }
14111417
14121418 public partial record Guard
@@ -1787,12 +1793,6 @@ namespace QuickType
17871793 public long NoNo { get; set; }
17881794 }
17891795
1790- public partial record Noexcept
1791- {
1792- [JsonProperty("noexcept", Required = Required.Always)]
1793- public long NoexceptNoexcept { get; set; }
1794- }
1795-
17961796 public partial record Obj4
17971797 {
17981798 [JsonProperty("dummy", Required = Required.Always)]
@@ -1801,6 +1801,9 @@ namespace QuickType
18011801 [JsonProperty("noSuchMethod", Required = Required.Always)]
18021802 public NoSuchMethod NoSuchMethod { get; set; }
18031803
1804+ [JsonProperty("noexcept", Required = Required.Always)]
1805+ public Noexcept Noexcept { get; set; }
1806+
18041807 [JsonProperty("nonatomic", Required = Required.Always)]
18051808 public Nonatomic Nonatomic { get; set; }
18061809
@@ -1986,9 +1989,6 @@ namespace QuickType
19861989
19871990 [JsonProperty("SEL", Required = Required.Always)]
19881991 public Sel Sel { get; set; }
1989-
1990- [JsonProperty("select", Required = Required.Always)]
1991- public Select Select { get; set; }
19921992 }
19931993
19941994 public partial record NoSuchMethod
@@ -1997,6 +1997,12 @@ namespace QuickType
19971997 public long NoSuchMethodNoSuchMethod { get; set; }
19981998 }
19991999
2000+ public partial record Noexcept
2001+ {
2002+ [JsonProperty("noexcept", Required = Required.Always)]
2003+ public long NoexceptNoexcept { get; set; }
2004+ }
2005+
20002006 public partial record Nonatomic
20012007 {
20022008 [JsonProperty("nonatomic", Required = Required.Always)]
@@ -2369,12 +2375,6 @@ namespace QuickType
23692375 public long SelSel { get; set; }
23702376 }
23712377
2372- public partial record Select
2373- {
2374- [JsonProperty("select", Required = Required.Always)]
2375- public long SelectSelect { get; set; }
2376- }
2377-
23782378 public partial record Obj5
23792379 {
23802380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2395,6 +2395,9 @@ namespace QuickType
23952395 [JsonProperty("type", Required = Required.Always)]
23962396 public Obj5Type Obj5Type { get; set; }
23972397
2398+ [JsonProperty("select", Required = Required.Always)]
2399+ public Select Select { get; set; }
2400+
23982401 [JsonProperty("Self", Required = Required.Always)]
23992402 public Self Self { get; set; }
24002403
@@ -2497,6 +2500,9 @@ namespace QuickType
24972500 [JsonProperty("TimeZone", Required = Required.Always)]
24982501 public TimeZone TimeZone { get; set; }
24992502
2503+ [JsonProperty("to_dict", Required = Required.Always)]
2504+ public ToDict ToDict { get; set; }
2505+
25002506 [JsonProperty("top_level", Required = Required.Always)]
25012507 public TopLevelClass TopLevel { get; set; }
25022508
@@ -2565,12 +2571,6 @@ namespace QuickType
25652571
25662572 [JsonProperty("UUID", Required = Required.Always)]
25672573 public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
25742574 }
25752575
25762576 public partial record SelfClass
@@ -2603,6 +2603,12 @@ namespace QuickType
26032603 public long Type { get; set; }
26042604 }
26052605
2606+ public partial record Select
2607+ {
2608+ [JsonProperty("select", Required = Required.Always)]
2609+ public long SelectSelect { get; set; }
2610+ }
2611+
26062612 public partial record Self
26072613 {
26082614 [JsonProperty("Self", Required = Required.Always)]
@@ -2807,6 +2813,12 @@ namespace QuickType
28072813 public long TimeZoneTimeZone { get; set; }
28082814 }
28092815
2816+ public partial record ToDict
2817+ {
2818+ [JsonProperty("to_dict", Required = Required.Always)]
2819+ public long ToDictToDict { get; set; }
2820+ }
2821+
28102822 public partial record TopLevelClass
28112823 {
28122824 [JsonProperty("top_level", Required = Required.Always)]
@@ -2945,23 +2957,17 @@ namespace QuickType
29452957 public long UuidUuid { get; set; }
29462958 }
29472959
2948- public partial record Var
2949- {
2950- [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2953-
2954- public partial record Virtual
2955- {
2956- [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
29602960 public partial record Obj6
29612961 {
29622962 [JsonProperty("dummy", Required = Required.Always)]
29632963 public long Dummy { get; set; }
29642964
2965+ [JsonProperty("var", Required = Required.Always)]
2966+ public Var Var { get; set; }
2967+
2968+ [JsonProperty("virtual", Required = Required.Always)]
2969+ public Virtual Virtual { get; set; }
2970+
29652971 [JsonProperty("void", Required = Required.Always)]
29662972 public Void Void { get; set; }
29672973
@@ -2999,6 +3005,18 @@ namespace QuickType
29993005 public Yield Yield { get; set; }
30003006 }
30013007
3008+ public partial record Var
3009+ {
3010+ [JsonProperty("var", Required = Required.Always)]
3011+ public long VarVar { get; set; }
3012+ }
3013+
3014+ public partial record Virtual
3015+ {
3016+ [JsonProperty("virtual", Required = Required.Always)]
3017+ public long VirtualVirtual { get; set; }
3018+ }
3019+
30023020 public partial record Void
30033021 {
30043022 [JsonProperty("void", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+74 −52
@@ -992,6 +992,10 @@ namespace QuickType
992992 [JsonPropertyName("from")]
993993 public From From { get; set; }
994994
995+ [JsonRequired]
996+ [JsonPropertyName("from_dict")]
997+ public FromDict FromDict { get; set; }
998+
995999 [JsonRequired]
9961000 [JsonPropertyName("func")]
9971001 public Func Func { get; set; }
@@ -1012,10 +1016,6 @@ namespace QuickType
10121016 [JsonPropertyName("go")]
10131017 public Go Go { get; set; }
10141018
1015- [JsonRequired]
1016- [JsonPropertyName("goto")]
1017- public Goto Goto { get; set; }
1018-
10191019 [JsonRequired]
10201020 [JsonPropertyName("false")]
10211021 public FalseClass Obj2False { get; set; }
@@ -1417,6 +1417,13 @@ namespace QuickType
14171417 public long FromFrom { get; set; }
14181418 }
14191419
1420+ public partial class FromDict
1421+ {
1422+ [JsonRequired]
1423+ [JsonPropertyName("from_dict")]
1424+ public long FromDictFromDict { get; set; }
1425+ }
1426+
14201427 public partial class Func
14211428 {
14221429 [JsonRequired]
@@ -1452,13 +1459,6 @@ namespace QuickType
14521459 public long GoGo { get; set; }
14531460 }
14541461
1455- public partial class Goto
1456- {
1457- [JsonRequired]
1458- [JsonPropertyName("goto")]
1459- public long GotoGoto { get; set; }
1460- }
1461-
14621462 public partial class FalseClass
14631463 {
14641464 [JsonRequired]
@@ -1479,6 +1479,10 @@ namespace QuickType
14791479 [JsonPropertyName("dummy")]
14801480 public long Dummy { get; set; }
14811481
1482+ [JsonRequired]
1483+ [JsonPropertyName("goto")]
1484+ public Goto Goto { get; set; }
1485+
14821486 [JsonRequired]
14831487 [JsonPropertyName("guard")]
14841488 public Guard Guard { get; set; }
@@ -1730,10 +1734,13 @@ namespace QuickType
17301734 [JsonRequired]
17311735 [JsonPropertyName("NO")]
17321736 public No No { get; set; }
1737+ }
17331738
1739+ public partial class Goto
1740+ {
17341741 [JsonRequired]
1735- [JsonPropertyName("noexcept")]
1736- public Noexcept Noexcept { get; set; }
1742+ [JsonPropertyName("goto")]
1743+ public long GotoGoto { get; set; }
17371744 }
17381745
17391746 public partial class Guard
@@ -2177,13 +2184,6 @@ namespace QuickType
21772184 public long NoNo { get; set; }
21782185 }
21792186
2180- public partial class Noexcept
2181- {
2182- [JsonRequired]
2183- [JsonPropertyName("noexcept")]
2184- public long NoexceptNoexcept { get; set; }
2185- }
2186-
21872187 public partial class Obj4
21882188 {
21892189 [JsonRequired]
@@ -2194,6 +2194,10 @@ namespace QuickType
21942194 [JsonPropertyName("noSuchMethod")]
21952195 public NoSuchMethod NoSuchMethod { get; set; }
21962196
2197+ [JsonRequired]
2198+ [JsonPropertyName("noexcept")]
2199+ public Noexcept Noexcept { get; set; }
2200+
21972201 [JsonRequired]
21982202 [JsonPropertyName("nonatomic")]
21992203 public Nonatomic Nonatomic { get; set; }
@@ -2441,10 +2445,6 @@ namespace QuickType
24412445 [JsonRequired]
24422446 [JsonPropertyName("SEL")]
24432447 public Sel Sel { get; set; }
2444-
2445- [JsonRequired]
2446- [JsonPropertyName("select")]
2447- public Select Select { get; set; }
24482448 }
24492449
24502450 public partial class NoSuchMethod
@@ -2454,6 +2454,13 @@ namespace QuickType
24542454 public long NoSuchMethodNoSuchMethod { get; set; }
24552455 }
24562456
2457+ public partial class Noexcept
2458+ {
2459+ [JsonRequired]
2460+ [JsonPropertyName("noexcept")]
2461+ public long NoexceptNoexcept { get; set; }
2462+ }
2463+
24572464 public partial class Nonatomic
24582465 {
24592466 [JsonRequired]
@@ -2888,13 +2895,6 @@ namespace QuickType
28882895 public long SelSel { get; set; }
28892896 }
28902897
2891- public partial class Select
2892- {
2893- [JsonRequired]
2894- [JsonPropertyName("select")]
2895- public long SelectSelect { get; set; }
2896- }
2897-
28982898 public partial class Obj5
28992899 {
29002900 [JsonRequired]
@@ -2921,6 +2921,10 @@ namespace QuickType
29212921 [JsonPropertyName("type")]
29222922 public Obj5Type Obj5Type { get; set; }
29232923
2924+ [JsonRequired]
2925+ [JsonPropertyName("select")]
2926+ public Select Select { get; set; }
2927+
29242928 [JsonRequired]
29252929 [JsonPropertyName("Self")]
29262930 public Self Self { get; set; }
@@ -3057,6 +3061,10 @@ namespace QuickType
30573061 [JsonPropertyName("TimeZone")]
30583062 public TimeZone TimeZone { get; set; }
30593063
3064+ [JsonRequired]
3065+ [JsonPropertyName("to_dict")]
3066+ public ToDict ToDict { get; set; }
3067+
30603068 [JsonRequired]
30613069 [JsonPropertyName("top_level")]
30623070 public TopLevelClass TopLevel { get; set; }
@@ -3148,14 +3156,6 @@ namespace QuickType
31483156 [JsonRequired]
31493157 [JsonPropertyName("UUID")]
31503158 public Uuid Uuid { get; set; }
3151-
3152- [JsonRequired]
3153- [JsonPropertyName("var")]
3154- public Var Var { get; set; }
3155-
3156- [JsonRequired]
3157- [JsonPropertyName("virtual")]
3158- public Virtual Virtual { get; set; }
31593159 }
31603160
31613161 public partial class SelfClass
@@ -3193,6 +3193,13 @@ namespace QuickType
31933193 public long Type { get; set; }
31943194 }
31953195
3196+ public partial class Select
3197+ {
3198+ [JsonRequired]
3199+ [JsonPropertyName("select")]
3200+ public long SelectSelect { get; set; }
3201+ }
3202+
31963203 public partial class Self
31973204 {
31983205 [JsonRequired]
@@ -3431,6 +3438,13 @@ namespace QuickType
34313438 public long TimeZoneTimeZone { get; set; }
34323439 }
34333440
3441+ public partial class ToDict
3442+ {
3443+ [JsonRequired]
3444+ [JsonPropertyName("to_dict")]
3445+ public long ToDictToDict { get; set; }
3446+ }
3447+
34343448 public partial class TopLevelClass
34353449 {
34363450 [JsonRequired]
@@ -3592,25 +3606,19 @@ namespace QuickType
35923606 public long UuidUuid { get; set; }
35933607 }
35943608
3595- public partial class Var
3609+ public partial class Obj6
35963610 {
35973611 [JsonRequired]
3598- [JsonPropertyName("var")]
3599- public long VarVar { get; set; }
3600- }
3612+ [JsonPropertyName("dummy")]
3613+ public long Dummy { get; set; }
36013614
3602- public partial class Virtual
3603- {
36043615 [JsonRequired]
3605- [JsonPropertyName("virtual")]
3606- public long VirtualVirtual { get; set; }
3607- }
3616+ [JsonPropertyName("var")]
3617+ public Var Var { get; set; }
36083618
3609- public partial class Obj6
3610- {
36113619 [JsonRequired]
3612- [JsonPropertyName("dummy")]
3613- public long Dummy { get; set; }
3620+ [JsonPropertyName("virtual")]
3621+ public Virtual Virtual { get; set; }
36143622
36153623 [JsonRequired]
36163624 [JsonPropertyName("void")]
@@ -3661,6 +3669,20 @@ namespace QuickType
36613669 public Yield Yield { get; set; }
36623670 }
36633671
3672+ public partial class Var
3673+ {
3674+ [JsonRequired]
3675+ [JsonPropertyName("var")]
3676+ public long VarVar { get; set; }
3677+ }
3678+
3679+ public partial class Virtual
3680+ {
3681+ [JsonRequired]
3682+ [JsonPropertyName("virtual")]
3683+ public long VirtualVirtual { get; set; }
3684+ }
3685+
36643686 public partial class Void
36653687 {
36663688 [JsonRequired]
Mcsharpdefault / QuickType.cs+62 −44
@@ -802,6 +802,9 @@ namespace QuickType
802802 [JsonProperty("from", Required = Required.Always)]
803803 public From From { get; set; }
804804
805+ [JsonProperty("from_dict", Required = Required.Always)]
806+ public FromDict FromDict { get; set; }
807+
805808 [JsonProperty("func", Required = Required.Always)]
806809 public Func Func { get; set; }
807810
@@ -817,9 +820,6 @@ namespace QuickType
817820 [JsonProperty("go", Required = Required.Always)]
818821 public Go Go { get; set; }
819822
820- [JsonProperty("goto", Required = Required.Always)]
821- public Goto Goto { get; set; }
822-
823823 [JsonProperty("false", Required = Required.Always)]
824824 public FalseClass Obj2False { get; set; }
825825
@@ -1163,6 +1163,12 @@ namespace QuickType
11631163 public long FromFrom { get; set; }
11641164 }
11651165
1166+ public partial class FromDict
1167+ {
1168+ [JsonProperty("from_dict", Required = Required.Always)]
1169+ public long FromDictFromDict { get; set; }
1170+ }
1171+
11661172 public partial class Func
11671173 {
11681174 [JsonProperty("func", Required = Required.Always)]
@@ -1193,12 +1199,6 @@ namespace QuickType
11931199 public long GoGo { get; set; }
11941200 }
11951201
1196- public partial class Goto
1197- {
1198- [JsonProperty("goto", Required = Required.Always)]
1199- public long GotoGoto { get; set; }
1200- }
1201-
12021202 public partial class FalseClass
12031203 {
12041204 [JsonProperty("false", Required = Required.Always)]
@@ -1216,6 +1216,9 @@ namespace QuickType
12161216 [JsonProperty("dummy", Required = Required.Always)]
12171217 public long Dummy { get; set; }
12181218
1219+ [JsonProperty("goto", Required = Required.Always)]
1220+ public Goto Goto { get; set; }
1221+
12191222 [JsonProperty("guard", Required = Required.Always)]
12201223 public Guard Guard { get; set; }
12211224
@@ -1404,9 +1407,12 @@ namespace QuickType
14041407
14051408 [JsonProperty("NO", Required = Required.Always)]
14061409 public No No { get; set; }
1410+ }
14071411
1408- [JsonProperty("noexcept", Required = Required.Always)]
1409- public Noexcept Noexcept { get; set; }
1412+ public partial class Goto
1413+ {
1414+ [JsonProperty("goto", Required = Required.Always)]
1415+ public long GotoGoto { get; set; }
14101416 }
14111417
14121418 public partial class Guard
@@ -1787,12 +1793,6 @@ namespace QuickType
17871793 public long NoNo { get; set; }
17881794 }
17891795
1790- public partial class Noexcept
1791- {
1792- [JsonProperty("noexcept", Required = Required.Always)]
1793- public long NoexceptNoexcept { get; set; }
1794- }
1795-
17961796 public partial class Obj4
17971797 {
17981798 [JsonProperty("dummy", Required = Required.Always)]
@@ -1801,6 +1801,9 @@ namespace QuickType
18011801 [JsonProperty("noSuchMethod", Required = Required.Always)]
18021802 public NoSuchMethod NoSuchMethod { get; set; }
18031803
1804+ [JsonProperty("noexcept", Required = Required.Always)]
1805+ public Noexcept Noexcept { get; set; }
1806+
18041807 [JsonProperty("nonatomic", Required = Required.Always)]
18051808 public Nonatomic Nonatomic { get; set; }
18061809
@@ -1986,9 +1989,6 @@ namespace QuickType
19861989
19871990 [JsonProperty("SEL", Required = Required.Always)]
19881991 public Sel Sel { get; set; }
1989-
1990- [JsonProperty("select", Required = Required.Always)]
1991- public Select Select { get; set; }
19921992 }
19931993
19941994 public partial class NoSuchMethod
@@ -1997,6 +1997,12 @@ namespace QuickType
19971997 public long NoSuchMethodNoSuchMethod { get; set; }
19981998 }
19991999
2000+ public partial class Noexcept
2001+ {
2002+ [JsonProperty("noexcept", Required = Required.Always)]
2003+ public long NoexceptNoexcept { get; set; }
2004+ }
2005+
20002006 public partial class Nonatomic
20012007 {
20022008 [JsonProperty("nonatomic", Required = Required.Always)]
@@ -2369,12 +2375,6 @@ namespace QuickType
23692375 public long SelSel { get; set; }
23702376 }
23712377
2372- public partial class Select
2373- {
2374- [JsonProperty("select", Required = Required.Always)]
2375- public long SelectSelect { get; set; }
2376- }
2377-
23782378 public partial class Obj5
23792379 {
23802380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2395,6 +2395,9 @@ namespace QuickType
23952395 [JsonProperty("type", Required = Required.Always)]
23962396 public Obj5Type Obj5Type { get; set; }
23972397
2398+ [JsonProperty("select", Required = Required.Always)]
2399+ public Select Select { get; set; }
2400+
23982401 [JsonProperty("Self", Required = Required.Always)]
23992402 public Self Self { get; set; }
24002403
@@ -2497,6 +2500,9 @@ namespace QuickType
24972500 [JsonProperty("TimeZone", Required = Required.Always)]
24982501 public TimeZone TimeZone { get; set; }
24992502
2503+ [JsonProperty("to_dict", Required = Required.Always)]
2504+ public ToDict ToDict { get; set; }
2505+
25002506 [JsonProperty("top_level", Required = Required.Always)]
25012507 public TopLevelClass TopLevel { get; set; }
25022508
@@ -2565,12 +2571,6 @@ namespace QuickType
25652571
25662572 [JsonProperty("UUID", Required = Required.Always)]
25672573 public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
25742574 }
25752575
25762576 public partial class SelfClass
@@ -2603,6 +2603,12 @@ namespace QuickType
26032603 public long Type { get; set; }
26042604 }
26052605
2606+ public partial class Select
2607+ {
2608+ [JsonProperty("select", Required = Required.Always)]
2609+ public long SelectSelect { get; set; }
2610+ }
2611+
26062612 public partial class Self
26072613 {
26082614 [JsonProperty("Self", Required = Required.Always)]
@@ -2807,6 +2813,12 @@ namespace QuickType
28072813 public long TimeZoneTimeZone { get; set; }
28082814 }
28092815
2816+ public partial class ToDict
2817+ {
2818+ [JsonProperty("to_dict", Required = Required.Always)]
2819+ public long ToDictToDict { get; set; }
2820+ }
2821+
28102822 public partial class TopLevelClass
28112823 {
28122824 [JsonProperty("top_level", Required = Required.Always)]
@@ -2945,23 +2957,17 @@ namespace QuickType
29452957 public long UuidUuid { get; set; }
29462958 }
29472959
2948- public partial class Var
2949- {
2950- [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2953-
2954- public partial class Virtual
2955- {
2956- [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
29602960 public partial class Obj6
29612961 {
29622962 [JsonProperty("dummy", Required = Required.Always)]
29632963 public long Dummy { get; set; }
29642964
2965+ [JsonProperty("var", Required = Required.Always)]
2966+ public Var Var { get; set; }
2967+
2968+ [JsonProperty("virtual", Required = Required.Always)]
2969+ public Virtual Virtual { get; set; }
2970+
29652971 [JsonProperty("void", Required = Required.Always)]
29662972 public Void Void { get; set; }
29672973
@@ -2999,6 +3005,18 @@ namespace QuickType
29993005 public Yield Yield { get; set; }
30003006 }
30013007
3008+ public partial class Var
3009+ {
3010+ [JsonProperty("var", Required = Required.Always)]
3011+ public long VarVar { get; set; }
3012+ }
3013+
3014+ public partial class Virtual
3015+ {
3016+ [JsonProperty("virtual", Required = Required.Always)]
3017+ public long VirtualVirtual { get; set; }
3018+ }
3019+
30023020 public partial class Void
30033021 {
30043022 [JsonProperty("void", Required = Required.Always)]
Mdartdefault / TopLevel.dart+138 −98
@@ -1390,11 +1390,11 @@ class Obj2 {
13901390 final FormatExceptionClass formatException;
13911391 final Friend friend;
13921392 final From from;
1393+ final FromDict fromDict;
13931394 final Func func;
13941395 final FunctionClass function;
13951396 final Global global;
13961397 final Go go;
1397- final Goto goto;
13981398 final Default obj2Default;
13991399 final Do obj2Do;
14001400 final Double obj2Double;
@@ -1457,11 +1457,11 @@ class Obj2 {
14571457 required this.formatException,
14581458 required this.friend,
14591459 required this.from,
1460+ required this.fromDict,
14601461 required this.func,
14611462 required this.function,
14621463 required this.global,
14631464 required this.go,
1464- required this.goto,
14651465 required this.obj2Default,
14661466 required this.obj2Do,
14671467 required this.obj2Double,
@@ -1525,11 +1525,11 @@ class Obj2 {
15251525 formatException: FormatExceptionClass.fromJson(json["FormatException"]),
15261526 friend: Friend.fromJson(json["friend"]),
15271527 from: From.fromJson(json["from"]),
1528+ fromDict: FromDict.fromJson(json["from_dict"]),
15281529 func: Func.fromJson(json["func"]),
15291530 function: FunctionClass.fromJson(json["function"]),
15301531 global: Global.fromJson(json["global"]),
15311532 go: Go.fromJson(json["go"]),
1532- goto: Goto.fromJson(json["goto"]),
15331533 obj2Default: Default.fromJson(json["default"]),
15341534 obj2Do: Do.fromJson(json["do"]),
15351535 obj2Double: Double.fromJson(json["double"]),
@@ -1593,11 +1593,11 @@ class Obj2 {
15931593 "FormatException": formatException.toJson(),
15941594 "friend": friend.toJson(),
15951595 "from": from.toJson(),
1596+ "from_dict": fromDict.toJson(),
15961597 "func": func.toJson(),
15971598 "function": function.toJson(),
15981599 "global": global.toJson(),
15991600 "go": go.toJson(),
1600- "goto": goto.toJson(),
16011601 "default": obj2Default.toJson(),
16021602 "do": obj2Do.toJson(),
16031603 "double": obj2Double.toJson(),
@@ -2330,6 +2330,22 @@ class From {
23302330 };
23312331 }
23322332
2333+class FromDict {
2334+ final int fromDict;
2335+
2336+ FromDict({
2337+ required this.fromDict,
2338+ });
2339+
2340+ factory FromDict.fromJson(Map<String, dynamic> json) => FromDict(
2341+ fromDict: json["from_dict"],
2342+ );
2343+
2344+ Map<String, dynamic> toJson() => {
2345+ "from_dict": fromDict,
2346+ };
2347+}
2348+
23332349 class Func {
23342350 final int func;
23352351
@@ -2394,22 +2410,6 @@ class Go {
23942410 };
23952411 }
23962412
2397-class Goto {
2398- final int goto;
2399-
2400- Goto({
2401- required this.goto,
2402- });
2403-
2404- factory Goto.fromJson(Map<String, dynamic> json) => Goto(
2405- goto: json["goto"],
2406- );
2407-
2408- Map<String, dynamic> toJson() => {
2409- "goto": goto,
2410- };
2411-}
2412-
24132413 class Default {
24142414 final int defaultDefault;
24152415
@@ -2652,6 +2652,7 @@ class FalseClass {
26522652
26532653 class Obj3 {
26542654 final int dummy;
2655+ final Goto goto;
26552656 final Guard guard;
26562657 final HasOwnProperty hasOwnProperty;
26572658 final Hashable hashable;
@@ -2706,7 +2707,6 @@ class Obj3 {
27062707 final Newtonsoft newtonsoft;
27072708 final Nil nil;
27082709 final No no;
2709- final Noexcept noexcept;
27102710 final HashCode obj3HashCode;
27112711 final If obj3If;
27122712 final Implements obj3Implements;
@@ -2719,6 +2719,7 @@ class Obj3 {
27192719
27202720 Obj3({
27212721 required this.dummy,
2722+ required this.goto,
27222723 required this.guard,
27232724 required this.hasOwnProperty,
27242725 required this.hashable,
@@ -2773,7 +2774,6 @@ class Obj3 {
27732774 required this.newtonsoft,
27742775 required this.nil,
27752776 required this.no,
2776- required this.noexcept,
27772777 required this.obj3HashCode,
27782778 required this.obj3If,
27792779 required this.obj3Implements,
@@ -2787,6 +2787,7 @@ class Obj3 {
27872787
27882788 factory Obj3.fromJson(Map<String, dynamic> json) => Obj3(
27892789 dummy: json["dummy"],
2790+ goto: Goto.fromJson(json["goto"]),
27902791 guard: Guard.fromJson(json["guard"]),
27912792 hasOwnProperty: HasOwnProperty.fromJson(json["hasOwnProperty"]),
27922793 hashable: Hashable.fromJson(json["Hashable"]),
@@ -2841,7 +2842,6 @@ class Obj3 {
28412842 newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]),
28422843 nil: Nil.fromJson(json["nil"]),
28432844 no: No.fromJson(json["NO"]),
2844- noexcept: Noexcept.fromJson(json["noexcept"]),
28452845 obj3HashCode: HashCode.fromJson(json["hashCode"]),
28462846 obj3If: If.fromJson(json["if"]),
28472847 obj3Implements: Implements.fromJson(json["implements"]),
@@ -2855,6 +2855,7 @@ class Obj3 {
28552855
28562856 Map<String, dynamic> toJson() => {
28572857 "dummy": dummy,
2858+ "goto": goto.toJson(),
28582859 "guard": guard.toJson(),
28592860 "hasOwnProperty": hasOwnProperty.toJson(),
28602861 "Hashable": hashable.toJson(),
@@ -2909,7 +2910,6 @@ class Obj3 {
29092910 "newtonsoft": newtonsoft.toJson(),
29102911 "nil": nil.toJson(),
29112912 "NO": no.toJson(),
2912- "noexcept": noexcept.toJson(),
29132913 "hashCode": obj3HashCode.toJson(),
29142914 "if": obj3If.toJson(),
29152915 "implements": obj3Implements.toJson(),
@@ -2922,6 +2922,22 @@ class Obj3 {
29222922 };
29232923 }
29242924
2925+class Goto {
2926+ final int goto;
2927+
2928+ Goto({
2929+ required this.goto,
2930+ });
2931+
2932+ factory Goto.fromJson(Map<String, dynamic> json) => Goto(
2933+ goto: json["goto"],
2934+ );
2935+
2936+ Map<String, dynamic> toJson() => {
2937+ "goto": goto,
2938+ };
2939+}
2940+
29252941 class Guard {
29262942 final int guard;
29272943
@@ -3786,22 +3802,6 @@ class No {
37863802 };
37873803 }
37883804
3789-class Noexcept {
3790- final int noexcept;
3791-
3792- Noexcept({
3793- required this.noexcept,
3794- });
3795-
3796- factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept(
3797- noexcept: json["noexcept"],
3798- );
3799-
3800- Map<String, dynamic> toJson() => {
3801- "noexcept": noexcept,
3802- };
3803-}
3804-
38053805 class HashCode {
38063806 final int hashCodeHashCode;
38073807
@@ -3948,6 +3948,7 @@ class New {
39483948
39493949 class Obj4 {
39503950 final int dummy;
3951+ final Noexcept noexcept;
39513952 final Nonatomic nonatomic;
39523953 final None none;
39533954 final Nonlocal nonlocal;
@@ -4011,10 +4012,10 @@ class Obj4 {
40114012 final Sbyte sbyte;
40124013 final Sealed sealed;
40134014 final Sel sel;
4014- final Select select;
40154015
40164016 Obj4({
40174017 required this.dummy,
4018+ required this.noexcept,
40184019 required this.nonatomic,
40194020 required this.none,
40204021 required this.nonlocal,
@@ -4078,11 +4079,11 @@ class Obj4 {
40784079 required this.sbyte,
40794080 required this.sealed,
40804081 required this.sel,
4081- required this.select,
40824082 });
40834083
40844084 factory Obj4.fromJson(Map<String, dynamic> json) => Obj4(
40854085 dummy: json["dummy"],
4086+ noexcept: Noexcept.fromJson(json["noexcept"]),
40864087 nonatomic: Nonatomic.fromJson(json["nonatomic"]),
40874088 none: None.fromJson(json["None"]),
40884089 nonlocal: Nonlocal.fromJson(json["nonlocal"]),
@@ -4146,11 +4147,11 @@ class Obj4 {
41464147 sbyte: Sbyte.fromJson(json["sbyte"]),
41474148 sealed: Sealed.fromJson(json["sealed"]),
41484149 sel: Sel.fromJson(json["SEL"]),
4149- select: Select.fromJson(json["select"]),
41504150 );
41514151
41524152 Map<String, dynamic> toJson() => {
41534153 "dummy": dummy,
4154+ "noexcept": noexcept.toJson(),
41544155 "nonatomic": nonatomic.toJson(),
41554156 "None": none.toJson(),
41564157 "nonlocal": nonlocal.toJson(),
@@ -4214,7 +4215,22 @@ class Obj4 {
42144215 "sbyte": sbyte.toJson(),
42154216 "sealed": sealed.toJson(),
42164217 "SEL": sel.toJson(),
4217- "select": select.toJson(),
4218+ };
4219+}
4220+
4221+class Noexcept {
4222+ final int noexcept;
4223+
4224+ Noexcept({
4225+ required this.noexcept,
4226+ });
4227+
4228+ factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept(
4229+ noexcept: json["noexcept"],
4230+ );
4231+
4232+ Map<String, dynamic> toJson() => {
4233+ "noexcept": noexcept,
42184234 };
42194235 }
42204236
@@ -5226,22 +5242,6 @@ class Sel {
52265242 };
52275243 }
52285244
5229-class Select {
5230- final int select;
5231-
5232- Select({
5233- required this.select,
5234- });
5235-
5236- factory Select.fromJson(Map<String, dynamic> json) => Select(
5237- select: json["select"],
5238- );
5239-
5240- Map<String, dynamic> toJson() => {
5241- "select": select,
5242- };
5243-}
5244-
52455245 class Obj5 {
52465246 final int dummy;
52475247 final SelfClass obj5Self;
@@ -5257,8 +5257,8 @@ class Obj5 {
52575257 final Try obj5Try;
52585258 final TypeClass obj5Type;
52595259 final Typedef obj5Typedef;
5260- final Var obj5Var;
52615260 final TrueClass purpleTrue;
5261+ final Select select;
52625262 final Self self;
52635263 final Sendable sendable;
52645264 final Serialize serialize;
@@ -5287,6 +5287,7 @@ class Obj5 {
52875287 final TimeOnly timeOnly;
52885288 final TimeOnlyConverter timeOnlyConverter;
52895289 final TimeZone timeZone;
5290+ final ToDict toDict;
52905291 final TopLevelClass topLevel;
52915292 final Transient transient;
52925293 final Type type;
@@ -5307,7 +5308,6 @@ class Obj5 {
53075308 final Utf8JsonReader utf8JsonReader;
53085309 final Utf8JsonWriter utf8JsonWriter;
53095310 final Uuid uuid;
5310- final Virtual virtual;
53115311
53125312 Obj5({
53135313 required this.dummy,
@@ -5324,8 +5324,8 @@ class Obj5 {
53245324 required this.obj5Try,
53255325 required this.obj5Type,
53265326 required this.obj5Typedef,
5327- required this.obj5Var,
53285327 required this.purpleTrue,
5328+ required this.select,
53295329 required this.self,
53305330 required this.sendable,
53315331 required this.serialize,
@@ -5354,6 +5354,7 @@ class Obj5 {
53545354 required this.timeOnly,
53555355 required this.timeOnlyConverter,
53565356 required this.timeZone,
5357+ required this.toDict,
53575358 required this.topLevel,
53585359 required this.transient,
53595360 required this.type,
@@ -5374,7 +5375,6 @@ class Obj5 {
53745375 required this.utf8JsonReader,
53755376 required this.utf8JsonWriter,
53765377 required this.uuid,
5377- required this.virtual,
53785378 });
53795379
53805380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5392,8 +5392,8 @@ class Obj5 {
53925392 obj5Try: Try.fromJson(json["try"]),
53935393 obj5Type: TypeClass.fromJson(json["type"]),
53945394 obj5Typedef: Typedef.fromJson(json["typedef"]),
5395- obj5Var: Var.fromJson(json["var"]),
53965395 purpleTrue: TrueClass.fromJson(json["true"]),
5396+ select: Select.fromJson(json["select"]),
53975397 self: Self.fromJson(json["Self"]),
53985398 sendable: Sendable.fromJson(json["Sendable"]),
53995399 serialize: Serialize.fromJson(json["serialize"]),
@@ -5422,6 +5422,7 @@ class Obj5 {
54225422 timeOnly: TimeOnly.fromJson(json["TimeOnly"]),
54235423 timeOnlyConverter: TimeOnlyConverter.fromJson(json["TimeOnlyConverter"]),
54245424 timeZone: TimeZone.fromJson(json["TimeZone"]),
5425+ toDict: ToDict.fromJson(json["to_dict"]),
54255426 topLevel: TopLevelClass.fromJson(json["top_level"]),
54265427 transient: Transient.fromJson(json["transient"]),
54275428 type: Type.fromJson(json["Type"]),
@@ -5442,7 +5443,6 @@ class Obj5 {
54425443 utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
54435444 utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
54445445 uuid: Uuid.fromJson(json["UUID"]),
5445- virtual: Virtual.fromJson(json["virtual"]),
54465446 );
54475447
54485448 Map<String, dynamic> toJson() => {
@@ -5460,8 +5460,8 @@ class Obj5 {
54605460 "try": obj5Try.toJson(),
54615461 "type": obj5Type.toJson(),
54625462 "typedef": obj5Typedef.toJson(),
5463- "var": obj5Var.toJson(),
54645463 "true": purpleTrue.toJson(),
5464+ "select": select.toJson(),
54655465 "Self": self.toJson(),
54665466 "Sendable": sendable.toJson(),
54675467 "serialize": serialize.toJson(),
@@ -5490,6 +5490,7 @@ class Obj5 {
54905490 "TimeOnly": timeOnly.toJson(),
54915491 "TimeOnlyConverter": timeOnlyConverter.toJson(),
54925492 "TimeZone": timeZone.toJson(),
5493+ "to_dict": toDict.toJson(),
54935494 "top_level": topLevel.toJson(),
54945495 "transient": transient.toJson(),
54955496 "Type": type.toJson(),
@@ -5510,7 +5511,6 @@ class Obj5 {
55105511 "Utf8JsonReader": utf8JsonReader.toJson(),
55115512 "Utf8JsonWriter": utf8JsonWriter.toJson(),
55125513 "UUID": uuid.toJson(),
5513- "virtual": virtual.toJson(),
55145514 };
55155515 }
55165516
@@ -5722,35 +5722,35 @@ class Typedef {
57225722 };
57235723 }
57245724
5725-class Var {
5726- final int varVar;
5725+class TrueClass {
5726+ final int trueTrue;
57275727
5728- Var({
5729- required this.varVar,
5728+ TrueClass({
5729+ required this.trueTrue,
57305730 });
57315731
5732- factory Var.fromJson(Map<String, dynamic> json) => Var(
5733- varVar: json["var"],
5732+ factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5733+ trueTrue: json["true"],
57345734 );
57355735
57365736 Map<String, dynamic> toJson() => {
5737- "var": varVar,
5737+ "true": trueTrue,
57385738 };
57395739 }
57405740
5741-class TrueClass {
5742- final int trueTrue;
5741+class Select {
5742+ final int select;
57435743
5744- TrueClass({
5745- required this.trueTrue,
5744+ Select({
5745+ required this.select,
57465746 });
57475747
5748- factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5749- trueTrue: json["true"],
5748+ factory Select.fromJson(Map<String, dynamic> json) => Select(
5749+ select: json["select"],
57505750 );
57515751
57525752 Map<String, dynamic> toJson() => {
5753- "true": trueTrue,
5753+ "select": select,
57545754 };
57555755 }
57565756
@@ -6202,6 +6202,22 @@ class TimeZone {
62026202 };
62036203 }
62046204
6205+class ToDict {
6206+ final int toDict;
6207+
6208+ ToDict({
6209+ required this.toDict,
6210+ });
6211+
6212+ factory ToDict.fromJson(Map<String, dynamic> json) => ToDict(
6213+ toDict: json["to_dict"],
6214+ );
6215+
6216+ Map<String, dynamic> toJson() => {
6217+ "to_dict": toDict,
6218+ };
6219+}
6220+
62056221 class TopLevelClass {
62066222 final int topLevel;
62076223
@@ -6522,28 +6538,14 @@ class Uuid {
65226538 };
65236539 }
65246540
6525-class Virtual {
6526- final int virtual;
6527-
6528- Virtual({
6529- required this.virtual,
6530- });
6531-
6532- factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6533- virtual: json["virtual"],
6534- );
6535-
6536- Map<String, dynamic> toJson() => {
6537- "virtual": virtual,
6538- };
6539-}
6540-
65416541 class Obj6 {
65426542 final int dummy;
6543+ final Var obj6Var;
65436544 final Void obj6Void;
65446545 final While obj6While;
65456546 final With obj6With;
65466547 final Yield obj6Yield;
6548+ final Virtual virtual;
65476549 final Volatile volatile;
65486550 final WcharT wcharT;
65496551 final Weak weak;
@@ -6555,10 +6557,12 @@ class Obj6 {
65556557
65566558 Obj6({
65576559 required this.dummy,
6560+ required this.obj6Var,
65586561 required this.obj6Void,
65596562 required this.obj6While,
65606563 required this.obj6With,
65616564 required this.obj6Yield,
6565+ required this.virtual,
65626566 required this.volatile,
65636567 required this.wcharT,
65646568 required this.weak,
@@ -6571,10 +6575,12 @@ class Obj6 {
65716575
65726576 factory Obj6.fromJson(Map<String, dynamic> json) => Obj6(
65736577 dummy: json["dummy"],
6578+ obj6Var: Var.fromJson(json["var"]),
65746579 obj6Void: Void.fromJson(json["void"]),
65756580 obj6While: While.fromJson(json["while"]),
65766581 obj6With: With.fromJson(json["with"]),
65776582 obj6Yield: Yield.fromJson(json["yield"]),
6583+ virtual: Virtual.fromJson(json["virtual"]),
65786584 volatile: Volatile.fromJson(json["volatile"]),
65796585 wcharT: WcharT.fromJson(json["wchar_t"]),
65806586 weak: Weak.fromJson(json["weak"]),
@@ -6587,10 +6593,12 @@ class Obj6 {
65876593
65886594 Map<String, dynamic> toJson() => {
65896595 "dummy": dummy,
6596+ "var": obj6Var.toJson(),
65906597 "void": obj6Void.toJson(),
65916598 "while": obj6While.toJson(),
65926599 "with": obj6With.toJson(),
65936600 "yield": obj6Yield.toJson(),
6601+ "virtual": virtual.toJson(),
65946602 "volatile": volatile.toJson(),
65956603 "wchar_t": wcharT.toJson(),
65966604 "weak": weak.toJson(),
@@ -6602,6 +6610,22 @@ class Obj6 {
66026610 };
66036611 }
66046612
6613+class Var {
6614+ final int varVar;
6615+
6616+ Var({
6617+ required this.varVar,
6618+ });
6619+
6620+ factory Var.fromJson(Map<String, dynamic> json) => Var(
6621+ varVar: json["var"],
6622+ );
6623+
6624+ Map<String, dynamic> toJson() => {
6625+ "var": varVar,
6626+ };
6627+}
6628+
66056629 class Void {
66066630 final int voidVoid;
66076631
@@ -6666,6 +6690,22 @@ class Yield {
66666690 };
66676691 }
66686692
6693+class Virtual {
6694+ final int virtual;
6695+
6696+ Virtual({
6697+ required this.virtual,
6698+ });
6699+
6700+ factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6701+ virtual: json["virtual"],
6702+ );
6703+
6704+ Map<String, dynamic> toJson() => {
6705+ "virtual": virtual,
6706+ };
6707+}
6708+
66696709 class Volatile {
66706710 final int volatile;
Melixirdefault / QuickType.ex+306 −222
@@ -4845,6 +4845,45 @@ defmodule From do
48454845 end
48464846 end
48474847
4848+defmodule FromDict do
4849+ @enforce_keys [:from_dict]
4850+ defstruct [:from_dict]
4851+
4852+ @type t :: %__MODULE__{
4853+ from_dict: integer()
4854+ }
4855+
4856+ def decode_from_dict(value) when is_integer(value), do: value
4857+ def decode_from_dict(_), do: {:error, "Unexpected type when decoding FromDict.from_dict"}
4858+
4859+ def encode_from_dict(value) when is_integer(value), do: value
4860+ def encode_from_dict(_), do: {:error, "Unexpected type when encoding FromDict.from_dict"}
4861+
4862+ def from_map(m) do
4863+ %FromDict{
4864+ from_dict: decode_from_dict(m["from_dict"]),
4865+ }
4866+ end
4867+
4868+ def from_json(json) do
4869+ json
4870+ |> Jason.decode!()
4871+ |> from_map()
4872+ end
4873+
4874+ def to_map(struct) do
4875+ %{
4876+ "from_dict" => struct.from_dict,
4877+ }
4878+ end
4879+
4880+ def to_json(struct) do
4881+ struct
4882+ |> to_map()
4883+ |> Jason.encode!()
4884+ end
4885+end
4886+
48484887 defmodule FromJSON do
48494888 @enforce_keys [:from_json]
48504889 defstruct [:from_json]
@@ -5079,45 +5118,6 @@ defmodule Go do
50795118 end
50805119 end
50815120
5082-defmodule Goto do
5083- @enforce_keys [:goto]
5084- defstruct [:goto]
5085-
5086- @type t :: %__MODULE__{
5087- goto: integer()
5088- }
5089-
5090- def decode_goto(value) when is_integer(value), do: value
5091- def decode_goto(_), do: {:error, "Unexpected type when decoding Goto.goto"}
5092-
5093- def encode_goto(value) when is_integer(value), do: value
5094- def encode_goto(_), do: {:error, "Unexpected type when encoding Goto.goto"}
5095-
5096- def from_map(m) do
5097- %Goto{
5098- goto: decode_goto(m["goto"]),
5099- }
5100- end
5101-
5102- def from_json(json) do
5103- json
5104- |> Jason.decode!()
5105- |> from_map()
5106- end
5107-
5108- def to_map(struct) do
5109- %{
5110- "goto" => struct.goto,
5111- }
5112- end
5113-
5114- def to_json(struct) do
5115- struct
5116- |> to_map()
5117- |> Jason.encode!()
5118- end
5119-end
5120-
51215121 defmodule DefClass do
51225122 @enforce_keys [:def_def]
51235123 defstruct [:def_def]
@@ -5275,8 +5275,8 @@ defmodule FalseClass do
52755275 end
52765276
52775277 defmodule Obj2 do
5278- @enforce_keys [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :obj2_def, :obj2_do, :obj2_else, :obj2_false]
5279- defstruct [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :obj2_def, :obj2_do, :obj2_else, :obj2_false]
5278+ @enforce_keys [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :obj2_def, :obj2_do, :obj2_else, :obj2_false]
5279+ defstruct [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :obj2_def, :obj2_do, :obj2_else, :obj2_false]
52805280
52815281 @type t :: %__MODULE__{
52825282 date_formatter: DateFormatter.t(),
@@ -5333,13 +5333,13 @@ defmodule Obj2 do
53335333 format_exception: FormatException.t(),
53345334 friend: Friend.t(),
53355335 from: From.t(),
5336+ from_dict: FromDict.t(),
53365337 from_json: FromJSON.t(),
53375338 func: Func.t(),
53385339 function: FunctionClass.t(),
53395340 get: Get.t(),
53405341 global: Global.t(),
53415342 go: Go.t(),
5342- goto: Goto.t(),
53435343 obj2_def: DefClass.t(),
53445344 obj2_do: DoClass.t(),
53455345 obj2_else: ElseClass.t(),
@@ -5408,13 +5408,13 @@ defmodule Obj2 do
54085408 format_exception: FormatException.from_map(m["FormatException"]),
54095409 friend: Friend.from_map(m["friend"]),
54105410 from: From.from_map(m["from"]),
5411+ from_dict: FromDict.from_map(m["from_dict"]),
54115412 from_json: FromJSON.from_map(m["from_json"]),
54125413 func: Func.from_map(m["func"]),
54135414 function: FunctionClass.from_map(m["function"]),
54145415 get: Get.from_map(m["get"]),
54155416 global: Global.from_map(m["global"]),
54165417 go: Go.from_map(m["go"]),
5417- goto: Goto.from_map(m["goto"]),
54185418 obj2_def: DefClass.from_map(m["def"]),
54195419 obj2_do: DoClass.from_map(m["do"]),
54205420 obj2_else: ElseClass.from_map(m["else"]),
@@ -5484,13 +5484,13 @@ defmodule Obj2 do
54845484 "FormatException" => FormatException.to_map(struct.format_exception),
54855485 "friend" => Friend.to_map(struct.friend),
54865486 "from" => From.to_map(struct.from),
5487+ "from_dict" => FromDict.to_map(struct.from_dict),
54875488 "from_json" => FromJSON.to_map(struct.from_json),
54885489 "func" => Func.to_map(struct.func),
54895490 "function" => FunctionClass.to_map(struct.function),
54905491 "get" => Get.to_map(struct.get),
54915492 "global" => Global.to_map(struct.global),
54925493 "go" => Go.to_map(struct.go),
5493- "goto" => Goto.to_map(struct.goto),
54945494 "def" => DefClass.to_map(struct.obj2_def),
54955495 "do" => DoClass.to_map(struct.obj2_do),
54965496 "else" => ElseClass.to_map(struct.obj2_else),
@@ -5505,6 +5505,45 @@ defmodule Obj2 do
55055505 end
55065506 end
55075507
5508+defmodule Goto do
5509+ @enforce_keys [:goto]
5510+ defstruct [:goto]
5511+
5512+ @type t :: %__MODULE__{
5513+ goto: integer()
5514+ }
5515+
5516+ def decode_goto(value) when is_integer(value), do: value
5517+ def decode_goto(_), do: {:error, "Unexpected type when decoding Goto.goto"}
5518+
5519+ def encode_goto(value) when is_integer(value), do: value
5520+ def encode_goto(_), do: {:error, "Unexpected type when encoding Goto.goto"}
5521+
5522+ def from_map(m) do
5523+ %Goto{
5524+ goto: decode_goto(m["goto"]),
5525+ }
5526+ end
5527+
5528+ def from_json(json) do
5529+ json
5530+ |> Jason.decode!()
5531+ |> from_map()
5532+ end
5533+
5534+ def to_map(struct) do
5535+ %{
5536+ "goto" => struct.goto,
5537+ }
5538+ end
5539+
5540+ def to_json(struct) do
5541+ struct
5542+ |> to_map()
5543+ |> Jason.encode!()
5544+ end
5545+end
5546+
55085547 defmodule Guard do
55095548 @enforce_keys [:guard]
55105549 defstruct [:guard]
@@ -7845,45 +7884,6 @@ defmodule No do
78457884 end
78467885 end
78477886
7848-defmodule Noexcept do
7849- @enforce_keys [:noexcept]
7850- defstruct [:noexcept]
7851-
7852- @type t :: %__MODULE__{
7853- noexcept: integer()
7854- }
7855-
7856- def decode_noexcept(value) when is_integer(value), do: value
7857- def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"}
7858-
7859- def encode_noexcept(value) when is_integer(value), do: value
7860- def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"}
7861-
7862- def from_map(m) do
7863- %Noexcept{
7864- noexcept: decode_noexcept(m["noexcept"]),
7865- }
7866- end
7867-
7868- def from_json(json) do
7869- json
7870- |> Jason.decode!()
7871- |> from_map()
7872- end
7873-
7874- def to_map(struct) do
7875- %{
7876- "noexcept" => struct.noexcept,
7877- }
7878- end
7879-
7880- def to_json(struct) do
7881- struct
7882- |> to_map()
7883- |> Jason.encode!()
7884- end
7885-end
7886-
78877887 defmodule ImportClass do
78887888 @enforce_keys [:import_import]
78897889 defstruct [:import_import]
@@ -8002,11 +8002,12 @@ defmodule NilClass do
80028002 end
80038003
80048004 defmodule Obj3 do
8005- @enforce_keys [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil]
8006- defstruct [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil]
8005+ @enforce_keys [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil]
8006+ defstruct [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil]
80078007
80088008 @type t :: %__MODULE__{
80098009 dummy: integer(),
8010+ goto: Goto.t(),
80108011 guard: Guard.t(),
80118012 has_own_property: HasOwnProperty.t(),
80128013 hash_code: HashCode.t(),
@@ -8067,7 +8068,6 @@ defmodule Obj3 do
80678068 new: New.t(),
80688069 newtonsoft: Newtonsoft.t(),
80698070 no: No.t(),
8070- noexcept: Noexcept.t(),
80718071 obj3_import: ImportClass.t(),
80728072 obj3_in: InClass.t(),
80738073 obj3_nil: NilClass.t()
@@ -8082,6 +8082,7 @@ defmodule Obj3 do
80828082 def from_map(m) do
80838083 %Obj3{
80848084 dummy: decode_dummy(m["dummy"]),
8085+ goto: Goto.from_map(m["goto"]),
80858086 guard: Guard.from_map(m["guard"]),
80868087 has_own_property: HasOwnProperty.from_map(m["hasOwnProperty"]),
80878088 hash_code: HashCode.from_map(m["hashCode"]),
@@ -8142,7 +8143,6 @@ defmodule Obj3 do
81428143 new: New.from_map(m["new"]),
81438144 newtonsoft: Newtonsoft.from_map(m["newtonsoft"]),
81448145 no: No.from_map(m["NO"]),
8145- noexcept: Noexcept.from_map(m["noexcept"]),
81468146 obj3_import: ImportClass.from_map(m["import"]),
81478147 obj3_in: InClass.from_map(m["in"]),
81488148 obj3_nil: NilClass.from_map(m["nil"]),
@@ -8158,6 +8158,7 @@ defmodule Obj3 do
81588158 def to_map(struct) do
81598159 %{
81608160 "dummy" => struct.dummy,
8161+ "goto" => Goto.to_map(struct.goto),
81618162 "guard" => Guard.to_map(struct.guard),
81628163 "hasOwnProperty" => HasOwnProperty.to_map(struct.has_own_property),
81638164 "hashCode" => HashCode.to_map(struct.hash_code),
@@ -8218,7 +8219,6 @@ defmodule Obj3 do
82188219 "new" => New.to_map(struct.new),
82198220 "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft),
82208221 "NO" => No.to_map(struct.no),
8221- "noexcept" => Noexcept.to_map(struct.noexcept),
82228222 "import" => ImportClass.to_map(struct.obj3_import),
82238223 "in" => InClass.to_map(struct.obj3_in),
82248224 "nil" => NilClass.to_map(struct.obj3_nil),
@@ -8271,6 +8271,45 @@ defmodule NoSuchMethod do
82718271 end
82728272 end
82738273
8274+defmodule Noexcept do
8275+ @enforce_keys [:noexcept]
8276+ defstruct [:noexcept]
8277+
8278+ @type t :: %__MODULE__{
8279+ noexcept: integer()
8280+ }
8281+
8282+ def decode_noexcept(value) when is_integer(value), do: value
8283+ def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"}
8284+
8285+ def encode_noexcept(value) when is_integer(value), do: value
8286+ def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"}
8287+
8288+ def from_map(m) do
8289+ %Noexcept{
8290+ noexcept: decode_noexcept(m["noexcept"]),
8291+ }
8292+ end
8293+
8294+ def from_json(json) do
8295+ json
8296+ |> Jason.decode!()
8297+ |> from_map()
8298+ end
8299+
8300+ def to_map(struct) do
8301+ %{
8302+ "noexcept" => struct.noexcept,
8303+ }
8304+ end
8305+
8306+ def to_json(struct) do
8307+ struct
8308+ |> to_map()
8309+ |> Jason.encode!()
8310+ end
8311+end
8312+
82748313 defmodule Nonatomic do
82758314 @enforce_keys [:nonatomic]
82768315 defstruct [:nonatomic]
@@ -10689,52 +10728,14 @@ defmodule Sel do
1068910728 end
1069010729 end
1069110730
10692-defmodule Select do
10693- @enforce_keys [:select]
10694- defstruct [:select]
10695-
10696- @type t :: %__MODULE__{
10697- select: integer()
10698- }
10699-
10700- def decode_select(value) when is_integer(value), do: value
10701- def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
10702-
10703- def encode_select(value) when is_integer(value), do: value
10704- def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
10705-
10706- def from_map(m) do
10707- %Select{
10708- select: decode_select(m["select"]),
10709- }
10710- end
10711-
10712- def from_json(json) do
10713- json
10714- |> Jason.decode!()
10715- |> from_map()
10716- end
10717-
10718- def to_map(struct) do
10719- %{
10720- "select" => struct.select,
10721- }
10722- end
10723-
10724- def to_json(struct) do
10725- struct
10726- |> to_map()
10727- |> Jason.encode!()
10728- end
10729-end
10730-
1073110731 defmodule Obj4 do
10732- @enforce_keys [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select]
10733- defstruct [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select]
10732+ @enforce_keys [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel]
10733+ defstruct [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel]
1073410734
1073510735 @type t :: %__MODULE__{
1073610736 dummy: integer(),
1073710737 no_such_method: NoSuchMethod.t(),
10738+ noexcept: Noexcept.t(),
1073810739 nonatomic: Nonatomic.t(),
1073910740 none: None.t(),
1074010741 nonlocal: Nonlocal.t(),
@@ -10796,8 +10797,7 @@ defmodule Obj4 do
1079610797 s: S.t(),
1079710798 sbyte: Sbyte.t(),
1079810799 sealed: Sealed.t(),
10799- sel: Sel.t(),
10800- select: Select.t()
10800+ sel: Sel.t()
1080110801 }
1080210802
1080310803 def decode_dummy(value) when is_integer(value), do: value
@@ -10810,6 +10810,7 @@ defmodule Obj4 do
1081010810 %Obj4{
1081110811 dummy: decode_dummy(m["dummy"]),
1081210812 no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]),
10813+ noexcept: Noexcept.from_map(m["noexcept"]),
1081310814 nonatomic: Nonatomic.from_map(m["nonatomic"]),
1081410815 none: None.from_map(m["None"]),
1081510816 nonlocal: Nonlocal.from_map(m["nonlocal"]),
@@ -10872,7 +10873,6 @@ defmodule Obj4 do
1087210873 sbyte: Sbyte.from_map(m["sbyte"]),
1087310874 sealed: Sealed.from_map(m["sealed"]),
1087410875 sel: Sel.from_map(m["SEL"]),
10875- select: Select.from_map(m["select"]),
1087610876 }
1087710877 end
1087810878
@@ -10886,6 +10886,7 @@ defmodule Obj4 do
1088610886 %{
1088710887 "dummy" => struct.dummy,
1088810888 "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method),
10889+ "noexcept" => Noexcept.to_map(struct.noexcept),
1088910890 "nonatomic" => Nonatomic.to_map(struct.nonatomic),
1089010891 "None" => None.to_map(struct.none),
1089110892 "nonlocal" => Nonlocal.to_map(struct.nonlocal),
@@ -10948,7 +10949,6 @@ defmodule Obj4 do
1094810949 "sbyte" => Sbyte.to_map(struct.sbyte),
1094910950 "sealed" => Sealed.to_map(struct.sealed),
1095010951 "SEL" => Sel.to_map(struct.sel),
10951- "select" => Select.to_map(struct.select),
1095210952 }
1095310953 end
1095410954
@@ -11076,6 +11076,45 @@ defmodule TypeClass do
1107611076 end
1107711077 end
1107811078
11079+defmodule Select do
11080+ @enforce_keys [:select]
11081+ defstruct [:select]
11082+
11083+ @type t :: %__MODULE__{
11084+ select: integer()
11085+ }
11086+
11087+ def decode_select(value) when is_integer(value), do: value
11088+ def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
11089+
11090+ def encode_select(value) when is_integer(value), do: value
11091+ def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
11092+
11093+ def from_map(m) do
11094+ %Select{
11095+ select: decode_select(m["select"]),
11096+ }
11097+ end
11098+
11099+ def from_json(json) do
11100+ json
11101+ |> Jason.decode!()
11102+ |> from_map()
11103+ end
11104+
11105+ def to_map(struct) do
11106+ %{
11107+ "select" => struct.select,
11108+ }
11109+ end
11110+
11111+ def to_json(struct) do
11112+ struct
11113+ |> to_map()
11114+ |> Jason.encode!()
11115+ end
11116+end
11117+
1107911118 defmodule Self do
1108011119 @enforce_keys [:self]
1108111120 defstruct [:self]
@@ -12402,6 +12441,45 @@ defmodule TimeZone do
1240212441 end
1240312442 end
1240412443
12444+defmodule ToDict do
12445+ @enforce_keys [:to_dict]
12446+ defstruct [:to_dict]
12447+
12448+ @type t :: %__MODULE__{
12449+ to_dict: integer()
12450+ }
12451+
12452+ def decode_to_dict(value) when is_integer(value), do: value
12453+ def decode_to_dict(_), do: {:error, "Unexpected type when decoding ToDict.to_dict"}
12454+
12455+ def encode_to_dict(value) when is_integer(value), do: value
12456+ def encode_to_dict(_), do: {:error, "Unexpected type when encoding ToDict.to_dict"}
12457+
12458+ def from_map(m) do
12459+ %ToDict{
12460+ to_dict: decode_to_dict(m["to_dict"]),
12461+ }
12462+ end
12463+
12464+ def from_json(json) do
12465+ json
12466+ |> Jason.decode!()
12467+ |> from_map()
12468+ end
12469+
12470+ def to_map(struct) do
12471+ %{
12472+ "to_dict" => struct.to_dict,
12473+ }
12474+ end
12475+
12476+ def to_json(struct) do
12477+ struct
12478+ |> to_map()
12479+ |> Jason.encode!()
12480+ end
12481+end
12482+
1240512483 defmodule ToJSON do
1240612484 @enforce_keys [:to_json]
1240712485 defstruct [:to_json]
@@ -13377,93 +13455,16 @@ defmodule UUID do
1337713455 end
1337813456 end
1337913457
13380-defmodule Var do
13381- @enforce_keys [:var]
13382- defstruct [:var]
13383-
13384- @type t :: %__MODULE__{
13385- var: integer()
13386- }
13387-
13388- def decode_var(value) when is_integer(value), do: value
13389- def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"}
13390-
13391- def encode_var(value) when is_integer(value), do: value
13392- def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"}
13393-
13394- def from_map(m) do
13395- %Var{
13396- var: decode_var(m["var"]),
13397- }
13398- end
13399-
13400- def from_json(json) do
13401- json
13402- |> Jason.decode!()
13403- |> from_map()
13404- end
13405-
13406- def to_map(struct) do
13407- %{
13408- "var" => struct.var,
13409- }
13410- end
13411-
13412- def to_json(struct) do
13413- struct
13414- |> to_map()
13415- |> Jason.encode!()
13416- end
13417-end
13418-
13419-defmodule Virtual do
13420- @enforce_keys [:virtual]
13421- defstruct [:virtual]
13422-
13423- @type t :: %__MODULE__{
13424- virtual: integer()
13425- }
13426-
13427- def decode_virtual(value) when is_integer(value), do: value
13428- def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"}
13429-
13430- def encode_virtual(value) when is_integer(value), do: value
13431- def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"}
13432-
13433- def from_map(m) do
13434- %Virtual{
13435- virtual: decode_virtual(m["virtual"]),
13436- }
13437- end
13438-
13439- def from_json(json) do
13440- json
13441- |> Jason.decode!()
13442- |> from_map()
13443- end
13444-
13445- def to_map(struct) do
13446- %{
13447- "virtual" => struct.virtual,
13448- }
13449- end
13450-
13451- def to_json(struct) do
13452- struct
13453- |> to_map()
13454- |> Jason.encode!()
13455- end
13456-end
13457-
1345813458 defmodule Obj5 do
13459- @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13460- defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13459+ @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :select, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid]
13460+ defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :select, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid]
1346113461
1346213462 @type t :: %__MODULE__{
1346313463 dummy: integer(),
1346413464 obj5_self: SelfClass.t(),
1346513465 obj5_true: TrueClass.t(),
1346613466 obj5_type: TypeClass.t(),
13467+ select: Select.t(),
1346713468 self: Self.t(),
1346813469 sendable: Sendable.t(),
1346913470 serialize: Serialize.t(),
@@ -13498,6 +13499,7 @@ defmodule Obj5 do
1349813499 time_only: TimeOnly.t(),
1349913500 time_only_converter: TimeOnlyConverter.t(),
1350013501 time_zone: TimeZone.t(),
13502+ to_dict: ToDict.t(),
1350113503 to_json: ToJSON.t(),
1350213504 to_string: ToString.t(),
1350313505 top_level: TopLevelClass.t(),
@@ -13522,9 +13524,7 @@ defmodule Obj5 do
1352213524 using: Using.t(),
1352313525 utf8_json_reader: Utf8JSONReader.t(),
1352413526 utf8_json_writer: Utf8JSONWriter.t(),
13525- uuid: UUID.t(),
13526- var: Var.t(),
13527- virtual: Virtual.t()
13527+ uuid: UUID.t()
1352813528 }
1352913529
1353013530 def decode_dummy(value) when is_integer(value), do: value
@@ -13539,6 +13539,7 @@ defmodule Obj5 do
1353913539 obj5_self: SelfClass.from_map(m["self"]),
1354013540 obj5_true: TrueClass.from_map(m["True"]),
1354113541 obj5_type: TypeClass.from_map(m["type"]),
13542+ select: Select.from_map(m["select"]),
1354213543 self: Self.from_map(m["Self"]),
1354313544 sendable: Sendable.from_map(m["Sendable"]),
1354413545 serialize: Serialize.from_map(m["serialize"]),
@@ -13573,6 +13574,7 @@ defmodule Obj5 do
1357313574 time_only: TimeOnly.from_map(m["TimeOnly"]),
1357413575 time_only_converter: TimeOnlyConverter.from_map(m["TimeOnlyConverter"]),
1357513576 time_zone: TimeZone.from_map(m["TimeZone"]),
13577+ to_dict: ToDict.from_map(m["to_dict"]),
1357613578 to_json: ToJSON.from_map(m["to_json"]),
1357713579 to_string: ToString.from_map(m["toString"]),
1357813580 top_level: TopLevelClass.from_map(m["top_level"]),
@@ -13598,8 +13600,6 @@ defmodule Obj5 do
1359813600 utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
1359913601 utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
1360013602 uuid: UUID.from_map(m["UUID"]),
13601- var: Var.from_map(m["var"]),
13602- virtual: Virtual.from_map(m["virtual"]),
1360313603 }
1360413604 end
1360513605
@@ -13615,6 +13615,7 @@ defmodule Obj5 do
1361513615 "self" => SelfClass.to_map(struct.obj5_self),
1361613616 "True" => TrueClass.to_map(struct.obj5_true),
1361713617 "type" => TypeClass.to_map(struct.obj5_type),
13618+ "select" => Select.to_map(struct.select),
1361813619 "Self" => Self.to_map(struct.self),
1361913620 "Sendable" => Sendable.to_map(struct.sendable),
1362013621 "serialize" => Serialize.to_map(struct.serialize),
@@ -13649,6 +13650,7 @@ defmodule Obj5 do
1364913650 "TimeOnly" => TimeOnly.to_map(struct.time_only),
1365013651 "TimeOnlyConverter" => TimeOnlyConverter.to_map(struct.time_only_converter),
1365113652 "TimeZone" => TimeZone.to_map(struct.time_zone),
13653+ "to_dict" => ToDict.to_map(struct.to_dict),
1365213654 "to_json" => ToJSON.to_map(struct.to_json),
1365313655 "toString" => ToString.to_map(struct.to_string),
1365413656 "top_level" => TopLevelClass.to_map(struct.top_level),
@@ -13674,8 +13676,84 @@ defmodule Obj5 do
1367413676 "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
1367513677 "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
1367613678 "UUID" => UUID.to_map(struct.uuid),
13677- "var" => Var.to_map(struct.var),
13678- "virtual" => Virtual.to_map(struct.virtual),
13679+ }
13680+ end
13681+
13682+ def to_json(struct) do
13683+ struct
13684+ |> to_map()
13685+ |> Jason.encode!()
13686+ end
13687+end
13688+
13689+defmodule Var do
13690+ @enforce_keys [:var]
13691+ defstruct [:var]
13692+
13693+ @type t :: %__MODULE__{
13694+ var: integer()
13695+ }
13696+
13697+ def decode_var(value) when is_integer(value), do: value
13698+ def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"}
13699+
13700+ def encode_var(value) when is_integer(value), do: value
13701+ def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"}
13702+
13703+ def from_map(m) do
13704+ %Var{
13705+ var: decode_var(m["var"]),
13706+ }
13707+ end
13708+
13709+ def from_json(json) do
13710+ json
13711+ |> Jason.decode!()
13712+ |> from_map()
13713+ end
13714+
13715+ def to_map(struct) do
13716+ %{
13717+ "var" => struct.var,
13718+ }
13719+ end
13720+
13721+ def to_json(struct) do
13722+ struct
13723+ |> to_map()
13724+ |> Jason.encode!()
13725+ end
13726+end
13727+
13728+defmodule Virtual do
13729+ @enforce_keys [:virtual]
13730+ defstruct [:virtual]
13731+
13732+ @type t :: %__MODULE__{
13733+ virtual: integer()
13734+ }
13735+
13736+ def decode_virtual(value) when is_integer(value), do: value
13737+ def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"}
13738+
13739+ def encode_virtual(value) when is_integer(value), do: value
13740+ def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"}
13741+
13742+ def from_map(m) do
13743+ %Virtual{
13744+ virtual: decode_virtual(m["virtual"]),
13745+ }
13746+ end
13747+
13748+ def from_json(json) do
13749+ json
13750+ |> Jason.decode!()
13751+ |> from_map()
13752+ end
13753+
13754+ def to_map(struct) do
13755+ %{
13756+ "virtual" => struct.virtual,
1367913757 }
1368013758 end
1368113759
@@ -14155,11 +14233,13 @@ defmodule Yield do
1415514233 end
1415614234
1415714235 defmodule Obj6 do
14158- @enforce_keys [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14159- defstruct [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14236+ @enforce_keys [:dummy, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14237+ defstruct [:dummy, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
1416014238
1416114239 @type t :: %__MODULE__{
1416214240 dummy: integer(),
14241+ var: Var.t(),
14242+ virtual: Virtual.t(),
1416314243 void: Void.t(),
1416414244 volatile: Volatile.t(),
1416514245 wchar_t: WcharT.t(),
@@ -14183,6 +14263,8 @@ defmodule Obj6 do
1418314263 def from_map(m) do
1418414264 %Obj6{
1418514265 dummy: decode_dummy(m["dummy"]),
14266+ var: Var.from_map(m["var"]),
14267+ virtual: Virtual.from_map(m["virtual"]),
1418614268 void: Void.from_map(m["void"]),
1418714269 volatile: Volatile.from_map(m["volatile"]),
1418814270 wchar_t: WcharT.from_map(m["wchar_t"]),
@@ -14207,6 +14289,8 @@ defmodule Obj6 do
1420714289 def to_map(struct) do
1420814290 %{
1420914291 "dummy" => struct.dummy,
14292+ "var" => Var.to_map(struct.var),
14293+ "virtual" => Virtual.to_map(struct.virtual),
1421014294 "void" => Void.to_map(struct.void),
1421114295 "volatile" => Volatile.to_map(struct.volatile),
1421214296 "wchar_t" => WcharT.to_map(struct.wchar_t),
Melmdefault / QuickType.elm+133 −95
@@ -133,19 +133,20 @@ module QuickType exposing
133133 , FormatException
134134 , Friend
135135 , From
136+ , FromDict
136137 , FromJSON
137138 , Func
138139 , Function
139140 , Get
140141 , Global
141142 , Go
142- , Goto
143143 , Decoder
144144 , Else
145145 , Exposing
146146 , Obj2False
147147 , FloatClass
148148 , Obj3
149+ , Goto
149150 , Guard
150151 , HasOwnProperty
151152 , HashCode
@@ -202,7 +203,6 @@ module QuickType exposing
202203 , Newtonsoft
203204 , Nil
204205 , No
205- , Noexcept
206206 , If
207207 , Import
208208 , In
@@ -212,6 +212,7 @@ module QuickType exposing
212212 , Module
213213 , Obj4
214214 , NoSuchMethod
215+ , Noexcept
215216 , Nonatomic
216217 , None
217218 , Nonlocal
@@ -274,7 +275,6 @@ module QuickType exposing
274275 , Sbyte
275276 , Sealed
276277 , Sel
277- , Select
278278 , Obj5
279279 , SelfClass
280280 , StringClass
@@ -282,6 +282,7 @@ module QuickType exposing
282282 , Obj5True
283283 , Type
284284 , TypeClass
285+ , Select
285286 , Self
286287 , Sendable
287288 , Serialize
@@ -314,6 +315,7 @@ module QuickType exposing
314315 , TimeOnly
315316 , TimeOnlyConverter
316317 , TimeZone
318+ , ToDict
317319 , ToJSON
318320 , ToString
319321 , TopLevel
@@ -338,10 +340,10 @@ module QuickType exposing
338340 , Utf8JSONReader
339341 , Utf8JSONWriter
340342 , UUID
341- , Var
342- , Virtual
343343 , Obj6
344344 , Where
345+ , Var
346+ , Virtual
345347 , Void
346348 , Volatile
347349 , WcharT
@@ -749,13 +751,13 @@ type alias Obj2 =
749751 , formatException : FormatException
750752 , friend : Friend
751753 , from : From
754+ , fromDict : FromDict
752755 , fromJSON : FromJSON
753756 , func : Func
754757 , function : Function
755758 , get : Get
756759 , global : Global
757760 , go : Go
758- , goto : Goto
759761 , obj2Decoder : Decoder
760762 , obj2Else : Else
761763 , obj2Exposing : Exposing
@@ -975,6 +977,10 @@ type alias From =
975977 { from : Int
976978 }
977979
980+type alias FromDict =
981+ { fromDict : Int
982+ }
983+
978984 type alias FromJSON =
979985 { fromJSON : Int
980986 }
@@ -999,10 +1005,6 @@ type alias Go =
9991005 { go : Int
10001006 }
10011007
1002-type alias Goto =
1003- { goto : Int
1004- }
1005-
10061008 type alias Decoder =
10071009 { decoderDecoder : Int
10081010 }
@@ -1025,6 +1027,7 @@ type alias FloatClass =
10251027
10261028 type alias Obj3 =
10271029 { dummy : Int
1030+ , goto : Goto
10281031 , guard : Guard
10291032 , hasOwnProperty : HasOwnProperty
10301033 , hashCode : HashCode
@@ -1081,7 +1084,6 @@ type alias Obj3 =
10811084 , newtonsoft : Newtonsoft
10821085 , nil : Nil
10831086 , no : No
1084- , noexcept : Noexcept
10851087 , obj3If : If
10861088 , obj3Import : Import
10871089 , obj3In : In
@@ -1091,6 +1093,10 @@ type alias Obj3 =
10911093 , obj3Module : Module
10921094 }
10931095
1096+type alias Goto =
1097+ { goto : Int
1098+ }
1099+
10941100 type alias Guard =
10951101 { guard : Int
10961102 }
@@ -1315,10 +1321,6 @@ type alias No =
13151321 { no : Int
13161322 }
13171323
1318-type alias Noexcept =
1319- { noexcept : Int
1320- }
1321-
13221324 type alias If =
13231325 { ifIf : Int
13241326 }
@@ -1350,6 +1352,7 @@ type alias Module =
13501352 type alias Obj4 =
13511353 { dummy : Int
13521354 , noSuchMethod : NoSuchMethod
1355+ , noexcept : Noexcept
13531356 , nonatomic : Nonatomic
13541357 , none : None
13551358 , nonlocal : Nonlocal
@@ -1412,13 +1415,16 @@ type alias Obj4 =
14121415 , sbyte : Sbyte
14131416 , sealed : Sealed
14141417 , sel : Sel
1415- , select : Select
14161418 }
14171419
14181420 type alias NoSuchMethod =
14191421 { noSuchMethod : Int
14201422 }
14211423
1424+type alias Noexcept =
1425+ { noexcept : Int
1426+ }
1427+
14221428 type alias Nonatomic =
14231429 { nonatomic : Int
14241430 }
@@ -1667,10 +1673,6 @@ type alias Sel =
16671673 { sel : Int
16681674 }
16691675
1670-type alias Select =
1671- { select : Int
1672- }
1673-
16741676 type alias Obj5 =
16751677 { dummy : Int
16761678 , obj5Self : SelfClass
@@ -1679,6 +1681,7 @@ type alias Obj5 =
16791681 , obj5True : Obj5True
16801682 , obj5Type : Type
16811683 , purpleType : TypeClass
1684+ , select : Select
16821685 , self : Self
16831686 , sendable : Sendable
16841687 , serialize : Serialize
@@ -1711,6 +1714,7 @@ type alias Obj5 =
17111714 , timeOnly : TimeOnly
17121715 , timeOnlyConverter : TimeOnlyConverter
17131716 , timeZone : TimeZone
1717+ , toDict : ToDict
17141718 , toJSON : ToJSON
17151719 , toString : ToString
17161720 , topLevel : TopLevel
@@ -1735,8 +1739,6 @@ type alias Obj5 =
17351739 , utf8JSONReader : Utf8JSONReader
17361740 , utf8JSONWriter : Utf8JSONWriter
17371741 , uuid : UUID
1738- , var : Var
1739- , virtual : Virtual
17401742 }
17411743
17421744 type alias SelfClass =
@@ -1763,6 +1765,10 @@ type alias TypeClass =
17631765 { typeType : Int
17641766 }
17651767
1768+type alias Select =
1769+ { select : Int
1770+ }
1771+
17661772 type alias Self =
17671773 { self : Int
17681774 }
@@ -1891,6 +1897,10 @@ type alias TimeZone =
18911897 { timeZone : Int
18921898 }
18931899
1900+type alias ToDict =
1901+ { toDict : Int
1902+ }
1903+
18941904 type alias ToJSON =
18951905 { toJSON : Int
18961906 }
@@ -1987,17 +1997,11 @@ type alias UUID =
19871997 { uuid : Int
19881998 }
19891999
1990-type alias Var =
1991- { var : Int
1992- }
1993-
1994-type alias Virtual =
1995- { virtual : Int
1996- }
1997-
19982000 type alias Obj6 =
19992001 { dummy : Int
20002002 , obj6Where : Where
2003+ , var : Var
2004+ , virtual : Virtual
20012005 , void : Void
20022006 , volatile : Volatile
20032007 , wcharT : WcharT
@@ -2015,6 +2019,14 @@ type alias Where =
20152019 { whereWhere : Int
20162020 }
20172021
2022+type alias Var =
2023+ { var : Int
2024+ }
2025+
2026+type alias Virtual =
2027+ { virtual : Int
2028+ }
2029+
20182030 type alias Void =
20192031 { void : Int
20202032 }
@@ -2992,13 +3004,13 @@ obj2 =
29923004 |> Jpipe.required "FormatException" formatException
29933005 |> Jpipe.required "friend" friend
29943006 |> Jpipe.required "from" from
3007+ |> Jpipe.required "from_dict" fromDict
29953008 |> Jpipe.required "from_json" fromJSON
29963009 |> Jpipe.required "func" func
29973010 |> Jpipe.required "function" function
29983011 |> Jpipe.required "get" get
29993012 |> Jpipe.required "global" global
30003013 |> Jpipe.required "go" go
3001- |> Jpipe.required "goto" goto
30023014 |> Jpipe.required "Decoder" purpleDecoder
30033015 |> Jpipe.required "else" purpleElse
30043016 |> Jpipe.required "exposing" purpleExposing
@@ -3061,13 +3073,13 @@ encodeObj2 x =
30613073 , ("FormatException", encodeFormatException x.formatException)
30623074 , ("friend", encodeFriend x.friend)
30633075 , ("from", encodeFrom x.from)
3076+ , ("from_dict", encodeFromDict x.fromDict)
30643077 , ("from_json", encodeFromJSON x.fromJSON)
30653078 , ("func", encodeFunc x.func)
30663079 , ("function", encodeFunction x.function)
30673080 , ("get", encodeGet x.get)
30683081 , ("global", encodeGlobal x.global)
30693082 , ("go", encodeGo x.go)
3070- , ("goto", encodeGoto x.goto)
30713083 , ("Decoder", encodeDecoder x.obj2Decoder)
30723084 , ("else", encodeElse x.obj2Else)
30733085 , ("exposing", encodeExposing x.obj2Exposing)
@@ -3662,6 +3674,17 @@ encodeFrom x =
36623674 [ ("from", Jenc.int x.from)
36633675 ]
36643676
3677+fromDict : Jdec.Decoder FromDict
3678+fromDict =
3679+ Jdec.succeed FromDict
3680+ |> Jpipe.required "from_dict" Jdec.int
3681+
3682+encodeFromDict : FromDict -> Jenc.Value
3683+encodeFromDict x =
3684+ Jenc.object
3685+ [ ("from_dict", Jenc.int x.fromDict)
3686+ ]
3687+
36653688 fromJSON : Jdec.Decoder FromJSON
36663689 fromJSON =
36673690 Jdec.succeed FromJSON
@@ -3728,17 +3751,6 @@ encodeGo x =
37283751 [ ("go", Jenc.int x.go)
37293752 ]
37303753
3731-goto : Jdec.Decoder Goto
3732-goto =
3733- Jdec.succeed Goto
3734- |> Jpipe.required "goto" Jdec.int
3735-
3736-encodeGoto : Goto -> Jenc.Value
3737-encodeGoto x =
3738- Jenc.object
3739- [ ("goto", Jenc.int x.goto)
3740- ]
3741-
37423754 purpleDecoder : Jdec.Decoder Decoder
37433755 purpleDecoder =
37443756 Jdec.succeed Decoder
@@ -3798,6 +3810,7 @@ obj3 : Jdec.Decoder Obj3
37983810 obj3 =
37993811 Jdec.succeed Obj3
38003812 |> Jpipe.required "dummy" Jdec.int
3813+ |> Jpipe.required "goto" goto
38013814 |> Jpipe.required "guard" guard
38023815 |> Jpipe.required "hasOwnProperty" hasOwnProperty
38033816 |> Jpipe.required "hashCode" hashCode
@@ -3854,7 +3867,6 @@ obj3 =
38543867 |> Jpipe.required "newtonsoft" newtonsoft
38553868 |> Jpipe.required "nil" nil
38563869 |> Jpipe.required "NO" no
3857- |> Jpipe.required "noexcept" noexcept
38583870 |> Jpipe.required "if" purpleIf
38593871 |> Jpipe.required "import" purpleImport
38603872 |> Jpipe.required "in" purpleIn
@@ -3867,6 +3879,7 @@ encodeObj3 : Obj3 -> Jenc.Value
38673879 encodeObj3 x =
38683880 Jenc.object
38693881 [ ("dummy", Jenc.int x.dummy)
3882+ , ("goto", encodeGoto x.goto)
38703883 , ("guard", encodeGuard x.guard)
38713884 , ("hasOwnProperty", encodeHasOwnProperty x.hasOwnProperty)
38723885 , ("hashCode", encodeHashCode x.hashCode)
@@ -3923,7 +3936,6 @@ encodeObj3 x =
39233936 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
39243937 , ("nil", encodeNil x.nil)
39253938 , ("NO", encodeNo x.no)
3926- , ("noexcept", encodeNoexcept x.noexcept)
39273939 , ("if", encodeIf x.obj3If)
39283940 , ("import", encodeImport x.obj3Import)
39293941 , ("in", encodeIn x.obj3In)
@@ -3933,6 +3945,17 @@ encodeObj3 x =
39333945 , ("module", encodeModule x.obj3Module)
39343946 ]
39353947
3948+goto : Jdec.Decoder Goto
3949+goto =
3950+ Jdec.succeed Goto
3951+ |> Jpipe.required "goto" Jdec.int
3952+
3953+encodeGoto : Goto -> Jenc.Value
3954+encodeGoto x =
3955+ Jenc.object
3956+ [ ("goto", Jenc.int x.goto)
3957+ ]
3958+
39363959 guard : Jdec.Decoder Guard
39373960 guard =
39383961 Jdec.succeed Guard
@@ -4549,17 +4572,6 @@ encodeNo x =
45494572 [ ("NO", Jenc.int x.no)
45504573 ]
45514574
4552-noexcept : Jdec.Decoder Noexcept
4553-noexcept =
4554- Jdec.succeed Noexcept
4555- |> Jpipe.required "noexcept" Jdec.int
4556-
4557-encodeNoexcept : Noexcept -> Jenc.Value
4558-encodeNoexcept x =
4559- Jenc.object
4560- [ ("noexcept", Jenc.int x.noexcept)
4561- ]
4562-
45634575 purpleIf : Jdec.Decoder If
45644576 purpleIf =
45654577 Jdec.succeed If
@@ -4642,6 +4654,7 @@ obj4 =
46424654 Jdec.succeed Obj4
46434655 |> Jpipe.required "dummy" Jdec.int
46444656 |> Jpipe.required "noSuchMethod" noSuchMethod
4657+ |> Jpipe.required "noexcept" noexcept
46454658 |> Jpipe.required "nonatomic" nonatomic
46464659 |> Jpipe.required "None" none
46474660 |> Jpipe.required "nonlocal" nonlocal
@@ -4704,13 +4717,13 @@ obj4 =
47044717 |> Jpipe.required "sbyte" sbyte
47054718 |> Jpipe.required "sealed" sealed
47064719 |> Jpipe.required "SEL" sel
4707- |> Jpipe.required "select" select
47084720
47094721 encodeObj4 : Obj4 -> Jenc.Value
47104722 encodeObj4 x =
47114723 Jenc.object
47124724 [ ("dummy", Jenc.int x.dummy)
47134725 , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
4726+ , ("noexcept", encodeNoexcept x.noexcept)
47144727 , ("nonatomic", encodeNonatomic x.nonatomic)
47154728 , ("None", encodeNone x.none)
47164729 , ("nonlocal", encodeNonlocal x.nonlocal)
@@ -4773,7 +4786,6 @@ encodeObj4 x =
47734786 , ("sbyte", encodeSbyte x.sbyte)
47744787 , ("sealed", encodeSealed x.sealed)
47754788 , ("SEL", encodeSel x.sel)
4776- , ("select", encodeSelect x.select)
47774789 ]
47784790
47794791 noSuchMethod : Jdec.Decoder NoSuchMethod
@@ -4787,6 +4799,17 @@ encodeNoSuchMethod x =
47874799 [ ("noSuchMethod", Jenc.int x.noSuchMethod)
47884800 ]
47894801
4802+noexcept : Jdec.Decoder Noexcept
4803+noexcept =
4804+ Jdec.succeed Noexcept
4805+ |> Jpipe.required "noexcept" Jdec.int
4806+
4807+encodeNoexcept : Noexcept -> Jenc.Value
4808+encodeNoexcept x =
4809+ Jenc.object
4810+ [ ("noexcept", Jenc.int x.noexcept)
4811+ ]
4812+
47904813 nonatomic : Jdec.Decoder Nonatomic
47914814 nonatomic =
47924815 Jdec.succeed Nonatomic
@@ -5469,17 +5492,6 @@ encodeSel x =
54695492 [ ("SEL", Jenc.int x.sel)
54705493 ]
54715494
5472-select : Jdec.Decoder Select
5473-select =
5474- Jdec.succeed Select
5475- |> Jpipe.required "select" Jdec.int
5476-
5477-encodeSelect : Select -> Jenc.Value
5478-encodeSelect x =
5479- Jenc.object
5480- [ ("select", Jenc.int x.select)
5481- ]
5482-
54835495 obj5 : Jdec.Decoder Obj5
54845496 obj5 =
54855497 Jdec.succeed Obj5
@@ -5490,6 +5502,7 @@ obj5 =
54905502 |> Jpipe.required "true" obj5True
54915503 |> Jpipe.required "Type" purpleType
54925504 |> Jpipe.required "type" typeClass
5505+ |> Jpipe.required "select" select
54935506 |> Jpipe.required "Self" self
54945507 |> Jpipe.required "Sendable" sendable
54955508 |> Jpipe.required "serialize" serialize
@@ -5522,6 +5535,7 @@ obj5 =
55225535 |> Jpipe.required "TimeOnly" timeOnly
55235536 |> Jpipe.required "TimeOnlyConverter" timeOnlyConverter
55245537 |> Jpipe.required "TimeZone" timeZone
5538+ |> Jpipe.required "to_dict" toDict
55255539 |> Jpipe.required "to_json" toJSON
55265540 |> Jpipe.required "toString" toString
55275541 |> Jpipe.required "top_level" topLevel
@@ -5546,8 +5560,6 @@ obj5 =
55465560 |> Jpipe.required "Utf8JsonReader" utf8JSONReader
55475561 |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
55485562 |> Jpipe.required "UUID" uuid
5549- |> Jpipe.required "var" var
5550- |> Jpipe.required "virtual" virtual
55515563
55525564 encodeObj5 : Obj5 -> Jenc.Value
55535565 encodeObj5 x =
@@ -5559,6 +5571,7 @@ encodeObj5 x =
55595571 , ("true", encodeObj5True x.obj5True)
55605572 , ("Type", encodeType x.obj5Type)
55615573 , ("type", encodeTypeClass x.purpleType)
5574+ , ("select", encodeSelect x.select)
55625575 , ("Self", encodeSelf x.self)
55635576 , ("Sendable", encodeSendable x.sendable)
55645577 , ("serialize", encodeSerialize x.serialize)
@@ -5591,6 +5604,7 @@ encodeObj5 x =
55915604 , ("TimeOnly", encodeTimeOnly x.timeOnly)
55925605 , ("TimeOnlyConverter", encodeTimeOnlyConverter x.timeOnlyConverter)
55935606 , ("TimeZone", encodeTimeZone x.timeZone)
5607+ , ("to_dict", encodeToDict x.toDict)
55945608 , ("to_json", encodeToJSON x.toJSON)
55955609 , ("toString", encodeToString x.toString)
55965610 , ("top_level", encodeTopLevel x.topLevel)
@@ -5615,8 +5629,6 @@ encodeObj5 x =
56155629 , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
56165630 , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
56175631 , ("UUID", encodeUUID x.uuid)
5618- , ("var", encodeVar x.var)
5619- , ("virtual", encodeVirtual x.virtual)
56205632 ]
56215633
56225634 selfClass : Jdec.Decoder SelfClass
@@ -5685,6 +5697,17 @@ encodeTypeClass x =
56855697 [ ("type", Jenc.int x.typeType)
56865698 ]
56875699
5700+select : Jdec.Decoder Select
5701+select =
5702+ Jdec.succeed Select
5703+ |> Jpipe.required "select" Jdec.int
5704+
5705+encodeSelect : Select -> Jenc.Value
5706+encodeSelect x =
5707+ Jenc.object
5708+ [ ("select", Jenc.int x.select)
5709+ ]
5710+
56885711 self : Jdec.Decoder Self
56895712 self =
56905713 Jdec.succeed Self
@@ -6037,6 +6060,17 @@ encodeTimeZone x =
60376060 [ ("TimeZone", Jenc.int x.timeZone)
60386061 ]
60396062
6063+toDict : Jdec.Decoder ToDict
6064+toDict =
6065+ Jdec.succeed ToDict
6066+ |> Jpipe.required "to_dict" Jdec.int
6067+
6068+encodeToDict : ToDict -> Jenc.Value
6069+encodeToDict x =
6070+ Jenc.object
6071+ [ ("to_dict", Jenc.int x.toDict)
6072+ ]
6073+
60406074 toJSON : Jdec.Decoder ToJSON
60416075 toJSON =
60426076 Jdec.succeed ToJSON
@@ -6301,33 +6335,13 @@ encodeUUID x =
63016335 [ ("UUID", Jenc.int x.uuid)
63026336 ]
63036337
6304-var : Jdec.Decoder Var
6305-var =
6306- Jdec.succeed Var
6307- |> Jpipe.required "var" Jdec.int
6308-
6309-encodeVar : Var -> Jenc.Value
6310-encodeVar x =
6311- Jenc.object
6312- [ ("var", Jenc.int x.var)
6313- ]
6314-
6315-virtual : Jdec.Decoder Virtual
6316-virtual =
6317- Jdec.succeed Virtual
6318- |> Jpipe.required "virtual" Jdec.int
6319-
6320-encodeVirtual : Virtual -> Jenc.Value
6321-encodeVirtual x =
6322- Jenc.object
6323- [ ("virtual", Jenc.int x.virtual)
6324- ]
6325-
63266338 obj6 : Jdec.Decoder Obj6
63276339 obj6 =
63286340 Jdec.succeed Obj6
63296341 |> Jpipe.required "dummy" Jdec.int
63306342 |> Jpipe.required "where" purpleWhere
6343+ |> Jpipe.required "var" var
6344+ |> Jpipe.required "virtual" virtual
63316345 |> Jpipe.required "void" void
63326346 |> Jpipe.required "volatile" volatile
63336347 |> Jpipe.required "wchar_t" wcharT
@@ -6345,6 +6359,8 @@ encodeObj6 x =
63456359 Jenc.object
63466360 [ ("dummy", Jenc.int x.dummy)
63476361 , ("where", encodeWhere x.obj6Where)
6362+ , ("var", encodeVar x.var)
6363+ , ("virtual", encodeVirtual x.virtual)
63486364 , ("void", encodeVoid x.void)
63496365 , ("volatile", encodeVolatile x.volatile)
63506366 , ("wchar_t", encodeWcharT x.wcharT)
@@ -6369,6 +6385,28 @@ encodeWhere x =
63696385 [ ("where", Jenc.int x.whereWhere)
63706386 ]
63716387
6388+var : Jdec.Decoder Var
6389+var =
6390+ Jdec.succeed Var
6391+ |> Jpipe.required "var" Jdec.int
6392+
6393+encodeVar : Var -> Jenc.Value
6394+encodeVar x =
6395+ Jenc.object
6396+ [ ("var", Jenc.int x.var)
6397+ ]
6398+
6399+virtual : Jdec.Decoder Virtual
6400+virtual =
6401+ Jdec.succeed Virtual
6402+ |> Jpipe.required "virtual" Jdec.int
6403+
6404+encodeVirtual : Virtual -> Jenc.Value
6405+encodeVirtual x =
6406+ Jenc.object
6407+ [ ("virtual", Jenc.int x.virtual)
6408+ ]
6409+
63726410 void : Jdec.Decoder Void
63736411 void =
63746412 Jdec.succeed Void
Mflowdefault / TopLevel.js+63 −45
@@ -402,13 +402,13 @@ export type Obj2 = {
402402 foreach: Foreach;
403403 friend: Friend;
404404 from: From;
405+ from_dict: FromDict;
405406 from_json: FromJSON;
406407 func: Func;
407408 function: Function;
408409 get: Get;
409410 global: Global;
410411 go: Go;
411- goto: Goto;
412412 };
413413
414414 export type DateFormatter = {
@@ -643,6 +643,10 @@ export type From = {
643643 from: number;
644644 };
645645
646+export type FromDict = {
647+ from_dict: number;
648+};
649+
646650 export type FromJSON = {
647651 from_json: number;
648652 };
@@ -667,10 +671,6 @@ export type Go = {
667671 go: number;
668672 };
669673
670-export type Goto = {
671- goto: number;
672-};
673-
674674 export type Obj3 = {
675675 Hashable: Hashable;
676676 Hasher: Hasher;
@@ -691,6 +691,7 @@ export type Obj3 = {
691691 MapEntry: MapEntry;
692692 NO: No;
693693 dummy: number;
694+ goto: Goto;
694695 guard: Guard;
695696 hasOwnProperty: HasOwnProperty;
696697 hashCode: HashCode;
@@ -736,7 +737,6 @@ export type Obj3 = {
736737 new: New;
737738 newtonsoft: Newtonsoft;
738739 nil: Nil;
739- noexcept: Noexcept;
740740 };
741741
742742 export type Hashable = {
@@ -811,6 +811,10 @@ export type No = {
811811 NO: number;
812812 };
813813
814+export type Goto = {
815+ goto: number;
816+};
817+
814818 export type Guard = {
815819 guard: number;
816820 };
@@ -991,10 +995,6 @@ export type Nil = {
991995 nil: number;
992996 };
993997
994-export type Noexcept = {
995- noexcept: number;
996-};
997-
998998 export type Obj4 = {
999999 NSError: NSError;
10001000 NSObject: NSObject;
@@ -1007,6 +1007,7 @@ export type Obj4 = {
10071007 SEL: Sel;
10081008 dummy: number;
10091009 noSuchMethod: NoSuchMethod;
1010+ noexcept: Noexcept;
10101011 nonatomic: Nonatomic;
10111012 none: NoneClass;
10121013 nonlocal: Nonlocal;
@@ -1060,7 +1061,6 @@ export type Obj4 = {
10601061 s: S;
10611062 sbyte: Sbyte;
10621063 sealed: Sealed;
1063- select: Select;
10641064 };
10651065
10661066 export type NSError = {
@@ -1103,6 +1103,10 @@ export type NoSuchMethod = {
11031103 noSuchMethod: number;
11041104 };
11051105
1106+export type Noexcept = {
1107+ noexcept: number;
1108+};
1109+
11061110 export type Nonatomic = {
11071111 nonatomic: number;
11081112 };
@@ -1315,10 +1319,6 @@ export type Sealed = {
13151319 sealed: number;
13161320 };
13171321
1318-export type Select = {
1319- select: number;
1320-};
1321-
13221322 export type Obj5 = {
13231323 Self: Self;
13241324 Sendable: Sendable;
@@ -1336,6 +1336,7 @@ export type Obj5 = {
13361336 Utf8JsonReader: Utf8JSONReader;
13371337 Utf8JsonWriter: Utf8JSONWriter;
13381338 dummy: number;
1339+ select: Select;
13391340 self: SelfClass;
13401341 serialize: Serialize;
13411342 set: Set;
@@ -1362,6 +1363,7 @@ export type Obj5 = {
13621363 throw: Throw;
13631364 throws: Throws;
13641365 toString: ToString;
1366+ to_dict: ToDict;
13651367 to_json: ToJSON;
13661368 top_level: TopLevelClass;
13671369 transient: Transient;
@@ -1383,8 +1385,6 @@ export type Obj5 = {
13831385 unsigned: Unsigned;
13841386 ushort: Ushort;
13851387 using: Using;
1386- var: Var;
1387- virtual: Virtual;
13881388 };
13891389
13901390 export type Self = {
@@ -1447,6 +1447,10 @@ export type Utf8JSONWriter = {
14471447 Utf8JsonWriter: number;
14481448 };
14491449
1450+export type Select = {
1451+ select: number;
1452+};
1453+
14501454 export type SelfClass = {
14511455 self: number;
14521456 };
@@ -1551,6 +1555,10 @@ export type ToString = {
15511555 toString: number;
15521556 };
15531557
1558+export type ToDict = {
1559+ to_dict: number;
1560+};
1561+
15541562 export type ToJSON = {
15551563 to_json: number;
15561564 };
@@ -1635,17 +1643,11 @@ export type Using = {
16351643 using: number;
16361644 };
16371645
1638-export type Var = {
1639- var: number;
1640-};
1641-
1642-export type Virtual = {
1643- virtual: number;
1644-};
1645-
16461646 export type Obj6 = {
16471647 YES: Yes;
16481648 dummy: number;
1649+ var: Var;
1650+ virtual: Virtual;
16491651 void: Void;
16501652 volatile: Volatile;
16511653 wchar_t: WcharT;
@@ -1663,6 +1665,14 @@ export type Yes = {
16631665 YES: number;
16641666 };
16651667
1668+export type Var = {
1669+ var: number;
1670+};
1671+
1672+export type Virtual = {
1673+ virtual: number;
1674+};
1675+
16661676 export type Void = {
16671677 void: number;
16681678 };
@@ -2220,13 +2230,13 @@ const typeMap: any = {
22202230 { json: "foreach", js: "foreach", typ: r("Foreach") },
22212231 { json: "friend", js: "friend", typ: r("Friend") },
22222232 { json: "from", js: "from", typ: r("From") },
2233+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22232234 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22242235 { json: "func", js: "func", typ: r("Func") },
22252236 { json: "function", js: "function", typ: r("Function") },
22262237 { json: "get", js: "get", typ: r("Get") },
22272238 { json: "global", js: "global", typ: r("Global") },
22282239 { json: "go", js: "go", typ: r("Go") },
2229- { json: "goto", js: "goto", typ: r("Goto") },
22302240 ], false),
22312241 "DateFormatter": o([
22322242 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2399,6 +2409,9 @@ const typeMap: any = {
23992409 "From": o([
24002410 { json: "from", js: "from", typ: i(0) },
24012411 ], false),
2412+ "FromDict": o([
2413+ { json: "from_dict", js: "from_dict", typ: i(0) },
2414+ ], false),
24022415 "FromJSON": o([
24032416 { json: "from_json", js: "from_json", typ: i(0) },
24042417 ], false),
@@ -2417,9 +2430,6 @@ const typeMap: any = {
24172430 "Go": o([
24182431 { json: "go", js: "go", typ: i(0) },
24192432 ], false),
2420- "Goto": o([
2421- { json: "goto", js: "goto", typ: i(0) },
2422- ], false),
24232433 "Obj3": o([
24242434 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24252435 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2440,6 +2450,7 @@ const typeMap: any = {
24402450 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24412451 { json: "NO", js: "NO", typ: r("No") },
24422452 { json: "dummy", js: "dummy", typ: i(0) },
2453+ { json: "goto", js: "goto", typ: r("Goto") },
24432454 { json: "guard", js: "guard", typ: r("Guard") },
24442455 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24452456 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2485,7 +2496,6 @@ const typeMap: any = {
24852496 { json: "new", js: "new", typ: r("New") },
24862497 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24872498 { json: "nil", js: "nil", typ: r("Nil") },
2488- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24892499 ], false),
24902500 "Hashable": o([
24912501 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2541,6 +2551,9 @@ const typeMap: any = {
25412551 "No": o([
25422552 { json: "NO", js: "NO", typ: i(0) },
25432553 ], false),
2554+ "Goto": o([
2555+ { json: "goto", js: "goto", typ: i(0) },
2556+ ], false),
25442557 "Guard": o([
25452558 { json: "guard", js: "guard", typ: i(0) },
25462559 ], false),
@@ -2676,9 +2689,6 @@ const typeMap: any = {
26762689 "Nil": o([
26772690 { json: "nil", js: "nil", typ: i(0) },
26782691 ], false),
2679- "Noexcept": o([
2680- { json: "noexcept", js: "noexcept", typ: i(0) },
2681- ], false),
26822692 "Obj4": o([
26832693 { json: "NSError", js: "NSError", typ: r("NSError") },
26842694 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2691,6 +2701,7 @@ const typeMap: any = {
26912701 { json: "SEL", js: "SEL", typ: r("Sel") },
26922702 { json: "dummy", js: "dummy", typ: i(0) },
26932703 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2704+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26942705 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26952706 { json: "none", js: "none", typ: r("NoneClass") },
26962707 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2744,7 +2755,6 @@ const typeMap: any = {
27442755 { json: "s", js: "s", typ: r("S") },
27452756 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27462757 { json: "sealed", js: "sealed", typ: r("Sealed") },
2747- { json: "select", js: "select", typ: r("Select") },
27482758 ], false),
27492759 "NSError": o([
27502760 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2776,6 +2786,9 @@ const typeMap: any = {
27762786 "NoSuchMethod": o([
27772787 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27782788 ], false),
2789+ "Noexcept": o([
2790+ { json: "noexcept", js: "noexcept", typ: i(0) },
2791+ ], false),
27792792 "Nonatomic": o([
27802793 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27812794 ], false),
@@ -2935,9 +2948,6 @@ const typeMap: any = {
29352948 "Sealed": o([
29362949 { json: "sealed", js: "sealed", typ: i(0) },
29372950 ], false),
2938- "Select": o([
2939- { json: "select", js: "select", typ: i(0) },
2940- ], false),
29412951 "Obj5": o([
29422952 { json: "Self", js: "Self", typ: r("Self") },
29432953 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
@@ -2955,6 +2965,7 @@ const typeMap: any = {
29552965 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29562966 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29572967 { json: "dummy", js: "dummy", typ: i(0) },
2968+ { json: "select", js: "select", typ: r("Select") },
29582969 { json: "self", js: "self", typ: r("SelfClass") },
29592970 { json: "serialize", js: "serialize", typ: r("Serialize") },
29602971 { json: "set", js: "set", typ: r("Set") },
@@ -2981,6 +2992,7 @@ const typeMap: any = {
29812992 { json: "throw", js: "throw", typ: r("Throw") },
29822993 { json: "throws", js: "throws", typ: r("Throws") },
29832994 { json: "toString", js: "toString", typ: r("ToString") },
2995+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
29842996 { json: "to_json", js: "to_json", typ: r("ToJSON") },
29852997 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
29862998 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3002,8 +3014,6 @@ const typeMap: any = {
30023014 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30033015 { json: "ushort", js: "ushort", typ: r("Ushort") },
30043016 { json: "using", js: "using", typ: r("Using") },
3005- { json: "var", js: "var", typ: r("Var") },
3006- { json: "virtual", js: "virtual", typ: r("Virtual") },
30073017 ], false),
30083018 "Self": o([
30093019 { json: "Self", js: "Self", typ: i(0) },
@@ -3050,6 +3060,9 @@ const typeMap: any = {
30503060 "Utf8JSONWriter": o([
30513061 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30523062 ], false),
3063+ "Select": o([
3064+ { json: "select", js: "select", typ: i(0) },
3065+ ], false),
30533066 "SelfClass": o([
30543067 { json: "self", js: "self", typ: i(0) },
30553068 ], false),
@@ -3128,6 +3141,9 @@ const typeMap: any = {
31283141 "ToString": o([
31293142 { json: "toString", js: "toString", typ: i(0) },
31303143 ], false),
3144+ "ToDict": o([
3145+ { json: "to_dict", js: "to_dict", typ: i(0) },
3146+ ], false),
31313147 "ToJSON": o([
31323148 { json: "to_json", js: "to_json", typ: i(0) },
31333149 ], false),
@@ -3191,15 +3207,11 @@ const typeMap: any = {
31913207 "Using": o([
31923208 { json: "using", js: "using", typ: i(0) },
31933209 ], false),
3194- "Var": o([
3195- { json: "var", js: "var", typ: i(0) },
3196- ], false),
3197- "Virtual": o([
3198- { json: "virtual", js: "virtual", typ: i(0) },
3199- ], false),
32003210 "Obj6": o([
32013211 { json: "YES", js: "YES", typ: r("Yes") },
32023212 { json: "dummy", js: "dummy", typ: i(0) },
3213+ { json: "var", js: "var", typ: r("Var") },
3214+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32033215 { json: "void", js: "void", typ: r("Void") },
32043216 { json: "volatile", js: "volatile", typ: r("Volatile") },
32053217 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3215,6 +3227,12 @@ const typeMap: any = {
32153227 "Yes": o([
32163228 { json: "YES", js: "YES", typ: i(0) },
32173229 ], false),
3230+ "Var": o([
3231+ { json: "var", js: "var", typ: i(0) },
3232+ ], false),
3233+ "Virtual": o([
3234+ { json: "virtual", js: "virtual", typ: i(0) },
3235+ ], false),
32183236 "Void": o([
32193237 { json: "void", js: "void", typ: i(0) },
32203238 ], false),
Mgolangdefault / quicktype.go+35 −25
@@ -412,13 +412,13 @@ type Obj2 struct {
412412 FormatException FormatException `json:"FormatException"`
413413 Friend Friend `json:"friend"`
414414 From From `json:"from"`
415+ FromDict FromDict `json:"from_dict"`
415416 FromJSON FromJSON `json:"from_json"`
416417 Func Func `json:"func"`
417418 Function Function `json:"function"`
418419 Get Get `json:"get"`
419420 Global Global `json:"global"`
420421 Go Go `json:"go"`
421- Goto Goto `json:"goto"`
422422 Obj2False FalseClass `json:"false"`
423423 }
424424
@@ -646,6 +646,10 @@ type From struct {
646646 From int64 `json:"from"`
647647 }
648648
649+type FromDict struct {
650+ FromDict int64 `json:"from_dict"`
651+}
652+
649653 type FromJSON struct {
650654 FromJSON int64 `json:"from_json"`
651655 }
@@ -670,16 +674,13 @@ type Go struct {
670674 Go int64 `json:"go"`
671675 }
672676
673-type Goto struct {
674- Goto int64 `json:"goto"`
675-}
676-
677677 type FalseClass struct {
678678 False int64 `json:"false"`
679679 }
680680
681681 type Obj3 struct {
682682 Dummy int64 `json:"dummy"`
683+ Goto Goto `json:"goto"`
683684 Guard Guard `json:"guard"`
684685 HasOwnProperty HasOwnProperty `json:"hasOwnProperty"`
685686 HashCode HashCode `json:"hashCode"`
@@ -743,7 +744,10 @@ type Obj3 struct {
743744 Newtonsoft Newtonsoft `json:"newtonsoft"`
744745 Nil Nil `json:"nil"`
745746 No No `json:"NO"`
746- Noexcept Noexcept `json:"noexcept"`
747+}
748+
749+type Goto struct {
750+ Goto int64 `json:"goto"`
747751 }
748752
749753 type Guard struct {
@@ -998,16 +1002,13 @@ type No struct {
9981002 No int64 `json:"NO"`
9991003 }
10001004
1001-type Noexcept struct {
1002- Noexcept int64 `json:"noexcept"`
1003-}
1004-
10051005 type Obj4 struct {
10061006 Dummy int64 `json:"dummy"`
10071007 NSError NSError `json:"NSError"`
10081008 NSObject NSObject `json:"NSObject"`
10091009 NSString NSString `json:"NSString"`
10101010 NoSuchMethod NoSuchMethod `json:"noSuchMethod"`
1011+ Noexcept Noexcept `json:"noexcept"`
10111012 Nonatomic Nonatomic `json:"nonatomic"`
10121013 None None `json:"None"`
10131014 Nonlocal Nonlocal `json:"nonlocal"`
@@ -1067,7 +1068,6 @@ type Obj4 struct {
10671068 Sbyte Sbyte `json:"sbyte"`
10681069 Sealed Sealed `json:"sealed"`
10691070 Sel Sel `json:"SEL"`
1070- Select Select `json:"select"`
10711071 }
10721072
10731073 type NSError struct {
@@ -1086,6 +1086,10 @@ type NoSuchMethod struct {
10861086 NoSuchMethod int64 `json:"noSuchMethod"`
10871087 }
10881088
1089+type Noexcept struct {
1090+ Noexcept int64 `json:"noexcept"`
1091+}
1092+
10891093 type Nonatomic struct {
10901094 Nonatomic int64 `json:"nonatomic"`
10911095 }
@@ -1322,15 +1326,12 @@ type Sel struct {
13221326 Sel int64 `json:"SEL"`
13231327 }
13241328
1325-type Select struct {
1326- Select int64 `json:"select"`
1327-}
1328-
13291329 type Obj5 struct {
13301330 Dummy int64 `json:"dummy"`
13311331 Obj5Self SelfClass `json:"self"`
13321332 Obj5True TrueClass `json:"true"`
13331333 Obj5Type TypeClass `json:"type"`
1334+ Select Select `json:"select"`
13341335 Self Self `json:"Self"`
13351336 Sendable Sendable `json:"Sendable"`
13361337 Serialize Serialize `json:"serialize"`
@@ -1365,6 +1366,7 @@ type Obj5 struct {
13651366 TimeOnly TimeOnly `json:"TimeOnly"`
13661367 TimeOnlyConverter TimeOnlyConverter `json:"TimeOnlyConverter"`
13671368 TimeZone TimeZone `json:"TimeZone"`
1369+ ToDict ToDict `json:"to_dict"`
13681370 ToJSON ToJSON `json:"to_json"`
13691371 ToString ToString `json:"toString"`
13701372 TopLevel TopLevelClass `json:"top_level"`
@@ -1390,8 +1392,6 @@ type Obj5 struct {
13901392 Using Using `json:"using"`
13911393 Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
13921394 Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
1393- Var Var `json:"var"`
1394- Virtual Virtual `json:"virtual"`
13951395 }
13961396
13971397 type SelfClass struct {
@@ -1406,6 +1406,10 @@ type TypeClass struct {
14061406 Type int64 `json:"type"`
14071407 }
14081408
1409+type Select struct {
1410+ Select int64 `json:"select"`
1411+}
1412+
14091413 type Self struct {
14101414 Self int64 `json:"Self"`
14111415 }
@@ -1542,6 +1546,10 @@ type TimeZone struct {
15421546 TimeZone int64 `json:"TimeZone"`
15431547 }
15441548
1549+type ToDict struct {
1550+ ToDict int64 `json:"to_dict"`
1551+}
1552+
15451553 type ToJSON struct {
15461554 ToJSON int64 `json:"to_json"`
15471555 }
@@ -1642,16 +1650,10 @@ type Utf8JSONWriter struct {
16421650 Utf8JSONWriter int64 `json:"Utf8JsonWriter"`
16431651 }
16441652
1645-type Var struct {
1646- Var int64 `json:"var"`
1647-}
1648-
1649-type Virtual struct {
1650- Virtual int64 `json:"virtual"`
1651-}
1652-
16531653 type Obj6 struct {
16541654 Dummy int64 `json:"dummy"`
1655+ Var Var `json:"var"`
1656+ Virtual Virtual `json:"virtual"`
16551657 Void Void `json:"void"`
16561658 Volatile Volatile `json:"volatile"`
16571659 WcharT WcharT `json:"wchar_t"`
@@ -1666,6 +1668,14 @@ type Obj6 struct {
16661668 Yield Yield `json:"yield"`
16671669 }
16681670
1671+type Var struct {
1672+ Var int64 `json:"var"`
1673+}
1674+
1675+type Virtual struct {
1676+ Virtual int64 `json:"virtual"`
1677+}
1678+
16691679 type Void struct {
16701680 Void int64 `json:"void"`
16711681 }
Mhaskelldefault / QuickType.hs+131 −95
@@ -122,18 +122,19 @@ module QuickType
122122 , FormatException (..)
123123 , Friend (..)
124124 , From (..)
125+ , FromDict (..)
125126 , FromJSONClass (..)
126127 , Func (..)
127128 , Function (..)
128129 , Get (..)
129130 , Global (..)
130131 , Go (..)
131- , Goto (..)
132132 , Default (..)
133133 , Do (..)
134134 , Else (..)
135135 , Obj2False (..)
136136 , Obj3 (..)
137+ , Goto (..)
137138 , Guard (..)
138139 , HasOwnProperty (..)
139140 , HashCode (..)
@@ -190,7 +191,6 @@ module QuickType
190191 , Newtonsoft (..)
191192 , Nil (..)
192193 , No (..)
193- , Noexcept (..)
194194 , ID (..)
195195 , If (..)
196196 , Import (..)
@@ -200,6 +200,7 @@ module QuickType
200200 , Module (..)
201201 , Obj4 (..)
202202 , NoSuchMethod (..)
203+ , Noexcept (..)
203204 , Nonatomic (..)
204205 , None (..)
205206 , Nonlocal (..)
@@ -262,13 +263,13 @@ module QuickType
262263 , Sbyte (..)
263264 , Sealed (..)
264265 , Sel (..)
265- , Select (..)
266266 , Obj5 (..)
267267 , SelfClass (..)
268268 , Then (..)
269269 , Obj5True (..)
270270 , Type (..)
271271 , TypeClass (..)
272+ , Select (..)
272273 , Self (..)
273274 , Sendable (..)
274275 , Serialize (..)
@@ -302,6 +303,7 @@ module QuickType
302303 , TimeOnly (..)
303304 , TimeOnlyConverter (..)
304305 , TimeZone (..)
306+ , ToDict (..)
305307 , ToJSONClass (..)
306308 , ToString (..)
307309 , TopLevel (..)
@@ -326,10 +328,10 @@ module QuickType
326328 , Utf8JSONReader (..)
327329 , Utf8JSONWriter (..)
328330 , UUID (..)
329- , Var (..)
330- , Virtual (..)
331331 , Obj6 (..)
332332 , Where (..)
333+ , Var (..)
334+ , Virtual (..)
333335 , Void (..)
334336 , Volatile (..)
335337 , WcharT (..)
@@ -740,13 +742,13 @@ data Obj2 = Obj2
740742 , formatExceptionObj2 :: FormatException
741743 , friendObj2 :: Friend
742744 , fromObj2 :: From
745+ , fromDictObj2 :: FromDict
743746 , fromJSONObj2 :: FromJSONClass
744747 , funcObj2 :: Func
745748 , functionObj2 :: Function
746749 , getObj2 :: Get
747750 , globalObj2 :: Global
748751 , goObj2 :: Go
749- , gotoObj2 :: Goto
750752 , obj2DefaultObj2 :: Default
751753 , obj2DoObj2 :: Do
752754 , obj2ElseObj2 :: Else
@@ -970,6 +972,10 @@ data From = From
970972 { fromFrom :: Int
971973 } deriving (Show)
972974
975+data FromDict = FromDict
976+ { fromDictFromDict :: Int
977+ } deriving (Show)
978+
973979 data FromJSONClass = FromJSONClass
974980 { fromJSONFromJSONClass :: Int
975981 } deriving (Show)
@@ -994,10 +1000,6 @@ data Go = Go
9941000 { goGo :: Int
9951001 } deriving (Show)
9961002
997-data Goto = Goto
998- { gotoGoto :: Int
999- } deriving (Show)
1000-
10011003 data Default = Default
10021004 { defaultDefaultDefault :: Int
10031005 } deriving (Show)
@@ -1016,6 +1018,7 @@ data Obj2False = Obj2False
10161018
10171019 data Obj3 = Obj3
10181020 { dummyObj3 :: Int
1021+ , gotoObj3 :: Goto
10191022 , guardObj3 :: Guard
10201023 , hasOwnPropertyObj3 :: HasOwnProperty
10211024 , hashCodeObj3 :: HashCode
@@ -1072,7 +1075,6 @@ data Obj3 = Obj3
10721075 , newtonsoftObj3 :: Newtonsoft
10731076 , nilObj3 :: Nil
10741077 , noObj3 :: No
1075- , noexceptObj3 :: Noexcept
10761078 , obj3IDObj3 :: ID
10771079 , obj3IfObj3 :: If
10781080 , obj3ImportObj3 :: Import
@@ -1082,6 +1084,10 @@ data Obj3 = Obj3
10821084 , obj3ModuleObj3 :: Module
10831085 } deriving (Show)
10841086
1087+data Goto = Goto
1088+ { gotoGoto :: Int
1089+ } deriving (Show)
1090+
10851091 data Guard = Guard
10861092 { guardGuard :: Int
10871093 } deriving (Show)
@@ -1306,10 +1312,6 @@ data No = No
13061312 { noNo :: Int
13071313 } deriving (Show)
13081314
1309-data Noexcept = Noexcept
1310- { noexceptNoexcept :: Int
1311- } deriving (Show)
1312-
13131315 data ID = ID
13141316 { idIDID :: Int
13151317 } deriving (Show)
@@ -1341,6 +1343,7 @@ data Module = Module
13411343 data Obj4 = Obj4
13421344 { dummyObj4 :: Int
13431345 , noSuchMethodObj4 :: NoSuchMethod
1346+ , noexceptObj4 :: Noexcept
13441347 , nonatomicObj4 :: Nonatomic
13451348 , noneObj4 :: None
13461349 , nonlocalObj4 :: Nonlocal
@@ -1403,13 +1406,16 @@ data Obj4 = Obj4
14031406 , sbyteObj4 :: Sbyte
14041407 , sealedObj4 :: Sealed
14051408 , selObj4 :: Sel
1406- , selectObj4 :: Select
14071409 } deriving (Show)
14081410
14091411 data NoSuchMethod = NoSuchMethod
14101412 { noSuchMethodNoSuchMethod :: Int
14111413 } deriving (Show)
14121414
1415+data Noexcept = Noexcept
1416+ { noexceptNoexcept :: Int
1417+ } deriving (Show)
1418+
14131419 data Nonatomic = Nonatomic
14141420 { nonatomicNonatomic :: Int
14151421 } deriving (Show)
@@ -1658,10 +1664,6 @@ data Sel = Sel
16581664 { selSel :: Int
16591665 } deriving (Show)
16601666
1661-data Select = Select
1662- { selectSelect :: Int
1663- } deriving (Show)
1664-
16651667 data Obj5 = Obj5
16661668 { dummyObj5 :: Int
16671669 , obj5SelfObj5 :: SelfClass
@@ -1669,6 +1671,7 @@ data Obj5 = Obj5
16691671 , obj5TrueObj5 :: Obj5True
16701672 , obj5TypeObj5 :: Type
16711673 , purpleTypeObj5 :: TypeClass
1674+ , selectObj5 :: Select
16721675 , selfObj5 :: Self
16731676 , sendableObj5 :: Sendable
16741677 , serializeObj5 :: Serialize
@@ -1702,6 +1705,7 @@ data Obj5 = Obj5
17021705 , timeOnlyObj5 :: TimeOnly
17031706 , timeOnlyConverterObj5 :: TimeOnlyConverter
17041707 , timeZoneObj5 :: TimeZone
1708+ , toDictObj5 :: ToDict
17051709 , toJSONObj5 :: ToJSONClass
17061710 , toStringObj5 :: ToString
17071711 , topLevelObj5 :: TopLevel
@@ -1726,8 +1730,6 @@ data Obj5 = Obj5
17261730 , utf8JSONReaderObj5 :: Utf8JSONReader
17271731 , utf8JSONWriterObj5 :: Utf8JSONWriter
17281732 , uuidObj5 :: UUID
1729- , varObj5 :: Var
1730- , virtualObj5 :: Virtual
17311733 } deriving (Show)
17321734
17331735 data SelfClass = SelfClass
@@ -1750,6 +1752,10 @@ data TypeClass = TypeClass
17501752 { typeTypeTypeClass :: Int
17511753 } deriving (Show)
17521754
1755+data Select = Select
1756+ { selectSelect :: Int
1757+ } deriving (Show)
1758+
17531759 data Self = Self
17541760 { selfSelf :: Int
17551761 } deriving (Show)
@@ -1882,6 +1888,10 @@ data TimeZone = TimeZone
18821888 { timeZoneTimeZone :: Int
18831889 } deriving (Show)
18841890
1891+data ToDict = ToDict
1892+ { toDictToDict :: Int
1893+ } deriving (Show)
1894+
18851895 data ToJSONClass = ToJSONClass
18861896 { toJSONToJSONClass :: Int
18871897 } deriving (Show)
@@ -1978,17 +1988,11 @@ data UUID = UUID
19781988 { uuidUUID :: Int
19791989 } deriving (Show)
19801990
1981-data Var = Var
1982- { varVar :: Int
1983- } deriving (Show)
1984-
1985-data Virtual = Virtual
1986- { virtualVirtual :: Int
1987- } deriving (Show)
1988-
19891991 data Obj6 = Obj6
19901992 { dummyObj6 :: Int
19911993 , obj6WhereObj6 :: Where
1994+ , varObj6 :: Var
1995+ , virtualObj6 :: Virtual
19921996 , voidObj6 :: Void
19931997 , volatileObj6 :: Volatile
19941998 , wcharTObj6 :: WcharT
@@ -2006,6 +2010,14 @@ data Where = Where
20062010 { whereWhereWhere :: Int
20072011 } deriving (Show)
20082012
2013+data Var = Var
2014+ { varVar :: Int
2015+ } deriving (Show)
2016+
2017+data Virtual = Virtual
2018+ { virtualVirtual :: Int
2019+ } deriving (Show)
2020+
20092021 data Void = Void
20102022 { voidVoid :: Int
20112023 } deriving (Show)
@@ -2854,7 +2866,7 @@ instance FromJSON ClassClass where
28542866 <$> v .: "class"
28552867
28562868 instance ToJSON Obj2 where
2857- toJSON (Obj2 dateFormatterObj2 dateOnlyObj2 dateOnlyConverterObj2 dateParseHandlingObj2 dateTimeObj2 dateTimeStylesObj2 debuggerObj2 decimalObj2 declareObj2 decltypeObj2 decodeStringObj2 decoderObj2 decodingErrorObj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 encoderObj2 enumObj2 enumValuesObj2 equalityContractObj2 equatableObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 formatExceptionObj2 friendObj2 fromObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 gotoObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2) =
2869+ toJSON (Obj2 dateFormatterObj2 dateOnlyObj2 dateOnlyConverterObj2 dateParseHandlingObj2 dateTimeObj2 dateTimeStylesObj2 debuggerObj2 decimalObj2 declareObj2 decltypeObj2 decodeStringObj2 decoderObj2 decodingErrorObj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 encoderObj2 enumObj2 enumValuesObj2 equalityContractObj2 equatableObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 formatExceptionObj2 friendObj2 fromObj2 fromDictObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2) =
28582870 object $ foldMap (maybe [] pure)
28592871 [ Just $ "DateFormatter" .= dateFormatterObj2
28602872 , Just $ "DateOnly" .= dateOnlyObj2
@@ -2910,13 +2922,13 @@ instance ToJSON Obj2 where
29102922 , Just $ "FormatException" .= formatExceptionObj2
29112923 , Just $ "friend" .= friendObj2
29122924 , Just $ "from" .= fromObj2
2925+ , Just $ "from_dict" .= fromDictObj2
29132926 , Just $ "from_json" .= fromJSONObj2
29142927 , Just $ "func" .= funcObj2
29152928 , Just $ "function" .= functionObj2
29162929 , Just $ "get" .= getObj2
29172930 , Just $ "global" .= globalObj2
29182931 , Just $ "go" .= goObj2
2919- , Just $ "goto" .= gotoObj2
29202932 , Just $ "default" .= obj2DefaultObj2
29212933 , Just $ "do" .= obj2DoObj2
29222934 , Just $ "else" .= obj2ElseObj2
@@ -2979,13 +2991,13 @@ instance FromJSON Obj2 where
29792991 <*> v .: "FormatException"
29802992 <*> v .: "friend"
29812993 <*> v .: "from"
2994+ <*> v .: "from_dict"
29822995 <*> v .: "from_json"
29832996 <*> v .: "func"
29842997 <*> v .: "function"
29852998 <*> v .: "get"
29862999 <*> v .: "global"
29873000 <*> v .: "go"
2988- <*> v .: "goto"
29893001 <*> v .: "default"
29903002 <*> v .: "do"
29913003 <*> v .: "else"
@@ -3531,6 +3543,16 @@ instance FromJSON From where
35313543 parseJSON (Object v) = From
35323544 <$> v .: "from"
35333545
3546+instance ToJSON FromDict where
3547+ toJSON (FromDict fromDictFromDict) =
3548+ object $ foldMap (maybe [] pure)
3549+ [ Just $ "from_dict" .= fromDictFromDict
3550+ ]
3551+
3552+instance FromJSON FromDict where
3553+ parseJSON (Object v) = FromDict
3554+ <$> v .: "from_dict"
3555+
35343556 instance ToJSON FromJSONClass where
35353557 toJSON (FromJSONClass fromJSONFromJSONClass) =
35363558 object $ foldMap (maybe [] pure)
@@ -3591,16 +3613,6 @@ instance FromJSON Go where
35913613 parseJSON (Object v) = Go
35923614 <$> v .: "go"
35933615
3594-instance ToJSON Goto where
3595- toJSON (Goto gotoGoto) =
3596- object $ foldMap (maybe [] pure)
3597- [ Just $ "goto" .= gotoGoto
3598- ]
3599-
3600-instance FromJSON Goto where
3601- parseJSON (Object v) = Goto
3602- <$> v .: "goto"
3603-
36043616 instance ToJSON Default where
36053617 toJSON (Default defaultDefaultDefault) =
36063618 object $ foldMap (maybe [] pure)
@@ -3642,9 +3654,10 @@ instance FromJSON Obj2False where
36423654 <$> v .: "false"
36433655
36443656 instance ToJSON Obj3 where
3645- toJSON (Obj3 dummyObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 noexceptObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
3657+ toJSON (Obj3 dummyObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
36463658 object $ foldMap (maybe [] pure)
36473659 [ Just $ "dummy" .= dummyObj3
3660+ , Just $ "goto" .= gotoObj3
36483661 , Just $ "guard" .= guardObj3
36493662 , Just $ "hasOwnProperty" .= hasOwnPropertyObj3
36503663 , Just $ "hashCode" .= hashCodeObj3
@@ -3701,7 +3714,6 @@ instance ToJSON Obj3 where
37013714 , Just $ "newtonsoft" .= newtonsoftObj3
37023715 , Just $ "nil" .= nilObj3
37033716 , Just $ "NO" .= noObj3
3704- , Just $ "noexcept" .= noexceptObj3
37053717 , Just $ "id" .= obj3IDObj3
37063718 , Just $ "if" .= obj3IfObj3
37073719 , Just $ "import" .= obj3ImportObj3
@@ -3714,6 +3726,7 @@ instance ToJSON Obj3 where
37143726 instance FromJSON Obj3 where
37153727 parseJSON (Object v) = Obj3
37163728 <$> v .: "dummy"
3729+ <*> v .: "goto"
37173730 <*> v .: "guard"
37183731 <*> v .: "hasOwnProperty"
37193732 <*> v .: "hashCode"
@@ -3770,7 +3783,6 @@ instance FromJSON Obj3 where
37703783 <*> v .: "newtonsoft"
37713784 <*> v .: "nil"
37723785 <*> v .: "NO"
3773- <*> v .: "noexcept"
37743786 <*> v .: "id"
37753787 <*> v .: "if"
37763788 <*> v .: "import"
@@ -3779,6 +3791,16 @@ instance FromJSON Obj3 where
37793791 <*> v .: "let"
37803792 <*> v .: "module"
37813793
3794+instance ToJSON Goto where
3795+ toJSON (Goto gotoGoto) =
3796+ object $ foldMap (maybe [] pure)
3797+ [ Just $ "goto" .= gotoGoto
3798+ ]
3799+
3800+instance FromJSON Goto where
3801+ parseJSON (Object v) = Goto
3802+ <$> v .: "goto"
3803+
37823804 instance ToJSON Guard where
37833805 toJSON (Guard guardGuard) =
37843806 object $ foldMap (maybe [] pure)
@@ -4339,16 +4361,6 @@ instance FromJSON No where
43394361 parseJSON (Object v) = No
43404362 <$> v .: "NO"
43414363
4342-instance ToJSON Noexcept where
4343- toJSON (Noexcept noexceptNoexcept) =
4344- object $ foldMap (maybe [] pure)
4345- [ Just $ "noexcept" .= noexceptNoexcept
4346- ]
4347-
4348-instance FromJSON Noexcept where
4349- parseJSON (Object v) = Noexcept
4350- <$> v .: "noexcept"
4351-
43524364 instance ToJSON ID where
43534365 toJSON (ID idIDID) =
43544366 object $ foldMap (maybe [] pure)
@@ -4420,10 +4432,11 @@ instance FromJSON Module where
44204432 <$> v .: "module"
44214433
44224434 instance ToJSON Obj4 where
4423- toJSON (Obj4 dummyObj4 noSuchMethodObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4) =
4435+ toJSON (Obj4 dummyObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4) =
44244436 object $ foldMap (maybe [] pure)
44254437 [ Just $ "dummy" .= dummyObj4
44264438 , Just $ "noSuchMethod" .= noSuchMethodObj4
4439+ , Just $ "noexcept" .= noexceptObj4
44274440 , Just $ "nonatomic" .= nonatomicObj4
44284441 , Just $ "None" .= noneObj4
44294442 , Just $ "nonlocal" .= nonlocalObj4
@@ -4486,13 +4499,13 @@ instance ToJSON Obj4 where
44864499 , Just $ "sbyte" .= sbyteObj4
44874500 , Just $ "sealed" .= sealedObj4
44884501 , Just $ "SEL" .= selObj4
4489- , Just $ "select" .= selectObj4
44904502 ]
44914503
44924504 instance FromJSON Obj4 where
44934505 parseJSON (Object v) = Obj4
44944506 <$> v .: "dummy"
44954507 <*> v .: "noSuchMethod"
4508+ <*> v .: "noexcept"
44964509 <*> v .: "nonatomic"
44974510 <*> v .: "None"
44984511 <*> v .: "nonlocal"
@@ -4555,7 +4568,6 @@ instance FromJSON Obj4 where
45554568 <*> v .: "sbyte"
45564569 <*> v .: "sealed"
45574570 <*> v .: "SEL"
4558- <*> v .: "select"
45594571
45604572 instance ToJSON NoSuchMethod where
45614573 toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
@@ -4567,6 +4579,16 @@ instance FromJSON NoSuchMethod where
45674579 parseJSON (Object v) = NoSuchMethod
45684580 <$> v .: "noSuchMethod"
45694581
4582+instance ToJSON Noexcept where
4583+ toJSON (Noexcept noexceptNoexcept) =
4584+ object $ foldMap (maybe [] pure)
4585+ [ Just $ "noexcept" .= noexceptNoexcept
4586+ ]
4587+
4588+instance FromJSON Noexcept where
4589+ parseJSON (Object v) = Noexcept
4590+ <$> v .: "noexcept"
4591+
45704592 instance ToJSON Nonatomic where
45714593 toJSON (Nonatomic nonatomicNonatomic) =
45724594 object $ foldMap (maybe [] pure)
@@ -5187,18 +5209,8 @@ instance FromJSON Sel where
51875209 parseJSON (Object v) = Sel
51885210 <$> v .: "SEL"
51895211
5190-instance ToJSON Select where
5191- toJSON (Select selectSelect) =
5192- object $ foldMap (maybe [] pure)
5193- [ Just $ "select" .= selectSelect
5194- ]
5195-
5196-instance FromJSON Select where
5197- parseJSON (Object v) = Select
5198- <$> v .: "select"
5199-
52005212 instance ToJSON Obj5 where
5201- toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 selfObj5 sendableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5 uuidObj5 varObj5 virtualObj5) =
5213+ toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 selectObj5 selfObj5 sendableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toDictObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5 uuidObj5) =
52025214 object $ foldMap (maybe [] pure)
52035215 [ Just $ "dummy" .= dummyObj5
52045216 , Just $ "self" .= obj5SelfObj5
@@ -5206,6 +5218,7 @@ instance ToJSON Obj5 where
52065218 , Just $ "true" .= obj5TrueObj5
52075219 , Just $ "Type" .= obj5TypeObj5
52085220 , Just $ "type" .= purpleTypeObj5
5221+ , Just $ "select" .= selectObj5
52095222 , Just $ "Self" .= selfObj5
52105223 , Just $ "Sendable" .= sendableObj5
52115224 , Just $ "serialize" .= serializeObj5
@@ -5239,6 +5252,7 @@ instance ToJSON Obj5 where
52395252 , Just $ "TimeOnly" .= timeOnlyObj5
52405253 , Just $ "TimeOnlyConverter" .= timeOnlyConverterObj5
52415254 , Just $ "TimeZone" .= timeZoneObj5
5255+ , Just $ "to_dict" .= toDictObj5
52425256 , Just $ "to_json" .= toJSONObj5
52435257 , Just $ "toString" .= toStringObj5
52445258 , Just $ "top_level" .= topLevelObj5
@@ -5263,8 +5277,6 @@ instance ToJSON Obj5 where
52635277 , Just $ "Utf8JsonReader" .= utf8JSONReaderObj5
52645278 , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj5
52655279 , Just $ "UUID" .= uuidObj5
5266- , Just $ "var" .= varObj5
5267- , Just $ "virtual" .= virtualObj5
52685280 ]
52695281
52705282 instance FromJSON Obj5 where
@@ -5275,6 +5287,7 @@ instance FromJSON Obj5 where
52755287 <*> v .: "true"
52765288 <*> v .: "Type"
52775289 <*> v .: "type"
5290+ <*> v .: "select"
52785291 <*> v .: "Self"
52795292 <*> v .: "Sendable"
52805293 <*> v .: "serialize"
@@ -5308,6 +5321,7 @@ instance FromJSON Obj5 where
53085321 <*> v .: "TimeOnly"
53095322 <*> v .: "TimeOnlyConverter"
53105323 <*> v .: "TimeZone"
5324+ <*> v .: "to_dict"
53115325 <*> v .: "to_json"
53125326 <*> v .: "toString"
53135327 <*> v .: "top_level"
@@ -5332,8 +5346,6 @@ instance FromJSON Obj5 where
53325346 <*> v .: "Utf8JsonReader"
53335347 <*> v .: "Utf8JsonWriter"
53345348 <*> v .: "UUID"
5335- <*> v .: "var"
5336- <*> v .: "virtual"
53375349
53385350 instance ToJSON SelfClass where
53395351 toJSON (SelfClass selfSelfClass) =
@@ -5385,6 +5397,16 @@ instance FromJSON TypeClass where
53855397 parseJSON (Object v) = TypeClass
53865398 <$> v .: "type"
53875399
5400+instance ToJSON Select where
5401+ toJSON (Select selectSelect) =
5402+ object $ foldMap (maybe [] pure)
5403+ [ Just $ "select" .= selectSelect
5404+ ]
5405+
5406+instance FromJSON Select where
5407+ parseJSON (Object v) = Select
5408+ <$> v .: "select"
5409+
53885410 instance ToJSON Self where
53895411 toJSON (Self selfSelf) =
53905412 object $ foldMap (maybe [] pure)
@@ -5715,6 +5737,16 @@ instance FromJSON TimeZone where
57155737 parseJSON (Object v) = TimeZone
57165738 <$> v .: "TimeZone"
57175739
5740+instance ToJSON ToDict where
5741+ toJSON (ToDict toDictToDict) =
5742+ object $ foldMap (maybe [] pure)
5743+ [ Just $ "to_dict" .= toDictToDict
5744+ ]
5745+
5746+instance FromJSON ToDict where
5747+ parseJSON (Object v) = ToDict
5748+ <$> v .: "to_dict"
5749+
57185750 instance ToJSON ToJSONClass where
57195751 toJSON (ToJSONClass toJSONToJSONClass) =
57205752 object $ foldMap (maybe [] pure)
@@ -5955,31 +5987,13 @@ instance FromJSON UUID where
59555987 parseJSON (Object v) = UUID
59565988 <$> v .: "UUID"
59575989
5958-instance ToJSON Var where
5959- toJSON (Var varVar) =
5960- object $ foldMap (maybe [] pure)
5961- [ Just $ "var" .= varVar
5962- ]
5963-
5964-instance FromJSON Var where
5965- parseJSON (Object v) = Var
5966- <$> v .: "var"
5967-
5968-instance ToJSON Virtual where
5969- toJSON (Virtual virtualVirtual) =
5970- object $ foldMap (maybe [] pure)
5971- [ Just $ "virtual" .= virtualVirtual
5972- ]
5973-
5974-instance FromJSON Virtual where
5975- parseJSON (Object v) = Virtual
5976- <$> v .: "virtual"
5977-
59785990 instance ToJSON Obj6 where
5979- toJSON (Obj6 dummyObj6 obj6WhereObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
5991+ toJSON (Obj6 dummyObj6 obj6WhereObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
59805992 object $ foldMap (maybe [] pure)
59815993 [ Just $ "dummy" .= dummyObj6
59825994 , Just $ "where" .= obj6WhereObj6
5995+ , Just $ "var" .= varObj6
5996+ , Just $ "virtual" .= virtualObj6
59835997 , Just $ "void" .= voidObj6
59845998 , Just $ "volatile" .= volatileObj6
59855999 , Just $ "wchar_t" .= wcharTObj6
@@ -5997,6 +6011,8 @@ instance FromJSON Obj6 where
59976011 parseJSON (Object v) = Obj6
59986012 <$> v .: "dummy"
59996013 <*> v .: "where"
6014+ <*> v .: "var"
6015+ <*> v .: "virtual"
60006016 <*> v .: "void"
60016017 <*> v .: "volatile"
60026018 <*> v .: "wchar_t"
@@ -6019,6 +6035,26 @@ instance FromJSON Where where
60196035 parseJSON (Object v) = Where
60206036 <$> v .: "where"
60216037
6038+instance ToJSON Var where
6039+ toJSON (Var varVar) =
6040+ object $ foldMap (maybe [] pure)
6041+ [ Just $ "var" .= varVar
6042+ ]
6043+
6044+instance FromJSON Var where
6045+ parseJSON (Object v) = Var
6046+ <$> v .: "var"
6047+
6048+instance ToJSON Virtual where
6049+ toJSON (Virtual virtualVirtual) =
6050+ object $ foldMap (maybe [] pure)
6051+ [ Just $ "virtual" .= virtualVirtual
6052+ ]
6053+
6054+instance FromJSON Virtual where
6055+ parseJSON (Object v) = Virtual
6056+ <$> v .: "virtual"
6057+
60226058 instance ToJSON Void where
60236059 toJSON (Void voidVoid) =
60246060 object $ foldMap (maybe [] pure)
Ajava-datetime-legacydefault / src / main / java / io / quicktype / FromDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class FromDict {
6+ private long fromDict;
7+
8+ @JsonProperty("from_dict")
9+ public long getFromDict() { return fromDict; }
10+ @JsonProperty("from_dict")
11+ public void setFromDict(long value) { this.fromDict = value; }
12+}
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj2.java+6 −6
@@ -49,6 +49,7 @@ public class Obj2 {
4949 private FormatException formatException;
5050 private Friend friend;
5151 private From from;
52+ private FromDict fromDict;
5253 private FromJSON fromJSON;
5354 private Func func;
5455 private Function function;
@@ -66,7 +67,6 @@ public class Obj2 {
6667 private Finally obj2Finally;
6768 private Float obj2Float;
6869 private For obj2For;
69- private Goto obj2Goto;
7070 private FalseClass purpleFalse;
7171
7272 @JsonProperty("DateFormatter")
@@ -299,6 +299,11 @@ public class Obj2 {
299299 @JsonProperty("from")
300300 public void setFrom(From value) { this.from = value; }
301301
302+ @JsonProperty("from_dict")
303+ public FromDict getFromDict() { return fromDict; }
304+ @JsonProperty("from_dict")
305+ public void setFromDict(FromDict value) { this.fromDict = value; }
306+
302307 @JsonProperty("from_json")
303308 public FromJSON getFromJSON() { return fromJSON; }
304309 @JsonProperty("from_json")
@@ -384,11 +389,6 @@ public class Obj2 {
384389 @JsonProperty("for")
385390 public void setObj2For(For value) { this.obj2For = value; }
386391
387- @JsonProperty("goto")
388- public Goto getObj2Goto() { return obj2Goto; }
389- @JsonProperty("goto")
390- public void setObj2Goto(Goto value) { this.obj2Goto = value; }
391-
392392 @JsonProperty("false")
393393 public FalseClass getPurpleFalse() { return purpleFalse; }
394394 @JsonProperty("false")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+5 −5
@@ -58,7 +58,7 @@ public class Obj3 {
5858 private Newtonsoft newtonsoft;
5959 private Nil nil;
6060 private No no;
61- private Noexcept noexcept;
61+ private Goto obj3Goto;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -344,10 +344,10 @@ public class Obj3 {
344344 @JsonProperty("NO")
345345 public void setNo(No value) { this.no = value; }
346346
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
347+ @JsonProperty("goto")
348+ public Goto getObj3Goto() { return obj3Goto; }
349+ @JsonProperty("goto")
350+ public void setObj3Goto(Goto value) { this.obj3Goto = value; }
351351
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+6 −6
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -67,7 +68,6 @@ public class Obj4 {
6768 private Sbyte sbyte;
6869 private Sealed sealed;
6970 private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -388,9 +393,4 @@ public class Obj4 {
388393 public Sel getSel() { return sel; }
389394 @JsonProperty("SEL")
390395 public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+12 −12
@@ -19,6 +19,7 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Select select;
2223 private Self self;
2324 private Sendable sendable;
2425 private Serialize serialize;
@@ -44,6 +45,7 @@ public class Obj5 {
4445 private TimeOnly timeOnly;
4546 private TimeOnlyConverter timeOnlyConverter;
4647 private TimeZone timeZone;
48+ private ToDict toDict;
4749 private ToJSON toJSON;
4850 private ToString toString;
4951 private TopLevelClass topLevel;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private Utf8JSONReader utf8JSONReader;
6769 private Utf8JSONWriter utf8JSONWriter;
6870 private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,11 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("select")
153+ public Select getSelect() { return select; }
154+ @JsonProperty("select")
155+ public void setSelect(Select value) { this.select = value; }
156+
152157 @JsonProperty("Self")
153158 public Self getSelf() { return self; }
154159 @JsonProperty("Self")
@@ -274,6 +279,11 @@ public class Obj5 {
274279 @JsonProperty("TimeZone")
275280 public void setTimeZone(TimeZone value) { this.timeZone = value; }
276281
282+ @JsonProperty("to_dict")
283+ public ToDict getToDict() { return toDict; }
284+ @JsonProperty("to_dict")
285+ public void setToDict(ToDict value) { this.toDict = value; }
286+
277287 @JsonProperty("to_json")
278288 public ToJSON getToJSON() { return toJSON; }
279289 @JsonProperty("to_json")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public UUIDClass getUUID() { return uuid; }
384394 @JsonProperty("UUID")
385395 public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+12 −0
@@ -7,6 +7,8 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Var var;
11+ private Virtual virtual;
1012 private WcharT wcharT;
1113 private Weak weak;
1214 private Where where;
@@ -37,6 +39,16 @@ public class Obj6 {
3739 @JsonProperty("while")
3840 public void setObj6While(While value) { this.obj6While = value; }
3941
42+ @JsonProperty("var")
43+ public Var getVar() { return var; }
44+ @JsonProperty("var")
45+ public void setVar(Var value) { this.var = value; }
46+
47+ @JsonProperty("virtual")
48+ public Virtual getVirtual() { return virtual; }
49+ @JsonProperty("virtual")
50+ public void setVirtual(Virtual value) { this.virtual = value; }
51+
4052 @JsonProperty("wchar_t")
4153 public WcharT getWcharT() { return wcharT; }
4254 @JsonProperty("wchar_t")
Ajava-datetime-legacydefault / src / main / java / io / quicktype / ToDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToDict {
6+ private long toDict;
7+
8+ @JsonProperty("to_dict")
9+ public long getToDict() { return toDict; }
10+ @JsonProperty("to_dict")
11+ public void setToDict(long value) { this.toDict = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / FromDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class FromDict {
6+ private long fromDict;
7+
8+ @JsonProperty("from_dict")
9+ public long getFromDict() { return fromDict; }
10+ @JsonProperty("from_dict")
11+ public void setFromDict(long value) { this.fromDict = value; }
12+}
Mjava-lombokdefault / src / main / java / io / quicktype / Obj2.java+6 −6
@@ -49,6 +49,7 @@ public class Obj2 {
4949 private FormatException formatException;
5050 private Friend friend;
5151 private From from;
52+ private FromDict fromDict;
5253 private FromJSON fromJSON;
5354 private Func func;
5455 private Function function;
@@ -66,7 +67,6 @@ public class Obj2 {
6667 private Finally obj2Finally;
6768 private Float obj2Float;
6869 private For obj2For;
69- private Goto obj2Goto;
7070 private FalseClass purpleFalse;
7171
7272 @JsonProperty("DateFormatter")
@@ -299,6 +299,11 @@ public class Obj2 {
299299 @JsonProperty("from")
300300 public void setFrom(From value) { this.from = value; }
301301
302+ @JsonProperty("from_dict")
303+ public FromDict getFromDict() { return fromDict; }
304+ @JsonProperty("from_dict")
305+ public void setFromDict(FromDict value) { this.fromDict = value; }
306+
302307 @JsonProperty("from_json")
303308 public FromJSON getFromJSON() { return fromJSON; }
304309 @JsonProperty("from_json")
@@ -384,11 +389,6 @@ public class Obj2 {
384389 @JsonProperty("for")
385390 public void setObj2For(For value) { this.obj2For = value; }
386391
387- @JsonProperty("goto")
388- public Goto getObj2Goto() { return obj2Goto; }
389- @JsonProperty("goto")
390- public void setObj2Goto(Goto value) { this.obj2Goto = value; }
391-
392392 @JsonProperty("false")
393393 public FalseClass getPurpleFalse() { return purpleFalse; }
394394 @JsonProperty("false")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+5 −5
@@ -58,7 +58,7 @@ public class Obj3 {
5858 private Newtonsoft newtonsoft;
5959 private Nil nil;
6060 private No no;
61- private Noexcept noexcept;
61+ private Goto obj3Goto;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -344,10 +344,10 @@ public class Obj3 {
344344 @JsonProperty("NO")
345345 public void setNo(No value) { this.no = value; }
346346
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
347+ @JsonProperty("goto")
348+ public Goto getObj3Goto() { return obj3Goto; }
349+ @JsonProperty("goto")
350+ public void setObj3Goto(Goto value) { this.obj3Goto = value; }
351351
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+6 −6
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -67,7 +68,6 @@ public class Obj4 {
6768 private Sbyte sbyte;
6869 private Sealed sealed;
6970 private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -388,9 +393,4 @@ public class Obj4 {
388393 public Sel getSel() { return sel; }
389394 @JsonProperty("SEL")
390395 public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+12 −12
@@ -19,6 +19,7 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Select select;
2223 private Self self;
2324 private Sendable sendable;
2425 private Serialize serialize;
@@ -44,6 +45,7 @@ public class Obj5 {
4445 private TimeOnly timeOnly;
4546 private TimeOnlyConverter timeOnlyConverter;
4647 private TimeZone timeZone;
48+ private ToDict toDict;
4749 private ToJSON toJSON;
4850 private ToString toString;
4951 private TopLevelClass topLevel;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private Utf8JSONReader utf8JSONReader;
6769 private Utf8JSONWriter utf8JSONWriter;
6870 private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,11 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("select")
153+ public Select getSelect() { return select; }
154+ @JsonProperty("select")
155+ public void setSelect(Select value) { this.select = value; }
156+
152157 @JsonProperty("Self")
153158 public Self getSelf() { return self; }
154159 @JsonProperty("Self")
@@ -274,6 +279,11 @@ public class Obj5 {
274279 @JsonProperty("TimeZone")
275280 public void setTimeZone(TimeZone value) { this.timeZone = value; }
276281
282+ @JsonProperty("to_dict")
283+ public ToDict getToDict() { return toDict; }
284+ @JsonProperty("to_dict")
285+ public void setToDict(ToDict value) { this.toDict = value; }
286+
277287 @JsonProperty("to_json")
278288 public ToJSON getToJSON() { return toJSON; }
279289 @JsonProperty("to_json")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public UUIDClass getUUID() { return uuid; }
384394 @JsonProperty("UUID")
385395 public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+12 −0
@@ -7,6 +7,8 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Var var;
11+ private Virtual virtual;
1012 private WcharT wcharT;
1113 private Weak weak;
1214 private Where where;
@@ -37,6 +39,16 @@ public class Obj6 {
3739 @JsonProperty("while")
3840 public void setObj6While(While value) { this.obj6While = value; }
3941
42+ @JsonProperty("var")
43+ public Var getVar() { return var; }
44+ @JsonProperty("var")
45+ public void setVar(Var value) { this.var = value; }
46+
47+ @JsonProperty("virtual")
48+ public Virtual getVirtual() { return virtual; }
49+ @JsonProperty("virtual")
50+ public void setVirtual(Virtual value) { this.virtual = value; }
51+
4052 @JsonProperty("wchar_t")
4153 public WcharT getWcharT() { return wcharT; }
4254 @JsonProperty("wchar_t")
Ajava-lombokdefault / src / main / java / io / quicktype / ToDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToDict {
6+ private long toDict;
7+
8+ @JsonProperty("to_dict")
9+ public long getToDict() { return toDict; }
10+ @JsonProperty("to_dict")
11+ public void setToDict(long value) { this.toDict = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / FromDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class FromDict {
6+ private long fromDict;
7+
8+ @JsonProperty("from_dict")
9+ public long getFromDict() { return fromDict; }
10+ @JsonProperty("from_dict")
11+ public void setFromDict(long value) { this.fromDict = value; }
12+}
Mjavadefault / src / main / java / io / quicktype / Obj2.java+6 −6
@@ -49,6 +49,7 @@ public class Obj2 {
4949 private FormatException formatException;
5050 private Friend friend;
5151 private From from;
52+ private FromDict fromDict;
5253 private FromJSON fromJSON;
5354 private Func func;
5455 private Function function;
@@ -66,7 +67,6 @@ public class Obj2 {
6667 private Finally obj2Finally;
6768 private Float obj2Float;
6869 private For obj2For;
69- private Goto obj2Goto;
7070 private FalseClass purpleFalse;
7171
7272 @JsonProperty("DateFormatter")
@@ -299,6 +299,11 @@ public class Obj2 {
299299 @JsonProperty("from")
300300 public void setFrom(From value) { this.from = value; }
301301
302+ @JsonProperty("from_dict")
303+ public FromDict getFromDict() { return fromDict; }
304+ @JsonProperty("from_dict")
305+ public void setFromDict(FromDict value) { this.fromDict = value; }
306+
302307 @JsonProperty("from_json")
303308 public FromJSON getFromJSON() { return fromJSON; }
304309 @JsonProperty("from_json")
@@ -384,11 +389,6 @@ public class Obj2 {
384389 @JsonProperty("for")
385390 public void setObj2For(For value) { this.obj2For = value; }
386391
387- @JsonProperty("goto")
388- public Goto getObj2Goto() { return obj2Goto; }
389- @JsonProperty("goto")
390- public void setObj2Goto(Goto value) { this.obj2Goto = value; }
391-
392392 @JsonProperty("false")
393393 public FalseClass getPurpleFalse() { return purpleFalse; }
394394 @JsonProperty("false")
Mjavadefault / src / main / java / io / quicktype / Obj3.java+5 −5
@@ -58,7 +58,7 @@ public class Obj3 {
5858 private Newtonsoft newtonsoft;
5959 private Nil nil;
6060 private No no;
61- private Noexcept noexcept;
61+ private Goto obj3Goto;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -344,10 +344,10 @@ public class Obj3 {
344344 @JsonProperty("NO")
345345 public void setNo(No value) { this.no = value; }
346346
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
347+ @JsonProperty("goto")
348+ public Goto getObj3Goto() { return obj3Goto; }
349+ @JsonProperty("goto")
350+ public void setObj3Goto(Goto value) { this.obj3Goto = value; }
351351
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
Mjavadefault / src / main / java / io / quicktype / Obj4.java+6 −6
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -67,7 +68,6 @@ public class Obj4 {
6768 private Sbyte sbyte;
6869 private Sealed sealed;
6970 private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -388,9 +393,4 @@ public class Obj4 {
388393 public Sel getSel() { return sel; }
389394 @JsonProperty("SEL")
390395 public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj5.java+12 −12
@@ -19,6 +19,7 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Select select;
2223 private Self self;
2324 private Sendable sendable;
2425 private Serialize serialize;
@@ -44,6 +45,7 @@ public class Obj5 {
4445 private TimeOnly timeOnly;
4546 private TimeOnlyConverter timeOnlyConverter;
4647 private TimeZone timeZone;
48+ private ToDict toDict;
4749 private ToJSON toJSON;
4850 private ToString toString;
4951 private TopLevelClass topLevel;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private Utf8JSONReader utf8JSONReader;
6769 private Utf8JSONWriter utf8JSONWriter;
6870 private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,11 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("select")
153+ public Select getSelect() { return select; }
154+ @JsonProperty("select")
155+ public void setSelect(Select value) { this.select = value; }
156+
152157 @JsonProperty("Self")
153158 public Self getSelf() { return self; }
154159 @JsonProperty("Self")
@@ -274,6 +279,11 @@ public class Obj5 {
274279 @JsonProperty("TimeZone")
275280 public void setTimeZone(TimeZone value) { this.timeZone = value; }
276281
282+ @JsonProperty("to_dict")
283+ public ToDict getToDict() { return toDict; }
284+ @JsonProperty("to_dict")
285+ public void setToDict(ToDict value) { this.toDict = value; }
286+
277287 @JsonProperty("to_json")
278288 public ToJSON getToJSON() { return toJSON; }
279289 @JsonProperty("to_json")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public UUIDClass getUUID() { return uuid; }
384394 @JsonProperty("UUID")
385395 public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj6.java+12 −0
@@ -7,6 +7,8 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Var var;
11+ private Virtual virtual;
1012 private WcharT wcharT;
1113 private Weak weak;
1214 private Where where;
@@ -37,6 +39,16 @@ public class Obj6 {
3739 @JsonProperty("while")
3840 public void setObj6While(While value) { this.obj6While = value; }
3941
42+ @JsonProperty("var")
43+ public Var getVar() { return var; }
44+ @JsonProperty("var")
45+ public void setVar(Var value) { this.var = value; }
46+
47+ @JsonProperty("virtual")
48+ public Virtual getVirtual() { return virtual; }
49+ @JsonProperty("virtual")
50+ public void setVirtual(Virtual value) { this.virtual = value; }
51+
4052 @JsonProperty("wchar_t")
4153 public WcharT getWcharT() { return wcharT; }
4254 @JsonProperty("wchar_t")
Ajavadefault / src / main / java / io / quicktype / ToDict.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToDict {
6+ private long toDict;
7+
8+ @JsonProperty("to_dict")
9+ public long getToDict() { return toDict; }
10+ @JsonProperty("to_dict")
11+ public void setToDict(long value) { this.toDict = value; }
12+}
Mjavascript-prop-typesdefault / toplevel.js+35 −25
@@ -137,13 +137,13 @@ let _For;
137137 let _Foreach;
138138 let _Friend;
139139 let _From;
140+let _FromDict;
140141 let _FromJSON;
141142 let _Func;
142143 let _Function;
143144 let _Get;
144145 let _Global;
145146 let _Go;
146-let _Goto;
147147 let _Obj3;
148148 let _Hashable;
149149 let _Hasher;
@@ -163,6 +163,7 @@ let _JSONTokenType;
163163 let _Locale;
164164 let _MapEntry;
165165 let _No;
166+let _Goto;
166167 let _Guard;
167168 let _HasOwnProperty;
168169 let _HashCode;
@@ -208,7 +209,6 @@ let _Native;
208209 let _New;
209210 let _Newtonsoft;
210211 let _Nil;
211-let _Noexcept;
212212 let _Obj4;
213213 let _NSError;
214214 let _NSObject;
@@ -220,6 +220,7 @@ let _Protocol;
220220 let _RegExp;
221221 let _Sel;
222222 let _NoSuchMethod;
223+let _Noexcept;
223224 let _Nonatomic;
224225 let _NoneClass;
225226 let _Nonlocal;
@@ -273,7 +274,6 @@ let _RuntimeType;
273274 let _S;
274275 let _Sbyte;
275276 let _Sealed;
276-let _Select;
277277 let _Obj5;
278278 let _Self;
279279 let _Sendable;
@@ -290,6 +290,7 @@ let _Type;
290290 let _UUID;
291291 let _Utf8JSONReader;
292292 let _Utf8JSONWriter;
293+let _Select;
293294 let _SelfClass;
294295 let _Serialize;
295296 let _Set;
@@ -316,6 +317,7 @@ let _ThreadLocal;
316317 let _Throw;
317318 let _Throws;
318319 let _ToString;
320+let _ToDict;
319321 let _ToJSON;
320322 let _TopLevelClass;
321323 let _Transient;
@@ -337,10 +339,10 @@ let _Unsafe;
337339 let _Unsigned;
338340 let _Ushort;
339341 let _Using;
340-let _Var;
341-let _Virtual;
342342 let _Obj6;
343343 let _Yes;
344+let _Var;
345+let _Virtual;
344346 let _Void;
345347 let _Volatile;
346348 let _WcharT;
@@ -783,6 +785,9 @@ _Friend = PropTypes.shape({
783785 _From = PropTypes.shape({
784786 "from": PropTypes.oneOfType([Integer]).isRequired,
785787 });
788+_FromDict = PropTypes.shape({
789+ "from_dict": PropTypes.oneOfType([Integer]).isRequired,
790+});
786791 _FromJSON = PropTypes.shape({
787792 "from_json": PropTypes.oneOfType([Integer]).isRequired,
788793 });
@@ -801,9 +806,6 @@ _Global = PropTypes.shape({
801806 _Go = PropTypes.shape({
802807 "go": PropTypes.oneOfType([Integer]).isRequired,
803808 });
804-_Goto = PropTypes.shape({
805- "goto": PropTypes.oneOfType([Integer]).isRequired,
806-});
807809 _Obj2 = PropTypes.shape({
808810 "DateFormatter": _DateFormatter,
809811 "DateOnly": _DateOnly,
@@ -863,13 +865,13 @@ _Obj2 = PropTypes.shape({
863865 "foreach": _Foreach,
864866 "friend": _Friend,
865867 "from": _From,
868+ "from_dict": _FromDict,
866869 "from_json": _FromJSON,
867870 "func": _Func,
868871 "function": _Function,
869872 "get": _Get,
870873 "global": _Global,
871874 "go": _Go,
872- "goto": _Goto,
873875 });
874876 _Hashable = PropTypes.shape({
875877 "Hashable": PropTypes.oneOfType([Integer]).isRequired,
@@ -925,6 +927,9 @@ _MapEntry = PropTypes.shape({
925927 _No = PropTypes.shape({
926928 "NO": PropTypes.oneOfType([Integer]).isRequired,
927929 });
930+_Goto = PropTypes.shape({
931+ "goto": PropTypes.oneOfType([Integer]).isRequired,
932+});
928933 _Guard = PropTypes.shape({
929934 "guard": PropTypes.oneOfType([Integer]).isRequired,
930935 });
@@ -1060,9 +1065,6 @@ _Newtonsoft = PropTypes.shape({
10601065 _Nil = PropTypes.shape({
10611066 "nil": PropTypes.oneOfType([Integer]).isRequired,
10621067 });
1063-_Noexcept = PropTypes.shape({
1064- "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1065-});
10661068 _Obj3 = PropTypes.shape({
10671069 "Hashable": _Hashable,
10681070 "Hasher": _Hasher,
@@ -1083,6 +1085,7 @@ _Obj3 = PropTypes.shape({
10831085 "MapEntry": _MapEntry,
10841086 "NO": _No,
10851087 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1088+ "goto": _Goto,
10861089 "guard": _Guard,
10871090 "hasOwnProperty": _HasOwnProperty,
10881091 "hashCode": _HashCode,
@@ -1128,7 +1131,6 @@ _Obj3 = PropTypes.shape({
11281131 "new": _New,
11291132 "newtonsoft": _Newtonsoft,
11301133 "nil": _Nil,
1131- "noexcept": _Noexcept,
11321134 });
11331135 _NSError = PropTypes.shape({
11341136 "NSError": PropTypes.oneOfType([Integer]).isRequired,
@@ -1160,6 +1162,9 @@ _Sel = PropTypes.shape({
11601162 _NoSuchMethod = PropTypes.shape({
11611163 "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
11621164 });
1165+_Noexcept = PropTypes.shape({
1166+ "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1167+});
11631168 _Nonatomic = PropTypes.shape({
11641169 "nonatomic": PropTypes.oneOfType([Integer]).isRequired,
11651170 });
@@ -1319,9 +1324,6 @@ _Sbyte = PropTypes.shape({
13191324 _Sealed = PropTypes.shape({
13201325 "sealed": PropTypes.oneOfType([Integer]).isRequired,
13211326 });
1322-_Select = PropTypes.shape({
1323- "select": PropTypes.oneOfType([Integer]).isRequired,
1324-});
13251327 _Obj4 = PropTypes.shape({
13261328 "NSError": _NSError,
13271329 "NSObject": _NSObject,
@@ -1334,6 +1336,7 @@ _Obj4 = PropTypes.shape({
13341336 "SEL": _Sel,
13351337 "dummy": PropTypes.oneOfType([Integer]).isRequired,
13361338 "noSuchMethod": _NoSuchMethod,
1339+ "noexcept": _Noexcept,
13371340 "nonatomic": _Nonatomic,
13381341 "none": _NoneClass,
13391342 "nonlocal": _Nonlocal,
@@ -1387,7 +1390,6 @@ _Obj4 = PropTypes.shape({
13871390 "s": _S,
13881391 "sbyte": _Sbyte,
13891392 "sealed": _Sealed,
1390- "select": _Select,
13911393 });
13921394 _Self = PropTypes.shape({
13931395 "Self": PropTypes.oneOfType([Integer]).isRequired,
@@ -1434,6 +1436,9 @@ _Utf8JSONReader = PropTypes.shape({
14341436 _Utf8JSONWriter = PropTypes.shape({
14351437 "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired,
14361438 });
1439+_Select = PropTypes.shape({
1440+ "select": PropTypes.oneOfType([Integer]).isRequired,
1441+});
14371442 _SelfClass = PropTypes.shape({
14381443 "self": PropTypes.oneOfType([Integer]).isRequired,
14391444 });
@@ -1512,6 +1517,9 @@ _Throws = PropTypes.shape({
15121517 _ToString = PropTypes.shape({
15131518 "toString": PropTypes.oneOfType([Integer]).isRequired,
15141519 });
1520+_ToDict = PropTypes.shape({
1521+ "to_dict": PropTypes.oneOfType([Integer]).isRequired,
1522+});
15151523 _ToJSON = PropTypes.shape({
15161524 "to_json": PropTypes.oneOfType([Integer]).isRequired,
15171525 });
@@ -1575,12 +1583,6 @@ _Ushort = PropTypes.shape({
15751583 _Using = PropTypes.shape({
15761584 "using": PropTypes.oneOfType([Integer]).isRequired,
15771585 });
1578-_Var = PropTypes.shape({
1579- "var": PropTypes.oneOfType([Integer]).isRequired,
1580-});
1581-_Virtual = PropTypes.shape({
1582- "virtual": PropTypes.oneOfType([Integer]).isRequired,
1583-});
15841586 _Obj5 = PropTypes.shape({
15851587 "Self": _Self,
15861588 "Sendable": _Sendable,
@@ -1598,6 +1600,7 @@ _Obj5 = PropTypes.shape({
15981600 "Utf8JsonReader": _Utf8JSONReader,
15991601 "Utf8JsonWriter": _Utf8JSONWriter,
16001602 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1603+ "select": _Select,
16011604 "self": _SelfClass,
16021605 "serialize": _Serialize,
16031606 "set": _Set,
@@ -1624,6 +1627,7 @@ _Obj5 = PropTypes.shape({
16241627 "throw": _Throw,
16251628 "throws": _Throws,
16261629 "toString": _ToString,
1630+ "to_dict": _ToDict,
16271631 "to_json": _ToJSON,
16281632 "top_level": _TopLevelClass,
16291633 "transient": _Transient,
@@ -1645,12 +1649,16 @@ _Obj5 = PropTypes.shape({
16451649 "unsigned": _Unsigned,
16461650 "ushort": _Ushort,
16471651 "using": _Using,
1648- "var": _Var,
1649- "virtual": _Virtual,
16501652 });
16511653 _Yes = PropTypes.shape({
16521654 "YES": PropTypes.oneOfType([Integer]).isRequired,
16531655 });
1656+_Var = PropTypes.shape({
1657+ "var": PropTypes.oneOfType([Integer]).isRequired,
1658+});
1659+_Virtual = PropTypes.shape({
1660+ "virtual": PropTypes.oneOfType([Integer]).isRequired,
1661+});
16541662 _Void = PropTypes.shape({
16551663 "void": PropTypes.oneOfType([Integer]).isRequired,
16561664 });
@@ -1687,6 +1695,8 @@ _Yield = PropTypes.shape({
16871695 _Obj6 = PropTypes.shape({
16881696 "YES": _Yes,
16891697 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1698+ "var": _Var,
1699+ "virtual": _Virtual,
16901700 "void": _Void,
16911701 "volatile": _Volatile,
16921702 "wchar_t": _WcharT,
Mjavascriptdefault / TopLevel.js+28 −20
@@ -520,13 +520,13 @@ const typeMap = {
520520 { json: "foreach", js: "foreach", typ: r("Foreach") },
521521 { json: "friend", js: "friend", typ: r("Friend") },
522522 { json: "from", js: "from", typ: r("From") },
523+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
523524 { json: "from_json", js: "from_json", typ: r("FromJSON") },
524525 { json: "func", js: "func", typ: r("Func") },
525526 { json: "function", js: "function", typ: r("Function") },
526527 { json: "get", js: "get", typ: r("Get") },
527528 { json: "global", js: "global", typ: r("Global") },
528529 { json: "go", js: "go", typ: r("Go") },
529- { json: "goto", js: "goto", typ: r("Goto") },
530530 ], false),
531531 "DateFormatter": o([
532532 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -699,6 +699,9 @@ const typeMap = {
699699 "From": o([
700700 { json: "from", js: "from", typ: i(0) },
701701 ], false),
702+ "FromDict": o([
703+ { json: "from_dict", js: "from_dict", typ: i(0) },
704+ ], false),
702705 "FromJSON": o([
703706 { json: "from_json", js: "from_json", typ: i(0) },
704707 ], false),
@@ -717,9 +720,6 @@ const typeMap = {
717720 "Go": o([
718721 { json: "go", js: "go", typ: i(0) },
719722 ], false),
720- "Goto": o([
721- { json: "goto", js: "goto", typ: i(0) },
722- ], false),
723723 "Obj3": o([
724724 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
725725 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -740,6 +740,7 @@ const typeMap = {
740740 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
741741 { json: "NO", js: "NO", typ: r("No") },
742742 { json: "dummy", js: "dummy", typ: i(0) },
743+ { json: "goto", js: "goto", typ: r("Goto") },
743744 { json: "guard", js: "guard", typ: r("Guard") },
744745 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
745746 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -785,7 +786,6 @@ const typeMap = {
785786 { json: "new", js: "new", typ: r("New") },
786787 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
787788 { json: "nil", js: "nil", typ: r("Nil") },
788- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
789789 ], false),
790790 "Hashable": o([
791791 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -841,6 +841,9 @@ const typeMap = {
841841 "No": o([
842842 { json: "NO", js: "NO", typ: i(0) },
843843 ], false),
844+ "Goto": o([
845+ { json: "goto", js: "goto", typ: i(0) },
846+ ], false),
844847 "Guard": o([
845848 { json: "guard", js: "guard", typ: i(0) },
846849 ], false),
@@ -976,9 +979,6 @@ const typeMap = {
976979 "Nil": o([
977980 { json: "nil", js: "nil", typ: i(0) },
978981 ], false),
979- "Noexcept": o([
980- { json: "noexcept", js: "noexcept", typ: i(0) },
981- ], false),
982982 "Obj4": o([
983983 { json: "NSError", js: "NSError", typ: r("NSError") },
984984 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -991,6 +991,7 @@ const typeMap = {
991991 { json: "SEL", js: "SEL", typ: r("Sel") },
992992 { json: "dummy", js: "dummy", typ: i(0) },
993993 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
994+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
994995 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
995996 { json: "none", js: "none", typ: r("NoneClass") },
996997 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -1044,7 +1045,6 @@ const typeMap = {
10441045 { json: "s", js: "s", typ: r("S") },
10451046 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
10461047 { json: "sealed", js: "sealed", typ: r("Sealed") },
1047- { json: "select", js: "select", typ: r("Select") },
10481048 ], false),
10491049 "NSError": o([
10501050 { json: "NSError", js: "NSError", typ: i(0) },
@@ -1076,6 +1076,9 @@ const typeMap = {
10761076 "NoSuchMethod": o([
10771077 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
10781078 ], false),
1079+ "Noexcept": o([
1080+ { json: "noexcept", js: "noexcept", typ: i(0) },
1081+ ], false),
10791082 "Nonatomic": o([
10801083 { json: "nonatomic", js: "nonatomic", typ: i(0) },
10811084 ], false),
@@ -1235,9 +1238,6 @@ const typeMap = {
12351238 "Sealed": o([
12361239 { json: "sealed", js: "sealed", typ: i(0) },
12371240 ], false),
1238- "Select": o([
1239- { json: "select", js: "select", typ: i(0) },
1240- ], false),
12411241 "Obj5": o([
12421242 { json: "Self", js: "Self", typ: r("Self") },
12431243 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
@@ -1255,6 +1255,7 @@ const typeMap = {
12551255 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
12561256 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
12571257 { json: "dummy", js: "dummy", typ: i(0) },
1258+ { json: "select", js: "select", typ: r("Select") },
12581259 { json: "self", js: "self", typ: r("SelfClass") },
12591260 { json: "serialize", js: "serialize", typ: r("Serialize") },
12601261 { json: "set", js: "set", typ: r("Set") },
@@ -1281,6 +1282,7 @@ const typeMap = {
12811282 { json: "throw", js: "throw", typ: r("Throw") },
12821283 { json: "throws", js: "throws", typ: r("Throws") },
12831284 { json: "toString", js: "toString", typ: r("ToString") },
1285+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
12841286 { json: "to_json", js: "to_json", typ: r("ToJSON") },
12851287 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
12861288 { json: "transient", js: "transient", typ: r("Transient") },
@@ -1302,8 +1304,6 @@ const typeMap = {
13021304 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
13031305 { json: "ushort", js: "ushort", typ: r("Ushort") },
13041306 { json: "using", js: "using", typ: r("Using") },
1305- { json: "var", js: "var", typ: r("Var") },
1306- { json: "virtual", js: "virtual", typ: r("Virtual") },
13071307 ], false),
13081308 "Self": o([
13091309 { json: "Self", js: "Self", typ: i(0) },
@@ -1350,6 +1350,9 @@ const typeMap = {
13501350 "Utf8JSONWriter": o([
13511351 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
13521352 ], false),
1353+ "Select": o([
1354+ { json: "select", js: "select", typ: i(0) },
1355+ ], false),
13531356 "SelfClass": o([
13541357 { json: "self", js: "self", typ: i(0) },
13551358 ], false),
@@ -1428,6 +1431,9 @@ const typeMap = {
14281431 "ToString": o([
14291432 { json: "toString", js: "toString", typ: i(0) },
14301433 ], false),
1434+ "ToDict": o([
1435+ { json: "to_dict", js: "to_dict", typ: i(0) },
1436+ ], false),
14311437 "ToJSON": o([
14321438 { json: "to_json", js: "to_json", typ: i(0) },
14331439 ], false),
@@ -1491,15 +1497,11 @@ const typeMap = {
14911497 "Using": o([
14921498 { json: "using", js: "using", typ: i(0) },
14931499 ], false),
1494- "Var": o([
1495- { json: "var", js: "var", typ: i(0) },
1496- ], false),
1497- "Virtual": o([
1498- { json: "virtual", js: "virtual", typ: i(0) },
1499- ], false),
15001500 "Obj6": o([
15011501 { json: "YES", js: "YES", typ: r("Yes") },
15021502 { json: "dummy", js: "dummy", typ: i(0) },
1503+ { json: "var", js: "var", typ: r("Var") },
1504+ { json: "virtual", js: "virtual", typ: r("Virtual") },
15031505 { json: "void", js: "void", typ: r("Void") },
15041506 { json: "volatile", js: "volatile", typ: r("Volatile") },
15051507 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -1515,6 +1517,12 @@ const typeMap = {
15151517 "Yes": o([
15161518 { json: "YES", js: "YES", typ: i(0) },
15171519 ], false),
1520+ "Var": o([
1521+ { json: "var", js: "var", typ: i(0) },
1522+ ], false),
1523+ "Virtual": o([
1524+ { json: "virtual", js: "virtual", typ: i(0) },
1525+ ], false),
15181526 "Void": o([
15191527 { json: "void", js: "void", typ: i(0) },
15201528 ], false),
Mkotlin-jacksondefault / TopLevel.kt+58 −42
@@ -740,6 +740,9 @@ data class Obj2 (
740740 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
741741 val from: From,
742742
743+ @get:JsonProperty("from_dict", required=true)@field:JsonProperty("from_dict", required=true)
744+ val fromDict: FromDict,
745+
743746 @get:JsonProperty("from_json", required=true)@field:JsonProperty("from_json", required=true)
744747 val fromJSON: FromJSON,
745748
@@ -758,9 +761,6 @@ data class Obj2 (
758761 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
759762 val go: Go,
760763
761- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
762- val goto: Goto,
763-
764764 @get:JsonProperty("do", required=true)@field:JsonProperty("do", required=true)
765765 val obj2Do: Do,
766766
@@ -1050,6 +1050,11 @@ data class From (
10501050 val from: Long
10511051 )
10521052
1053+data class FromDict (
1054+ @get:JsonProperty("from_dict", required=true)@field:JsonProperty("from_dict", required=true)
1055+ val fromDict: Long
1056+)
1057+
10531058 data class FromJSON (
10541059 @get:JsonProperty("from_json", required=true)@field:JsonProperty("from_json", required=true)
10551060 val fromJSON: Long
@@ -1080,11 +1085,6 @@ data class Go (
10801085 val go: Long
10811086 )
10821087
1083-data class Goto (
1084- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1085- val goto: Long
1086-)
1087-
10881088 data class Do (
10891089 @get:JsonProperty("do", required=true)@field:JsonProperty("do", required=true)
10901090 val doDo: Long
@@ -1114,6 +1114,9 @@ data class Obj3 (
11141114 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
11151115 val dummy: Long,
11161116
1117+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1118+ val goto: Goto,
1119+
11171120 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
11181121 val guard: Guard,
11191122
@@ -1291,9 +1294,6 @@ data class Obj3 (
12911294 @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
12921295 val no: No,
12931296
1294- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1295- val noexcept: Noexcept,
1296-
12971297 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
12981298 val obj3If: If,
12991299
@@ -1307,6 +1307,11 @@ data class Obj3 (
13071307 val obj3Is: Is
13081308 )
13091309
1310+data class Goto (
1311+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1312+ val goto: Long
1313+)
1314+
13101315 data class Guard (
13111316 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
13121317 val guard: Long
@@ -1602,11 +1607,6 @@ data class No (
16021607 val no: Long
16031608 )
16041609
1605-data class Noexcept (
1606- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1607- val noexcept: Long
1608-)
1609-
16101610 data class If (
16111611 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
16121612 val ifIf: Long
@@ -1634,6 +1634,9 @@ data class Obj4 (
16341634 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16351635 val noSuchMethod: NoSuchMethod,
16361636
1637+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1638+ val noexcept: Noexcept,
1639+
16371640 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16381641 val nonatomic: Nonatomic,
16391642
@@ -1818,10 +1821,7 @@ data class Obj4 (
18181821 val sealed: Sealed,
18191822
18201823 @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
1821- val sel: Sel,
1822-
1823- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1824- val select: Select
1824+ val sel: Sel
18251825 )
18261826
18271827 data class NoSuchMethod (
@@ -1829,6 +1829,11 @@ data class NoSuchMethod (
18291829 val noSuchMethod: Long
18301830 )
18311831
1832+data class Noexcept (
1833+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1834+ val noexcept: Long
1835+)
1836+
18321837 data class Nonatomic (
18331838 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
18341839 val nonatomic: Long
@@ -2139,11 +2144,6 @@ data class Sel (
21392144 val sel: Long
21402145 )
21412146
2142-data class Select (
2143- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2144- val select: Long
2145-)
2146-
21472147 data class Obj5 (
21482148 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21492149 val dummy: Long,
@@ -2175,12 +2175,12 @@ data class Obj5 (
21752175 @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true)
21762176 val obj5Typeof: Typeof,
21772177
2178- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2179- val obj5Var: Var,
2180-
21812178 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21822179 val purpleTrue: TrueClass,
21832180
2181+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2182+ val select: Select,
2183+
21842184 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
21852185 val self: Self,
21862186
@@ -2274,6 +2274,9 @@ data class Obj5 (
22742274 @get:JsonProperty("TimeZone", required=true)@field:JsonProperty("TimeZone", required=true)
22752275 val timeZone: TimeZone,
22762276
2277+ @get:JsonProperty("to_dict", required=true)@field:JsonProperty("to_dict", required=true)
2278+ val toDict: ToDict,
2279+
22772280 @get:JsonProperty("to_json", required=true)@field:JsonProperty("to_json", required=true)
22782281 val toJSON: ToJSON,
22792282
@@ -2335,10 +2338,7 @@ data class Obj5 (
23352338 val utf8JSONWriter: Utf8JSONWriter,
23362339
23372340 @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2338- val uuid: UUID,
2339-
2340- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2341- val virtual: Virtual
2341+ val uuid: UUID
23422342 )
23432343
23442344 data class SelfClass (
@@ -2386,16 +2386,16 @@ data class Typeof (
23862386 val typeofTypeof: Long
23872387 )
23882388
2389-data class Var (
2390- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2391- val varVar: Long
2392-)
2393-
23942389 data class TrueClass (
23952390 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
23962391 val trueTrue: Long
23972392 )
23982393
2394+data class Select (
2395+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2396+ val select: Long
2397+)
2398+
23992399 data class Self (
24002400 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
24012401 val self: Long
@@ -2551,6 +2551,11 @@ data class TimeZone (
25512551 val timeZone: Long
25522552 )
25532553
2554+data class ToDict (
2555+ @get:JsonProperty("to_dict", required=true)@field:JsonProperty("to_dict", required=true)
2556+ val toDict: Long
2557+)
2558+
25542559 data class ToJSON (
25552560 @get:JsonProperty("to_json", required=true)@field:JsonProperty("to_json", required=true)
25562561 val toJSON: Long
@@ -2656,18 +2661,19 @@ data class UUID (
26562661 val uuid: Long
26572662 )
26582663
2659-data class Virtual (
2660- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2661- val virtual: Long
2662-)
2663-
26642664 data class Obj6 (
26652665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26662666 val dummy: Long,
26672667
2668+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2669+ val obj6Var: Var,
2670+
26682671 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26692672 val obj6While: While,
26702673
2674+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2675+ val virtual: Virtual,
2676+
26712677 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26722678 val void: Void,
26732679
@@ -2702,11 +2708,21 @@ data class Obj6 (
27022708 val yield: Yield
27032709 )
27042710
2711+data class Var (
2712+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2713+ val varVar: Long
2714+)
2715+
27052716 data class While (
27062717 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
27072718 val whileWhile: Long
27082719 )
27092720
2721+data class Virtual (
2722+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2723+ val virtual: Long
2724+)
2725+
27102726 data class Void (
27112727 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27122728 val void: Long
Mkotlindefault / TopLevel.kt+47 −33
@@ -542,6 +542,9 @@ data class Obj2 (
542542 val friend: Friend,
543543 val from: From,
544544
545+ @Json(name = "from_dict")
546+ val fromDict: FromDict,
547+
545548 @Json(name = "from_json")
546549 val fromJSON: FromJSON,
547550
@@ -550,7 +553,6 @@ data class Obj2 (
550553 val get: Get,
551554 val global: Global,
552555 val go: Go,
553- val goto: Goto,
554556
555557 @Json(name = "do")
556558 val obj2Do: Do,
@@ -804,6 +806,11 @@ data class From (
804806 val from: Long
805807 )
806808
809+data class FromDict (
810+ @Json(name = "from_dict")
811+ val fromDict: Long
812+)
813+
807814 data class FromJSON (
808815 @Json(name = "from_json")
809816 val fromJSON: Long
@@ -829,10 +836,6 @@ data class Go (
829836 val go: Long
830837 )
831838
832-data class Goto (
833- val goto: Long
834-)
835-
836839 data class Do (
837840 @Json(name = "do")
838841 val doDo: Long
@@ -860,6 +863,7 @@ data class FalseClass (
860863
861864 data class Obj3 (
862865 val dummy: Long,
866+ val goto: Goto,
863867 val guard: Guard,
864868 val hasOwnProperty: HasOwnProperty,
865869 val hashCode: HashCode,
@@ -972,8 +976,6 @@ data class Obj3 (
972976 @Json(name = "NO")
973977 val no: No,
974978
975- val noexcept: Noexcept,
976-
977979 @Json(name = "if")
978980 val obj3If: If,
979981
@@ -987,6 +989,10 @@ data class Obj3 (
987989 val obj3Is: Is
988990 )
989991
992+data class Goto (
993+ val goto: Long
994+)
995+
990996 data class Guard (
991997 val guard: Long
992998 )
@@ -1246,10 +1252,6 @@ data class No (
12461252 val no: Long
12471253 )
12481254
1249-data class Noexcept (
1250- val noexcept: Long
1251-)
1252-
12531255 data class If (
12541256 @Json(name = "if")
12551257 val ifIf: Long
@@ -1273,6 +1275,7 @@ data class Is (
12731275 data class Obj4 (
12741276 val dummy: Long,
12751277 val noSuchMethod: NoSuchMethod,
1278+ val noexcept: Noexcept,
12761279 val nonatomic: Nonatomic,
12771280
12781281 @Json(name = "None")
@@ -1377,15 +1380,17 @@ data class Obj4 (
13771380 val sealed: Sealed,
13781381
13791382 @Json(name = "SEL")
1380- val sel: Sel,
1381-
1382- val select: Select
1383+ val sel: Sel
13831384 )
13841385
13851386 data class NoSuchMethod (
13861387 val noSuchMethod: Long
13871388 )
13881389
1390+data class Noexcept (
1391+ val noexcept: Long
1392+)
1393+
13891394 data class Nonatomic (
13901395 val nonatomic: Long
13911396 )
@@ -1650,10 +1655,6 @@ data class Sel (
16501655 val sel: Long
16511656 )
16521657
1653-data class Select (
1654- val select: Long
1655-)
1656-
16571658 data class Obj5 (
16581659 val dummy: Long,
16591660
@@ -1684,12 +1685,11 @@ data class Obj5 (
16841685 @Json(name = "typeof")
16851686 val obj5Typeof: Typeof,
16861687
1687- @Json(name = "var")
1688- val obj5Var: Var,
1689-
16901688 @Json(name = "true")
16911689 val purpleTrue: TrueClass,
16921690
1691+ val select: Select,
1692+
16931693 @Json(name = "Self")
16941694 val self: Self,
16951695
@@ -1753,6 +1753,9 @@ data class Obj5 (
17531753 @Json(name = "TimeZone")
17541754 val timeZone: TimeZone,
17551755
1756+ @Json(name = "to_dict")
1757+ val toDict: ToDict,
1758+
17561759 @Json(name = "to_json")
17571760 val toJSON: ToJSON,
17581761
@@ -1787,9 +1790,7 @@ data class Obj5 (
17871790 val utf8JSONWriter: Utf8JSONWriter,
17881791
17891792 @Json(name = "UUID")
1790- val uuid: UUID,
1791-
1792- val virtual: Virtual
1793+ val uuid: UUID
17931794 )
17941795
17951796 data class SelfClass (
@@ -1835,16 +1836,15 @@ data class Typeof (
18351836 val typeofTypeof: Long
18361837 )
18371838
1838-data class Var (
1839- @Json(name = "var")
1840- val varVar: Long
1841-)
1842-
18431839 data class TrueClass (
18441840 @Json(name = "true")
18451841 val trueTrue: Long
18461842 )
18471843
1844+data class Select (
1845+ val select: Long
1846+)
1847+
18481848 data class Self (
18491849 @Json(name = "Self")
18501850 val self: Long
@@ -1982,6 +1982,11 @@ data class TimeZone (
19821982 val timeZone: Long
19831983 )
19841984
1985+data class ToDict (
1986+ @Json(name = "to_dict")
1987+ val toDict: Long
1988+)
1989+
19851990 data class ToJSON (
19861991 @Json(name = "to_json")
19871992 val toJSON: Long
@@ -2072,16 +2077,16 @@ data class UUID (
20722077 val uuid: Long
20732078 )
20742079
2075-data class Virtual (
2076- val virtual: Long
2077-)
2078-
20792080 data class Obj6 (
20802081 val dummy: Long,
20812082
2083+ @Json(name = "var")
2084+ val obj6Var: Var,
2085+
20822086 @Json(name = "while")
20832087 val obj6While: While,
20842088
2089+ val virtual: Virtual,
20852090 val void: Void,
20862091 val volatile: Volatile,
20872092
@@ -2103,11 +2108,20 @@ data class Obj6 (
21032108 val yield: Yield
21042109 )
21052110
2111+data class Var (
2112+ @Json(name = "var")
2113+ val varVar: Long
2114+)
2115+
21062116 data class While (
21072117 @Json(name = "while")
21082118 val whileWhile: Long
21092119 )
21102120
2121+data class Virtual (
2122+ val virtual: Long
2123+)
2124+
21112125 data class Void (
21122126 val void: Long
21132127 )
Mkotlinxdefault / TopLevel.kt+54 −38
@@ -597,6 +597,9 @@ data class Obj2 (
597597 val friend: Friend,
598598 val from: From,
599599
600+ @SerialName("from_dict")
601+ val fromDict: FromDict,
602+
600603 @SerialName("from_json")
601604 val fromJSON: FromJSON,
602605
@@ -605,7 +608,6 @@ data class Obj2 (
605608 val get: Get,
606609 val global: Global,
607610 val go: Go,
608- val goto: Goto,
609611
610612 @SerialName("do")
611613 val obj2Do: Do,
@@ -904,6 +906,12 @@ data class From (
904906 val from: Long
905907 )
906908
909+@Serializable
910+data class FromDict (
911+ @SerialName("from_dict")
912+ val fromDict: Long
913+)
914+
907915 @Serializable
908916 data class FromJSON (
909917 @SerialName("from_json")
@@ -935,11 +943,6 @@ data class Go (
935943 val go: Long
936944 )
937945
938-@Serializable
939-data class Goto (
940- val goto: Long
941-)
942-
943946 @Serializable
944947 data class Do (
945948 @SerialName("do")
@@ -973,6 +976,7 @@ data class FalseClass (
973976 @Serializable
974977 data class Obj3 (
975978 val dummy: Long,
979+ val goto: Goto,
976980 val guard: Guard,
977981 val hasOwnProperty: HasOwnProperty,
978982 val hashCode: HashCode,
@@ -1085,8 +1089,6 @@ data class Obj3 (
10851089 @SerialName("NO")
10861090 val no: No,
10871091
1088- val noexcept: Noexcept,
1089-
10901092 @SerialName("if")
10911093 val obj3If: If,
10921094
@@ -1100,6 +1102,11 @@ data class Obj3 (
11001102 val obj3Is: Is
11011103 )
11021104
1105+@Serializable
1106+data class Goto (
1107+ val goto: Long
1108+)
1109+
11031110 @Serializable
11041111 data class Guard (
11051112 val guard: Long
@@ -1418,11 +1425,6 @@ data class No (
14181425 val no: Long
14191426 )
14201427
1421-@Serializable
1422-data class Noexcept (
1423- val noexcept: Long
1424-)
1425-
14261428 @Serializable
14271429 data class If (
14281430 @SerialName("if")
@@ -1451,6 +1453,7 @@ data class Is (
14511453 data class Obj4 (
14521454 val dummy: Long,
14531455 val noSuchMethod: NoSuchMethod,
1456+ val noexcept: Noexcept,
14541457 val nonatomic: Nonatomic,
14551458
14561459 @SerialName("None")
@@ -1555,9 +1558,7 @@ data class Obj4 (
15551558 val sealed: Sealed,
15561559
15571560 @SerialName("SEL")
1558- val sel: Sel,
1559-
1560- val select: Select
1561+ val sel: Sel
15611562 )
15621563
15631564 @Serializable
@@ -1565,6 +1566,11 @@ data class NoSuchMethod (
15651566 val noSuchMethod: Long
15661567 )
15671568
1569+@Serializable
1570+data class Noexcept (
1571+ val noexcept: Long
1572+)
1573+
15681574 @Serializable
15691575 data class Nonatomic (
15701576 val nonatomic: Long
@@ -1891,11 +1897,6 @@ data class Sel (
18911897 val sel: Long
18921898 )
18931899
1894-@Serializable
1895-data class Select (
1896- val select: Long
1897-)
1898-
18991900 @Serializable
19001901 data class Obj5 (
19011902 val dummy: Long,
@@ -1927,12 +1928,11 @@ data class Obj5 (
19271928 @SerialName("typeof")
19281929 val obj5Typeof: Typeof,
19291930
1930- @SerialName("var")
1931- val obj5Var: Var,
1932-
19331931 @SerialName("true")
19341932 val purpleTrue: TrueClass,
19351933
1934+ val select: Select,
1935+
19361936 @SerialName("Self")
19371937 val self: Self,
19381938
@@ -1996,6 +1996,9 @@ data class Obj5 (
19961996 @SerialName("TimeZone")
19971997 val timeZone: TimeZone,
19981998
1999+ @SerialName("to_dict")
2000+ val toDict: ToDict,
2001+
19992002 @SerialName("to_json")
20002003 val toJSON: ToJSON,
20012004
@@ -2030,9 +2033,7 @@ data class Obj5 (
20302033 val utf8JSONWriter: Utf8JSONWriter,
20312034
20322035 @SerialName("UUID")
2033- val uuid: UUID,
2034-
2035- val virtual: Virtual
2036+ val uuid: UUID
20362037 )
20372038
20382039 @Serializable
@@ -2087,18 +2088,17 @@ data class Typeof (
20872088 val typeofTypeof: Long
20882089 )
20892090
2090-@Serializable
2091-data class Var (
2092- @SerialName("var")
2093- val varVar: Long
2094-)
2095-
20962091 @Serializable
20972092 data class TrueClass (
20982093 @SerialName("true")
20992094 val trueTrue: Long
21002095 )
21012096
2097+@Serializable
2098+data class Select (
2099+ val select: Long
2100+)
2101+
21022102 @Serializable
21032103 data class Self (
21042104 @SerialName("Self")
@@ -2267,6 +2267,12 @@ data class TimeZone (
22672267 val timeZone: Long
22682268 )
22692269
2270+@Serializable
2271+data class ToDict (
2272+ @SerialName("to_dict")
2273+ val toDict: Long
2274+)
2275+
22702276 @Serializable
22712277 data class ToJSON (
22722278 @SerialName("to_json")
@@ -2378,18 +2384,17 @@ data class UUID (
23782384 val uuid: Long
23792385 )
23802386
2381-@Serializable
2382-data class Virtual (
2383- val virtual: Long
2384-)
2385-
23862387 @Serializable
23872388 data class Obj6 (
23882389 val dummy: Long,
23892390
2391+ @SerialName("var")
2392+ val obj6Var: Var,
2393+
23902394 @SerialName("while")
23912395 val obj6While: While,
23922396
2397+ val virtual: Virtual,
23932398 val void: Void,
23942399 val volatile: Volatile,
23952400
@@ -2411,12 +2416,23 @@ data class Obj6 (
24112416 val yield: Yield
24122417 )
24132418
2419+@Serializable
2420+data class Var (
2421+ @SerialName("var")
2422+ val varVar: Long
2423+)
2424+
24142425 @Serializable
24152426 data class While (
24162427 @SerialName("while")
24172428 val whileWhile: Long
24182429 )
24192430
2431+@Serializable
2432+data class Virtual (
2433+ val virtual: Long
2434+)
2435+
24202436 @Serializable
24212437 data class Void (
24222438 val void: Long
Mobjective-cdefault / QTTopLevel.h+40 −28
@@ -120,6 +120,7 @@
120120 @class QTFormatException;
121121 @class QTFriend;
122122 @class QTFrom;
123+@class QTFromDict;
123124 @class QTFromJSON;
124125 @class QTFunc;
125126 @class QTFunction;
@@ -135,7 +136,6 @@
135136 @class QTFalse;
136137 @class QTFloat;
137138 @class QTFor;
138-@class QTGoto;
139139 @class QTFalseClass;
140140 @class QTObj3;
141141 @class QTGuard;
@@ -193,7 +193,7 @@
193193 @class QTNative;
194194 @class QTNewtonsoft;
195195 @class QTNo;
196-@class QTNoexcept;
196+@class QTGoto;
197197 @class QTIf;
198198 @class QTInline;
199199 @class QTInt;
@@ -204,6 +204,7 @@
204204 @class QTNew;
205205 @class QTObj4;
206206 @class QTNoSuchMethod;
207+@class QTNoexcept;
207208 @class QTNone;
208209 @class QTNonlocal;
209210 @class QTNonmutating;
@@ -266,7 +267,6 @@
266267 @class QTSbyte;
267268 @class QTSealed;
268269 @class QTSel;
269-@class QTSelect;
270270 @class QTObj5;
271271 @class QTSelfClass;
272272 @class QTShort;
@@ -281,6 +281,7 @@
281281 @class QTTypeof;
282282 @class QTUnion;
283283 @class QTUnsigned;
284+@class QTSelect;
284285 @class QTSelf;
285286 @class QTSendable;
286287 @class QTSerialize;
@@ -310,6 +311,7 @@
310311 @class QTTimeOnly;
311312 @class QTTimeOnlyConverter;
312313 @class QTTimeZone;
314+@class QTToDict;
313315 @class QTToJSON;
314316 @class QTToString;
315317 @class QTTopLevelClass;
@@ -330,12 +332,12 @@
330332 @class QTUtf8JSONReader;
331333 @class QTUtf8JSONWriter;
332334 @class QTUUID;
333-@class QTVar;
334-@class QTVirtual;
335335 @class QTObj6;
336336 @class QTVoid;
337337 @class QTVolatile;
338338 @class QTWhile;
339+@class QTVar;
340+@class QTVirtual;
339341 @class QTWcharT;
340342 @class QTWeak;
341343 @class QTWhere;
@@ -754,6 +756,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
754756 @property (nonatomic, strong) QTFormatException *formatException;
755757 @property (nonatomic, strong) QTFriend *friend;
756758 @property (nonatomic, strong) QTFrom *from;
759+@property (nonatomic, strong) QTFromDict *fromDict;
757760 @property (nonatomic, strong) QTFromJSON *fromJSON;
758761 @property (nonatomic, strong) QTFunc *func;
759762 @property (nonatomic, strong) QTFunction *function;
@@ -769,7 +772,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
769772 @property (nonatomic, strong) QTFalse *obj2False;
770773 @property (nonatomic, strong) QTFloat *obj2Float;
771774 @property (nonatomic, strong) QTFor *obj2For;
772-@property (nonatomic, strong) QTGoto *obj2Goto;
773775 @property (nonatomic, strong) QTFalseClass *theFalse;
774776 @end
775777
@@ -961,6 +963,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
961963 @property (nonatomic, assign) NSInteger from;
962964 @end
963965
966+@interface QTFromDict : NSObject
967+@property (nonatomic, assign) NSInteger fromDict;
968+@end
969+
964970 @interface QTFromJSON : NSObject
965971 @property (nonatomic, assign) NSInteger fromJSON;
966972 @end
@@ -1021,10 +1027,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10211027 @property (nonatomic, assign) NSInteger forFor;
10221028 @end
10231029
1024-@interface QTGoto : NSObject
1025-@property (nonatomic, assign) NSInteger gotoGoto;
1026-@end
1027-
10281030 @interface QTFalseClass : NSObject
10291031 @property (nonatomic, assign) NSInteger falseFalse;
10301032 @end
@@ -1086,7 +1088,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10861088 @property (nonatomic, strong) QTNative *native;
10871089 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
10881090 @property (nonatomic, strong) QTNo *no;
1089-@property (nonatomic, strong) QTNoexcept *noexcept;
1091+@property (nonatomic, strong) QTGoto *obj3Goto;
10901092 @property (nonatomic, strong) QTIf *obj3If;
10911093 @property (nonatomic, strong) QTInline *obj3Inline;
10921094 @property (nonatomic, strong) QTInt *obj3Int;
@@ -1317,8 +1319,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13171319 @property (nonatomic, assign) NSInteger no;
13181320 @end
13191321
1320-@interface QTNoexcept : NSObject
1321-@property (nonatomic, assign) NSInteger noexcept;
1322+@interface QTGoto : NSObject
1323+@property (nonatomic, assign) NSInteger gotoGoto;
13221324 @end
13231325
13241326 @interface QTIf : NSObject
@@ -1356,6 +1358,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13561358 @interface QTObj4 : NSObject
13571359 @property (nonatomic, assign) NSInteger dummy;
13581360 @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
1361+@property (nonatomic, strong) QTNoexcept *noexcept;
13591362 @property (nonatomic, strong) QTNone *none;
13601363 @property (nonatomic, strong) QTNonlocal *nonlocal;
13611364 @property (nonatomic, strong) QTNonmutating *nonmutating;
@@ -1418,13 +1421,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14181421 @property (nonatomic, strong) QTSbyte *sbyte;
14191422 @property (nonatomic, strong) QTSealed *sealed;
14201423 @property (nonatomic, strong) QTSel *sel;
1421-@property (nonatomic, strong) QTSelect *select;
14221424 @end
14231425
14241426 @interface QTNoSuchMethod : NSObject
14251427 @property (nonatomic, assign) NSInteger noSuchMethod;
14261428 @end
14271429
1430+@interface QTNoexcept : NSObject
1431+@property (nonatomic, assign) NSInteger noexcept;
1432+@end
1433+
14281434 @interface QTNone : NSObject
14291435 @property (nonatomic, assign) NSInteger none;
14301436 @end
@@ -1673,10 +1679,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16731679 @property (nonatomic, assign) NSInteger sel;
16741680 @end
16751681
1676-@interface QTSelect : NSObject
1677-@property (nonatomic, assign) NSInteger select;
1678-@end
1679-
16801682 @interface QTObj5 : NSObject
16811683 @property (nonatomic, assign) NSInteger dummy;
16821684 @property (nonatomic, strong) QTSelfClass *obj5Self;
@@ -1692,6 +1694,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16921694 @property (nonatomic, strong) QTTypeof *obj5Typeof;
16931695 @property (nonatomic, strong) QTUnion *obj5Union;
16941696 @property (nonatomic, strong) QTUnsigned *obj5Unsigned;
1697+@property (nonatomic, strong) QTSelect *select;
16951698 @property (nonatomic, strong) QTSelf *self;
16961699 @property (nonatomic, strong) QTSendable *sendable;
16971700 @property (nonatomic, strong) QTSerialize *serialize;
@@ -1721,6 +1724,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17211724 @property (nonatomic, strong) QTTimeOnly *timeOnly;
17221725 @property (nonatomic, strong) QTTimeOnlyConverter *timeOnlyConverter;
17231726 @property (nonatomic, strong) QTTimeZone *timeZone;
1727+@property (nonatomic, strong) QTToDict *toDict;
17241728 @property (nonatomic, strong) QTToJSON *toJSON;
17251729 @property (nonatomic, strong) QTToString *toString;
17261730 @property (nonatomic, strong) QTTopLevelClass *topLevel;
@@ -1741,8 +1745,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17411745 @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
17421746 @property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
17431747 @property (nonatomic, strong) QTUUID *uuid;
1744-@property (nonatomic, strong) QTVar *var;
1745-@property (nonatomic, strong) QTVirtual *virtual;
17461748 @end
17471749
17481750 @interface QTSelfClass : NSObject
@@ -1797,6 +1799,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17971799 @property (nonatomic, assign) NSInteger unsignedUnsigned;
17981800 @end
17991801
1802+@interface QTSelect : NSObject
1803+@property (nonatomic, assign) NSInteger select;
1804+@end
1805+
18001806 @interface QTSelf : NSObject
18011807 @property (nonatomic, assign) NSInteger self;
18021808 @end
@@ -1913,6 +1919,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19131919 @property (nonatomic, assign) NSInteger timeZone;
19141920 @end
19151921
1922+@interface QTToDict : NSObject
1923+@property (nonatomic, assign) NSInteger toDict;
1924+@end
1925+
19161926 @interface QTToJSON : NSObject
19171927 @property (nonatomic, assign) NSInteger toJSON;
19181928 @end
@@ -1993,19 +2003,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19932003 @property (nonatomic, assign) NSInteger uuid;
19942004 @end
19952005
1996-@interface QTVar : NSObject
1997-@property (nonatomic, assign) NSInteger var;
1998-@end
1999-
2000-@interface QTVirtual : NSObject
2001-@property (nonatomic, assign) NSInteger virtual;
2002-@end
2003-
20042006 @interface QTObj6 : NSObject
20052007 @property (nonatomic, assign) NSInteger dummy;
20062008 @property (nonatomic, strong) QTVoid *obj6Void;
20072009 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20082010 @property (nonatomic, strong) QTWhile *obj6While;
2011+@property (nonatomic, strong) QTVar *var;
2012+@property (nonatomic, strong) QTVirtual *virtual;
20092013 @property (nonatomic, strong) QTWcharT *wcharT;
20102014 @property (nonatomic, strong) QTWeak *weak;
20112015 @property (nonatomic, strong) QTWhere *where;
@@ -2029,6 +2033,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20292033 @property (nonatomic, assign) NSInteger whileWhile;
20302034 @end
20312035
2036+@interface QTVar : NSObject
2037+@property (nonatomic, assign) NSInteger var;
2038+@end
2039+
2040+@interface QTVirtual : NSObject
2041+@property (nonatomic, assign) NSInteger virtual;
2042+@end
2043+
20322044 @interface QTWcharT : NSObject
20332045 @property (nonatomic, assign) NSInteger wcharT;
20342046 @end
Mobjective-cdefault / QTTopLevel.m+366 −242
@@ -578,6 +578,11 @@ NS_ASSUME_NONNULL_BEGIN
578578 - (NSDictionary *)JSONDictionary;
579579 @end
580580
581+@interface QTFromDict (JSONConversion)
582++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
583+- (NSDictionary *)JSONDictionary;
584+@end
585+
581586 @interface QTFromJSON (JSONConversion)
582587 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
583588 - (NSDictionary *)JSONDictionary;
@@ -653,11 +658,6 @@ NS_ASSUME_NONNULL_BEGIN
653658 - (NSDictionary *)JSONDictionary;
654659 @end
655660
656-@interface QTGoto (JSONConversion)
657-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
658-- (NSDictionary *)JSONDictionary;
659-@end
660-
661661 @interface QTFalseClass (JSONConversion)
662662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
663663 - (NSDictionary *)JSONDictionary;
@@ -943,7 +943,7 @@ NS_ASSUME_NONNULL_BEGIN
943943 - (NSDictionary *)JSONDictionary;
944944 @end
945945
946-@interface QTNoexcept (JSONConversion)
946+@interface QTGoto (JSONConversion)
947947 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
948948 - (NSDictionary *)JSONDictionary;
949949 @end
@@ -998,6 +998,11 @@ NS_ASSUME_NONNULL_BEGIN
998998 - (NSDictionary *)JSONDictionary;
999999 @end
10001000
1001+@interface QTNoexcept (JSONConversion)
1002++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1003+- (NSDictionary *)JSONDictionary;
1004+@end
1005+
10011006 @interface QTNone (JSONConversion)
10021007 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
10031008 - (NSDictionary *)JSONDictionary;
@@ -1308,11 +1313,6 @@ NS_ASSUME_NONNULL_BEGIN
13081313 - (NSDictionary *)JSONDictionary;
13091314 @end
13101315
1311-@interface QTSelect (JSONConversion)
1312-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1313-- (NSDictionary *)JSONDictionary;
1314-@end
1315-
13161316 @interface QTObj5 (JSONConversion)
13171317 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13181318 - (NSDictionary *)JSONDictionary;
@@ -1383,6 +1383,11 @@ NS_ASSUME_NONNULL_BEGIN
13831383 - (NSDictionary *)JSONDictionary;
13841384 @end
13851385
1386+@interface QTSelect (JSONConversion)
1387++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1388+- (NSDictionary *)JSONDictionary;
1389+@end
1390+
13861391 @interface QTSelf (JSONConversion)
13871392 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881393 - (NSDictionary *)JSONDictionary;
@@ -1528,6 +1533,11 @@ NS_ASSUME_NONNULL_BEGIN
15281533 - (NSDictionary *)JSONDictionary;
15291534 @end
15301535
1536+@interface QTToDict (JSONConversion)
1537++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1538+- (NSDictionary *)JSONDictionary;
1539+@end
1540+
15311541 @interface QTToJSON (JSONConversion)
15321542 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
15331543 - (NSDictionary *)JSONDictionary;
@@ -1628,32 +1638,32 @@ NS_ASSUME_NONNULL_BEGIN
16281638 - (NSDictionary *)JSONDictionary;
16291639 @end
16301640
1631-@interface QTVar (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16321642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331643 - (NSDictionary *)JSONDictionary;
16341644 @end
16351645
1636-@interface QTVirtual (JSONConversion)
1646+@interface QTVoid (JSONConversion)
16371647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381648 - (NSDictionary *)JSONDictionary;
16391649 @end
16401650
1641-@interface QTObj6 (JSONConversion)
1651+@interface QTVolatile (JSONConversion)
16421652 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431653 - (NSDictionary *)JSONDictionary;
16441654 @end
16451655
1646-@interface QTVoid (JSONConversion)
1656+@interface QTWhile (JSONConversion)
16471657 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16481658 - (NSDictionary *)JSONDictionary;
16491659 @end
16501660
1651-@interface QTVolatile (JSONConversion)
1661+@interface QTVar (JSONConversion)
16521662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16531663 - (NSDictionary *)JSONDictionary;
16541664 @end
16551665
1656-@interface QTWhile (JSONConversion)
1666+@interface QTVirtual (JSONConversion)
16571667 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16581668 - (NSDictionary *)JSONDictionary;
16591669 @end
@@ -5301,6 +5311,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53015311 @"FormatException": @"formatException",
53025312 @"friend": @"friend",
53035313 @"from": @"from",
5314+ @"from_dict": @"fromDict",
53045315 @"from_json": @"fromJSON",
53055316 @"func": @"func",
53065317 @"function": @"function",
@@ -5316,7 +5327,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53165327 @"False": @"obj2False",
53175328 @"float": @"obj2Float",
53185329 @"for": @"obj2For",
5319- @"goto": @"obj2Goto",
53205330 @"false": @"theFalse",
53215331 };
53225332 }
@@ -5378,6 +5388,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53785388 if (![dict[@"FormatException"] isKindOfClass:NSDictionary.class]) return nil;
53795389 if (![dict[@"friend"] isKindOfClass:NSDictionary.class]) return nil;
53805390 if (![dict[@"from"] isKindOfClass:NSDictionary.class]) return nil;
5391+ if (![dict[@"from_dict"] isKindOfClass:NSDictionary.class]) return nil;
53815392 if (![dict[@"from_json"] isKindOfClass:NSDictionary.class]) return nil;
53825393 if (![dict[@"func"] isKindOfClass:NSDictionary.class]) return nil;
53835394 if (![dict[@"function"] isKindOfClass:NSDictionary.class]) return nil;
@@ -5393,7 +5404,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53935404 if (![dict[@"False"] isKindOfClass:NSDictionary.class]) return nil;
53945405 if (![dict[@"float"] isKindOfClass:NSDictionary.class]) return nil;
53955406 if (![dict[@"for"] isKindOfClass:NSDictionary.class]) return nil;
5396- if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
53975407 if (![dict[@"false"] isKindOfClass:NSDictionary.class]) return nil;
53985408 [self setValuesForKeysWithDictionary:dict];
53995409 _dateFormatter = [QTDateFormatter fromJSONDictionary:(id)_dateFormatter];
@@ -5490,6 +5500,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
54905500 if (!_friend && dict[@"friend"] && ![dict[@"friend"] isKindOfClass:NSNull.class]) return nil;
54915501 _from = [QTFrom fromJSONDictionary:(id)_from];
54925502 if (!_from && dict[@"from"] && ![dict[@"from"] isKindOfClass:NSNull.class]) return nil;
5503+ _fromDict = [QTFromDict fromJSONDictionary:(id)_fromDict];
5504+ if (!_fromDict && dict[@"from_dict"] && ![dict[@"from_dict"] isKindOfClass:NSNull.class]) return nil;
54935505 _fromJSON = [QTFromJSON fromJSONDictionary:(id)_fromJSON];
54945506 if (!_fromJSON && dict[@"from_json"] && ![dict[@"from_json"] isKindOfClass:NSNull.class]) return nil;
54955507 _func = [QTFunc fromJSONDictionary:(id)_func];
@@ -5520,8 +5532,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
55205532 if (!_obj2Float && dict[@"float"] && ![dict[@"float"] isKindOfClass:NSNull.class]) return nil;
55215533 _obj2For = [QTFor fromJSONDictionary:(id)_obj2For];
55225534 if (!_obj2For && dict[@"for"] && ![dict[@"for"] isKindOfClass:NSNull.class]) return nil;
5523- _obj2Goto = [QTGoto fromJSONDictionary:(id)_obj2Goto];
5524- if (!_obj2Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
55255535 _theFalse = [QTFalseClass fromJSONDictionary:(id)_theFalse];
55265536 if (!_theFalse && dict[@"false"] && ![dict[@"false"] isKindOfClass:NSNull.class]) return nil;
55275537 }
@@ -5600,6 +5610,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
56005610 @"FormatException": [_formatException JSONDictionary],
56015611 @"friend": [_friend JSONDictionary],
56025612 @"from": [_from JSONDictionary],
5613+ @"from_dict": [_fromDict JSONDictionary],
56035614 @"from_json": [_fromJSON JSONDictionary],
56045615 @"func": [_func JSONDictionary],
56055616 @"function": [_function JSONDictionary],
@@ -5615,7 +5626,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
56155626 @"False": [_obj2False JSONDictionary],
56165627 @"float": [_obj2Float JSONDictionary],
56175628 @"for": [_obj2For JSONDictionary],
5618- @"goto": [_obj2Goto JSONDictionary],
56195629 @"false": [_theFalse JSONDictionary],
56205630 }];
56215631
@@ -7751,6 +7761,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
77517761 }
77527762 @end
77537763
7764+@implementation QTFromDict
7765++ (NSDictionary<NSString *, NSString *> *)properties
7766+{
7767+ static NSDictionary<NSString *, NSString *> *properties;
7768+ return properties = properties ? properties : @{
7769+ @"from_dict": @"fromDict",
7770+ };
7771+}
7772+
7773++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
7774+{
7775+ return [dict isKindOfClass:NSDictionary.class] ? [[QTFromDict alloc] initWithJSONDictionary:dict] : nil;
7776+}
7777+
7778+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7779+{
7780+ if (self = [super init]) {
7781+ if (![dict[@"from_dict"] isKindOfClass:NSNumber.class]) return nil;
7782+ if ([dict[@"from_dict"] doubleValue] != [dict[@"from_dict"] longLongValue]) return nil;
7783+ [self setValuesForKeysWithDictionary:dict];
7784+ }
7785+ return self;
7786+}
7787+
7788+- (void)setValue:(nullable id)value forKey:(NSString *)key
7789+{
7790+ id resolved = QTFromDict.properties[key];
7791+ if (resolved) [super setValue:value forKey:resolved];
7792+}
7793+
7794+- (void)setNilValueForKey:(NSString *)key
7795+{
7796+ id resolved = QTFromDict.properties[key];
7797+ if (resolved) [super setValue:@(0) forKey:resolved];
7798+}
7799+
7800+- (NSDictionary *)JSONDictionary
7801+{
7802+ id dict = [[self dictionaryWithValuesForKeys:QTFromDict.properties.allValues] mutableCopy];
7803+
7804+ for (id jsonName in QTFromDict.properties) {
7805+ id propertyName = QTFromDict.properties[jsonName];
7806+ if (![jsonName isEqualToString:propertyName]) {
7807+ dict[jsonName] = dict[propertyName];
7808+ [dict removeObjectForKey:propertyName];
7809+ }
7810+ }
7811+
7812+ return dict;
7813+}
7814+@end
7815+
77547816 @implementation QTFromJSON
77557817 + (NSDictionary<NSString *, NSString *> *)properties
77567818 {
@@ -8481,58 +8543,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
84818543 }
84828544 @end
84838545
8484-@implementation QTGoto
8485-+ (NSDictionary<NSString *, NSString *> *)properties
8486-{
8487- static NSDictionary<NSString *, NSString *> *properties;
8488- return properties = properties ? properties : @{
8489- @"goto": @"gotoGoto",
8490- };
8491-}
8492-
8493-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
8494-{
8495- return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil;
8496-}
8497-
8498-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8499-{
8500- if (self = [super init]) {
8501- if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil;
8502- if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil;
8503- [self setValuesForKeysWithDictionary:dict];
8504- }
8505- return self;
8506-}
8507-
8508-- (void)setValue:(nullable id)value forKey:(NSString *)key
8509-{
8510- id resolved = QTGoto.properties[key];
8511- if (resolved) [super setValue:value forKey:resolved];
8512-}
8513-
8514-- (void)setNilValueForKey:(NSString *)key
8515-{
8516- id resolved = QTGoto.properties[key];
8517- if (resolved) [super setValue:@(0) forKey:resolved];
8518-}
8519-
8520-- (NSDictionary *)JSONDictionary
8521-{
8522- id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy];
8523-
8524- for (id jsonName in QTGoto.properties) {
8525- id propertyName = QTGoto.properties[jsonName];
8526- if (![jsonName isEqualToString:propertyName]) {
8527- dict[jsonName] = dict[propertyName];
8528- [dict removeObjectForKey:propertyName];
8529- }
8530- }
8531-
8532- return dict;
8533-}
8534-@end
8535-
85368546 @implementation QTFalseClass
85378547 + (NSDictionary<NSString *, NSString *> *)properties
85388548 {
@@ -8646,7 +8656,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86468656 @"native": @"native",
86478657 @"newtonsoft": @"newtonsoft",
86488658 @"NO": @"no",
8649- @"noexcept": @"noexcept",
8659+ @"goto": @"obj3Goto",
86508660 @"if": @"obj3If",
86518661 @"inline": @"obj3Inline",
86528662 @"int": @"obj3Int",
@@ -8723,7 +8733,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87238733 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
87248734 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
87258735 if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
8726- if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
8736+ if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
87278737 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
87288738 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
87298739 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8843,8 +8853,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88438853 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
88448854 _no = [QTNo fromJSONDictionary:(id)_no];
88458855 if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
8846- _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
8847- if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
8856+ _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto];
8857+ if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
88488858 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
88498859 if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil;
88508860 _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline];
@@ -8945,7 +8955,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89458955 @"native": [_native JSONDictionary],
89468956 @"newtonsoft": [_newtonsoft JSONDictionary],
89478957 @"NO": [_no JSONDictionary],
8948- @"noexcept": [_noexcept JSONDictionary],
8958+ @"goto": [_obj3Goto JSONDictionary],
89498959 @"if": [_obj3If JSONDictionary],
89508960 @"inline": [_obj3Inline JSONDictionary],
89518961 @"int": [_obj3Int JSONDictionary],
@@ -11509,25 +11519,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1150911519 }
1151011520 @end
1151111521
11512-@implementation QTNoexcept
11522+@implementation QTGoto
1151311523 + (NSDictionary<NSString *, NSString *> *)properties
1151411524 {
1151511525 static NSDictionary<NSString *, NSString *> *properties;
1151611526 return properties = properties ? properties : @{
11517- @"noexcept": @"noexcept",
11527+ @"goto": @"gotoGoto",
1151811528 };
1151911529 }
1152011530
1152111531 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1152211532 {
11523- return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
11533+ return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil;
1152411534 }
1152511535
1152611536 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1152711537 {
1152811538 if (self = [super init]) {
11529- if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
11530- if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
11539+ if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil;
11540+ if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil;
1153111541 [self setValuesForKeysWithDictionary:dict];
1153211542 }
1153311543 return self;
@@ -11535,19 +11545,29 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1153511545
1153611546 - (void)setValue:(nullable id)value forKey:(NSString *)key
1153711547 {
11538- id resolved = QTNoexcept.properties[key];
11548+ id resolved = QTGoto.properties[key];
1153911549 if (resolved) [super setValue:value forKey:resolved];
1154011550 }
1154111551
1154211552 - (void)setNilValueForKey:(NSString *)key
1154311553 {
11544- id resolved = QTNoexcept.properties[key];
11554+ id resolved = QTGoto.properties[key];
1154511555 if (resolved) [super setValue:@(0) forKey:resolved];
1154611556 }
1154711557
1154811558 - (NSDictionary *)JSONDictionary
1154911559 {
11550- return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
11560+ id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy];
11561+
11562+ for (id jsonName in QTGoto.properties) {
11563+ id propertyName = QTGoto.properties[jsonName];
11564+ if (![jsonName isEqualToString:propertyName]) {
11565+ dict[jsonName] = dict[propertyName];
11566+ [dict removeObjectForKey:propertyName];
11567+ }
11568+ }
11569+
11570+ return dict;
1155111571 }
1155211572 @end
1155311573
@@ -11974,6 +11994,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1197411994 return properties = properties ? properties : @{
1197511995 @"dummy": @"dummy",
1197611996 @"noSuchMethod": @"noSuchMethod",
11997+ @"noexcept": @"noexcept",
1197711998 @"None": @"none",
1197811999 @"nonlocal": @"nonlocal",
1197912000 @"nonmutating": @"nonmutating",
@@ -12036,7 +12057,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1203612057 @"sbyte": @"sbyte",
1203712058 @"sealed": @"sealed",
1203812059 @"SEL": @"sel",
12039- @"select": @"select",
1204012060 };
1204112061 }
1204212062
@@ -12051,6 +12071,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1205112071 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1205212072 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
1205312073 if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
12074+ if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
1205412075 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
1205512076 if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil;
1205612077 if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12113,10 +12134,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1211312134 if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
1211412135 if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
1211512136 if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
12116- if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1211712137 [self setValuesForKeysWithDictionary:dict];
1211812138 _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
1211912139 if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
12140+ _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
12141+ if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
1212012142 _none = [QTNone fromJSONDictionary:(id)_none];
1212112143 if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil;
1212212144 _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal];
@@ -12241,8 +12263,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1224112263 if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
1224212264 _sel = [QTSel fromJSONDictionary:(id)_sel];
1224312265 if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
12244- _select = [QTSelect fromJSONDictionary:(id)_select];
12245- if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1224612266 }
1224712267 return self;
1224812268 }
@@ -12273,6 +12293,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1227312293
1227412294 [dict addEntriesFromDictionary:@{
1227512295 @"noSuchMethod": [_noSuchMethod JSONDictionary],
12296+ @"noexcept": [_noexcept JSONDictionary],
1227612297 @"None": [_none JSONDictionary],
1227712298 @"nonlocal": [_nonlocal JSONDictionary],
1227812299 @"nonmutating": [_nonmutating JSONDictionary],
@@ -12335,7 +12356,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1233512356 @"sbyte": [_sbyte JSONDictionary],
1233612357 @"sealed": [_sealed JSONDictionary],
1233712358 @"SEL": [_sel JSONDictionary],
12338- @"select": [_select JSONDictionary],
1233912359 }];
1234012360
1234112361 return dict;
@@ -12384,6 +12404,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1238412404 }
1238512405 @end
1238612406
12407+@implementation QTNoexcept
12408++ (NSDictionary<NSString *, NSString *> *)properties
12409+{
12410+ static NSDictionary<NSString *, NSString *> *properties;
12411+ return properties = properties ? properties : @{
12412+ @"noexcept": @"noexcept",
12413+ };
12414+}
12415+
12416++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12417+{
12418+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
12419+}
12420+
12421+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12422+{
12423+ if (self = [super init]) {
12424+ if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
12425+ if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
12426+ [self setValuesForKeysWithDictionary:dict];
12427+ }
12428+ return self;
12429+}
12430+
12431+- (void)setValue:(nullable id)value forKey:(NSString *)key
12432+{
12433+ id resolved = QTNoexcept.properties[key];
12434+ if (resolved) [super setValue:value forKey:resolved];
12435+}
12436+
12437+- (void)setNilValueForKey:(NSString *)key
12438+{
12439+ id resolved = QTNoexcept.properties[key];
12440+ if (resolved) [super setValue:@(0) forKey:resolved];
12441+}
12442+
12443+- (NSDictionary *)JSONDictionary
12444+{
12445+ return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
12446+}
12447+@end
12448+
1238712449 @implementation QTNone
1238812450 + (NSDictionary<NSString *, NSString *> *)properties
1238912451 {
@@ -15158,67 +15220,26 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1515815220 }
1515915221 @end
1516015222
15161-@implementation QTSelect
15223+@implementation QTObj5
1516215224 + (NSDictionary<NSString *, NSString *> *)properties
1516315225 {
1516415226 static NSDictionary<NSString *, NSString *> *properties;
1516515227 return properties = properties ? properties : @{
15228+ @"dummy": @"dummy",
15229+ @"self": @"obj5Self",
15230+ @"short": @"obj5Short",
15231+ @"signed": @"obj5Signed",
15232+ @"sizeof": @"obj5Sizeof",
15233+ @"static": @"obj5Static",
15234+ @"struct": @"obj5Struct",
15235+ @"switch": @"obj5Switch",
15236+ @"True": @"obj5True",
15237+ @"type": @"obj5Type",
15238+ @"typedef": @"obj5Typedef",
15239+ @"typeof": @"obj5Typeof",
15240+ @"union": @"obj5Union",
15241+ @"unsigned": @"obj5Unsigned",
1516615242 @"select": @"select",
15167- };
15168-}
15169-
15170-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15171-{
15172- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
15173-}
15174-
15175-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15176-{
15177- if (self = [super init]) {
15178- if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
15179- if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
15180- [self setValuesForKeysWithDictionary:dict];
15181- }
15182- return self;
15183-}
15184-
15185-- (void)setValue:(nullable id)value forKey:(NSString *)key
15186-{
15187- id resolved = QTSelect.properties[key];
15188- if (resolved) [super setValue:value forKey:resolved];
15189-}
15190-
15191-- (void)setNilValueForKey:(NSString *)key
15192-{
15193- id resolved = QTSelect.properties[key];
15194- if (resolved) [super setValue:@(0) forKey:resolved];
15195-}
15196-
15197-- (NSDictionary *)JSONDictionary
15198-{
15199- return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
15200-}
15201-@end
15202-
15203-@implementation QTObj5
15204-+ (NSDictionary<NSString *, NSString *> *)properties
15205-{
15206- static NSDictionary<NSString *, NSString *> *properties;
15207- return properties = properties ? properties : @{
15208- @"dummy": @"dummy",
15209- @"self": @"obj5Self",
15210- @"short": @"obj5Short",
15211- @"signed": @"obj5Signed",
15212- @"sizeof": @"obj5Sizeof",
15213- @"static": @"obj5Static",
15214- @"struct": @"obj5Struct",
15215- @"switch": @"obj5Switch",
15216- @"True": @"obj5True",
15217- @"type": @"obj5Type",
15218- @"typedef": @"obj5Typedef",
15219- @"typeof": @"obj5Typeof",
15220- @"union": @"obj5Union",
15221- @"unsigned": @"obj5Unsigned",
1522215243 @"Self": @"self",
1522315244 @"Sendable": @"sendable",
1522415245 @"serialize": @"serialize",
@@ -15248,6 +15269,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1524815269 @"TimeOnly": @"timeOnly",
1524915270 @"TimeOnlyConverter": @"timeOnlyConverter",
1525015271 @"TimeZone": @"timeZone",
15272+ @"to_dict": @"toDict",
1525115273 @"to_json": @"toJSON",
1525215274 @"toString": @"toString",
1525315275 @"top_level": @"topLevel",
@@ -15268,8 +15290,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1526815290 @"Utf8JsonReader": @"utf8JSONReader",
1526915291 @"Utf8JsonWriter": @"utf8JSONWriter",
1527015292 @"UUID": @"uuid",
15271- @"var": @"var",
15272- @"virtual": @"virtual",
1527315293 };
1527415294 }
1527515295
@@ -15296,6 +15316,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1529615316 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1529715317 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
1529815318 if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
15319+ if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1529915320 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1530015321 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
1530115322 if (![dict[@"serialize"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15325,6 +15346,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1532515346 if (![dict[@"TimeOnly"] isKindOfClass:NSDictionary.class]) return nil;
1532615347 if (![dict[@"TimeOnlyConverter"] isKindOfClass:NSDictionary.class]) return nil;
1532715348 if (![dict[@"TimeZone"] isKindOfClass:NSDictionary.class]) return nil;
15349+ if (![dict[@"to_dict"] isKindOfClass:NSDictionary.class]) return nil;
1532815350 if (![dict[@"to_json"] isKindOfClass:NSDictionary.class]) return nil;
1532915351 if (![dict[@"toString"] isKindOfClass:NSDictionary.class]) return nil;
1533015352 if (![dict[@"top_level"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15345,8 +15367,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1534515367 if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
1534615368 if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
1534715369 if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
15348- if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
15349- if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
1535015370 [self setValuesForKeysWithDictionary:dict];
1535115371 _obj5Self = [QTSelfClass fromJSONDictionary:(id)_obj5Self];
1535215372 if (!_obj5Self && dict[@"self"] && ![dict[@"self"] isKindOfClass:NSNull.class]) return nil;
@@ -15374,6 +15394,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1537415394 if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
1537515395 _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned];
1537615396 if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
15397+ _select = [QTSelect fromJSONDictionary:(id)_select];
15398+ if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1537715399 _self = [QTSelf fromJSONDictionary:(id)_self];
1537815400 if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil;
1537915401 _sendable = [QTSendable fromJSONDictionary:(id)_sendable];
@@ -15432,6 +15454,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1543215454 if (!_timeOnlyConverter && dict[@"TimeOnlyConverter"] && ![dict[@"TimeOnlyConverter"] isKindOfClass:NSNull.class]) return nil;
1543315455 _timeZone = [QTTimeZone fromJSONDictionary:(id)_timeZone];
1543415456 if (!_timeZone && dict[@"TimeZone"] && ![dict[@"TimeZone"] isKindOfClass:NSNull.class]) return nil;
15457+ _toDict = [QTToDict fromJSONDictionary:(id)_toDict];
15458+ if (!_toDict && dict[@"to_dict"] && ![dict[@"to_dict"] isKindOfClass:NSNull.class]) return nil;
1543515459 _toJSON = [QTToJSON fromJSONDictionary:(id)_toJSON];
1543615460 if (!_toJSON && dict[@"to_json"] && ![dict[@"to_json"] isKindOfClass:NSNull.class]) return nil;
1543715461 _toString = [QTToString fromJSONDictionary:(id)_toString];
@@ -15472,10 +15496,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1547215496 if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
1547315497 _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
1547415498 if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
15475- _var = [QTVar fromJSONDictionary:(id)_var];
15476- if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
15477- _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
15478- if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
1547915499 }
1548015500 return self;
1548115501 }
@@ -15518,6 +15538,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1551815538 @"typeof": [_obj5Typeof JSONDictionary],
1551915539 @"union": [_obj5Union JSONDictionary],
1552015540 @"unsigned": [_obj5Unsigned JSONDictionary],
15541+ @"select": [_select JSONDictionary],
1552115542 @"Self": [_self JSONDictionary],
1552215543 @"Sendable": [_sendable JSONDictionary],
1552315544 @"serialize": [_serialize JSONDictionary],
@@ -15547,6 +15568,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1554715568 @"TimeOnly": [_timeOnly JSONDictionary],
1554815569 @"TimeOnlyConverter": [_timeOnlyConverter JSONDictionary],
1554915570 @"TimeZone": [_timeZone JSONDictionary],
15571+ @"to_dict": [_toDict JSONDictionary],
1555015572 @"to_json": [_toJSON JSONDictionary],
1555115573 @"toString": [_toString JSONDictionary],
1555215574 @"top_level": [_topLevel JSONDictionary],
@@ -15567,8 +15589,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1556715589 @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
1556815590 @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
1556915591 @"UUID": [_uuid JSONDictionary],
15570- @"var": [_var JSONDictionary],
15571- @"virtual": [_virtual JSONDictionary],
1557215592 }];
1557315593
1557415594 return dict;
@@ -16231,6 +16251,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1623116251 }
1623216252 @end
1623316253
16254+@implementation QTSelect
16255++ (NSDictionary<NSString *, NSString *> *)properties
16256+{
16257+ static NSDictionary<NSString *, NSString *> *properties;
16258+ return properties = properties ? properties : @{
16259+ @"select": @"select",
16260+ };
16261+}
16262+
16263++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16264+{
16265+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
16266+}
16267+
16268+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16269+{
16270+ if (self = [super init]) {
16271+ if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16272+ if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
16273+ [self setValuesForKeysWithDictionary:dict];
16274+ }
16275+ return self;
16276+}
16277+
16278+- (void)setValue:(nullable id)value forKey:(NSString *)key
16279+{
16280+ id resolved = QTSelect.properties[key];
16281+ if (resolved) [super setValue:value forKey:resolved];
16282+}
16283+
16284+- (void)setNilValueForKey:(NSString *)key
16285+{
16286+ id resolved = QTSelect.properties[key];
16287+ if (resolved) [super setValue:@(0) forKey:resolved];
16288+}
16289+
16290+- (NSDictionary *)JSONDictionary
16291+{
16292+ return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
16293+}
16294+@end
16295+
1623416296 @implementation QTSelf
1623516297 + (NSDictionary<NSString *, NSString *> *)properties
1623616298 {
@@ -17589,6 +17651,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1758917651 }
1759017652 @end
1759117653
17654+@implementation QTToDict
17655++ (NSDictionary<NSString *, NSString *> *)properties
17656+{
17657+ static NSDictionary<NSString *, NSString *> *properties;
17658+ return properties = properties ? properties : @{
17659+ @"to_dict": @"toDict",
17660+ };
17661+}
17662+
17663++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
17664+{
17665+ return [dict isKindOfClass:NSDictionary.class] ? [[QTToDict alloc] initWithJSONDictionary:dict] : nil;
17666+}
17667+
17668+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
17669+{
17670+ if (self = [super init]) {
17671+ if (![dict[@"to_dict"] isKindOfClass:NSNumber.class]) return nil;
17672+ if ([dict[@"to_dict"] doubleValue] != [dict[@"to_dict"] longLongValue]) return nil;
17673+ [self setValuesForKeysWithDictionary:dict];
17674+ }
17675+ return self;
17676+}
17677+
17678+- (void)setValue:(nullable id)value forKey:(NSString *)key
17679+{
17680+ id resolved = QTToDict.properties[key];
17681+ if (resolved) [super setValue:value forKey:resolved];
17682+}
17683+
17684+- (void)setNilValueForKey:(NSString *)key
17685+{
17686+ id resolved = QTToDict.properties[key];
17687+ if (resolved) [super setValue:@(0) forKey:resolved];
17688+}
17689+
17690+- (NSDictionary *)JSONDictionary
17691+{
17692+ id dict = [[self dictionaryWithValuesForKeys:QTToDict.properties.allValues] mutableCopy];
17693+
17694+ for (id jsonName in QTToDict.properties) {
17695+ id propertyName = QTToDict.properties[jsonName];
17696+ if (![jsonName isEqualToString:propertyName]) {
17697+ dict[jsonName] = dict[propertyName];
17698+ [dict removeObjectForKey:propertyName];
17699+ }
17700+ }
17701+
17702+ return dict;
17703+}
17704+@end
17705+
1759217706 @implementation QTToJSON
1759317707 + (NSDictionary<NSString *, NSString *> *)properties
1759417708 {
@@ -18489,90 +18603,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1848918603 }
1849018604 @end
1849118605
18492-@implementation QTVar
18493-+ (NSDictionary<NSString *, NSString *> *)properties
18494-{
18495- static NSDictionary<NSString *, NSString *> *properties;
18496- return properties = properties ? properties : @{
18497- @"var": @"var",
18498- };
18499-}
18500-
18501-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18502-{
18503- return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
18504-}
18505-
18506-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18507-{
18508- if (self = [super init]) {
18509- if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
18510- if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
18511- [self setValuesForKeysWithDictionary:dict];
18512- }
18513- return self;
18514-}
18515-
18516-- (void)setValue:(nullable id)value forKey:(NSString *)key
18517-{
18518- id resolved = QTVar.properties[key];
18519- if (resolved) [super setValue:value forKey:resolved];
18520-}
18521-
18522-- (void)setNilValueForKey:(NSString *)key
18523-{
18524- id resolved = QTVar.properties[key];
18525- if (resolved) [super setValue:@(0) forKey:resolved];
18526-}
18527-
18528-- (NSDictionary *)JSONDictionary
18529-{
18530- return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
18531-}
18532-@end
18533-
18534-@implementation QTVirtual
18535-+ (NSDictionary<NSString *, NSString *> *)properties
18536-{
18537- static NSDictionary<NSString *, NSString *> *properties;
18538- return properties = properties ? properties : @{
18539- @"virtual": @"virtual",
18540- };
18541-}
18542-
18543-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18544-{
18545- return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
18546-}
18547-
18548-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18549-{
18550- if (self = [super init]) {
18551- if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
18552- if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
18553- [self setValuesForKeysWithDictionary:dict];
18554- }
18555- return self;
18556-}
18557-
18558-- (void)setValue:(nullable id)value forKey:(NSString *)key
18559-{
18560- id resolved = QTVirtual.properties[key];
18561- if (resolved) [super setValue:value forKey:resolved];
18562-}
18563-
18564-- (void)setNilValueForKey:(NSString *)key
18565-{
18566- id resolved = QTVirtual.properties[key];
18567- if (resolved) [super setValue:@(0) forKey:resolved];
18568-}
18569-
18570-- (NSDictionary *)JSONDictionary
18571-{
18572- return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
18573-}
18574-@end
18575-
1857618606 @implementation QTObj6
1857718607 + (NSDictionary<NSString *, NSString *> *)properties
1857818608 {
@@ -18582,6 +18612,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1858218612 @"void": @"obj6Void",
1858318613 @"volatile": @"obj6Volatile",
1858418614 @"while": @"obj6While",
18615+ @"var": @"var",
18616+ @"virtual": @"virtual",
1858518617 @"wchar_t": @"wcharT",
1858618618 @"weak": @"weak",
1858718619 @"where": @"where",
@@ -18607,6 +18639,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1860718639 if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
1860818640 if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
1860918641 if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18642+ if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
18643+ if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
1861018644 if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
1861118645 if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
1861218646 if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18623,6 +18657,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1862318657 if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
1862418658 _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
1862518659 if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18660+ _var = [QTVar fromJSONDictionary:(id)_var];
18661+ if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
18662+ _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
18663+ if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
1862618664 _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
1862718665 if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
1862818666 _weak = [QTWeak fromJSONDictionary:(id)_weak];
@@ -18673,6 +18711,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1867318711 @"void": [_obj6Void JSONDictionary],
1867418712 @"volatile": [_obj6Volatile JSONDictionary],
1867518713 @"while": [_obj6While JSONDictionary],
18714+ @"var": [_var JSONDictionary],
18715+ @"virtual": [_virtual JSONDictionary],
1867618716 @"wchar_t": [_wcharT JSONDictionary],
1867718717 @"weak": [_weak JSONDictionary],
1867818718 @"where": [_where JSONDictionary],
@@ -18844,6 +18884,90 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1884418884 }
1884518885 @end
1884618886
18887+@implementation QTVar
18888++ (NSDictionary<NSString *, NSString *> *)properties
18889+{
18890+ static NSDictionary<NSString *, NSString *> *properties;
18891+ return properties = properties ? properties : @{
18892+ @"var": @"var",
18893+ };
18894+}
18895+
18896++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18897+{
18898+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
18899+}
18900+
18901+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18902+{
18903+ if (self = [super init]) {
18904+ if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
18905+ if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
18906+ [self setValuesForKeysWithDictionary:dict];
18907+ }
18908+ return self;
18909+}
18910+
18911+- (void)setValue:(nullable id)value forKey:(NSString *)key
18912+{
18913+ id resolved = QTVar.properties[key];
18914+ if (resolved) [super setValue:value forKey:resolved];
18915+}
18916+
18917+- (void)setNilValueForKey:(NSString *)key
18918+{
18919+ id resolved = QTVar.properties[key];
18920+ if (resolved) [super setValue:@(0) forKey:resolved];
18921+}
18922+
18923+- (NSDictionary *)JSONDictionary
18924+{
18925+ return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
18926+}
18927+@end
18928+
18929+@implementation QTVirtual
18930++ (NSDictionary<NSString *, NSString *> *)properties
18931+{
18932+ static NSDictionary<NSString *, NSString *> *properties;
18933+ return properties = properties ? properties : @{
18934+ @"virtual": @"virtual",
18935+ };
18936+}
18937+
18938++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18939+{
18940+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
18941+}
18942+
18943+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18944+{
18945+ if (self = [super init]) {
18946+ if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
18947+ if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
18948+ [self setValuesForKeysWithDictionary:dict];
18949+ }
18950+ return self;
18951+}
18952+
18953+- (void)setValue:(nullable id)value forKey:(NSString *)key
18954+{
18955+ id resolved = QTVirtual.properties[key];
18956+ if (resolved) [super setValue:value forKey:resolved];
18957+}
18958+
18959+- (void)setNilValueForKey:(NSString *)key
18960+{
18961+ id resolved = QTVirtual.properties[key];
18962+ if (resolved) [super setValue:@(0) forKey:resolved];
18963+}
18964+
18965+- (NSDictionary *)JSONDictionary
18966+{
18967+ return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
18968+}
18969+@end
18970+
1884718971 @implementation QTWcharT
1884818972 + (NSDictionary<NSString *, NSString *> *)properties
1884918973 {
Mphpdefault / TopLevel.php+1,324 −1,006
@@ -10787,13 +10787,13 @@ class Obj2 {
1078710787 private FormatException $formatException; // json:FormatException Required
1078810788 private Friend $friend; // json:friend Required
1078910789 private From $from; // json:from Required
10790+ private FromDict $fromDict; // json:from_dict Required
1079010791 private FromJSON $fromJSON; // json:from_json Required
1079110792 private Func $func; // json:func Required
1079210793 private FunctionClass $function; // json:function Required
1079310794 private Get $get; // json:get Required
1079410795 private GlobalClass $global; // json:global Required
1079510796 private Go $go; // json:go Required
10796- private GotoClass $goto; // json:goto Required
1079710797 private Obj2False $obj2False; // json:false Required
1079810798
1079910799 /**
@@ -10854,16 +10854,16 @@ class Obj2 {
1085410854 * @param FormatException $formatException
1085510855 * @param Friend $friend
1085610856 * @param From $from
10857+ * @param FromDict $fromDict
1085710858 * @param FromJSON $fromJSON
1085810859 * @param Func $func
1085910860 * @param FunctionClass $function
1086010861 * @param Get $get
1086110862 * @param GlobalClass $global
1086210863 * @param Go $go
10863- * @param GotoClass $goto
1086410864 * @param Obj2False $obj2False
1086510865 */
10866- public function __construct(DateFormatter $dateFormatter, DateOnly $dateOnly, DateOnlyConverter $dateOnlyConverter, DateParseHandling $dateParseHandling, DateTimeClass $dateTime, DateTimeStyles $dateTimeStyles, Debugger $debugger, Decimal $decimal, DeclareClass $declare, Decltype $decltype, DecodeString $decodeString, Decoder $decoder, DecodingError $decodingError, Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, Encoder $encoder, EnumClass $enum, EnumValues $enumValues, EqualityContract $equalityContract, Equatable $equatable, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, FormatException $formatException, Friend $friend, From $from, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Obj2False $obj2False) {
10866+ public function __construct(DateFormatter $dateFormatter, DateOnly $dateOnly, DateOnlyConverter $dateOnlyConverter, DateParseHandling $dateParseHandling, DateTimeClass $dateTime, DateTimeStyles $dateTimeStyles, Debugger $debugger, Decimal $decimal, DeclareClass $declare, Decltype $decltype, DecodeString $decodeString, Decoder $decoder, DecodingError $decodingError, Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, Encoder $encoder, EnumClass $enum, EnumValues $enumValues, EqualityContract $equalityContract, Equatable $equatable, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, FormatException $formatException, Friend $friend, From $from, FromDict $fromDict, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, Obj2False $obj2False) {
1086710867 $this->dateFormatter = $dateFormatter;
1086810868 $this->dateOnly = $dateOnly;
1086910869 $this->dateOnlyConverter = $dateOnlyConverter;
@@ -10921,13 +10921,13 @@ class Obj2 {
1092110921 $this->formatException = $formatException;
1092210922 $this->friend = $friend;
1092310923 $this->from = $from;
10924+ $this->fromDict = $fromDict;
1092410925 $this->fromJSON = $fromJSON;
1092510926 $this->func = $func;
1092610927 $this->function = $function;
1092710928 $this->get = $get;
1092810929 $this->global = $global;
1092910930 $this->go = $go;
10930- $this->goto = $goto;
1093110931 $this->obj2False = $obj2False;
1093210932 }
1093310933
@@ -11896,7 +11896,7 @@ class Obj2 {
1189611896 * @throws Exception
1189711897 * @return Dict
1189811898 */
11899- public static function fromDict(stdClass $value): Dict {
11899+ public static function purpleFromDict(stdClass $value): Dict {
1190011900 return Dict::from($value); /*class*/
1190111901 }
1190211902
@@ -13666,6 +13666,54 @@ class Obj2 {
1366613666 return From::sample(); /*87:from*/
1366713667 }
1366813668
13669+ /**
13670+ * @param stdClass $value
13671+ * @throws Exception
13672+ * @return FromDict
13673+ */
13674+ public static function fromFromDict(stdClass $value): FromDict {
13675+ return FromDict::from($value); /*class*/
13676+ }
13677+
13678+ /**
13679+ * @throws Exception
13680+ * @return stdClass
13681+ */
13682+ public function toFromDict(): stdClass {
13683+ if (Obj2::validateFromDict($this->fromDict)) {
13684+ return $this->fromDict->to(); /*class*/
13685+ }
13686+ throw new Exception('never get to this Obj2::fromDict');
13687+ }
13688+
13689+ /**
13690+ * @param FromDict
13691+ * @return bool
13692+ * @throws Exception
13693+ */
13694+ public static function validateFromDict(FromDict $value): bool {
13695+ $value->validate();
13696+ return true;
13697+ }
13698+
13699+ /**
13700+ * @throws Exception
13701+ * @return FromDict
13702+ */
13703+ public function getFromDict(): FromDict {
13704+ if (Obj2::validateFromDict($this->fromDict)) {
13705+ return $this->fromDict;
13706+ }
13707+ throw new Exception('never get to getFromDict Obj2::fromDict');
13708+ }
13709+
13710+ /**
13711+ * @return FromDict
13712+ */
13713+ public static function sampleFromDict(): FromDict {
13714+ return FromDict::sample(); /*88:fromDict*/
13715+ }
13716+
1366913717 /**
1367013718 * @param stdClass $value
1367113719 * @throws Exception
@@ -13711,7 +13759,7 @@ class Obj2 {
1371113759 * @return FromJSON
1371213760 */
1371313761 public static function sampleFromJSON(): FromJSON {
13714- return FromJSON::sample(); /*88:fromJSON*/
13762+ return FromJSON::sample(); /*89:fromJSON*/
1371513763 }
1371613764
1371713765 /**
@@ -13759,7 +13807,7 @@ class Obj2 {
1375913807 * @return Func
1376013808 */
1376113809 public static function sampleFunc(): Func {
13762- return Func::sample(); /*89:func*/
13810+ return Func::sample(); /*90:func*/
1376313811 }
1376413812
1376513813 /**
@@ -13807,7 +13855,7 @@ class Obj2 {
1380713855 * @return FunctionClass
1380813856 */
1380913857 public static function sampleFunction(): FunctionClass {
13810- return FunctionClass::sample(); /*90:function*/
13858+ return FunctionClass::sample(); /*91:function*/
1381113859 }
1381213860
1381313861 /**
@@ -13855,7 +13903,7 @@ class Obj2 {
1385513903 * @return Get
1385613904 */
1385713905 public static function sampleGet(): Get {
13858- return Get::sample(); /*91:get*/
13906+ return Get::sample(); /*92:get*/
1385913907 }
1386013908
1386113909 /**
@@ -13903,7 +13951,7 @@ class Obj2 {
1390313951 * @return GlobalClass
1390413952 */
1390513953 public static function sampleGlobal(): GlobalClass {
13906- return GlobalClass::sample(); /*92:global*/
13954+ return GlobalClass::sample(); /*93:global*/
1390713955 }
1390813956
1390913957 /**
@@ -13951,55 +13999,7 @@ class Obj2 {
1395113999 * @return Go
1395214000 */
1395314001 public static function sampleGo(): Go {
13954- return Go::sample(); /*93:go*/
13955- }
13956-
13957- /**
13958- * @param stdClass $value
13959- * @throws Exception
13960- * @return GotoClass
13961- */
13962- public static function fromGoto(stdClass $value): GotoClass {
13963- return GotoClass::from($value); /*class*/
13964- }
13965-
13966- /**
13967- * @throws Exception
13968- * @return stdClass
13969- */
13970- public function toGoto(): stdClass {
13971- if (Obj2::validateGoto($this->goto)) {
13972- return $this->goto->to(); /*class*/
13973- }
13974- throw new Exception('never get to this Obj2::goto');
13975- }
13976-
13977- /**
13978- * @param GotoClass
13979- * @return bool
13980- * @throws Exception
13981- */
13982- public static function validateGoto(GotoClass $value): bool {
13983- $value->validate();
13984- return true;
13985- }
13986-
13987- /**
13988- * @throws Exception
13989- * @return GotoClass
13990- */
13991- public function getGoto(): GotoClass {
13992- if (Obj2::validateGoto($this->goto)) {
13993- return $this->goto;
13994- }
13995- throw new Exception('never get to getGoto Obj2::goto');
13996- }
13997-
13998- /**
13999- * @return GotoClass
14000- */
14001- public static function sampleGoto(): GotoClass {
14002- return GotoClass::sample(); /*94:goto*/
14002+ return Go::sample(); /*94:go*/
1400314003 }
1400414004
1400514005 /**
@@ -14112,13 +14112,13 @@ class Obj2 {
1411214112 || Obj2::validateFormatException($this->formatException)
1411314113 || Obj2::validateFriend($this->friend)
1411414114 || Obj2::validateFrom($this->from)
14115+ || Obj2::validateFromDict($this->fromDict)
1411514116 || Obj2::validateFromJSON($this->fromJSON)
1411614117 || Obj2::validateFunc($this->func)
1411714118 || Obj2::validateFunction($this->function)
1411814119 || Obj2::validateGet($this->get)
1411914120 || Obj2::validateGlobal($this->global)
1412014121 || Obj2::validateGo($this->go)
14121- || Obj2::validateGoto($this->goto)
1412214122 || Obj2::validateObj2False($this->obj2False);
1412314123 }
1412414124
@@ -14185,13 +14185,13 @@ class Obj2 {
1418514185 $out->{'FormatException'} = $this->toFormatException();
1418614186 $out->{'friend'} = $this->toFriend();
1418714187 $out->{'from'} = $this->toFrom();
14188+ $out->{'from_dict'} = $this->toFromDict();
1418814189 $out->{'from_json'} = $this->toFromJSON();
1418914190 $out->{'func'} = $this->toFunc();
1419014191 $out->{'function'} = $this->toFunction();
1419114192 $out->{'get'} = $this->toGet();
1419214193 $out->{'global'} = $this->toGlobal();
1419314194 $out->{'go'} = $this->toGo();
14194- $out->{'goto'} = $this->toGoto();
1419514195 $out->{'false'} = $this->toObj2False();
1419614196 return $out;
1419714197 }
@@ -14373,6 +14373,9 @@ class Obj2 {
1437314373 if (!property_exists($obj, 'from')) {
1437414374 throw new Exception("Missing required property");
1437514375 }
14376+ if (!property_exists($obj, 'from_dict')) {
14377+ throw new Exception("Missing required property");
14378+ }
1437614379 if (!property_exists($obj, 'from_json')) {
1437714380 throw new Exception("Missing required property");
1437814381 }
@@ -14391,9 +14394,6 @@ class Obj2 {
1439114394 if (!property_exists($obj, 'go')) {
1439214395 throw new Exception("Missing required property");
1439314396 }
14394- if (!property_exists($obj, 'goto')) {
14395- throw new Exception("Missing required property");
14396- }
1439714397 if (!property_exists($obj, 'false')) {
1439814398 throw new Exception("Missing required property");
1439914399 }
@@ -14418,7 +14418,7 @@ class Obj2 {
1441814418 ,Obj2::fromDel($obj->{'del'})
1441914419 ,Obj2::fromDelegate($obj->{'delegate'})
1442014420 ,Obj2::fromDelete($obj->{'delete'})
14421- ,Obj2::fromDict($obj->{'dict'})
14421+ ,Obj2::purpleFromDict($obj->{'dict'})
1442214422 ,Obj2::fromDictionary($obj->{'dictionary'})
1442314423 ,Obj2::fromDidSet($obj->{'didSet'})
1442414424 ,Obj2::fromDo($obj->{'do'})
@@ -14455,13 +14455,13 @@ class Obj2 {
1445514455 ,Obj2::fromFormatException($obj->{'FormatException'})
1445614456 ,Obj2::fromFriend($obj->{'friend'})
1445714457 ,Obj2::fromFrom($obj->{'from'})
14458+ ,Obj2::fromFromDict($obj->{'from_dict'})
1445814459 ,Obj2::fromFromJSON($obj->{'from_json'})
1445914460 ,Obj2::fromFunc($obj->{'func'})
1446014461 ,Obj2::fromFunction($obj->{'function'})
1446114462 ,Obj2::fromGet($obj->{'get'})
1446214463 ,Obj2::fromGlobal($obj->{'global'})
1446314464 ,Obj2::fromGo($obj->{'go'})
14464- ,Obj2::fromGoto($obj->{'goto'})
1446514465 ,Obj2::fromObj2False($obj->{'false'})
1446614466 );
1446714467 }
@@ -14528,13 +14528,13 @@ class Obj2 {
1452814528 ,Obj2::sampleFormatException()
1452914529 ,Obj2::sampleFriend()
1453014530 ,Obj2::sampleFrom()
14531+ ,Obj2::sampleFromDict()
1453114532 ,Obj2::sampleFromJSON()
1453214533 ,Obj2::sampleFunc()
1453314534 ,Obj2::sampleFunction()
1453414535 ,Obj2::sampleGet()
1453514536 ,Obj2::sampleGlobal()
1453614537 ,Obj2::sampleGo()
14537- ,Obj2::sampleGoto()
1453814538 ,Obj2::sampleObj2False()
1453914539 );
1454014540 }
@@ -20264,6 +20264,107 @@ class From {
2026420264 }
2026520265 }
2026620266
20267+// This is an autogenerated file:FromDict
20268+
20269+class FromDict {
20270+ private int $fromDict; // json:from_dict Required
20271+
20272+ /**
20273+ * @param int $fromDict
20274+ */
20275+ public function __construct(int $fromDict) {
20276+ $this->fromDict = $fromDict;
20277+ }
20278+
20279+ /**
20280+ * @param int $value
20281+ * @throws Exception
20282+ * @return int
20283+ */
20284+ public static function fromFromDict(int $value): int {
20285+ return $value; /*int*/
20286+ }
20287+
20288+ /**
20289+ * @throws Exception
20290+ * @return int
20291+ */
20292+ public function toFromDict(): int {
20293+ if (FromDict::validateFromDict($this->fromDict)) {
20294+ return $this->fromDict; /*int*/
20295+ }
20296+ throw new Exception('never get to this FromDict::fromDict');
20297+ }
20298+
20299+ /**
20300+ * @param int
20301+ * @return bool
20302+ * @throws Exception
20303+ */
20304+ public static function validateFromDict(int $value): bool {
20305+ return true;
20306+ }
20307+
20308+ /**
20309+ * @throws Exception
20310+ * @return int
20311+ */
20312+ public function getFromDict(): int {
20313+ if (FromDict::validateFromDict($this->fromDict)) {
20314+ return $this->fromDict;
20315+ }
20316+ throw new Exception('never get to getFromDict FromDict::fromDict');
20317+ }
20318+
20319+ /**
20320+ * @return int
20321+ */
20322+ public static function sampleFromDict(): int {
20323+ return 31; /*31:fromDict*/
20324+ }
20325+
20326+ /**
20327+ * @throws Exception
20328+ * @return bool
20329+ */
20330+ public function validate(): bool {
20331+ return FromDict::validateFromDict($this->fromDict);
20332+ }
20333+
20334+ /**
20335+ * @return stdClass
20336+ * @throws Exception
20337+ */
20338+ public function to(): stdClass {
20339+ $out = new stdClass();
20340+ $out->{'from_dict'} = $this->toFromDict();
20341+ return $out;
20342+ }
20343+
20344+ /**
20345+ * @param stdClass $obj
20346+ * @return FromDict
20347+ * @throws Exception
20348+ */
20349+ public static function from(stdClass $obj): FromDict {
20350+ if (!property_exists($obj, 'from_dict')) {
20351+ throw new Exception("Missing required property");
20352+ }
20353+ return new FromDict(
20354+ FromDict::fromFromDict($obj->{'from_dict'})
20355+ );
20356+ }
20357+
20358+ /**
20359+ * @return FromDict
20360+ */
20361+ public static function sample(): FromDict {
20362+ return new FromDict(
20363+ FromDict::sampleFromDict()
20364+ );
20365+ }
20366+}
20367+
2026720368 // This is an autogenerated file:FromJSON
2026820369
2026920370 class FromJSON {
@@ -20870,107 +20971,6 @@ class Go {
2087020971 }
2087120972 }
2087220973
20873-// This is an autogenerated file:GotoClass
20874-
20875-class GotoClass {
20876- private int $goto; // json:goto Required
20877-
20878- /**
20879- * @param int $goto
20880- */
20881- public function __construct(int $goto) {
20882- $this->goto = $goto;
20883- }
20884-
20885- /**
20886- * @param int $value
20887- * @throws Exception
20888- * @return int
20889- */
20890- public static function fromGoto(int $value): int {
20891- return $value; /*int*/
20892- }
20893-
20894- /**
20895- * @throws Exception
20896- * @return int
20897- */
20898- public function toGoto(): int {
20899- if (GotoClass::validateGoto($this->goto)) {
20900- return $this->goto; /*int*/
20901- }
20902- throw new Exception('never get to this GotoClass::goto');
20903- }
20904-
20905- /**
20906- * @param int
20907- * @return bool
20908- * @throws Exception
20909- */
20910- public static function validateGoto(int $value): bool {
20911- return true;
20912- }
20913-
20914- /**
20915- * @throws Exception
20916- * @return int
20917- */
20918- public function getGoto(): int {
20919- if (GotoClass::validateGoto($this->goto)) {
20920- return $this->goto;
20921- }
20922- throw new Exception('never get to getGoto GotoClass::goto');
20923- }
20924-
20925- /**
20926- * @return int
20927- */
20928- public static function sampleGoto(): int {
20929- return 31; /*31:goto*/
20930- }
20931-
20932- /**
20933- * @throws Exception
20934- * @return bool
20935- */
20936- public function validate(): bool {
20937- return GotoClass::validateGoto($this->goto);
20938- }
20939-
20940- /**
20941- * @return stdClass
20942- * @throws Exception
20943- */
20944- public function to(): stdClass {
20945- $out = new stdClass();
20946- $out->{'goto'} = $this->toGoto();
20947- return $out;
20948- }
20949-
20950- /**
20951- * @param stdClass $obj
20952- * @return GotoClass
20953- * @throws Exception
20954- */
20955- public static function from(stdClass $obj): GotoClass {
20956- if (!property_exists($obj, 'goto')) {
20957- throw new Exception("Missing required property");
20958- }
20959- return new GotoClass(
20960- GotoClass::fromGoto($obj->{'goto'})
20961- );
20962- }
20963-
20964- /**
20965- * @return GotoClass
20966- */
20967- public static function sample(): GotoClass {
20968- return new GotoClass(
20969- GotoClass::sampleGoto()
20970- );
20971- }
20972-}
20973-
2097420974 // This is an autogenerated file:Obj2False
2097520975
2097620976 class Obj2False {
@@ -21076,6 +21076,7 @@ class Obj2False {
2107621076
2107721077 class Obj3 {
2107821078 private int $dummy; // json:dummy Required
21079+ private GotoClass $goto; // json:goto Required
2107921080 private Guard $guard; // json:guard Required
2108021081 private HasOwnProperty $hasOwnProperty; // json:hasOwnProperty Required
2108121082 private HashCode $hashCode; // json:hashCode Required
@@ -21139,10 +21140,10 @@ class Obj3 {
2113921140 private Newtonsoft $newtonsoft; // json:newtonsoft Required
2114021141 private Nil $nil; // json:nil Required
2114121142 private No $no; // json:NO Required
21142- private Noexcept $noexcept; // json:noexcept Required
2114321143
2114421144 /**
2114521145 * @param int $dummy
21146+ * @param GotoClass $goto
2114621147 * @param Guard $guard
2114721148 * @param HasOwnProperty $hasOwnProperty
2114821149 * @param HashCode $hashCode
@@ -21206,10 +21207,10 @@ class Obj3 {
2120621207 * @param Newtonsoft $newtonsoft
2120721208 * @param Nil $nil
2120821209 * @param No $no
21209- * @param Noexcept $noexcept
2121021210 */
21211- public function __construct(int $dummy, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, Noexcept $noexcept) {
21211+ public function __construct(int $dummy, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no) {
2121221212 $this->dummy = $dummy;
21213+ $this->goto = $goto;
2121321214 $this->guard = $guard;
2121421215 $this->hasOwnProperty = $hasOwnProperty;
2121521216 $this->hashCode = $hashCode;
@@ -21273,7 +21274,6 @@ class Obj3 {
2127321274 $this->newtonsoft = $newtonsoft;
2127421275 $this->nil = $nil;
2127521276 $this->no = $no;
21276- $this->noexcept = $noexcept;
2127721277 }
2127821278
2127921279 /**
@@ -21323,6 +21323,54 @@ class Obj3 {
2132321323 return 31; /*31:dummy*/
2132421324 }
2132521325
21326+ /**
21327+ * @param stdClass $value
21328+ * @throws Exception
21329+ * @return GotoClass
21330+ */
21331+ public static function fromGoto(stdClass $value): GotoClass {
21332+ return GotoClass::from($value); /*class*/
21333+ }
21334+
21335+ /**
21336+ * @throws Exception
21337+ * @return stdClass
21338+ */
21339+ public function toGoto(): stdClass {
21340+ if (Obj3::validateGoto($this->goto)) {
21341+ return $this->goto->to(); /*class*/
21342+ }
21343+ throw new Exception('never get to this Obj3::goto');
21344+ }
21345+
21346+ /**
21347+ * @param GotoClass
21348+ * @return bool
21349+ * @throws Exception
21350+ */
21351+ public static function validateGoto(GotoClass $value): bool {
21352+ $value->validate();
21353+ return true;
21354+ }
21355+
21356+ /**
21357+ * @throws Exception
21358+ * @return GotoClass
21359+ */
21360+ public function getGoto(): GotoClass {
21361+ if (Obj3::validateGoto($this->goto)) {
21362+ return $this->goto;
21363+ }
21364+ throw new Exception('never get to getGoto Obj3::goto');
21365+ }
21366+
21367+ /**
21368+ * @return GotoClass
21369+ */
21370+ public static function sampleGoto(): GotoClass {
21371+ return GotoClass::sample(); /*32:goto*/
21372+ }
21373+
2132621374 /**
2132721375 * @param stdClass $value
2132821376 * @throws Exception
@@ -21368,7 +21416,7 @@ class Obj3 {
2136821416 * @return Guard
2136921417 */
2137021418 public static function sampleGuard(): Guard {
21371- return Guard::sample(); /*32:guard*/
21419+ return Guard::sample(); /*33:guard*/
2137221420 }
2137321421
2137421422 /**
@@ -21416,7 +21464,7 @@ class Obj3 {
2141621464 * @return HasOwnProperty
2141721465 */
2141821466 public static function sampleHasOwnProperty(): HasOwnProperty {
21419- return HasOwnProperty::sample(); /*33:hasOwnProperty*/
21467+ return HasOwnProperty::sample(); /*34:hasOwnProperty*/
2142021468 }
2142121469
2142221470 /**
@@ -21464,7 +21512,7 @@ class Obj3 {
2146421512 * @return HashCode
2146521513 */
2146621514 public static function sampleHashCode(): HashCode {
21467- return HashCode::sample(); /*34:hashCode*/
21515+ return HashCode::sample(); /*35:hashCode*/
2146821516 }
2146921517
2147021518 /**
@@ -21512,7 +21560,7 @@ class Obj3 {
2151221560 * @return Hashable
2151321561 */
2151421562 public static function sampleHashable(): Hashable {
21515- return Hashable::sample(); /*35:hashable*/
21563+ return Hashable::sample(); /*36:hashable*/
2151621564 }
2151721565
2151821566 /**
@@ -21560,7 +21608,7 @@ class Obj3 {
2156021608 * @return Hasher
2156121609 */
2156221610 public static function sampleHasher(): Hasher {
21563- return Hasher::sample(); /*36:hasher*/
21611+ return Hasher::sample(); /*37:hasher*/
2156421612 }
2156521613
2156621614 /**
@@ -21608,7 +21656,7 @@ class Obj3 {
2160821656 * @return ID
2160921657 */
2161021658 public static function sampleID(): ID {
21611- return ID::sample(); /*37:id*/
21659+ return ID::sample(); /*38:id*/
2161221660 }
2161321661
2161421662 /**
@@ -21656,7 +21704,7 @@ class Obj3 {
2165621704 * @return IfClass
2165721705 */
2165821706 public static function sampleIf(): IfClass {
21659- return IfClass::sample(); /*38:if*/
21707+ return IfClass::sample(); /*39:if*/
2166021708 }
2166121709
2166221710 /**
@@ -21704,7 +21752,7 @@ class Obj3 {
2170421752 * @return Imp
2170521753 */
2170621754 public static function sampleImp(): Imp {
21707- return Imp::sample(); /*39:imp*/
21755+ return Imp::sample(); /*40:imp*/
2170821756 }
2170921757
2171021758 /**
@@ -21752,7 +21800,7 @@ class Obj3 {
2175221800 * @return ImplementsClass
2175321801 */
2175421802 public static function sampleImplements(): ImplementsClass {
21755- return ImplementsClass::sample(); /*40:implements*/
21803+ return ImplementsClass::sample(); /*41:implements*/
2175621804 }
2175721805
2175821806 /**
@@ -21800,7 +21848,7 @@ class Obj3 {
2180021848 * @return Implicit
2180121849 */
2180221850 public static function sampleImplicit(): Implicit {
21803- return Implicit::sample(); /*41:implicit*/
21851+ return Implicit::sample(); /*42:implicit*/
2180421852 }
2180521853
2180621854 /**
@@ -21848,7 +21896,7 @@ class Obj3 {
2184821896 * @return Import
2184921897 */
2185021898 public static function sampleImport(): Import {
21851- return Import::sample(); /*42:import*/
21899+ return Import::sample(); /*43:import*/
2185221900 }
2185321901
2185421902 /**
@@ -21896,7 +21944,7 @@ class Obj3 {
2189621944 * @return In
2189721945 */
2189821946 public static function sampleIn(): In {
21899- return In::sample(); /*43:in*/
21947+ return In::sample(); /*44:in*/
2190021948 }
2190121949
2190221950 /**
@@ -21944,7 +21992,7 @@ class Obj3 {
2194421992 * @return Indirect
2194521993 */
2194621994 public static function sampleIndirect(): Indirect {
21947- return Indirect::sample(); /*44:indirect*/
21995+ return Indirect::sample(); /*45:indirect*/
2194821996 }
2194921997
2195021998 /**
@@ -21992,7 +22040,7 @@ class Obj3 {
2199222040 * @return Infix
2199322041 */
2199422042 public static function sampleInfix(): Infix {
21995- return Infix::sample(); /*45:infix*/
22043+ return Infix::sample(); /*46:infix*/
2199622044 }
2199722045
2199822046 /**
@@ -22040,7 +22088,7 @@ class Obj3 {
2204022088 * @return Init
2204122089 */
2204222090 public static function sampleInit(): Init {
22043- return Init::sample(); /*46:init*/
22091+ return Init::sample(); /*47:init*/
2204422092 }
2204522093
2204622094 /**
@@ -22088,7 +22136,7 @@ class Obj3 {
2208822136 * @return Inline
2208922137 */
2209022138 public static function sampleInline(): Inline {
22091- return Inline::sample(); /*47:inline*/
22139+ return Inline::sample(); /*48:inline*/
2209222140 }
2209322141
2209422142 /**
@@ -22136,7 +22184,7 @@ class Obj3 {
2213622184 * @return Inout
2213722185 */
2213822186 public static function sampleInout(): Inout {
22139- return Inout::sample(); /*48:inout*/
22187+ return Inout::sample(); /*49:inout*/
2214022188 }
2214122189
2214222190 /**
@@ -22184,7 +22232,7 @@ class Obj3 {
2218422232 * @return InstanceofClass
2218522233 */
2218622234 public static function sampleInstanceof(): InstanceofClass {
22187- return InstanceofClass::sample(); /*49:instanceof*/
22235+ return InstanceofClass::sample(); /*50:instanceof*/
2218822236 }
2218922237
2219022238 /**
@@ -22232,7 +22280,7 @@ class Obj3 {
2223222280 * @return IntClass
2223322281 */
2223422282 public static function sampleInt(): IntClass {
22235- return IntClass::sample(); /*50:int*/
22283+ return IntClass::sample(); /*51:int*/
2223622284 }
2223722285
2223822286 /**
@@ -22280,7 +22328,7 @@ class Obj3 {
2228022328 * @return InterfaceClass
2228122329 */
2228222330 public static function sampleInterface(): InterfaceClass {
22283- return InterfaceClass::sample(); /*51:interface*/
22331+ return InterfaceClass::sample(); /*52:interface*/
2228422332 }
2228522333
2228622334 /**
@@ -22328,7 +22376,7 @@ class Obj3 {
2232822376 * @return Internal
2232922377 */
2233022378 public static function sampleInternal(): Internal {
22331- return Internal::sample(); /*52:internal*/
22379+ return Internal::sample(); /*53:internal*/
2233222380 }
2233322381
2233422382 /**
@@ -22376,7 +22424,7 @@ class Obj3 {
2237622424 * @return Is
2237722425 */
2237822426 public static function sampleIs(): Is {
22379- return Is::sample(); /*53:is*/
22427+ return Is::sample(); /*54:is*/
2238022428 }
2238122429
2238222430 /**
@@ -22424,7 +22472,7 @@ class Obj3 {
2242422472 * @return ISODateTimeOffsetConverter
2242522473 */
2242622474 public static function sampleISODateTimeOffsetConverter(): ISODateTimeOffsetConverter {
22427- return ISODateTimeOffsetConverter::sample(); /*54:isoDateTimeOffsetConverter*/
22475+ return ISODateTimeOffsetConverter::sample(); /*55:isoDateTimeOffsetConverter*/
2242822476 }
2242922477
2243022478 /**
@@ -22472,7 +22520,7 @@ class Obj3 {
2247222520 * @return IterableClass
2247322521 */
2247422522 public static function sampleIterable(): IterableClass {
22475- return IterableClass::sample(); /*55:iterable*/
22523+ return IterableClass::sample(); /*56:iterable*/
2247622524 }
2247722525
2247822526 /**
@@ -22520,7 +22568,7 @@ class Obj3 {
2252022568 * @return Jdec
2252122569 */
2252222570 public static function sampleJdec(): Jdec {
22523- return Jdec::sample(); /*56:jdec*/
22571+ return Jdec::sample(); /*57:jdec*/
2252422572 }
2252522573
2252622574 /**
@@ -22568,7 +22616,7 @@ class Obj3 {
2256822616 * @return Jenc
2256922617 */
2257022618 public static function sampleJenc(): Jenc {
22571- return Jenc::sample(); /*57:jenc*/
22619+ return Jenc::sample(); /*58:jenc*/
2257222620 }
2257322621
2257422622 /**
@@ -22616,7 +22664,7 @@ class Obj3 {
2261622664 * @return Jpipe
2261722665 */
2261822666 public static function sampleJpipe(): Jpipe {
22619- return Jpipe::sample(); /*58:jpipe*/
22667+ return Jpipe::sample(); /*59:jpipe*/
2262022668 }
2262122669
2262222670 /**
@@ -22664,7 +22712,7 @@ class Obj3 {
2266422712 * @return JSON
2266522713 */
2266622714 public static function sampleJSON(): JSON {
22667- return JSON::sample(); /*59:json*/
22715+ return JSON::sample(); /*60:json*/
2266822716 }
2266922717
2267022718 /**
@@ -22712,7 +22760,7 @@ class Obj3 {
2271222760 * @return JSONAny
2271322761 */
2271422762 public static function sampleJSONAny(): JSONAny {
22715- return JSONAny::sample(); /*60:jsonAny*/
22763+ return JSONAny::sample(); /*61:jsonAny*/
2271622764 }
2271722765
2271822766 /**
@@ -22760,7 +22808,7 @@ class Obj3 {
2276022808 * @return JSONCodingKey
2276122809 */
2276222810 public static function sampleJSONCodingKey(): JSONCodingKey {
22763- return JSONCodingKey::sample(); /*61:jsonCodingKey*/
22811+ return JSONCodingKey::sample(); /*62:jsonCodingKey*/
2276422812 }
2276522813
2276622814 /**
@@ -22808,7 +22856,7 @@ class Obj3 {
2280822856 * @return JSONConverter
2280922857 */
2281022858 public static function sampleJSONConverter(): JSONConverter {
22811- return JSONConverter::sample(); /*62:jsonConverter*/
22859+ return JSONConverter::sample(); /*63:jsonConverter*/
2281222860 }
2281322861
2281422862 /**
@@ -22856,7 +22904,7 @@ class Obj3 {
2285622904 * @return JSONDecoder
2285722905 */
2285822906 public static function sampleJSONDecoder(): JSONDecoder {
22859- return JSONDecoder::sample(); /*63:jsonDecoder*/
22907+ return JSONDecoder::sample(); /*64:jsonDecoder*/
2286022908 }
2286122909
2286222910 /**
@@ -22904,7 +22952,7 @@ class Obj3 {
2290422952 * @return JSONEncoder
2290522953 */
2290622954 public static function sampleJSONEncoder(): JSONEncoder {
22907- return JSONEncoder::sample(); /*64:jsonEncoder*/
22955+ return JSONEncoder::sample(); /*65:jsonEncoder*/
2290822956 }
2290922957
2291022958 /**
@@ -22952,7 +23000,7 @@ class Obj3 {
2295223000 * @return JSONExceptionClass
2295323001 */
2295423002 public static function sampleJSONException(): JSONExceptionClass {
22955- return JSONExceptionClass::sample(); /*65:jsonException*/
23003+ return JSONExceptionClass::sample(); /*66:jsonException*/
2295623004 }
2295723005
2295823006 /**
@@ -23000,7 +23048,7 @@ class Obj3 {
2300023048 * @return JSONGenerator
2300123049 */
2300223050 public static function sampleJSONGenerator(): JSONGenerator {
23003- return JSONGenerator::sample(); /*66:jsonGenerator*/
23051+ return JSONGenerator::sample(); /*67:jsonGenerator*/
2300423052 }
2300523053
2300623054 /**
@@ -23048,7 +23096,7 @@ class Obj3 {
2304823096 * @return JSONNode
2304923097 */
2305023098 public static function sampleJSONNode(): JSONNode {
23051- return JSONNode::sample(); /*67:jsonNode*/
23099+ return JSONNode::sample(); /*68:jsonNode*/
2305223100 }
2305323101
2305423102 /**
@@ -23096,7 +23144,7 @@ class Obj3 {
2309623144 * @return JSONNull
2309723145 */
2309823146 public static function sampleJSONNull(): JSONNull {
23099- return JSONNull::sample(); /*68:jsonNull*/
23147+ return JSONNull::sample(); /*69:jsonNull*/
2310023148 }
2310123149
2310223150 /**
@@ -23144,7 +23192,7 @@ class Obj3 {
2314423192 * @return JSONParser
2314523193 */
2314623194 public static function sampleJSONParser(): JSONParser {
23147- return JSONParser::sample(); /*69:jsonParser*/
23195+ return JSONParser::sample(); /*70:jsonParser*/
2314823196 }
2314923197
2315023198 /**
@@ -23192,7 +23240,7 @@ class Obj3 {
2319223240 * @return JSONReader
2319323241 */
2319423242 public static function sampleJSONReader(): JSONReader {
23195- return JSONReader::sample(); /*70:jsonReader*/
23243+ return JSONReader::sample(); /*71:jsonReader*/
2319623244 }
2319723245
2319823246 /**
@@ -23240,7 +23288,7 @@ class Obj3 {
2324023288 * @return JSONSerializer
2324123289 */
2324223290 public static function sampleJSONSerializer(): JSONSerializer {
23243- return JSONSerializer::sample(); /*71:jsonSerializer*/
23291+ return JSONSerializer::sample(); /*72:jsonSerializer*/
2324423292 }
2324523293
2324623294 /**
@@ -23288,7 +23336,7 @@ class Obj3 {
2328823336 * @return JSONToken
2328923337 */
2329023338 public static function sampleJSONToken(): JSONToken {
23291- return JSONToken::sample(); /*72:jsonToken*/
23339+ return JSONToken::sample(); /*73:jsonToken*/
2329223340 }
2329323341
2329423342 /**
@@ -23336,7 +23384,7 @@ class Obj3 {
2333623384 * @return JSONTokenType
2333723385 */
2333823386 public static function sampleJSONTokenType(): JSONTokenType {
23339- return JSONTokenType::sample(); /*73:jsonTokenType*/
23387+ return JSONTokenType::sample(); /*74:jsonTokenType*/
2334023388 }
2334123389
2334223390 /**
@@ -23384,7 +23432,7 @@ class Obj3 {
2338423432 * @return JSONWriter
2338523433 */
2338623434 public static function sampleJSONWriter(): JSONWriter {
23387- return JSONWriter::sample(); /*74:jsonWriter*/
23435+ return JSONWriter::sample(); /*75:jsonWriter*/
2338823436 }
2338923437
2339023438 /**
@@ -23432,7 +23480,7 @@ class Obj3 {
2343223480 * @return Lambda
2343323481 */
2343423482 public static function sampleLambda(): Lambda {
23435- return Lambda::sample(); /*75:lambda*/
23483+ return Lambda::sample(); /*76:lambda*/
2343623484 }
2343723485
2343823486 /**
@@ -23480,7 +23528,7 @@ class Obj3 {
2348023528 * @return Lazy
2348123529 */
2348223530 public static function sampleLazy(): Lazy {
23483- return Lazy::sample(); /*76:lazy*/
23531+ return Lazy::sample(); /*77:lazy*/
2348423532 }
2348523533
2348623534 /**
@@ -23528,7 +23576,7 @@ class Obj3 {
2352823576 * @return Left
2352923577 */
2353023578 public static function sampleLeft(): Left {
23531- return Left::sample(); /*77:left*/
23579+ return Left::sample(); /*78:left*/
2353223580 }
2353323581
2353423582 /**
@@ -23576,7 +23624,7 @@ class Obj3 {
2357623624 * @return Let
2357723625 */
2357823626 public static function sampleLet(): Let {
23579- return Let::sample(); /*78:let*/
23627+ return Let::sample(); /*79:let*/
2358023628 }
2358123629
2358223630 /**
@@ -23624,7 +23672,7 @@ class Obj3 {
2362423672 * @return ListClass
2362523673 */
2362623674 public static function sampleList(): ListClass {
23627- return ListClass::sample(); /*79:list*/
23675+ return ListClass::sample(); /*80:list*/
2362823676 }
2362923677
2363023678 /**
@@ -23672,7 +23720,7 @@ class Obj3 {
2367223720 * @return LocaleClass
2367323721 */
2367423722 public static function sampleLocale(): LocaleClass {
23675- return LocaleClass::sample(); /*80:locale*/
23723+ return LocaleClass::sample(); /*81:locale*/
2367623724 }
2367723725
2367823726 /**
@@ -23720,7 +23768,7 @@ class Obj3 {
2372023768 * @return Lock
2372123769 */
2372223770 public static function sampleLock(): Lock {
23723- return Lock::sample(); /*81:lock*/
23771+ return Lock::sample(); /*82:lock*/
2372423772 }
2372523773
2372623774 /**
@@ -23768,7 +23816,7 @@ class Obj3 {
2376823816 * @return Long
2376923817 */
2377023818 public static function sampleLong(): Long {
23771- return Long::sample(); /*82:long*/
23819+ return Long::sample(); /*83:long*/
2377223820 }
2377323821
2377423822 /**
@@ -23816,7 +23864,7 @@ class Obj3 {
2381623864 * @return Map
2381723865 */
2381823866 public static function sampleMap(): Map {
23819- return Map::sample(); /*83:map*/
23867+ return Map::sample(); /*84:map*/
2382023868 }
2382123869
2382223870 /**
@@ -23864,7 +23912,7 @@ class Obj3 {
2386423912 * @return MapEntry
2386523913 */
2386623914 public static function sampleMapEntry(): MapEntry {
23867- return MapEntry::sample(); /*84:mapEntry*/
23915+ return MapEntry::sample(); /*85:mapEntry*/
2386823916 }
2386923917
2387023918 /**
@@ -23912,7 +23960,7 @@ class Obj3 {
2391223960 * @return MetadataPropertyHandling
2391323961 */
2391423962 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling {
23915- return MetadataPropertyHandling::sample(); /*85:metadataPropertyHandling*/
23963+ return MetadataPropertyHandling::sample(); /*86:metadataPropertyHandling*/
2391623964 }
2391723965
2391823966 /**
@@ -23960,7 +24008,7 @@ class Obj3 {
2396024008 * @return Module
2396124009 */
2396224010 public static function sampleModule(): Module {
23963- return Module::sample(); /*86:module*/
24011+ return Module::sample(); /*87:module*/
2396424012 }
2396524013
2396624014 /**
@@ -24008,7 +24056,7 @@ class Obj3 {
2400824056 * @return Mutable
2400924057 */
2401024058 public static function sampleMutable(): Mutable {
24011- return Mutable::sample(); /*87:mutable*/
24059+ return Mutable::sample(); /*88:mutable*/
2401224060 }
2401324061
2401424062 /**
@@ -24056,7 +24104,7 @@ class Obj3 {
2405624104 * @return Mutating
2405724105 */
2405824106 public static function sampleMutating(): Mutating {
24059- return Mutating::sample(); /*88:mutating*/
24107+ return Mutating::sample(); /*89:mutating*/
2406024108 }
2406124109
2406224110 /**
@@ -24104,7 +24152,7 @@ class Obj3 {
2410424152 * @return NamespaceClass
2410524153 */
2410624154 public static function sampleNamespace(): NamespaceClass {
24107- return NamespaceClass::sample(); /*89:namespace*/
24155+ return NamespaceClass::sample(); /*90:namespace*/
2410824156 }
2410924157
2411024158 /**
@@ -24152,7 +24200,7 @@ class Obj3 {
2415224200 * @return Native
2415324201 */
2415424202 public static function sampleNative(): Native {
24155- return Native::sample(); /*90:native*/
24203+ return Native::sample(); /*91:native*/
2415624204 }
2415724205
2415824206 /**
@@ -24200,7 +24248,7 @@ class Obj3 {
2420024248 * @return NewClass
2420124249 */
2420224250 public static function sampleNew(): NewClass {
24203- return NewClass::sample(); /*91:new*/
24251+ return NewClass::sample(); /*92:new*/
2420424252 }
2420524253
2420624254 /**
@@ -24248,7 +24296,7 @@ class Obj3 {
2424824296 * @return Newtonsoft
2424924297 */
2425024298 public static function sampleNewtonsoft(): Newtonsoft {
24251- return Newtonsoft::sample(); /*92:newtonsoft*/
24299+ return Newtonsoft::sample(); /*93:newtonsoft*/
2425224300 }
2425324301
2425424302 /**
@@ -24296,7 +24344,7 @@ class Obj3 {
2429624344 * @return Nil
2429724345 */
2429824346 public static function sampleNil(): Nil {
24299- return Nil::sample(); /*93:nil*/
24347+ return Nil::sample(); /*94:nil*/
2430024348 }
2430124349
2430224350 /**
@@ -24344,55 +24392,7 @@ class Obj3 {
2434424392 * @return No
2434524393 */
2434624394 public static function sampleNo(): No {
24347- return No::sample(); /*94:no*/
24348- }
24349-
24350- /**
24351- * @param stdClass $value
24352- * @throws Exception
24353- * @return Noexcept
24354- */
24355- public static function fromNoexcept(stdClass $value): Noexcept {
24356- return Noexcept::from($value); /*class*/
24357- }
24358-
24359- /**
24360- * @throws Exception
24361- * @return stdClass
24362- */
24363- public function toNoexcept(): stdClass {
24364- if (Obj3::validateNoexcept($this->noexcept)) {
24365- return $this->noexcept->to(); /*class*/
24366- }
24367- throw new Exception('never get to this Obj3::noexcept');
24368- }
24369-
24370- /**
24371- * @param Noexcept
24372- * @return bool
24373- * @throws Exception
24374- */
24375- public static function validateNoexcept(Noexcept $value): bool {
24376- $value->validate();
24377- return true;
24378- }
24379-
24380- /**
24381- * @throws Exception
24382- * @return Noexcept
24383- */
24384- public function getNoexcept(): Noexcept {
24385- if (Obj3::validateNoexcept($this->noexcept)) {
24386- return $this->noexcept;
24387- }
24388- throw new Exception('never get to getNoexcept Obj3::noexcept');
24389- }
24390-
24391- /**
24392- * @return Noexcept
24393- */
24394- public static function sampleNoexcept(): Noexcept {
24395- return Noexcept::sample(); /*95:noexcept*/
24395+ return No::sample(); /*95:no*/
2439624396 }
2439724397
2439824398 /**
@@ -24401,6 +24401,7 @@ class Obj3 {
2440124401 */
2440224402 public function validate(): bool {
2440324403 return Obj3::validateDummy($this->dummy)
24404+ || Obj3::validateGoto($this->goto)
2440424405 || Obj3::validateGuard($this->guard)
2440524406 || Obj3::validateHasOwnProperty($this->hasOwnProperty)
2440624407 || Obj3::validateHashCode($this->hashCode)
@@ -24463,8 +24464,7 @@ class Obj3 {
2446324464 || Obj3::validateNew($this->new)
2446424465 || Obj3::validateNewtonsoft($this->newtonsoft)
2446524466 || Obj3::validateNil($this->nil)
24466- || Obj3::validateNo($this->no)
24467- || Obj3::validateNoexcept($this->noexcept);
24467+ || Obj3::validateNo($this->no);
2446824468 }
2446924469
2447024470 /**
@@ -24474,6 +24474,7 @@ class Obj3 {
2447424474 public function to(): stdClass {
2447524475 $out = new stdClass();
2447624476 $out->{'dummy'} = $this->toDummy();
24477+ $out->{'goto'} = $this->toGoto();
2447724478 $out->{'guard'} = $this->toGuard();
2447824479 $out->{'hasOwnProperty'} = $this->toHasOwnProperty();
2447924480 $out->{'hashCode'} = $this->toHashCode();
@@ -24537,7 +24538,6 @@ class Obj3 {
2453724538 $out->{'newtonsoft'} = $this->toNewtonsoft();
2453824539 $out->{'nil'} = $this->toNil();
2453924540 $out->{'NO'} = $this->toNo();
24540- $out->{'noexcept'} = $this->toNoexcept();
2454124541 return $out;
2454224542 }
2454324543
@@ -24550,6 +24550,9 @@ class Obj3 {
2455024550 if (!property_exists($obj, 'dummy')) {
2455124551 throw new Exception("Missing required property");
2455224552 }
24553+ if (!property_exists($obj, 'goto')) {
24554+ throw new Exception("Missing required property");
24555+ }
2455324556 if (!property_exists($obj, 'guard')) {
2455424557 throw new Exception("Missing required property");
2455524558 }
@@ -24739,11 +24742,9 @@ class Obj3 {
2473924742 if (!property_exists($obj, 'NO')) {
2474024743 throw new Exception("Missing required property");
2474124744 }
24742- if (!property_exists($obj, 'noexcept')) {
24743- throw new Exception("Missing required property");
24744- }
2474524745 return new Obj3(
2474624746 Obj3::fromDummy($obj->{'dummy'})
24747+ ,Obj3::fromGoto($obj->{'goto'})
2474724748 ,Obj3::fromGuard($obj->{'guard'})
2474824749 ,Obj3::fromHasOwnProperty($obj->{'hasOwnProperty'})
2474924750 ,Obj3::fromHashCode($obj->{'hashCode'})
@@ -24807,7 +24808,6 @@ class Obj3 {
2480724808 ,Obj3::fromNewtonsoft($obj->{'newtonsoft'})
2480824809 ,Obj3::fromNil($obj->{'nil'})
2480924810 ,Obj3::fromNo($obj->{'NO'})
24810- ,Obj3::fromNoexcept($obj->{'noexcept'})
2481124811 );
2481224812 }
2481324813
@@ -24817,6 +24817,7 @@ class Obj3 {
2481724817 public static function sample(): Obj3 {
2481824818 return new Obj3(
2481924819 Obj3::sampleDummy()
24820+ ,Obj3::sampleGoto()
2482024821 ,Obj3::sampleGuard()
2482124822 ,Obj3::sampleHasOwnProperty()
2482224823 ,Obj3::sampleHashCode()
@@ -24880,7 +24881,107 @@ class Obj3 {
2488024881 ,Obj3::sampleNewtonsoft()
2488124882 ,Obj3::sampleNil()
2488224883 ,Obj3::sampleNo()
24883- ,Obj3::sampleNoexcept()
24884+ );
24885+ }
24886+}
24887+
24888+// This is an autogenerated file:GotoClass
24889+
24890+class GotoClass {
24891+ private int $goto; // json:goto Required
24892+
24893+ /**
24894+ * @param int $goto
24895+ */
24896+ public function __construct(int $goto) {
24897+ $this->goto = $goto;
24898+ }
24899+
24900+ /**
24901+ * @param int $value
24902+ * @throws Exception
24903+ * @return int
24904+ */
24905+ public static function fromGoto(int $value): int {
24906+ return $value; /*int*/
24907+ }
24908+
24909+ /**
24910+ * @throws Exception
24911+ * @return int
24912+ */
24913+ public function toGoto(): int {
24914+ if (GotoClass::validateGoto($this->goto)) {
24915+ return $this->goto; /*int*/
24916+ }
24917+ throw new Exception('never get to this GotoClass::goto');
24918+ }
24919+
24920+ /**
24921+ * @param int
24922+ * @return bool
24923+ * @throws Exception
24924+ */
24925+ public static function validateGoto(int $value): bool {
24926+ return true;
24927+ }
24928+
24929+ /**
24930+ * @throws Exception
24931+ * @return int
24932+ */
24933+ public function getGoto(): int {
24934+ if (GotoClass::validateGoto($this->goto)) {
24935+ return $this->goto;
24936+ }
24937+ throw new Exception('never get to getGoto GotoClass::goto');
24938+ }
24939+
24940+ /**
24941+ * @return int
24942+ */
24943+ public static function sampleGoto(): int {
24944+ return 31; /*31:goto*/
24945+ }
24946+
24947+ /**
24948+ * @throws Exception
24949+ * @return bool
24950+ */
24951+ public function validate(): bool {
24952+ return GotoClass::validateGoto($this->goto);
24953+ }
24954+
24955+ /**
24956+ * @return stdClass
24957+ * @throws Exception
24958+ */
24959+ public function to(): stdClass {
24960+ $out = new stdClass();
24961+ $out->{'goto'} = $this->toGoto();
24962+ return $out;
24963+ }
24964+
24965+ /**
24966+ * @param stdClass $obj
24967+ * @return GotoClass
24968+ * @throws Exception
24969+ */
24970+ public static function from(stdClass $obj): GotoClass {
24971+ if (!property_exists($obj, 'goto')) {
24972+ throw new Exception("Missing required property");
24973+ }
24974+ return new GotoClass(
24975+ GotoClass::fromGoto($obj->{'goto'})
24976+ );
24977+ }
24978+
24979+ /**
24980+ * @return GotoClass
24981+ */
24982+ public static function sample(): GotoClass {
24983+ return new GotoClass(
24984+ GotoClass::sampleGoto()
2488424985 );
2488524986 }
2488624987 }
@@ -31251,112 +31352,12 @@ class No {
3125131352 }
3125231353 }
3125331354
31254-// This is an autogenerated file:Noexcept
31255-
31256-class Noexcept {
31257- private int $noexcept; // json:noexcept Required
31258-
31259- /**
31260- * @param int $noexcept
31261- */
31262- public function __construct(int $noexcept) {
31263- $this->noexcept = $noexcept;
31264- }
31265-
31266- /**
31267- * @param int $value
31268- * @throws Exception
31269- * @return int
31270- */
31271- public static function fromNoexcept(int $value): int {
31272- return $value; /*int*/
31273- }
31274-
31275- /**
31276- * @throws Exception
31277- * @return int
31278- */
31279- public function toNoexcept(): int {
31280- if (Noexcept::validateNoexcept($this->noexcept)) {
31281- return $this->noexcept; /*int*/
31282- }
31283- throw new Exception('never get to this Noexcept::noexcept');
31284- }
31285-
31286- /**
31287- * @param int
31288- * @return bool
31289- * @throws Exception
31290- */
31291- public static function validateNoexcept(int $value): bool {
31292- return true;
31293- }
31294-
31295- /**
31296- * @throws Exception
31297- * @return int
31298- */
31299- public function getNoexcept(): int {
31300- if (Noexcept::validateNoexcept($this->noexcept)) {
31301- return $this->noexcept;
31302- }
31303- throw new Exception('never get to getNoexcept Noexcept::noexcept');
31304- }
31305-
31306- /**
31307- * @return int
31308- */
31309- public static function sampleNoexcept(): int {
31310- return 31; /*31:noexcept*/
31311- }
31312-
31313- /**
31314- * @throws Exception
31315- * @return bool
31316- */
31317- public function validate(): bool {
31318- return Noexcept::validateNoexcept($this->noexcept);
31319- }
31320-
31321- /**
31322- * @return stdClass
31323- * @throws Exception
31324- */
31325- public function to(): stdClass {
31326- $out = new stdClass();
31327- $out->{'noexcept'} = $this->toNoexcept();
31328- return $out;
31329- }
31330-
31331- /**
31332- * @param stdClass $obj
31333- * @return Noexcept
31334- * @throws Exception
31335- */
31336- public static function from(stdClass $obj): Noexcept {
31337- if (!property_exists($obj, 'noexcept')) {
31338- throw new Exception("Missing required property");
31339- }
31340- return new Noexcept(
31341- Noexcept::fromNoexcept($obj->{'noexcept'})
31342- );
31343- }
31344-
31345- /**
31346- * @return Noexcept
31347- */
31348- public static function sample(): Noexcept {
31349- return new Noexcept(
31350- Noexcept::sampleNoexcept()
31351- );
31352- }
31353-}
31354-
3135531355 // This is an autogenerated file:Obj4
3135631356
3135731357 class Obj4 {
3135831358 private int $dummy; // json:dummy Required
3135931359 private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required
31360+ private Noexcept $noexcept; // json:noexcept Required
3136031361 private Nonatomic $nonatomic; // json:nonatomic Required
3136131362 private None $none; // json:None Required
3136231363 private Nonlocal $nonlocal; // json:nonlocal Required
@@ -31419,11 +31420,11 @@ class Obj4 {
3141931420 private Sbyte $sbyte; // json:sbyte Required
3142031421 private Sealed $sealed; // json:sealed Required
3142131422 private Sel $sel; // json:SEL Required
31422- private Select $select; // json:select Required
3142331423
3142431424 /**
3142531425 * @param int $dummy
3142631426 * @param NoSuchMethod $noSuchMethod
31427+ * @param Noexcept $noexcept
3142731428 * @param Nonatomic $nonatomic
3142831429 * @param None $none
3142931430 * @param Nonlocal $nonlocal
@@ -31486,11 +31487,11 @@ class Obj4 {
3148631487 * @param Sbyte $sbyte
3148731488 * @param Sealed $sealed
3148831489 * @param Sel $sel
31489- * @param Select $select
3149031490 */
31491- public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select) {
31491+ public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel) {
3149231492 $this->dummy = $dummy;
3149331493 $this->noSuchMethod = $noSuchMethod;
31494+ $this->noexcept = $noexcept;
3149431495 $this->nonatomic = $nonatomic;
3149531496 $this->none = $none;
3149631497 $this->nonlocal = $nonlocal;
@@ -31553,7 +31554,6 @@ class Obj4 {
3155331554 $this->sbyte = $sbyte;
3155431555 $this->sealed = $sealed;
3155531556 $this->sel = $sel;
31556- $this->select = $select;
3155731557 }
3155831558
3155931559 /**
@@ -31651,6 +31651,54 @@ class Obj4 {
3165131651 return NoSuchMethod::sample(); /*32:noSuchMethod*/
3165231652 }
3165331653
31654+ /**
31655+ * @param stdClass $value
31656+ * @throws Exception
31657+ * @return Noexcept
31658+ */
31659+ public static function fromNoexcept(stdClass $value): Noexcept {
31660+ return Noexcept::from($value); /*class*/
31661+ }
31662+
31663+ /**
31664+ * @throws Exception
31665+ * @return stdClass
31666+ */
31667+ public function toNoexcept(): stdClass {
31668+ if (Obj4::validateNoexcept($this->noexcept)) {
31669+ return $this->noexcept->to(); /*class*/
31670+ }
31671+ throw new Exception('never get to this Obj4::noexcept');
31672+ }
31673+
31674+ /**
31675+ * @param Noexcept
31676+ * @return bool
31677+ * @throws Exception
31678+ */
31679+ public static function validateNoexcept(Noexcept $value): bool {
31680+ $value->validate();
31681+ return true;
31682+ }
31683+
31684+ /**
31685+ * @throws Exception
31686+ * @return Noexcept
31687+ */
31688+ public function getNoexcept(): Noexcept {
31689+ if (Obj4::validateNoexcept($this->noexcept)) {
31690+ return $this->noexcept;
31691+ }
31692+ throw new Exception('never get to getNoexcept Obj4::noexcept');
31693+ }
31694+
31695+ /**
31696+ * @return Noexcept
31697+ */
31698+ public static function sampleNoexcept(): Noexcept {
31699+ return Noexcept::sample(); /*33:noexcept*/
31700+ }
31701+
3165431702 /**
3165531703 * @param stdClass $value
3165631704 * @throws Exception
@@ -31696,7 +31744,7 @@ class Obj4 {
3169631744 * @return Nonatomic
3169731745 */
3169831746 public static function sampleNonatomic(): Nonatomic {
31699- return Nonatomic::sample(); /*33:nonatomic*/
31747+ return Nonatomic::sample(); /*34:nonatomic*/
3170031748 }
3170131749
3170231750 /**
@@ -31744,7 +31792,7 @@ class Obj4 {
3174431792 * @return None
3174531793 */
3174631794 public static function sampleNone(): None {
31747- return None::sample(); /*34:none*/
31795+ return None::sample(); /*35:none*/
3174831796 }
3174931797
3175031798 /**
@@ -31792,7 +31840,7 @@ class Obj4 {
3179231840 * @return Nonlocal
3179331841 */
3179431842 public static function sampleNonlocal(): Nonlocal {
31795- return Nonlocal::sample(); /*35:nonlocal*/
31843+ return Nonlocal::sample(); /*36:nonlocal*/
3179631844 }
3179731845
3179831846 /**
@@ -31840,7 +31888,7 @@ class Obj4 {
3184031888 * @return Nonmutating
3184131889 */
3184231890 public static function sampleNonmutating(): Nonmutating {
31843- return Nonmutating::sample(); /*36:nonmutating*/
31891+ return Nonmutating::sample(); /*37:nonmutating*/
3184431892 }
3184531893
3184631894 /**
@@ -31888,7 +31936,7 @@ class Obj4 {
3188831936 * @return Not
3188931937 */
3189031938 public static function sampleNot(): Not {
31891- return Not::sample(); /*37:not*/
31939+ return Not::sample(); /*38:not*/
3189231940 }
3189331941
3189431942 /**
@@ -31936,7 +31984,7 @@ class Obj4 {
3193631984 * @return NotEq
3193731985 */
3193831986 public static function sampleNotEq(): NotEq {
31939- return NotEq::sample(); /*38:notEq*/
31987+ return NotEq::sample(); /*39:notEq*/
3194031988 }
3194131989
3194231990 /**
@@ -31984,7 +32032,7 @@ class Obj4 {
3198432032 * @return NSError
3198532033 */
3198632034 public static function sampleNSError(): NSError {
31987- return NSError::sample(); /*39:nsError*/
32035+ return NSError::sample(); /*40:nsError*/
3198832036 }
3198932037
3199032038 /**
@@ -32032,7 +32080,7 @@ class Obj4 {
3203232080 * @return NSObject
3203332081 */
3203432082 public static function sampleNSObject(): NSObject {
32035- return NSObject::sample(); /*40:nsObject*/
32083+ return NSObject::sample(); /*41:nsObject*/
3203632084 }
3203732085
3203832086 /**
@@ -32080,7 +32128,7 @@ class Obj4 {
3208032128 * @return NSString
3208132129 */
3208232130 public static function sampleNSString(): NSString {
32083- return NSString::sample(); /*41:nsString*/
32131+ return NSString::sample(); /*42:nsString*/
3208432132 }
3208532133
3208632134 /**
@@ -32128,7 +32176,7 @@ class Obj4 {
3212832176 * @return NULLClass
3212932177 */
3213032178 public static function sampleNull(): NULLClass {
32131- return NULLClass::sample(); /*42:null*/
32179+ return NULLClass::sample(); /*43:null*/
3213232180 }
3213332181
3213432182 /**
@@ -32176,7 +32224,7 @@ class Obj4 {
3217632224 * @return Nullptr
3217732225 */
3217832226 public static function sampleNullptr(): Nullptr {
32179- return Nullptr::sample(); /*43:nullptr*/
32227+ return Nullptr::sample(); /*44:nullptr*/
3218032228 }
3218132229
3218232230 /**
@@ -32224,7 +32272,7 @@ class Obj4 {
3222432272 * @return Number
3222532273 */
3222632274 public static function sampleNumber(): Number {
32227- return Number::sample(); /*44:number*/
32275+ return Number::sample(); /*45:number*/
3222832276 }
3222932277
3223032278 /**
@@ -32272,7 +32320,7 @@ class Obj4 {
3227232320 * @return NoneClass
3227332321 */
3227432322 public static function sampleObj4None(): NoneClass {
32275- return NoneClass::sample(); /*45:obj4None*/
32323+ return NoneClass::sample(); /*46:obj4None*/
3227632324 }
3227732325
3227832326 /**
@@ -32320,7 +32368,7 @@ class Obj4 {
3232032368 * @return Obj4Null
3232132369 */
3232232370 public static function sampleObj4Null(): Obj4Null {
32323- return Obj4Null::sample(); /*46:obj4Null*/
32371+ return Obj4Null::sample(); /*47:obj4Null*/
3232432372 }
3232532373
3232632374 /**
@@ -32368,7 +32416,7 @@ class Obj4 {
3236832416 * @return ProtocolClass
3236932417 */
3237032418 public static function sampleObj4Protocol(): ProtocolClass {
32371- return ProtocolClass::sample(); /*47:obj4Protocol*/
32419+ return ProtocolClass::sample(); /*48:obj4Protocol*/
3237232420 }
3237332421
3237432422 /**
@@ -32416,7 +32464,7 @@ class Obj4 {
3241632464 * @return ObjectClass
3241732465 */
3241832466 public static function sampleObject(): ObjectClass {
32419- return ObjectClass::sample(); /*48:object*/
32467+ return ObjectClass::sample(); /*49:object*/
3242032468 }
3242132469
3242232470 /**
@@ -32464,7 +32512,7 @@ class Obj4 {
3246432512 * @return ObjectMapper
3246532513 */
3246632514 public static function sampleObjectMapper(): ObjectMapper {
32467- return ObjectMapper::sample(); /*49:objectMapper*/
32515+ return ObjectMapper::sample(); /*50:objectMapper*/
3246832516 }
3246932517
3247032518 /**
@@ -32512,7 +32560,7 @@ class Obj4 {
3251232560 * @return Of
3251332561 */
3251432562 public static function sampleOf(): Of {
32515- return Of::sample(); /*50:of*/
32563+ return Of::sample(); /*51:of*/
3251632564 }
3251732565
3251832566 /**
@@ -32560,7 +32608,7 @@ class Obj4 {
3256032608 * @return Oneway
3256132609 */
3256232610 public static function sampleOneway(): Oneway {
32563- return Oneway::sample(); /*51:oneway*/
32611+ return Oneway::sample(); /*52:oneway*/
3256432612 }
3256532613
3256632614 /**
@@ -32608,7 +32656,7 @@ class Obj4 {
3260832656 * @return Open
3260932657 */
3261032658 public static function sampleOpen(): Open {
32611- return Open::sample(); /*52:open*/
32659+ return Open::sample(); /*53:open*/
3261232660 }
3261332661
3261432662 /**
@@ -32656,7 +32704,7 @@ class Obj4 {
3265632704 * @return Operator
3265732705 */
3265832706 public static function sampleOperator(): Operator {
32659- return Operator::sample(); /*53:operator*/
32707+ return Operator::sample(); /*54:operator*/
3266032708 }
3266132709
3266232710 /**
@@ -32704,7 +32752,7 @@ class Obj4 {
3270432752 * @return Optional
3270532753 */
3270632754 public static function sampleOptional(): Optional {
32707- return Optional::sample(); /*54:optional*/
32755+ return Optional::sample(); /*55:optional*/
3270832756 }
3270932757
3271032758 /**
@@ -32752,7 +32800,7 @@ class Obj4 {
3275232800 * @return OrClass
3275332801 */
3275432802 public static function sampleOr(): OrClass {
32755- return OrClass::sample(); /*55:or*/
32803+ return OrClass::sample(); /*56:or*/
3275632804 }
3275732805
3275832806 /**
@@ -32800,7 +32848,7 @@ class Obj4 {
3280032848 * @return OrEq
3280132849 */
3280232850 public static function sampleOrEq(): OrEq {
32803- return OrEq::sample(); /*56:orEq*/
32851+ return OrEq::sample(); /*57:orEq*/
3280432852 }
3280532853
3280632854 /**
@@ -32848,7 +32896,7 @@ class Obj4 {
3284832896 * @return Out
3284932897 */
3285032898 public static function sampleOut(): Out {
32851- return Out::sample(); /*57:out*/
32899+ return Out::sample(); /*58:out*/
3285232900 }
3285332901
3285432902 /**
@@ -32896,7 +32944,7 @@ class Obj4 {
3289632944 * @return OverrideClass
3289732945 */
3289832946 public static function sampleOverride(): OverrideClass {
32899- return OverrideClass::sample(); /*58:override*/
32947+ return OverrideClass::sample(); /*59:override*/
3290032948 }
3290132949
3290232950 /**
@@ -32944,7 +32992,7 @@ class Obj4 {
3294432992 * @return Package
3294532993 */
3294632994 public static function samplePackage(): Package {
32947- return Package::sample(); /*59:package*/
32995+ return Package::sample(); /*60:package*/
3294832996 }
3294932997
3295032998 /**
@@ -32992,7 +33040,7 @@ class Obj4 {
3299233040 * @return Params
3299333041 */
3299433042 public static function sampleParams(): Params {
32995- return Params::sample(); /*60:params*/
33043+ return Params::sample(); /*61:params*/
3299633044 }
3299733045
3299833046 /**
@@ -33040,7 +33088,7 @@ class Obj4 {
3304033088 * @return Pass
3304133089 */
3304233090 public static function samplePass(): Pass {
33043- return Pass::sample(); /*61:pass*/
33091+ return Pass::sample(); /*62:pass*/
3304433092 }
3304533093
3304633094 /**
@@ -33088,7 +33136,7 @@ class Obj4 {
3308833136 * @return Port
3308933137 */
3309033138 public static function samplePort(): Port {
33091- return Port::sample(); /*62:port*/
33139+ return Port::sample(); /*63:port*/
3309233140 }
3309333141
3309433142 /**
@@ -33136,7 +33184,7 @@ class Obj4 {
3313633184 * @return Postfix
3313733185 */
3313833186 public static function samplePostfix(): Postfix {
33139- return Postfix::sample(); /*63:postfix*/
33187+ return Postfix::sample(); /*64:postfix*/
3314033188 }
3314133189
3314233190 /**
@@ -33184,7 +33232,7 @@ class Obj4 {
3318433232 * @return Precedence
3318533233 */
3318633234 public static function samplePrecedence(): Precedence {
33187- return Precedence::sample(); /*64:precedence*/
33235+ return Precedence::sample(); /*65:precedence*/
3318833236 }
3318933237
3319033238 /**
@@ -33232,7 +33280,7 @@ class Obj4 {
3323233280 * @return Prefix
3323333281 */
3323433282 public static function samplePrefix(): Prefix {
33235- return Prefix::sample(); /*65:prefix*/
33283+ return Prefix::sample(); /*66:prefix*/
3323633284 }
3323733285
3323833286 /**
@@ -33280,7 +33328,7 @@ class Obj4 {
3328033328 * @return PrintClass
3328133329 */
3328233330 public static function samplePrint(): PrintClass {
33283- return PrintClass::sample(); /*66:print*/
33331+ return PrintClass::sample(); /*67:print*/
3328433332 }
3328533333
3328633334 /**
@@ -33328,7 +33376,7 @@ class Obj4 {
3332833376 * @return PrintMembers
3332933377 */
3333033378 public static function samplePrintMembers(): PrintMembers {
33331- return PrintMembers::sample(); /*67:printMembers*/
33379+ return PrintMembers::sample(); /*68:printMembers*/
3333233380 }
3333333381
3333433382 /**
@@ -33376,7 +33424,7 @@ class Obj4 {
3337633424 * @return Printf
3337733425 */
3337833426 public static function samplePrintf(): Printf {
33379- return Printf::sample(); /*68:printf*/
33427+ return Printf::sample(); /*69:printf*/
3338033428 }
3338133429
3338233430 /**
@@ -33424,7 +33472,7 @@ class Obj4 {
3342433472 * @return PrivateClass
3342533473 */
3342633474 public static function samplePrivate(): PrivateClass {
33427- return PrivateClass::sample(); /*69:private*/
33475+ return PrivateClass::sample(); /*70:private*/
3342833476 }
3342933477
3343033478 /**
@@ -33472,7 +33520,7 @@ class Obj4 {
3347233520 * @return ProtectedClass
3347333521 */
3347433522 public static function sampleProtected(): ProtectedClass {
33475- return ProtectedClass::sample(); /*70:protected*/
33523+ return ProtectedClass::sample(); /*71:protected*/
3347633524 }
3347733525
3347833526 /**
@@ -33520,7 +33568,7 @@ class Obj4 {
3352033568 * @return Protocol
3352133569 */
3352233570 public static function sampleProtocol(): Protocol {
33523- return Protocol::sample(); /*71:protocol*/
33571+ return Protocol::sample(); /*72:protocol*/
3352433572 }
3352533573
3352633574 /**
@@ -33568,7 +33616,7 @@ class Obj4 {
3356833616 * @return PublicClass
3356933617 */
3357033618 public static function samplePublic(): PublicClass {
33571- return PublicClass::sample(); /*72:public*/
33619+ return PublicClass::sample(); /*73:public*/
3357233620 }
3357333621
3357433622 /**
@@ -33616,7 +33664,7 @@ class Obj4 {
3361633664 * @return Quicktype
3361733665 */
3361833666 public static function sampleQuicktype(): Quicktype {
33619- return Quicktype::sample(); /*73:quicktype*/
33667+ return Quicktype::sample(); /*74:quicktype*/
3362033668 }
3362133669
3362233670 /**
@@ -33664,7 +33712,7 @@ class Obj4 {
3366433712 * @return Raise
3366533713 */
3366633714 public static function sampleRaise(): Raise {
33667- return Raise::sample(); /*74:raise*/
33715+ return Raise::sample(); /*75:raise*/
3366833716 }
3366933717
3367033718 /**
@@ -33712,7 +33760,7 @@ class Obj4 {
3371233760 * @return Range
3371333761 */
3371433762 public static function sampleRange(): Range {
33715- return Range::sample(); /*75:range*/
33763+ return Range::sample(); /*76:range*/
3371633764 }
3371733765
3371833766 /**
@@ -33760,7 +33808,7 @@ class Obj4 {
3376033808 * @return ReadonlyClass
3376133809 */
3376233810 public static function sampleReadonly(): ReadonlyClass {
33763- return ReadonlyClass::sample(); /*76:readonly*/
33811+ return ReadonlyClass::sample(); /*77:readonly*/
3376433812 }
3376533813
3376633814 /**
@@ -33808,7 +33856,7 @@ class Obj4 {
3380833856 * @return Ref
3380933857 */
3381033858 public static function sampleRef(): Ref {
33811- return Ref::sample(); /*77:ref*/
33859+ return Ref::sample(); /*78:ref*/
3381233860 }
3381333861
3381433862 /**
@@ -33856,7 +33904,7 @@ class Obj4 {
3385633904 * @return RegExp
3385733905 */
3385833906 public static function sampleRegExp(): RegExp {
33859- return RegExp::sample(); /*78:regExp*/
33907+ return RegExp::sample(); /*79:regExp*/
3386033908 }
3386133909
3386233910 /**
@@ -33904,7 +33952,7 @@ class Obj4 {
3390433952 * @return Register
3390533953 */
3390633954 public static function sampleRegister(): Register {
33907- return Register::sample(); /*79:register*/
33955+ return Register::sample(); /*80:register*/
3390833956 }
3390933957
3391033958 /**
@@ -33952,7 +34000,7 @@ class Obj4 {
3395234000 * @return ReinterpretCast
3395334001 */
3395434002 public static function sampleReinterpretCast(): ReinterpretCast {
33955- return ReinterpretCast::sample(); /*80:reinterpretCast*/
34003+ return ReinterpretCast::sample(); /*81:reinterpretCast*/
3395634004 }
3395734005
3395834006 /**
@@ -34000,7 +34048,7 @@ class Obj4 {
3400034048 * @return Repeat
3400134049 */
3400234050 public static function sampleRepeat(): Repeat {
34003- return Repeat::sample(); /*81:repeat*/
34051+ return Repeat::sample(); /*82:repeat*/
3400434052 }
3400534053
3400634054 /**
@@ -34048,7 +34096,7 @@ class Obj4 {
3404834096 * @return RequireClass
3404934097 */
3405034098 public static function sampleRequire(): RequireClass {
34051- return RequireClass::sample(); /*82:require*/
34099+ return RequireClass::sample(); /*83:require*/
3405234100 }
3405334101
3405434102 /**
@@ -34096,7 +34144,7 @@ class Obj4 {
3409634144 * @return Required
3409734145 */
3409834146 public static function sampleRequired(): Required {
34099- return Required::sample(); /*83:required*/
34147+ return Required::sample(); /*84:required*/
3410034148 }
3410134149
3410234150 /**
@@ -34144,7 +34192,7 @@ class Obj4 {
3414434192 * @return Requires
3414534193 */
3414634194 public static function sampleRequires(): Requires {
34147- return Requires::sample(); /*84:requires*/
34195+ return Requires::sample(); /*85:requires*/
3414834196 }
3414934197
3415034198 /**
@@ -34192,7 +34240,7 @@ class Obj4 {
3419234240 * @return Restrict
3419334241 */
3419434242 public static function sampleRestrict(): Restrict {
34195- return Restrict::sample(); /*85:restrict*/
34243+ return Restrict::sample(); /*86:restrict*/
3419634244 }
3419734245
3419834246 /**
@@ -34240,7 +34288,7 @@ class Obj4 {
3424034288 * @return Retain
3424134289 */
3424234290 public static function sampleRetain(): Retain {
34243- return Retain::sample(); /*86:retain*/
34291+ return Retain::sample(); /*87:retain*/
3424434292 }
3424534293
3424634294 /**
@@ -34288,7 +34336,7 @@ class Obj4 {
3428834336 * @return Rethrows
3428934337 */
3429034338 public static function sampleRethrows(): Rethrows {
34291- return Rethrows::sample(); /*87:rethrows*/
34339+ return Rethrows::sample(); /*88:rethrows*/
3429234340 }
3429334341
3429434342 /**
@@ -34336,7 +34384,7 @@ class Obj4 {
3433634384 * @return ReturnClass
3433734385 */
3433834386 public static function sampleReturn(): ReturnClass {
34339- return ReturnClass::sample(); /*88:return*/
34387+ return ReturnClass::sample(); /*89:return*/
3434034388 }
3434134389
3434234390 /**
@@ -34384,7 +34432,7 @@ class Obj4 {
3438434432 * @return Right
3438534433 */
3438634434 public static function sampleRight(): Right {
34387- return Right::sample(); /*89:right*/
34435+ return Right::sample(); /*90:right*/
3438834436 }
3438934437
3439034438 /**
@@ -34432,7 +34480,7 @@ class Obj4 {
3443234480 * @return RuntimeType
3443334481 */
3443434482 public static function sampleRuntimeType(): RuntimeType {
34435- return RuntimeType::sample(); /*90:runtimeType*/
34483+ return RuntimeType::sample(); /*91:runtimeType*/
3443634484 }
3443734485
3443834486 /**
@@ -34480,7 +34528,7 @@ class Obj4 {
3448034528 * @return S
3448134529 */
3448234530 public static function sampleS(): S {
34483- return S::sample(); /*91:s*/
34531+ return S::sample(); /*92:s*/
3448434532 }
3448534533
3448634534 /**
@@ -34528,7 +34576,7 @@ class Obj4 {
3452834576 * @return Sbyte
3452934577 */
3453034578 public static function sampleSbyte(): Sbyte {
34531- return Sbyte::sample(); /*92:sbyte*/
34579+ return Sbyte::sample(); /*93:sbyte*/
3453234580 }
3453334581
3453434582 /**
@@ -34576,7 +34624,7 @@ class Obj4 {
3457634624 * @return Sealed
3457734625 */
3457834626 public static function sampleSealed(): Sealed {
34579- return Sealed::sample(); /*93:sealed*/
34627+ return Sealed::sample(); /*94:sealed*/
3458034628 }
3458134629
3458234630 /**
@@ -34624,55 +34672,7 @@ class Obj4 {
3462434672 * @return Sel
3462534673 */
3462634674 public static function sampleSel(): Sel {
34627- return Sel::sample(); /*94:sel*/
34628- }
34629-
34630- /**
34631- * @param stdClass $value
34632- * @throws Exception
34633- * @return Select
34634- */
34635- public static function fromSelect(stdClass $value): Select {
34636- return Select::from($value); /*class*/
34637- }
34638-
34639- /**
34640- * @throws Exception
34641- * @return stdClass
34642- */
34643- public function toSelect(): stdClass {
34644- if (Obj4::validateSelect($this->select)) {
34645- return $this->select->to(); /*class*/
34646- }
34647- throw new Exception('never get to this Obj4::select');
34648- }
34649-
34650- /**
34651- * @param Select
34652- * @return bool
34653- * @throws Exception
34654- */
34655- public static function validateSelect(Select $value): bool {
34656- $value->validate();
34657- return true;
34658- }
34659-
34660- /**
34661- * @throws Exception
34662- * @return Select
34663- */
34664- public function getSelect(): Select {
34665- if (Obj4::validateSelect($this->select)) {
34666- return $this->select;
34667- }
34668- throw new Exception('never get to getSelect Obj4::select');
34669- }
34670-
34671- /**
34672- * @return Select
34673- */
34674- public static function sampleSelect(): Select {
34675- return Select::sample(); /*95:select*/
34675+ return Sel::sample(); /*95:sel*/
3467634676 }
3467734677
3467834678 /**
@@ -34682,6 +34682,7 @@ class Obj4 {
3468234682 public function validate(): bool {
3468334683 return Obj4::validateDummy($this->dummy)
3468434684 || Obj4::validateNoSuchMethod($this->noSuchMethod)
34685+ || Obj4::validateNoexcept($this->noexcept)
3468534686 || Obj4::validateNonatomic($this->nonatomic)
3468634687 || Obj4::validateNone($this->none)
3468734688 || Obj4::validateNonlocal($this->nonlocal)
@@ -34743,8 +34744,7 @@ class Obj4 {
3474334744 || Obj4::validateS($this->s)
3474434745 || Obj4::validateSbyte($this->sbyte)
3474534746 || Obj4::validateSealed($this->sealed)
34746- || Obj4::validateSel($this->sel)
34747- || Obj4::validateSelect($this->select);
34747+ || Obj4::validateSel($this->sel);
3474834748 }
3474934749
3475034750 /**
@@ -34755,6 +34755,7 @@ class Obj4 {
3475534755 $out = new stdClass();
3475634756 $out->{'dummy'} = $this->toDummy();
3475734757 $out->{'noSuchMethod'} = $this->toNoSuchMethod();
34758+ $out->{'noexcept'} = $this->toNoexcept();
3475834759 $out->{'nonatomic'} = $this->toNonatomic();
3475934760 $out->{'None'} = $this->toNone();
3476034761 $out->{'nonlocal'} = $this->toNonlocal();
@@ -34817,7 +34818,6 @@ class Obj4 {
3481734818 $out->{'sbyte'} = $this->toSbyte();
3481834819 $out->{'sealed'} = $this->toSealed();
3481934820 $out->{'SEL'} = $this->toSel();
34820- $out->{'select'} = $this->toSelect();
3482134821 return $out;
3482234822 }
3482334823
@@ -34833,6 +34833,9 @@ class Obj4 {
3483334833 if (!property_exists($obj, 'noSuchMethod')) {
3483434834 throw new Exception("Missing required property");
3483534835 }
34836+ if (!property_exists($obj, 'noexcept')) {
34837+ throw new Exception("Missing required property");
34838+ }
3483634839 if (!property_exists($obj, 'nonatomic')) {
3483734840 throw new Exception("Missing required property");
3483834841 }
@@ -35019,12 +35022,10 @@ class Obj4 {
3501935022 if (!property_exists($obj, 'SEL')) {
3502035023 throw new Exception("Missing required property");
3502135024 }
35022- if (!property_exists($obj, 'select')) {
35023- throw new Exception("Missing required property");
35024- }
3502535025 return new Obj4(
3502635026 Obj4::fromDummy($obj->{'dummy'})
3502735027 ,Obj4::fromNoSuchMethod($obj->{'noSuchMethod'})
35028+ ,Obj4::fromNoexcept($obj->{'noexcept'})
3502835029 ,Obj4::fromNonatomic($obj->{'nonatomic'})
3502935030 ,Obj4::fromNone($obj->{'None'})
3503035031 ,Obj4::fromNonlocal($obj->{'nonlocal'})
@@ -35087,7 +35088,6 @@ class Obj4 {
3508735088 ,Obj4::fromSbyte($obj->{'sbyte'})
3508835089 ,Obj4::fromSealed($obj->{'sealed'})
3508935090 ,Obj4::fromSel($obj->{'SEL'})
35090- ,Obj4::fromSelect($obj->{'select'})
3509135091 );
3509235092 }
3509335093
@@ -35098,6 +35098,7 @@ class Obj4 {
3509835098 return new Obj4(
3509935099 Obj4::sampleDummy()
3510035100 ,Obj4::sampleNoSuchMethod()
35101+ ,Obj4::sampleNoexcept()
3510135102 ,Obj4::sampleNonatomic()
3510235103 ,Obj4::sampleNone()
3510335104 ,Obj4::sampleNonlocal()
@@ -35160,7 +35161,6 @@ class Obj4 {
3516035161 ,Obj4::sampleSbyte()
3516135162 ,Obj4::sampleSealed()
3516235163 ,Obj4::sampleSel()
35163- ,Obj4::sampleSelect()
3516435164 );
3516535165 }
3516635166 }
@@ -35266,6 +35266,107 @@ class NoSuchMethod {
3526635266 }
3526735267 }
3526835268
35269+// This is an autogenerated file:Noexcept
35270+
35271+class Noexcept {
35272+ private int $noexcept; // json:noexcept Required
35273+
35274+ /**
35275+ * @param int $noexcept
35276+ */
35277+ public function __construct(int $noexcept) {
35278+ $this->noexcept = $noexcept;
35279+ }
35280+
35281+ /**
35282+ * @param int $value
35283+ * @throws Exception
35284+ * @return int
35285+ */
35286+ public static function fromNoexcept(int $value): int {
35287+ return $value; /*int*/
35288+ }
35289+
35290+ /**
35291+ * @throws Exception
35292+ * @return int
35293+ */
35294+ public function toNoexcept(): int {
35295+ if (Noexcept::validateNoexcept($this->noexcept)) {
35296+ return $this->noexcept; /*int*/
35297+ }
35298+ throw new Exception('never get to this Noexcept::noexcept');
35299+ }
35300+
35301+ /**
35302+ * @param int
35303+ * @return bool
35304+ * @throws Exception
35305+ */
35306+ public static function validateNoexcept(int $value): bool {
35307+ return true;
35308+ }
35309+
35310+ /**
35311+ * @throws Exception
35312+ * @return int
35313+ */
35314+ public function getNoexcept(): int {
35315+ if (Noexcept::validateNoexcept($this->noexcept)) {
35316+ return $this->noexcept;
35317+ }
35318+ throw new Exception('never get to getNoexcept Noexcept::noexcept');
35319+ }
35320+
35321+ /**
35322+ * @return int
35323+ */
35324+ public static function sampleNoexcept(): int {
35325+ return 31; /*31:noexcept*/
35326+ }
35327+
35328+ /**
35329+ * @throws Exception
35330+ * @return bool
35331+ */
35332+ public function validate(): bool {
35333+ return Noexcept::validateNoexcept($this->noexcept);
35334+ }
35335+
35336+ /**
35337+ * @return stdClass
35338+ * @throws Exception
35339+ */
35340+ public function to(): stdClass {
35341+ $out = new stdClass();
35342+ $out->{'noexcept'} = $this->toNoexcept();
35343+ return $out;
35344+ }
35345+
35346+ /**
35347+ * @param stdClass $obj
35348+ * @return Noexcept
35349+ * @throws Exception
35350+ */
35351+ public static function from(stdClass $obj): Noexcept {
35352+ if (!property_exists($obj, 'noexcept')) {
35353+ throw new Exception("Missing required property");
35354+ }
35355+ return new Noexcept(
35356+ Noexcept::fromNoexcept($obj->{'noexcept'})
35357+ );
35358+ }
35359+
35360+ /**
35361+ * @return Noexcept
35362+ */
35363+ public static function sample(): Noexcept {
35364+ return new Noexcept(
35365+ Noexcept::sampleNoexcept()
35366+ );
35367+ }
35368+}
35369+
3526935370 // This is an autogenerated file:Nonatomic
3527035371
3527135372 class Nonatomic {
@@ -41531,107 +41632,6 @@ class Sel {
4153141632 }
4153241633 }
4153341634
41534-// This is an autogenerated file:Select
41535-
41536-class Select {
41537- private int $select; // json:select Required
41538-
41539- /**
41540- * @param int $select
41541- */
41542- public function __construct(int $select) {
41543- $this->select = $select;
41544- }
41545-
41546- /**
41547- * @param int $value
41548- * @throws Exception
41549- * @return int
41550- */
41551- public static function fromSelect(int $value): int {
41552- return $value; /*int*/
41553- }
41554-
41555- /**
41556- * @throws Exception
41557- * @return int
41558- */
41559- public function toSelect(): int {
41560- if (Select::validateSelect($this->select)) {
41561- return $this->select; /*int*/
41562- }
41563- throw new Exception('never get to this Select::select');
41564- }
41565-
41566- /**
41567- * @param int
41568- * @return bool
41569- * @throws Exception
41570- */
41571- public static function validateSelect(int $value): bool {
41572- return true;
41573- }
41574-
41575- /**
41576- * @throws Exception
41577- * @return int
41578- */
41579- public function getSelect(): int {
41580- if (Select::validateSelect($this->select)) {
41581- return $this->select;
41582- }
41583- throw new Exception('never get to getSelect Select::select');
41584- }
41585-
41586- /**
41587- * @return int
41588- */
41589- public static function sampleSelect(): int {
41590- return 31; /*31:select*/
41591- }
41592-
41593- /**
41594- * @throws Exception
41595- * @return bool
41596- */
41597- public function validate(): bool {
41598- return Select::validateSelect($this->select);
41599- }
41600-
41601- /**
41602- * @return stdClass
41603- * @throws Exception
41604- */
41605- public function to(): stdClass {
41606- $out = new stdClass();
41607- $out->{'select'} = $this->toSelect();
41608- return $out;
41609- }
41610-
41611- /**
41612- * @param stdClass $obj
41613- * @return Select
41614- * @throws Exception
41615- */
41616- public static function from(stdClass $obj): Select {
41617- if (!property_exists($obj, 'select')) {
41618- throw new Exception("Missing required property");
41619- }
41620- return new Select(
41621- Select::fromSelect($obj->{'select'})
41622- );
41623- }
41624-
41625- /**
41626- * @return Select
41627- */
41628- public static function sample(): Select {
41629- return new Select(
41630- Select::sampleSelect()
41631- );
41632- }
41633-}
41634-
4163541635 // This is an autogenerated file:Obj5
4163641636
4163741637 class Obj5 {
@@ -41640,6 +41640,7 @@ class Obj5 {
4164041640 private This $obj5This; // json:this Required
4164141641 private Obj5True $obj5True; // json:true Required
4164241642 private TypeClass $obj5Type; // json:type Required
41643+ private Select $select; // json:select Required
4164341644 private SelfClass $self; // json:Self Required
4164441645 private Sendable $sendable; // json:Sendable Required
4164541646 private Serialize $serialize; // json:serialize Required
@@ -41673,6 +41674,7 @@ class Obj5 {
4167341674 private TimeOnly $timeOnly; // json:TimeOnly Required
4167441675 private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required
4167541676 private TimeZone $timeZone; // json:TimeZone Required
41677+ private ToDict $toDict; // json:to_dict Required
4167641678 private ToJSON $toJSON; // json:to_json Required
4167741679 private ToString $toString; // json:toString Required
4167841680 private TopLevelClass $topLevel; // json:top_level Required
@@ -41698,8 +41700,6 @@ class Obj5 {
4169841700 private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
4169941701 private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
4170041702 private UUID $uuid; // json:UUID Required
41701- private VarClass $var; // json:var Required
41702- private Virtual $virtual; // json:virtual Required
4170341703
4170441704 /**
4170541705 * @param int $dummy
@@ -41707,6 +41707,7 @@ class Obj5 {
4170741707 * @param This $obj5This
4170841708 * @param Obj5True $obj5True
4170941709 * @param TypeClass $obj5Type
41710+ * @param Select $select
4171041711 * @param SelfClass $self
4171141712 * @param Sendable $sendable
4171241713 * @param Serialize $serialize
@@ -41740,6 +41741,7 @@ class Obj5 {
4174041741 * @param TimeOnly $timeOnly
4174141742 * @param TimeOnlyConverter $timeOnlyConverter
4174241743 * @param TimeZone $timeZone
41744+ * @param ToDict $toDict
4174341745 * @param ToJSON $toJSON
4174441746 * @param ToString $toString
4174541747 * @param TopLevelClass $topLevel
@@ -41765,15 +41767,14 @@ class Obj5 {
4176541767 * @param Utf8JSONReader $utf8JSONReader
4176641768 * @param Utf8JSONWriter $utf8JSONWriter
4176741769 * @param UUID $uuid
41768- * @param VarClass $var
41769- * @param Virtual $virtual
4177041770 */
41771- public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, SelfClass $self, Sendable $sendable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual) {
41771+ public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, Select $select, SelfClass $self, Sendable $sendable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToDict $toDict, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid) {
4177241772 $this->dummy = $dummy;
4177341773 $this->obj5Self = $obj5Self;
4177441774 $this->obj5This = $obj5This;
4177541775 $this->obj5True = $obj5True;
4177641776 $this->obj5Type = $obj5Type;
41777+ $this->select = $select;
4177741778 $this->self = $self;
4177841779 $this->sendable = $sendable;
4177941780 $this->serialize = $serialize;
@@ -41807,6 +41808,7 @@ class Obj5 {
4180741808 $this->timeOnly = $timeOnly;
4180841809 $this->timeOnlyConverter = $timeOnlyConverter;
4180941810 $this->timeZone = $timeZone;
41811+ $this->toDict = $toDict;
4181041812 $this->toJSON = $toJSON;
4181141813 $this->toString = $toString;
4181241814 $this->topLevel = $topLevel;
@@ -41832,8 +41834,6 @@ class Obj5 {
4183241834 $this->utf8JSONReader = $utf8JSONReader;
4183341835 $this->utf8JSONWriter = $utf8JSONWriter;
4183441836 $this->uuid = $uuid;
41835- $this->var = $var;
41836- $this->virtual = $virtual;
4183741837 }
4183841838
4183941839 /**
@@ -42075,6 +42075,54 @@ class Obj5 {
4207542075 return TypeClass::sample(); /*35:obj5Type*/
4207642076 }
4207742077
42078+ /**
42079+ * @param stdClass $value
42080+ * @throws Exception
42081+ * @return Select
42082+ */
42083+ public static function fromSelect(stdClass $value): Select {
42084+ return Select::from($value); /*class*/
42085+ }
42086+
42087+ /**
42088+ * @throws Exception
42089+ * @return stdClass
42090+ */
42091+ public function toSelect(): stdClass {
42092+ if (Obj5::validateSelect($this->select)) {
42093+ return $this->select->to(); /*class*/
42094+ }
42095+ throw new Exception('never get to this Obj5::select');
42096+ }
42097+
42098+ /**
42099+ * @param Select
42100+ * @return bool
42101+ * @throws Exception
42102+ */
42103+ public static function validateSelect(Select $value): bool {
42104+ $value->validate();
42105+ return true;
42106+ }
42107+
42108+ /**
42109+ * @throws Exception
42110+ * @return Select
42111+ */
42112+ public function getSelect(): Select {
42113+ if (Obj5::validateSelect($this->select)) {
42114+ return $this->select;
42115+ }
42116+ throw new Exception('never get to getSelect Obj5::select');
42117+ }
42118+
42119+ /**
42120+ * @return Select
42121+ */
42122+ public static function sampleSelect(): Select {
42123+ return Select::sample(); /*36:select*/
42124+ }
42125+
4207842126 /**
4207942127 * @param stdClass $value
4208042128 * @throws Exception
@@ -42120,7 +42168,7 @@ class Obj5 {
4212042168 * @return SelfClass
4212142169 */
4212242170 public static function sampleSelf(): SelfClass {
42123- return SelfClass::sample(); /*36:self*/
42171+ return SelfClass::sample(); /*37:self*/
4212442172 }
4212542173
4212642174 /**
@@ -42168,7 +42216,7 @@ class Obj5 {
4216842216 * @return Sendable
4216942217 */
4217042218 public static function sampleSendable(): Sendable {
42171- return Sendable::sample(); /*37:sendable*/
42219+ return Sendable::sample(); /*38:sendable*/
4217242220 }
4217342221
4217442222 /**
@@ -42216,7 +42264,7 @@ class Obj5 {
4221642264 * @return Serialize
4221742265 */
4221842266 public static function sampleSerialize(): Serialize {
42219- return Serialize::sample(); /*38:serialize*/
42267+ return Serialize::sample(); /*39:serialize*/
4222042268 }
4222142269
4222242270 /**
@@ -42264,7 +42312,7 @@ class Obj5 {
4226442312 * @return SerializerProvider
4226542313 */
4226642314 public static function sampleSerializerProvider(): SerializerProvider {
42267- return SerializerProvider::sample(); /*39:serializerProvider*/
42315+ return SerializerProvider::sample(); /*40:serializerProvider*/
4226842316 }
4226942317
4227042318 /**
@@ -42312,7 +42360,7 @@ class Obj5 {
4231242360 * @return Set
4231342361 */
4231442362 public static function sampleSet(): Set {
42315- return Set::sample(); /*40:set*/
42363+ return Set::sample(); /*41:set*/
4231642364 }
4231742365
4231842366 /**
@@ -42360,7 +42408,7 @@ class Obj5 {
4236042408 * @return Short
4236142409 */
4236242410 public static function sampleShort(): Short {
42363- return Short::sample(); /*41:short*/
42411+ return Short::sample(); /*42:short*/
4236442412 }
4236542413
4236642414 /**
@@ -42408,7 +42456,7 @@ class Obj5 {
4240842456 * @return Signed
4240942457 */
4241042458 public static function sampleSigned(): Signed {
42411- return Signed::sample(); /*42:signed*/
42459+ return Signed::sample(); /*43:signed*/
4241242460 }
4241342461
4241442462 /**
@@ -42456,7 +42504,7 @@ class Obj5 {
4245642504 * @return SimpleModule
4245742505 */
4245842506 public static function sampleSimpleModule(): SimpleModule {
42459- return SimpleModule::sample(); /*43:simpleModule*/
42507+ return SimpleModule::sample(); /*44:simpleModule*/
4246042508 }
4246142509
4246242510 /**
@@ -42504,7 +42552,7 @@ class Obj5 {
4250442552 * @return Sizeof
4250542553 */
4250642554 public static function sampleSizeof(): Sizeof {
42507- return Sizeof::sample(); /*44:sizeof*/
42555+ return Sizeof::sample(); /*45:sizeof*/
4250842556 }
4250942557
4251042558 /**
@@ -42552,7 +42600,7 @@ class Obj5 {
4255242600 * @return Stackalloc
4255342601 */
4255442602 public static function sampleStackalloc(): Stackalloc {
42555- return Stackalloc::sample(); /*45:stackalloc*/
42603+ return Stackalloc::sample(); /*46:stackalloc*/
4255642604 }
4255742605
4255842606 /**
@@ -42600,7 +42648,7 @@ class Obj5 {
4260042648 * @return Standards
4260142649 */
4260242650 public static function sampleStandards(): Standards {
42603- return Standards::sample(); /*46:standards*/
42651+ return Standards::sample(); /*47:standards*/
4260442652 }
4260542653
4260642654 /**
@@ -42648,7 +42696,7 @@ class Obj5 {
4264842696 * @return StaticClass
4264942697 */
4265042698 public static function sampleStatic(): StaticClass {
42651- return StaticClass::sample(); /*47:static*/
42699+ return StaticClass::sample(); /*48:static*/
4265242700 }
4265342701
4265442702 /**
@@ -42696,7 +42744,7 @@ class Obj5 {
4269642744 * @return StaticAssert
4269742745 */
4269842746 public static function sampleStaticAssert(): StaticAssert {
42699- return StaticAssert::sample(); /*48:staticAssert*/
42747+ return StaticAssert::sample(); /*49:staticAssert*/
4270042748 }
4270142749
4270242750 /**
@@ -42744,7 +42792,7 @@ class Obj5 {
4274442792 * @return StaticCast
4274542793 */
4274642794 public static function sampleStaticCast(): StaticCast {
42747- return StaticCast::sample(); /*49:staticCast*/
42795+ return StaticCast::sample(); /*50:staticCast*/
4274842796 }
4274942797
4275042798 /**
@@ -42792,7 +42840,7 @@ class Obj5 {
4279242840 * @return StdDeserializer
4279342841 */
4279442842 public static function sampleStdDeserializer(): StdDeserializer {
42795- return StdDeserializer::sample(); /*50:stdDeserializer*/
42843+ return StdDeserializer::sample(); /*51:stdDeserializer*/
4279642844 }
4279742845
4279842846 /**
@@ -42840,7 +42888,7 @@ class Obj5 {
4284042888 * @return StdSerializer
4284142889 */
4284242890 public static function sampleStdSerializer(): StdSerializer {
42843- return StdSerializer::sample(); /*51:stdSerializer*/
42891+ return StdSerializer::sample(); /*52:stdSerializer*/
4284442892 }
4284542893
4284642894 /**
@@ -42888,7 +42936,7 @@ class Obj5 {
4288842936 * @return Strictfp
4288942937 */
4289042938 public static function sampleStrictfp(): Strictfp {
42891- return Strictfp::sample(); /*52:strictfp*/
42939+ return Strictfp::sample(); /*53:strictfp*/
4289242940 }
4289342941
4289442942 /**
@@ -42936,7 +42984,7 @@ class Obj5 {
4293642984 * @return StringClass
4293742985 */
4293842986 public static function sampleString(): StringClass {
42939- return StringClass::sample(); /*53:string*/
42987+ return StringClass::sample(); /*54:string*/
4294042988 }
4294142989
4294242990 /**
@@ -42984,7 +43032,7 @@ class Obj5 {
4298443032 * @return Struct
4298543033 */
4298643034 public static function sampleStruct(): Struct {
42987- return Struct::sample(); /*54:struct*/
43035+ return Struct::sample(); /*55:struct*/
4298843036 }
4298943037
4299043038 /**
@@ -43032,7 +43080,7 @@ class Obj5 {
4303243080 * @return Subscript
4303343081 */
4303443082 public static function sampleSubscript(): Subscript {
43035- return Subscript::sample(); /*55:subscript*/
43083+ return Subscript::sample(); /*56:subscript*/
4303643084 }
4303743085
4303843086 /**
@@ -43080,7 +43128,7 @@ class Obj5 {
4308043128 * @return Super
4308143129 */
4308243130 public static function sampleSuper(): Super {
43083- return Super::sample(); /*56:super*/
43131+ return Super::sample(); /*57:super*/
4308443132 }
4308543133
4308643134 /**
@@ -43128,7 +43176,7 @@ class Obj5 {
4312843176 * @return SwitchClass
4312943177 */
4313043178 public static function sampleSwitch(): SwitchClass {
43131- return SwitchClass::sample(); /*57:switch*/
43179+ return SwitchClass::sample(); /*58:switch*/
4313243180 }
4313343181
4313443182 /**
@@ -43176,7 +43224,7 @@ class Obj5 {
4317643224 * @return Symbol
4317743225 */
4317843226 public static function sampleSymbol(): Symbol {
43179- return Symbol::sample(); /*58:symbol*/
43227+ return Symbol::sample(); /*59:symbol*/
4318043228 }
4318143229
4318243230 /**
@@ -43224,7 +43272,7 @@ class Obj5 {
4322443272 * @return Synchronized
4322543273 */
4322643274 public static function sampleSynchronized(): Synchronized {
43227- return Synchronized::sample(); /*59:synchronized*/
43275+ return Synchronized::sample(); /*60:synchronized*/
4322843276 }
4322943277
4323043278 /**
@@ -43272,7 +43320,7 @@ class Obj5 {
4327243320 * @return System
4327343321 */
4327443322 public static function sampleSystem(): System {
43275- return System::sample(); /*60:system*/
43323+ return System::sample(); /*61:system*/
4327643324 }
4327743325
4327843326 /**
@@ -43320,7 +43368,7 @@ class Obj5 {
4332043368 * @return Template
4332143369 */
4332243370 public static function sampleTemplate(): Template {
43323- return Template::sample(); /*61:template*/
43371+ return Template::sample(); /*62:template*/
4332443372 }
4332543373
4332643374 /**
@@ -43368,7 +43416,7 @@ class Obj5 {
4336843416 * @return Then
4336943417 */
4337043418 public static function sampleThen(): Then {
43371- return Then::sample(); /*62:then*/
43419+ return Then::sample(); /*63:then*/
4337243420 }
4337343421
4337443422 /**
@@ -43416,7 +43464,7 @@ class Obj5 {
4341643464 * @return ThreadLocal
4341743465 */
4341843466 public static function sampleThreadLocal(): ThreadLocal {
43419- return ThreadLocal::sample(); /*63:threadLocal*/
43467+ return ThreadLocal::sample(); /*64:threadLocal*/
4342043468 }
4342143469
4342243470 /**
@@ -43464,7 +43512,7 @@ class Obj5 {
4346443512 * @return ThrowClass
4346543513 */
4346643514 public static function sampleThrow(): ThrowClass {
43467- return ThrowClass::sample(); /*64:throw*/
43515+ return ThrowClass::sample(); /*65:throw*/
4346843516 }
4346943517
4347043518 /**
@@ -43512,7 +43560,7 @@ class Obj5 {
4351243560 * @return Throws
4351343561 */
4351443562 public static function sampleThrows(): Throws {
43515- return Throws::sample(); /*65:throws*/
43563+ return Throws::sample(); /*66:throws*/
4351643564 }
4351743565
4351843566 /**
@@ -43560,7 +43608,7 @@ class Obj5 {
4356043608 * @return TimeOnly
4356143609 */
4356243610 public static function sampleTimeOnly(): TimeOnly {
43563- return TimeOnly::sample(); /*66:timeOnly*/
43611+ return TimeOnly::sample(); /*67:timeOnly*/
4356443612 }
4356543613
4356643614 /**
@@ -43608,7 +43656,7 @@ class Obj5 {
4360843656 * @return TimeOnlyConverter
4360943657 */
4361043658 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
43611- return TimeOnlyConverter::sample(); /*67:timeOnlyConverter*/
43659+ return TimeOnlyConverter::sample(); /*68:timeOnlyConverter*/
4361243660 }
4361343661
4361443662 /**
@@ -43656,7 +43704,55 @@ class Obj5 {
4365643704 * @return TimeZone
4365743705 */
4365843706 public static function sampleTimeZone(): TimeZone {
43659- return TimeZone::sample(); /*68:timeZone*/
43707+ return TimeZone::sample(); /*69:timeZone*/
43708+ }
43709+
43710+ /**
43711+ * @param stdClass $value
43712+ * @throws Exception
43713+ * @return ToDict
43714+ */
43715+ public static function fromToDict(stdClass $value): ToDict {
43716+ return ToDict::from($value); /*class*/
43717+ }
43718+
43719+ /**
43720+ * @throws Exception
43721+ * @return stdClass
43722+ */
43723+ public function toToDict(): stdClass {
43724+ if (Obj5::validateToDict($this->toDict)) {
43725+ return $this->toDict->to(); /*class*/
43726+ }
43727+ throw new Exception('never get to this Obj5::toDict');
43728+ }
43729+
43730+ /**
43731+ * @param ToDict
43732+ * @return bool
43733+ * @throws Exception
43734+ */
43735+ public static function validateToDict(ToDict $value): bool {
43736+ $value->validate();
43737+ return true;
43738+ }
43739+
43740+ /**
43741+ * @throws Exception
43742+ * @return ToDict
43743+ */
43744+ public function getToDict(): ToDict {
43745+ if (Obj5::validateToDict($this->toDict)) {
43746+ return $this->toDict;
43747+ }
43748+ throw new Exception('never get to getToDict Obj5::toDict');
43749+ }
43750+
43751+ /**
43752+ * @return ToDict
43753+ */
43754+ public static function sampleToDict(): ToDict {
43755+ return ToDict::sample(); /*70:toDict*/
4366043756 }
4366143757
4366243758 /**
@@ -43704,7 +43800,7 @@ class Obj5 {
4370443800 * @return ToJSON
4370543801 */
4370643802 public static function sampleToJSON(): ToJSON {
43707- return ToJSON::sample(); /*69:toJSON*/
43803+ return ToJSON::sample(); /*71:toJSON*/
4370843804 }
4370943805
4371043806 /**
@@ -43752,7 +43848,7 @@ class Obj5 {
4375243848 * @return ToString
4375343849 */
4375443850 public static function sampleToString(): ToString {
43755- return ToString::sample(); /*70:toString*/
43851+ return ToString::sample(); /*72:toString*/
4375643852 }
4375743853
4375843854 /**
@@ -43800,7 +43896,7 @@ class Obj5 {
4380043896 * @return TopLevelClass
4380143897 */
4380243898 public static function sampleTopLevel(): TopLevelClass {
43803- return TopLevelClass::sample(); /*71:topLevel*/
43899+ return TopLevelClass::sample(); /*73:topLevel*/
4380443900 }
4380543901
4380643902 /**
@@ -43848,7 +43944,7 @@ class Obj5 {
4384843944 * @return Transient
4384943945 */
4385043946 public static function sampleTransient(): Transient {
43851- return Transient::sample(); /*72:transient*/
43947+ return Transient::sample(); /*74:transient*/
4385243948 }
4385343949
4385443950 /**
@@ -43896,7 +43992,7 @@ class Obj5 {
4389643992 * @return TrueClass
4389743993 */
4389843994 public static function sampleTrue(): TrueClass {
43899- return TrueClass::sample(); /*73:true*/
43995+ return TrueClass::sample(); /*75:true*/
4390043996 }
4390143997
4390243998 /**
@@ -43944,7 +44040,7 @@ class Obj5 {
4394444040 * @return TryClass
4394544041 */
4394644042 public static function sampleTry(): TryClass {
43947- return TryClass::sample(); /*74:try*/
44043+ return TryClass::sample(); /*76:try*/
4394844044 }
4394944045
4395044046 /**
@@ -43992,7 +44088,7 @@ class Obj5 {
4399244088 * @return Type
4399344089 */
4399444090 public static function sampleType(): Type {
43995- return Type::sample(); /*75:type*/
44091+ return Type::sample(); /*77:type*/
4399644092 }
4399744093
4399844094 /**
@@ -44040,7 +44136,7 @@ class Obj5 {
4404044136 * @return Typealias
4404144137 */
4404244138 public static function sampleTypealias(): Typealias {
44043- return Typealias::sample(); /*76:typealias*/
44139+ return Typealias::sample(); /*78:typealias*/
4404444140 }
4404544141
4404644142 /**
@@ -44088,7 +44184,7 @@ class Obj5 {
4408844184 * @return Typedef
4408944185 */
4409044186 public static function sampleTypedef(): Typedef {
44091- return Typedef::sample(); /*77:typedef*/
44187+ return Typedef::sample(); /*79:typedef*/
4409244188 }
4409344189
4409444190 /**
@@ -44136,7 +44232,7 @@ class Obj5 {
4413644232 * @return Typeid
4413744233 */
4413844234 public static function sampleTypeid(): Typeid {
44139- return Typeid::sample(); /*78:typeid*/
44235+ return Typeid::sample(); /*80:typeid*/
4414044236 }
4414144237
4414244238 /**
@@ -44184,7 +44280,7 @@ class Obj5 {
4418444280 * @return Typename
4418544281 */
4418644282 public static function sampleTypename(): Typename {
44187- return Typename::sample(); /*79:typename*/
44283+ return Typename::sample(); /*81:typename*/
4418844284 }
4418944285
4419044286 /**
@@ -44232,7 +44328,7 @@ class Obj5 {
4423244328 * @return Typeof
4423344329 */
4423444330 public static function sampleTypeof(): Typeof {
44235- return Typeof::sample(); /*80:typeof*/
44331+ return Typeof::sample(); /*82:typeof*/
4423644332 }
4423744333
4423844334 /**
@@ -44280,7 +44376,7 @@ class Obj5 {
4428044376 * @return Uint
4428144377 */
4428244378 public static function sampleUint(): Uint {
44283- return Uint::sample(); /*81:uint*/
44379+ return Uint::sample(); /*83:uint*/
4428444380 }
4428544381
4428644382 /**
@@ -44328,7 +44424,7 @@ class Obj5 {
4432844424 * @return Ulong
4432944425 */
4433044426 public static function sampleUlong(): Ulong {
44331- return Ulong::sample(); /*82:ulong*/
44427+ return Ulong::sample(); /*84:ulong*/
4433244428 }
4433344429
4433444430 /**
@@ -44376,7 +44472,7 @@ class Obj5 {
4437644472 * @return Unchecked
4437744473 */
4437844474 public static function sampleUnchecked(): Unchecked {
44379- return Unchecked::sample(); /*83:unchecked*/
44475+ return Unchecked::sample(); /*85:unchecked*/
4438044476 }
4438144477
4438244478 /**
@@ -44424,7 +44520,7 @@ class Obj5 {
4442444520 * @return Undefined
4442544521 */
4442644522 public static function sampleUndefined(): Undefined {
44427- return Undefined::sample(); /*84:undefined*/
44523+ return Undefined::sample(); /*86:undefined*/
4442844524 }
4442944525
4443044526 /**
@@ -44472,7 +44568,7 @@ class Obj5 {
4447244568 * @return Union
4447344569 */
4447444570 public static function sampleUnion(): Union {
44475- return Union::sample(); /*85:union*/
44571+ return Union::sample(); /*87:union*/
4447644572 }
4447744573
4447844574 /**
@@ -44520,7 +44616,7 @@ class Obj5 {
4452044616 * @return Unowned
4452144617 */
4452244618 public static function sampleUnowned(): Unowned {
44523- return Unowned::sample(); /*86:unowned*/
44619+ return Unowned::sample(); /*88:unowned*/
4452444620 }
4452544621
4452644622 /**
@@ -44568,7 +44664,7 @@ class Obj5 {
4456844664 * @return Unsafe
4456944665 */
4457044666 public static function sampleUnsafe(): Unsafe {
44571- return Unsafe::sample(); /*87:unsafe*/
44667+ return Unsafe::sample(); /*89:unsafe*/
4457244668 }
4457344669
4457444670 /**
@@ -44616,7 +44712,7 @@ class Obj5 {
4461644712 * @return Unsigned
4461744713 */
4461844714 public static function sampleUnsigned(): Unsigned {
44619- return Unsigned::sample(); /*88:unsigned*/
44715+ return Unsigned::sample(); /*90:unsigned*/
4462044716 }
4462144717
4462244718 /**
@@ -44664,7 +44760,7 @@ class Obj5 {
4466444760 * @return Ushort
4466544761 */
4466644762 public static function sampleUshort(): Ushort {
44667- return Ushort::sample(); /*89:ushort*/
44763+ return Ushort::sample(); /*91:ushort*/
4466844764 }
4466944765
4467044766 /**
@@ -44712,7 +44808,7 @@ class Obj5 {
4471244808 * @return Using
4471344809 */
4471444810 public static function sampleUsing(): Using {
44715- return Using::sample(); /*90:using*/
44811+ return Using::sample(); /*92:using*/
4471644812 }
4471744813
4471844814 /**
@@ -44760,7 +44856,7 @@ class Obj5 {
4476044856 * @return Utf8JSONReader
4476144857 */
4476244858 public static function sampleUtf8JSONReader(): Utf8JSONReader {
44763- return Utf8JSONReader::sample(); /*91:utf8JSONReader*/
44859+ return Utf8JSONReader::sample(); /*93:utf8JSONReader*/
4476444860 }
4476544861
4476644862 /**
@@ -44808,7 +44904,7 @@ class Obj5 {
4480844904 * @return Utf8JSONWriter
4480944905 */
4481044906 public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
44811- return Utf8JSONWriter::sample(); /*92:utf8JSONWriter*/
44907+ return Utf8JSONWriter::sample(); /*94:utf8JSONWriter*/
4481244908 }
4481344909
4481444910 /**
@@ -44856,103 +44952,7 @@ class Obj5 {
4485644952 * @return UUID
4485744953 */
4485844954 public static function sampleUUID(): UUID {
44859- return UUID::sample(); /*93:uuid*/
44860- }
44861-
44862- /**
44863- * @param stdClass $value
44864- * @throws Exception
44865- * @return VarClass
44866- */
44867- public static function fromVar(stdClass $value): VarClass {
44868- return VarClass::from($value); /*class*/
44869- }
44870-
44871- /**
44872- * @throws Exception
44873- * @return stdClass
44874- */
44875- public function toVar(): stdClass {
44876- if (Obj5::validateVar($this->var)) {
44877- return $this->var->to(); /*class*/
44878- }
44879- throw new Exception('never get to this Obj5::var');
44880- }
44881-
44882- /**
44883- * @param VarClass
44884- * @return bool
44885- * @throws Exception
44886- */
44887- public static function validateVar(VarClass $value): bool {
44888- $value->validate();
44889- return true;
44890- }
44891-
44892- /**
44893- * @throws Exception
44894- * @return VarClass
44895- */
44896- public function getVar(): VarClass {
44897- if (Obj5::validateVar($this->var)) {
44898- return $this->var;
44899- }
44900- throw new Exception('never get to getVar Obj5::var');
44901- }
44902-
44903- /**
44904- * @return VarClass
44905- */
44906- public static function sampleVar(): VarClass {
44907- return VarClass::sample(); /*94:var*/
44908- }
44909-
44910- /**
44911- * @param stdClass $value
44912- * @throws Exception
44913- * @return Virtual
44914- */
44915- public static function fromVirtual(stdClass $value): Virtual {
44916- return Virtual::from($value); /*class*/
44917- }
44918-
44919- /**
44920- * @throws Exception
44921- * @return stdClass
44922- */
44923- public function toVirtual(): stdClass {
44924- if (Obj5::validateVirtual($this->virtual)) {
44925- return $this->virtual->to(); /*class*/
44926- }
44927- throw new Exception('never get to this Obj5::virtual');
44928- }
44929-
44930- /**
44931- * @param Virtual
44932- * @return bool
44933- * @throws Exception
44934- */
44935- public static function validateVirtual(Virtual $value): bool {
44936- $value->validate();
44937- return true;
44938- }
44939-
44940- /**
44941- * @throws Exception
44942- * @return Virtual
44943- */
44944- public function getVirtual(): Virtual {
44945- if (Obj5::validateVirtual($this->virtual)) {
44946- return $this->virtual;
44947- }
44948- throw new Exception('never get to getVirtual Obj5::virtual');
44949- }
44950-
44951- /**
44952- * @return Virtual
44953- */
44954- public static function sampleVirtual(): Virtual {
44955- return Virtual::sample(); /*95:virtual*/
44955+ return UUID::sample(); /*95:uuid*/
4495644956 }
4495744957
4495844958 /**
@@ -44965,6 +44965,7 @@ class Obj5 {
4496544965 || Obj5::validateObj5This($this->obj5This)
4496644966 || Obj5::validateObj5True($this->obj5True)
4496744967 || Obj5::validateObj5Type($this->obj5Type)
44968+ || Obj5::validateSelect($this->select)
4496844969 || Obj5::validateSelf($this->self)
4496944970 || Obj5::validateSendable($this->sendable)
4497044971 || Obj5::validateSerialize($this->serialize)
@@ -44998,6 +44999,7 @@ class Obj5 {
4499844999 || Obj5::validateTimeOnly($this->timeOnly)
4499945000 || Obj5::validateTimeOnlyConverter($this->timeOnlyConverter)
4500045001 || Obj5::validateTimeZone($this->timeZone)
45002+ || Obj5::validateToDict($this->toDict)
4500145003 || Obj5::validateToJSON($this->toJSON)
4500245004 || Obj5::validateToString($this->toString)
4500345005 || Obj5::validateTopLevel($this->topLevel)
@@ -45022,9 +45024,7 @@ class Obj5 {
4502245024 || Obj5::validateUsing($this->using)
4502345025 || Obj5::validateUtf8JSONReader($this->utf8JSONReader)
4502445026 || Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)
45025- || Obj5::validateUUID($this->uuid)
45026- || Obj5::validateVar($this->var)
45027- || Obj5::validateVirtual($this->virtual);
45027+ || Obj5::validateUUID($this->uuid);
4502845028 }
4502945029
4503045030 /**
@@ -45038,6 +45038,7 @@ class Obj5 {
4503845038 $out->{'this'} = $this->toObj5This();
4503945039 $out->{'true'} = $this->toObj5True();
4504045040 $out->{'type'} = $this->toObj5Type();
45041+ $out->{'select'} = $this->toSelect();
4504145042 $out->{'Self'} = $this->toSelf();
4504245043 $out->{'Sendable'} = $this->toSendable();
4504345044 $out->{'serialize'} = $this->toSerialize();
@@ -45071,6 +45072,7 @@ class Obj5 {
4507145072 $out->{'TimeOnly'} = $this->toTimeOnly();
4507245073 $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
4507345074 $out->{'TimeZone'} = $this->toTimeZone();
45075+ $out->{'to_dict'} = $this->toToDict();
4507445076 $out->{'to_json'} = $this->toToJSON();
4507545077 $out->{'toString'} = $this->toToString();
4507645078 $out->{'top_level'} = $this->toTopLevel();
@@ -45096,8 +45098,6 @@ class Obj5 {
4509645098 $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
4509745099 $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
4509845100 $out->{'UUID'} = $this->toUUID();
45099- $out->{'var'} = $this->toVar();
45100- $out->{'virtual'} = $this->toVirtual();
4510145101 return $out;
4510245102 }
4510345103
@@ -45122,6 +45122,9 @@ class Obj5 {
4512245122 if (!property_exists($obj, 'type')) {
4512345123 throw new Exception("Missing required property");
4512445124 }
45125+ if (!property_exists($obj, 'select')) {
45126+ throw new Exception("Missing required property");
45127+ }
4512545128 if (!property_exists($obj, 'Self')) {
4512645129 throw new Exception("Missing required property");
4512745130 }
@@ -45221,6 +45224,9 @@ class Obj5 {
4522145224 if (!property_exists($obj, 'TimeZone')) {
4522245225 throw new Exception("Missing required property");
4522345226 }
45227+ if (!property_exists($obj, 'to_dict')) {
45228+ throw new Exception("Missing required property");
45229+ }
4522445230 if (!property_exists($obj, 'to_json')) {
4522545231 throw new Exception("Missing required property");
4522645232 }
@@ -45296,18 +45302,13 @@ class Obj5 {
4529645302 if (!property_exists($obj, 'UUID')) {
4529745303 throw new Exception("Missing required property");
4529845304 }
45299- if (!property_exists($obj, 'var')) {
45300- throw new Exception("Missing required property");
45301- }
45302- if (!property_exists($obj, 'virtual')) {
45303- throw new Exception("Missing required property");
45304- }
4530545305 return new Obj5(
4530645306 Obj5::fromDummy($obj->{'dummy'})
4530745307 ,Obj5::fromObj5Self($obj->{'self'})
4530845308 ,Obj5::fromObj5This($obj->{'this'})
4530945309 ,Obj5::fromObj5True($obj->{'true'})
4531045310 ,Obj5::fromObj5Type($obj->{'type'})
45311+ ,Obj5::fromSelect($obj->{'select'})
4531145312 ,Obj5::fromSelf($obj->{'Self'})
4531245313 ,Obj5::fromSendable($obj->{'Sendable'})
4531345314 ,Obj5::fromSerialize($obj->{'serialize'})
@@ -45341,6 +45342,7 @@ class Obj5 {
4534145342 ,Obj5::fromTimeOnly($obj->{'TimeOnly'})
4534245343 ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
4534345344 ,Obj5::fromTimeZone($obj->{'TimeZone'})
45345+ ,Obj5::fromToDict($obj->{'to_dict'})
4534445346 ,Obj5::fromToJSON($obj->{'to_json'})
4534545347 ,Obj5::fromToString($obj->{'toString'})
4534645348 ,Obj5::fromTopLevel($obj->{'top_level'})
@@ -45366,8 +45368,6 @@ class Obj5 {
4536645368 ,Obj5::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
4536745369 ,Obj5::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
4536845370 ,Obj5::fromUUID($obj->{'UUID'})
45369- ,Obj5::fromVar($obj->{'var'})
45370- ,Obj5::fromVirtual($obj->{'virtual'})
4537145371 );
4537245372 }
4537345373
@@ -45381,6 +45381,7 @@ class Obj5 {
4538145381 ,Obj5::sampleObj5This()
4538245382 ,Obj5::sampleObj5True()
4538345383 ,Obj5::sampleObj5Type()
45384+ ,Obj5::sampleSelect()
4538445385 ,Obj5::sampleSelf()
4538545386 ,Obj5::sampleSendable()
4538645387 ,Obj5::sampleSerialize()
@@ -45414,6 +45415,7 @@ class Obj5 {
4541445415 ,Obj5::sampleTimeOnly()
4541545416 ,Obj5::sampleTimeOnlyConverter()
4541645417 ,Obj5::sampleTimeZone()
45418+ ,Obj5::sampleToDict()
4541745419 ,Obj5::sampleToJSON()
4541845420 ,Obj5::sampleToString()
4541945421 ,Obj5::sampleTopLevel()
@@ -45439,8 +45441,6 @@ class Obj5 {
4543945441 ,Obj5::sampleUtf8JSONReader()
4544045442 ,Obj5::sampleUtf8JSONWriter()
4544145443 ,Obj5::sampleUUID()
45442- ,Obj5::sampleVar()
45443- ,Obj5::sampleVirtual()
4544445444 );
4544545445 }
4544645446 }
@@ -45849,6 +45849,107 @@ class TypeClass {
4584945849 }
4585045850 }
4585145851
45852+// This is an autogenerated file:Select
45853+
45854+class Select {
45855+ private int $select; // json:select Required
45856+
45857+ /**
45858+ * @param int $select
45859+ */
45860+ public function __construct(int $select) {
45861+ $this->select = $select;
45862+ }
45863+
45864+ /**
45865+ * @param int $value
45866+ * @throws Exception
45867+ * @return int
45868+ */
45869+ public static function fromSelect(int $value): int {
45870+ return $value; /*int*/
45871+ }
45872+
45873+ /**
45874+ * @throws Exception
45875+ * @return int
45876+ */
45877+ public function toSelect(): int {
45878+ if (Select::validateSelect($this->select)) {
45879+ return $this->select; /*int*/
45880+ }
45881+ throw new Exception('never get to this Select::select');
45882+ }
45883+
45884+ /**
45885+ * @param int
45886+ * @return bool
45887+ * @throws Exception
45888+ */
45889+ public static function validateSelect(int $value): bool {
45890+ return true;
45891+ }
45892+
45893+ /**
45894+ * @throws Exception
45895+ * @return int
45896+ */
45897+ public function getSelect(): int {
45898+ if (Select::validateSelect($this->select)) {
45899+ return $this->select;
45900+ }
45901+ throw new Exception('never get to getSelect Select::select');
45902+ }
45903+
45904+ /**
45905+ * @return int
45906+ */
45907+ public static function sampleSelect(): int {
45908+ return 31; /*31:select*/
45909+ }
45910+
45911+ /**
45912+ * @throws Exception
45913+ * @return bool
45914+ */
45915+ public function validate(): bool {
45916+ return Select::validateSelect($this->select);
45917+ }
45918+
45919+ /**
45920+ * @return stdClass
45921+ * @throws Exception
45922+ */
45923+ public function to(): stdClass {
45924+ $out = new stdClass();
45925+ $out->{'select'} = $this->toSelect();
45926+ return $out;
45927+ }
45928+
45929+ /**
45930+ * @param stdClass $obj
45931+ * @return Select
45932+ * @throws Exception
45933+ */
45934+ public static function from(stdClass $obj): Select {
45935+ if (!property_exists($obj, 'select')) {
45936+ throw new Exception("Missing required property");
45937+ }
45938+ return new Select(
45939+ Select::fromSelect($obj->{'select'})
45940+ );
45941+ }
45942+
45943+ /**
45944+ * @return Select
45945+ */
45946+ public static function sample(): Select {
45947+ return new Select(
45948+ Select::sampleSelect()
45949+ );
45950+ }
45951+}
45952+
4585245953 // This is an autogenerated file:SelfClass
4585345954
4585445955 class SelfClass {
@@ -49182,6 +49283,107 @@ class TimeZone {
4918249283 }
4918349284 }
4918449285
49286+// This is an autogenerated file:ToDict
49287+
49288+class ToDict {
49289+ private int $toDict; // json:to_dict Required
49290+
49291+ /**
49292+ * @param int $toDict
49293+ */
49294+ public function __construct(int $toDict) {
49295+ $this->toDict = $toDict;
49296+ }
49297+
49298+ /**
49299+ * @param int $value
49300+ * @throws Exception
49301+ * @return int
49302+ */
49303+ public static function fromToDict(int $value): int {
49304+ return $value; /*int*/
49305+ }
49306+
49307+ /**
49308+ * @throws Exception
49309+ * @return int
49310+ */
49311+ public function toToDict(): int {
49312+ if (ToDict::validateToDict($this->toDict)) {
49313+ return $this->toDict; /*int*/
49314+ }
49315+ throw new Exception('never get to this ToDict::toDict');
49316+ }
49317+
49318+ /**
49319+ * @param int
49320+ * @return bool
49321+ * @throws Exception
49322+ */
49323+ public static function validateToDict(int $value): bool {
49324+ return true;
49325+ }
49326+
49327+ /**
49328+ * @throws Exception
49329+ * @return int
49330+ */
49331+ public function getToDict(): int {
49332+ if (ToDict::validateToDict($this->toDict)) {
49333+ return $this->toDict;
49334+ }
49335+ throw new Exception('never get to getToDict ToDict::toDict');
49336+ }
49337+
49338+ /**
49339+ * @return int
49340+ */
49341+ public static function sampleToDict(): int {
49342+ return 31; /*31:toDict*/
49343+ }
49344+
49345+ /**
49346+ * @throws Exception
49347+ * @return bool
49348+ */
49349+ public function validate(): bool {
49350+ return ToDict::validateToDict($this->toDict);
49351+ }
49352+
49353+ /**
49354+ * @return stdClass
49355+ * @throws Exception
49356+ */
49357+ public function to(): stdClass {
49358+ $out = new stdClass();
49359+ $out->{'to_dict'} = $this->toToDict();
49360+ return $out;
49361+ }
49362+
49363+ /**
49364+ * @param stdClass $obj
49365+ * @return ToDict
49366+ * @throws Exception
49367+ */
49368+ public static function from(stdClass $obj): ToDict {
49369+ if (!property_exists($obj, 'to_dict')) {
49370+ throw new Exception("Missing required property");
49371+ }
49372+ return new ToDict(
49373+ ToDict::fromToDict($obj->{'to_dict'})
49374+ );
49375+ }
49376+
49377+ /**
49378+ * @return ToDict
49379+ */
49380+ public static function sample(): ToDict {
49381+ return new ToDict(
49382+ ToDict::sampleToDict()
49383+ );
49384+ }
49385+}
49386+
4918549387 // This is an autogenerated file:ToJSON
4918649388
4918749389 class ToJSON {
@@ -51707,212 +51909,12 @@ class UUID {
5170751909 }
5170851910 }
5170951911
51710-// This is an autogenerated file:VarClass
51711-
51712-class VarClass {
51713- private int $var; // json:var Required
51714-
51715- /**
51716- * @param int $var
51717- */
51718- public function __construct(int $var) {
51719- $this->var = $var;
51720- }
51721-
51722- /**
51723- * @param int $value
51724- * @throws Exception
51725- * @return int
51726- */
51727- public static function fromVar(int $value): int {
51728- return $value; /*int*/
51729- }
51730-
51731- /**
51732- * @throws Exception
51733- * @return int
51734- */
51735- public function toVar(): int {
51736- if (VarClass::validateVar($this->var)) {
51737- return $this->var; /*int*/
51738- }
51739- throw new Exception('never get to this VarClass::var');
51740- }
51741-
51742- /**
51743- * @param int
51744- * @return bool
51745- * @throws Exception
51746- */
51747- public static function validateVar(int $value): bool {
51748- return true;
51749- }
51750-
51751- /**
51752- * @throws Exception
51753- * @return int
51754- */
51755- public function getVar(): int {
51756- if (VarClass::validateVar($this->var)) {
51757- return $this->var;
51758- }
51759- throw new Exception('never get to getVar VarClass::var');
51760- }
51761-
51762- /**
51763- * @return int
51764- */
51765- public static function sampleVar(): int {
51766- return 31; /*31:var*/
51767- }
51768-
51769- /**
51770- * @throws Exception
51771- * @return bool
51772- */
51773- public function validate(): bool {
51774- return VarClass::validateVar($this->var);
51775- }
51776-
51777- /**
51778- * @return stdClass
51779- * @throws Exception
51780- */
51781- public function to(): stdClass {
51782- $out = new stdClass();
51783- $out->{'var'} = $this->toVar();
51784- return $out;
51785- }
51786-
51787- /**
51788- * @param stdClass $obj
51789- * @return VarClass
51790- * @throws Exception
51791- */
51792- public static function from(stdClass $obj): VarClass {
51793- if (!property_exists($obj, 'var')) {
51794- throw new Exception("Missing required property");
51795- }
51796- return new VarClass(
51797- VarClass::fromVar($obj->{'var'})
51798- );
51799- }
51800-
51801- /**
51802- * @return VarClass
51803- */
51804- public static function sample(): VarClass {
51805- return new VarClass(
51806- VarClass::sampleVar()
51807- );
51808- }
51809-}
51810-
51811-// This is an autogenerated file:Virtual
51812-
51813-class Virtual {
51814- private int $virtual; // json:virtual Required
51815-
51816- /**
51817- * @param int $virtual
51818- */
51819- public function __construct(int $virtual) {
51820- $this->virtual = $virtual;
51821- }
51822-
51823- /**
51824- * @param int $value
51825- * @throws Exception
51826- * @return int
51827- */
51828- public static function fromVirtual(int $value): int {
51829- return $value; /*int*/
51830- }
51831-
51832- /**
51833- * @throws Exception
51834- * @return int
51835- */
51836- public function toVirtual(): int {
51837- if (Virtual::validateVirtual($this->virtual)) {
51838- return $this->virtual; /*int*/
51839- }
51840- throw new Exception('never get to this Virtual::virtual');
51841- }
51842-
51843- /**
51844- * @param int
51845- * @return bool
51846- * @throws Exception
51847- */
51848- public static function validateVirtual(int $value): bool {
51849- return true;
51850- }
51851-
51852- /**
51853- * @throws Exception
51854- * @return int
51855- */
51856- public function getVirtual(): int {
51857- if (Virtual::validateVirtual($this->virtual)) {
51858- return $this->virtual;
51859- }
51860- throw new Exception('never get to getVirtual Virtual::virtual');
51861- }
51862-
51863- /**
51864- * @return int
51865- */
51866- public static function sampleVirtual(): int {
51867- return 31; /*31:virtual*/
51868- }
51869-
51870- /**
51871- * @throws Exception
51872- * @return bool
51873- */
51874- public function validate(): bool {
51875- return Virtual::validateVirtual($this->virtual);
51876- }
51877-
51878- /**
51879- * @return stdClass
51880- * @throws Exception
51881- */
51882- public function to(): stdClass {
51883- $out = new stdClass();
51884- $out->{'virtual'} = $this->toVirtual();
51885- return $out;
51886- }
51887-
51888- /**
51889- * @param stdClass $obj
51890- * @return Virtual
51891- * @throws Exception
51892- */
51893- public static function from(stdClass $obj): Virtual {
51894- if (!property_exists($obj, 'virtual')) {
51895- throw new Exception("Missing required property");
51896- }
51897- return new Virtual(
51898- Virtual::fromVirtual($obj->{'virtual'})
51899- );
51900- }
51901-
51902- /**
51903- * @return Virtual
51904- */
51905- public static function sample(): Virtual {
51906- return new Virtual(
51907- Virtual::sampleVirtual()
51908- );
51909- }
51910-}
51911-
5191251912 // This is an autogenerated file:Obj6
5191351913
5191451914 class Obj6 {
5191551915 private int $dummy; // json:dummy Required
51916+ private VarClass $var; // json:var Required
51917+ private Virtual $virtual; // json:virtual Required
5191651918 private VoidClass $void; // json:void Required
5191751919 private Volatile $volatile; // json:volatile Required
5191851920 private WcharT $wcharT; // json:wchar_t Required
@@ -51928,6 +51930,8 @@ class Obj6 {
5192851930
5192951931 /**
5193051932 * @param int $dummy
51933+ * @param VarClass $var
51934+ * @param Virtual $virtual
5193151935 * @param VoidClass $void
5193251936 * @param Volatile $volatile
5193351937 * @param WcharT $wcharT
@@ -51941,8 +51945,10 @@ class Obj6 {
5194151945 * @param Yes $yes
5194251946 * @param YieldClass $yield
5194351947 */
51944- public function __construct(int $dummy, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
51948+ public function __construct(int $dummy, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
5194551949 $this->dummy = $dummy;
51950+ $this->var = $var;
51951+ $this->virtual = $virtual;
5194651952 $this->void = $void;
5194751953 $this->volatile = $volatile;
5194851954 $this->wcharT = $wcharT;
@@ -52004,6 +52010,102 @@ class Obj6 {
5200452010 return 31; /*31:dummy*/
5200552011 }
5200652012
52013+ /**
52014+ * @param stdClass $value
52015+ * @throws Exception
52016+ * @return VarClass
52017+ */
52018+ public static function fromVar(stdClass $value): VarClass {
52019+ return VarClass::from($value); /*class*/
52020+ }
52021+
52022+ /**
52023+ * @throws Exception
52024+ * @return stdClass
52025+ */
52026+ public function toVar(): stdClass {
52027+ if (Obj6::validateVar($this->var)) {
52028+ return $this->var->to(); /*class*/
52029+ }
52030+ throw new Exception('never get to this Obj6::var');
52031+ }
52032+
52033+ /**
52034+ * @param VarClass
52035+ * @return bool
52036+ * @throws Exception
52037+ */
52038+ public static function validateVar(VarClass $value): bool {
52039+ $value->validate();
52040+ return true;
52041+ }
52042+
52043+ /**
52044+ * @throws Exception
52045+ * @return VarClass
52046+ */
52047+ public function getVar(): VarClass {
52048+ if (Obj6::validateVar($this->var)) {
52049+ return $this->var;
52050+ }
52051+ throw new Exception('never get to getVar Obj6::var');
52052+ }
52053+
52054+ /**
52055+ * @return VarClass
52056+ */
52057+ public static function sampleVar(): VarClass {
52058+ return VarClass::sample(); /*32:var*/
52059+ }
52060+
52061+ /**
52062+ * @param stdClass $value
52063+ * @throws Exception
52064+ * @return Virtual
52065+ */
52066+ public static function fromVirtual(stdClass $value): Virtual {
52067+ return Virtual::from($value); /*class*/
52068+ }
52069+
52070+ /**
52071+ * @throws Exception
52072+ * @return stdClass
52073+ */
52074+ public function toVirtual(): stdClass {
52075+ if (Obj6::validateVirtual($this->virtual)) {
52076+ return $this->virtual->to(); /*class*/
52077+ }
52078+ throw new Exception('never get to this Obj6::virtual');
52079+ }
52080+
52081+ /**
52082+ * @param Virtual
52083+ * @return bool
52084+ * @throws Exception
52085+ */
52086+ public static function validateVirtual(Virtual $value): bool {
52087+ $value->validate();
52088+ return true;
52089+ }
52090+
52091+ /**
52092+ * @throws Exception
52093+ * @return Virtual
52094+ */
52095+ public function getVirtual(): Virtual {
52096+ if (Obj6::validateVirtual($this->virtual)) {
52097+ return $this->virtual;
52098+ }
52099+ throw new Exception('never get to getVirtual Obj6::virtual');
52100+ }
52101+
52102+ /**
52103+ * @return Virtual
52104+ */
52105+ public static function sampleVirtual(): Virtual {
52106+ return Virtual::sample(); /*33:virtual*/
52107+ }
52108+
5200752109 /**
5200852110 * @param stdClass $value
5200952111 * @throws Exception
@@ -52049,7 +52151,7 @@ class Obj6 {
5204952151 * @return VoidClass
5205052152 */
5205152153 public static function sampleVoid(): VoidClass {
52052- return VoidClass::sample(); /*32:void*/
52154+ return VoidClass::sample(); /*34:void*/
5205352155 }
5205452156
5205552157 /**
@@ -52097,7 +52199,7 @@ class Obj6 {
5209752199 * @return Volatile
5209852200 */
5209952201 public static function sampleVolatile(): Volatile {
52100- return Volatile::sample(); /*33:volatile*/
52202+ return Volatile::sample(); /*35:volatile*/
5210152203 }
5210252204
5210352205 /**
@@ -52145,7 +52247,7 @@ class Obj6 {
5214552247 * @return WcharT
5214652248 */
5214752249 public static function sampleWcharT(): WcharT {
52148- return WcharT::sample(); /*34:wcharT*/
52250+ return WcharT::sample(); /*36:wcharT*/
5214952251 }
5215052252
5215152253 /**
@@ -52193,7 +52295,7 @@ class Obj6 {
5219352295 * @return Weak
5219452296 */
5219552297 public static function sampleWeak(): Weak {
52196- return Weak::sample(); /*35:weak*/
52298+ return Weak::sample(); /*37:weak*/
5219752299 }
5219852300
5219952301 /**
@@ -52241,7 +52343,7 @@ class Obj6 {
5224152343 * @return Where
5224252344 */
5224352345 public static function sampleWhere(): Where {
52244- return Where::sample(); /*36:where*/
52346+ return Where::sample(); /*38:where*/
5224552347 }
5224652348
5224752349 /**
@@ -52289,7 +52391,7 @@ class Obj6 {
5228952391 * @return WhileClass
5229052392 */
5229152393 public static function sampleWhile(): WhileClass {
52292- return WhileClass::sample(); /*37:while*/
52394+ return WhileClass::sample(); /*39:while*/
5229352395 }
5229452396
5229552397 /**
@@ -52337,7 +52439,7 @@ class Obj6 {
5233752439 * @return WillSet
5233852440 */
5233952441 public static function sampleWillSet(): WillSet {
52340- return WillSet::sample(); /*38:willSet*/
52442+ return WillSet::sample(); /*40:willSet*/
5234152443 }
5234252444
5234352445 /**
@@ -52385,7 +52487,7 @@ class Obj6 {
5238552487 * @return With
5238652488 */
5238752489 public static function sampleWith(): With {
52388- return With::sample(); /*39:with*/
52490+ return With::sample(); /*41:with*/
5238952491 }
5239052492
5239152493 /**
@@ -52433,7 +52535,7 @@ class Obj6 {
5243352535 * @return XorClass
5243452536 */
5243552537 public static function sampleXor(): XorClass {
52436- return XorClass::sample(); /*40:xor*/
52538+ return XorClass::sample(); /*42:xor*/
5243752539 }
5243852540
5243952541 /**
@@ -52481,7 +52583,7 @@ class Obj6 {
5248152583 * @return XorEq
5248252584 */
5248352585 public static function sampleXorEq(): XorEq {
52484- return XorEq::sample(); /*41:xorEq*/
52586+ return XorEq::sample(); /*43:xorEq*/
5248552587 }
5248652588
5248752589 /**
@@ -52529,7 +52631,7 @@ class Obj6 {
5252952631 * @return Yes
5253052632 */
5253152633 public static function sampleYes(): Yes {
52532- return Yes::sample(); /*42:yes*/
52634+ return Yes::sample(); /*44:yes*/
5253352635 }
5253452636
5253552637 /**
@@ -52577,7 +52679,7 @@ class Obj6 {
5257752679 * @return YieldClass
5257852680 */
5257952681 public static function sampleYield(): YieldClass {
52580- return YieldClass::sample(); /*43:yield*/
52682+ return YieldClass::sample(); /*45:yield*/
5258152683 }
5258252684
5258352685 /**
@@ -52586,6 +52688,8 @@ class Obj6 {
5258652688 */
5258752689 public function validate(): bool {
5258852690 return Obj6::validateDummy($this->dummy)
52691+ || Obj6::validateVar($this->var)
52692+ || Obj6::validateVirtual($this->virtual)
5258952693 || Obj6::validateVoid($this->void)
5259052694 || Obj6::validateVolatile($this->volatile)
5259152695 || Obj6::validateWcharT($this->wcharT)
@@ -52607,6 +52711,8 @@ class Obj6 {
5260752711 public function to(): stdClass {
5260852712 $out = new stdClass();
5260952713 $out->{'dummy'} = $this->toDummy();
52714+ $out->{'var'} = $this->toVar();
52715+ $out->{'virtual'} = $this->toVirtual();
5261052716 $out->{'void'} = $this->toVoid();
5261152717 $out->{'volatile'} = $this->toVolatile();
5261252718 $out->{'wchar_t'} = $this->toWcharT();
@@ -52631,6 +52737,12 @@ class Obj6 {
5263152737 if (!property_exists($obj, 'dummy')) {
5263252738 throw new Exception("Missing required property");
5263352739 }
52740+ if (!property_exists($obj, 'var')) {
52741+ throw new Exception("Missing required property");
52742+ }
52743+ if (!property_exists($obj, 'virtual')) {
52744+ throw new Exception("Missing required property");
52745+ }
5263452746 if (!property_exists($obj, 'void')) {
5263552747 throw new Exception("Missing required property");
5263652748 }
@@ -52669,6 +52781,8 @@ class Obj6 {
5266952781 }
5267052782 return new Obj6(
5267152783 Obj6::fromDummy($obj->{'dummy'})
52784+ ,Obj6::fromVar($obj->{'var'})
52785+ ,Obj6::fromVirtual($obj->{'virtual'})
5267252786 ,Obj6::fromVoid($obj->{'void'})
5267352787 ,Obj6::fromVolatile($obj->{'volatile'})
5267452788 ,Obj6::fromWcharT($obj->{'wchar_t'})
@@ -52690,6 +52804,8 @@ class Obj6 {
5269052804 public static function sample(): Obj6 {
5269152805 return new Obj6(
5269252806 Obj6::sampleDummy()
52807+ ,Obj6::sampleVar()
52808+ ,Obj6::sampleVirtual()
5269352809 ,Obj6::sampleVoid()
5269452810 ,Obj6::sampleVolatile()
5269552811 ,Obj6::sampleWcharT()
@@ -52706,6 +52822,208 @@ class Obj6 {
5270652822 }
5270752823 }
5270852824
52825+// This is an autogenerated file:VarClass
52826+
52827+class VarClass {
52828+ private int $var; // json:var Required
52829+
52830+ /**
52831+ * @param int $var
52832+ */
52833+ public function __construct(int $var) {
52834+ $this->var = $var;
52835+ }
52836+
52837+ /**
52838+ * @param int $value
52839+ * @throws Exception
52840+ * @return int
52841+ */
52842+ public static function fromVar(int $value): int {
52843+ return $value; /*int*/
52844+ }
52845+
52846+ /**
52847+ * @throws Exception
52848+ * @return int
52849+ */
52850+ public function toVar(): int {
52851+ if (VarClass::validateVar($this->var)) {
52852+ return $this->var; /*int*/
52853+ }
52854+ throw new Exception('never get to this VarClass::var');
52855+ }
52856+
52857+ /**
52858+ * @param int
52859+ * @return bool
52860+ * @throws Exception
52861+ */
52862+ public static function validateVar(int $value): bool {
52863+ return true;
52864+ }
52865+
52866+ /**
52867+ * @throws Exception
52868+ * @return int
52869+ */
52870+ public function getVar(): int {
52871+ if (VarClass::validateVar($this->var)) {
52872+ return $this->var;
52873+ }
52874+ throw new Exception('never get to getVar VarClass::var');
52875+ }
52876+
52877+ /**
52878+ * @return int
52879+ */
52880+ public static function sampleVar(): int {
52881+ return 31; /*31:var*/
52882+ }
52883+
52884+ /**
52885+ * @throws Exception
52886+ * @return bool
52887+ */
52888+ public function validate(): bool {
52889+ return VarClass::validateVar($this->var);
52890+ }
52891+
52892+ /**
52893+ * @return stdClass
52894+ * @throws Exception
52895+ */
52896+ public function to(): stdClass {
52897+ $out = new stdClass();
52898+ $out->{'var'} = $this->toVar();
52899+ return $out;
52900+ }
52901+
52902+ /**
52903+ * @param stdClass $obj
52904+ * @return VarClass
52905+ * @throws Exception
52906+ */
52907+ public static function from(stdClass $obj): VarClass {
52908+ if (!property_exists($obj, 'var')) {
52909+ throw new Exception("Missing required property");
52910+ }
52911+ return new VarClass(
52912+ VarClass::fromVar($obj->{'var'})
52913+ );
52914+ }
52915+
52916+ /**
52917+ * @return VarClass
52918+ */
52919+ public static function sample(): VarClass {
52920+ return new VarClass(
52921+ VarClass::sampleVar()
52922+ );
52923+ }
52924+}
52925+
52926+// This is an autogenerated file:Virtual
52927+
52928+class Virtual {
52929+ private int $virtual; // json:virtual Required
52930+
52931+ /**
52932+ * @param int $virtual
52933+ */
52934+ public function __construct(int $virtual) {
52935+ $this->virtual = $virtual;
52936+ }
52937+
52938+ /**
52939+ * @param int $value
52940+ * @throws Exception
52941+ * @return int
52942+ */
52943+ public static function fromVirtual(int $value): int {
52944+ return $value; /*int*/
52945+ }
52946+
52947+ /**
52948+ * @throws Exception
52949+ * @return int
52950+ */
52951+ public function toVirtual(): int {
52952+ if (Virtual::validateVirtual($this->virtual)) {
52953+ return $this->virtual; /*int*/
52954+ }
52955+ throw new Exception('never get to this Virtual::virtual');
52956+ }
52957+
52958+ /**
52959+ * @param int
52960+ * @return bool
52961+ * @throws Exception
52962+ */
52963+ public static function validateVirtual(int $value): bool {
52964+ return true;
52965+ }
52966+
52967+ /**
52968+ * @throws Exception
52969+ * @return int
52970+ */
52971+ public function getVirtual(): int {
52972+ if (Virtual::validateVirtual($this->virtual)) {
52973+ return $this->virtual;
52974+ }
52975+ throw new Exception('never get to getVirtual Virtual::virtual');
52976+ }
52977+
52978+ /**
52979+ * @return int
52980+ */
52981+ public static function sampleVirtual(): int {
52982+ return 31; /*31:virtual*/
52983+ }
52984+
52985+ /**
52986+ * @throws Exception
52987+ * @return bool
52988+ */
52989+ public function validate(): bool {
52990+ return Virtual::validateVirtual($this->virtual);
52991+ }
52992+
52993+ /**
52994+ * @return stdClass
52995+ * @throws Exception
52996+ */
52997+ public function to(): stdClass {
52998+ $out = new stdClass();
52999+ $out->{'virtual'} = $this->toVirtual();
53000+ return $out;
53001+ }
53002+
53003+ /**
53004+ * @param stdClass $obj
53005+ * @return Virtual
53006+ * @throws Exception
53007+ */
53008+ public static function from(stdClass $obj): Virtual {
53009+ if (!property_exists($obj, 'virtual')) {
53010+ throw new Exception("Missing required property");
53011+ }
53012+ return new Virtual(
53013+ Virtual::fromVirtual($obj->{'virtual'})
53014+ );
53015+ }
53016+
53017+ /**
53018+ * @return Virtual
53019+ */
53020+ public static function sample(): Virtual {
53021+ return new Virtual(
53022+ Virtual::sampleVirtual()
53023+ );
53024+ }
53025+}
53026+
5270953027 // This is an autogenerated file:VoidClass
5271053028
5271153029 class VoidClass {
Mpikedefault / TopLevel.pmod+175 −125
@@ -1727,11 +1727,11 @@ class Obj2 {
17271727 FormatException format_exception; // json: "FormatException"
17281728 Friend friend; // json: "friend"
17291729 From from; // json: "from"
1730+ FromDict from_dict; // json: "from_dict"
17301731 FromJson from_json; // json: "from_json"
17311732 Func func; // json: "func"
17321733 Get get; // json: "get"
17331734 Go go; // json: "go"
1734- Goto goto; // json: "goto"
17351735 Default obj2_default; // json: "default"
17361736 Do obj2_do; // json: "do"
17371737 Else obj2_else; // json: "else"
@@ -1795,11 +1795,11 @@ class Obj2 {
17951795 "FormatException" : format_exception,
17961796 "friend" : friend,
17971797 "from" : from,
1798+ "from_dict" : from_dict,
17981799 "from_json" : from_json,
17991800 "func" : func,
18001801 "get" : get,
18011802 "go" : go,
1802- "goto" : goto,
18031803 "default" : obj2_default,
18041804 "do" : obj2_do,
18051805 "else" : obj2_else,
@@ -1917,6 +1917,8 @@ Obj2 Obj2_from_JSON(mixed json) {
19171917 retval.friend = json["friend"];
19181918 if (!mappingp(json["from"])) error("Expected object");
19191919 retval.from = json["from"];
1920+ if (!mappingp(json["from_dict"])) error("Expected object");
1921+ retval.from_dict = json["from_dict"];
19201922 if (!mappingp(json["from_json"])) error("Expected object");
19211923 retval.from_json = json["from_json"];
19221924 if (!mappingp(json["func"])) error("Expected object");
@@ -1925,8 +1927,6 @@ Obj2 Obj2_from_JSON(mixed json) {
19251927 retval.get = json["get"];
19261928 if (!mappingp(json["go"])) error("Expected object");
19271929 retval.go = json["go"];
1928- if (!mappingp(json["goto"])) error("Expected object");
1929- retval.goto = json["goto"];
19301930 if (!mappingp(json["default"])) error("Expected object");
19311931 retval.obj2_default = json["default"];
19321932 if (!mappingp(json["do"])) error("Expected object");
@@ -2949,6 +2949,27 @@ From From_from_JSON(mixed json) {
29492949 return retval;
29502950 }
29512951
2952+class FromDict {
2953+ int from_dict; // json: "from_dict"
2954+
2955+ string encode_json() {
2956+ mapping(string:mixed) json = ([
2957+ "from_dict" : from_dict,
2958+ ]);
2959+
2960+ return Standards.JSON.encode(json);
2961+ }
2962+}
2963+
2964+FromDict FromDict_from_JSON(mixed json) {
2965+ FromDict retval = FromDict();
2966+
2967+ if (!intp(json["from_dict"])) error("Expected integer");
2968+ retval.from_dict = json["from_dict"];
2969+
2970+ return retval;
2971+}
2972+
29522973 class FromJson {
29532974 int from_json; // json: "from_json"
29542975
@@ -3033,27 +3054,6 @@ Go Go_from_JSON(mixed json) {
30333054 return retval;
30343055 }
30353056
3036-class Goto {
3037- int goto; // json: "goto"
3038-
3039- string encode_json() {
3040- mapping(string:mixed) json = ([
3041- "goto" : goto,
3042- ]);
3043-
3044- return Standards.JSON.encode(json);
3045- }
3046-}
3047-
3048-Goto Goto_from_JSON(mixed json) {
3049- Goto retval = Goto();
3050-
3051- if (!intp(json["goto"])) error("Expected integer");
3052- retval.goto = json["goto"];
3053-
3054- return retval;
3055-}
3056-
30573057 class Default {
30583058 int default_default; // json: "default"
30593059
@@ -3308,6 +3308,7 @@ Global Global_from_JSON(mixed json) {
33083308
33093309 class Obj3 {
33103310 int dummy; // json: "dummy"
3311+ Goto goto; // json: "goto"
33113312 Guard guard; // json: "guard"
33123313 HasOwnProperty has_own_property; // json: "hasOwnProperty"
33133314 HashCode hash_code; // json: "hashCode"
@@ -3366,7 +3367,6 @@ class Obj3 {
33663367 Newtonsoft newtonsoft; // json: "newtonsoft"
33673368 Nil nil; // json: "nil"
33683369 No no; // json: "NO"
3369- Noexcept noexcept; // json: "noexcept"
33703370 If obj3_if; // json: "if"
33713371 Import obj3_import; // json: "import"
33723372 Inline obj3_inline; // json: "inline"
@@ -3376,6 +3376,7 @@ class Obj3 {
33763376 string encode_json() {
33773377 mapping(string:mixed) json = ([
33783378 "dummy" : dummy,
3379+ "goto" : goto,
33793380 "guard" : guard,
33803381 "hasOwnProperty" : has_own_property,
33813382 "hashCode" : hash_code,
@@ -3434,7 +3435,6 @@ class Obj3 {
34343435 "newtonsoft" : newtonsoft,
34353436 "nil" : nil,
34363437 "NO" : no,
3437- "noexcept" : noexcept,
34383438 "if" : obj3_if,
34393439 "import" : obj3_import,
34403440 "inline" : obj3_inline,
@@ -3451,6 +3451,8 @@ Obj3 Obj3_from_JSON(mixed json) {
34513451
34523452 if (!intp(json["dummy"])) error("Expected integer");
34533453 retval.dummy = json["dummy"];
3454+ if (!mappingp(json["goto"])) error("Expected object");
3455+ retval.goto = json["goto"];
34543456 if (!mappingp(json["guard"])) error("Expected object");
34553457 retval.guard = json["guard"];
34563458 if (!mappingp(json["hasOwnProperty"])) error("Expected object");
@@ -3567,8 +3569,6 @@ Obj3 Obj3_from_JSON(mixed json) {
35673569 retval.nil = json["nil"];
35683570 if (!mappingp(json["NO"])) error("Expected object");
35693571 retval.no = json["NO"];
3570- if (!mappingp(json["noexcept"])) error("Expected object");
3571- retval.noexcept = json["noexcept"];
35723572 if (!mappingp(json["if"])) error("Expected object");
35733573 retval.obj3_if = json["if"];
35743574 if (!mappingp(json["import"])) error("Expected object");
@@ -3583,6 +3583,27 @@ Obj3 Obj3_from_JSON(mixed json) {
35833583 return retval;
35843584 }
35853585
3586+class Goto {
3587+ int goto; // json: "goto"
3588+
3589+ string encode_json() {
3590+ mapping(string:mixed) json = ([
3591+ "goto" : goto,
3592+ ]);
3593+
3594+ return Standards.JSON.encode(json);
3595+ }
3596+}
3597+
3598+Goto Goto_from_JSON(mixed json) {
3599+ Goto retval = Goto();
3600+
3601+ if (!intp(json["goto"])) error("Expected integer");
3602+ retval.goto = json["goto"];
3603+
3604+ return retval;
3605+}
3606+
35863607 class Guard {
35873608 int guard; // json: "guard"
35883609
@@ -4800,27 +4821,6 @@ No No_from_JSON(mixed json) {
48004821 return retval;
48014822 }
48024823
4803-class Noexcept {
4804- int noexcept; // json: "noexcept"
4805-
4806- string encode_json() {
4807- mapping(string:mixed) json = ([
4808- "noexcept" : noexcept,
4809- ]);
4810-
4811- return Standards.JSON.encode(json);
4812- }
4813-}
4814-
4815-Noexcept Noexcept_from_JSON(mixed json) {
4816- Noexcept retval = Noexcept();
4817-
4818- if (!intp(json["noexcept"])) error("Expected integer");
4819- retval.noexcept = json["noexcept"];
4820-
4821- return retval;
4822-}
4823-
48244824 class If {
48254825 int if_if; // json: "if"
48264826
@@ -4929,6 +4929,7 @@ Lambda Lambda_from_JSON(mixed json) {
49294929 class Obj4 {
49304930 int dummy; // json: "dummy"
49314931 NoSuchMethod no_such_method; // json: "noSuchMethod"
4932+ Noexcept noexcept; // json: "noexcept"
49324933 Nonatomic nonatomic; // json: "nonatomic"
49334934 None none; // json: "None"
49344935 Nonlocal nonlocal; // json: "nonlocal"
@@ -4991,12 +4992,12 @@ class Obj4 {
49914992 Sbyte sbyte; // json: "sbyte"
49924993 Sealed sealed; // json: "sealed"
49934994 Sel sel; // json: "SEL"
4994- Select select; // json: "select"
49954995
49964996 string encode_json() {
49974997 mapping(string:mixed) json = ([
49984998 "dummy" : dummy,
49994999 "noSuchMethod" : no_such_method,
5000+ "noexcept" : noexcept,
50005001 "nonatomic" : nonatomic,
50015002 "None" : none,
50025003 "nonlocal" : nonlocal,
@@ -5059,7 +5060,6 @@ class Obj4 {
50595060 "sbyte" : sbyte,
50605061 "sealed" : sealed,
50615062 "SEL" : sel,
5062- "select" : select,
50635063 ]);
50645064
50655065 return Standards.JSON.encode(json);
@@ -5073,6 +5073,8 @@ Obj4 Obj4_from_JSON(mixed json) {
50735073 retval.dummy = json["dummy"];
50745074 if (!mappingp(json["noSuchMethod"])) error("Expected object");
50755075 retval.no_such_method = json["noSuchMethod"];
5076+ if (!mappingp(json["noexcept"])) error("Expected object");
5077+ retval.noexcept = json["noexcept"];
50765078 if (!mappingp(json["nonatomic"])) error("Expected object");
50775079 retval.nonatomic = json["nonatomic"];
50785080 if (!mappingp(json["None"])) error("Expected object");
@@ -5197,8 +5199,6 @@ Obj4 Obj4_from_JSON(mixed json) {
51975199 retval.sealed = json["sealed"];
51985200 if (!mappingp(json["SEL"])) error("Expected object");
51995201 retval.sel = json["SEL"];
5200- if (!mappingp(json["select"])) error("Expected object");
5201- retval.select = json["select"];
52025202
52035203 return retval;
52045204 }
@@ -5224,6 +5224,27 @@ NoSuchMethod NoSuchMethod_from_JSON(mixed json) {
52245224 return retval;
52255225 }
52265226
5227+class Noexcept {
5228+ int noexcept; // json: "noexcept"
5229+
5230+ string encode_json() {
5231+ mapping(string:mixed) json = ([
5232+ "noexcept" : noexcept,
5233+ ]);
5234+
5235+ return Standards.JSON.encode(json);
5236+ }
5237+}
5238+
5239+Noexcept Noexcept_from_JSON(mixed json) {
5240+ Noexcept retval = Noexcept();
5241+
5242+ if (!intp(json["noexcept"])) error("Expected integer");
5243+ retval.noexcept = json["noexcept"];
5244+
5245+ return retval;
5246+}
5247+
52275248 class Nonatomic {
52285249 int nonatomic; // json: "nonatomic"
52295250
@@ -6525,27 +6546,6 @@ Sel Sel_from_JSON(mixed json) {
65256546 return retval;
65266547 }
65276548
6528-class Select {
6529- int select; // json: "select"
6530-
6531- string encode_json() {
6532- mapping(string:mixed) json = ([
6533- "select" : select,
6534- ]);
6535-
6536- return Standards.JSON.encode(json);
6537- }
6538-}
6539-
6540-Select Select_from_JSON(mixed json) {
6541- Select retval = Select();
6542-
6543- if (!intp(json["select"])) error("Expected integer");
6544- retval.select = json["select"];
6545-
6546- return retval;
6547-}
6548-
65496549 class Obj5 {
65506550 int dummy; // json: "dummy"
65516551 SelfClass obj5_self; // json: "self"
@@ -6556,6 +6556,7 @@ class Obj5 {
65566556 TypeClass obj5_type; // json: "type"
65576557 Typedef obj5_typedef; // json: "typedef"
65586558 Typeof obj5_typeof; // json: "typeof"
6559+ Select select; // json: "select"
65596560 Self self; // json: "Self"
65606561 Sendable sendable; // json: "Sendable"
65616562 Serialize serialize; // json: "serialize"
@@ -6587,6 +6588,7 @@ class Obj5 {
65876588 TimeOnly time_only; // json: "TimeOnly"
65886589 TimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter"
65896590 TimeZone time_zone; // json: "TimeZone"
6591+ ToDict to_dict; // json: "to_dict"
65906592 ToJson to_json; // json: "to_json"
65916593 ToString to_string; // json: "toString"
65926594 TopLevelClass top_level; // json: "top_level"
@@ -6610,8 +6612,6 @@ class Obj5 {
66106612 Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
66116613 Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
66126614 Uuid uuid; // json: "UUID"
6613- Var var; // json: "var"
6614- Virtual virtual; // json: "virtual"
66156615
66166616 string encode_json() {
66176617 mapping(string:mixed) json = ([
@@ -6624,6 +6624,7 @@ class Obj5 {
66246624 "type" : obj5_type,
66256625 "typedef" : obj5_typedef,
66266626 "typeof" : obj5_typeof,
6627+ "select" : select,
66276628 "Self" : self,
66286629 "Sendable" : sendable,
66296630 "serialize" : serialize,
@@ -6655,6 +6656,7 @@ class Obj5 {
66556656 "TimeOnly" : time_only,
66566657 "TimeOnlyConverter" : time_only_converter,
66576658 "TimeZone" : time_zone,
6659+ "to_dict" : to_dict,
66586660 "to_json" : to_json,
66596661 "toString" : to_string,
66606662 "top_level" : top_level,
@@ -6678,8 +6680,6 @@ class Obj5 {
66786680 "Utf8JsonReader" : utf8_json_reader,
66796681 "Utf8JsonWriter" : utf8_json_writer,
66806682 "UUID" : uuid,
6681- "var" : var,
6682- "virtual" : virtual,
66836683 ]);
66846684
66856685 return Standards.JSON.encode(json);
@@ -6707,6 +6707,8 @@ Obj5 Obj5_from_JSON(mixed json) {
67076707 retval.obj5_typedef = json["typedef"];
67086708 if (!mappingp(json["typeof"])) error("Expected object");
67096709 retval.obj5_typeof = json["typeof"];
6710+ if (!mappingp(json["select"])) error("Expected object");
6711+ retval.select = json["select"];
67106712 if (!mappingp(json["Self"])) error("Expected object");
67116713 retval.self = json["Self"];
67126714 if (!mappingp(json["Sendable"])) error("Expected object");
@@ -6769,6 +6771,8 @@ Obj5 Obj5_from_JSON(mixed json) {
67696771 retval.time_only_converter = json["TimeOnlyConverter"];
67706772 if (!mappingp(json["TimeZone"])) error("Expected object");
67716773 retval.time_zone = json["TimeZone"];
6774+ if (!mappingp(json["to_dict"])) error("Expected object");
6775+ retval.to_dict = json["to_dict"];
67726776 if (!mappingp(json["to_json"])) error("Expected object");
67736777 retval.to_json = json["to_json"];
67746778 if (!mappingp(json["toString"])) error("Expected object");
@@ -6815,10 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) {
68156819 retval.utf8_json_writer = json["Utf8JsonWriter"];
68166820 if (!mappingp(json["UUID"])) error("Expected object");
68176821 retval.uuid = json["UUID"];
6818- if (!mappingp(json["var"])) error("Expected object");
6819- retval.var = json["var"];
6820- if (!mappingp(json["virtual"])) error("Expected object");
6821- retval.virtual = json["virtual"];
68226822
68236823 return retval;
68246824 }
@@ -6991,6 +6991,27 @@ Typeof Typeof_from_JSON(mixed json) {
69916991 return retval;
69926992 }
69936993
6994+class Select {
6995+ int select; // json: "select"
6996+
6997+ string encode_json() {
6998+ mapping(string:mixed) json = ([
6999+ "select" : select,
7000+ ]);
7001+
7002+ return Standards.JSON.encode(json);
7003+ }
7004+}
7005+
7006+Select Select_from_JSON(mixed json) {
7007+ Select retval = Select();
7008+
7009+ if (!intp(json["select"])) error("Expected integer");
7010+ retval.select = json["select"];
7011+
7012+ return retval;
7013+}
7014+
69947015 class Self {
69957016 int self; // json: "Self"
69967017
@@ -7642,6 +7663,27 @@ TimeZone TimeZone_from_JSON(mixed json) {
76427663 return retval;
76437664 }
76447665
7666+class ToDict {
7667+ int to_dict; // json: "to_dict"
7668+
7669+ string encode_json() {
7670+ mapping(string:mixed) json = ([
7671+ "to_dict" : to_dict,
7672+ ]);
7673+
7674+ return Standards.JSON.encode(json);
7675+ }
7676+}
7677+
7678+ToDict ToDict_from_JSON(mixed json) {
7679+ ToDict retval = ToDict();
7680+
7681+ if (!intp(json["to_dict"])) error("Expected integer");
7682+ retval.to_dict = json["to_dict"];
7683+
7684+ return retval;
7685+}
7686+
76457687 class ToJson {
76467688 int to_json; // json: "to_json"
76477689
@@ -8125,52 +8167,12 @@ Uuid Uuid_from_JSON(mixed json) {
81258167 return retval;
81268168 }
81278169
8128-class Var {
8129- int var; // json: "var"
8130-
8131- string encode_json() {
8132- mapping(string:mixed) json = ([
8133- "var" : var,
8134- ]);
8135-
8136- return Standards.JSON.encode(json);
8137- }
8138-}
8139-
8140-Var Var_from_JSON(mixed json) {
8141- Var retval = Var();
8142-
8143- if (!intp(json["var"])) error("Expected integer");
8144- retval.var = json["var"];
8145-
8146- return retval;
8147-}
8148-
8149-class Virtual {
8150- int virtual; // json: "virtual"
8151-
8152- string encode_json() {
8153- mapping(string:mixed) json = ([
8154- "virtual" : virtual,
8155- ]);
8156-
8157- return Standards.JSON.encode(json);
8158- }
8159-}
8160-
8161-Virtual Virtual_from_JSON(mixed json) {
8162- Virtual retval = Virtual();
8163-
8164- if (!intp(json["virtual"])) error("Expected integer");
8165- retval.virtual = json["virtual"];
8166-
8167- return retval;
8168-}
8169-
81708170 class Obj6 {
81718171 int dummy; // json: "dummy"
81728172 Void obj6_void; // json: "void"
81738173 While obj6_while; // json: "while"
8174+ Var var; // json: "var"
8175+ Virtual virtual; // json: "virtual"
81748176 Volatile volatile; // json: "volatile"
81758177 WcharT wchar_t; // json: "wchar_t"
81768178 Weak weak; // json: "weak"
@@ -8187,6 +8189,8 @@ class Obj6 {
81878189 "dummy" : dummy,
81888190 "void" : obj6_void,
81898191 "while" : obj6_while,
8192+ "var" : var,
8193+ "virtual" : virtual,
81908194 "volatile" : volatile,
81918195 "wchar_t" : wchar_t,
81928196 "weak" : weak,
@@ -8212,6 +8216,10 @@ Obj6 Obj6_from_JSON(mixed json) {
82128216 retval.obj6_void = json["void"];
82138217 if (!mappingp(json["while"])) error("Expected object");
82148218 retval.obj6_while = json["while"];
8219+ if (!mappingp(json["var"])) error("Expected object");
8220+ retval.var = json["var"];
8221+ if (!mappingp(json["virtual"])) error("Expected object");
8222+ retval.virtual = json["virtual"];
82158223 if (!mappingp(json["volatile"])) error("Expected object");
82168224 retval.volatile = json["volatile"];
82178225 if (!mappingp(json["wchar_t"])) error("Expected object");
@@ -8278,6 +8286,48 @@ While While_from_JSON(mixed json) {
82788286 return retval;
82798287 }
82808288
8289+class Var {
8290+ int var; // json: "var"
8291+
8292+ string encode_json() {
8293+ mapping(string:mixed) json = ([
8294+ "var" : var,
8295+ ]);
8296+
8297+ return Standards.JSON.encode(json);
8298+ }
8299+}
8300+
8301+Var Var_from_JSON(mixed json) {
8302+ Var retval = Var();
8303+
8304+ if (!intp(json["var"])) error("Expected integer");
8305+ retval.var = json["var"];
8306+
8307+ return retval;
8308+}
8309+
8310+class Virtual {
8311+ int virtual; // json: "virtual"
8312+
8313+ string encode_json() {
8314+ mapping(string:mixed) json = ([
8315+ "virtual" : virtual,
8316+ ]);
8317+
8318+ return Standards.JSON.encode(json);
8319+ }
8320+}
8321+
8322+Virtual Virtual_from_JSON(mixed json) {
8323+ Virtual retval = Virtual();
8324+
8325+ if (!intp(json["virtual"])) error("Expected integer");
8326+ retval.virtual = json["virtual"];
8327+
8328+ return retval;
8329+}
8330+
82818331 class Volatile {
82828332 int volatile; // json: "volatile"
Mpythondefault / quicktype.py+138 −100
@@ -2092,22 +2092,6 @@ class Go:
20922092 return result
20932093
20942094
2095-@dataclass
2096-class Goto:
2097- goto: int
2098-
2099- @staticmethod
2100- def from_dict(obj: Any) -> 'Goto':
2101- assert isinstance(obj, dict)
2102- goto = from_int(obj["goto"])
2103- return Goto(goto)
2104-
2105- def to_dict(self) -> dict:
2106- result: dict = {}
2107- result["goto"] = from_int(self.goto)
2108- return result
2109-
2110-
21112095 @dataclass
21122096 class Def:
21132097 def_def: int
@@ -2284,6 +2268,22 @@ class From:
22842268 return result
22852269
22862270
2271+@dataclass
2272+class FromDict:
2273+ from_dict_from_dict: int
2274+
2275+ @staticmethod
2276+ def from_dict(obj: Any) -> 'FromDict':
2277+ assert isinstance(obj, dict)
2278+ from_dict_from_dict = from_int(obj["from_dict"])
2279+ return FromDict(from_dict_from_dict)
2280+
2281+ def to_dict(self) -> dict:
2282+ result: dict = {}
2283+ result["from_dict"] = from_int(self.from_dict_from_dict)
2284+ return result
2285+
2286+
22872287 @dataclass
22882288 class Global:
22892289 global_global: int
@@ -2360,13 +2360,13 @@ class Obj2:
23602360 foreach: Foreach
23612361 friend: Friend
23622362 obj2_from: From
2363+ obj2_from_dict: FromDict
23632364 from_json: FromJSON
23642365 func: Func
23652366 function: Function
23662367 get: Get
23672368 obj2_global: Global
23682369 go: Go
2369- goto: Goto
23702370
23712371 @staticmethod
23722372 def from_dict(obj: Any) -> 'Obj2':
@@ -2429,14 +2429,14 @@ class Obj2:
24292429 foreach = Foreach.from_dict(obj["foreach"])
24302430 friend = Friend.from_dict(obj["friend"])
24312431 obj2_from = From.from_dict(obj["from"])
2432+ obj2_from_dict = FromDict.from_dict(obj["from_dict"])
24322433 from_json = FromJSON.from_dict(obj["from_json"])
24332434 func = Func.from_dict(obj["func"])
24342435 function = Function.from_dict(obj["function"])
24352436 get = Get.from_dict(obj["get"])
24362437 obj2_global = Global.from_dict(obj["global"])
24372438 go = Go.from_dict(obj["go"])
2438- goto = Goto.from_dict(obj["goto"])
2439- return Obj2(date_formatter, date_only, date_only_converter, date_time, date_time_styles, decoder, decoding_error, encoder, enum_values, equatable, false, format_exception, date_parse_handling, debugger, decimal, declare, decltype, decode_string, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, from_json, func, function, get, obj2_global, go, goto)
2439+ return Obj2(date_formatter, date_only, date_only_converter, date_time, date_time_styles, decoder, decoding_error, encoder, enum_values, equatable, false, format_exception, date_parse_handling, debugger, decimal, declare, decltype, decode_string, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, obj2_from_dict, from_json, func, function, get, obj2_global, go)
24402440
24412441 def to_dict(self) -> dict:
24422442 result: dict = {}
@@ -2498,13 +2498,29 @@ class Obj2:
24982498 result["foreach"] = to_class(Foreach, self.foreach)
24992499 result["friend"] = to_class(Friend, self.friend)
25002500 result["from"] = to_class(From, self.obj2_from)
2501+ result["from_dict"] = to_class(FromDict, self.obj2_from_dict)
25012502 result["from_json"] = to_class(FromJSON, self.from_json)
25022503 result["func"] = to_class(Func, self.func)
25032504 result["function"] = to_class(Function, self.function)
25042505 result["get"] = to_class(Get, self.get)
25052506 result["global"] = to_class(Global, self.obj2_global)
25062507 result["go"] = to_class(Go, self.go)
2507- result["goto"] = to_class(Goto, self.goto)
2508+ return result
2509+
2510+
2511+@dataclass
2512+class Goto:
2513+ goto: int
2514+
2515+ @staticmethod
2516+ def from_dict(obj: Any) -> 'Goto':
2517+ assert isinstance(obj, dict)
2518+ goto = from_int(obj["goto"])
2519+ return Goto(goto)
2520+
2521+ def to_dict(self) -> dict:
2522+ result: dict = {}
2523+ result["goto"] = from_int(self.goto)
25082524 return result
25092525
25102526
@@ -3420,22 +3436,6 @@ class No:
34203436 return result
34213437
34223438
3423-@dataclass
3424-class Noexcept:
3425- noexcept: int
3426-
3427- @staticmethod
3428- def from_dict(obj: Any) -> 'Noexcept':
3429- assert isinstance(obj, dict)
3430- noexcept = from_int(obj["noexcept"])
3431- return Noexcept(noexcept)
3432-
3433- def to_dict(self) -> dict:
3434- result: dict = {}
3435- result["noexcept"] = from_int(self.noexcept)
3436- return result
3437-
3438-
34393439 @dataclass
34403440 class If:
34413441 if_if: int
@@ -3553,6 +3553,7 @@ class Obj3:
35533553 map_entry: MapEntry
35543554 no: No
35553555 dummy: int
3556+ goto: Goto
35563557 guard: Guard
35573558 has_own_property: HasOwnProperty
35583559 hash_code: HashCode
@@ -3598,7 +3599,6 @@ class Obj3:
35983599 new: New
35993600 newtonsoft: Newtonsoft
36003601 nil: Nil
3601- noexcept: Noexcept
36023602
36033603 @staticmethod
36043604 def from_dict(obj: Any) -> 'Obj3':
@@ -3622,6 +3622,7 @@ class Obj3:
36223622 map_entry = MapEntry.from_dict(obj["MapEntry"])
36233623 no = No.from_dict(obj["NO"])
36243624 dummy = from_int(obj["dummy"])
3625+ goto = Goto.from_dict(obj["goto"])
36253626 guard = Guard.from_dict(obj["guard"])
36263627 has_own_property = HasOwnProperty.from_dict(obj["hasOwnProperty"])
36273628 hash_code = HashCode.from_dict(obj["hashCode"])
@@ -3667,8 +3668,7 @@ class Obj3:
36673668 new = New.from_dict(obj["new"])
36683669 newtonsoft = Newtonsoft.from_dict(obj["newtonsoft"])
36693670 nil = Nil.from_dict(obj["nil"])
3670- noexcept = Noexcept.from_dict(obj["noexcept"])
3671- return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, map_entry, no, dummy, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, noexcept)
3671+ return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, map_entry, no, dummy, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil)
36723672
36733673 def to_dict(self) -> dict:
36743674 result: dict = {}
@@ -3691,6 +3691,7 @@ class Obj3:
36913691 result["MapEntry"] = to_class(MapEntry, self.map_entry)
36923692 result["NO"] = to_class(No, self.no)
36933693 result["dummy"] = from_int(self.dummy)
3694+ result["goto"] = to_class(Goto, self.goto)
36943695 result["guard"] = to_class(Guard, self.guard)
36953696 result["hasOwnProperty"] = to_class(HasOwnProperty, self.has_own_property)
36963697 result["hashCode"] = to_class(HashCode, self.hash_code)
@@ -3736,7 +3737,6 @@ class Obj3:
37363737 result["new"] = to_class(New, self.new)
37373738 result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft)
37383739 result["nil"] = to_class(Nil, self.nil)
3739- result["noexcept"] = to_class(Noexcept, self.noexcept)
37403740 return result
37413741
37423742
@@ -3756,6 +3756,22 @@ class NoSuchMethod:
37563756 return result
37573757
37583758
3759+@dataclass
3760+class Noexcept:
3761+ noexcept: int
3762+
3763+ @staticmethod
3764+ def from_dict(obj: Any) -> 'Noexcept':
3765+ assert isinstance(obj, dict)
3766+ noexcept = from_int(obj["noexcept"])
3767+ return Noexcept(noexcept)
3768+
3769+ def to_dict(self) -> dict:
3770+ result: dict = {}
3771+ result["noexcept"] = from_int(self.noexcept)
3772+ return result
3773+
3774+
37593775 @dataclass
37603776 class Nonatomic:
37613777 nonatomic: int
@@ -4748,22 +4764,6 @@ class Sel:
47484764 return result
47494765
47504766
4751-@dataclass
4752-class Select:
4753- select: int
4754-
4755- @staticmethod
4756- def from_dict(obj: Any) -> 'Select':
4757- assert isinstance(obj, dict)
4758- select = from_int(obj["select"])
4759- return Select(select)
4760-
4761- def to_dict(self) -> dict:
4762- result: dict = {}
4763- result["select"] = from_int(self.select)
4764- return result
4765-
4766-
47674767 @dataclass
47684768 class Obj4:
47694769 ns_error: NSError
@@ -4777,6 +4777,7 @@ class Obj4:
47774777 sel: Sel
47784778 dummy: int
47794779 no_such_method: NoSuchMethod
4780+ noexcept: Noexcept
47804781 nonatomic: Nonatomic
47814782 obj4_none: Obj4None
47824783 obj4_nonlocal: Nonlocal
@@ -4830,7 +4831,6 @@ class Obj4:
48304831 s: S
48314832 sbyte: Sbyte
48324833 sealed: Sealed
4833- select: Select
48344834
48354835 @staticmethod
48364836 def from_dict(obj: Any) -> 'Obj4':
@@ -4846,6 +4846,7 @@ class Obj4:
48464846 sel = Sel.from_dict(obj["SEL"])
48474847 dummy = from_int(obj["dummy"])
48484848 no_such_method = NoSuchMethod.from_dict(obj["noSuchMethod"])
4849+ noexcept = Noexcept.from_dict(obj["noexcept"])
48494850 nonatomic = Nonatomic.from_dict(obj["nonatomic"])
48504851 obj4_none = Obj4None.from_dict(obj["none"])
48514852 obj4_nonlocal = Nonlocal.from_dict(obj["nonlocal"])
@@ -4899,8 +4900,7 @@ class Obj4:
48994900 s = S.from_dict(obj["s"])
49004901 sbyte = Sbyte.from_dict(obj["sbyte"])
49014902 sealed = Sealed.from_dict(obj["sealed"])
4902- select = Select.from_dict(obj["select"])
4903- return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, protocol, reg_exp, sel, dummy, no_such_method, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed, select)
4903+ return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, protocol, reg_exp, sel, dummy, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed)
49044904
49054905 def to_dict(self) -> dict:
49064906 result: dict = {}
@@ -4915,6 +4915,7 @@ class Obj4:
49154915 result["SEL"] = to_class(Sel, self.sel)
49164916 result["dummy"] = from_int(self.dummy)
49174917 result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method)
4918+ result["noexcept"] = to_class(Noexcept, self.noexcept)
49184919 result["nonatomic"] = to_class(Nonatomic, self.nonatomic)
49194920 result["none"] = to_class(Obj4None, self.obj4_none)
49204921 result["nonlocal"] = to_class(Nonlocal, self.obj4_nonlocal)
@@ -4968,7 +4969,6 @@ class Obj4:
49684969 result["s"] = to_class(S, self.s)
49694970 result["sbyte"] = to_class(Sbyte, self.sbyte)
49704971 result["sealed"] = to_class(Sealed, self.sealed)
4971- result["select"] = to_class(Select, self.select)
49724972 return result
49734973
49744974
@@ -4988,6 +4988,22 @@ class Self:
49884988 return result
49894989
49904990
4991+@dataclass
4992+class ToDict:
4993+ to_dict_to_dict: int
4994+
4995+ @staticmethod
4996+ def from_dict(obj: Any) -> 'ToDict':
4997+ assert isinstance(obj, dict)
4998+ to_dict_to_dict = from_int(obj["to_dict"])
4999+ return ToDict(to_dict_to_dict)
5000+
5001+ def to_dict(self) -> dict:
5002+ result: dict = {}
5003+ result["to_dict"] = from_int(self.to_dict_to_dict)
5004+ return result
5005+
5006+
49915007 @dataclass
49925008 class Obj5True:
49935009 true: int
@@ -5052,6 +5068,22 @@ class SelfClass:
50525068 return result
50535069
50545070
5071+@dataclass
5072+class Select:
5073+ select: int
5074+
5075+ @staticmethod
5076+ def from_dict(obj: Any) -> 'Select':
5077+ assert isinstance(obj, dict)
5078+ select = from_int(obj["select"])
5079+ return Select(select)
5080+
5081+ def to_dict(self) -> dict:
5082+ result: dict = {}
5083+ result["select"] = from_int(self.select)
5084+ return result
5085+
5086+
50555087 @dataclass
50565088 class Sendable:
50575089 sendable: int
@@ -5964,38 +5996,6 @@ class UUIDClass:
59645996 return result
59655997
59665998
5967-@dataclass
5968-class Var:
5969- var: int
5970-
5971- @staticmethod
5972- def from_dict(obj: Any) -> 'Var':
5973- assert isinstance(obj, dict)
5974- var = from_int(obj["var"])
5975- return Var(var)
5976-
5977- def to_dict(self) -> dict:
5978- result: dict = {}
5979- result["var"] = from_int(self.var)
5980- return result
5981-
5982-
5983-@dataclass
5984-class Virtual:
5985- virtual: int
5986-
5987- @staticmethod
5988- def from_dict(obj: Any) -> 'Virtual':
5989- assert isinstance(obj, dict)
5990- virtual = from_int(obj["virtual"])
5991- return Virtual(virtual)
5992-
5993- def to_dict(self) -> dict:
5994- result: dict = {}
5995- result["virtual"] = from_int(self.virtual)
5996- return result
5997-
5998-
59995999 @dataclass
60006000 class Obj5:
60016001 obj5_self: Self
@@ -6014,6 +6014,7 @@ class Obj5:
60146014 utf8_json_reader: Utf8JSONReader
60156015 utf8_json_writer: Utf8JSONWriter
60166016 dummy: int
6017+ select: Select
60176018 purple_self: SelfClass
60186019 serialize: Serialize
60196020 set: Set
@@ -6040,6 +6041,7 @@ class Obj5:
60406041 throw: Throw
60416042 throws: Throws
60426043 to_string: ToString
6044+ obj5_to_dict: ToDict
60436045 to_json: ToJSON
60446046 top_level: TopLevelClass
60456047 transient: Transient
@@ -6061,8 +6063,6 @@ class Obj5:
60616063 unsigned: Unsigned
60626064 ushort: Ushort
60636065 using: Using
6064- var: Var
6065- virtual: Virtual
60666066
60676067 @staticmethod
60686068 def from_dict(obj: Any) -> 'Obj5':
@@ -6083,6 +6083,7 @@ class Obj5:
60836083 utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"])
60846084 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
60856085 dummy = from_int(obj["dummy"])
6086+ select = Select.from_dict(obj["select"])
60866087 purple_self = SelfClass.from_dict(obj["self"])
60876088 serialize = Serialize.from_dict(obj["serialize"])
60886089 set = Set.from_dict(obj["set"])
@@ -6109,6 +6110,7 @@ class Obj5:
61096110 throw = Throw.from_dict(obj["throw"])
61106111 throws = Throws.from_dict(obj["throws"])
61116112 to_string = ToString.from_dict(obj["toString"])
6113+ obj5_to_dict = ToDict.from_dict(obj["to_dict"])
61126114 to_json = ToJSON.from_dict(obj["to_json"])
61136115 top_level = TopLevelClass.from_dict(obj["top_level"])
61146116 transient = Transient.from_dict(obj["transient"])
@@ -6130,9 +6132,7 @@ class Obj5:
61306132 unsigned = Unsigned.from_dict(obj["unsigned"])
61316133 ushort = Ushort.from_dict(obj["ushort"])
61326134 using = Using.from_dict(obj["using"])
6133- var = Var.from_dict(obj["var"])
6134- virtual = Virtual.from_dict(obj["virtual"])
6135- return Obj5(obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, uuid, utf8_json_reader, utf8_json_writer, dummy, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, var, virtual)
6135+ return Obj5(obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, uuid, utf8_json_reader, utf8_json_writer, dummy, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, obj5_to_dict, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using)
61366136
61376137 def to_dict(self) -> dict:
61386138 result: dict = {}
@@ -6152,6 +6152,7 @@ class Obj5:
61526152 result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader)
61536153 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
61546154 result["dummy"] = from_int(self.dummy)
6155+ result["select"] = to_class(Select, self.select)
61556156 result["self"] = to_class(SelfClass, self.purple_self)
61566157 result["serialize"] = to_class(Serialize, self.serialize)
61576158 result["set"] = to_class(Set, self.set)
@@ -6178,6 +6179,7 @@ class Obj5:
61786179 result["throw"] = to_class(Throw, self.throw)
61796180 result["throws"] = to_class(Throws, self.throws)
61806181 result["toString"] = to_class(ToString, self.to_string)
6182+ result["to_dict"] = to_class(ToDict, self.obj5_to_dict)
61816183 result["to_json"] = to_class(ToJSON, self.to_json)
61826184 result["top_level"] = to_class(TopLevelClass, self.top_level)
61836185 result["transient"] = to_class(Transient, self.transient)
@@ -6199,8 +6201,6 @@ class Obj5:
61996201 result["unsigned"] = to_class(Unsigned, self.unsigned)
62006202 result["ushort"] = to_class(Ushort, self.ushort)
62016203 result["using"] = to_class(Using, self.using)
6202- result["var"] = to_class(Var, self.var)
6203- result["virtual"] = to_class(Virtual, self.virtual)
62046204 return result
62056205
62066206
@@ -6252,6 +6252,38 @@ class Yield:
62526252 return result
62536253
62546254
6255+@dataclass
6256+class Var:
6257+ var: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'Var':
6261+ assert isinstance(obj, dict)
6262+ var = from_int(obj["var"])
6263+ return Var(var)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["var"] = from_int(self.var)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class Virtual:
6273+ virtual: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'Virtual':
6277+ assert isinstance(obj, dict)
6278+ virtual = from_int(obj["virtual"])
6279+ return Virtual(virtual)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["virtual"] = from_int(self.virtual)
6284+ return result
6285+
6286+
62556287 @dataclass
62566288 class Void:
62576289 void: int
@@ -6400,6 +6432,8 @@ class Yes:
64006432 class Obj6:
64016433 yes: Yes
64026434 dummy: int
6435+ var: Var
6436+ virtual: Virtual
64036437 void: Void
64046438 volatile: Volatile
64056439 wchar_t: WcharT
@@ -6417,6 +6451,8 @@ class Obj6:
64176451 assert isinstance(obj, dict)
64186452 yes = Yes.from_dict(obj["YES"])
64196453 dummy = from_int(obj["dummy"])
6454+ var = Var.from_dict(obj["var"])
6455+ virtual = Virtual.from_dict(obj["virtual"])
64206456 void = Void.from_dict(obj["void"])
64216457 volatile = Volatile.from_dict(obj["volatile"])
64226458 wchar_t = WcharT.from_dict(obj["wchar_t"])
@@ -6428,12 +6464,14 @@ class Obj6:
64286464 xor = Xor.from_dict(obj["xor"])
64296465 xor_eq = XorEq.from_dict(obj["xor_eq"])
64306466 obj6_yield = Yield.from_dict(obj["yield"])
6431- return Obj6(yes, dummy, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6467+ return Obj6(yes, dummy, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
64326468
64336469 def to_dict(self) -> dict:
64346470 result: dict = {}
64356471 result["YES"] = to_class(Yes, self.yes)
64366472 result["dummy"] = from_int(self.dummy)
6473+ result["var"] = to_class(Var, self.var)
6474+ result["virtual"] = to_class(Virtual, self.virtual)
64376475 result["void"] = to_class(Void, self.void)
64386476 result["volatile"] = to_class(Volatile, self.volatile)
64396477 result["wchar_t"] = to_class(WcharT, self.wchar_t)
Mrubydefault / TopLevel.rb+196 −140
@@ -3094,6 +3094,31 @@ class From < Dry::Struct
30943094 end
30953095 end
30963096
3097+class FromDict < Dry::Struct
3098+ attribute :from_dict, Types::Integer
3099+
3100+ def self.from_dynamic!(d)
3101+ d = Types::Hash[d]
3102+ new(
3103+ from_dict: d.fetch("from_dict"),
3104+ )
3105+ end
3106+
3107+ def self.from_json!(json)
3108+ from_dynamic!(JSON.parse(json))
3109+ end
3110+
3111+ def to_dynamic
3112+ {
3113+ "from_dict" => from_dict,
3114+ }
3115+ end
3116+
3117+ def to_json(options = nil)
3118+ JSON.generate(to_dynamic, options)
3119+ end
3120+end
3121+
30973122 class FromJSON < Dry::Struct
30983123 attribute :from_json, Types::Integer
30993124
@@ -3244,31 +3269,6 @@ class Go < Dry::Struct
32443269 end
32453270 end
32463271
3247-class Goto < Dry::Struct
3248- attribute :goto, Types::Integer
3249-
3250- def self.from_dynamic!(d)
3251- d = Types::Hash[d]
3252- new(
3253- goto: d.fetch("goto"),
3254- )
3255- end
3256-
3257- def self.from_json!(json)
3258- from_dynamic!(JSON.parse(json))
3259- end
3260-
3261- def to_dynamic
3262- {
3263- "goto" => goto,
3264- }
3265- end
3266-
3267- def to_json(options = nil)
3268- JSON.generate(to_dynamic, options)
3269- end
3270-end
3271-
32723272 class Def < Dry::Struct
32733273 attribute :def_def, Types::Integer
32743274
@@ -3496,13 +3496,13 @@ class Obj2 < Dry::Struct
34963496 attribute :format_exception, FormatException
34973497 attribute :friend, Friend
34983498 attribute :from, From
3499+ attribute :from_dict, FromDict
34993500 attribute :from_json, FromJSON
35003501 attribute :func, Func
35013502 attribute :function, Function
35023503 attribute :get, Get
35033504 attribute :global, Global
35043505 attribute :go, Go
3505- attribute :goto, Goto
35063506 attribute :obj2_def, Def
35073507 attribute :obj2_default, Default
35083508 attribute :obj2_do, Do
@@ -3565,13 +3565,13 @@ class Obj2 < Dry::Struct
35653565 format_exception: FormatException.from_dynamic!(d.fetch("FormatException")),
35663566 friend: Friend.from_dynamic!(d.fetch("friend")),
35673567 from: From.from_dynamic!(d.fetch("from")),
3568+ from_dict: FromDict.from_dynamic!(d.fetch("from_dict")),
35683569 from_json: FromJSON.from_dynamic!(d.fetch("from_json")),
35693570 func: Func.from_dynamic!(d.fetch("func")),
35703571 function: Function.from_dynamic!(d.fetch("function")),
35713572 get: Get.from_dynamic!(d.fetch("get")),
35723573 global: Global.from_dynamic!(d.fetch("global")),
35733574 go: Go.from_dynamic!(d.fetch("go")),
3574- goto: Goto.from_dynamic!(d.fetch("goto")),
35753575 obj2_def: Def.from_dynamic!(d.fetch("def")),
35763576 obj2_default: Default.from_dynamic!(d.fetch("default")),
35773577 obj2_do: Do.from_dynamic!(d.fetch("do")),
@@ -3639,13 +3639,13 @@ class Obj2 < Dry::Struct
36393639 "FormatException" => format_exception.to_dynamic,
36403640 "friend" => friend.to_dynamic,
36413641 "from" => from.to_dynamic,
3642+ "from_dict" => from_dict.to_dynamic,
36423643 "from_json" => from_json.to_dynamic,
36433644 "func" => func.to_dynamic,
36443645 "function" => function.to_dynamic,
36453646 "get" => get.to_dynamic,
36463647 "global" => global.to_dynamic,
36473648 "go" => go.to_dynamic,
3648- "goto" => goto.to_dynamic,
36493649 "def" => obj2_def.to_dynamic,
36503650 "default" => obj2_default.to_dynamic,
36513651 "do" => obj2_do.to_dynamic,
@@ -3661,6 +3661,31 @@ class Obj2 < Dry::Struct
36613661 end
36623662 end
36633663
3664+class Goto < Dry::Struct
3665+ attribute :goto, Types::Integer
3666+
3667+ def self.from_dynamic!(d)
3668+ d = Types::Hash[d]
3669+ new(
3670+ goto: d.fetch("goto"),
3671+ )
3672+ end
3673+
3674+ def self.from_json!(json)
3675+ from_dynamic!(JSON.parse(json))
3676+ end
3677+
3678+ def to_dynamic
3679+ {
3680+ "goto" => goto,
3681+ }
3682+ end
3683+
3684+ def to_json(options = nil)
3685+ JSON.generate(to_dynamic, options)
3686+ end
3687+end
3688+
36643689 class Guard < Dry::Struct
36653690 attribute :guard, Types::Integer
36663691
@@ -5086,31 +5111,6 @@ class No < Dry::Struct
50865111 end
50875112 end
50885113
5089-class Noexcept < Dry::Struct
5090- attribute :noexcept, Types::Integer
5091-
5092- def self.from_dynamic!(d)
5093- d = Types::Hash[d]
5094- new(
5095- noexcept: d.fetch("noexcept"),
5096- )
5097- end
5098-
5099- def self.from_json!(json)
5100- from_dynamic!(JSON.parse(json))
5101- end
5102-
5103- def to_dynamic
5104- {
5105- "noexcept" => noexcept,
5106- }
5107- end
5108-
5109- def to_json(options = nil)
5110- JSON.generate(to_dynamic, options)
5111- end
5112-end
5113-
51145114 class If < Dry::Struct
51155115 attribute :if_if, Types::Integer
51165116
@@ -5263,6 +5263,7 @@ end
52635263
52645264 class Obj3 < Dry::Struct
52655265 attribute :dummy, Types::Integer
5266+ attribute :goto, Goto
52665267 attribute :guard, Guard
52675268 attribute :has_own_property, HasOwnProperty
52685269 attribute :hash_code, HashCode
@@ -5320,7 +5321,6 @@ class Obj3 < Dry::Struct
53205321 attribute :native, Native
53215322 attribute :newtonsoft, Newtonsoft
53225323 attribute :no, No
5323- attribute :noexcept, Noexcept
53245324 attribute :obj3_if, If
53255325 attribute :obj3_in, In
53265326 attribute :obj3_lambda, Lambda
@@ -5332,6 +5332,7 @@ class Obj3 < Dry::Struct
53325332 d = Types::Hash[d]
53335333 new(
53345334 dummy: d.fetch("dummy"),
5335+ goto: Goto.from_dynamic!(d.fetch("goto")),
53355336 guard: Guard.from_dynamic!(d.fetch("guard")),
53365337 has_own_property: HasOwnProperty.from_dynamic!(d.fetch("hasOwnProperty")),
53375338 hash_code: HashCode.from_dynamic!(d.fetch("hashCode")),
@@ -5389,7 +5390,6 @@ class Obj3 < Dry::Struct
53895390 native: Native.from_dynamic!(d.fetch("native")),
53905391 newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")),
53915392 no: No.from_dynamic!(d.fetch("NO")),
5392- noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
53935393 obj3_if: If.from_dynamic!(d.fetch("if")),
53945394 obj3_in: In.from_dynamic!(d.fetch("in")),
53955395 obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")),
@@ -5406,6 +5406,7 @@ class Obj3 < Dry::Struct
54065406 def to_dynamic
54075407 {
54085408 "dummy" => dummy,
5409+ "goto" => goto.to_dynamic,
54095410 "guard" => guard.to_dynamic,
54105411 "hasOwnProperty" => has_own_property.to_dynamic,
54115412 "hashCode" => hash_code.to_dynamic,
@@ -5463,7 +5464,6 @@ class Obj3 < Dry::Struct
54635464 "native" => native.to_dynamic,
54645465 "newtonsoft" => newtonsoft.to_dynamic,
54655466 "NO" => no.to_dynamic,
5466- "noexcept" => noexcept.to_dynamic,
54675467 "if" => obj3_if.to_dynamic,
54685468 "in" => obj3_in.to_dynamic,
54695469 "lambda" => obj3_lambda.to_dynamic,
@@ -5503,6 +5503,31 @@ class NoSuchMethod < Dry::Struct
55035503 end
55045504 end
55055505
5506+class Noexcept < Dry::Struct
5507+ attribute :noexcept, Types::Integer
5508+
5509+ def self.from_dynamic!(d)
5510+ d = Types::Hash[d]
5511+ new(
5512+ noexcept: d.fetch("noexcept"),
5513+ )
5514+ end
5515+
5516+ def self.from_json!(json)
5517+ from_dynamic!(JSON.parse(json))
5518+ end
5519+
5520+ def to_dynamic
5521+ {
5522+ "noexcept" => noexcept,
5523+ }
5524+ end
5525+
5526+ def to_json(options = nil)
5527+ JSON.generate(to_dynamic, options)
5528+ end
5529+end
5530+
55065531 class Nonatomic < Dry::Struct
55075532 attribute :nonatomic, Types::Integer
55085533
@@ -6078,31 +6103,6 @@ class Return < Dry::Struct
60786103 end
60796104 end
60806105
6081-class Select < Dry::Struct
6082- attribute :select_select, Types::Integer
6083-
6084- def self.from_dynamic!(d)
6085- d = Types::Hash[d]
6086- new(
6087- select_select: d.fetch("select"),
6088- )
6089- end
6090-
6091- def self.from_json!(json)
6092- from_dynamic!(JSON.parse(json))
6093- end
6094-
6095- def to_dynamic
6096- {
6097- "select" => select_select,
6098- }
6099- end
6100-
6101- def to_json(options = nil)
6102- JSON.generate(to_dynamic, options)
6103- end
6104-end
6105-
61066106 class ObjectClass < Dry::Struct
61076107 attribute :object, Types::Integer
61086108
@@ -7081,6 +7081,7 @@ end
70817081 class Obj4 < Dry::Struct
70827082 attribute :dummy, Types::Integer
70837083 attribute :no_such_method, NoSuchMethod
7084+ attribute :noexcept, Noexcept
70847085 attribute :nonatomic, Nonatomic
70857086 attribute :none, None
70867087 attribute :nonlocal, Nonlocal
@@ -7104,7 +7105,6 @@ class Obj4 < Dry::Struct
71047105 attribute :obj4_raise, Raise
71057106 attribute :obj4_require, Require
71067107 attribute :obj4_return, Return
7107- attribute :obj4_select, Select
71087108 attribute :object, ObjectClass
71097109 attribute :object_mapper, ObjectMapper
71107110 attribute :of, Of
@@ -7150,6 +7150,7 @@ class Obj4 < Dry::Struct
71507150 new(
71517151 dummy: d.fetch("dummy"),
71527152 no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")),
7153+ noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
71537154 nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")),
71547155 none: None.from_dynamic!(d.fetch("None")),
71557156 nonlocal: Nonlocal.from_dynamic!(d.fetch("nonlocal")),
@@ -7173,7 +7174,6 @@ class Obj4 < Dry::Struct
71737174 obj4_raise: Raise.from_dynamic!(d.fetch("raise")),
71747175 obj4_require: Require.from_dynamic!(d.fetch("require")),
71757176 obj4_return: Return.from_dynamic!(d.fetch("return")),
7176- obj4_select: Select.from_dynamic!(d.fetch("select")),
71777177 object: ObjectClass.from_dynamic!(d.fetch("object")),
71787178 object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")),
71797179 of: Of.from_dynamic!(d.fetch("of")),
@@ -7224,6 +7224,7 @@ class Obj4 < Dry::Struct
72247224 {
72257225 "dummy" => dummy,
72267226 "noSuchMethod" => no_such_method.to_dynamic,
7227+ "noexcept" => noexcept.to_dynamic,
72277228 "nonatomic" => nonatomic.to_dynamic,
72287229 "None" => none.to_dynamic,
72297230 "nonlocal" => nonlocal.to_dynamic,
@@ -7247,7 +7248,6 @@ class Obj4 < Dry::Struct
72477248 "raise" => obj4_raise.to_dynamic,
72487249 "require" => obj4_require.to_dynamic,
72497250 "return" => obj4_return.to_dynamic,
7250- "select" => obj4_select.to_dynamic,
72517251 "object" => object.to_dynamic,
72527252 "ObjectMapper" => object_mapper.to_dynamic,
72537253 "of" => of.to_dynamic,
@@ -7295,6 +7295,31 @@ class Obj4 < Dry::Struct
72957295 end
72967296 end
72977297
7298+class Select < Dry::Struct
7299+ attribute :select_select, Types::Integer
7300+
7301+ def self.from_dynamic!(d)
7302+ d = Types::Hash[d]
7303+ new(
7304+ select_select: d.fetch("select"),
7305+ )
7306+ end
7307+
7308+ def self.from_json!(json)
7309+ from_dynamic!(JSON.parse(json))
7310+ end
7311+
7312+ def to_dynamic
7313+ {
7314+ "select" => select_select,
7315+ }
7316+ end
7317+
7318+ def to_json(options = nil)
7319+ JSON.generate(to_dynamic, options)
7320+ end
7321+end
7322+
72987323 class SelfClass < Dry::Struct
72997324 attribute :self_self, Types::Integer
73007325
@@ -8270,6 +8295,31 @@ class TimeZone < Dry::Struct
82708295 end
82718296 end
82728297
8298+class ToDict < Dry::Struct
8299+ attribute :to_dict, Types::Integer
8300+
8301+ def self.from_dynamic!(d)
8302+ d = Types::Hash[d]
8303+ new(
8304+ to_dict: d.fetch("to_dict"),
8305+ )
8306+ end
8307+
8308+ def self.from_json!(json)
8309+ from_dynamic!(JSON.parse(json))
8310+ end
8311+
8312+ def to_dynamic
8313+ {
8314+ "to_dict" => to_dict,
8315+ }
8316+ end
8317+
8318+ def to_json(options = nil)
8319+ JSON.generate(to_dynamic, options)
8320+ end
8321+end
8322+
82738323 class ToString < Dry::Struct
82748324 attribute :to_string, Types::Integer
82758325
@@ -8845,58 +8895,9 @@ class UUID < Dry::Struct
88458895 end
88468896 end
88478897
8848-class Var < Dry::Struct
8849- attribute :var, Types::Integer
8850-
8851- def self.from_dynamic!(d)
8852- d = Types::Hash[d]
8853- new(
8854- var: d.fetch("var"),
8855- )
8856- end
8857-
8858- def self.from_json!(json)
8859- from_dynamic!(JSON.parse(json))
8860- end
8861-
8862- def to_dynamic
8863- {
8864- "var" => var,
8865- }
8866- end
8867-
8868- def to_json(options = nil)
8869- JSON.generate(to_dynamic, options)
8870- end
8871-end
8872-
8873-class Virtual < Dry::Struct
8874- attribute :virtual, Types::Integer
8875-
8876- def self.from_dynamic!(d)
8877- d = Types::Hash[d]
8878- new(
8879- virtual: d.fetch("virtual"),
8880- )
8881- end
8882-
8883- def self.from_json!(json)
8884- from_dynamic!(JSON.parse(json))
8885- end
8886-
8887- def to_dynamic
8888- {
8889- "virtual" => virtual,
8890- }
8891- end
8892-
8893- def to_json(options = nil)
8894- JSON.generate(to_dynamic, options)
8895- end
8896-end
8897-
88988898 class Obj5 < Dry::Struct
88998899 attribute :dummy, Types::Integer
8900+ attribute :obj5_select, Select
89008901 attribute :obj5_self, SelfClass
89018902 attribute :obj5_super, Super
89028903 attribute :obj5_system, System
@@ -8936,6 +8937,7 @@ class Obj5 < Dry::Struct
89368937 attribute :time_only, TimeOnly
89378938 attribute :time_only_converter, TimeOnlyConverter
89388939 attribute :time_zone, TimeZone
8940+ attribute :to_dict, ToDict
89398941 attribute :to_string, ToString
89408942 attribute :top_level, TopLevelClass
89418943 attribute :transient, Transient
@@ -8959,13 +8961,12 @@ class Obj5 < Dry::Struct
89598961 attribute :utf8_json_reader, Utf8JSONReader
89608962 attribute :utf8_json_writer, Utf8JSONWriter
89618963 attribute :uuid, UUID
8962- attribute :var, Var
8963- attribute :virtual, Virtual
89648964
89658965 def self.from_dynamic!(d)
89668966 d = Types::Hash[d]
89678967 new(
89688968 dummy: d.fetch("dummy"),
8969+ obj5_select: Select.from_dynamic!(d.fetch("select")),
89698970 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
89708971 obj5_super: Super.from_dynamic!(d.fetch("super")),
89718972 obj5_system: System.from_dynamic!(d.fetch("system")),
@@ -9005,6 +9006,7 @@ class Obj5 < Dry::Struct
90059006 time_only: TimeOnly.from_dynamic!(d.fetch("TimeOnly")),
90069007 time_only_converter: TimeOnlyConverter.from_dynamic!(d.fetch("TimeOnlyConverter")),
90079008 time_zone: TimeZone.from_dynamic!(d.fetch("TimeZone")),
9009+ to_dict: ToDict.from_dynamic!(d.fetch("to_dict")),
90089010 to_string: ToString.from_dynamic!(d.fetch("toString")),
90099011 top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")),
90109012 transient: Transient.from_dynamic!(d.fetch("transient")),
@@ -9028,8 +9030,6 @@ class Obj5 < Dry::Struct
90289030 utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
90299031 utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
90309032 uuid: UUID.from_dynamic!(d.fetch("UUID")),
9031- var: Var.from_dynamic!(d.fetch("var")),
9032- virtual: Virtual.from_dynamic!(d.fetch("virtual")),
90339033 )
90349034 end
90359035
@@ -9040,6 +9040,7 @@ class Obj5 < Dry::Struct
90409040 def to_dynamic
90419041 {
90429042 "dummy" => dummy,
9043+ "select" => obj5_select.to_dynamic,
90439044 "Self" => obj5_self.to_dynamic,
90449045 "super" => obj5_super.to_dynamic,
90459046 "system" => obj5_system.to_dynamic,
@@ -9079,6 +9080,7 @@ class Obj5 < Dry::Struct
90799080 "TimeOnly" => time_only.to_dynamic,
90809081 "TimeOnlyConverter" => time_only_converter.to_dynamic,
90819082 "TimeZone" => time_zone.to_dynamic,
9083+ "to_dict" => to_dict.to_dynamic,
90829084 "toString" => to_string.to_dynamic,
90839085 "top_level" => top_level.to_dynamic,
90849086 "transient" => transient.to_dynamic,
@@ -9102,8 +9104,6 @@ class Obj5 < Dry::Struct
91029104 "Utf8JsonReader" => utf8_json_reader.to_dynamic,
91039105 "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
91049106 "UUID" => uuid.to_dynamic,
9105- "var" => var.to_dynamic,
9106- "virtual" => virtual.to_dynamic,
91079107 }
91089108 end
91099109
@@ -9187,6 +9187,56 @@ class Yield < Dry::Struct
91879187 end
91889188 end
91899189
9190+class Var < Dry::Struct
9191+ attribute :var, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ var: d.fetch("var"),
9197+ )
9198+ end
9199+
9200+ def self.from_json!(json)
9201+ from_dynamic!(JSON.parse(json))
9202+ end
9203+
9204+ def to_dynamic
9205+ {
9206+ "var" => var,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class Virtual < Dry::Struct
9216+ attribute :virtual, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ virtual: d.fetch("virtual"),
9222+ )
9223+ end
9224+
9225+ def self.from_json!(json)
9226+ from_dynamic!(JSON.parse(json))
9227+ end
9228+
9229+ def to_dynamic
9230+ {
9231+ "virtual" => virtual,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
91909240 class Void < Dry::Struct
91919241 attribute :void, Types::Integer
91929242
@@ -9417,6 +9467,8 @@ class Obj6 < Dry::Struct
94179467 attribute :obj6_while, While
94189468 attribute :obj6_with, With
94199469 attribute :obj6_yield, Yield
9470+ attribute :var, Var
9471+ attribute :virtual, Virtual
94209472 attribute :void, Void
94219473 attribute :volatile, Volatile
94229474 attribute :wchar_t, WcharT
@@ -9434,6 +9486,8 @@ class Obj6 < Dry::Struct
94349486 obj6_while: While.from_dynamic!(d.fetch("while")),
94359487 obj6_with: With.from_dynamic!(d.fetch("with")),
94369488 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9489+ var: Var.from_dynamic!(d.fetch("var")),
9490+ virtual: Virtual.from_dynamic!(d.fetch("virtual")),
94379491 void: Void.from_dynamic!(d.fetch("void")),
94389492 volatile: Volatile.from_dynamic!(d.fetch("volatile")),
94399493 wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")),
@@ -9456,6 +9510,8 @@ class Obj6 < Dry::Struct
94569510 "while" => obj6_while.to_dynamic,
94579511 "with" => obj6_with.to_dynamic,
94589512 "yield" => obj6_yield.to_dynamic,
9513+ "var" => var.to_dynamic,
9514+ "virtual" => virtual.to_dynamic,
94599515 "void" => void.to_dynamic,
94609516 "volatile" => volatile.to_dynamic,
94619517 "wchar_t" => wchar_t.to_dynamic,
Mrustdefault / module_under_test.rs+51 −37
@@ -639,6 +639,8 @@ pub struct Obj2 {
639639
640640 pub from: From,
641641
642+ pub from_dict: FromDict,
643+
642644 pub from_json: FromJson,
643645
644646 pub func: Func,
@@ -651,8 +653,6 @@ pub struct Obj2 {
651653
652654 pub go: Go,
653655
654- pub goto: Goto,
655-
656656 #[serde(rename = "default")]
657657 pub obj2_default: Default,
658658
@@ -942,6 +942,11 @@ pub struct From {
942942 pub from: i64,
943943 }
944944
945+#[derive(Debug, Clone, Serialize, Deserialize)]
946+pub struct FromDict {
947+ pub from_dict: i64,
948+}
949+
945950 #[derive(Debug, Clone, Serialize, Deserialize)]
946951 pub struct FromJson {
947952 pub from_json: i64,
@@ -972,11 +977,6 @@ pub struct Go {
972977 pub go: i64,
973978 }
974979
975-#[derive(Debug, Clone, Serialize, Deserialize)]
976-pub struct Goto {
977- pub goto: i64,
978-}
979-
980980 #[derive(Debug, Clone, Serialize, Deserialize)]
981981 pub struct Default {
982982 #[serde(rename = "default")]
@@ -1036,6 +1036,8 @@ pub struct FalseClass {
10361036 pub struct Obj3 {
10371037 pub dummy: i64,
10381038
1039+ pub goto: Goto,
1040+
10391041 pub guard: Guard,
10401042
10411043 #[serde(rename = "hasOwnProperty")]
@@ -1176,8 +1178,6 @@ pub struct Obj3 {
11761178 #[serde(rename = "NO")]
11771179 pub no: No,
11781180
1179- pub noexcept: Noexcept,
1180-
11811181 #[serde(rename = "if")]
11821182 pub obj3_if: If,
11831183
@@ -1188,6 +1188,11 @@ pub struct Obj3 {
11881188 pub obj3_let: Let,
11891189 }
11901190
1191+#[derive(Debug, Clone, Serialize, Deserialize)]
1192+pub struct Goto {
1193+ pub goto: i64,
1194+}
1195+
11911196 #[derive(Debug, Clone, Serialize, Deserialize)]
11921197 pub struct Guard {
11931198 pub guard: i64,
@@ -1513,11 +1518,6 @@ pub struct No {
15131518 pub no: i64,
15141519 }
15151520
1516-#[derive(Debug, Clone, Serialize, Deserialize)]
1517-pub struct Noexcept {
1518- pub noexcept: i64,
1519-}
1520-
15211521 #[derive(Debug, Clone, Serialize, Deserialize)]
15221522 pub struct If {
15231523 #[serde(rename = "if")]
@@ -1543,6 +1543,8 @@ pub struct Obj4 {
15431543 #[serde(rename = "noSuchMethod")]
15441544 pub no_such_method: NoSuchMethod,
15451545
1546+ pub noexcept: Noexcept,
1547+
15461548 pub nonatomic: Nonatomic,
15471549
15481550 #[serde(rename = "None")]
@@ -1683,8 +1685,6 @@ pub struct Obj4 {
16831685
16841686 #[serde(rename = "SEL")]
16851687 pub sel: Sel,
1686-
1687- pub select: Select,
16881688 }
16891689
16901690 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1693,6 +1693,11 @@ pub struct NoSuchMethod {
16931693 pub no_such_method: i64,
16941694 }
16951695
1696+#[derive(Debug, Clone, Serialize, Deserialize)]
1697+pub struct Noexcept {
1698+ pub noexcept: i64,
1699+}
1700+
16961701 #[derive(Debug, Clone, Serialize, Deserialize)]
16971702 pub struct Nonatomic {
16981703 pub nonatomic: i64,
@@ -2020,11 +2025,6 @@ pub struct Sel {
20202025 pub sel: i64,
20212026 }
20222027
2023-#[derive(Debug, Clone, Serialize, Deserialize)]
2024-pub struct Select {
2025- pub select: i64,
2026-}
2027-
20282028 #[derive(Debug, Clone, Serialize, Deserialize)]
20292029 pub struct Obj5 {
20302030 pub dummy: i64,
@@ -2059,9 +2059,6 @@ pub struct Obj5 {
20592059 #[serde(rename = "unsafe")]
20602060 pub obj5_unsafe: Unsafe,
20612061
2062- #[serde(rename = "virtual")]
2063- pub obj5_virtual: Virtual,
2064-
20652062 #[serde(rename = "self")]
20662063 pub purple_self: Obj5Self,
20672064
@@ -2071,6 +2068,8 @@ pub struct Obj5 {
20712068 #[serde(rename = "type")]
20722069 pub purple_type: TypeClass,
20732070
2071+ pub select: Select,
2072+
20742073 #[serde(rename = "Sendable")]
20752074 pub sendable: Sendable,
20762075
@@ -2138,6 +2137,8 @@ pub struct Obj5 {
21382137 #[serde(rename = "TimeZone")]
21392138 pub time_zone: TimeZone,
21402139
2140+ pub to_dict: ToDict,
2141+
21412142 pub to_json: ToJson,
21422143
21432144 #[serde(rename = "toString")]
@@ -2181,8 +2182,6 @@ pub struct Obj5 {
21812182
21822183 #[serde(rename = "UUID")]
21832184 pub uuid: Uuid,
2184-
2185- pub var: Var,
21862185 }
21872186
21882187 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2248,12 +2247,6 @@ pub struct Unsafe {
22482247 pub unsafe_unsafe: i64,
22492248 }
22502249
2251-#[derive(Debug, Clone, Serialize, Deserialize)]
2252-pub struct Virtual {
2253- #[serde(rename = "virtual")]
2254- pub virtual_virtual: i64,
2255-}
2256-
22572250 #[derive(Debug, Clone, Serialize, Deserialize)]
22582251 pub struct Obj5Self {
22592252 #[serde(rename = "self")]
@@ -2272,6 +2265,11 @@ pub struct TypeClass {
22722265 pub type_type: i64,
22732266 }
22742267
2268+#[derive(Debug, Clone, Serialize, Deserialize)]
2269+pub struct Select {
2270+ pub select: i64,
2271+}
2272+
22752273 #[derive(Debug, Clone, Serialize, Deserialize)]
22762274 #[serde(rename_all = "PascalCase")]
22772275 pub struct Sendable {
@@ -2426,6 +2424,11 @@ pub struct TimeZone {
24262424 pub time_zone: i64,
24272425 }
24282426
2427+#[derive(Debug, Clone, Serialize, Deserialize)]
2428+pub struct ToDict {
2429+ pub to_dict: i64,
2430+}
2431+
24292432 #[derive(Debug, Clone, Serialize, Deserialize)]
24302433 pub struct ToJson {
24312434 pub to_json: i64,
@@ -2530,15 +2533,13 @@ pub struct Uuid {
25302533 pub uuid: i64,
25312534 }
25322535
2533-#[derive(Debug, Clone, Serialize, Deserialize)]
2534-pub struct Var {
2535- pub var: i64,
2536-}
2537-
25382536 #[derive(Debug, Clone, Serialize, Deserialize)]
25392537 pub struct Obj6 {
25402538 pub dummy: i64,
25412539
2540+ #[serde(rename = "virtual")]
2541+ pub obj6_virtual: Virtual,
2542+
25422543 #[serde(rename = "where")]
25432544 pub obj6_where: Where,
25442545
@@ -2548,6 +2549,8 @@ pub struct Obj6 {
25482549 #[serde(rename = "yield")]
25492550 pub obj6_yield: Yield,
25502551
2552+ pub var: Var,
2553+
25512554 pub void: Void,
25522555
25532556 pub volatile: Volatile,
@@ -2569,6 +2572,12 @@ pub struct Obj6 {
25692572 pub yes: Yes,
25702573 }
25712574
2575+#[derive(Debug, Clone, Serialize, Deserialize)]
2576+pub struct Virtual {
2577+ #[serde(rename = "virtual")]
2578+ pub virtual_virtual: i64,
2579+}
2580+
25722581 #[derive(Debug, Clone, Serialize, Deserialize)]
25732582 pub struct Where {
25742583 #[serde(rename = "where")]
@@ -2587,6 +2596,11 @@ pub struct Yield {
25872596 pub yield_yield: i64,
25882597 }
25892598
2599+#[derive(Debug, Clone, Serialize, Deserialize)]
2600+pub struct Var {
2601+ pub var: i64,
2602+}
2603+
25902604 #[derive(Debug, Clone, Serialize, Deserialize)]
25912605 pub struct Void {
25922606 pub void: i64,
Mscala3-upickledefault / TopLevel.scala+37 −27
@@ -464,13 +464,13 @@ case class Obj2 (
464464 val FormatException : FormatException,
465465 val friend : Friend,
466466 val from : From,
467+ val from_dict : FromDict,
467468 val from_json : FromJSON,
468469 val func : Func,
469470 val function : Function,
470471 val get : Get,
471472 val global : Global,
472473 val go : Go,
473- val goto : Goto,
474474 val `def` : Def,
475475 val `do` : Do,
476476 val `else` : Else,
@@ -684,6 +684,10 @@ case class From (
684684 val from : Long
685685 ) derives OptionPickler.ReadWriter
686686
687+case class FromDict (
688+ val from_dict : Long
689+) derives OptionPickler.ReadWriter
690+
687691 case class FromJSON (
688692 val from_json : Long
689693 ) derives OptionPickler.ReadWriter
@@ -708,10 +712,6 @@ case class Go (
708712 val go : Long
709713 ) derives OptionPickler.ReadWriter
710714
711-case class Goto (
712- val goto : Long
713-) derives OptionPickler.ReadWriter
714-
715715 case class Def (
716716 val `def` : Long
717717 ) derives OptionPickler.ReadWriter
@@ -758,6 +758,7 @@ case class FalseClass (
758758
759759 case class Obj3 (
760760 val dummy : Long,
761+ val goto : Goto,
761762 val guard : Guard,
762763 val hasOwnProperty : HasOwnProperty,
763764 @upickle.implicits.key("hashCode")
@@ -817,7 +818,6 @@ case class Obj3 (
817818 val newtonsoft : Newtonsoft,
818819 val nil : Nil,
819820 val NO : No,
820- val noexcept : Noexcept,
821821 val `if` : If,
822822 val `implicit` : Implicit,
823823 val `import` : Import,
@@ -825,6 +825,10 @@ case class Obj3 (
825825 val `new` : New
826826 ) derives OptionPickler.ReadWriter
827827
828+case class Goto (
829+ val goto : Long
830+) derives OptionPickler.ReadWriter
831+
828832 case class Guard (
829833 val guard : Long
830834 ) derives OptionPickler.ReadWriter
@@ -1058,10 +1062,6 @@ case class No (
10581062 val NO : Long
10591063 ) derives OptionPickler.ReadWriter
10601064
1061-case class Noexcept (
1062- val noexcept : Long
1063-) derives OptionPickler.ReadWriter
1064-
10651065 case class If (
10661066 val `if` : Long
10671067 ) derives OptionPickler.ReadWriter
@@ -1085,6 +1085,7 @@ case class New (
10851085 case class Obj4 (
10861086 val dummy : Long,
10871087 val noSuchMethod : NoSuchMethod,
1088+ val noexcept : Noexcept,
10881089 val nonatomic : Nonatomic,
10891090 val None : NoneClass,
10901091 val nonlocal : Nonlocal,
@@ -1146,14 +1147,17 @@ case class Obj4 (
11461147 val runtimeType : RuntimeType,
11471148 val s : S,
11481149 val sbyte : Sbyte,
1149- val SEL : Sel,
1150- val select : Select
1150+ val SEL : Sel
11511151 ) derives OptionPickler.ReadWriter
11521152
11531153 case class NoSuchMethod (
11541154 val noSuchMethod : Long
11551155 ) derives OptionPickler.ReadWriter
11561156
1157+case class Noexcept (
1158+ val noexcept : Long
1159+) derives OptionPickler.ReadWriter
1160+
11571161 case class Nonatomic (
11581162 val nonatomic : Long
11591163 ) derives OptionPickler.ReadWriter
@@ -1402,10 +1406,6 @@ case class Sel (
14021406 val SEL : Long
14031407 ) derives OptionPickler.ReadWriter
14041408
1405-case class Select (
1406- val select : Long
1407-) derives OptionPickler.ReadWriter
1408-
14091409 case class Obj5 (
14101410 val dummy : Long,
14111411 val self : SelfClass,
@@ -1416,9 +1416,9 @@ case class Obj5 (
14161416 val True : True,
14171417 val `try` : Try,
14181418 val Type : Type,
1419- val `var` : Var,
14201419 val `true` : TrueClass,
14211420 val `type` : TypeClass,
1421+ val select : Select,
14221422 val Self : Self,
14231423 val Sendable : Sendable,
14241424 val serialize : Serialize,
@@ -1450,6 +1450,7 @@ case class Obj5 (
14501450 val TimeOnly : TimeOnly,
14511451 val TimeOnlyConverter : TimeOnlyConverter,
14521452 val TimeZone : TimeZone,
1453+ val to_dict : ToDict,
14531454 val to_json : ToJSON,
14541455 @upickle.implicits.key("toString")
14551456 val toStringValue : ToString,
@@ -1472,8 +1473,7 @@ case class Obj5 (
14721473 val using : Using,
14731474 val Utf8JsonReader : Utf8JSONReader,
14741475 val Utf8JsonWriter : Utf8JSONWriter,
1475- val UUID : UUID,
1476- val virtual : Virtual
1476+ val UUID : UUID
14771477 ) derives OptionPickler.ReadWriter
14781478
14791479 case class SelfClass (
@@ -1508,10 +1508,6 @@ case class Type (
15081508 val Type : Long
15091509 ) derives OptionPickler.ReadWriter
15101510
1511-case class Var (
1512- val `var` : Long
1513-) derives OptionPickler.ReadWriter
1514-
15151511 case class TrueClass (
15161512 val `true` : Long
15171513 ) derives OptionPickler.ReadWriter
@@ -1520,6 +1516,10 @@ case class TypeClass (
15201516 val `type` : Long
15211517 ) derives OptionPickler.ReadWriter
15221518
1519+case class Select (
1520+ val select : Long
1521+) derives OptionPickler.ReadWriter
1522+
15231523 case class Self (
15241524 val Self : Long
15251525 ) derives OptionPickler.ReadWriter
@@ -1641,6 +1641,10 @@ case class TimeZone (
16411641 val TimeZone : Long
16421642 ) derives OptionPickler.ReadWriter
16431643
1644+case class ToDict (
1645+ val to_dict : Long
1646+) derives OptionPickler.ReadWriter
1647+
16441648 case class ToJSON (
16451649 val to_json : Long
16461650 ) derives OptionPickler.ReadWriter
@@ -1730,15 +1734,13 @@ case class UUID (
17301734 val UUID : Long
17311735 ) derives OptionPickler.ReadWriter
17321736
1733-case class Virtual (
1734- val virtual : Long
1735-) derives OptionPickler.ReadWriter
1736-
17371737 case class Obj6 (
17381738 val dummy : Long,
1739+ val `var` : Var,
17391740 val `while` : While,
17401741 val `with` : With,
17411742 val `yield` : Yield,
1743+ val virtual : Virtual,
17421744 val void : Void,
17431745 val volatile : Volatile,
17441746 val wchar_t : WcharT,
@@ -1750,6 +1752,10 @@ case class Obj6 (
17501752 val YES : Yes
17511753 ) derives OptionPickler.ReadWriter
17521754
1755+case class Var (
1756+ val `var` : Long
1757+) derives OptionPickler.ReadWriter
1758+
17531759 case class While (
17541760 val `while` : Long
17551761 ) derives OptionPickler.ReadWriter
@@ -1762,6 +1768,10 @@ case class Yield (
17621768 val `yield` : Long
17631769 ) derives OptionPickler.ReadWriter
17641770
1771+case class Virtual (
1772+ val virtual : Long
1773+) derives OptionPickler.ReadWriter
1774+
17651775 case class Void (
17661776 val void : Long
17671777 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+37 −27
@@ -417,13 +417,13 @@ case class Obj2 (
417417 val FormatException : FormatException,
418418 val friend : Friend,
419419 val from : From,
420+ val from_dict : FromDict,
420421 val from_json : FromJSON,
421422 val func : Func,
422423 val function : Function,
423424 val get : Get,
424425 val global : Global,
425426 val go : Go,
426- val goto : Goto,
427427 val `def` : Def,
428428 val `do` : Do,
429429 val `else` : Else,
@@ -635,6 +635,10 @@ case class From (
635635 val from : Long
636636 ) derives Encoder.AsObject, Decoder
637637
638+case class FromDict (
639+ val from_dict : Long
640+) derives Encoder.AsObject, Decoder
641+
638642 case class FromJSON (
639643 val from_json : Long
640644 ) derives Encoder.AsObject, Decoder
@@ -659,10 +663,6 @@ case class Go (
659663 val go : Long
660664 ) derives Encoder.AsObject, Decoder
661665
662-case class Goto (
663- val goto : Long
664-) derives Encoder.AsObject, Decoder
665-
666666 case class Def (
667667 val `def` : Long
668668 ) derives Encoder.AsObject, Decoder
@@ -709,6 +709,7 @@ case class FalseClass (
709709
710710 case class Obj3 (
711711 val dummy : Long,
712+ val goto : Goto,
712713 val guard : Guard,
713714 val hasOwnProperty : HasOwnProperty,
714715 val hashCodeValue : HashCode,
@@ -767,7 +768,6 @@ case class Obj3 (
767768 val newtonsoft : Newtonsoft,
768769 val nil : Nil,
769770 val NO : No,
770- val noexcept : Noexcept,
771771 val `if` : If,
772772 val `implicit` : Implicit,
773773 val `import` : Import,
@@ -784,6 +784,10 @@ object Obj3:
784784 )
785785 given io.circe.Codec.AsObject[Obj3] = io.circe.derivation.ConfiguredCodec.derived
786786
787+case class Goto (
788+ val goto : Long
789+) derives Encoder.AsObject, Decoder
790+
787791 case class Guard (
788792 val guard : Long
789793 ) derives Encoder.AsObject, Decoder
@@ -1025,10 +1029,6 @@ case class No (
10251029 val NO : Long
10261030 ) derives Encoder.AsObject, Decoder
10271031
1028-case class Noexcept (
1029- val noexcept : Long
1030-) derives Encoder.AsObject, Decoder
1031-
10321032 case class If (
10331033 val `if` : Long
10341034 ) derives Encoder.AsObject, Decoder
@@ -1052,6 +1052,7 @@ case class New (
10521052 case class Obj4 (
10531053 val dummy : Long,
10541054 val noSuchMethod : NoSuchMethod,
1055+ val noexcept : Noexcept,
10551056 val nonatomic : Nonatomic,
10561057 val None : NoneClass,
10571058 val nonlocal : Nonlocal,
@@ -1113,14 +1114,17 @@ case class Obj4 (
11131114 val runtimeType : RuntimeType,
11141115 val s : S,
11151116 val sbyte : Sbyte,
1116- val SEL : Sel,
1117- val select : Select
1117+ val SEL : Sel
11181118 ) derives Encoder.AsObject, Decoder
11191119
11201120 case class NoSuchMethod (
11211121 val noSuchMethod : Long
11221122 ) derives Encoder.AsObject, Decoder
11231123
1124+case class Noexcept (
1125+ val noexcept : Long
1126+) derives Encoder.AsObject, Decoder
1127+
11241128 case class Nonatomic (
11251129 val nonatomic : Long
11261130 ) derives Encoder.AsObject, Decoder
@@ -1369,10 +1373,6 @@ case class Sel (
13691373 val SEL : Long
13701374 ) derives Encoder.AsObject, Decoder
13711375
1372-case class Select (
1373- val select : Long
1374-) derives Encoder.AsObject, Decoder
1375-
13761376 case class Obj5 (
13771377 val dummy : Long,
13781378 val self : SelfClass,
@@ -1383,9 +1383,9 @@ case class Obj5 (
13831383 val True : True,
13841384 val `try` : Try,
13851385 val Type : Type,
1386- val `var` : Var,
13871386 val `true` : TrueClass,
13881387 val `type` : TypeClass,
1388+ val select : Select,
13891389 val Self : Self,
13901390 val Sendable : Sendable,
13911391 val serialize : Serialize,
@@ -1416,6 +1416,7 @@ case class Obj5 (
14161416 val TimeOnly : TimeOnly,
14171417 val TimeOnlyConverter : TimeOnlyConverter,
14181418 val TimeZone : TimeZone,
1419+ val to_dict : ToDict,
14191420 val to_json : ToJSON,
14201421 val toStringValue : ToString,
14211422 val top_level : TopLevelClass,
@@ -1437,8 +1438,7 @@ case class Obj5 (
14371438 val using : Using,
14381439 val Utf8JsonReader : Utf8JSONReader,
14391440 val Utf8JsonWriter : Utf8JSONWriter,
1440- val UUID : UUID,
1441- val virtual : Virtual
1441+ val UUID : UUID
14421442 )
14431443
14441444 object Obj5:
@@ -1483,10 +1483,6 @@ case class Type (
14831483 val Type : Long
14841484 ) derives Encoder.AsObject, Decoder
14851485
1486-case class Var (
1487- val `var` : Long
1488-) derives Encoder.AsObject, Decoder
1489-
14901486 case class TrueClass (
14911487 val `true` : Long
14921488 ) derives Encoder.AsObject, Decoder
@@ -1495,6 +1491,10 @@ case class TypeClass (
14951491 val `type` : Long
14961492 ) derives Encoder.AsObject, Decoder
14971493
1494+case class Select (
1495+ val select : Long
1496+) derives Encoder.AsObject, Decoder
1497+
14981498 case class Self (
14991499 val Self : Long
15001500 ) derives Encoder.AsObject, Decoder
@@ -1624,6 +1624,10 @@ case class TimeZone (
16241624 val TimeZone : Long
16251625 ) derives Encoder.AsObject, Decoder
16261626
1627+case class ToDict (
1628+ val to_dict : Long
1629+) derives Encoder.AsObject, Decoder
1630+
16271631 case class ToJSON (
16281632 val to_json : Long
16291633 ) derives Encoder.AsObject, Decoder
@@ -1721,15 +1725,13 @@ case class UUID (
17211725 val UUID : Long
17221726 ) derives Encoder.AsObject, Decoder
17231727
1724-case class Virtual (
1725- val virtual : Long
1726-) derives Encoder.AsObject, Decoder
1727-
17281728 case class Obj6 (
17291729 val dummy : Long,
1730+ val `var` : Var,
17301731 val `while` : While,
17311732 val `with` : With,
17321733 val `yield` : Yield,
1734+ val virtual : Virtual,
17331735 val void : Void,
17341736 val volatile : Volatile,
17351737 val wchar_t : WcharT,
@@ -1741,6 +1743,10 @@ case class Obj6 (
17411743 val YES : Yes
17421744 ) derives Encoder.AsObject, Decoder
17431745
1746+case class Var (
1747+ val `var` : Long
1748+) derives Encoder.AsObject, Decoder
1749+
17441750 case class While (
17451751 val `while` : Long
17461752 ) derives Encoder.AsObject, Decoder
@@ -1753,6 +1759,10 @@ case class Yield (
17531759 val `yield` : Long
17541760 ) derives Encoder.AsObject, Decoder
17551761
1762+case class Virtual (
1763+ val virtual : Long
1764+) derives Encoder.AsObject, Decoder
1765+
17561766 case class Void (
17571767 val void : Long
17581768 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+329 −233
@@ -3234,11 +3234,11 @@ struct Obj2: Codable {
32343234 let formatException: FormatException
32353235 let friend: Friend
32363236 let from: From
3237+ let fromDict: FromDict
32373238 let fromJSON: FromJSON
32383239 let function: Function
32393240 let global: Global
32403241 let go: Go
3241- let goto: Goto
32423242 let obj2Default: Default
32433243 let obj2Defer: Defer
32443244 let obj2Deinit: Deinit
@@ -3301,11 +3301,11 @@ struct Obj2: Codable {
33013301 case formatException = "FormatException"
33023302 case friend = "friend"
33033303 case from = "from"
3304+ case fromDict = "from_dict"
33043305 case fromJSON = "from_json"
33053306 case function = "function"
33063307 case global = "global"
33073308 case go = "go"
3308- case goto = "goto"
33093309 case obj2Default = "default"
33103310 case obj2Defer = "defer"
33113311 case obj2Deinit = "deinit"
@@ -3388,11 +3388,11 @@ extension Obj2 {
33883388 formatException: FormatException? = nil,
33893389 friend: Friend? = nil,
33903390 from: From? = nil,
3391+ fromDict: FromDict? = nil,
33913392 fromJSON: FromJSON? = nil,
33923393 function: Function? = nil,
33933394 global: Global? = nil,
33943395 go: Go? = nil,
3395- goto: Goto? = nil,
33963396 obj2Default: Default? = nil,
33973397 obj2Defer: Defer? = nil,
33983398 obj2Deinit: Deinit? = nil,
@@ -3455,11 +3455,11 @@ extension Obj2 {
34553455 formatException: formatException ?? self.formatException,
34563456 friend: friend ?? self.friend,
34573457 from: from ?? self.from,
3458+ fromDict: fromDict ?? self.fromDict,
34583459 fromJSON: fromJSON ?? self.fromJSON,
34593460 function: function ?? self.function,
34603461 global: global ?? self.global,
34613462 go: go ?? self.go,
3462- goto: goto ?? self.goto,
34633463 obj2Default: obj2Default ?? self.obj2Default,
34643464 obj2Defer: obj2Defer ?? self.obj2Defer,
34653465 obj2Deinit: obj2Deinit ?? self.obj2Deinit,
@@ -5342,6 +5342,50 @@ extension From {
53425342 }
53435343 }
53445344
5345+// MARK: - FromDict
5346+struct FromDict: Codable {
5347+ let fromDict: Int
5348+
5349+ enum CodingKeys: String, CodingKey {
5350+ case fromDict = "from_dict"
5351+ }
5352+}
5353+
5354+// MARK: FromDict convenience initializers and mutators
5355+
5356+extension FromDict {
5357+ init(data: Data) throws {
5358+ self = try newJSONDecoder().decode(FromDict.self, from: data)
5359+ }
5360+
5361+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
5362+ guard let data = json.data(using: encoding) else {
5363+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
5364+ }
5365+ try self.init(data: data)
5366+ }
5367+
5368+ init(fromURL url: URL) throws {
5369+ try self.init(data: try Data(contentsOf: url))
5370+ }
5371+
5372+ func with(
5373+ fromDict: Int? = nil
5374+ ) -> FromDict {
5375+ return FromDict(
5376+ fromDict: fromDict ?? self.fromDict
5377+ )
5378+ }
5379+
5380+ func jsonData() throws -> Data {
5381+ return try newJSONEncoder().encode(self)
5382+ }
5383+
5384+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
5385+ return String(data: try self.jsonData(), encoding: encoding)
5386+ }
5387+}
5388+
53455389 // MARK: - FromJSON
53465390 struct FromJSON: Codable {
53475391 let fromJSON: Int
@@ -5518,50 +5562,6 @@ extension Go {
55185562 }
55195563 }
55205564
5521-// MARK: - Goto
5522-struct Goto: Codable {
5523- let goto: Int
5524-
5525- enum CodingKeys: String, CodingKey {
5526- case goto = "goto"
5527- }
5528-}
5529-
5530-// MARK: Goto convenience initializers and mutators
5531-
5532-extension Goto {
5533- init(data: Data) throws {
5534- self = try newJSONDecoder().decode(Goto.self, from: data)
5535- }
5536-
5537- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
5538- guard let data = json.data(using: encoding) else {
5539- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
5540- }
5541- try self.init(data: data)
5542- }
5543-
5544- init(fromURL url: URL) throws {
5545- try self.init(data: try Data(contentsOf: url))
5546- }
5547-
5548- func with(
5549- goto: Int? = nil
5550- ) -> Goto {
5551- return Goto(
5552- goto: goto ?? self.goto
5553- )
5554- }
5555-
5556- func jsonData() throws -> Data {
5557- return try newJSONEncoder().encode(self)
5558- }
5559-
5560- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
5561- return String(data: try self.jsonData(), encoding: encoding)
5562- }
5563-}
5564-
55655565 // MARK: - Default
55665566 struct Default: Codable {
55675567 let defaultDefault: Int
@@ -6313,6 +6313,7 @@ extension FalseClass {
63136313 // MARK: - Obj3
63146314 struct Obj3: Codable {
63156315 let dummy: Int
6316+ let goto: Goto
63166317 let hasOwnProperty: HasOwnProperty
63176318 let hashCode: HashCode
63186319 let hashable: HashableClass
@@ -6360,7 +6361,6 @@ struct Obj3: Codable {
63606361 let new: New
63616362 let newtonsoft: Newtonsoft
63626363 let no: No
6363- let noexcept: Noexcept
63646364 let obj3Guard: Guard
63656365 let obj3If: If
63666366 let obj3Import: Import
@@ -6380,6 +6380,7 @@ struct Obj3: Codable {
63806380
63816381 enum CodingKeys: String, CodingKey {
63826382 case dummy = "dummy"
6383+ case goto = "goto"
63836384 case hasOwnProperty = "hasOwnProperty"
63846385 case hashCode = "hashCode"
63856386 case hashable = "Hashable"
@@ -6427,7 +6428,6 @@ struct Obj3: Codable {
64276428 case new = "new"
64286429 case newtonsoft = "newtonsoft"
64296430 case no = "NO"
6430- case noexcept = "noexcept"
64316431 case obj3Guard = "guard"
64326432 case obj3If = "if"
64336433 case obj3Import = "import"
@@ -6467,6 +6467,7 @@ extension Obj3 {
64676467
64686468 func with(
64696469 dummy: Int? = nil,
6470+ goto: Goto? = nil,
64706471 hasOwnProperty: HasOwnProperty? = nil,
64716472 hashCode: HashCode? = nil,
64726473 hashable: HashableClass? = nil,
@@ -6514,7 +6515,6 @@ extension Obj3 {
65146515 new: New? = nil,
65156516 newtonsoft: Newtonsoft? = nil,
65166517 no: No? = nil,
6517- noexcept: Noexcept? = nil,
65186518 obj3Guard: Guard? = nil,
65196519 obj3If: If? = nil,
65206520 obj3Import: Import? = nil,
@@ -6534,6 +6534,7 @@ extension Obj3 {
65346534 ) -> Obj3 {
65356535 return Obj3(
65366536 dummy: dummy ?? self.dummy,
6537+ goto: goto ?? self.goto,
65376538 hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty,
65386539 hashCode: hashCode ?? self.hashCode,
65396540 hashable: hashable ?? self.hashable,
@@ -6581,7 +6582,6 @@ extension Obj3 {
65816582 new: new ?? self.new,
65826583 newtonsoft: newtonsoft ?? self.newtonsoft,
65836584 no: no ?? self.no,
6584- noexcept: noexcept ?? self.noexcept,
65856585 obj3Guard: obj3Guard ?? self.obj3Guard,
65866586 obj3If: obj3If ?? self.obj3If,
65876587 obj3Import: obj3Import ?? self.obj3Import,
@@ -6610,6 +6610,50 @@ extension Obj3 {
66106610 }
66116611 }
66126612
6613+// MARK: - Goto
6614+struct Goto: Codable {
6615+ let goto: Int
6616+
6617+ enum CodingKeys: String, CodingKey {
6618+ case goto = "goto"
6619+ }
6620+}
6621+
6622+// MARK: Goto convenience initializers and mutators
6623+
6624+extension Goto {
6625+ init(data: Data) throws {
6626+ self = try newJSONDecoder().decode(Goto.self, from: data)
6627+ }
6628+
6629+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6630+ guard let data = json.data(using: encoding) else {
6631+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6632+ }
6633+ try self.init(data: data)
6634+ }
6635+
6636+ init(fromURL url: URL) throws {
6637+ try self.init(data: try Data(contentsOf: url))
6638+ }
6639+
6640+ func with(
6641+ goto: Int? = nil
6642+ ) -> Goto {
6643+ return Goto(
6644+ goto: goto ?? self.goto
6645+ )
6646+ }
6647+
6648+ func jsonData() throws -> Data {
6649+ return try newJSONEncoder().encode(self)
6650+ }
6651+
6652+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6653+ return String(data: try self.jsonData(), encoding: encoding)
6654+ }
6655+}
6656+
66136657 // MARK: - HasOwnProperty
66146658 struct HasOwnProperty: Codable {
66156659 let hasOwnProperty: Int
@@ -8678,50 +8722,6 @@ extension No {
86788722 }
86798723 }
86808724
8681-// MARK: - Noexcept
8682-struct Noexcept: Codable {
8683- let noexcept: Int
8684-
8685- enum CodingKeys: String, CodingKey {
8686- case noexcept = "noexcept"
8687- }
8688-}
8689-
8690-// MARK: Noexcept convenience initializers and mutators
8691-
8692-extension Noexcept {
8693- init(data: Data) throws {
8694- self = try newJSONDecoder().decode(Noexcept.self, from: data)
8695- }
8696-
8697- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8698- guard let data = json.data(using: encoding) else {
8699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8700- }
8701- try self.init(data: data)
8702- }
8703-
8704- init(fromURL url: URL) throws {
8705- try self.init(data: try Data(contentsOf: url))
8706- }
8707-
8708- func with(
8709- noexcept: Int? = nil
8710- ) -> Noexcept {
8711- return Noexcept(
8712- noexcept: noexcept ?? self.noexcept
8713- )
8714- }
8715-
8716- func jsonData() throws -> Data {
8717- return try newJSONEncoder().encode(self)
8718- }
8719-
8720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8721- return String(data: try self.jsonData(), encoding: encoding)
8722- }
8723-}
8724-
87258725 // MARK: - Guard
87268726 struct Guard: Codable {
87278727 let guardGuard: Int
@@ -9430,6 +9430,7 @@ extension Nil {
94309430 struct Obj4: Codable {
94319431 let dummy: Int
94329432 let noSuchMethod: NoSuchMethod
9433+ let noexcept: Noexcept
94339434 let nonatomic: Nonatomic
94349435 let none: None
94359436 let nonlocal: Nonlocal
@@ -9492,11 +9493,11 @@ struct Obj4: Codable {
94929493 let sbyte: Sbyte
94939494 let sealed: Sealed
94949495 let sel: Sel
9495- let select: Select
94969496
94979497 enum CodingKeys: String, CodingKey {
94989498 case dummy = "dummy"
94999499 case noSuchMethod = "noSuchMethod"
9500+ case noexcept = "noexcept"
95009501 case nonatomic = "nonatomic"
95019502 case none = "None"
95029503 case nonlocal = "nonlocal"
@@ -9559,7 +9560,6 @@ struct Obj4: Codable {
95599560 case sbyte = "sbyte"
95609561 case sealed = "sealed"
95619562 case sel = "SEL"
9562- case select = "select"
95639563 }
95649564 }
95659565
@@ -9584,6 +9584,7 @@ extension Obj4 {
95849584 func with(
95859585 dummy: Int? = nil,
95869586 noSuchMethod: NoSuchMethod? = nil,
9587+ noexcept: Noexcept? = nil,
95879588 nonatomic: Nonatomic? = nil,
95889589 none: None? = nil,
95899590 nonlocal: Nonlocal? = nil,
@@ -9645,12 +9646,12 @@ extension Obj4 {
96459646 s: S? = nil,
96469647 sbyte: Sbyte? = nil,
96479648 sealed: Sealed? = nil,
9648- sel: Sel? = nil,
9649- select: Select? = nil
9649+ sel: Sel? = nil
96509650 ) -> Obj4 {
96519651 return Obj4(
96529652 dummy: dummy ?? self.dummy,
96539653 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
9654+ noexcept: noexcept ?? self.noexcept,
96549655 nonatomic: nonatomic ?? self.nonatomic,
96559656 none: none ?? self.none,
96569657 nonlocal: nonlocal ?? self.nonlocal,
@@ -9712,8 +9713,7 @@ extension Obj4 {
97129713 s: s ?? self.s,
97139714 sbyte: sbyte ?? self.sbyte,
97149715 sealed: sealed ?? self.sealed,
9715- sel: sel ?? self.sel,
9716- select: select ?? self.select
9716+ sel: sel ?? self.sel
97179717 )
97189718 }
97199719
@@ -9770,6 +9770,50 @@ extension NoSuchMethod {
97709770 }
97719771 }
97729772
9773+// MARK: - Noexcept
9774+struct Noexcept: Codable {
9775+ let noexcept: Int
9776+
9777+ enum CodingKeys: String, CodingKey {
9778+ case noexcept = "noexcept"
9779+ }
9780+}
9781+
9782+// MARK: Noexcept convenience initializers and mutators
9783+
9784+extension Noexcept {
9785+ init(data: Data) throws {
9786+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
9787+ }
9788+
9789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9790+ guard let data = json.data(using: encoding) else {
9791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9792+ }
9793+ try self.init(data: data)
9794+ }
9795+
9796+ init(fromURL url: URL) throws {
9797+ try self.init(data: try Data(contentsOf: url))
9798+ }
9799+
9800+ func with(
9801+ noexcept: Int? = nil
9802+ ) -> Noexcept {
9803+ return Noexcept(
9804+ noexcept: noexcept ?? self.noexcept
9805+ )
9806+ }
9807+
9808+ func jsonData() throws -> Data {
9809+ return try newJSONEncoder().encode(self)
9810+ }
9811+
9812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9813+ return String(data: try self.jsonData(), encoding: encoding)
9814+ }
9815+}
9816+
97739817 // MARK: - Nonatomic
97749818 struct Nonatomic: Codable {
97759819 let nonatomic: Int
@@ -12498,50 +12542,6 @@ extension Sel {
1249812542 }
1249912543 }
1250012544
12501-// MARK: - Select
12502-struct Select: Codable {
12503- let select: Int
12504-
12505- enum CodingKeys: String, CodingKey {
12506- case select = "select"
12507- }
12508-}
12509-
12510-// MARK: Select convenience initializers and mutators
12511-
12512-extension Select {
12513- init(data: Data) throws {
12514- self = try newJSONDecoder().decode(Select.self, from: data)
12515- }
12516-
12517- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12518- guard let data = json.data(using: encoding) else {
12519- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12520- }
12521- try self.init(data: data)
12522- }
12523-
12524- init(fromURL url: URL) throws {
12525- try self.init(data: try Data(contentsOf: url))
12526- }
12527-
12528- func with(
12529- select: Int? = nil
12530- ) -> Select {
12531- return Select(
12532- select: select ?? self.select
12533- )
12534- }
12535-
12536- func jsonData() throws -> Data {
12537- return try newJSONEncoder().encode(self)
12538- }
12539-
12540- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12541- return String(data: try self.jsonData(), encoding: encoding)
12542- }
12543-}
12544-
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable {
1254712547 let dummy: Int
@@ -12559,9 +12559,9 @@ struct Obj5: Codable {
1255912559 let obj5Type: Obj5Type
1256012560 let obj5Typealias: Typealias
1256112561 let obj5Unowned: Unowned
12562- let obj5Var: Var
1256312562 let purpleSelf: Obj5Self
1256412563 let purpleTrue: TrueClass
12564+ let select: Select
1256512565 let sendable: Sendable
1256612566 let serialize: Serialize
1256712567 let serializerProvider: SerializerProvider
@@ -12587,6 +12587,7 @@ struct Obj5: Codable {
1258712587 let timeOnly: TimeOnly
1258812588 let timeOnlyConverter: TimeOnlyConverter
1258912589 let timeZone: TimeZoneClass
12590+ let toDict: ToDict
1259012591 let toJSON: ToJSON
1259112592 let toString: ToString
1259212593 let topLevel: TopLevelClass
@@ -12608,7 +12609,6 @@ struct Obj5: Codable {
1260812609 let utf8JSONReader: Utf8JSONReader
1260912610 let utf8JSONWriter: Utf8JSONWriter
1261012611 let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12626,9 +12626,9 @@ struct Obj5: Codable {
1262612626 case obj5Type = "type"
1262712627 case obj5Typealias = "typealias"
1262812628 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
1263012629 case purpleSelf = "self"
1263112630 case purpleTrue = "true"
12631+ case select = "select"
1263212632 case sendable = "Sendable"
1263312633 case serialize = "serialize"
1263412634 case serializerProvider = "SerializerProvider"
@@ -12654,6 +12654,7 @@ struct Obj5: Codable {
1265412654 case timeOnly = "TimeOnly"
1265512655 case timeOnlyConverter = "TimeOnlyConverter"
1265612656 case timeZone = "TimeZone"
12657+ case toDict = "to_dict"
1265712658 case toJSON = "to_json"
1265812659 case toString = "toString"
1265912660 case topLevel = "top_level"
@@ -12675,7 +12676,6 @@ struct Obj5: Codable {
1267512676 case utf8JSONReader = "Utf8JsonReader"
1267612677 case utf8JSONWriter = "Utf8JsonWriter"
1267712678 case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12713,9 +12713,9 @@ extension Obj5 {
1271312713 obj5Type: Obj5Type? = nil,
1271412714 obj5Typealias: Typealias? = nil,
1271512715 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
1271712716 purpleSelf: Obj5Self? = nil,
1271812717 purpleTrue: TrueClass? = nil,
12718+ select: Select? = nil,
1271912719 sendable: Sendable? = nil,
1272012720 serialize: Serialize? = nil,
1272112721 serializerProvider: SerializerProvider? = nil,
@@ -12741,6 +12741,7 @@ extension Obj5 {
1274112741 timeOnly: TimeOnly? = nil,
1274212742 timeOnlyConverter: TimeOnlyConverter? = nil,
1274312743 timeZone: TimeZoneClass? = nil,
12744+ toDict: ToDict? = nil,
1274412745 toJSON: ToJSON? = nil,
1274512746 toString: ToString? = nil,
1274612747 topLevel: TopLevelClass? = nil,
@@ -12761,8 +12762,7 @@ extension Obj5 {
1276112762 using: Using? = nil,
1276212763 utf8JSONReader: Utf8JSONReader? = nil,
1276312764 utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12765+ uuid: UUIDClass? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12780,9 +12780,9 @@ extension Obj5 {
1278012780 obj5Type: obj5Type ?? self.obj5Type,
1278112781 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212782 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
1278412783 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512784 purpleTrue: purpleTrue ?? self.purpleTrue,
12785+ select: select ?? self.select,
1278612786 sendable: sendable ?? self.sendable,
1278712787 serialize: serialize ?? self.serialize,
1278812788 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -12808,6 +12808,7 @@ extension Obj5 {
1280812808 timeOnly: timeOnly ?? self.timeOnly,
1280912809 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1281012810 timeZone: timeZone ?? self.timeZone,
12811+ toDict: toDict ?? self.toDict,
1281112812 toJSON: toJSON ?? self.toJSON,
1281212813 toString: toString ?? self.toString,
1281312814 topLevel: topLevel ?? self.topLevel,
@@ -12828,8 +12829,7 @@ extension Obj5 {
1282812829 using: using ?? self.using,
1282912830 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1283012831 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12832+ uuid: uuid ?? self.uuid
1283312833 )
1283412834 }
1283512835
@@ -13458,20 +13458,20 @@ extension Unowned {
1345813458 }
1345913459 }
1346013460
13461-// MARK: - Var
13462-struct Var: Codable {
13463- let varVar: Int
13461+// MARK: - Obj5Self
13462+struct Obj5Self: Codable {
13463+ let selfSelf: Int
1346413464
1346513465 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13466+ case selfSelf = "self"
1346713467 }
1346813468 }
1346913469
13470-// MARK: Var convenience initializers and mutators
13470+// MARK: Obj5Self convenience initializers and mutators
1347113471
13472-extension Var {
13472+extension Obj5Self {
1347313473 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13474+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1347513475 }
1347613476
1347713477 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13486,10 @@ extension Var {
1348613486 }
1348713487
1348813488 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13489+ selfSelf: Int? = nil
13490+ ) -> Obj5Self {
13491+ return Obj5Self(
13492+ selfSelf: selfSelf ?? self.selfSelf
1349313493 )
1349413494 }
1349513495
@@ -13502,20 +13502,20 @@ extension Var {
1350213502 }
1350313503 }
1350413504
13505-// MARK: - Obj5Self
13506-struct Obj5Self: Codable {
13507- let selfSelf: Int
13505+// MARK: - TrueClass
13506+struct TrueClass: Codable {
13507+ let trueTrue: Int
1350813508
1350913509 enum CodingKeys: String, CodingKey {
13510- case selfSelf = "self"
13510+ case trueTrue = "true"
1351113511 }
1351213512 }
1351313513
13514-// MARK: Obj5Self convenience initializers and mutators
13514+// MARK: TrueClass convenience initializers and mutators
1351513515
13516-extension Obj5Self {
13516+extension TrueClass {
1351713517 init(data: Data) throws {
13518- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13518+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1351913519 }
1352013520
1352113521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13530,10 +13530,10 @@ extension Obj5Self {
1353013530 }
1353113531
1353213532 func with(
13533- selfSelf: Int? = nil
13534- ) -> Obj5Self {
13535- return Obj5Self(
13536- selfSelf: selfSelf ?? self.selfSelf
13533+ trueTrue: Int? = nil
13534+ ) -> TrueClass {
13535+ return TrueClass(
13536+ trueTrue: trueTrue ?? self.trueTrue
1353713537 )
1353813538 }
1353913539
@@ -13546,20 +13546,20 @@ extension Obj5Self {
1354613546 }
1354713547 }
1354813548
13549-// MARK: - TrueClass
13550-struct TrueClass: Codable {
13551- let trueTrue: Int
13549+// MARK: - Select
13550+struct Select: Codable {
13551+ let select: Int
1355213552
1355313553 enum CodingKeys: String, CodingKey {
13554- case trueTrue = "true"
13554+ case select = "select"
1355513555 }
1355613556 }
1355713557
13558-// MARK: TrueClass convenience initializers and mutators
13558+// MARK: Select convenience initializers and mutators
1355913559
13560-extension TrueClass {
13560+extension Select {
1356113561 init(data: Data) throws {
13562- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13562+ self = try newJSONDecoder().decode(Select.self, from: data)
1356313563 }
1356413564
1356513565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13574,10 +13574,10 @@ extension TrueClass {
1357413574 }
1357513575
1357613576 func with(
13577- trueTrue: Int? = nil
13578- ) -> TrueClass {
13579- return TrueClass(
13580- trueTrue: trueTrue ?? self.trueTrue
13577+ select: Int? = nil
13578+ ) -> Select {
13579+ return Select(
13580+ select: select ?? self.select
1358113581 )
1358213582 }
1358313583
@@ -14690,6 +14690,50 @@ extension TimeZoneClass {
1469014690 }
1469114691 }
1469214692
14693+// MARK: - ToDict
14694+struct ToDict: Codable {
14695+ let toDict: Int
14696+
14697+ enum CodingKeys: String, CodingKey {
14698+ case toDict = "to_dict"
14699+ }
14700+}
14701+
14702+// MARK: ToDict convenience initializers and mutators
14703+
14704+extension ToDict {
14705+ init(data: Data) throws {
14706+ self = try newJSONDecoder().decode(ToDict.self, from: data)
14707+ }
14708+
14709+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14710+ guard let data = json.data(using: encoding) else {
14711+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14712+ }
14713+ try self.init(data: data)
14714+ }
14715+
14716+ init(fromURL url: URL) throws {
14717+ try self.init(data: try Data(contentsOf: url))
14718+ }
14719+
14720+ func with(
14721+ toDict: Int? = nil
14722+ ) -> ToDict {
14723+ return ToDict(
14724+ toDict: toDict ?? self.toDict
14725+ )
14726+ }
14727+
14728+ func jsonData() throws -> Data {
14729+ return try newJSONEncoder().encode(self)
14730+ }
14731+
14732+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14733+ return String(data: try self.jsonData(), encoding: encoding)
14734+ }
14735+}
14736+
1469314737 // MARK: - ToJSON
1469414738 struct ToJSON: Codable {
1469514739 let toJSON: Int
@@ -15614,57 +15658,15 @@ extension UUIDClass {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Virtual
15618-struct Virtual: Codable {
15619- let virtual: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15623- }
15624-}
15625-
15626-// MARK: Virtual convenience initializers and mutators
15627-
15628-extension Virtual {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.self, from: data)
15631- }
15632-
15633- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15634- guard let data = json.data(using: encoding) else {
15635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15636- }
15637- try self.init(data: data)
15638- }
15639-
15640- init(fromURL url: URL) throws {
15641- try self.init(data: try Data(contentsOf: url))
15642- }
15643-
15644- func with(
15645- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
15649- )
15650- }
15651-
15652- func jsonData() throws -> Data {
15653- return try newJSONEncoder().encode(self)
15654- }
15655-
15656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15657- return String(data: try self.jsonData(), encoding: encoding)
15658- }
15659-}
15660-
1566115661 // MARK: - Obj6
1566215662 struct Obj6: Codable {
1566315663 let dummy: Int
15664+ let obj6Var: Var
1566415665 let obj6Weak: Weak
1566515666 let obj6Where: Where
1566615667 let obj6While: While
1566715668 let obj6WillSet: WillSet
15669+ let virtual: Virtual
1566815670 let void: Void
1566915671 let volatile: Volatile
1567015672 let wcharT: WcharT
@@ -15676,10 +15678,12 @@ struct Obj6: Codable {
1567615678
1567715679 enum CodingKeys: String, CodingKey {
1567815680 case dummy = "dummy"
15681+ case obj6Var = "var"
1567915682 case obj6Weak = "weak"
1568015683 case obj6Where = "where"
1568115684 case obj6While = "while"
1568215685 case obj6WillSet = "willSet"
15686+ case virtual = "virtual"
1568315687 case void = "void"
1568415688 case volatile = "volatile"
1568515689 case wcharT = "wchar_t"
@@ -15711,10 +15715,12 @@ extension Obj6 {
1571115715
1571215716 func with(
1571315717 dummy: Int? = nil,
15718+ obj6Var: Var? = nil,
1571415719 obj6Weak: Weak? = nil,
1571515720 obj6Where: Where? = nil,
1571615721 obj6While: While? = nil,
1571715722 obj6WillSet: WillSet? = nil,
15723+ virtual: Virtual? = nil,
1571815724 void: Void? = nil,
1571915725 volatile: Volatile? = nil,
1572015726 wcharT: WcharT? = nil,
@@ -15726,10 +15732,12 @@ extension Obj6 {
1572615732 ) -> Obj6 {
1572715733 return Obj6(
1572815734 dummy: dummy ?? self.dummy,
15735+ obj6Var: obj6Var ?? self.obj6Var,
1572915736 obj6Weak: obj6Weak ?? self.obj6Weak,
1573015737 obj6Where: obj6Where ?? self.obj6Where,
1573115738 obj6While: obj6While ?? self.obj6While,
1573215739 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15740+ virtual: virtual ?? self.virtual,
1573315741 void: void ?? self.void,
1573415742 volatile: volatile ?? self.volatile,
1573515743 wcharT: wcharT ?? self.wcharT,
@@ -15750,6 +15758,50 @@ extension Obj6 {
1575015758 }
1575115759 }
1575215760
15761+// MARK: - Var
15762+struct Var: Codable {
15763+ let varVar: Int
15764+
15765+ enum CodingKeys: String, CodingKey {
15766+ case varVar = "var"
15767+ }
15768+}
15769+
15770+// MARK: Var convenience initializers and mutators
15771+
15772+extension Var {
15773+ init(data: Data) throws {
15774+ self = try newJSONDecoder().decode(Var.self, from: data)
15775+ }
15776+
15777+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15778+ guard let data = json.data(using: encoding) else {
15779+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15780+ }
15781+ try self.init(data: data)
15782+ }
15783+
15784+ init(fromURL url: URL) throws {
15785+ try self.init(data: try Data(contentsOf: url))
15786+ }
15787+
15788+ func with(
15789+ varVar: Int? = nil
15790+ ) -> Var {
15791+ return Var(
15792+ varVar: varVar ?? self.varVar
15793+ )
15794+ }
15795+
15796+ func jsonData() throws -> Data {
15797+ return try newJSONEncoder().encode(self)
15798+ }
15799+
15800+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15801+ return String(data: try self.jsonData(), encoding: encoding)
15802+ }
15803+}
15804+
1575315805 // MARK: - Weak
1575415806 struct Weak: Codable {
1575515807 let weakWeak: Int
@@ -15926,6 +15978,50 @@ extension WillSet {
1592615978 }
1592715979 }
1592815980
15981+// MARK: - Virtual
15982+struct Virtual: Codable {
15983+ let virtual: Int
15984+
15985+ enum CodingKeys: String, CodingKey {
15986+ case virtual = "virtual"
15987+ }
15988+}
15989+
15990+// MARK: Virtual convenience initializers and mutators
15991+
15992+extension Virtual {
15993+ init(data: Data) throws {
15994+ self = try newJSONDecoder().decode(Virtual.self, from: data)
15995+ }
15996+
15997+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15998+ guard let data = json.data(using: encoding) else {
15999+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16000+ }
16001+ try self.init(data: data)
16002+ }
16003+
16004+ init(fromURL url: URL) throws {
16005+ try self.init(data: try Data(contentsOf: url))
16006+ }
16007+
16008+ func with(
16009+ virtual: Int? = nil
16010+ ) -> Virtual {
16011+ return Virtual(
16012+ virtual: virtual ?? self.virtual
16013+ )
16014+ }
16015+
16016+ func jsonData() throws -> Data {
16017+ return try newJSONEncoder().encode(self)
16018+ }
16019+
16020+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16021+ return String(data: try self.jsonData(), encoding: encoding)
16022+ }
16023+}
16024+
1592916025 // MARK: - Void
1593016026 struct Void: Codable {
1593116027 let void: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+385 −277
@@ -3634,11 +3634,11 @@ extension ClassClass {
36343634 let formatException: FormatException
36353635 let friend: Friend
36363636 let from: From
3637+ let fromDict: FromDict
36373638 let fromJSON: FromJSON
36383639 let function: Function
36393640 let global: Global
36403641 let go: Go
3641- let goto: Goto
36423642 let obj2Default: Default
36433643 let obj2Defer: Defer
36443644 let obj2Deinit: Deinit
@@ -3701,11 +3701,11 @@ extension ClassClass {
37013701 case formatException = "FormatException"
37023702 case friend = "friend"
37033703 case from = "from"
3704+ case fromDict = "from_dict"
37043705 case fromJSON = "from_json"
37053706 case function = "function"
37063707 case global = "global"
37073708 case go = "go"
3708- case goto = "goto"
37093709 case obj2Default = "default"
37103710 case obj2Defer = "defer"
37113711 case obj2Deinit = "deinit"
@@ -3725,7 +3725,7 @@ extension ClassClass {
37253725 case purpleFalse = "false"
37263726 }
37273727
3728- init(dateFormatter: DateFormatterClass, dateOnly: DateOnly, dateOnlyConverter: DateOnlyConverter, dateParseHandling: DateParseHandling, dateTime: DateTime, dateTimeStyles: DateTimeStyles, debugger: Debugger, decimal: Decimal, declare: Declare, decltype: Decltype, decodeString: DecodeString, decoder: DecoderClass, decodingError: DecodingErrorClass, def: Def, del: Del, delegate: Delegate, delete: Delete, dict: Dict, dictionary: Dictionary, double: DoubleClass, dummy: Int, dynamicCast: DynamicCast, elif: Elif, encodeQuickType: EncodeQuickType, encoder: EncoderClass, enumValues: EnumValues, equalityContract: EqualityContract, equatable: Equatable, event: Event, except: Except, exception: Exception, explicit: Explicit, export: Export, exposing: Exposing, extends: Extends, extern: Extern, finally: Finally, fixed: Fixed, float: Float, foreach: Foreach, formatException: FormatException, friend: Friend, from: From, fromJSON: FromJSON, function: Function, global: Global, go: Go, goto: Goto, obj2Default: Default, obj2Defer: Defer, obj2Deinit: Deinit, obj2DidSet: DidSet, obj2Do: Do, obj2Dynamic: Dynamic, obj2Else: Else, obj2Enum: Enum, obj2Extension: Extension, obj2Fallthrough: Fallthrough, obj2False: False, obj2Fileprivate: Fileprivate, obj2Final: Final, obj2For: For, obj2Func: Func, obj2Get: Get, purpleFalse: FalseClass) {
3728+ init(dateFormatter: DateFormatterClass, dateOnly: DateOnly, dateOnlyConverter: DateOnlyConverter, dateParseHandling: DateParseHandling, dateTime: DateTime, dateTimeStyles: DateTimeStyles, debugger: Debugger, decimal: Decimal, declare: Declare, decltype: Decltype, decodeString: DecodeString, decoder: DecoderClass, decodingError: DecodingErrorClass, def: Def, del: Del, delegate: Delegate, delete: Delete, dict: Dict, dictionary: Dictionary, double: DoubleClass, dummy: Int, dynamicCast: DynamicCast, elif: Elif, encodeQuickType: EncodeQuickType, encoder: EncoderClass, enumValues: EnumValues, equalityContract: EqualityContract, equatable: Equatable, event: Event, except: Except, exception: Exception, explicit: Explicit, export: Export, exposing: Exposing, extends: Extends, extern: Extern, finally: Finally, fixed: Fixed, float: Float, foreach: Foreach, formatException: FormatException, friend: Friend, from: From, fromDict: FromDict, fromJSON: FromJSON, function: Function, global: Global, go: Go, obj2Default: Default, obj2Defer: Defer, obj2Deinit: Deinit, obj2DidSet: DidSet, obj2Do: Do, obj2Dynamic: Dynamic, obj2Else: Else, obj2Enum: Enum, obj2Extension: Extension, obj2Fallthrough: Fallthrough, obj2False: False, obj2Fileprivate: Fileprivate, obj2Final: Final, obj2For: For, obj2Func: Func, obj2Get: Get, purpleFalse: FalseClass) {
37293729 self.dateFormatter = dateFormatter
37303730 self.dateOnly = dateOnly
37313731 self.dateOnlyConverter = dateOnlyConverter
@@ -3769,11 +3769,11 @@ extension ClassClass {
37693769 self.formatException = formatException
37703770 self.friend = friend
37713771 self.from = from
3772+ self.fromDict = fromDict
37723773 self.fromJSON = fromJSON
37733774 self.function = function
37743775 self.global = global
37753776 self.go = go
3776- self.goto = goto
37773777 self.obj2Default = obj2Default
37783778 self.obj2Defer = obj2Defer
37793779 self.obj2Deinit = obj2Deinit
@@ -3799,7 +3799,7 @@ extension ClassClass {
37993799 extension Obj2 {
38003800 convenience init(data: Data) throws {
38013801 let me = try newJSONDecoder().decode(Obj2.self, from: data)
3802- self.init(dateFormatter: me.dateFormatter, dateOnly: me.dateOnly, dateOnlyConverter: me.dateOnlyConverter, dateParseHandling: me.dateParseHandling, dateTime: me.dateTime, dateTimeStyles: me.dateTimeStyles, debugger: me.debugger, decimal: me.decimal, declare: me.declare, decltype: me.decltype, decodeString: me.decodeString, decoder: me.decoder, decodingError: me.decodingError, def: me.def, del: me.del, delegate: me.delegate, delete: me.delete, dict: me.dict, dictionary: me.dictionary, double: me.double, dummy: me.dummy, dynamicCast: me.dynamicCast, elif: me.elif, encodeQuickType: me.encodeQuickType, encoder: me.encoder, enumValues: me.enumValues, equalityContract: me.equalityContract, equatable: me.equatable, event: me.event, except: me.except, exception: me.exception, explicit: me.explicit, export: me.export, exposing: me.exposing, extends: me.extends, extern: me.extern, finally: me.finally, fixed: me.fixed, float: me.float, foreach: me.foreach, formatException: me.formatException, friend: me.friend, from: me.from, fromJSON: me.fromJSON, function: me.function, global: me.global, go: me.go, goto: me.goto, obj2Default: me.obj2Default, obj2Defer: me.obj2Defer, obj2Deinit: me.obj2Deinit, obj2DidSet: me.obj2DidSet, obj2Do: me.obj2Do, obj2Dynamic: me.obj2Dynamic, obj2Else: me.obj2Else, obj2Enum: me.obj2Enum, obj2Extension: me.obj2Extension, obj2Fallthrough: me.obj2Fallthrough, obj2False: me.obj2False, obj2Fileprivate: me.obj2Fileprivate, obj2Final: me.obj2Final, obj2For: me.obj2For, obj2Func: me.obj2Func, obj2Get: me.obj2Get, purpleFalse: me.purpleFalse)
3802+ self.init(dateFormatter: me.dateFormatter, dateOnly: me.dateOnly, dateOnlyConverter: me.dateOnlyConverter, dateParseHandling: me.dateParseHandling, dateTime: me.dateTime, dateTimeStyles: me.dateTimeStyles, debugger: me.debugger, decimal: me.decimal, declare: me.declare, decltype: me.decltype, decodeString: me.decodeString, decoder: me.decoder, decodingError: me.decodingError, def: me.def, del: me.del, delegate: me.delegate, delete: me.delete, dict: me.dict, dictionary: me.dictionary, double: me.double, dummy: me.dummy, dynamicCast: me.dynamicCast, elif: me.elif, encodeQuickType: me.encodeQuickType, encoder: me.encoder, enumValues: me.enumValues, equalityContract: me.equalityContract, equatable: me.equatable, event: me.event, except: me.except, exception: me.exception, explicit: me.explicit, export: me.export, exposing: me.exposing, extends: me.extends, extern: me.extern, finally: me.finally, fixed: me.fixed, float: me.float, foreach: me.foreach, formatException: me.formatException, friend: me.friend, from: me.from, fromDict: me.fromDict, fromJSON: me.fromJSON, function: me.function, global: me.global, go: me.go, obj2Default: me.obj2Default, obj2Defer: me.obj2Defer, obj2Deinit: me.obj2Deinit, obj2DidSet: me.obj2DidSet, obj2Do: me.obj2Do, obj2Dynamic: me.obj2Dynamic, obj2Else: me.obj2Else, obj2Enum: me.obj2Enum, obj2Extension: me.obj2Extension, obj2Fallthrough: me.obj2Fallthrough, obj2False: me.obj2False, obj2Fileprivate: me.obj2Fileprivate, obj2Final: me.obj2Final, obj2For: me.obj2For, obj2Func: me.obj2Func, obj2Get: me.obj2Get, purpleFalse: me.purpleFalse)
38033803 }
38043804
38053805 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -3857,11 +3857,11 @@ extension Obj2 {
38573857 formatException: FormatException? = nil,
38583858 friend: Friend? = nil,
38593859 from: From? = nil,
3860+ fromDict: FromDict? = nil,
38603861 fromJSON: FromJSON? = nil,
38613862 function: Function? = nil,
38623863 global: Global? = nil,
38633864 go: Go? = nil,
3864- goto: Goto? = nil,
38653865 obj2Default: Default? = nil,
38663866 obj2Defer: Defer? = nil,
38673867 obj2Deinit: Deinit? = nil,
@@ -3924,11 +3924,11 @@ extension Obj2 {
39243924 formatException: formatException ?? self.formatException,
39253925 friend: friend ?? self.friend,
39263926 from: from ?? self.from,
3927+ fromDict: fromDict ?? self.fromDict,
39273928 fromJSON: fromJSON ?? self.fromJSON,
39283929 function: function ?? self.function,
39293930 global: global ?? self.global,
39303931 go: go ?? self.go,
3931- goto: goto ?? self.goto,
39323932 obj2Default: obj2Default ?? self.obj2Default,
39333933 obj2Defer: obj2Defer ?? self.obj2Defer,
39343934 obj2Deinit: obj2Deinit ?? self.obj2Deinit,
@@ -6021,6 +6021,55 @@ extension From {
60216021 }
60226022 }
60236023
6024+// MARK: - FromDict
6025+@objcMembers class FromDict: NSObject, Codable {
6026+ let fromDict: Int
6027+
6028+ enum CodingKeys: String, CodingKey {
6029+ case fromDict = "from_dict"
6030+ }
6031+
6032+ init(fromDict: Int) {
6033+ self.fromDict = fromDict
6034+ }
6035+}
6036+
6037+// MARK: FromDict convenience initializers and mutators
6038+
6039+extension FromDict {
6040+ convenience init(data: Data) throws {
6041+ let me = try newJSONDecoder().decode(FromDict.self, from: data)
6042+ self.init(fromDict: me.fromDict)
6043+ }
6044+
6045+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6046+ guard let data = json.data(using: encoding) else {
6047+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6048+ }
6049+ try self.init(data: data)
6050+ }
6051+
6052+ convenience init(fromURL url: URL) throws {
6053+ try self.init(data: try Data(contentsOf: url))
6054+ }
6055+
6056+ func with(
6057+ fromDict: Int? = nil
6058+ ) -> FromDict {
6059+ return FromDict(
6060+ fromDict: fromDict ?? self.fromDict
6061+ )
6062+ }
6063+
6064+ func jsonData() throws -> Data {
6065+ return try newJSONEncoder().encode(self)
6066+ }
6067+
6068+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6069+ return String(data: try self.jsonData(), encoding: encoding)
6070+ }
6071+}
6072+
60246073 // MARK: - FromJSON
60256074 @objcMembers class FromJSON: NSObject, Codable {
60266075 let fromJSON: Int
@@ -6217,55 +6266,6 @@ extension Go {
62176266 }
62186267 }
62196268
6220-// MARK: - Goto
6221-@objcMembers class Goto: NSObject, Codable {
6222- let goto: Int
6223-
6224- enum CodingKeys: String, CodingKey {
6225- case goto = "goto"
6226- }
6227-
6228- init(goto: Int) {
6229- self.goto = goto
6230- }
6231-}
6232-
6233-// MARK: Goto convenience initializers and mutators
6234-
6235-extension Goto {
6236- convenience init(data: Data) throws {
6237- let me = try newJSONDecoder().decode(Goto.self, from: data)
6238- self.init(goto: me.goto)
6239- }
6240-
6241- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6242- guard let data = json.data(using: encoding) else {
6243- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6244- }
6245- try self.init(data: data)
6246- }
6247-
6248- convenience init(fromURL url: URL) throws {
6249- try self.init(data: try Data(contentsOf: url))
6250- }
6251-
6252- func with(
6253- goto: Int? = nil
6254- ) -> Goto {
6255- return Goto(
6256- goto: goto ?? self.goto
6257- )
6258- }
6259-
6260- func jsonData() throws -> Data {
6261- return try newJSONEncoder().encode(self)
6262- }
6263-
6264- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6265- return String(data: try self.jsonData(), encoding: encoding)
6266- }
6267-}
6268-
62696269 // MARK: - Default
62706270 @objcMembers class Default: NSObject, Codable {
62716271 let defaultDefault: Int
@@ -7102,6 +7102,7 @@ extension FalseClass {
71027102 // MARK: - Obj3
71037103 @objcMembers class Obj3: NSObject, Codable {
71047104 let dummy: Int
7105+ let goto: Goto
71057106 let hasOwnProperty: HasOwnProperty
71067107 let hashCode: HashCode
71077108 let hashable: HashableClass
@@ -7149,7 +7150,6 @@ extension FalseClass {
71497150 let new: New
71507151 let newtonsoft: Newtonsoft
71517152 let no: No
7152- let noexcept: Noexcept
71537153 let obj3Guard: Guard
71547154 let obj3If: If
71557155 let obj3Import: Import
@@ -7169,6 +7169,7 @@ extension FalseClass {
71697169
71707170 enum CodingKeys: String, CodingKey {
71717171 case dummy = "dummy"
7172+ case goto = "goto"
71727173 case hasOwnProperty = "hasOwnProperty"
71737174 case hashCode = "hashCode"
71747175 case hashable = "Hashable"
@@ -7216,7 +7217,6 @@ extension FalseClass {
72167217 case new = "new"
72177218 case newtonsoft = "newtonsoft"
72187219 case no = "NO"
7219- case noexcept = "noexcept"
72207220 case obj3Guard = "guard"
72217221 case obj3If = "if"
72227222 case obj3Import = "import"
@@ -7235,8 +7235,9 @@ extension FalseClass {
72357235 case obj3Nil = "nil"
72367236 }
72377237
7238- init(dummy: Int, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, noexcept: Noexcept, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating, obj3Nil: Nil) {
7238+ init(dummy: Int, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating, obj3Nil: Nil) {
72397239 self.dummy = dummy
7240+ self.goto = goto
72407241 self.hasOwnProperty = hasOwnProperty
72417242 self.hashCode = hashCode
72427243 self.hashable = hashable
@@ -7284,7 +7285,6 @@ extension FalseClass {
72847285 self.new = new
72857286 self.newtonsoft = newtonsoft
72867287 self.no = no
7287- self.noexcept = noexcept
72887288 self.obj3Guard = obj3Guard
72897289 self.obj3If = obj3If
72907290 self.obj3Import = obj3Import
@@ -7309,7 +7309,7 @@ extension FalseClass {
73097309 extension Obj3 {
73107310 convenience init(data: Data) throws {
73117311 let me = try newJSONDecoder().decode(Obj3.self, from: data)
7312- self.init(dummy: me.dummy, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, noexcept: me.noexcept, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating, obj3Nil: me.obj3Nil)
7312+ self.init(dummy: me.dummy, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating, obj3Nil: me.obj3Nil)
73137313 }
73147314
73157315 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -7325,6 +7325,7 @@ extension Obj3 {
73257325
73267326 func with(
73277327 dummy: Int? = nil,
7328+ goto: Goto? = nil,
73287329 hasOwnProperty: HasOwnProperty? = nil,
73297330 hashCode: HashCode? = nil,
73307331 hashable: HashableClass? = nil,
@@ -7372,7 +7373,6 @@ extension Obj3 {
73727373 new: New? = nil,
73737374 newtonsoft: Newtonsoft? = nil,
73747375 no: No? = nil,
7375- noexcept: Noexcept? = nil,
73767376 obj3Guard: Guard? = nil,
73777377 obj3If: If? = nil,
73787378 obj3Import: Import? = nil,
@@ -7392,6 +7392,7 @@ extension Obj3 {
73927392 ) -> Obj3 {
73937393 return Obj3(
73947394 dummy: dummy ?? self.dummy,
7395+ goto: goto ?? self.goto,
73957396 hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty,
73967397 hashCode: hashCode ?? self.hashCode,
73977398 hashable: hashable ?? self.hashable,
@@ -7439,7 +7440,6 @@ extension Obj3 {
74397440 new: new ?? self.new,
74407441 newtonsoft: newtonsoft ?? self.newtonsoft,
74417442 no: no ?? self.no,
7442- noexcept: noexcept ?? self.noexcept,
74437443 obj3Guard: obj3Guard ?? self.obj3Guard,
74447444 obj3If: obj3If ?? self.obj3If,
74457445 obj3Import: obj3Import ?? self.obj3Import,
@@ -7468,6 +7468,55 @@ extension Obj3 {
74687468 }
74697469 }
74707470
7471+// MARK: - Goto
7472+@objcMembers class Goto: NSObject, Codable {
7473+ let goto: Int
7474+
7475+ enum CodingKeys: String, CodingKey {
7476+ case goto = "goto"
7477+ }
7478+
7479+ init(goto: Int) {
7480+ self.goto = goto
7481+ }
7482+}
7483+
7484+// MARK: Goto convenience initializers and mutators
7485+
7486+extension Goto {
7487+ convenience init(data: Data) throws {
7488+ let me = try newJSONDecoder().decode(Goto.self, from: data)
7489+ self.init(goto: me.goto)
7490+ }
7491+
7492+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
7493+ guard let data = json.data(using: encoding) else {
7494+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
7495+ }
7496+ try self.init(data: data)
7497+ }
7498+
7499+ convenience init(fromURL url: URL) throws {
7500+ try self.init(data: try Data(contentsOf: url))
7501+ }
7502+
7503+ func with(
7504+ goto: Int? = nil
7505+ ) -> Goto {
7506+ return Goto(
7507+ goto: goto ?? self.goto
7508+ )
7509+ }
7510+
7511+ func jsonData() throws -> Data {
7512+ return try newJSONEncoder().encode(self)
7513+ }
7514+
7515+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
7516+ return String(data: try self.jsonData(), encoding: encoding)
7517+ }
7518+}
7519+
74717520 // MARK: - HasOwnProperty
74727521 @objcMembers class HasOwnProperty: NSObject, Codable {
74737522 let hasOwnProperty: Int
@@ -9771,55 +9820,6 @@ extension No {
97719820 }
97729821 }
97739822
9774-// MARK: - Noexcept
9775-@objcMembers class Noexcept: NSObject, Codable {
9776- let noexcept: Int
9777-
9778- enum CodingKeys: String, CodingKey {
9779- case noexcept = "noexcept"
9780- }
9781-
9782- init(noexcept: Int) {
9783- self.noexcept = noexcept
9784- }
9785-}
9786-
9787-// MARK: Noexcept convenience initializers and mutators
9788-
9789-extension Noexcept {
9790- convenience init(data: Data) throws {
9791- let me = try newJSONDecoder().decode(Noexcept.self, from: data)
9792- self.init(noexcept: me.noexcept)
9793- }
9794-
9795- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9796- guard let data = json.data(using: encoding) else {
9797- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9798- }
9799- try self.init(data: data)
9800- }
9801-
9802- convenience init(fromURL url: URL) throws {
9803- try self.init(data: try Data(contentsOf: url))
9804- }
9805-
9806- func with(
9807- noexcept: Int? = nil
9808- ) -> Noexcept {
9809- return Noexcept(
9810- noexcept: noexcept ?? self.noexcept
9811- )
9812- }
9813-
9814- func jsonData() throws -> Data {
9815- return try newJSONEncoder().encode(self)
9816- }
9817-
9818- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9819- return String(data: try self.jsonData(), encoding: encoding)
9820- }
9821-}
9822-
98239823 // MARK: - Guard
98249824 @objcMembers class Guard: NSObject, Codable {
98259825 let guardGuard: Int
@@ -10608,6 +10608,7 @@ extension Nil {
1060810608 @objcMembers class Obj4: NSObject, Codable {
1060910609 let dummy: Int
1061010610 let noSuchMethod: NoSuchMethod
10611+ let noexcept: Noexcept
1061110612 let nonatomic: Nonatomic
1061210613 let none: None
1061310614 let nonlocal: Nonlocal
@@ -10670,11 +10671,11 @@ extension Nil {
1067010671 let sbyte: Sbyte
1067110672 let sealed: Sealed
1067210673 let sel: Sel
10673- let select: Select
1067410674
1067510675 enum CodingKeys: String, CodingKey {
1067610676 case dummy = "dummy"
1067710677 case noSuchMethod = "noSuchMethod"
10678+ case noexcept = "noexcept"
1067810679 case nonatomic = "nonatomic"
1067910680 case none = "None"
1068010681 case nonlocal = "nonlocal"
@@ -10737,12 +10738,12 @@ extension Nil {
1073710738 case sbyte = "sbyte"
1073810739 case sealed = "sealed"
1073910740 case sel = "SEL"
10740- case select = "select"
1074110741 }
1074210742
10743- init(dummy: Int, noSuchMethod: NoSuchMethod, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select) {
10743+ init(dummy: Int, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel) {
1074410744 self.dummy = dummy
1074510745 self.noSuchMethod = noSuchMethod
10746+ self.noexcept = noexcept
1074610747 self.nonatomic = nonatomic
1074710748 self.none = none
1074810749 self.nonlocal = nonlocal
@@ -10805,7 +10806,6 @@ extension Nil {
1080510806 self.sbyte = sbyte
1080610807 self.sealed = sealed
1080710808 self.sel = sel
10808- self.select = select
1080910809 }
1081010810 }
1081110811
@@ -10814,7 +10814,7 @@ extension Nil {
1081410814 extension Obj4 {
1081510815 convenience init(data: Data) throws {
1081610816 let me = try newJSONDecoder().decode(Obj4.self, from: data)
10817- self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select)
10817+ self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel)
1081810818 }
1081910819
1082010820 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -10831,6 +10831,7 @@ extension Obj4 {
1083110831 func with(
1083210832 dummy: Int? = nil,
1083310833 noSuchMethod: NoSuchMethod? = nil,
10834+ noexcept: Noexcept? = nil,
1083410835 nonatomic: Nonatomic? = nil,
1083510836 none: None? = nil,
1083610837 nonlocal: Nonlocal? = nil,
@@ -10892,12 +10893,12 @@ extension Obj4 {
1089210893 s: S? = nil,
1089310894 sbyte: Sbyte? = nil,
1089410895 sealed: Sealed? = nil,
10895- sel: Sel? = nil,
10896- select: Select? = nil
10896+ sel: Sel? = nil
1089710897 ) -> Obj4 {
1089810898 return Obj4(
1089910899 dummy: dummy ?? self.dummy,
1090010900 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
10901+ noexcept: noexcept ?? self.noexcept,
1090110902 nonatomic: nonatomic ?? self.nonatomic,
1090210903 none: none ?? self.none,
1090310904 nonlocal: nonlocal ?? self.nonlocal,
@@ -10959,8 +10960,7 @@ extension Obj4 {
1095910960 s: s ?? self.s,
1096010961 sbyte: sbyte ?? self.sbyte,
1096110962 sealed: sealed ?? self.sealed,
10962- sel: sel ?? self.sel,
10963- select: select ?? self.select
10963+ sel: sel ?? self.sel
1096410964 )
1096510965 }
1096610966
@@ -11022,6 +11022,55 @@ extension NoSuchMethod {
1102211022 }
1102311023 }
1102411024
11025+// MARK: - Noexcept
11026+@objcMembers class Noexcept: NSObject, Codable {
11027+ let noexcept: Int
11028+
11029+ enum CodingKeys: String, CodingKey {
11030+ case noexcept = "noexcept"
11031+ }
11032+
11033+ init(noexcept: Int) {
11034+ self.noexcept = noexcept
11035+ }
11036+}
11037+
11038+// MARK: Noexcept convenience initializers and mutators
11039+
11040+extension Noexcept {
11041+ convenience init(data: Data) throws {
11042+ let me = try newJSONDecoder().decode(Noexcept.self, from: data)
11043+ self.init(noexcept: me.noexcept)
11044+ }
11045+
11046+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11047+ guard let data = json.data(using: encoding) else {
11048+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11049+ }
11050+ try self.init(data: data)
11051+ }
11052+
11053+ convenience init(fromURL url: URL) throws {
11054+ try self.init(data: try Data(contentsOf: url))
11055+ }
11056+
11057+ func with(
11058+ noexcept: Int? = nil
11059+ ) -> Noexcept {
11060+ return Noexcept(
11061+ noexcept: noexcept ?? self.noexcept
11062+ )
11063+ }
11064+
11065+ func jsonData() throws -> Data {
11066+ return try newJSONEncoder().encode(self)
11067+ }
11068+
11069+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11070+ return String(data: try self.jsonData(), encoding: encoding)
11071+ }
11072+}
11073+
1102511074 // MARK: - Nonatomic
1102611075 @objcMembers class Nonatomic: NSObject, Codable {
1102711076 let nonatomic: Int
@@ -14060,55 +14109,6 @@ extension Sel {
1406014109 }
1406114110 }
1406214111
14063-// MARK: - Select
14064-@objcMembers class Select: NSObject, Codable {
14065- let select: Int
14066-
14067- enum CodingKeys: String, CodingKey {
14068- case select = "select"
14069- }
14070-
14071- init(select: Int) {
14072- self.select = select
14073- }
14074-}
14075-
14076-// MARK: Select convenience initializers and mutators
14077-
14078-extension Select {
14079- convenience init(data: Data) throws {
14080- let me = try newJSONDecoder().decode(Select.self, from: data)
14081- self.init(select: me.select)
14082- }
14083-
14084- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14085- guard let data = json.data(using: encoding) else {
14086- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14087- }
14088- try self.init(data: data)
14089- }
14090-
14091- convenience init(fromURL url: URL) throws {
14092- try self.init(data: try Data(contentsOf: url))
14093- }
14094-
14095- func with(
14096- select: Int? = nil
14097- ) -> Select {
14098- return Select(
14099- select: select ?? self.select
14100- )
14101- }
14102-
14103- func jsonData() throws -> Data {
14104- return try newJSONEncoder().encode(self)
14105- }
14106-
14107- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14108- return String(data: try self.jsonData(), encoding: encoding)
14109- }
14110-}
14111-
1411214112 // MARK: - Obj5
1411314113 @objcMembers class Obj5: NSObject, Codable {
1411414114 let dummy: Int
@@ -14126,9 +14126,9 @@ extension Select {
1412614126 let obj5Type: Obj5Type
1412714127 let obj5Typealias: Typealias
1412814128 let obj5Unowned: Unowned
14129- let obj5Var: Var
1413014129 let purpleSelf: Obj5Self
1413114130 let purpleTrue: TrueClass
14131+ let select: Select
1413214132 let sendable: Sendable
1413314133 let serialize: Serialize
1413414134 let serializerProvider: SerializerProvider
@@ -14154,6 +14154,7 @@ extension Select {
1415414154 let timeOnly: TimeOnly
1415514155 let timeOnlyConverter: TimeOnlyConverter
1415614156 let timeZone: TimeZoneClass
14157+ let toDict: ToDict
1415714158 let toJSON: ToJSON
1415814159 let toString: ToString
1415914160 let topLevel: TopLevelClass
@@ -14175,7 +14176,6 @@ extension Select {
1417514176 let utf8JSONReader: Utf8JSONReader
1417614177 let utf8JSONWriter: Utf8JSONWriter
1417714178 let uuid: UUIDClass
14178- let virtual: Virtual
1417914179
1418014180 enum CodingKeys: String, CodingKey {
1418114181 case dummy = "dummy"
@@ -14193,9 +14193,9 @@ extension Select {
1419314193 case obj5Type = "type"
1419414194 case obj5Typealias = "typealias"
1419514195 case obj5Unowned = "unowned"
14196- case obj5Var = "var"
1419714196 case purpleSelf = "self"
1419814197 case purpleTrue = "true"
14198+ case select = "select"
1419914199 case sendable = "Sendable"
1420014200 case serialize = "serialize"
1420114201 case serializerProvider = "SerializerProvider"
@@ -14221,6 +14221,7 @@ extension Select {
1422114221 case timeOnly = "TimeOnly"
1422214222 case timeOnlyConverter = "TimeOnlyConverter"
1422314223 case timeZone = "TimeZone"
14224+ case toDict = "to_dict"
1422414225 case toJSON = "to_json"
1422514226 case toString = "toString"
1422614227 case topLevel = "top_level"
@@ -14242,10 +14243,9 @@ extension Select {
1424214243 case utf8JSONReader = "Utf8JsonReader"
1424314244 case utf8JSONWriter = "Utf8JsonWriter"
1424414245 case uuid = "UUID"
14245- case virtual = "virtual"
1424614246 }
1424714247
14248- init(dummy: Int, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, obj5Var: Var, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual) {
14248+ init(dummy: Int, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, purpleSelf: Obj5Self, purpleTrue: TrueClass, select: Select, sendable: Sendable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toDict: ToDict, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass) {
1424914249 self.dummy = dummy
1425014250 self.obj5Self = obj5Self
1425114251 self.obj5Set = obj5Set
@@ -14261,9 +14261,9 @@ extension Select {
1426114261 self.obj5Type = obj5Type
1426214262 self.obj5Typealias = obj5Typealias
1426314263 self.obj5Unowned = obj5Unowned
14264- self.obj5Var = obj5Var
1426514264 self.purpleSelf = purpleSelf
1426614265 self.purpleTrue = purpleTrue
14266+ self.select = select
1426714267 self.sendable = sendable
1426814268 self.serialize = serialize
1426914269 self.serializerProvider = serializerProvider
@@ -14289,6 +14289,7 @@ extension Select {
1428914289 self.timeOnly = timeOnly
1429014290 self.timeOnlyConverter = timeOnlyConverter
1429114291 self.timeZone = timeZone
14292+ self.toDict = toDict
1429214293 self.toJSON = toJSON
1429314294 self.toString = toString
1429414295 self.topLevel = topLevel
@@ -14310,7 +14311,6 @@ extension Select {
1431014311 self.utf8JSONReader = utf8JSONReader
1431114312 self.utf8JSONWriter = utf8JSONWriter
1431214313 self.uuid = uuid
14313- self.virtual = virtual
1431414314 }
1431514315 }
1431614316
@@ -14319,7 +14319,7 @@ extension Select {
1431914319 extension Obj5 {
1432014320 convenience init(data: Data) throws {
1432114321 let me = try newJSONDecoder().decode(Obj5.self, from: data)
14322- self.init(dummy: me.dummy, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, obj5Var: me.obj5Var, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual)
14322+ self.init(dummy: me.dummy, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, select: me.select, sendable: me.sendable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toDict: me.toDict, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid)
1432314323 }
1432414324
1432514325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14349,9 +14349,9 @@ extension Obj5 {
1434914349 obj5Type: Obj5Type? = nil,
1435014350 obj5Typealias: Typealias? = nil,
1435114351 obj5Unowned: Unowned? = nil,
14352- obj5Var: Var? = nil,
1435314352 purpleSelf: Obj5Self? = nil,
1435414353 purpleTrue: TrueClass? = nil,
14354+ select: Select? = nil,
1435514355 sendable: Sendable? = nil,
1435614356 serialize: Serialize? = nil,
1435714357 serializerProvider: SerializerProvider? = nil,
@@ -14377,6 +14377,7 @@ extension Obj5 {
1437714377 timeOnly: TimeOnly? = nil,
1437814378 timeOnlyConverter: TimeOnlyConverter? = nil,
1437914379 timeZone: TimeZoneClass? = nil,
14380+ toDict: ToDict? = nil,
1438014381 toJSON: ToJSON? = nil,
1438114382 toString: ToString? = nil,
1438214383 topLevel: TopLevelClass? = nil,
@@ -14397,8 +14398,7 @@ extension Obj5 {
1439714398 using: Using? = nil,
1439814399 utf8JSONReader: Utf8JSONReader? = nil,
1439914400 utf8JSONWriter: Utf8JSONWriter? = nil,
14400- uuid: UUIDClass? = nil,
14401- virtual: Virtual? = nil
14401+ uuid: UUIDClass? = nil
1440214402 ) -> Obj5 {
1440314403 return Obj5(
1440414404 dummy: dummy ?? self.dummy,
@@ -14416,9 +14416,9 @@ extension Obj5 {
1441614416 obj5Type: obj5Type ?? self.obj5Type,
1441714417 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1441814418 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14419- obj5Var: obj5Var ?? self.obj5Var,
1442014419 purpleSelf: purpleSelf ?? self.purpleSelf,
1442114420 purpleTrue: purpleTrue ?? self.purpleTrue,
14421+ select: select ?? self.select,
1442214422 sendable: sendable ?? self.sendable,
1442314423 serialize: serialize ?? self.serialize,
1442414424 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -14444,6 +14444,7 @@ extension Obj5 {
1444414444 timeOnly: timeOnly ?? self.timeOnly,
1444514445 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1444614446 timeZone: timeZone ?? self.timeZone,
14447+ toDict: toDict ?? self.toDict,
1444714448 toJSON: toJSON ?? self.toJSON,
1444814449 toString: toString ?? self.toString,
1444914450 topLevel: topLevel ?? self.topLevel,
@@ -14464,8 +14465,7 @@ extension Obj5 {
1446414465 using: using ?? self.using,
1446514466 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1446614467 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14467- uuid: uuid ?? self.uuid,
14468- virtual: virtual ?? self.virtual
14468+ uuid: uuid ?? self.uuid
1446914469 )
1447014470 }
1447114471
@@ -15164,25 +15164,25 @@ extension Unowned {
1516415164 }
1516515165 }
1516615166
15167-// MARK: - Var
15168-@objcMembers class Var: NSObject, Codable {
15169- let varVar: Int
15167+// MARK: - Obj5Self
15168+@objcMembers class Obj5Self: NSObject, Codable {
15169+ let selfSelf: Int
1517015170
1517115171 enum CodingKeys: String, CodingKey {
15172- case varVar = "var"
15172+ case selfSelf = "self"
1517315173 }
1517415174
15175- init(varVar: Int) {
15176- self.varVar = varVar
15175+ init(selfSelf: Int) {
15176+ self.selfSelf = selfSelf
1517715177 }
1517815178 }
1517915179
15180-// MARK: Var convenience initializers and mutators
15180+// MARK: Obj5Self convenience initializers and mutators
1518115181
15182-extension Var {
15182+extension Obj5Self {
1518315183 convenience init(data: Data) throws {
15184- let me = try newJSONDecoder().decode(Var.self, from: data)
15185- self.init(varVar: me.varVar)
15184+ let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15185+ self.init(selfSelf: me.selfSelf)
1518615186 }
1518715187
1518815188 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15197,10 +15197,10 @@ extension Var {
1519715197 }
1519815198
1519915199 func with(
15200- varVar: Int? = nil
15201- ) -> Var {
15202- return Var(
15203- varVar: varVar ?? self.varVar
15200+ selfSelf: Int? = nil
15201+ ) -> Obj5Self {
15202+ return Obj5Self(
15203+ selfSelf: selfSelf ?? self.selfSelf
1520415204 )
1520515205 }
1520615206
@@ -15213,25 +15213,25 @@ extension Var {
1521315213 }
1521415214 }
1521515215
15216-// MARK: - Obj5Self
15217-@objcMembers class Obj5Self: NSObject, Codable {
15218- let selfSelf: Int
15216+// MARK: - TrueClass
15217+@objcMembers class TrueClass: NSObject, Codable {
15218+ let trueTrue: Int
1521915219
1522015220 enum CodingKeys: String, CodingKey {
15221- case selfSelf = "self"
15221+ case trueTrue = "true"
1522215222 }
1522315223
15224- init(selfSelf: Int) {
15225- self.selfSelf = selfSelf
15224+ init(trueTrue: Int) {
15225+ self.trueTrue = trueTrue
1522615226 }
1522715227 }
1522815228
15229-// MARK: Obj5Self convenience initializers and mutators
15229+// MARK: TrueClass convenience initializers and mutators
1523015230
15231-extension Obj5Self {
15231+extension TrueClass {
1523215232 convenience init(data: Data) throws {
15233- let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15234- self.init(selfSelf: me.selfSelf)
15233+ let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15234+ self.init(trueTrue: me.trueTrue)
1523515235 }
1523615236
1523715237 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15246,10 +15246,10 @@ extension Obj5Self {
1524615246 }
1524715247
1524815248 func with(
15249- selfSelf: Int? = nil
15250- ) -> Obj5Self {
15251- return Obj5Self(
15252- selfSelf: selfSelf ?? self.selfSelf
15249+ trueTrue: Int? = nil
15250+ ) -> TrueClass {
15251+ return TrueClass(
15252+ trueTrue: trueTrue ?? self.trueTrue
1525315253 )
1525415254 }
1525515255
@@ -15262,25 +15262,25 @@ extension Obj5Self {
1526215262 }
1526315263 }
1526415264
15265-// MARK: - TrueClass
15266-@objcMembers class TrueClass: NSObject, Codable {
15267- let trueTrue: Int
15265+// MARK: - Select
15266+@objcMembers class Select: NSObject, Codable {
15267+ let select: Int
1526815268
1526915269 enum CodingKeys: String, CodingKey {
15270- case trueTrue = "true"
15270+ case select = "select"
1527115271 }
1527215272
15273- init(trueTrue: Int) {
15274- self.trueTrue = trueTrue
15273+ init(select: Int) {
15274+ self.select = select
1527515275 }
1527615276 }
1527715277
15278-// MARK: TrueClass convenience initializers and mutators
15278+// MARK: Select convenience initializers and mutators
1527915279
15280-extension TrueClass {
15280+extension Select {
1528115281 convenience init(data: Data) throws {
15282- let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15283- self.init(trueTrue: me.trueTrue)
15282+ let me = try newJSONDecoder().decode(Select.self, from: data)
15283+ self.init(select: me.select)
1528415284 }
1528515285
1528615286 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15295,10 +15295,10 @@ extension TrueClass {
1529515295 }
1529615296
1529715297 func with(
15298- trueTrue: Int? = nil
15299- ) -> TrueClass {
15300- return TrueClass(
15301- trueTrue: trueTrue ?? self.trueTrue
15298+ select: Int? = nil
15299+ ) -> Select {
15300+ return Select(
15301+ select: select ?? self.select
1530215302 )
1530315303 }
1530415304
@@ -16536,6 +16536,55 @@ extension TimeZoneClass {
1653616536 }
1653716537 }
1653816538
16539+// MARK: - ToDict
16540+@objcMembers class ToDict: NSObject, Codable {
16541+ let toDict: Int
16542+
16543+ enum CodingKeys: String, CodingKey {
16544+ case toDict = "to_dict"
16545+ }
16546+
16547+ init(toDict: Int) {
16548+ self.toDict = toDict
16549+ }
16550+}
16551+
16552+// MARK: ToDict convenience initializers and mutators
16553+
16554+extension ToDict {
16555+ convenience init(data: Data) throws {
16556+ let me = try newJSONDecoder().decode(ToDict.self, from: data)
16557+ self.init(toDict: me.toDict)
16558+ }
16559+
16560+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16561+ guard let data = json.data(using: encoding) else {
16562+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16563+ }
16564+ try self.init(data: data)
16565+ }
16566+
16567+ convenience init(fromURL url: URL) throws {
16568+ try self.init(data: try Data(contentsOf: url))
16569+ }
16570+
16571+ func with(
16572+ toDict: Int? = nil
16573+ ) -> ToDict {
16574+ return ToDict(
16575+ toDict: toDict ?? self.toDict
16576+ )
16577+ }
16578+
16579+ func jsonData() throws -> Data {
16580+ return try newJSONEncoder().encode(self)
16581+ }
16582+
16583+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16584+ return String(data: try self.jsonData(), encoding: encoding)
16585+ }
16586+}
16587+
1653916588 // MARK: - ToJSON
1654016589 @objcMembers class ToJSON: NSObject, Codable {
1654116590 let toJSON: Int
@@ -17565,62 +17614,15 @@ extension UUIDClass {
1756517614 }
1756617615 }
1756717616
17568-// MARK: - Virtual
17569-@objcMembers class Virtual: NSObject, Codable {
17570- let virtual: Int
17571-
17572- enum CodingKeys: String, CodingKey {
17573- case virtual = "virtual"
17574- }
17575-
17576- init(virtual: Int) {
17577- self.virtual = virtual
17578- }
17579-}
17580-
17581-// MARK: Virtual convenience initializers and mutators
17582-
17583-extension Virtual {
17584- convenience init(data: Data) throws {
17585- let me = try newJSONDecoder().decode(Virtual.self, from: data)
17586- self.init(virtual: me.virtual)
17587- }
17588-
17589- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17590- guard let data = json.data(using: encoding) else {
17591- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17592- }
17593- try self.init(data: data)
17594- }
17595-
17596- convenience init(fromURL url: URL) throws {
17597- try self.init(data: try Data(contentsOf: url))
17598- }
17599-
17600- func with(
17601- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
17605- )
17606- }
17607-
17608- func jsonData() throws -> Data {
17609- return try newJSONEncoder().encode(self)
17610- }
17611-
17612- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17613- return String(data: try self.jsonData(), encoding: encoding)
17614- }
17615-}
17616-
1761717617 // MARK: - Obj6
1761817618 @objcMembers class Obj6: NSObject, Codable {
1761917619 let dummy: Int
17620+ let obj6Var: Var
1762017621 let obj6Weak: Weak
1762117622 let obj6Where: Where
1762217623 let obj6While: While
1762317624 let obj6WillSet: WillSet
17625+ let virtual: Virtual
1762417626 let void: Void
1762517627 let volatile: Volatile
1762617628 let wcharT: WcharT
@@ -17632,10 +17634,12 @@ extension Virtual {
1763217634
1763317635 enum CodingKeys: String, CodingKey {
1763417636 case dummy = "dummy"
17637+ case obj6Var = "var"
1763517638 case obj6Weak = "weak"
1763617639 case obj6Where = "where"
1763717640 case obj6While = "while"
1763817641 case obj6WillSet = "willSet"
17642+ case virtual = "virtual"
1763917643 case void = "void"
1764017644 case volatile = "volatile"
1764117645 case wcharT = "wchar_t"
@@ -17646,12 +17650,14 @@ extension Virtual {
1764617650 case yield = "yield"
1764717651 }
1764817652
17649- init(dummy: Int, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17653+ init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
1765017654 self.dummy = dummy
17655+ self.obj6Var = obj6Var
1765117656 self.obj6Weak = obj6Weak
1765217657 self.obj6Where = obj6Where
1765317658 self.obj6While = obj6While
1765417659 self.obj6WillSet = obj6WillSet
17660+ self.virtual = virtual
1765517661 self.void = void
1765617662 self.volatile = volatile
1765717663 self.wcharT = wcharT
@@ -17668,7 +17674,7 @@ extension Virtual {
1766817674 extension Obj6 {
1766917675 convenience init(data: Data) throws {
1767017676 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17671- self.init(dummy: me.dummy, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
17677+ self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
1767217678 }
1767317679
1767417680 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17684,10 +17690,12 @@ extension Obj6 {
1768417690
1768517691 func with(
1768617692 dummy: Int? = nil,
17693+ obj6Var: Var? = nil,
1768717694 obj6Weak: Weak? = nil,
1768817695 obj6Where: Where? = nil,
1768917696 obj6While: While? = nil,
1769017697 obj6WillSet: WillSet? = nil,
17698+ virtual: Virtual? = nil,
1769117699 void: Void? = nil,
1769217700 volatile: Volatile? = nil,
1769317701 wcharT: WcharT? = nil,
@@ -17699,10 +17707,12 @@ extension Obj6 {
1769917707 ) -> Obj6 {
1770017708 return Obj6(
1770117709 dummy: dummy ?? self.dummy,
17710+ obj6Var: obj6Var ?? self.obj6Var,
1770217711 obj6Weak: obj6Weak ?? self.obj6Weak,
1770317712 obj6Where: obj6Where ?? self.obj6Where,
1770417713 obj6While: obj6While ?? self.obj6While,
1770517714 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17715+ virtual: virtual ?? self.virtual,
1770617716 void: void ?? self.void,
1770717717 volatile: volatile ?? self.volatile,
1770817718 wcharT: wcharT ?? self.wcharT,
@@ -17723,6 +17733,55 @@ extension Obj6 {
1772317733 }
1772417734 }
1772517735
17736+// MARK: - Var
17737+@objcMembers class Var: NSObject, Codable {
17738+ let varVar: Int
17739+
17740+ enum CodingKeys: String, CodingKey {
17741+ case varVar = "var"
17742+ }
17743+
17744+ init(varVar: Int) {
17745+ self.varVar = varVar
17746+ }
17747+}
17748+
17749+// MARK: Var convenience initializers and mutators
17750+
17751+extension Var {
17752+ convenience init(data: Data) throws {
17753+ let me = try newJSONDecoder().decode(Var.self, from: data)
17754+ self.init(varVar: me.varVar)
17755+ }
17756+
17757+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17758+ guard let data = json.data(using: encoding) else {
17759+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17760+ }
17761+ try self.init(data: data)
17762+ }
17763+
17764+ convenience init(fromURL url: URL) throws {
17765+ try self.init(data: try Data(contentsOf: url))
17766+ }
17767+
17768+ func with(
17769+ varVar: Int? = nil
17770+ ) -> Var {
17771+ return Var(
17772+ varVar: varVar ?? self.varVar
17773+ )
17774+ }
17775+
17776+ func jsonData() throws -> Data {
17777+ return try newJSONEncoder().encode(self)
17778+ }
17779+
17780+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17781+ return String(data: try self.jsonData(), encoding: encoding)
17782+ }
17783+}
17784+
1772617785 // MARK: - Weak
1772717786 @objcMembers class Weak: NSObject, Codable {
1772817787 let weakWeak: Int
@@ -17919,6 +17978,55 @@ extension WillSet {
1791917978 }
1792017979 }
1792117980
17981+// MARK: - Virtual
17982+@objcMembers class Virtual: NSObject, Codable {
17983+ let virtual: Int
17984+
17985+ enum CodingKeys: String, CodingKey {
17986+ case virtual = "virtual"
17987+ }
17988+
17989+ init(virtual: Int) {
17990+ self.virtual = virtual
17991+ }
17992+}
17993+
17994+// MARK: Virtual convenience initializers and mutators
17995+
17996+extension Virtual {
17997+ convenience init(data: Data) throws {
17998+ let me = try newJSONDecoder().decode(Virtual.self, from: data)
17999+ self.init(virtual: me.virtual)
18000+ }
18001+
18002+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18003+ guard let data = json.data(using: encoding) else {
18004+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18005+ }
18006+ try self.init(data: data)
18007+ }
18008+
18009+ convenience init(fromURL url: URL) throws {
18010+ try self.init(data: try Data(contentsOf: url))
18011+ }
18012+
18013+ func with(
18014+ virtual: Int? = nil
18015+ ) -> Virtual {
18016+ return Virtual(
18017+ virtual: virtual ?? self.virtual
18018+ )
18019+ }
18020+
18021+ func jsonData() throws -> Data {
18022+ return try newJSONEncoder().encode(self)
18023+ }
18024+
18025+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18026+ return String(data: try self.jsonData(), encoding: encoding)
18027+ }
18028+}
18029+
1792218030 // MARK: - Void
1792318031 @objcMembers class Void: NSObject, Codable {
1792418032 let void: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+390 −282
@@ -3636,11 +3636,11 @@ struct Obj2: Codable, Equatable {
36363636 let formatException: FormatException
36373637 let friend: Friend
36383638 let from: From
3639+ let fromDict: FromDict
36393640 let fromJSON: FromJSON
36403641 let function: Function
36413642 let global: Global
36423643 let go: Go
3643- let goto: Goto
36443644 let obj2Default: Default
36453645 let obj2Defer: Defer
36463646 let obj2Deinit: Deinit
@@ -3703,11 +3703,11 @@ struct Obj2: Codable, Equatable {
37033703 case formatException = "FormatException"
37043704 case friend = "friend"
37053705 case from = "from"
3706+ case fromDict = "from_dict"
37063707 case fromJSON = "from_json"
37073708 case function = "function"
37083709 case global = "global"
37093710 case go = "go"
3710- case goto = "goto"
37113711 case obj2Default = "default"
37123712 case obj2Defer = "defer"
37133713 case obj2Deinit = "deinit"
@@ -3790,11 +3790,11 @@ extension Obj2 {
37903790 formatException: FormatException? = nil,
37913791 friend: Friend? = nil,
37923792 from: From? = nil,
3793+ fromDict: FromDict? = nil,
37933794 fromJSON: FromJSON? = nil,
37943795 function: Function? = nil,
37953796 global: Global? = nil,
37963797 go: Go? = nil,
3797- goto: Goto? = nil,
37983798 obj2Default: Default? = nil,
37993799 obj2Defer: Defer? = nil,
38003800 obj2Deinit: Deinit? = nil,
@@ -3857,11 +3857,11 @@ extension Obj2 {
38573857 formatException: formatException ?? self.formatException,
38583858 friend: friend ?? self.friend,
38593859 from: from ?? self.from,
3860+ fromDict: fromDict ?? self.fromDict,
38603861 fromJSON: fromJSON ?? self.fromJSON,
38613862 function: function ?? self.function,
38623863 global: global ?? self.global,
38633864 go: go ?? self.go,
3864- goto: goto ?? self.goto,
38653865 obj2Default: obj2Default ?? self.obj2Default,
38663866 obj2Defer: obj2Defer ?? self.obj2Defer,
38673867 obj2Deinit: obj2Deinit ?? self.obj2Deinit,
@@ -6002,6 +6002,56 @@ extension From {
60026002 // for types that require the use of JSONAny, nor will the implementation of Hashable be
60036003 // synthesized for types that have collections (such as arrays or dictionaries).
60046004
6005+// MARK: - FromDict
6006+struct FromDict: Codable, Equatable {
6007+ let fromDict: Int
6008+
6009+ enum CodingKeys: String, CodingKey {
6010+ case fromDict = "from_dict"
6011+ }
6012+}
6013+
6014+// MARK: FromDict convenience initializers and mutators
6015+
6016+extension FromDict {
6017+ init(data: Data) throws {
6018+ self = try newJSONDecoder().decode(FromDict.self, from: data)
6019+ }
6020+
6021+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6022+ guard let data = json.data(using: encoding) else {
6023+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6024+ }
6025+ try self.init(data: data)
6026+ }
6027+
6028+ init(fromURL url: URL) throws {
6029+ try self.init(data: try Data(contentsOf: url))
6030+ }
6031+
6032+ func with(
6033+ fromDict: Int? = nil
6034+ ) -> FromDict {
6035+ return FromDict(
6036+ fromDict: fromDict ?? self.fromDict
6037+ )
6038+ }
6039+
6040+ func jsonData() throws -> Data {
6041+ return try newJSONEncoder().encode(self)
6042+ }
6043+
6044+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6045+ return String(data: try self.jsonData(), encoding: encoding)
6046+ }
6047+}
6048+
6049+//
6050+// Hashable or Equatable:
6051+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
6052+// for types that require the use of JSONAny, nor will the implementation of Hashable be
6053+// synthesized for types that have collections (such as arrays or dictionaries).
6054+
60056055 // MARK: - FromJSON
60066056 struct FromJSON: Codable, Equatable {
60076057 let fromJSON: Int
@@ -6202,56 +6252,6 @@ extension Go {
62026252 // for types that require the use of JSONAny, nor will the implementation of Hashable be
62036253 // synthesized for types that have collections (such as arrays or dictionaries).
62046254
6205-// MARK: - Goto
6206-struct Goto: Codable, Equatable {
6207- let goto: Int
6208-
6209- enum CodingKeys: String, CodingKey {
6210- case goto = "goto"
6211- }
6212-}
6213-
6214-// MARK: Goto convenience initializers and mutators
6215-
6216-extension Goto {
6217- init(data: Data) throws {
6218- self = try newJSONDecoder().decode(Goto.self, from: data)
6219- }
6220-
6221- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6222- guard let data = json.data(using: encoding) else {
6223- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6224- }
6225- try self.init(data: data)
6226- }
6227-
6228- init(fromURL url: URL) throws {
6229- try self.init(data: try Data(contentsOf: url))
6230- }
6231-
6232- func with(
6233- goto: Int? = nil
6234- ) -> Goto {
6235- return Goto(
6236- goto: goto ?? self.goto
6237- )
6238- }
6239-
6240- func jsonData() throws -> Data {
6241- return try newJSONEncoder().encode(self)
6242- }
6243-
6244- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6245- return String(data: try self.jsonData(), encoding: encoding)
6246- }
6247-}
6248-
6249-//
6250-// Hashable or Equatable:
6251-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
6252-// for types that require the use of JSONAny, nor will the implementation of Hashable be
6253-// synthesized for types that have collections (such as arrays or dictionaries).
6254-
62556255 // MARK: - Default
62566256 struct Default: Codable, Equatable {
62576257 let defaultDefault: Int
@@ -7105,6 +7105,7 @@ extension FalseClass {
71057105 // MARK: - Obj3
71067106 struct Obj3: Codable, Equatable {
71077107 let dummy: Int
7108+ let goto: Goto
71087109 let hasOwnProperty: HasOwnProperty
71097110 let hashCode: HashCode
71107111 let hashable: HashableClass
@@ -7152,7 +7153,6 @@ struct Obj3: Codable, Equatable {
71527153 let new: New
71537154 let newtonsoft: Newtonsoft
71547155 let no: No
7155- let noexcept: Noexcept
71567156 let obj3Guard: Guard
71577157 let obj3If: If
71587158 let obj3Import: Import
@@ -7172,6 +7172,7 @@ struct Obj3: Codable, Equatable {
71727172
71737173 enum CodingKeys: String, CodingKey {
71747174 case dummy = "dummy"
7175+ case goto = "goto"
71757176 case hasOwnProperty = "hasOwnProperty"
71767177 case hashCode = "hashCode"
71777178 case hashable = "Hashable"
@@ -7219,7 +7220,6 @@ struct Obj3: Codable, Equatable {
72197220 case new = "new"
72207221 case newtonsoft = "newtonsoft"
72217222 case no = "NO"
7222- case noexcept = "noexcept"
72237223 case obj3Guard = "guard"
72247224 case obj3If = "if"
72257225 case obj3Import = "import"
@@ -7259,6 +7259,7 @@ extension Obj3 {
72597259
72607260 func with(
72617261 dummy: Int? = nil,
7262+ goto: Goto? = nil,
72627263 hasOwnProperty: HasOwnProperty? = nil,
72637264 hashCode: HashCode? = nil,
72647265 hashable: HashableClass? = nil,
@@ -7306,7 +7307,6 @@ extension Obj3 {
73067307 new: New? = nil,
73077308 newtonsoft: Newtonsoft? = nil,
73087309 no: No? = nil,
7309- noexcept: Noexcept? = nil,
73107310 obj3Guard: Guard? = nil,
73117311 obj3If: If? = nil,
73127312 obj3Import: Import? = nil,
@@ -7326,6 +7326,7 @@ extension Obj3 {
73267326 ) -> Obj3 {
73277327 return Obj3(
73287328 dummy: dummy ?? self.dummy,
7329+ goto: goto ?? self.goto,
73297330 hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty,
73307331 hashCode: hashCode ?? self.hashCode,
73317332 hashable: hashable ?? self.hashable,
@@ -7373,7 +7374,6 @@ extension Obj3 {
73737374 new: new ?? self.new,
73747375 newtonsoft: newtonsoft ?? self.newtonsoft,
73757376 no: no ?? self.no,
7376- noexcept: noexcept ?? self.noexcept,
73777377 obj3Guard: obj3Guard ?? self.obj3Guard,
73787378 obj3If: obj3If ?? self.obj3If,
73797379 obj3Import: obj3Import ?? self.obj3Import,
@@ -7408,6 +7408,56 @@ extension Obj3 {
74087408 // for types that require the use of JSONAny, nor will the implementation of Hashable be
74097409 // synthesized for types that have collections (such as arrays or dictionaries).
74107410
7411+// MARK: - Goto
7412+struct Goto: Codable, Equatable {
7413+ let goto: Int
7414+
7415+ enum CodingKeys: String, CodingKey {
7416+ case goto = "goto"
7417+ }
7418+}
7419+
7420+// MARK: Goto convenience initializers and mutators
7421+
7422+extension Goto {
7423+ init(data: Data) throws {
7424+ self = try newJSONDecoder().decode(Goto.self, from: data)
7425+ }
7426+
7427+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
7428+ guard let data = json.data(using: encoding) else {
7429+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
7430+ }
7431+ try self.init(data: data)
7432+ }
7433+
7434+ init(fromURL url: URL) throws {
7435+ try self.init(data: try Data(contentsOf: url))
7436+ }
7437+
7438+ func with(
7439+ goto: Int? = nil
7440+ ) -> Goto {
7441+ return Goto(
7442+ goto: goto ?? self.goto
7443+ )
7444+ }
7445+
7446+ func jsonData() throws -> Data {
7447+ return try newJSONEncoder().encode(self)
7448+ }
7449+
7450+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
7451+ return String(data: try self.jsonData(), encoding: encoding)
7452+ }
7453+}
7454+
7455+//
7456+// Hashable or Equatable:
7457+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
7458+// for types that require the use of JSONAny, nor will the implementation of Hashable be
7459+// synthesized for types that have collections (such as arrays or dictionaries).
7460+
74117461 // MARK: - HasOwnProperty
74127462 struct HasOwnProperty: Codable, Equatable {
74137463 let hasOwnProperty: Int
@@ -9758,56 +9808,6 @@ extension No {
97589808 // for types that require the use of JSONAny, nor will the implementation of Hashable be
97599809 // synthesized for types that have collections (such as arrays or dictionaries).
97609810
9761-// MARK: - Noexcept
9762-struct Noexcept: Codable, Equatable {
9763- let noexcept: Int
9764-
9765- enum CodingKeys: String, CodingKey {
9766- case noexcept = "noexcept"
9767- }
9768-}
9769-
9770-// MARK: Noexcept convenience initializers and mutators
9771-
9772-extension Noexcept {
9773- init(data: Data) throws {
9774- self = try newJSONDecoder().decode(Noexcept.self, from: data)
9775- }
9776-
9777- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9778- guard let data = json.data(using: encoding) else {
9779- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9780- }
9781- try self.init(data: data)
9782- }
9783-
9784- init(fromURL url: URL) throws {
9785- try self.init(data: try Data(contentsOf: url))
9786- }
9787-
9788- func with(
9789- noexcept: Int? = nil
9790- ) -> Noexcept {
9791- return Noexcept(
9792- noexcept: noexcept ?? self.noexcept
9793- )
9794- }
9795-
9796- func jsonData() throws -> Data {
9797- return try newJSONEncoder().encode(self)
9798- }
9799-
9800- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9801- return String(data: try self.jsonData(), encoding: encoding)
9802- }
9803-}
9804-
9805-//
9806-// Hashable or Equatable:
9807-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9808-// for types that require the use of JSONAny, nor will the implementation of Hashable be
9809-// synthesized for types that have collections (such as arrays or dictionaries).
9810-
98119811 // MARK: - Guard
98129812 struct Guard: Codable, Equatable {
98139813 let guardGuard: Int
@@ -10612,6 +10612,7 @@ extension Nil {
1061210612 struct Obj4: Codable, Equatable {
1061310613 let dummy: Int
1061410614 let noSuchMethod: NoSuchMethod
10615+ let noexcept: Noexcept
1061510616 let nonatomic: Nonatomic
1061610617 let none: None
1061710618 let nonlocal: Nonlocal
@@ -10674,11 +10675,11 @@ struct Obj4: Codable, Equatable {
1067410675 let sbyte: Sbyte
1067510676 let sealed: Sealed
1067610677 let sel: Sel
10677- let select: Select
1067810678
1067910679 enum CodingKeys: String, CodingKey {
1068010680 case dummy = "dummy"
1068110681 case noSuchMethod = "noSuchMethod"
10682+ case noexcept = "noexcept"
1068210683 case nonatomic = "nonatomic"
1068310684 case none = "None"
1068410685 case nonlocal = "nonlocal"
@@ -10741,7 +10742,6 @@ struct Obj4: Codable, Equatable {
1074110742 case sbyte = "sbyte"
1074210743 case sealed = "sealed"
1074310744 case sel = "SEL"
10744- case select = "select"
1074510745 }
1074610746 }
1074710747
@@ -10766,6 +10766,7 @@ extension Obj4 {
1076610766 func with(
1076710767 dummy: Int? = nil,
1076810768 noSuchMethod: NoSuchMethod? = nil,
10769+ noexcept: Noexcept? = nil,
1076910770 nonatomic: Nonatomic? = nil,
1077010771 none: None? = nil,
1077110772 nonlocal: Nonlocal? = nil,
@@ -10827,12 +10828,12 @@ extension Obj4 {
1082710828 s: S? = nil,
1082810829 sbyte: Sbyte? = nil,
1082910830 sealed: Sealed? = nil,
10830- sel: Sel? = nil,
10831- select: Select? = nil
10831+ sel: Sel? = nil
1083210832 ) -> Obj4 {
1083310833 return Obj4(
1083410834 dummy: dummy ?? self.dummy,
1083510835 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
10836+ noexcept: noexcept ?? self.noexcept,
1083610837 nonatomic: nonatomic ?? self.nonatomic,
1083710838 none: none ?? self.none,
1083810839 nonlocal: nonlocal ?? self.nonlocal,
@@ -10894,8 +10895,7 @@ extension Obj4 {
1089410895 s: s ?? self.s,
1089510896 sbyte: sbyte ?? self.sbyte,
1089610897 sealed: sealed ?? self.sealed,
10897- sel: sel ?? self.sel,
10898- select: select ?? self.select
10898+ sel: sel ?? self.sel
1089910899 )
1090010900 }
1090110901
@@ -10964,20 +10964,20 @@ extension NoSuchMethod {
1096410964 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1096510965 // synthesized for types that have collections (such as arrays or dictionaries).
1096610966
10967-// MARK: - Nonatomic
10968-struct Nonatomic: Codable, Equatable {
10969- let nonatomic: Int
10967+// MARK: - Noexcept
10968+struct Noexcept: Codable, Equatable {
10969+ let noexcept: Int
1097010970
1097110971 enum CodingKeys: String, CodingKey {
10972- case nonatomic = "nonatomic"
10972+ case noexcept = "noexcept"
1097310973 }
1097410974 }
1097510975
10976-// MARK: Nonatomic convenience initializers and mutators
10976+// MARK: Noexcept convenience initializers and mutators
1097710977
10978-extension Nonatomic {
10978+extension Noexcept {
1097910979 init(data: Data) throws {
10980- self = try newJSONDecoder().decode(Nonatomic.self, from: data)
10980+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
1098110981 }
1098210982
1098310983 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -10992,10 +10992,10 @@ extension Nonatomic {
1099210992 }
1099310993
1099410994 func with(
10995- nonatomic: Int? = nil
10996- ) -> Nonatomic {
10997- return Nonatomic(
10998- nonatomic: nonatomic ?? self.nonatomic
10995+ noexcept: Int? = nil
10996+ ) -> Noexcept {
10997+ return Noexcept(
10998+ noexcept: noexcept ?? self.noexcept
1099910999 )
1100011000 }
1100111001
@@ -11014,20 +11014,20 @@ extension Nonatomic {
1101411014 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1101511015 // synthesized for types that have collections (such as arrays or dictionaries).
1101611016
11017-// MARK: - None
11018-struct None: Codable, Equatable {
11019- let none: Int
11017+// MARK: - Nonatomic
11018+struct Nonatomic: Codable, Equatable {
11019+ let nonatomic: Int
1102011020
1102111021 enum CodingKeys: String, CodingKey {
11022- case none = "None"
11022+ case nonatomic = "nonatomic"
1102311023 }
1102411024 }
1102511025
11026-// MARK: None convenience initializers and mutators
11026+// MARK: Nonatomic convenience initializers and mutators
1102711027
11028-extension None {
11028+extension Nonatomic {
1102911029 init(data: Data) throws {
11030- self = try newJSONDecoder().decode(None.self, from: data)
11030+ self = try newJSONDecoder().decode(Nonatomic.self, from: data)
1103111031 }
1103211032
1103311033 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11042,10 +11042,10 @@ extension None {
1104211042 }
1104311043
1104411044 func with(
11045- none: Int? = nil
11046- ) -> None {
11047- return None(
11048- none: none ?? self.none
11045+ nonatomic: Int? = nil
11046+ ) -> Nonatomic {
11047+ return Nonatomic(
11048+ nonatomic: nonatomic ?? self.nonatomic
1104911049 )
1105011050 }
1105111051
@@ -11064,9 +11064,59 @@ extension None {
1106411064 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1106511065 // synthesized for types that have collections (such as arrays or dictionaries).
1106611066
11067-// MARK: - Nonlocal
11068-struct Nonlocal: Codable, Equatable {
11069- let nonlocal: Int
11067+// MARK: - None
11068+struct None: Codable, Equatable {
11069+ let none: Int
11070+
11071+ enum CodingKeys: String, CodingKey {
11072+ case none = "None"
11073+ }
11074+}
11075+
11076+// MARK: None convenience initializers and mutators
11077+
11078+extension None {
11079+ init(data: Data) throws {
11080+ self = try newJSONDecoder().decode(None.self, from: data)
11081+ }
11082+
11083+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11084+ guard let data = json.data(using: encoding) else {
11085+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11086+ }
11087+ try self.init(data: data)
11088+ }
11089+
11090+ init(fromURL url: URL) throws {
11091+ try self.init(data: try Data(contentsOf: url))
11092+ }
11093+
11094+ func with(
11095+ none: Int? = nil
11096+ ) -> None {
11097+ return None(
11098+ none: none ?? self.none
11099+ )
11100+ }
11101+
11102+ func jsonData() throws -> Data {
11103+ return try newJSONEncoder().encode(self)
11104+ }
11105+
11106+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11107+ return String(data: try self.jsonData(), encoding: encoding)
11108+ }
11109+}
11110+
11111+//
11112+// Hashable or Equatable:
11113+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
11114+// for types that require the use of JSONAny, nor will the implementation of Hashable be
11115+// synthesized for types that have collections (such as arrays or dictionaries).
11116+
11117+// MARK: - Nonlocal
11118+struct Nonlocal: Codable, Equatable {
11119+ let nonlocal: Int
1107011120
1107111121 enum CodingKeys: String, CodingKey {
1107211122 case nonlocal = "nonlocal"
@@ -14064,56 +14114,6 @@ extension Sel {
1406414114 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1406514115 // synthesized for types that have collections (such as arrays or dictionaries).
1406614116
14067-// MARK: - Select
14068-struct Select: Codable, Equatable {
14069- let select: Int
14070-
14071- enum CodingKeys: String, CodingKey {
14072- case select = "select"
14073- }
14074-}
14075-
14076-// MARK: Select convenience initializers and mutators
14077-
14078-extension Select {
14079- init(data: Data) throws {
14080- self = try newJSONDecoder().decode(Select.self, from: data)
14081- }
14082-
14083- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14084- guard let data = json.data(using: encoding) else {
14085- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14086- }
14087- try self.init(data: data)
14088- }
14089-
14090- init(fromURL url: URL) throws {
14091- try self.init(data: try Data(contentsOf: url))
14092- }
14093-
14094- func with(
14095- select: Int? = nil
14096- ) -> Select {
14097- return Select(
14098- select: select ?? self.select
14099- )
14100- }
14101-
14102- func jsonData() throws -> Data {
14103- return try newJSONEncoder().encode(self)
14104- }
14105-
14106- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14107- return String(data: try self.jsonData(), encoding: encoding)
14108- }
14109-}
14110-
14111-//
14112-// Hashable or Equatable:
14113-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14114-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14115-// synthesized for types that have collections (such as arrays or dictionaries).
14116-
1411714117 // MARK: - Obj5
1411814118 struct Obj5: Codable, Equatable {
1411914119 let dummy: Int
@@ -14131,9 +14131,9 @@ struct Obj5: Codable, Equatable {
1413114131 let obj5Type: Obj5Type
1413214132 let obj5Typealias: Typealias
1413314133 let obj5Unowned: Unowned
14134- let obj5Var: Var
1413514134 let purpleSelf: Obj5Self
1413614135 let purpleTrue: TrueClass
14136+ let select: Select
1413714137 let sendable: Sendable
1413814138 let serialize: Serialize
1413914139 let serializerProvider: SerializerProvider
@@ -14159,6 +14159,7 @@ struct Obj5: Codable, Equatable {
1415914159 let timeOnly: TimeOnly
1416014160 let timeOnlyConverter: TimeOnlyConverter
1416114161 let timeZone: TimeZoneClass
14162+ let toDict: ToDict
1416214163 let toJSON: ToJSON
1416314164 let toString: ToString
1416414165 let topLevel: TopLevelClass
@@ -14180,7 +14181,6 @@ struct Obj5: Codable, Equatable {
1418014181 let utf8JSONReader: Utf8JSONReader
1418114182 let utf8JSONWriter: Utf8JSONWriter
1418214183 let uuid: UUIDClass
14183- let virtual: Virtual
1418414184
1418514185 enum CodingKeys: String, CodingKey {
1418614186 case dummy = "dummy"
@@ -14198,9 +14198,9 @@ struct Obj5: Codable, Equatable {
1419814198 case obj5Type = "type"
1419914199 case obj5Typealias = "typealias"
1420014200 case obj5Unowned = "unowned"
14201- case obj5Var = "var"
1420214201 case purpleSelf = "self"
1420314202 case purpleTrue = "true"
14203+ case select = "select"
1420414204 case sendable = "Sendable"
1420514205 case serialize = "serialize"
1420614206 case serializerProvider = "SerializerProvider"
@@ -14226,6 +14226,7 @@ struct Obj5: Codable, Equatable {
1422614226 case timeOnly = "TimeOnly"
1422714227 case timeOnlyConverter = "TimeOnlyConverter"
1422814228 case timeZone = "TimeZone"
14229+ case toDict = "to_dict"
1422914230 case toJSON = "to_json"
1423014231 case toString = "toString"
1423114232 case topLevel = "top_level"
@@ -14247,7 +14248,6 @@ struct Obj5: Codable, Equatable {
1424714248 case utf8JSONReader = "Utf8JsonReader"
1424814249 case utf8JSONWriter = "Utf8JsonWriter"
1424914250 case uuid = "UUID"
14250- case virtual = "virtual"
1425114251 }
1425214252 }
1425314253
@@ -14285,9 +14285,9 @@ extension Obj5 {
1428514285 obj5Type: Obj5Type? = nil,
1428614286 obj5Typealias: Typealias? = nil,
1428714287 obj5Unowned: Unowned? = nil,
14288- obj5Var: Var? = nil,
1428914288 purpleSelf: Obj5Self? = nil,
1429014289 purpleTrue: TrueClass? = nil,
14290+ select: Select? = nil,
1429114291 sendable: Sendable? = nil,
1429214292 serialize: Serialize? = nil,
1429314293 serializerProvider: SerializerProvider? = nil,
@@ -14313,6 +14313,7 @@ extension Obj5 {
1431314313 timeOnly: TimeOnly? = nil,
1431414314 timeOnlyConverter: TimeOnlyConverter? = nil,
1431514315 timeZone: TimeZoneClass? = nil,
14316+ toDict: ToDict? = nil,
1431614317 toJSON: ToJSON? = nil,
1431714318 toString: ToString? = nil,
1431814319 topLevel: TopLevelClass? = nil,
@@ -14333,8 +14334,7 @@ extension Obj5 {
1433314334 using: Using? = nil,
1433414335 utf8JSONReader: Utf8JSONReader? = nil,
1433514336 utf8JSONWriter: Utf8JSONWriter? = nil,
14336- uuid: UUIDClass? = nil,
14337- virtual: Virtual? = nil
14337+ uuid: UUIDClass? = nil
1433814338 ) -> Obj5 {
1433914339 return Obj5(
1434014340 dummy: dummy ?? self.dummy,
@@ -14352,9 +14352,9 @@ extension Obj5 {
1435214352 obj5Type: obj5Type ?? self.obj5Type,
1435314353 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1435414354 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14355- obj5Var: obj5Var ?? self.obj5Var,
1435614355 purpleSelf: purpleSelf ?? self.purpleSelf,
1435714356 purpleTrue: purpleTrue ?? self.purpleTrue,
14357+ select: select ?? self.select,
1435814358 sendable: sendable ?? self.sendable,
1435914359 serialize: serialize ?? self.serialize,
1436014360 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -14380,6 +14380,7 @@ extension Obj5 {
1438014380 timeOnly: timeOnly ?? self.timeOnly,
1438114381 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1438214382 timeZone: timeZone ?? self.timeZone,
14383+ toDict: toDict ?? self.toDict,
1438314384 toJSON: toJSON ?? self.toJSON,
1438414385 toString: toString ?? self.toString,
1438514386 topLevel: topLevel ?? self.topLevel,
@@ -14400,8 +14401,7 @@ extension Obj5 {
1440014401 using: using ?? self.using,
1440114402 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1440214403 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14403- uuid: uuid ?? self.uuid,
14404- virtual: virtual ?? self.virtual
14404+ uuid: uuid ?? self.uuid
1440514405 )
1440614406 }
1440714407
@@ -15120,20 +15120,20 @@ extension Unowned {
1512015120 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1512115121 // synthesized for types that have collections (such as arrays or dictionaries).
1512215122
15123-// MARK: - Var
15124-struct Var: Codable, Equatable {
15125- let varVar: Int
15123+// MARK: - Obj5Self
15124+struct Obj5Self: Codable, Equatable {
15125+ let selfSelf: Int
1512615126
1512715127 enum CodingKeys: String, CodingKey {
15128- case varVar = "var"
15128+ case selfSelf = "self"
1512915129 }
1513015130 }
1513115131
15132-// MARK: Var convenience initializers and mutators
15132+// MARK: Obj5Self convenience initializers and mutators
1513315133
15134-extension Var {
15134+extension Obj5Self {
1513515135 init(data: Data) throws {
15136- self = try newJSONDecoder().decode(Var.self, from: data)
15136+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1513715137 }
1513815138
1513915139 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15148,10 +15148,10 @@ extension Var {
1514815148 }
1514915149
1515015150 func with(
15151- varVar: Int? = nil
15152- ) -> Var {
15153- return Var(
15154- varVar: varVar ?? self.varVar
15151+ selfSelf: Int? = nil
15152+ ) -> Obj5Self {
15153+ return Obj5Self(
15154+ selfSelf: selfSelf ?? self.selfSelf
1515515155 )
1515615156 }
1515715157
@@ -15170,20 +15170,20 @@ extension Var {
1517015170 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1517115171 // synthesized for types that have collections (such as arrays or dictionaries).
1517215172
15173-// MARK: - Obj5Self
15174-struct Obj5Self: Codable, Equatable {
15175- let selfSelf: Int
15173+// MARK: - TrueClass
15174+struct TrueClass: Codable, Equatable {
15175+ let trueTrue: Int
1517615176
1517715177 enum CodingKeys: String, CodingKey {
15178- case selfSelf = "self"
15178+ case trueTrue = "true"
1517915179 }
1518015180 }
1518115181
15182-// MARK: Obj5Self convenience initializers and mutators
15182+// MARK: TrueClass convenience initializers and mutators
1518315183
15184-extension Obj5Self {
15184+extension TrueClass {
1518515185 init(data: Data) throws {
15186- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
15186+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1518715187 }
1518815188
1518915189 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15198,10 +15198,10 @@ extension Obj5Self {
1519815198 }
1519915199
1520015200 func with(
15201- selfSelf: Int? = nil
15202- ) -> Obj5Self {
15203- return Obj5Self(
15204- selfSelf: selfSelf ?? self.selfSelf
15201+ trueTrue: Int? = nil
15202+ ) -> TrueClass {
15203+ return TrueClass(
15204+ trueTrue: trueTrue ?? self.trueTrue
1520515205 )
1520615206 }
1520715207
@@ -15220,20 +15220,20 @@ extension Obj5Self {
1522015220 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1522115221 // synthesized for types that have collections (such as arrays or dictionaries).
1522215222
15223-// MARK: - TrueClass
15224-struct TrueClass: Codable, Equatable {
15225- let trueTrue: Int
15223+// MARK: - Select
15224+struct Select: Codable, Equatable {
15225+ let select: Int
1522615226
1522715227 enum CodingKeys: String, CodingKey {
15228- case trueTrue = "true"
15228+ case select = "select"
1522915229 }
1523015230 }
1523115231
15232-// MARK: TrueClass convenience initializers and mutators
15232+// MARK: Select convenience initializers and mutators
1523315233
15234-extension TrueClass {
15234+extension Select {
1523515235 init(data: Data) throws {
15236- self = try newJSONDecoder().decode(TrueClass.self, from: data)
15236+ self = try newJSONDecoder().decode(Select.self, from: data)
1523715237 }
1523815238
1523915239 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15248,10 +15248,10 @@ extension TrueClass {
1524815248 }
1524915249
1525015250 func with(
15251- trueTrue: Int? = nil
15252- ) -> TrueClass {
15253- return TrueClass(
15254- trueTrue: trueTrue ?? self.trueTrue
15251+ select: Int? = nil
15252+ ) -> Select {
15253+ return Select(
15254+ select: select ?? self.select
1525515255 )
1525615256 }
1525715257
@@ -16520,6 +16520,56 @@ extension TimeZoneClass {
1652016520 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1652116521 // synthesized for types that have collections (such as arrays or dictionaries).
1652216522
16523+// MARK: - ToDict
16524+struct ToDict: Codable, Equatable {
16525+ let toDict: Int
16526+
16527+ enum CodingKeys: String, CodingKey {
16528+ case toDict = "to_dict"
16529+ }
16530+}
16531+
16532+// MARK: ToDict convenience initializers and mutators
16533+
16534+extension ToDict {
16535+ init(data: Data) throws {
16536+ self = try newJSONDecoder().decode(ToDict.self, from: data)
16537+ }
16538+
16539+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16540+ guard let data = json.data(using: encoding) else {
16541+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16542+ }
16543+ try self.init(data: data)
16544+ }
16545+
16546+ init(fromURL url: URL) throws {
16547+ try self.init(data: try Data(contentsOf: url))
16548+ }
16549+
16550+ func with(
16551+ toDict: Int? = nil
16552+ ) -> ToDict {
16553+ return ToDict(
16554+ toDict: toDict ?? self.toDict
16555+ )
16556+ }
16557+
16558+ func jsonData() throws -> Data {
16559+ return try newJSONEncoder().encode(self)
16560+ }
16561+
16562+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16563+ return String(data: try self.jsonData(), encoding: encoding)
16564+ }
16565+}
16566+
16567+//
16568+// Hashable or Equatable:
16569+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
16570+// for types that require the use of JSONAny, nor will the implementation of Hashable be
16571+// synthesized for types that have collections (such as arrays or dictionaries).
16572+
1652316573 // MARK: - ToJSON
1652416574 struct ToJSON: Codable, Equatable {
1652516575 let toJSON: Int
@@ -17570,63 +17620,15 @@ extension UUIDClass {
1757017620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1757117621 // synthesized for types that have collections (such as arrays or dictionaries).
1757217622
17573-// MARK: - Virtual
17574-struct Virtual: Codable, Equatable {
17575- let virtual: Int
17576-
17577- enum CodingKeys: String, CodingKey {
17578- case virtual = "virtual"
17579- }
17580-}
17581-
17582-// MARK: Virtual convenience initializers and mutators
17583-
17584-extension Virtual {
17585- init(data: Data) throws {
17586- self = try newJSONDecoder().decode(Virtual.self, from: data)
17587- }
17588-
17589- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17590- guard let data = json.data(using: encoding) else {
17591- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17592- }
17593- try self.init(data: data)
17594- }
17595-
17596- init(fromURL url: URL) throws {
17597- try self.init(data: try Data(contentsOf: url))
17598- }
17599-
17600- func with(
17601- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
17605- )
17606- }
17607-
17608- func jsonData() throws -> Data {
17609- return try newJSONEncoder().encode(self)
17610- }
17611-
17612- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17613- return String(data: try self.jsonData(), encoding: encoding)
17614- }
17615-}
17616-
17617-//
17618-// Hashable or Equatable:
17619-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17620-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17621-// synthesized for types that have collections (such as arrays or dictionaries).
17622-
1762317623 // MARK: - Obj6
1762417624 struct Obj6: Codable, Equatable {
1762517625 let dummy: Int
17626+ let obj6Var: Var
1762617627 let obj6Weak: Weak
1762717628 let obj6Where: Where
1762817629 let obj6While: While
1762917630 let obj6WillSet: WillSet
17631+ let virtual: Virtual
1763017632 let void: Void
1763117633 let volatile: Volatile
1763217634 let wcharT: WcharT
@@ -17638,10 +17640,12 @@ struct Obj6: Codable, Equatable {
1763817640
1763917641 enum CodingKeys: String, CodingKey {
1764017642 case dummy = "dummy"
17643+ case obj6Var = "var"
1764117644 case obj6Weak = "weak"
1764217645 case obj6Where = "where"
1764317646 case obj6While = "while"
1764417647 case obj6WillSet = "willSet"
17648+ case virtual = "virtual"
1764517649 case void = "void"
1764617650 case volatile = "volatile"
1764717651 case wcharT = "wchar_t"
@@ -17673,10 +17677,12 @@ extension Obj6 {
1767317677
1767417678 func with(
1767517679 dummy: Int? = nil,
17680+ obj6Var: Var? = nil,
1767617681 obj6Weak: Weak? = nil,
1767717682 obj6Where: Where? = nil,
1767817683 obj6While: While? = nil,
1767917684 obj6WillSet: WillSet? = nil,
17685+ virtual: Virtual? = nil,
1768017686 void: Void? = nil,
1768117687 volatile: Volatile? = nil,
1768217688 wcharT: WcharT? = nil,
@@ -17688,10 +17694,12 @@ extension Obj6 {
1768817694 ) -> Obj6 {
1768917695 return Obj6(
1769017696 dummy: dummy ?? self.dummy,
17697+ obj6Var: obj6Var ?? self.obj6Var,
1769117698 obj6Weak: obj6Weak ?? self.obj6Weak,
1769217699 obj6Where: obj6Where ?? self.obj6Where,
1769317700 obj6While: obj6While ?? self.obj6While,
1769417701 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17702+ virtual: virtual ?? self.virtual,
1769517703 void: void ?? self.void,
1769617704 volatile: volatile ?? self.volatile,
1769717705 wcharT: wcharT ?? self.wcharT,
@@ -17718,6 +17726,56 @@ extension Obj6 {
1771817726 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1771917727 // synthesized for types that have collections (such as arrays or dictionaries).
1772017728
17729+// MARK: - Var
17730+struct Var: Codable, Equatable {
17731+ let varVar: Int
17732+
17733+ enum CodingKeys: String, CodingKey {
17734+ case varVar = "var"
17735+ }
17736+}
17737+
17738+// MARK: Var convenience initializers and mutators
17739+
17740+extension Var {
17741+ init(data: Data) throws {
17742+ self = try newJSONDecoder().decode(Var.self, from: data)
17743+ }
17744+
17745+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17746+ guard let data = json.data(using: encoding) else {
17747+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17748+ }
17749+ try self.init(data: data)
17750+ }
17751+
17752+ init(fromURL url: URL) throws {
17753+ try self.init(data: try Data(contentsOf: url))
17754+ }
17755+
17756+ func with(
17757+ varVar: Int? = nil
17758+ ) -> Var {
17759+ return Var(
17760+ varVar: varVar ?? self.varVar
17761+ )
17762+ }
17763+
17764+ func jsonData() throws -> Data {
17765+ return try newJSONEncoder().encode(self)
17766+ }
17767+
17768+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17769+ return String(data: try self.jsonData(), encoding: encoding)
17770+ }
17771+}
17772+
17773+//
17774+// Hashable or Equatable:
17775+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17776+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17777+// synthesized for types that have collections (such as arrays or dictionaries).
17778+
1772117779 // MARK: - Weak
1772217780 struct Weak: Codable, Equatable {
1772317781 let weakWeak: Int
@@ -17918,6 +17976,56 @@ extension WillSet {
1791817976 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1791917977 // synthesized for types that have collections (such as arrays or dictionaries).
1792017978
17979+// MARK: - Virtual
17980+struct Virtual: Codable, Equatable {
17981+ let virtual: Int
17982+
17983+ enum CodingKeys: String, CodingKey {
17984+ case virtual = "virtual"
17985+ }
17986+}
17987+
17988+// MARK: Virtual convenience initializers and mutators
17989+
17990+extension Virtual {
17991+ init(data: Data) throws {
17992+ self = try newJSONDecoder().decode(Virtual.self, from: data)
17993+ }
17994+
17995+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17996+ guard let data = json.data(using: encoding) else {
17997+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17998+ }
17999+ try self.init(data: data)
18000+ }
18001+
18002+ init(fromURL url: URL) throws {
18003+ try self.init(data: try Data(contentsOf: url))
18004+ }
18005+
18006+ func with(
18007+ virtual: Int? = nil
18008+ ) -> Virtual {
18009+ return Virtual(
18010+ virtual: virtual ?? self.virtual
18011+ )
18012+ }
18013+
18014+ func jsonData() throws -> Data {
18015+ return try newJSONEncoder().encode(self)
18016+ }
18017+
18018+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18019+ return String(data: try self.jsonData(), encoding: encoding)
18020+ }
18021+}
18022+
18023+//
18024+// Hashable or Equatable:
18025+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18026+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18027+// synthesized for types that have collections (such as arrays or dictionaries).
18028+
1792118029 // MARK: - Void
1792218030 struct Void: Codable, Equatable {
1792318031 let void: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+329 −233
@@ -3234,11 +3234,11 @@ struct Obj2: Codable, Sendable {
32343234 let formatException: FormatException
32353235 let friend: Friend
32363236 let from: From
3237+ let fromDict: FromDict
32373238 let fromJSON: FromJSON
32383239 let function: Function
32393240 let global: Global
32403241 let go: Go
3241- let goto: Goto
32423242 let obj2Default: Default
32433243 let obj2Defer: Defer
32443244 let obj2Deinit: Deinit
@@ -3301,11 +3301,11 @@ struct Obj2: Codable, Sendable {
33013301 case formatException = "FormatException"
33023302 case friend = "friend"
33033303 case from = "from"
3304+ case fromDict = "from_dict"
33043305 case fromJSON = "from_json"
33053306 case function = "function"
33063307 case global = "global"
33073308 case go = "go"
3308- case goto = "goto"
33093309 case obj2Default = "default"
33103310 case obj2Defer = "defer"
33113311 case obj2Deinit = "deinit"
@@ -3388,11 +3388,11 @@ extension Obj2 {
33883388 formatException: FormatException? = nil,
33893389 friend: Friend? = nil,
33903390 from: From? = nil,
3391+ fromDict: FromDict? = nil,
33913392 fromJSON: FromJSON? = nil,
33923393 function: Function? = nil,
33933394 global: Global? = nil,
33943395 go: Go? = nil,
3395- goto: Goto? = nil,
33963396 obj2Default: Default? = nil,
33973397 obj2Defer: Defer? = nil,
33983398 obj2Deinit: Deinit? = nil,
@@ -3455,11 +3455,11 @@ extension Obj2 {
34553455 formatException: formatException ?? self.formatException,
34563456 friend: friend ?? self.friend,
34573457 from: from ?? self.from,
3458+ fromDict: fromDict ?? self.fromDict,
34583459 fromJSON: fromJSON ?? self.fromJSON,
34593460 function: function ?? self.function,
34603461 global: global ?? self.global,
34613462 go: go ?? self.go,
3462- goto: goto ?? self.goto,
34633463 obj2Default: obj2Default ?? self.obj2Default,
34643464 obj2Defer: obj2Defer ?? self.obj2Defer,
34653465 obj2Deinit: obj2Deinit ?? self.obj2Deinit,
@@ -5342,6 +5342,50 @@ extension From {
53425342 }
53435343 }
53445344
5345+// MARK: - FromDict
5346+struct FromDict: Codable, Sendable {
5347+ let fromDict: Int
5348+
5349+ enum CodingKeys: String, CodingKey {
5350+ case fromDict = "from_dict"
5351+ }
5352+}
5353+
5354+// MARK: FromDict convenience initializers and mutators
5355+
5356+extension FromDict {
5357+ init(data: Data) throws {
5358+ self = try newJSONDecoder().decode(FromDict.self, from: data)
5359+ }
5360+
5361+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
5362+ guard let data = json.data(using: encoding) else {
5363+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
5364+ }
5365+ try self.init(data: data)
5366+ }
5367+
5368+ init(fromURL url: URL) throws {
5369+ try self.init(data: try Data(contentsOf: url))
5370+ }
5371+
5372+ func with(
5373+ fromDict: Int? = nil
5374+ ) -> FromDict {
5375+ return FromDict(
5376+ fromDict: fromDict ?? self.fromDict
5377+ )
5378+ }
5379+
5380+ func jsonData() throws -> Data {
5381+ return try newJSONEncoder().encode(self)
5382+ }
5383+
5384+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
5385+ return String(data: try self.jsonData(), encoding: encoding)
5386+ }
5387+}
5388+
53455389 // MARK: - FromJSON
53465390 struct FromJSON: Codable, Sendable {
53475391 let fromJSON: Int
@@ -5518,50 +5562,6 @@ extension Go {
55185562 }
55195563 }
55205564
5521-// MARK: - Goto
5522-struct Goto: Codable, Sendable {
5523- let goto: Int
5524-
5525- enum CodingKeys: String, CodingKey {
5526- case goto = "goto"
5527- }
5528-}
5529-
5530-// MARK: Goto convenience initializers and mutators
5531-
5532-extension Goto {
5533- init(data: Data) throws {
5534- self = try newJSONDecoder().decode(Goto.self, from: data)
5535- }
5536-
5537- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
5538- guard let data = json.data(using: encoding) else {
5539- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
5540- }
5541- try self.init(data: data)
5542- }
5543-
5544- init(fromURL url: URL) throws {
5545- try self.init(data: try Data(contentsOf: url))
5546- }
5547-
5548- func with(
5549- goto: Int? = nil
5550- ) -> Goto {
5551- return Goto(
5552- goto: goto ?? self.goto
5553- )
5554- }
5555-
5556- func jsonData() throws -> Data {
5557- return try newJSONEncoder().encode(self)
5558- }
5559-
5560- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
5561- return String(data: try self.jsonData(), encoding: encoding)
5562- }
5563-}
5564-
55655565 // MARK: - Default
55665566 struct Default: Codable, Sendable {
55675567 let defaultDefault: Int
@@ -6313,6 +6313,7 @@ extension FalseClass {
63136313 // MARK: - Obj3
63146314 struct Obj3: Codable, Sendable {
63156315 let dummy: Int
6316+ let goto: Goto
63166317 let hasOwnProperty: HasOwnProperty
63176318 let hashCode: HashCode
63186319 let hashable: HashableClass
@@ -6360,7 +6361,6 @@ struct Obj3: Codable, Sendable {
63606361 let new: New
63616362 let newtonsoft: Newtonsoft
63626363 let no: No
6363- let noexcept: Noexcept
63646364 let obj3Guard: Guard
63656365 let obj3If: If
63666366 let obj3Import: Import
@@ -6380,6 +6380,7 @@ struct Obj3: Codable, Sendable {
63806380
63816381 enum CodingKeys: String, CodingKey {
63826382 case dummy = "dummy"
6383+ case goto = "goto"
63836384 case hasOwnProperty = "hasOwnProperty"
63846385 case hashCode = "hashCode"
63856386 case hashable = "Hashable"
@@ -6427,7 +6428,6 @@ struct Obj3: Codable, Sendable {
64276428 case new = "new"
64286429 case newtonsoft = "newtonsoft"
64296430 case no = "NO"
6430- case noexcept = "noexcept"
64316431 case obj3Guard = "guard"
64326432 case obj3If = "if"
64336433 case obj3Import = "import"
@@ -6467,6 +6467,7 @@ extension Obj3 {
64676467
64686468 func with(
64696469 dummy: Int? = nil,
6470+ goto: Goto? = nil,
64706471 hasOwnProperty: HasOwnProperty? = nil,
64716472 hashCode: HashCode? = nil,
64726473 hashable: HashableClass? = nil,
@@ -6514,7 +6515,6 @@ extension Obj3 {
65146515 new: New? = nil,
65156516 newtonsoft: Newtonsoft? = nil,
65166517 no: No? = nil,
6517- noexcept: Noexcept? = nil,
65186518 obj3Guard: Guard? = nil,
65196519 obj3If: If? = nil,
65206520 obj3Import: Import? = nil,
@@ -6534,6 +6534,7 @@ extension Obj3 {
65346534 ) -> Obj3 {
65356535 return Obj3(
65366536 dummy: dummy ?? self.dummy,
6537+ goto: goto ?? self.goto,
65376538 hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty,
65386539 hashCode: hashCode ?? self.hashCode,
65396540 hashable: hashable ?? self.hashable,
@@ -6581,7 +6582,6 @@ extension Obj3 {
65816582 new: new ?? self.new,
65826583 newtonsoft: newtonsoft ?? self.newtonsoft,
65836584 no: no ?? self.no,
6584- noexcept: noexcept ?? self.noexcept,
65856585 obj3Guard: obj3Guard ?? self.obj3Guard,
65866586 obj3If: obj3If ?? self.obj3If,
65876587 obj3Import: obj3Import ?? self.obj3Import,
@@ -6610,6 +6610,50 @@ extension Obj3 {
66106610 }
66116611 }
66126612
6613+// MARK: - Goto
6614+struct Goto: Codable, Sendable {
6615+ let goto: Int
6616+
6617+ enum CodingKeys: String, CodingKey {
6618+ case goto = "goto"
6619+ }
6620+}
6621+
6622+// MARK: Goto convenience initializers and mutators
6623+
6624+extension Goto {
6625+ init(data: Data) throws {
6626+ self = try newJSONDecoder().decode(Goto.self, from: data)
6627+ }
6628+
6629+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
6630+ guard let data = json.data(using: encoding) else {
6631+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
6632+ }
6633+ try self.init(data: data)
6634+ }
6635+
6636+ init(fromURL url: URL) throws {
6637+ try self.init(data: try Data(contentsOf: url))
6638+ }
6639+
6640+ func with(
6641+ goto: Int? = nil
6642+ ) -> Goto {
6643+ return Goto(
6644+ goto: goto ?? self.goto
6645+ )
6646+ }
6647+
6648+ func jsonData() throws -> Data {
6649+ return try newJSONEncoder().encode(self)
6650+ }
6651+
6652+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
6653+ return String(data: try self.jsonData(), encoding: encoding)
6654+ }
6655+}
6656+
66136657 // MARK: - HasOwnProperty
66146658 struct HasOwnProperty: Codable, Sendable {
66156659 let hasOwnProperty: Int
@@ -8678,50 +8722,6 @@ extension No {
86788722 }
86798723 }
86808724
8681-// MARK: - Noexcept
8682-struct Noexcept: Codable, Sendable {
8683- let noexcept: Int
8684-
8685- enum CodingKeys: String, CodingKey {
8686- case noexcept = "noexcept"
8687- }
8688-}
8689-
8690-// MARK: Noexcept convenience initializers and mutators
8691-
8692-extension Noexcept {
8693- init(data: Data) throws {
8694- self = try newJSONDecoder().decode(Noexcept.self, from: data)
8695- }
8696-
8697- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8698- guard let data = json.data(using: encoding) else {
8699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8700- }
8701- try self.init(data: data)
8702- }
8703-
8704- init(fromURL url: URL) throws {
8705- try self.init(data: try Data(contentsOf: url))
8706- }
8707-
8708- func with(
8709- noexcept: Int? = nil
8710- ) -> Noexcept {
8711- return Noexcept(
8712- noexcept: noexcept ?? self.noexcept
8713- )
8714- }
8715-
8716- func jsonData() throws -> Data {
8717- return try newJSONEncoder().encode(self)
8718- }
8719-
8720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8721- return String(data: try self.jsonData(), encoding: encoding)
8722- }
8723-}
8724-
87258725 // MARK: - Guard
87268726 struct Guard: Codable, Sendable {
87278727 let guardGuard: Int
@@ -9430,6 +9430,7 @@ extension Nil {
94309430 struct Obj4: Codable, Sendable {
94319431 let dummy: Int
94329432 let noSuchMethod: NoSuchMethod
9433+ let noexcept: Noexcept
94339434 let nonatomic: Nonatomic
94349435 let none: None
94359436 let nonlocal: Nonlocal
@@ -9492,11 +9493,11 @@ struct Obj4: Codable, Sendable {
94929493 let sbyte: Sbyte
94939494 let sealed: Sealed
94949495 let sel: Sel
9495- let select: Select
94969496
94979497 enum CodingKeys: String, CodingKey {
94989498 case dummy = "dummy"
94999499 case noSuchMethod = "noSuchMethod"
9500+ case noexcept = "noexcept"
95009501 case nonatomic = "nonatomic"
95019502 case none = "None"
95029503 case nonlocal = "nonlocal"
@@ -9559,7 +9560,6 @@ struct Obj4: Codable, Sendable {
95599560 case sbyte = "sbyte"
95609561 case sealed = "sealed"
95619562 case sel = "SEL"
9562- case select = "select"
95639563 }
95649564 }
95659565
@@ -9584,6 +9584,7 @@ extension Obj4 {
95849584 func with(
95859585 dummy: Int? = nil,
95869586 noSuchMethod: NoSuchMethod? = nil,
9587+ noexcept: Noexcept? = nil,
95879588 nonatomic: Nonatomic? = nil,
95889589 none: None? = nil,
95899590 nonlocal: Nonlocal? = nil,
@@ -9645,12 +9646,12 @@ extension Obj4 {
96459646 s: S? = nil,
96469647 sbyte: Sbyte? = nil,
96479648 sealed: Sealed? = nil,
9648- sel: Sel? = nil,
9649- select: Select? = nil
9649+ sel: Sel? = nil
96509650 ) -> Obj4 {
96519651 return Obj4(
96529652 dummy: dummy ?? self.dummy,
96539653 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
9654+ noexcept: noexcept ?? self.noexcept,
96549655 nonatomic: nonatomic ?? self.nonatomic,
96559656 none: none ?? self.none,
96569657 nonlocal: nonlocal ?? self.nonlocal,
@@ -9712,8 +9713,7 @@ extension Obj4 {
97129713 s: s ?? self.s,
97139714 sbyte: sbyte ?? self.sbyte,
97149715 sealed: sealed ?? self.sealed,
9715- sel: sel ?? self.sel,
9716- select: select ?? self.select
9716+ sel: sel ?? self.sel
97179717 )
97189718 }
97199719
@@ -9770,6 +9770,50 @@ extension NoSuchMethod {
97709770 }
97719771 }
97729772
9773+// MARK: - Noexcept
9774+struct Noexcept: Codable, Sendable {
9775+ let noexcept: Int
9776+
9777+ enum CodingKeys: String, CodingKey {
9778+ case noexcept = "noexcept"
9779+ }
9780+}
9781+
9782+// MARK: Noexcept convenience initializers and mutators
9783+
9784+extension Noexcept {
9785+ init(data: Data) throws {
9786+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
9787+ }
9788+
9789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9790+ guard let data = json.data(using: encoding) else {
9791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9792+ }
9793+ try self.init(data: data)
9794+ }
9795+
9796+ init(fromURL url: URL) throws {
9797+ try self.init(data: try Data(contentsOf: url))
9798+ }
9799+
9800+ func with(
9801+ noexcept: Int? = nil
9802+ ) -> Noexcept {
9803+ return Noexcept(
9804+ noexcept: noexcept ?? self.noexcept
9805+ )
9806+ }
9807+
9808+ func jsonData() throws -> Data {
9809+ return try newJSONEncoder().encode(self)
9810+ }
9811+
9812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9813+ return String(data: try self.jsonData(), encoding: encoding)
9814+ }
9815+}
9816+
97739817 // MARK: - Nonatomic
97749818 struct Nonatomic: Codable, Sendable {
97759819 let nonatomic: Int
@@ -12498,50 +12542,6 @@ extension Sel {
1249812542 }
1249912543 }
1250012544
12501-// MARK: - Select
12502-struct Select: Codable, Sendable {
12503- let select: Int
12504-
12505- enum CodingKeys: String, CodingKey {
12506- case select = "select"
12507- }
12508-}
12509-
12510-// MARK: Select convenience initializers and mutators
12511-
12512-extension Select {
12513- init(data: Data) throws {
12514- self = try newJSONDecoder().decode(Select.self, from: data)
12515- }
12516-
12517- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12518- guard let data = json.data(using: encoding) else {
12519- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12520- }
12521- try self.init(data: data)
12522- }
12523-
12524- init(fromURL url: URL) throws {
12525- try self.init(data: try Data(contentsOf: url))
12526- }
12527-
12528- func with(
12529- select: Int? = nil
12530- ) -> Select {
12531- return Select(
12532- select: select ?? self.select
12533- )
12534- }
12535-
12536- func jsonData() throws -> Data {
12537- return try newJSONEncoder().encode(self)
12538- }
12539-
12540- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12541- return String(data: try self.jsonData(), encoding: encoding)
12542- }
12543-}
12544-
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable, Sendable {
1254712547 let dummy: Int
@@ -12559,9 +12559,9 @@ struct Obj5: Codable, Sendable {
1255912559 let obj5Type: Obj5Type
1256012560 let obj5Typealias: Typealias
1256112561 let obj5Unowned: Unowned
12562- let obj5Var: Var
1256312562 let purpleSelf: Obj5Self
1256412563 let purpleTrue: TrueClass
12564+ let select: Select
1256512565 let sendable: SendableClass
1256612566 let serialize: Serialize
1256712567 let serializerProvider: SerializerProvider
@@ -12587,6 +12587,7 @@ struct Obj5: Codable, Sendable {
1258712587 let timeOnly: TimeOnly
1258812588 let timeOnlyConverter: TimeOnlyConverter
1258912589 let timeZone: TimeZoneClass
12590+ let toDict: ToDict
1259012591 let toJSON: ToJSON
1259112592 let toString: ToString
1259212593 let topLevel: TopLevelClass
@@ -12608,7 +12609,6 @@ struct Obj5: Codable, Sendable {
1260812609 let utf8JSONReader: Utf8JSONReader
1260912610 let utf8JSONWriter: Utf8JSONWriter
1261012611 let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12626,9 +12626,9 @@ struct Obj5: Codable, Sendable {
1262612626 case obj5Type = "type"
1262712627 case obj5Typealias = "typealias"
1262812628 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
1263012629 case purpleSelf = "self"
1263112630 case purpleTrue = "true"
12631+ case select = "select"
1263212632 case sendable = "Sendable"
1263312633 case serialize = "serialize"
1263412634 case serializerProvider = "SerializerProvider"
@@ -12654,6 +12654,7 @@ struct Obj5: Codable, Sendable {
1265412654 case timeOnly = "TimeOnly"
1265512655 case timeOnlyConverter = "TimeOnlyConverter"
1265612656 case timeZone = "TimeZone"
12657+ case toDict = "to_dict"
1265712658 case toJSON = "to_json"
1265812659 case toString = "toString"
1265912660 case topLevel = "top_level"
@@ -12675,7 +12676,6 @@ struct Obj5: Codable, Sendable {
1267512676 case utf8JSONReader = "Utf8JsonReader"
1267612677 case utf8JSONWriter = "Utf8JsonWriter"
1267712678 case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12713,9 +12713,9 @@ extension Obj5 {
1271312713 obj5Type: Obj5Type? = nil,
1271412714 obj5Typealias: Typealias? = nil,
1271512715 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
1271712716 purpleSelf: Obj5Self? = nil,
1271812717 purpleTrue: TrueClass? = nil,
12718+ select: Select? = nil,
1271912719 sendable: SendableClass? = nil,
1272012720 serialize: Serialize? = nil,
1272112721 serializerProvider: SerializerProvider? = nil,
@@ -12741,6 +12741,7 @@ extension Obj5 {
1274112741 timeOnly: TimeOnly? = nil,
1274212742 timeOnlyConverter: TimeOnlyConverter? = nil,
1274312743 timeZone: TimeZoneClass? = nil,
12744+ toDict: ToDict? = nil,
1274412745 toJSON: ToJSON? = nil,
1274512746 toString: ToString? = nil,
1274612747 topLevel: TopLevelClass? = nil,
@@ -12761,8 +12762,7 @@ extension Obj5 {
1276112762 using: Using? = nil,
1276212763 utf8JSONReader: Utf8JSONReader? = nil,
1276312764 utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12765+ uuid: UUIDClass? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12780,9 +12780,9 @@ extension Obj5 {
1278012780 obj5Type: obj5Type ?? self.obj5Type,
1278112781 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212782 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
1278412783 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512784 purpleTrue: purpleTrue ?? self.purpleTrue,
12785+ select: select ?? self.select,
1278612786 sendable: sendable ?? self.sendable,
1278712787 serialize: serialize ?? self.serialize,
1278812788 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -12808,6 +12808,7 @@ extension Obj5 {
1280812808 timeOnly: timeOnly ?? self.timeOnly,
1280912809 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1281012810 timeZone: timeZone ?? self.timeZone,
12811+ toDict: toDict ?? self.toDict,
1281112812 toJSON: toJSON ?? self.toJSON,
1281212813 toString: toString ?? self.toString,
1281312814 topLevel: topLevel ?? self.topLevel,
@@ -12828,8 +12829,7 @@ extension Obj5 {
1282812829 using: using ?? self.using,
1282912830 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1283012831 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12832+ uuid: uuid ?? self.uuid
1283312833 )
1283412834 }
1283512835
@@ -13458,20 +13458,20 @@ extension Unowned {
1345813458 }
1345913459 }
1346013460
13461-// MARK: - Var
13462-struct Var: Codable, Sendable {
13463- let varVar: Int
13461+// MARK: - Obj5Self
13462+struct Obj5Self: Codable, Sendable {
13463+ let selfSelf: Int
1346413464
1346513465 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13466+ case selfSelf = "self"
1346713467 }
1346813468 }
1346913469
13470-// MARK: Var convenience initializers and mutators
13470+// MARK: Obj5Self convenience initializers and mutators
1347113471
13472-extension Var {
13472+extension Obj5Self {
1347313473 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13474+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1347513475 }
1347613476
1347713477 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13486,10 @@ extension Var {
1348613486 }
1348713487
1348813488 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13489+ selfSelf: Int? = nil
13490+ ) -> Obj5Self {
13491+ return Obj5Self(
13492+ selfSelf: selfSelf ?? self.selfSelf
1349313493 )
1349413494 }
1349513495
@@ -13502,20 +13502,20 @@ extension Var {
1350213502 }
1350313503 }
1350413504
13505-// MARK: - Obj5Self
13506-struct Obj5Self: Codable, Sendable {
13507- let selfSelf: Int
13505+// MARK: - TrueClass
13506+struct TrueClass: Codable, Sendable {
13507+ let trueTrue: Int
1350813508
1350913509 enum CodingKeys: String, CodingKey {
13510- case selfSelf = "self"
13510+ case trueTrue = "true"
1351113511 }
1351213512 }
1351313513
13514-// MARK: Obj5Self convenience initializers and mutators
13514+// MARK: TrueClass convenience initializers and mutators
1351513515
13516-extension Obj5Self {
13516+extension TrueClass {
1351713517 init(data: Data) throws {
13518- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13518+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1351913519 }
1352013520
1352113521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13530,10 +13530,10 @@ extension Obj5Self {
1353013530 }
1353113531
1353213532 func with(
13533- selfSelf: Int? = nil
13534- ) -> Obj5Self {
13535- return Obj5Self(
13536- selfSelf: selfSelf ?? self.selfSelf
13533+ trueTrue: Int? = nil
13534+ ) -> TrueClass {
13535+ return TrueClass(
13536+ trueTrue: trueTrue ?? self.trueTrue
1353713537 )
1353813538 }
1353913539
@@ -13546,20 +13546,20 @@ extension Obj5Self {
1354613546 }
1354713547 }
1354813548
13549-// MARK: - TrueClass
13550-struct TrueClass: Codable, Sendable {
13551- let trueTrue: Int
13549+// MARK: - Select
13550+struct Select: Codable, Sendable {
13551+ let select: Int
1355213552
1355313553 enum CodingKeys: String, CodingKey {
13554- case trueTrue = "true"
13554+ case select = "select"
1355513555 }
1355613556 }
1355713557
13558-// MARK: TrueClass convenience initializers and mutators
13558+// MARK: Select convenience initializers and mutators
1355913559
13560-extension TrueClass {
13560+extension Select {
1356113561 init(data: Data) throws {
13562- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13562+ self = try newJSONDecoder().decode(Select.self, from: data)
1356313563 }
1356413564
1356513565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13574,10 +13574,10 @@ extension TrueClass {
1357413574 }
1357513575
1357613576 func with(
13577- trueTrue: Int? = nil
13578- ) -> TrueClass {
13579- return TrueClass(
13580- trueTrue: trueTrue ?? self.trueTrue
13577+ select: Int? = nil
13578+ ) -> Select {
13579+ return Select(
13580+ select: select ?? self.select
1358113581 )
1358213582 }
1358313583
@@ -14690,6 +14690,50 @@ extension TimeZoneClass {
1469014690 }
1469114691 }
1469214692
14693+// MARK: - ToDict
14694+struct ToDict: Codable, Sendable {
14695+ let toDict: Int
14696+
14697+ enum CodingKeys: String, CodingKey {
14698+ case toDict = "to_dict"
14699+ }
14700+}
14701+
14702+// MARK: ToDict convenience initializers and mutators
14703+
14704+extension ToDict {
14705+ init(data: Data) throws {
14706+ self = try newJSONDecoder().decode(ToDict.self, from: data)
14707+ }
14708+
14709+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14710+ guard let data = json.data(using: encoding) else {
14711+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14712+ }
14713+ try self.init(data: data)
14714+ }
14715+
14716+ init(fromURL url: URL) throws {
14717+ try self.init(data: try Data(contentsOf: url))
14718+ }
14719+
14720+ func with(
14721+ toDict: Int? = nil
14722+ ) -> ToDict {
14723+ return ToDict(
14724+ toDict: toDict ?? self.toDict
14725+ )
14726+ }
14727+
14728+ func jsonData() throws -> Data {
14729+ return try newJSONEncoder().encode(self)
14730+ }
14731+
14732+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14733+ return String(data: try self.jsonData(), encoding: encoding)
14734+ }
14735+}
14736+
1469314737 // MARK: - ToJSON
1469414738 struct ToJSON: Codable, Sendable {
1469514739 let toJSON: Int
@@ -15614,57 +15658,15 @@ extension UUIDClass {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Virtual
15618-struct Virtual: Codable, Sendable {
15619- let virtual: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15623- }
15624-}
15625-
15626-// MARK: Virtual convenience initializers and mutators
15627-
15628-extension Virtual {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.self, from: data)
15631- }
15632-
15633- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15634- guard let data = json.data(using: encoding) else {
15635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15636- }
15637- try self.init(data: data)
15638- }
15639-
15640- init(fromURL url: URL) throws {
15641- try self.init(data: try Data(contentsOf: url))
15642- }
15643-
15644- func with(
15645- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
15649- )
15650- }
15651-
15652- func jsonData() throws -> Data {
15653- return try newJSONEncoder().encode(self)
15654- }
15655-
15656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15657- return String(data: try self.jsonData(), encoding: encoding)
15658- }
15659-}
15660-
1566115661 // MARK: - Obj6
1566215662 struct Obj6: Codable, Sendable {
1566315663 let dummy: Int
15664+ let obj6Var: Var
1566415665 let obj6Weak: Weak
1566515666 let obj6Where: Where
1566615667 let obj6While: While
1566715668 let obj6WillSet: WillSet
15669+ let virtual: Virtual
1566815670 let void: Void
1566915671 let volatile: Volatile
1567015672 let wcharT: WcharT
@@ -15676,10 +15678,12 @@ struct Obj6: Codable, Sendable {
1567615678
1567715679 enum CodingKeys: String, CodingKey {
1567815680 case dummy = "dummy"
15681+ case obj6Var = "var"
1567915682 case obj6Weak = "weak"
1568015683 case obj6Where = "where"
1568115684 case obj6While = "while"
1568215685 case obj6WillSet = "willSet"
15686+ case virtual = "virtual"
1568315687 case void = "void"
1568415688 case volatile = "volatile"
1568515689 case wcharT = "wchar_t"
@@ -15711,10 +15715,12 @@ extension Obj6 {
1571115715
1571215716 func with(
1571315717 dummy: Int? = nil,
15718+ obj6Var: Var? = nil,
1571415719 obj6Weak: Weak? = nil,
1571515720 obj6Where: Where? = nil,
1571615721 obj6While: While? = nil,
1571715722 obj6WillSet: WillSet? = nil,
15723+ virtual: Virtual? = nil,
1571815724 void: Void? = nil,
1571915725 volatile: Volatile? = nil,
1572015726 wcharT: WcharT? = nil,
@@ -15726,10 +15732,12 @@ extension Obj6 {
1572615732 ) -> Obj6 {
1572715733 return Obj6(
1572815734 dummy: dummy ?? self.dummy,
15735+ obj6Var: obj6Var ?? self.obj6Var,
1572915736 obj6Weak: obj6Weak ?? self.obj6Weak,
1573015737 obj6Where: obj6Where ?? self.obj6Where,
1573115738 obj6While: obj6While ?? self.obj6While,
1573215739 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15740+ virtual: virtual ?? self.virtual,
1573315741 void: void ?? self.void,
1573415742 volatile: volatile ?? self.volatile,
1573515743 wcharT: wcharT ?? self.wcharT,
@@ -15750,6 +15758,50 @@ extension Obj6 {
1575015758 }
1575115759 }
1575215760
15761+// MARK: - Var
15762+struct Var: Codable, Sendable {
15763+ let varVar: Int
15764+
15765+ enum CodingKeys: String, CodingKey {
15766+ case varVar = "var"
15767+ }
15768+}
15769+
15770+// MARK: Var convenience initializers and mutators
15771+
15772+extension Var {
15773+ init(data: Data) throws {
15774+ self = try newJSONDecoder().decode(Var.self, from: data)
15775+ }
15776+
15777+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15778+ guard let data = json.data(using: encoding) else {
15779+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15780+ }
15781+ try self.init(data: data)
15782+ }
15783+
15784+ init(fromURL url: URL) throws {
15785+ try self.init(data: try Data(contentsOf: url))
15786+ }
15787+
15788+ func with(
15789+ varVar: Int? = nil
15790+ ) -> Var {
15791+ return Var(
15792+ varVar: varVar ?? self.varVar
15793+ )
15794+ }
15795+
15796+ func jsonData() throws -> Data {
15797+ return try newJSONEncoder().encode(self)
15798+ }
15799+
15800+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15801+ return String(data: try self.jsonData(), encoding: encoding)
15802+ }
15803+}
15804+
1575315805 // MARK: - Weak
1575415806 struct Weak: Codable, Sendable {
1575515807 let weakWeak: Int
@@ -15926,6 +15978,50 @@ extension WillSet {
1592615978 }
1592715979 }
1592815980
15981+// MARK: - Virtual
15982+struct Virtual: Codable, Sendable {
15983+ let virtual: Int
15984+
15985+ enum CodingKeys: String, CodingKey {
15986+ case virtual = "virtual"
15987+ }
15988+}
15989+
15990+// MARK: Virtual convenience initializers and mutators
15991+
15992+extension Virtual {
15993+ init(data: Data) throws {
15994+ self = try newJSONDecoder().decode(Virtual.self, from: data)
15995+ }
15996+
15997+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15998+ guard let data = json.data(using: encoding) else {
15999+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16000+ }
16001+ try self.init(data: data)
16002+ }
16003+
16004+ init(fromURL url: URL) throws {
16005+ try self.init(data: try Data(contentsOf: url))
16006+ }
16007+
16008+ func with(
16009+ virtual: Int? = nil
16010+ ) -> Virtual {
16011+ return Virtual(
16012+ virtual: virtual ?? self.virtual
16013+ )
16014+ }
16015+
16016+ func jsonData() throws -> Data {
16017+ return try newJSONEncoder().encode(self)
16018+ }
16019+
16020+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16021+ return String(data: try self.jsonData(), encoding: encoding)
16022+ }
16023+}
16024+
1592916025 // MARK: - Void
1593016026 struct Void: Codable, Sendable {
1593116027 let void: Int
Mtypescript-effect-schemadefault / TopLevel.ts+35 −25
@@ -55,8 +55,18 @@ export class Void extends S.Class<Void>("Void")({
5555 "void": S.Int,
5656 }) {}
5757
58+export class Virtual extends S.Class<Virtual>("Virtual")({
59+ "virtual": S.Int,
60+}) {}
61+
62+export class Var extends S.Class<Var>("Var")({
63+ "var": S.Int,
64+}) {}
65+
5866 export class Obj6 extends S.Class<Obj6>("Obj6")({
5967 "dummy": S.Int,
68+ "var": Var,
69+ "virtual": Virtual,
6070 "void": Void,
6171 "volatile": Volatile,
6272 "wchar_t": WcharT,
@@ -71,14 +81,6 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
7181 "yield": Yield,
7282 }) {}
7383
74-export class Virtual extends S.Class<Virtual>("Virtual")({
75- "virtual": S.Int,
76-}) {}
77-
78-export class Var extends S.Class<Var>("Var")({
79- "var": S.Int,
80-}) {}
81-
8284 export class Uuid extends S.Class<Uuid>("Uuid")({
8385 "UUID": S.Int,
8486 }) {}
@@ -180,6 +182,10 @@ export class ToJson extends S.Class<ToJson>("ToJson")({
180182 "to_json": S.Int,
181183 }) {}
182184
185+export class ToDict extends S.Class<ToDict>("ToDict")({
186+ "to_dict": S.Int,
187+}) {}
188+
183189 export class TimeZone extends S.Class<TimeZone>("TimeZone")({
184190 "TimeZone": S.Int,
185191 }) {}
@@ -316,6 +322,10 @@ export class Self extends S.Class<Self>("Self")({
316322 "Self": S.Int,
317323 }) {}
318324
325+export class Select extends S.Class<Select>("Select")({
326+ "select": S.Int,
327+}) {}
328+
319329 export class TypeClass extends S.Class<TypeClass>("TypeClass")({
320330 "type": S.Int,
321331 }) {}
@@ -333,6 +343,7 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
333343 "self": SelfClass,
334344 "true": TrueClass,
335345 "type": TypeClass,
346+ "select": Select,
336347 "Self": Self,
337348 "Sendable": Sendable,
338349 "serialize": Serialize,
@@ -367,6 +378,7 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
367378 "TimeOnly": TimeOnly,
368379 "TimeOnlyConverter": TimeOnlyConverter,
369380 "TimeZone": TimeZone,
381+ "to_dict": ToDict,
370382 "to_json": ToJson,
371383 "toString": ToString,
372384 "top_level": TopLevelClass,
@@ -392,15 +404,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
392404 "Utf8JsonReader": Utf8JsonReader,
393405 "Utf8JsonWriter": Utf8JsonWriter,
394406 "UUID": Uuid,
395- "var": Var,
396- "virtual": Virtual,
397407 }) {}
398408 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
399409
400-export class Select extends S.Class<Select>("Select")({
401- "select": S.Int,
402-}) {}
403-
404410 export class Sel extends S.Class<Sel>("Sel")({
405411 "SEL": S.Int,
406412 }) {}
@@ -649,6 +655,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({
649655 "nonatomic": S.Int,
650656 }) {}
651657
658+export class Noexcept extends S.Class<Noexcept>("Noexcept")({
659+ "noexcept": S.Int,
660+}) {}
661+
652662 export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
653663 "noSuchMethod": S.Int,
654664 }) {}
@@ -656,6 +666,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
656666 export class Obj4 extends S.Class<Obj4>("Obj4")({
657667 "dummy": S.Int,
658668 "noSuchMethod": NoSuchMethod,
669+ "noexcept": Noexcept,
659670 "nonatomic": Nonatomic,
660671 "None": None,
661672 "nonlocal": Nonlocal,
@@ -718,11 +729,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
718729 "sbyte": Sbyte,
719730 "sealed": Sealed,
720731 "SEL": Sel,
721- "select": Select,
722-}) {}
723-
724-export class Noexcept extends S.Class<Noexcept>("Noexcept")({
725- "noexcept": S.Int,
726732 }) {}
727733
728734 export class No extends S.Class<No>("No")({
@@ -977,8 +983,13 @@ export class Guard extends S.Class<Guard>("Guard")({
977983 "guard": S.Int,
978984 }) {}
979985
986+export class Goto extends S.Class<Goto>("Goto")({
987+ "goto": S.Int,
988+}) {}
989+
980990 export class Obj3 extends S.Class<Obj3>("Obj3")({
981991 "dummy": S.Int,
992+ "goto": Goto,
982993 "guard": Guard,
983994 "hasOwnProperty": HasOwnProperty,
984995 "hashCode": HashCode,
@@ -1042,17 +1053,12 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10421053 "newtonsoft": Newtonsoft,
10431054 "nil": Nil,
10441055 "NO": No,
1045- "noexcept": Noexcept,
10461056 }) {}
10471057
10481058 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
10491059 "false": S.Int,
10501060 }) {}
10511061
1052-export class Goto extends S.Class<Goto>("Goto")({
1053- "goto": S.Int,
1054-}) {}
1055-
10561062 export class Go extends S.Class<Go>("Go")({
10571063 "go": S.Int,
10581064 }) {}
@@ -1077,6 +1083,10 @@ export class FromJson extends S.Class<FromJson>("FromJson")({
10771083 "from_json": S.Int,
10781084 }) {}
10791085
1086+export class FromDict extends S.Class<FromDict>("FromDict")({
1087+ "from_dict": S.Int,
1088+}) {}
1089+
10801090 export class From extends S.Class<From>("From")({
10811091 "from": S.Int,
10821092 }) {}
@@ -1359,13 +1369,13 @@ export class Obj2 extends S.Class<Obj2>("Obj2")({
13591369 "FormatException": FormatException,
13601370 "friend": Friend,
13611371 "from": From,
1372+ "from_dict": FromDict,
13621373 "from_json": FromJson,
13631374 "func": Func,
13641375 "function": Function,
13651376 "get": Get,
13661377 "global": Global,
13671378 "go": Go,
1368- "goto": Goto,
13691379 "false": FalseClass,
13701380 }) {}
Mtypescript-zoddefault / TopLevel.ts+32 −20
@@ -607,6 +607,11 @@ export const FromSchema = z.object({
607607 });
608608 export type From = z.infer<typeof FromSchema>;
609609
610+export const FromDictSchema = z.object({
611+ "from_dict": z.number().int(),
612+});
613+export type FromDict = z.infer<typeof FromDictSchema>;
614+
610615 export const FromJsonSchema = z.object({
611616 "from_json": z.number().int(),
612617 });
@@ -637,16 +642,16 @@ export const GoSchema = z.object({
637642 });
638643 export type Go = z.infer<typeof GoSchema>;
639644
640-export const GotoSchema = z.object({
641- "goto": z.number().int(),
642-});
643-export type Goto = z.infer<typeof GotoSchema>;
644-
645645 export const FalseClassSchema = z.object({
646646 "false": z.number().int(),
647647 });
648648 export type FalseClass = z.infer<typeof FalseClassSchema>;
649649
650+export const GotoSchema = z.object({
651+ "goto": z.number().int(),
652+});
653+export type Goto = z.infer<typeof GotoSchema>;
654+
650655 export const GuardSchema = z.object({
651656 "guard": z.number().int(),
652657 });
@@ -962,16 +967,16 @@ export const NoSchema = z.object({
962967 });
963968 export type No = z.infer<typeof NoSchema>;
964969
965-export const NoexceptSchema = z.object({
966- "noexcept": z.number().int(),
967-});
968-export type Noexcept = z.infer<typeof NoexceptSchema>;
969-
970970 export const NoSuchMethodSchema = z.object({
971971 "noSuchMethod": z.number().int(),
972972 });
973973 export type NoSuchMethod = z.infer<typeof NoSuchMethodSchema>;
974974
975+export const NoexceptSchema = z.object({
976+ "noexcept": z.number().int(),
977+});
978+export type Noexcept = z.infer<typeof NoexceptSchema>;
979+
975980 export const NonatomicSchema = z.object({
976981 "nonatomic": z.number().int(),
977982 });
@@ -1282,11 +1287,6 @@ export const SelSchema = z.object({
12821287 });
12831288 export type Sel = z.infer<typeof SelSchema>;
12841289
1285-export const SelectSchema = z.object({
1286- "select": z.number().int(),
1287-});
1288-export type Select = z.infer<typeof SelectSchema>;
1289-
12901290 export const SelfClassSchema = z.object({
12911291 "self": z.number().int(),
12921292 });
@@ -1302,6 +1302,11 @@ export const TypeClassSchema = z.object({
13021302 });
13031303 export type TypeClass = z.infer<typeof TypeClassSchema>;
13041304
1305+export const SelectSchema = z.object({
1306+ "select": z.number().int(),
1307+});
1308+export type Select = z.infer<typeof SelectSchema>;
1309+
13051310 export const SelfSchema = z.object({
13061311 "Self": z.number().int(),
13071312 });
@@ -1472,6 +1477,11 @@ export const TimeZoneSchema = z.object({
14721477 });
14731478 export type TimeZone = z.infer<typeof TimeZoneSchema>;
14741479
1480+export const ToDictSchema = z.object({
1481+ "to_dict": z.number().int(),
1482+});
1483+export type ToDict = z.infer<typeof ToDictSchema>;
1484+
14751485 export const ToJsonSchema = z.object({
14761486 "to_json": z.number().int(),
14771487 });
@@ -1794,19 +1804,20 @@ export const Obj2Schema = z.object({
17941804 "FormatException": FormatExceptionSchema,
17951805 "friend": FriendSchema,
17961806 "from": FromSchema,
1807+ "from_dict": FromDictSchema,
17971808 "from_json": FromJsonSchema,
17981809 "func": FuncSchema,
17991810 "function": FunctionSchema,
18001811 "get": GetSchema,
18011812 "global": GlobalSchema,
18021813 "go": GoSchema,
1803- "goto": GotoSchema,
18041814 "false": FalseClassSchema,
18051815 });
18061816 export type Obj2 = z.infer<typeof Obj2Schema>;
18071817
18081818 export const Obj3Schema = z.object({
18091819 "dummy": z.number().int(),
1820+ "goto": GotoSchema,
18101821 "guard": GuardSchema,
18111822 "hasOwnProperty": HasOwnPropertySchema,
18121823 "hashCode": HashCodeSchema,
@@ -1870,13 +1881,13 @@ export const Obj3Schema = z.object({
18701881 "newtonsoft": NewtonsoftSchema,
18711882 "nil": NilSchema,
18721883 "NO": NoSchema,
1873- "noexcept": NoexceptSchema,
18741884 });
18751885 export type Obj3 = z.infer<typeof Obj3Schema>;
18761886
18771887 export const Obj4Schema = z.object({
18781888 "dummy": z.number().int(),
18791889 "noSuchMethod": NoSuchMethodSchema,
1890+ "noexcept": NoexceptSchema,
18801891 "nonatomic": NonatomicSchema,
18811892 "None": NoneSchema,
18821893 "nonlocal": NonlocalSchema,
@@ -1939,7 +1950,6 @@ export const Obj4Schema = z.object({
19391950 "sbyte": SbyteSchema,
19401951 "sealed": SealedSchema,
19411952 "SEL": SelSchema,
1942- "select": SelectSchema,
19431953 });
19441954 export type Obj4 = z.infer<typeof Obj4Schema>;
19451955
@@ -1948,6 +1958,7 @@ export const Obj5Schema = z.object({
19481958 "self": SelfClassSchema,
19491959 "true": TrueClassSchema,
19501960 "type": TypeClassSchema,
1961+ "select": SelectSchema,
19511962 "Self": SelfSchema,
19521963 "Sendable": SendableSchema,
19531964 "serialize": SerializeSchema,
@@ -1982,6 +1993,7 @@ export const Obj5Schema = z.object({
19821993 "TimeOnly": TimeOnlySchema,
19831994 "TimeOnlyConverter": TimeOnlyConverterSchema,
19841995 "TimeZone": TimeZoneSchema,
1996+ "to_dict": ToDictSchema,
19851997 "to_json": ToJsonSchema,
19861998 "toString": ToStringSchema,
19871999 "top_level": TopLevelClassSchema,
@@ -2007,13 +2019,13 @@ export const Obj5Schema = z.object({
20072019 "Utf8JsonReader": Utf8JsonReaderSchema,
20082020 "Utf8JsonWriter": Utf8JsonWriterSchema,
20092021 "UUID": UuidSchema,
2010- "var": VarSchema,
2011- "virtual": VirtualSchema,
20122022 });
20132023 export type Obj5 = z.infer<typeof Obj5Schema>;
20142024
20152025 export const Obj6Schema = z.object({
20162026 "dummy": z.number().int(),
2027+ "var": VarSchema,
2028+ "virtual": VirtualSchema,
20172029 "void": VoidSchema,
20182030 "volatile": VolatileSchema,
20192031 "wchar_t": WcharTSchema,
Mtypescriptdefault / TopLevel.ts+63 −45
@@ -400,13 +400,13 @@ export interface Obj2 {
400400 foreach: Foreach;
401401 friend: Friend;
402402 from: From;
403+ from_dict: FromDict;
403404 from_json: FromJSON;
404405 func: Func;
405406 function: Function;
406407 get: Get;
407408 global: Global;
408409 go: Go;
409- goto: Goto;
410410 }
411411
412412 export interface DateFormatter {
@@ -639,6 +639,10 @@ export interface From {
639639 from: number;
640640 }
641641
642+export interface FromDict {
643+ from_dict: number;
644+}
645+
642646 export interface FromJSON {
643647 from_json: number;
644648 }
@@ -663,10 +667,6 @@ export interface Go {
663667 go: number;
664668 }
665669
666-export interface Goto {
667- goto: number;
668-}
669-
670670 export interface Obj3 {
671671 Hashable: Hashable;
672672 Hasher: Hasher;
@@ -687,6 +687,7 @@ export interface Obj3 {
687687 MapEntry: MapEntry;
688688 NO: No;
689689 dummy: number;
690+ goto: Goto;
690691 guard: Guard;
691692 hasOwnProperty: HasOwnProperty;
692693 hashCode: HashCode;
@@ -732,7 +733,6 @@ export interface Obj3 {
732733 new: New;
733734 newtonsoft: Newtonsoft;
734735 nil: Nil;
735- noexcept: Noexcept;
736736 }
737737
738738 export interface Hashable {
@@ -807,6 +807,10 @@ export interface No {
807807 NO: number;
808808 }
809809
810+export interface Goto {
811+ goto: number;
812+}
813+
810814 export interface Guard {
811815 guard: number;
812816 }
@@ -987,10 +991,6 @@ export interface Nil {
987991 nil: number;
988992 }
989993
990-export interface Noexcept {
991- noexcept: number;
992-}
993-
994994 export interface Obj4 {
995995 NSError: NSError;
996996 NSObject: NSObject;
@@ -1003,6 +1003,7 @@ export interface Obj4 {
10031003 SEL: Sel;
10041004 dummy: number;
10051005 noSuchMethod: NoSuchMethod;
1006+ noexcept: Noexcept;
10061007 nonatomic: Nonatomic;
10071008 none: NoneClass;
10081009 nonlocal: Nonlocal;
@@ -1056,7 +1057,6 @@ export interface Obj4 {
10561057 s: S;
10571058 sbyte: Sbyte;
10581059 sealed: Sealed;
1059- select: Select;
10601060 }
10611061
10621062 export interface NSError {
@@ -1099,6 +1099,10 @@ export interface NoSuchMethod {
10991099 noSuchMethod: number;
11001100 }
11011101
1102+export interface Noexcept {
1103+ noexcept: number;
1104+}
1105+
11021106 export interface Nonatomic {
11031107 nonatomic: number;
11041108 }
@@ -1311,10 +1315,6 @@ export interface Sealed {
13111315 sealed: number;
13121316 }
13131317
1314-export interface Select {
1315- select: number;
1316-}
1317-
13181318 export interface Obj5 {
13191319 Self: Self;
13201320 Sendable: Sendable;
@@ -1332,6 +1332,7 @@ export interface Obj5 {
13321332 Utf8JsonReader: Utf8JSONReader;
13331333 Utf8JsonWriter: Utf8JSONWriter;
13341334 dummy: number;
1335+ select: Select;
13351336 self: SelfClass;
13361337 serialize: Serialize;
13371338 set: Set;
@@ -1358,6 +1359,7 @@ export interface Obj5 {
13581359 throw: Throw;
13591360 throws: Throws;
13601361 toString: ToString;
1362+ to_dict: ToDict;
13611363 to_json: ToJSON;
13621364 top_level: TopLevelClass;
13631365 transient: Transient;
@@ -1379,8 +1381,6 @@ export interface Obj5 {
13791381 unsigned: Unsigned;
13801382 ushort: Ushort;
13811383 using: Using;
1382- var: Var;
1383- virtual: Virtual;
13841384 }
13851385
13861386 export interface Self {
@@ -1443,6 +1443,10 @@ export interface Utf8JSONWriter {
14431443 Utf8JsonWriter: number;
14441444 }
14451445
1446+export interface Select {
1447+ select: number;
1448+}
1449+
14461450 export interface SelfClass {
14471451 self: number;
14481452 }
@@ -1547,6 +1551,10 @@ export interface ToString {
15471551 toString: number;
15481552 }
15491553
1554+export interface ToDict {
1555+ to_dict: number;
1556+}
1557+
15501558 export interface ToJSON {
15511559 to_json: number;
15521560 }
@@ -1631,17 +1639,11 @@ export interface Using {
16311639 using: number;
16321640 }
16331641
1634-export interface Var {
1635- var: number;
1636-}
1637-
1638-export interface Virtual {
1639- virtual: number;
1640-}
1641-
16421642 export interface Obj6 {
16431643 YES: Yes;
16441644 dummy: number;
1645+ var: Var;
1646+ virtual: Virtual;
16451647 void: Void;
16461648 volatile: Volatile;
16471649 wchar_t: WcharT;
@@ -1659,6 +1661,14 @@ export interface Yes {
16591661 YES: number;
16601662 }
16611663
1664+export interface Var {
1665+ var: number;
1666+}
1667+
1668+export interface Virtual {
1669+ virtual: number;
1670+}
1671+
16621672 export interface Void {
16631673 void: number;
16641674 }
@@ -2218,13 +2228,13 @@ const typeMap: any = {
22182228 { json: "foreach", js: "foreach", typ: r("Foreach") },
22192229 { json: "friend", js: "friend", typ: r("Friend") },
22202230 { json: "from", js: "from", typ: r("From") },
2231+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22212232 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22222233 { json: "func", js: "func", typ: r("Func") },
22232234 { json: "function", js: "function", typ: r("Function") },
22242235 { json: "get", js: "get", typ: r("Get") },
22252236 { json: "global", js: "global", typ: r("Global") },
22262237 { json: "go", js: "go", typ: r("Go") },
2227- { json: "goto", js: "goto", typ: r("Goto") },
22282238 ], false),
22292239 "DateFormatter": o([
22302240 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2397,6 +2407,9 @@ const typeMap: any = {
23972407 "From": o([
23982408 { json: "from", js: "from", typ: i(0) },
23992409 ], false),
2410+ "FromDict": o([
2411+ { json: "from_dict", js: "from_dict", typ: i(0) },
2412+ ], false),
24002413 "FromJSON": o([
24012414 { json: "from_json", js: "from_json", typ: i(0) },
24022415 ], false),
@@ -2415,9 +2428,6 @@ const typeMap: any = {
24152428 "Go": o([
24162429 { json: "go", js: "go", typ: i(0) },
24172430 ], false),
2418- "Goto": o([
2419- { json: "goto", js: "goto", typ: i(0) },
2420- ], false),
24212431 "Obj3": o([
24222432 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24232433 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2438,6 +2448,7 @@ const typeMap: any = {
24382448 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24392449 { json: "NO", js: "NO", typ: r("No") },
24402450 { json: "dummy", js: "dummy", typ: i(0) },
2451+ { json: "goto", js: "goto", typ: r("Goto") },
24412452 { json: "guard", js: "guard", typ: r("Guard") },
24422453 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24432454 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2483,7 +2494,6 @@ const typeMap: any = {
24832494 { json: "new", js: "new", typ: r("New") },
24842495 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24852496 { json: "nil", js: "nil", typ: r("Nil") },
2486- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24872497 ], false),
24882498 "Hashable": o([
24892499 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2539,6 +2549,9 @@ const typeMap: any = {
25392549 "No": o([
25402550 { json: "NO", js: "NO", typ: i(0) },
25412551 ], false),
2552+ "Goto": o([
2553+ { json: "goto", js: "goto", typ: i(0) },
2554+ ], false),
25422555 "Guard": o([
25432556 { json: "guard", js: "guard", typ: i(0) },
25442557 ], false),
@@ -2674,9 +2687,6 @@ const typeMap: any = {
26742687 "Nil": o([
26752688 { json: "nil", js: "nil", typ: i(0) },
26762689 ], false),
2677- "Noexcept": o([
2678- { json: "noexcept", js: "noexcept", typ: i(0) },
2679- ], false),
26802690 "Obj4": o([
26812691 { json: "NSError", js: "NSError", typ: r("NSError") },
26822692 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2689,6 +2699,7 @@ const typeMap: any = {
26892699 { json: "SEL", js: "SEL", typ: r("Sel") },
26902700 { json: "dummy", js: "dummy", typ: i(0) },
26912701 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2702+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26922703 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26932704 { json: "none", js: "none", typ: r("NoneClass") },
26942705 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2742,7 +2753,6 @@ const typeMap: any = {
27422753 { json: "s", js: "s", typ: r("S") },
27432754 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27442755 { json: "sealed", js: "sealed", typ: r("Sealed") },
2745- { json: "select", js: "select", typ: r("Select") },
27462756 ], false),
27472757 "NSError": o([
27482758 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2774,6 +2784,9 @@ const typeMap: any = {
27742784 "NoSuchMethod": o([
27752785 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27762786 ], false),
2787+ "Noexcept": o([
2788+ { json: "noexcept", js: "noexcept", typ: i(0) },
2789+ ], false),
27772790 "Nonatomic": o([
27782791 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27792792 ], false),
@@ -2933,9 +2946,6 @@ const typeMap: any = {
29332946 "Sealed": o([
29342947 { json: "sealed", js: "sealed", typ: i(0) },
29352948 ], false),
2936- "Select": o([
2937- { json: "select", js: "select", typ: i(0) },
2938- ], false),
29392949 "Obj5": o([
29402950 { json: "Self", js: "Self", typ: r("Self") },
29412951 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
@@ -2953,6 +2963,7 @@ const typeMap: any = {
29532963 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29542964 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29552965 { json: "dummy", js: "dummy", typ: i(0) },
2966+ { json: "select", js: "select", typ: r("Select") },
29562967 { json: "self", js: "self", typ: r("SelfClass") },
29572968 { json: "serialize", js: "serialize", typ: r("Serialize") },
29582969 { json: "set", js: "set", typ: r("Set") },
@@ -2979,6 +2990,7 @@ const typeMap: any = {
29792990 { json: "throw", js: "throw", typ: r("Throw") },
29802991 { json: "throws", js: "throws", typ: r("Throws") },
29812992 { json: "toString", js: "toString", typ: r("ToString") },
2993+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
29822994 { json: "to_json", js: "to_json", typ: r("ToJSON") },
29832995 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
29842996 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3000,8 +3012,6 @@ const typeMap: any = {
30003012 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013013 { json: "ushort", js: "ushort", typ: r("Ushort") },
30023014 { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
30053015 ], false),
30063016 "Self": o([
30073017 { json: "Self", js: "Self", typ: i(0) },
@@ -3048,6 +3058,9 @@ const typeMap: any = {
30483058 "Utf8JSONWriter": o([
30493059 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30503060 ], false),
3061+ "Select": o([
3062+ { json: "select", js: "select", typ: i(0) },
3063+ ], false),
30513064 "SelfClass": o([
30523065 { json: "self", js: "self", typ: i(0) },
30533066 ], false),
@@ -3126,6 +3139,9 @@ const typeMap: any = {
31263139 "ToString": o([
31273140 { json: "toString", js: "toString", typ: i(0) },
31283141 ], false),
3142+ "ToDict": o([
3143+ { json: "to_dict", js: "to_dict", typ: i(0) },
3144+ ], false),
31293145 "ToJSON": o([
31303146 { json: "to_json", js: "to_json", typ: i(0) },
31313147 ], false),
@@ -3189,15 +3205,11 @@ const typeMap: any = {
31893205 "Using": o([
31903206 { json: "using", js: "using", typ: i(0) },
31913207 ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983208 "Obj6": o([
31993209 { json: "YES", js: "YES", typ: r("Yes") },
32003210 { json: "dummy", js: "dummy", typ: i(0) },
3211+ { json: "var", js: "var", typ: r("Var") },
3212+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013213 { json: "void", js: "void", typ: r("Void") },
32023214 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033215 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3213,6 +3225,12 @@ const typeMap: any = {
32133225 "Yes": o([
32143226 { json: "YES", js: "YES", typ: i(0) },
32153227 ], false),
3228+ "Var": o([
3229+ { json: "var", js: "var", typ: i(0) },
3230+ ], false),
3231+ "Virtual": o([
3232+ { json: "virtual", js: "virtual", typ: i(0) },
3233+ ], false),
32163234 "Void": o([
32173235 { json: "void", js: "void", typ: i(0) },
32183236 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+63 −45
@@ -400,13 +400,13 @@ export type Obj2 = {
400400 foreach: Foreach;
401401 friend: Friend;
402402 from: From;
403+ from_dict: FromDict;
403404 from_json: FromJSON;
404405 func: Func;
405406 function: Function;
406407 get: Get;
407408 global: Global;
408409 go: Go;
409- goto: Goto;
410410 }
411411
412412 export type DateFormatter = {
@@ -639,6 +639,10 @@ export type From = {
639639 from: number;
640640 }
641641
642+export type FromDict = {
643+ from_dict: number;
644+}
645+
642646 export type FromJSON = {
643647 from_json: number;
644648 }
@@ -663,10 +667,6 @@ export type Go = {
663667 go: number;
664668 }
665669
666-export type Goto = {
667- goto: number;
668-}
669-
670670 export type Obj3 = {
671671 Hashable: Hashable;
672672 Hasher: Hasher;
@@ -687,6 +687,7 @@ export type Obj3 = {
687687 MapEntry: MapEntry;
688688 NO: No;
689689 dummy: number;
690+ goto: Goto;
690691 guard: Guard;
691692 hasOwnProperty: HasOwnProperty;
692693 hashCode: HashCode;
@@ -732,7 +733,6 @@ export type Obj3 = {
732733 new: New;
733734 newtonsoft: Newtonsoft;
734735 nil: Nil;
735- noexcept: Noexcept;
736736 }
737737
738738 export type Hashable = {
@@ -807,6 +807,10 @@ export type No = {
807807 NO: number;
808808 }
809809
810+export type Goto = {
811+ goto: number;
812+}
813+
810814 export type Guard = {
811815 guard: number;
812816 }
@@ -987,10 +991,6 @@ export type Nil = {
987991 nil: number;
988992 }
989993
990-export type Noexcept = {
991- noexcept: number;
992-}
993-
994994 export type Obj4 = {
995995 NSError: NSError;
996996 NSObject: NSObject;
@@ -1003,6 +1003,7 @@ export type Obj4 = {
10031003 SEL: Sel;
10041004 dummy: number;
10051005 noSuchMethod: NoSuchMethod;
1006+ noexcept: Noexcept;
10061007 nonatomic: Nonatomic;
10071008 none: NoneClass;
10081009 nonlocal: Nonlocal;
@@ -1056,7 +1057,6 @@ export type Obj4 = {
10561057 s: S;
10571058 sbyte: Sbyte;
10581059 sealed: Sealed;
1059- select: Select;
10601060 }
10611061
10621062 export type NSError = {
@@ -1099,6 +1099,10 @@ export type NoSuchMethod = {
10991099 noSuchMethod: number;
11001100 }
11011101
1102+export type Noexcept = {
1103+ noexcept: number;
1104+}
1105+
11021106 export type Nonatomic = {
11031107 nonatomic: number;
11041108 }
@@ -1311,10 +1315,6 @@ export type Sealed = {
13111315 sealed: number;
13121316 }
13131317
1314-export type Select = {
1315- select: number;
1316-}
1317-
13181318 export type Obj5 = {
13191319 Self: Self;
13201320 Sendable: Sendable;
@@ -1332,6 +1332,7 @@ export type Obj5 = {
13321332 Utf8JsonReader: Utf8JSONReader;
13331333 Utf8JsonWriter: Utf8JSONWriter;
13341334 dummy: number;
1335+ select: Select;
13351336 self: SelfClass;
13361337 serialize: Serialize;
13371338 set: Set;
@@ -1358,6 +1359,7 @@ export type Obj5 = {
13581359 throw: Throw;
13591360 throws: Throws;
13601361 toString: ToString;
1362+ to_dict: ToDict;
13611363 to_json: ToJSON;
13621364 top_level: TopLevelClass;
13631365 transient: Transient;
@@ -1379,8 +1381,6 @@ export type Obj5 = {
13791381 unsigned: Unsigned;
13801382 ushort: Ushort;
13811383 using: Using;
1382- var: Var;
1383- virtual: Virtual;
13841384 }
13851385
13861386 export type Self = {
@@ -1443,6 +1443,10 @@ export type Utf8JSONWriter = {
14431443 Utf8JsonWriter: number;
14441444 }
14451445
1446+export type Select = {
1447+ select: number;
1448+}
1449+
14461450 export type SelfClass = {
14471451 self: number;
14481452 }
@@ -1547,6 +1551,10 @@ export type ToString = {
15471551 toString: number;
15481552 }
15491553
1554+export type ToDict = {
1555+ to_dict: number;
1556+}
1557+
15501558 export type ToJSON = {
15511559 to_json: number;
15521560 }
@@ -1631,17 +1639,11 @@ export type Using = {
16311639 using: number;
16321640 }
16331641
1634-export type Var = {
1635- var: number;
1636-}
1637-
1638-export type Virtual = {
1639- virtual: number;
1640-}
1641-
16421642 export type Obj6 = {
16431643 YES: Yes;
16441644 dummy: number;
1645+ var: Var;
1646+ virtual: Virtual;
16451647 void: Void;
16461648 volatile: Volatile;
16471649 wchar_t: WcharT;
@@ -1659,6 +1661,14 @@ export type Yes = {
16591661 YES: number;
16601662 }
16611663
1664+export type Var = {
1665+ var: number;
1666+}
1667+
1668+export type Virtual = {
1669+ virtual: number;
1670+}
1671+
16621672 export type Void = {
16631673 void: number;
16641674 }
@@ -2218,13 +2228,13 @@ const typeMap: any = {
22182228 { json: "foreach", js: "foreach", typ: r("Foreach") },
22192229 { json: "friend", js: "friend", typ: r("Friend") },
22202230 { json: "from", js: "from", typ: r("From") },
2231+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22212232 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22222233 { json: "func", js: "func", typ: r("Func") },
22232234 { json: "function", js: "function", typ: r("Function") },
22242235 { json: "get", js: "get", typ: r("Get") },
22252236 { json: "global", js: "global", typ: r("Global") },
22262237 { json: "go", js: "go", typ: r("Go") },
2227- { json: "goto", js: "goto", typ: r("Goto") },
22282238 ], false),
22292239 "DateFormatter": o([
22302240 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2397,6 +2407,9 @@ const typeMap: any = {
23972407 "From": o([
23982408 { json: "from", js: "from", typ: i(0) },
23992409 ], false),
2410+ "FromDict": o([
2411+ { json: "from_dict", js: "from_dict", typ: i(0) },
2412+ ], false),
24002413 "FromJSON": o([
24012414 { json: "from_json", js: "from_json", typ: i(0) },
24022415 ], false),
@@ -2415,9 +2428,6 @@ const typeMap: any = {
24152428 "Go": o([
24162429 { json: "go", js: "go", typ: i(0) },
24172430 ], false),
2418- "Goto": o([
2419- { json: "goto", js: "goto", typ: i(0) },
2420- ], false),
24212431 "Obj3": o([
24222432 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24232433 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2438,6 +2448,7 @@ const typeMap: any = {
24382448 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24392449 { json: "NO", js: "NO", typ: r("No") },
24402450 { json: "dummy", js: "dummy", typ: i(0) },
2451+ { json: "goto", js: "goto", typ: r("Goto") },
24412452 { json: "guard", js: "guard", typ: r("Guard") },
24422453 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24432454 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2483,7 +2494,6 @@ const typeMap: any = {
24832494 { json: "new", js: "new", typ: r("New") },
24842495 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24852496 { json: "nil", js: "nil", typ: r("Nil") },
2486- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24872497 ], false),
24882498 "Hashable": o([
24892499 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2539,6 +2549,9 @@ const typeMap: any = {
25392549 "No": o([
25402550 { json: "NO", js: "NO", typ: i(0) },
25412551 ], false),
2552+ "Goto": o([
2553+ { json: "goto", js: "goto", typ: i(0) },
2554+ ], false),
25422555 "Guard": o([
25432556 { json: "guard", js: "guard", typ: i(0) },
25442557 ], false),
@@ -2674,9 +2687,6 @@ const typeMap: any = {
26742687 "Nil": o([
26752688 { json: "nil", js: "nil", typ: i(0) },
26762689 ], false),
2677- "Noexcept": o([
2678- { json: "noexcept", js: "noexcept", typ: i(0) },
2679- ], false),
26802690 "Obj4": o([
26812691 { json: "NSError", js: "NSError", typ: r("NSError") },
26822692 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2689,6 +2699,7 @@ const typeMap: any = {
26892699 { json: "SEL", js: "SEL", typ: r("Sel") },
26902700 { json: "dummy", js: "dummy", typ: i(0) },
26912701 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2702+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26922703 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26932704 { json: "none", js: "none", typ: r("NoneClass") },
26942705 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2742,7 +2753,6 @@ const typeMap: any = {
27422753 { json: "s", js: "s", typ: r("S") },
27432754 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27442755 { json: "sealed", js: "sealed", typ: r("Sealed") },
2745- { json: "select", js: "select", typ: r("Select") },
27462756 ], false),
27472757 "NSError": o([
27482758 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2774,6 +2784,9 @@ const typeMap: any = {
27742784 "NoSuchMethod": o([
27752785 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27762786 ], false),
2787+ "Noexcept": o([
2788+ { json: "noexcept", js: "noexcept", typ: i(0) },
2789+ ], false),
27772790 "Nonatomic": o([
27782791 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27792792 ], false),
@@ -2933,9 +2946,6 @@ const typeMap: any = {
29332946 "Sealed": o([
29342947 { json: "sealed", js: "sealed", typ: i(0) },
29352948 ], false),
2936- "Select": o([
2937- { json: "select", js: "select", typ: i(0) },
2938- ], false),
29392949 "Obj5": o([
29402950 { json: "Self", js: "Self", typ: r("Self") },
29412951 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
@@ -2953,6 +2963,7 @@ const typeMap: any = {
29532963 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29542964 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29552965 { json: "dummy", js: "dummy", typ: i(0) },
2966+ { json: "select", js: "select", typ: r("Select") },
29562967 { json: "self", js: "self", typ: r("SelfClass") },
29572968 { json: "serialize", js: "serialize", typ: r("Serialize") },
29582969 { json: "set", js: "set", typ: r("Set") },
@@ -2979,6 +2990,7 @@ const typeMap: any = {
29792990 { json: "throw", js: "throw", typ: r("Throw") },
29802991 { json: "throws", js: "throws", typ: r("Throws") },
29812992 { json: "toString", js: "toString", typ: r("ToString") },
2993+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
29822994 { json: "to_json", js: "to_json", typ: r("ToJSON") },
29832995 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
29842996 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3000,8 +3012,6 @@ const typeMap: any = {
30003012 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013013 { json: "ushort", js: "ushort", typ: r("Ushort") },
30023014 { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
30053015 ], false),
30063016 "Self": o([
30073017 { json: "Self", js: "Self", typ: i(0) },
@@ -3048,6 +3058,9 @@ const typeMap: any = {
30483058 "Utf8JSONWriter": o([
30493059 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30503060 ], false),
3061+ "Select": o([
3062+ { json: "select", js: "select", typ: i(0) },
3063+ ], false),
30513064 "SelfClass": o([
30523065 { json: "self", js: "self", typ: i(0) },
30533066 ], false),
@@ -3126,6 +3139,9 @@ const typeMap: any = {
31263139 "ToString": o([
31273140 { json: "toString", js: "toString", typ: i(0) },
31283141 ], false),
3142+ "ToDict": o([
3143+ { json: "to_dict", js: "to_dict", typ: i(0) },
3144+ ], false),
31293145 "ToJSON": o([
31303146 { json: "to_json", js: "to_json", typ: i(0) },
31313147 ], false),
@@ -3189,15 +3205,11 @@ const typeMap: any = {
31893205 "Using": o([
31903206 { json: "using", js: "using", typ: i(0) },
31913207 ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983208 "Obj6": o([
31993209 { json: "YES", js: "YES", typ: r("Yes") },
32003210 { json: "dummy", js: "dummy", typ: i(0) },
3211+ { json: "var", js: "var", typ: r("Var") },
3212+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013213 { json: "void", js: "void", typ: r("Void") },
32023214 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033215 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3213,6 +3225,12 @@ const typeMap: any = {
32133225 "Yes": o([
32143226 { json: "YES", js: "YES", typ: i(0) },
32153227 ], false),
3228+ "Var": o([
3229+ { json: "var", js: "var", typ: i(0) },
3230+ ], false),
3231+ "Virtual": o([
3232+ { json: "virtual", js: "virtual", typ: i(0) },
3233+ ], false),
32163234 "Void": o([
32173235 { json: "void", js: "void", typ: i(0) },
32183236 ], false),
Test case

test/inputs/schema/keyword-enum.schema

34 generated files · +148 −12
Mschema-cjsondefault / TopLevel.c+4 −0
@@ -129,6 +129,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
129129 else if (!strcmp(cJSON_GetStringValue(j), "FormatException")) x = ENUM_FORMAT_EXCEPTION;
130130 else if (!strcmp(cJSON_GetStringValue(j), "friend")) x = ENUM_FRIEND;
131131 else if (!strcmp(cJSON_GetStringValue(j), "from")) x = ENUM_FROM;
132+ else if (!strcmp(cJSON_GetStringValue(j), "from_dict")) x = ENUM_FROM_DICT;
132133 else if (!strcmp(cJSON_GetStringValue(j), "from_json")) x = ENUM_FROM_JSON;
133134 else if (!strcmp(cJSON_GetStringValue(j), "func")) x = ENUM_FUNC;
134135 else if (!strcmp(cJSON_GetStringValue(j), "function")) x = ENUM_FUNCTION;
@@ -302,6 +303,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
302303 else if (!strcmp(cJSON_GetStringValue(j), "to_json")) x = ENUM_TO_JSON;
303304 else if (!strcmp(cJSON_GetStringValue(j), "top_level")) x = ENUM_TOP_LEVEL;
304305 else if (!strcmp(cJSON_GetStringValue(j), "toString")) x = ENUM_TO_STRING;
306+ else if (!strcmp(cJSON_GetStringValue(j), "to_dict")) x = ENUM_TO_DICT;
305307 else if (!strcmp(cJSON_GetStringValue(j), "transient")) x = ENUM_TRANSIENT;
306308 else if (!strcmp(cJSON_GetStringValue(j), "True")) x = ENUM_TRUE;
307309 else if (!strcmp(cJSON_GetStringValue(j), "true")) x = ENUM_ENUM_TRUE;
@@ -469,6 +471,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
469471 case ENUM_FORMAT_EXCEPTION: j = cJSON_CreateString("FormatException"); break;
470472 case ENUM_FRIEND: j = cJSON_CreateString("friend"); break;
471473 case ENUM_FROM: j = cJSON_CreateString("from"); break;
474+ case ENUM_FROM_DICT: j = cJSON_CreateString("from_dict"); break;
472475 case ENUM_FROM_JSON: j = cJSON_CreateString("from_json"); break;
473476 case ENUM_FUNC: j = cJSON_CreateString("func"); break;
474477 case ENUM_FUNCTION: j = cJSON_CreateString("function"); break;
@@ -642,6 +645,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
642645 case ENUM_TO_JSON: j = cJSON_CreateString("to_json"); break;
643646 case ENUM_TOP_LEVEL: j = cJSON_CreateString("top_level"); break;
644647 case ENUM_TO_STRING: j = cJSON_CreateString("toString"); break;
648+ case ENUM_TO_DICT: j = cJSON_CreateString("to_dict"); break;
645649 case ENUM_TRANSIENT: j = cJSON_CreateString("transient"); break;
646650 case ENUM_TRUE: j = cJSON_CreateString("True"); break;
647651 case ENUM_ENUM_TRUE: j = cJSON_CreateString("true"); break;
Mschema-cjsondefault / TopLevel.h+2 −0
@@ -170,6 +170,7 @@ enum Enum {
170170 ENUM_FORMAT_EXCEPTION,
171171 ENUM_FRIEND,
172172 ENUM_FROM,
173+ ENUM_FROM_DICT,
173174 ENUM_FROM_JSON,
174175 ENUM_FUNC,
175176 ENUM_FUNCTION,
@@ -343,6 +344,7 @@ enum Enum {
343344 ENUM_TO_JSON,
344345 ENUM_TOP_LEVEL,
345346 ENUM_TO_STRING,
347+ ENUM_TO_DICT,
346348 ENUM_TRANSIENT,
347349 ENUM_TRUE,
348350 ENUM_ENUM_TRUE,
Mschema-cplusplusdefault / quicktype.hpp+5 −1
@@ -89,7 +89,7 @@ namespace quicktype {
8989 }
9090 #endif
9191
92- enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
92+ enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
9393
9494 class TopLevel {
9595 public:
@@ -247,6 +247,7 @@ namespace quicktype {
247247 {"FormatException", Enum::FORMAT_EXCEPTION},
248248 {"friend", Enum::FRIEND},
249249 {"from", Enum::FROM},
250+ {"from_dict", Enum::FROM_DICT},
250251 {"from_json", Enum::FROM_JSON},
251252 {"func", Enum::FUNC},
252253 {"function", Enum::FUNCTION},
@@ -420,6 +421,7 @@ namespace quicktype {
420421 {"to_json", Enum::TO_JSON},
421422 {"top_level", Enum::TOP_LEVEL},
422423 {"toString", Enum::TO_STRING},
424+ {"to_dict", Enum::TO_DICT},
423425 {"transient", Enum::TRANSIENT},
424426 {"True", Enum::TRUE},
425427 {"true", Enum::ENUM_TRUE},
@@ -590,6 +592,7 @@ namespace quicktype {
590592 case Enum::FORMAT_EXCEPTION: j = "FormatException"; break;
591593 case Enum::FRIEND: j = "friend"; break;
592594 case Enum::FROM: j = "from"; break;
595+ case Enum::FROM_DICT: j = "from_dict"; break;
593596 case Enum::FROM_JSON: j = "from_json"; break;
594597 case Enum::FUNC: j = "func"; break;
595598 case Enum::FUNCTION: j = "function"; break;
@@ -763,6 +766,7 @@ namespace quicktype {
763766 case Enum::TO_JSON: j = "to_json"; break;
764767 case Enum::TOP_LEVEL: j = "top_level"; break;
765768 case Enum::TO_STRING: j = "toString"; break;
769+ case Enum::TO_DICT: j = "to_dict"; break;
766770 case Enum::TRANSIENT: j = "transient"; break;
767771 case Enum::TRUE: j = "True"; break;
768772 case Enum::ENUM_TRUE: j = "true"; break;
Mschema-csharp-recordsdefault / QuickType.cs+11 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial record TopLevel
3535 {
@@ -307,6 +307,8 @@ namespace QuickType
307307 return Enum.Friend;
308308 case "from":
309309 return Enum.From;
310+ case "from_dict":
311+ return Enum.FromDict;
310312 case "from_json":
311313 return Enum.FromJson;
312314 case "func":
@@ -653,6 +655,8 @@ namespace QuickType
653655 return Enum.TopLevel;
654656 case "toString":
655657 return Enum.ToString;
658+ case "to_dict":
659+ return Enum.ToDict;
656660 case "transient":
657661 return Enum.Transient;
658662 case "True":
@@ -1108,6 +1112,9 @@ namespace QuickType
11081112 case Enum.From:
11091113 serializer.Serialize(writer, "from");
11101114 return;
1115+ case Enum.FromDict:
1116+ serializer.Serialize(writer, "from_dict");
1117+ return;
11111118 case Enum.FromJson:
11121119 serializer.Serialize(writer, "from_json");
11131120 return;
@@ -1627,6 +1634,9 @@ namespace QuickType
16271634 case Enum.ToString:
16281635 serializer.Serialize(writer, "toString");
16291636 return;
1637+ case Enum.ToDict:
1638+ serializer.Serialize(writer, "to_dict");
1639+ return;
16301640 case Enum.Transient:
16311641 serializer.Serialize(writer, "transient");
16321642 return;
Mschema-csharp-SystemTextJsondefault / QuickType.cs+11 −1
@@ -27,7 +27,7 @@ namespace QuickType
2727 public Enum? Enum { get; set; }
2828 }
2929
30- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
30+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3131
3232 public partial class TopLevel
3333 {
@@ -304,6 +304,8 @@ namespace QuickType
304304 return Enum.Friend;
305305 case "from":
306306 return Enum.From;
307+ case "from_dict":
308+ return Enum.FromDict;
307309 case "from_json":
308310 return Enum.FromJson;
309311 case "func":
@@ -650,6 +652,8 @@ namespace QuickType
650652 return Enum.TopLevel;
651653 case "toString":
652654 return Enum.ToString;
655+ case "to_dict":
656+ return Enum.ToDict;
653657 case "transient":
654658 return Enum.Transient;
655659 case "True":
@@ -1099,6 +1103,9 @@ namespace QuickType
10991103 case Enum.From:
11001104 JsonSerializer.Serialize(writer, "from", options);
11011105 return;
1106+ case Enum.FromDict:
1107+ JsonSerializer.Serialize(writer, "from_dict", options);
1108+ return;
11021109 case Enum.FromJson:
11031110 JsonSerializer.Serialize(writer, "from_json", options);
11041111 return;
@@ -1618,6 +1625,9 @@ namespace QuickType
16181625 case Enum.ToString:
16191626 JsonSerializer.Serialize(writer, "toString", options);
16201627 return;
1628+ case Enum.ToDict:
1629+ JsonSerializer.Serialize(writer, "to_dict", options);
1630+ return;
16211631 case Enum.Transient:
16221632 JsonSerializer.Serialize(writer, "transient", options);
16231633 return;
Mschema-csharpdefault / QuickType.cs+11 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial class TopLevel
3535 {
@@ -307,6 +307,8 @@ namespace QuickType
307307 return Enum.Friend;
308308 case "from":
309309 return Enum.From;
310+ case "from_dict":
311+ return Enum.FromDict;
310312 case "from_json":
311313 return Enum.FromJson;
312314 case "func":
@@ -653,6 +655,8 @@ namespace QuickType
653655 return Enum.TopLevel;
654656 case "toString":
655657 return Enum.ToString;
658+ case "to_dict":
659+ return Enum.ToDict;
656660 case "transient":
657661 return Enum.Transient;
658662 case "True":
@@ -1108,6 +1112,9 @@ namespace QuickType
11081112 case Enum.From:
11091113 serializer.Serialize(writer, "from");
11101114 return;
1115+ case Enum.FromDict:
1116+ serializer.Serialize(writer, "from_dict");
1117+ return;
11111118 case Enum.FromJson:
11121119 serializer.Serialize(writer, "from_json");
11131120 return;
@@ -1627,6 +1634,9 @@ namespace QuickType
16271634 case Enum.ToString:
16281635 serializer.Serialize(writer, "toString");
16291636 return;
1637+ case Enum.ToDict:
1638+ serializer.Serialize(writer, "to_dict");
1639+ return;
16301640 case Enum.Transient:
16311641 serializer.Serialize(writer, "transient");
16321642 return;
Mschema-dartdefault / TopLevel.dart+4 −0
@@ -146,6 +146,7 @@ enum Enum {
146146 FORMAT_EXCEPTION,
147147 FRIEND,
148148 FROM,
149+ FROM_DICT,
149150 FROM_JSON,
150151 FUNC,
151152 FUNCTION,
@@ -319,6 +320,7 @@ enum Enum {
319320 TO_JSON,
320321 TOP_LEVEL,
321322 TO_STRING,
323+ TO_DICT,
322324 TRANSIENT,
323325 TRUE,
324326 ENUM_TRUE,
@@ -482,6 +484,7 @@ final enumValues = EnumValues({
482484 "FormatException": Enum.FORMAT_EXCEPTION,
483485 "friend": Enum.FRIEND,
484486 "from": Enum.FROM,
487+ "from_dict": Enum.FROM_DICT,
485488 "from_json": Enum.FROM_JSON,
486489 "func": Enum.FUNC,
487490 "function": Enum.FUNCTION,
@@ -655,6 +658,7 @@ final enumValues = EnumValues({
655658 "to_json": Enum.TO_JSON,
656659 "top_level": Enum.TOP_LEVEL,
657660 "toString": Enum.TO_STRING,
661+ "to_dict": Enum.TO_DICT,
658662 "transient": Enum.TRANSIENT,
659663 "True": Enum.TRUE,
660664 "true": Enum.ENUM_TRUE,
Mschema-elixirdefault / QuickType.ex+2 −0
@@ -128,6 +128,7 @@ defmodule EnumEnum do
128128 :FormatException,
129129 :friend,
130130 :from,
131+ :from_dict,
131132 :from_json,
132133 :func,
133134 :function,
@@ -301,6 +302,7 @@ defmodule EnumEnum do
301302 :to_json,
302303 :top_level,
303304 :toString,
305+ :to_dict,
304306 :transient,
305307 :True,
306308 :true,
Mschema-elmdefault / QuickType.elm+6 −0
@@ -149,6 +149,7 @@ type EnumEnum
149149 | FormatException
150150 | Friend
151151 | From
152+ | FromDict
152153 | FromJSON
153154 | Func
154155 | Function
@@ -322,6 +323,7 @@ type EnumEnum
322323 | ToJSON
323324 | TopLevel
324325 | ToString
326+ | ToDict
325327 | Transient
326328 | EnumTrue
327329 | PurpleTrue
@@ -510,6 +512,7 @@ enumEnum =
510512 "FormatException" -> Jdec.succeed FormatException
511513 "friend" -> Jdec.succeed Friend
512514 "from" -> Jdec.succeed From
515+ "from_dict" -> Jdec.succeed FromDict
513516 "from_json" -> Jdec.succeed FromJSON
514517 "func" -> Jdec.succeed Func
515518 "function" -> Jdec.succeed Function
@@ -683,6 +686,7 @@ enumEnum =
683686 "to_json" -> Jdec.succeed ToJSON
684687 "top_level" -> Jdec.succeed TopLevel
685688 "toString" -> Jdec.succeed ToString
689+ "to_dict" -> Jdec.succeed ToDict
686690 "transient" -> Jdec.succeed Transient
687691 "True" -> Jdec.succeed EnumTrue
688692 "true" -> Jdec.succeed PurpleTrue
@@ -848,6 +852,7 @@ encodeEnumEnum x = case x of
848852 FormatException -> Jenc.string "FormatException"
849853 Friend -> Jenc.string "friend"
850854 From -> Jenc.string "from"
855+ FromDict -> Jenc.string "from_dict"
851856 FromJSON -> Jenc.string "from_json"
852857 Func -> Jenc.string "func"
853858 Function -> Jenc.string "function"
@@ -1021,6 +1026,7 @@ encodeEnumEnum x = case x of
10211026 ToJSON -> Jenc.string "to_json"
10221027 TopLevel -> Jenc.string "top_level"
10231028 ToString -> Jenc.string "toString"
1029+ ToDict -> Jenc.string "to_dict"
10241030 Transient -> Jenc.string "transient"
10251031 EnumTrue -> Jenc.string "True"
10261032 PurpleTrue -> Jenc.string "true"
Mschema-flowdefault / TopLevel.js+4 −0
@@ -136,6 +136,7 @@ export type Enum =
136136 | "FormatException"
137137 | "friend"
138138 | "from"
139+ | "from_dict"
139140 | "from_json"
140141 | "func"
141142 | "function"
@@ -309,6 +310,7 @@ export type Enum =
309310 | "to_json"
310311 | "top_level"
311312 | "toString"
313+ | "to_dict"
312314 | "transient"
313315 | "True"
314316 | "true"
@@ -659,6 +661,7 @@ const typeMap: any = {
659661 "FormatException",
660662 "friend",
661663 "from",
664+ "from_dict",
662665 "from_json",
663666 "func",
664667 "function",
@@ -832,6 +835,7 @@ const typeMap: any = {
832835 "to_json",
833836 "top_level",
834837 "toString",
838+ "to_dict",
835839 "transient",
836840 "True",
837841 "true",
Mschema-golangdefault / quicktype.go+3 −1
@@ -146,6 +146,7 @@ const (
146146 FormatException EnumEnum = "FormatException"
147147 Friend EnumEnum = "friend"
148148 From EnumEnum = "from"
149+ FromDict EnumEnum = "from_dict"
149150 FromJSON EnumEnum = "from_json"
150151 Func EnumEnum = "func"
151152 Function EnumEnum = "function"
@@ -319,6 +320,7 @@ const (
319320 ToJSON EnumEnum = "to_json"
320321 EnumTopLevel EnumEnum = "top_level"
321322 ToString EnumEnum = "toString"
323+ ToDict EnumEnum = "to_dict"
322324 Transient EnumEnum = "transient"
323325 True EnumEnum = "True"
324326 EnumTrue EnumEnum = "true"
@@ -367,7 +369,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
367369 var value string
368370 if err := json.Unmarshal(data, &value); err != nil { return err }
369371 switch EnumEnum(value) {
370- case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
372+ case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
371373 }
372374 return invalidEnumEnum(value)
373375 }
Mschema-haskelldefault / QuickType.hs+6 −0
@@ -139,6 +139,7 @@ data EnumEnum
139139 | FormatExceptionEnumEnum
140140 | FriendEnumEnum
141141 | FromEnumEnum
142+ | FromDictEnumEnum
142143 | FromJSONEnumEnum
143144 | FuncEnumEnum
144145 | FunctionEnumEnum
@@ -312,6 +313,7 @@ data EnumEnum
312313 | ToJSONEnumEnum
313314 | TopLevelEnumEnum
314315 | ToStringEnumEnum
316+ | ToDictEnumEnum
315317 | TransientEnumEnum
316318 | TrueEnumEnum
317319 | PurpleTrueEnumEnum
@@ -488,6 +490,7 @@ instance ToJSON EnumEnum where
488490 toJSON FormatExceptionEnumEnum = "FormatException"
489491 toJSON FriendEnumEnum = "friend"
490492 toJSON FromEnumEnum = "from"
493+ toJSON FromDictEnumEnum = "from_dict"
491494 toJSON FromJSONEnumEnum = "from_json"
492495 toJSON FuncEnumEnum = "func"
493496 toJSON FunctionEnumEnum = "function"
@@ -661,6 +664,7 @@ instance ToJSON EnumEnum where
661664 toJSON ToJSONEnumEnum = "to_json"
662665 toJSON TopLevelEnumEnum = "top_level"
663666 toJSON ToStringEnumEnum = "toString"
667+ toJSON ToDictEnumEnum = "to_dict"
664668 toJSON TransientEnumEnum = "transient"
665669 toJSON TrueEnumEnum = "True"
666670 toJSON PurpleTrueEnumEnum = "true"
@@ -825,6 +829,7 @@ instance FromJSON EnumEnum where
825829 parseText "FormatException" = return FormatExceptionEnumEnum
826830 parseText "friend" = return FriendEnumEnum
827831 parseText "from" = return FromEnumEnum
832+ parseText "from_dict" = return FromDictEnumEnum
828833 parseText "from_json" = return FromJSONEnumEnum
829834 parseText "func" = return FuncEnumEnum
830835 parseText "function" = return FunctionEnumEnum
@@ -998,6 +1003,7 @@ instance FromJSON EnumEnum where
9981003 parseText "to_json" = return ToJSONEnumEnum
9991004 parseText "top_level" = return TopLevelEnumEnum
10001005 parseText "toString" = return ToStringEnumEnum
1006+ parseText "to_dict" = return ToDictEnumEnum
10011007 parseText "transient" = return TransientEnumEnum
10021008 parseText "True" = return TrueEnumEnum
10031009 parseText "true" = return PurpleTrueEnumEnum
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+5 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -130,6 +130,7 @@ public enum Enum {
130130 case FORMAT_EXCEPTION: return "FormatException";
131131 case FRIEND: return "friend";
132132 case FROM: return "from";
133+ case FROM_DICT: return "from_dict";
133134 case FROM_JSON: return "from_json";
134135 case FUNC: return "func";
135136 case FUNCTION: return "function";
@@ -303,6 +304,7 @@ public enum Enum {
303304 case TO_JSON: return "to_json";
304305 case TOP_LEVEL: return "top_level";
305306 case TO_STRING: return "toString";
307+ case TO_DICT: return "to_dict";
306308 case TRANSIENT: return "transient";
307309 case TRUE: return "True";
308310 case ENUM_TRUE: return "true";
@@ -469,6 +471,7 @@ public enum Enum {
469471 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
470472 if (value.equals("friend")) return FRIEND;
471473 if (value.equals("from")) return FROM;
474+ if (value.equals("from_dict")) return FROM_DICT;
472475 if (value.equals("from_json")) return FROM_JSON;
473476 if (value.equals("func")) return FUNC;
474477 if (value.equals("function")) return FUNCTION;
@@ -642,6 +645,7 @@ public enum Enum {
642645 if (value.equals("to_json")) return TO_JSON;
643646 if (value.equals("top_level")) return TOP_LEVEL;
644647 if (value.equals("toString")) return TO_STRING;
648+ if (value.equals("to_dict")) return TO_DICT;
645649 if (value.equals("transient")) return TRANSIENT;
646650 if (value.equals("True")) return TRUE;
647651 if (value.equals("true")) return ENUM_TRUE;
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+5 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -130,6 +130,7 @@ public enum Enum {
130130 case FORMAT_EXCEPTION: return "FormatException";
131131 case FRIEND: return "friend";
132132 case FROM: return "from";
133+ case FROM_DICT: return "from_dict";
133134 case FROM_JSON: return "from_json";
134135 case FUNC: return "func";
135136 case FUNCTION: return "function";
@@ -303,6 +304,7 @@ public enum Enum {
303304 case TO_JSON: return "to_json";
304305 case TOP_LEVEL: return "top_level";
305306 case TO_STRING: return "toString";
307+ case TO_DICT: return "to_dict";
306308 case TRANSIENT: return "transient";
307309 case TRUE: return "True";
308310 case ENUM_TRUE: return "true";
@@ -469,6 +471,7 @@ public enum Enum {
469471 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
470472 if (value.equals("friend")) return FRIEND;
471473 if (value.equals("from")) return FROM;
474+ if (value.equals("from_dict")) return FROM_DICT;
472475 if (value.equals("from_json")) return FROM_JSON;
473476 if (value.equals("func")) return FUNC;
474477 if (value.equals("function")) return FUNCTION;
@@ -642,6 +645,7 @@ public enum Enum {
642645 if (value.equals("to_json")) return TO_JSON;
643646 if (value.equals("top_level")) return TOP_LEVEL;
644647 if (value.equals("toString")) return TO_STRING;
648+ if (value.equals("to_dict")) return TO_DICT;
645649 if (value.equals("transient")) return TRANSIENT;
646650 if (value.equals("True")) return TRUE;
647651 if (value.equals("true")) return ENUM_TRUE;
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+5 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -130,6 +130,7 @@ public enum Enum {
130130 case FORMAT_EXCEPTION: return "FormatException";
131131 case FRIEND: return "friend";
132132 case FROM: return "from";
133+ case FROM_DICT: return "from_dict";
133134 case FROM_JSON: return "from_json";
134135 case FUNC: return "func";
135136 case FUNCTION: return "function";
@@ -303,6 +304,7 @@ public enum Enum {
303304 case TO_JSON: return "to_json";
304305 case TOP_LEVEL: return "top_level";
305306 case TO_STRING: return "toString";
307+ case TO_DICT: return "to_dict";
306308 case TRANSIENT: return "transient";
307309 case TRUE: return "True";
308310 case ENUM_TRUE: return "true";
@@ -469,6 +471,7 @@ public enum Enum {
469471 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
470472 if (value.equals("friend")) return FRIEND;
471473 if (value.equals("from")) return FROM;
474+ if (value.equals("from_dict")) return FROM_DICT;
472475 if (value.equals("from_json")) return FROM_JSON;
473476 if (value.equals("func")) return FUNC;
474477 if (value.equals("function")) return FUNCTION;
@@ -642,6 +645,7 @@ public enum Enum {
642645 if (value.equals("to_json")) return TO_JSON;
643646 if (value.equals("top_level")) return TOP_LEVEL;
644647 if (value.equals("toString")) return TO_STRING;
648+ if (value.equals("to_dict")) return TO_DICT;
645649 if (value.equals("transient")) return TRANSIENT;
646650 if (value.equals("True")) return TRUE;
647651 if (value.equals("true")) return ENUM_TRUE;
Mschema-javascript-prop-typesdefault / toplevel.js+1 −1
@@ -13,7 +13,7 @@
1313 import PropTypes from "prop-types";
1414
1515 let _TopLevel;
16-const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'self', 'Sendable', 'serialize', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
16+const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_dict', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'self', 'Sendable', 'serialize', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'to_dict', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
1717 _TopLevel = PropTypes.shape({
1818 "enum": PropTypes.oneOfType([_Enum, PropTypes.oneOf([null])]),
1919 });
Mschema-javascriptdefault / TopLevel.js+2 −0
@@ -317,6 +317,7 @@ const typeMap = {
317317 "FormatException",
318318 "friend",
319319 "from",
320+ "from_dict",
320321 "from_json",
321322 "func",
322323 "function",
@@ -490,6 +491,7 @@ const typeMap = {
490491 "to_json",
491492 "top_level",
492493 "toString",
494+ "to_dict",
493495 "transient",
494496 "True",
495497 "true",
Mschema-kotlin-jacksondefault / TopLevel.kt+4 −0
@@ -162,6 +162,7 @@ enum class EnumEnum(val value: String) {
162162 FormatException("FormatException"),
163163 Friend("friend"),
164164 From("from"),
165+ FromDict("from_dict"),
165166 FromJSON("from_json"),
166167 Func("func"),
167168 Function("function"),
@@ -335,6 +336,7 @@ enum class EnumEnum(val value: String) {
335336 ToJSON("to_json"),
336337 TopLevel("top_level"),
337338 ToString("toString"),
339+ ToDict("to_dict"),
338340 Transient("transient"),
339341 True("True"),
340342 EnumTrue("true"),
@@ -498,6 +500,7 @@ enum class EnumEnum(val value: String) {
498500 "FormatException" -> FormatException
499501 "friend" -> Friend
500502 "from" -> From
503+ "from_dict" -> FromDict
501504 "from_json" -> FromJSON
502505 "func" -> Func
503506 "function" -> Function
@@ -671,6 +674,7 @@ enum class EnumEnum(val value: String) {
671674 "to_json" -> ToJSON
672675 "top_level" -> TopLevel
673676 "toString" -> ToString
677+ "to_dict" -> ToDict
674678 "transient" -> Transient
675679 "True" -> True
676680 "true" -> EnumTrue
Mschema-kotlindefault / TopLevel.kt+4 −0
@@ -149,6 +149,7 @@ enum class EnumEnum(val value: String) {
149149 FormatException("FormatException"),
150150 Friend("friend"),
151151 From("from"),
152+ FromDict("from_dict"),
152153 FromJSON("from_json"),
153154 Func("func"),
154155 Function("function"),
@@ -322,6 +323,7 @@ enum class EnumEnum(val value: String) {
322323 ToJSON("to_json"),
323324 TopLevel("top_level"),
324325 ToString("toString"),
326+ ToDict("to_dict"),
325327 Transient("transient"),
326328 True("True"),
327329 EnumTrue("true"),
@@ -485,6 +487,7 @@ enum class EnumEnum(val value: String) {
485487 "FormatException" -> FormatException
486488 "friend" -> Friend
487489 "from" -> From
490+ "from_dict" -> FromDict
488491 "from_json" -> FromJSON
489492 "func" -> Func
490493 "function" -> Function
@@ -658,6 +661,7 @@ enum class EnumEnum(val value: String) {
658661 "to_json" -> ToJSON
659662 "top_level" -> TopLevel
660663 "toString" -> ToString
664+ "to_dict" -> ToDict
661665 "transient" -> Transient
662666 "True" -> True
663667 "true" -> EnumTrue
Mschema-kotlinxdefault / TopLevel.kt+2 −0
@@ -138,6 +138,7 @@ enum class EnumEnum(val value: String) {
138138 @SerialName("FormatException") FormatException("FormatException"),
139139 @SerialName("friend") Friend("friend"),
140140 @SerialName("from") From("from"),
141+ @SerialName("from_dict") FromDict("from_dict"),
141142 @SerialName("from_json") FromJSON("from_json"),
142143 @SerialName("func") Func("func"),
143144 @SerialName("function") Function("function"),
@@ -311,6 +312,7 @@ enum class EnumEnum(val value: String) {
311312 @SerialName("to_json") ToJSON("to_json"),
312313 @SerialName("top_level") TopLevel("top_level"),
313314 @SerialName("toString") ToString("toString"),
315+ @SerialName("to_dict") ToDict("to_dict"),
314316 @SerialName("transient") Transient("transient"),
315317 @SerialName("True") True("True"),
316318 @SerialName("true") EnumTrue("true"),
Mschema-objective-cdefault / QTTopLevel.h+2 −0
@@ -136,6 +136,7 @@ NS_ASSUME_NONNULL_BEGIN
136136 + (QTEnum *)formatException;
137137 + (QTEnum *)friend;
138138 + (QTEnum *)from;
139++ (QTEnum *)fromDict;
139140 + (QTEnum *)fromJSON;
140141 + (QTEnum *)func;
141142 + (QTEnum *)function;
@@ -309,6 +310,7 @@ NS_ASSUME_NONNULL_BEGIN
309310 + (QTEnum *)toJSON;
310311 + (QTEnum *)topLevel;
311312 + (QTEnum *)toString;
313++ (QTEnum *)toDict;
312314 + (QTEnum *)transient;
313315 + (QTEnum *)enumTrue;
314316 + (QTEnum *)true1;
Mschema-objective-cdefault / QTTopLevel.m+4 −0
@@ -139,6 +139,7 @@ NS_ASSUME_NONNULL_BEGIN
139139 @"FormatException": [[QTEnum alloc] initWithValue:@"FormatException"],
140140 @"friend": [[QTEnum alloc] initWithValue:@"friend"],
141141 @"from": [[QTEnum alloc] initWithValue:@"from"],
142+ @"from_dict": [[QTEnum alloc] initWithValue:@"from_dict"],
142143 @"from_json": [[QTEnum alloc] initWithValue:@"from_json"],
143144 @"func": [[QTEnum alloc] initWithValue:@"func"],
144145 @"function": [[QTEnum alloc] initWithValue:@"function"],
@@ -312,6 +313,7 @@ NS_ASSUME_NONNULL_BEGIN
312313 @"to_json": [[QTEnum alloc] initWithValue:@"to_json"],
313314 @"top_level": [[QTEnum alloc] initWithValue:@"top_level"],
314315 @"toString": [[QTEnum alloc] initWithValue:@"toString"],
316+ @"to_dict": [[QTEnum alloc] initWithValue:@"to_dict"],
315317 @"transient": [[QTEnum alloc] initWithValue:@"transient"],
316318 @"True": [[QTEnum alloc] initWithValue:@"True"],
317319 @"true": [[QTEnum alloc] initWithValue:@"true"],
@@ -475,6 +477,7 @@ NS_ASSUME_NONNULL_BEGIN
475477 + (QTEnum *)formatException { return QTEnum.values[@"FormatException"]; }
476478 + (QTEnum *)friend { return QTEnum.values[@"friend"]; }
477479 + (QTEnum *)from { return QTEnum.values[@"from"]; }
480++ (QTEnum *)fromDict { return QTEnum.values[@"from_dict"]; }
478481 + (QTEnum *)fromJSON { return QTEnum.values[@"from_json"]; }
479482 + (QTEnum *)func { return QTEnum.values[@"func"]; }
480483 + (QTEnum *)function { return QTEnum.values[@"function"]; }
@@ -648,6 +651,7 @@ NS_ASSUME_NONNULL_BEGIN
648651 + (QTEnum *)toJSON { return QTEnum.values[@"to_json"]; }
649652 + (QTEnum *)topLevel { return QTEnum.values[@"top_level"]; }
650653 + (QTEnum *)toString { return QTEnum.values[@"toString"]; }
654++ (QTEnum *)toDict { return QTEnum.values[@"to_dict"]; }
651655 + (QTEnum *)transient { return QTEnum.values[@"transient"]; }
652656 + (QTEnum *)enumTrue { return QTEnum.values[@"True"]; }
653657 + (QTEnum *)true1 { return QTEnum.values[@"true"]; }
Mschema-phpdefault / TopLevel.php+8 −0
@@ -234,6 +234,7 @@ class EnumEnum {
234234 public static EnumEnum $FORMAT_EXCEPTION;
235235 public static EnumEnum $FRIEND;
236236 public static EnumEnum $FROM;
237+ public static EnumEnum $FROM_DICT;
237238 public static EnumEnum $FROM_JSON;
238239 public static EnumEnum $FUNC;
239240 public static EnumEnum $FUNCTION;
@@ -407,6 +408,7 @@ class EnumEnum {
407408 public static EnumEnum $TO_JSON;
408409 public static EnumEnum $TOP_LEVEL;
409410 public static EnumEnum $TO_STRING;
411+ public static EnumEnum $TO_DICT;
410412 public static EnumEnum $TRANSIENT;
411413 public static EnumEnum $TRUE;
412414 public static EnumEnum $ENUM_TRUE;
@@ -568,6 +570,7 @@ class EnumEnum {
568570 EnumEnum::$FORMAT_EXCEPTION = new EnumEnum('FormatException');
569571 EnumEnum::$FRIEND = new EnumEnum('friend');
570572 EnumEnum::$FROM = new EnumEnum('from');
573+ EnumEnum::$FROM_DICT = new EnumEnum('from_dict');
571574 EnumEnum::$FROM_JSON = new EnumEnum('from_json');
572575 EnumEnum::$FUNC = new EnumEnum('func');
573576 EnumEnum::$FUNCTION = new EnumEnum('function');
@@ -741,6 +744,7 @@ class EnumEnum {
741744 EnumEnum::$TO_JSON = new EnumEnum('to_json');
742745 EnumEnum::$TOP_LEVEL = new EnumEnum('top_level');
743746 EnumEnum::$TO_STRING = new EnumEnum('toString');
747+ EnumEnum::$TO_DICT = new EnumEnum('to_dict');
744748 EnumEnum::$TRANSIENT = new EnumEnum('transient');
745749 EnumEnum::$TRUE = new EnumEnum('True');
746750 EnumEnum::$ENUM_TRUE = new EnumEnum('true');
@@ -914,6 +918,7 @@ class EnumEnum {
914918 case EnumEnum::$FORMAT_EXCEPTION->enum: return 'FormatException';
915919 case EnumEnum::$FRIEND->enum: return 'friend';
916920 case EnumEnum::$FROM->enum: return 'from';
921+ case EnumEnum::$FROM_DICT->enum: return 'from_dict';
917922 case EnumEnum::$FROM_JSON->enum: return 'from_json';
918923 case EnumEnum::$FUNC->enum: return 'func';
919924 case EnumEnum::$FUNCTION->enum: return 'function';
@@ -1087,6 +1092,7 @@ class EnumEnum {
10871092 case EnumEnum::$TO_JSON->enum: return 'to_json';
10881093 case EnumEnum::$TOP_LEVEL->enum: return 'top_level';
10891094 case EnumEnum::$TO_STRING->enum: return 'toString';
1095+ case EnumEnum::$TO_DICT->enum: return 'to_dict';
10901096 case EnumEnum::$TRANSIENT->enum: return 'transient';
10911097 case EnumEnum::$TRUE->enum: return 'True';
10921098 case EnumEnum::$ENUM_TRUE->enum: return 'true';
@@ -1258,6 +1264,7 @@ class EnumEnum {
12581264 case 'FormatException': return EnumEnum::$FORMAT_EXCEPTION;
12591265 case 'friend': return EnumEnum::$FRIEND;
12601266 case 'from': return EnumEnum::$FROM;
1267+ case 'from_dict': return EnumEnum::$FROM_DICT;
12611268 case 'from_json': return EnumEnum::$FROM_JSON;
12621269 case 'func': return EnumEnum::$FUNC;
12631270 case 'function': return EnumEnum::$FUNCTION;
@@ -1431,6 +1438,7 @@ class EnumEnum {
14311438 case 'to_json': return EnumEnum::$TO_JSON;
14321439 case 'top_level': return EnumEnum::$TOP_LEVEL;
14331440 case 'toString': return EnumEnum::$TO_STRING;
1441+ case 'to_dict': return EnumEnum::$TO_DICT;
14341442 case 'transient': return EnumEnum::$TRANSIENT;
14351443 case 'True': return EnumEnum::$TRUE;
14361444 case 'true': return EnumEnum::$ENUM_TRUE;
Mschema-pikedefault / TopLevel.pmod+3 −1
@@ -154,6 +154,7 @@ enum Enum {
154154 FORMAT_EXCEPTION = "FormatException", // json: "FormatException"
155155 FRIEND = "friend", // json: "friend"
156156 FROM = "from", // json: "from"
157+ FROM_DICT = "from_dict", // json: "from_dict"
157158 FROM_JSON = "from_json", // json: "from_json"
158159 FUNC = "func", // json: "func"
159160 FUNCTION = "function", // json: "function"
@@ -327,6 +328,7 @@ enum Enum {
327328 TO_JSON = "to_json", // json: "to_json"
328329 TOP_LEVEL = "top_level", // json: "top_level"
329330 TO_STRING = "toString", // json: "toString"
331+ TO_DICT = "to_dict", // json: "to_dict"
330332 TRANSIENT = "transient", // json: "transient"
331333 TRUE = "True", // json: "True"
332334 ENUM_TRUE = "true", // json: "true"
@@ -369,5 +371,5 @@ enum Enum {
369371 }
370372
371373 Enum Enum_from_JSON(mixed json) {
372- if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
374+ if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_dict"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "to_dict"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
373375 }
Mschema-pythondefault / quicktype.py+2 −0
@@ -153,6 +153,7 @@ class EnumEnum(Enum):
153153 FORMAT_EXCEPTION = "FormatException"
154154 FRIEND = "friend"
155155 FROM = "from"
156+ FROM_DICT = "from_dict"
156157 FROM_JSON = "from_json"
157158 FUNC = "func"
158159 FUNCTION = "function"
@@ -326,6 +327,7 @@ class EnumEnum(Enum):
326327 TO_JSON = "to_json"
327328 TOP_LEVEL = "top_level"
328329 TO_STRING = "toString"
330+ TO_DICT = "to_dict"
329331 TRANSIENT = "transient"
330332 TRUE = "True"
331333 ENUM_TRUE = "true"
Mschema-rubydefault / TopLevel.rb+3 −1
@@ -17,7 +17,7 @@ module Types
1717
1818 Hash = Strict::Hash
1919 String = Strict::String
20- Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "self", "Sendable", "serialize", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
20+ Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_dict", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "self", "Sendable", "serialize", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "to_dict", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
2121 end
2222
2323 module Enum
@@ -142,6 +142,7 @@ module Enum
142142 FormatException = "FormatException"
143143 Friend = "friend"
144144 From = "from"
145+ FromDict = "from_dict"
145146 FromJSON = "from_json"
146147 Func = "func"
147148 Function = "function"
@@ -315,6 +316,7 @@ module Enum
315316 ToJSON = "to_json"
316317 TopLevel = "top_level"
317318 ToString = "toString"
319+ ToDict = "to_dict"
318320 Transient = "transient"
319321 True = "True"
320322 EnumTrue = "true"
Mschema-rustdefault / module_under_test.rs+6 −0
@@ -305,6 +305,9 @@ pub enum Enum {
305305
306306 From,
307307
308+ #[serde(rename = "from_dict")]
309+ FromDict,
310+
308311 #[serde(rename = "from_json")]
309312 FromJson,
310313
@@ -714,6 +717,9 @@ pub enum Enum {
714717 #[serde(rename = "toString")]
715718 ToString,
716719
720+ #[serde(rename = "to_dict")]
721+ ToDict,
722+
717723 Transient,
718724
719725 #[serde(rename = "True")]
Mschema-scala3-upickledefault / TopLevel.scala+6 −0
@@ -204,6 +204,7 @@ enum EnumEnum :
204204 case FormatException
205205 case Friend
206206 case From
207+ case FromDict
207208 case FromJSON
208209 case Func
209210 case Function
@@ -377,6 +378,7 @@ enum EnumEnum :
377378 case ToJSON
378379 case TopLevel
379380 case ToString
381+ case ToDict
380382 case Transient
381383 case True
382384 case EnumTrue
@@ -540,6 +542,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
540542 case EnumEnum.FormatException => "FormatException"
541543 case EnumEnum.Friend => "friend"
542544 case EnumEnum.From => "from"
545+ case EnumEnum.FromDict => "from_dict"
543546 case EnumEnum.FromJSON => "from_json"
544547 case EnumEnum.Func => "func"
545548 case EnumEnum.Function => "function"
@@ -713,6 +716,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
713716 case EnumEnum.ToJSON => "to_json"
714717 case EnumEnum.TopLevel => "top_level"
715718 case EnumEnum.ToString => "toString"
719+ case EnumEnum.ToDict => "to_dict"
716720 case EnumEnum.Transient => "transient"
717721 case EnumEnum.True => "True"
718722 case EnumEnum.EnumTrue => "true"
@@ -875,6 +879,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
875879 case "FormatException" => EnumEnum.FormatException
876880 case "friend" => EnumEnum.Friend
877881 case "from" => EnumEnum.From
882+ case "from_dict" => EnumEnum.FromDict
878883 case "from_json" => EnumEnum.FromJSON
879884 case "func" => EnumEnum.Func
880885 case "function" => EnumEnum.Function
@@ -1048,6 +1053,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
10481053 case "to_json" => EnumEnum.ToJSON
10491054 case "top_level" => EnumEnum.TopLevel
10501055 case "toString" => EnumEnum.ToString
1056+ case "to_dict" => EnumEnum.ToDict
10511057 case "transient" => EnumEnum.Transient
10521058 case "True" => EnumEnum.True
10531059 case "true" => EnumEnum.EnumTrue
Mschema-scala3default / TopLevel.scala+6 −0
@@ -133,6 +133,7 @@ enum EnumEnum :
133133 case FormatException
134134 case Friend
135135 case From
136+ case FromDict
136137 case FromJSON
137138 case Func
138139 case Function
@@ -306,6 +307,7 @@ enum EnumEnum :
306307 case ToJSON
307308 case TopLevel
308309 case ToString
310+ case ToDict
309311 case Transient
310312 case True
311313 case EnumTrue
@@ -468,6 +470,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
468470 case "FormatException" => scala.Right(EnumEnum.FormatException)
469471 case "friend" => scala.Right(EnumEnum.Friend)
470472 case "from" => scala.Right(EnumEnum.From)
473+ case "from_dict" => scala.Right(EnumEnum.FromDict)
471474 case "from_json" => scala.Right(EnumEnum.FromJSON)
472475 case "func" => scala.Right(EnumEnum.Func)
473476 case "function" => scala.Right(EnumEnum.Function)
@@ -641,6 +644,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
641644 case "to_json" => scala.Right(EnumEnum.ToJSON)
642645 case "top_level" => scala.Right(EnumEnum.TopLevel)
643646 case "toString" => scala.Right(EnumEnum.ToString)
647+ case "to_dict" => scala.Right(EnumEnum.ToDict)
644648 case "transient" => scala.Right(EnumEnum.Transient)
645649 case "True" => scala.Right(EnumEnum.True)
646650 case "true" => scala.Right(EnumEnum.EnumTrue)
@@ -804,6 +808,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
804808 case EnumEnum.FormatException => "FormatException"
805809 case EnumEnum.Friend => "friend"
806810 case EnumEnum.From => "from"
811+ case EnumEnum.FromDict => "from_dict"
807812 case EnumEnum.FromJSON => "from_json"
808813 case EnumEnum.Func => "func"
809814 case EnumEnum.Function => "function"
@@ -977,6 +982,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
977982 case EnumEnum.ToJSON => "to_json"
978983 case EnumEnum.TopLevel => "top_level"
979984 case EnumEnum.ToString => "toString"
985+ case EnumEnum.ToDict => "to_dict"
980986 case EnumEnum.Transient => "transient"
981987 case EnumEnum.True => "True"
982988 case EnumEnum.EnumTrue => "true"
Mschema-schemadefault / TopLevel.schema+2 −0
@@ -137,6 +137,7 @@
137137 "FormatException",
138138 "friend",
139139 "from",
140+ "from_dict",
140141 "from_json",
141142 "func",
142143 "function",
@@ -310,6 +311,7 @@
310311 "to_json",
311312 "top_level",
312313 "toString",
314+ "to_dict",
313315 "transient",
314316 "True",
315317 "true",
Mschema-swiftdefault / quicktype.swift+2 −0
@@ -171,6 +171,7 @@ enum Enum: String, Codable {
171171 case formatException = "FormatException"
172172 case friend = "friend"
173173 case from = "from"
174+ case fromDict = "from_dict"
174175 case fromJSON = "from_json"
175176 case enumFunc = "func"
176177 case function = "function"
@@ -344,6 +345,7 @@ enum Enum: String, Codable {
344345 case toJSON = "to_json"
345346 case topLevel = "top_level"
346347 case toString = "toString"
348+ case toDict = "to_dict"
347349 case transient = "transient"
348350 case enumTrue = "True"
349351 case purpleTrue = "true"
Mschema-typescript-effect-schemadefault / TopLevel.ts+2 −0
@@ -123,6 +123,7 @@ export const Enum = S.Literal(
123123 "FormatException",
124124 "friend",
125125 "from",
126+ "from_dict",
126127 "from_json",
127128 "func",
128129 "function",
@@ -296,6 +297,7 @@ export const Enum = S.Literal(
296297 "to_json",
297298 "top_level",
298299 "toString",
300+ "to_dict",
299301 "transient",
300302 "True",
301303 "true",
Mschema-typescript-zoddefault / TopLevel.ts+2 −0
@@ -123,6 +123,7 @@ export const EnumSchema = z.enum([
123123 "FormatException",
124124 "friend",
125125 "from",
126+ "from_dict",
126127 "from_json",
127128 "func",
128129 "function",
@@ -296,6 +297,7 @@ export const EnumSchema = z.enum([
296297 "to_json",
297298 "top_level",
298299 "toString",
300+ "to_dict",
299301 "transient",
300302 "True",
301303 "true",
Mschema-typescriptdefault / TopLevel.ts+3 −1
@@ -12,7 +12,7 @@ export interface TopLevel {
1212 [property: string]: unknown;
1313 }
1414
15-export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "Sendable" | "serialize" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
15+export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_dict" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "Sendable" | "serialize" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "to_dict" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
1616
1717 // Converts JSON strings to/from your types
1818 // and asserts the results of JSON.parse at runtime
@@ -326,6 +326,7 @@ const typeMap: any = {
326326 "FormatException",
327327 "friend",
328328 "from",
329+ "from_dict",
329330 "from_json",
330331 "func",
331332 "function",
@@ -499,6 +500,7 @@ const typeMap: any = {
499500 "to_json",
500501 "top_level",
501502 "toString",
503+ "to_dict",
502504 "transient",
503505 "True",
504506 "true",
Test case

test/inputs/schema/keyword-unions.schema

43 generated files · +2,573 −219
Mschema-cjsondefault / TopLevel.c+208 −0
@@ -3173,6 +3173,50 @@ void cJSON_DeleteUnionFrom(struct UnionFrom * x) {
31733173 }
31743174 }
31753175
3176+struct UnionFromDict * cJSON_GetUnionFromDictValue(const cJSON * j) {
3177+ struct UnionFromDict * x = cJSON_malloc(sizeof(struct UnionFromDict));
3178+ if (NULL != x) {
3179+ memset(x, 0, sizeof(struct UnionFromDict));
3180+ if (cJSON_IsNumber(j)) {
3181+ x->type = cJSON_Number;
3182+ x->value.number = cJSON_GetNumberValue(j);
3183+ }
3184+ else if (cJSON_IsObject(j)) {
3185+ x->type = cJSON_Object;
3186+ x->value.from_dict = cJSON_GetFromDictValue(j);
3187+ if (NULL == x->value.from_dict) x->type = 0;
3188+ }
3189+ if (0 == x->type) { cJSON_free(x); return NULL; }
3190+ }
3191+ return x;
3192+}
3193+struct UnionFromDict * cJSON_ParseUnionFromDict(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionFromDict * x = j ? cJSON_GetUnionFromDictValue(j) : NULL; cJSON_Delete(j); return x; }
3194+char * cJSON_PrintUnionFromDict(const struct UnionFromDict * x) { cJSON * j = cJSON_CreateUnionFromDict(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
3195+
3196+cJSON * cJSON_CreateUnionFromDict(const struct UnionFromDict * x) {
3197+ cJSON * j = NULL;
3198+ if (NULL != x) {
3199+ if (cJSON_Number == x->type) {
3200+ j = cJSON_CreateNumber(x->value.number);
3201+ }
3202+ else if (cJSON_Object == x->type) {
3203+ j = cJSON_CreateFromDict(x->value.from_dict);
3204+ }
3205+ }
3206+ return j;
3207+}
3208+
3209+void cJSON_DeleteUnionFromDict(struct UnionFromDict * x) {
3210+ if (NULL != x) {
3211+ if (cJSON_Number == x->type) {
3212+ }
3213+ else if (cJSON_Object == x->type) {
3214+ cJSON_DeleteFromDict(x->value.from_dict);
3215+ }
3216+ cJSON_free(x);
3217+ }
3218+}
3219+
31763220 struct UnionFromJson * cJSON_GetUnionFromJsonValue(const cJSON * j) {
31773221 struct UnionFromJson * x = cJSON_malloc(sizeof(struct UnionFromJson));
31783222 if (NULL != x) {
@@ -8981,6 +9025,50 @@ void cJSON_DeleteUnionTimeZone(struct UnionTimeZone * x) {
89819025 }
89829026 }
89839027
9028+struct UnionToDict * cJSON_GetUnionToDictValue(const cJSON * j) {
9029+ struct UnionToDict * x = cJSON_malloc(sizeof(struct UnionToDict));
9030+ if (NULL != x) {
9031+ memset(x, 0, sizeof(struct UnionToDict));
9032+ if (cJSON_IsNumber(j)) {
9033+ x->type = cJSON_Number;
9034+ x->value.number = cJSON_GetNumberValue(j);
9035+ }
9036+ else if (cJSON_IsObject(j)) {
9037+ x->type = cJSON_Object;
9038+ x->value.to_dict = cJSON_GetToDictValue(j);
9039+ if (NULL == x->value.to_dict) x->type = 0;
9040+ }
9041+ if (0 == x->type) { cJSON_free(x); return NULL; }
9042+ }
9043+ return x;
9044+}
9045+struct UnionToDict * cJSON_ParseUnionToDict(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionToDict * x = j ? cJSON_GetUnionToDictValue(j) : NULL; cJSON_Delete(j); return x; }
9046+char * cJSON_PrintUnionToDict(const struct UnionToDict * x) { cJSON * j = cJSON_CreateUnionToDict(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
9047+
9048+cJSON * cJSON_CreateUnionToDict(const struct UnionToDict * x) {
9049+ cJSON * j = NULL;
9050+ if (NULL != x) {
9051+ if (cJSON_Number == x->type) {
9052+ j = cJSON_CreateNumber(x->value.number);
9053+ }
9054+ else if (cJSON_Object == x->type) {
9055+ j = cJSON_CreateToDict(x->value.to_dict);
9056+ }
9057+ }
9058+ return j;
9059+}
9060+
9061+void cJSON_DeleteUnionToDict(struct UnionToDict * x) {
9062+ if (NULL != x) {
9063+ if (cJSON_Number == x->type) {
9064+ }
9065+ else if (cJSON_Object == x->type) {
9066+ cJSON_DeleteToDict(x->value.to_dict);
9067+ }
9068+ cJSON_free(x);
9069+ }
9070+}
9071+
89849072 struct UnionToJson * cJSON_GetUnionToJsonValue(const cJSON * j) {
89859073 struct UnionToJson * x = cJSON_malloc(sizeof(struct UnionToJson));
89869074 if (NULL != x) {
@@ -18141,6 +18229,55 @@ void cJSON_DeleteFrom(struct From * x) {
1814118229 }
1814218230 }
1814318231
18232+struct FromDict * cJSON_ParseFromDict(const char * s) {
18233+ struct FromDict * x = NULL;
18234+ if (NULL != s) {
18235+ cJSON * j = cJSON_Parse(s);
18236+ if (NULL != j) {
18237+ x = cJSON_GetFromDictValue(j);
18238+ cJSON_Delete(j);
18239+ }
18240+ }
18241+ return x;
18242+}
18243+
18244+struct FromDict * cJSON_GetFromDictValue(const cJSON * j) {
18245+ struct FromDict * x = NULL;
18246+ if (NULL != j) {
18247+ if (NULL != (x = cJSON_malloc(sizeof(struct FromDict)))) {
18248+ memset(x, 0, sizeof(struct FromDict));
18249+ }
18250+ }
18251+ return x;
18252+}
18253+
18254+cJSON * cJSON_CreateFromDict(const struct FromDict * x) {
18255+ cJSON * j = NULL;
18256+ if (NULL != x) {
18257+ if (NULL != (j = cJSON_CreateObject())) {
18258+ }
18259+ }
18260+ return j;
18261+}
18262+
18263+char * cJSON_PrintFromDict(const struct FromDict * x) {
18264+ char * s = NULL;
18265+ if (NULL != x) {
18266+ cJSON * j = cJSON_CreateFromDict(x);
18267+ if (NULL != j) {
18268+ s = cJSON_Print(j);
18269+ cJSON_Delete(j);
18270+ }
18271+ }
18272+ return s;
18273+}
18274+
18275+void cJSON_DeleteFromDict(struct FromDict * x) {
18276+ if (NULL != x) {
18277+ cJSON_free(x);
18278+ }
18279+}
18280+
1814418281 struct FromJson * cJSON_ParseFromJson(const char * s) {
1814518282 struct FromJson * x = NULL;
1814618283 if (NULL != s) {
@@ -24609,6 +24746,55 @@ void cJSON_DeleteTimeZone(struct TimeZone * x) {
2460924746 }
2461024747 }
2461124748
24749+struct ToDict * cJSON_ParseToDict(const char * s) {
24750+ struct ToDict * x = NULL;
24751+ if (NULL != s) {
24752+ cJSON * j = cJSON_Parse(s);
24753+ if (NULL != j) {
24754+ x = cJSON_GetToDictValue(j);
24755+ cJSON_Delete(j);
24756+ }
24757+ }
24758+ return x;
24759+}
24760+
24761+struct ToDict * cJSON_GetToDictValue(const cJSON * j) {
24762+ struct ToDict * x = NULL;
24763+ if (NULL != j) {
24764+ if (NULL != (x = cJSON_malloc(sizeof(struct ToDict)))) {
24765+ memset(x, 0, sizeof(struct ToDict));
24766+ }
24767+ }
24768+ return x;
24769+}
24770+
24771+cJSON * cJSON_CreateToDict(const struct ToDict * x) {
24772+ cJSON * j = NULL;
24773+ if (NULL != x) {
24774+ if (NULL != (j = cJSON_CreateObject())) {
24775+ }
24776+ }
24777+ return j;
24778+}
24779+
24780+char * cJSON_PrintToDict(const struct ToDict * x) {
24781+ char * s = NULL;
24782+ if (NULL != x) {
24783+ cJSON * j = cJSON_CreateToDict(x);
24784+ if (NULL != j) {
24785+ s = cJSON_Print(j);
24786+ cJSON_Delete(j);
24787+ }
24788+ }
24789+ return s;
24790+}
24791+
24792+void cJSON_DeleteToDict(struct ToDict * x) {
24793+ if (NULL != x) {
24794+ cJSON_free(x);
24795+ }
24796+}
24797+
2461224798 struct ToJson * cJSON_ParseToJson(const char * s) {
2461324799 struct ToJson * x = NULL;
2461424800 if (NULL != s) {
@@ -31509,6 +31695,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3150931695 x->from = cJSON_GetUnionFromValue(cJSON_GetObjectItemCaseSensitive(j, "from"));
3151031696 if (NULL == x->from) { cJSON_DeleteTopLevel(x); return NULL; }
3151131697 }
31698+ if (cJSON_HasObjectItem(j, "from_dict")) {
31699+ if (!cJSON_IsUnionFromDict(cJSON_GetObjectItemCaseSensitive(j, "from_dict"))) { cJSON_DeleteTopLevel(x); return NULL; }
31700+ x->from_dict = cJSON_GetUnionFromDictValue(cJSON_GetObjectItemCaseSensitive(j, "from_dict"));
31701+ if (NULL == x->from_dict) { cJSON_DeleteTopLevel(x); return NULL; }
31702+ }
3151231703 if (cJSON_HasObjectItem(j, "from_json")) {
3151331704 if (!cJSON_IsUnionFromJson(cJSON_GetObjectItemCaseSensitive(j, "from_json"))) { cJSON_DeleteTopLevel(x); return NULL; }
3151431705 x->from_json = cJSON_GetUnionFromJsonValue(cJSON_GetObjectItemCaseSensitive(j, "from_json"));
@@ -32359,6 +32550,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3235932550 x->time_zone = cJSON_GetUnionTimeZoneValue(cJSON_GetObjectItemCaseSensitive(j, "TimeZone"));
3236032551 if (NULL == x->time_zone) { cJSON_DeleteTopLevel(x); return NULL; }
3236132552 }
32553+ if (cJSON_HasObjectItem(j, "to_dict")) {
32554+ if (!cJSON_IsUnionToDict(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteTopLevel(x); return NULL; }
32555+ x->to_dict = cJSON_GetUnionToDictValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
32556+ if (NULL == x->to_dict) { cJSON_DeleteTopLevel(x); return NULL; }
32557+ }
3236232558 if (cJSON_HasObjectItem(j, "to_json")) {
3236332559 if (!cJSON_IsUnionToJson(cJSON_GetObjectItemCaseSensitive(j, "to_json"))) { cJSON_DeleteTopLevel(x); return NULL; }
3236432560 x->to_json = cJSON_GetUnionToJsonValue(cJSON_GetObjectItemCaseSensitive(j, "to_json"));
@@ -32939,6 +33135,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3293933135 if (NULL != x->from) {
3294033136 cJSON_AddItemToObject(j, "from", cJSON_CreateUnionFrom(x->from));
3294133137 }
33138+ if (NULL != x->from_dict) {
33139+ cJSON_AddItemToObject(j, "from_dict", cJSON_CreateUnionFromDict(x->from_dict));
33140+ }
3294233141 if (NULL != x->from_json) {
3294333142 cJSON_AddItemToObject(j, "from_json", cJSON_CreateUnionFromJson(x->from_json));
3294433143 }
@@ -33449,6 +33648,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3344933648 if (NULL != x->time_zone) {
3345033649 cJSON_AddItemToObject(j, "TimeZone", cJSON_CreateUnionTimeZone(x->time_zone));
3345133650 }
33651+ if (NULL != x->to_dict) {
33652+ cJSON_AddItemToObject(j, "to_dict", cJSON_CreateUnionToDict(x->to_dict));
33653+ }
3345233654 if (NULL != x->to_json) {
3345333655 cJSON_AddItemToObject(j, "to_json", cJSON_CreateUnionToJson(x->to_json));
3345433656 }
@@ -33957,6 +34159,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3395734159 if (NULL != x->from) {
3395834160 cJSON_DeleteUnionFrom(x->from);
3395934161 }
34162+ if (NULL != x->from_dict) {
34163+ cJSON_DeleteUnionFromDict(x->from_dict);
34164+ }
3396034165 if (NULL != x->from_json) {
3396134166 cJSON_DeleteUnionFromJson(x->from_json);
3396234167 }
@@ -34467,6 +34672,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3446734672 if (NULL != x->time_zone) {
3446834673 cJSON_DeleteUnionTimeZone(x->time_zone);
3446934674 }
34675+ if (NULL != x->to_dict) {
34676+ cJSON_DeleteUnionToDict(x->to_dict);
34677+ }
3447034678 if (NULL != x->to_json) {
3447134679 cJSON_DeleteUnionToJson(x->to_json);
3447234680 }
Mschema-cjsondefault / TopLevel.h+50 −0
@@ -840,6 +840,17 @@ struct UnionFrom {
840840 } value;
841841 };
842842
843+struct FromDict {
844+};
845+
846+struct UnionFromDict {
847+ int type;
848+ union {
849+ double number;
850+ struct FromDict * from_dict;
851+ } value;
852+};
853+
843854 struct FromJson {
844855 };
845856
@@ -2292,6 +2303,17 @@ struct UnionTimeZone {
22922303 } value;
22932304 };
22942305
2306+struct ToDict {
2307+};
2308+
2309+struct UnionToDict {
2310+ int type;
2311+ union {
2312+ double number;
2313+ struct ToDict * to_dict;
2314+ } value;
2315+};
2316+
22952317 struct ToJson {
22962318 };
22972319
@@ -3823,6 +3845,7 @@ struct TopLevel {
38233845 struct UnionFormatException * format_exception;
38243846 struct UnionFriend * top_level_friend;
38253847 struct UnionFrom * from;
3848+ struct UnionFromDict * from_dict;
38263849 struct UnionFromJson * from_json;
38273850 struct UnionFunc * func;
38283851 struct UnionFunction * function;
@@ -3993,6 +4016,7 @@ struct TopLevel {
39934016 struct UnionTimeOnly * time_only;
39944017 struct UnionTimeOnlyConverter * time_only_converter;
39954018 struct UnionTimeZone * time_zone;
4019+ struct UnionToDict * to_dict;
39964020 struct UnionToJson * to_json;
39974021 struct UnionTopLevel * top_level;
39984022 struct UnionToString * to_string;
@@ -4540,6 +4564,13 @@ void cJSON_DeleteUnionFrom(struct UnionFrom * x);
45404564 struct UnionFrom * cJSON_ParseUnionFrom(const char * s);
45414565 char * cJSON_PrintUnionFrom(const struct UnionFrom * x);
45424566
4567+#define cJSON_IsUnionFromDict(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
4568+struct UnionFromDict * cJSON_GetUnionFromDictValue(const cJSON * j);
4569+cJSON * cJSON_CreateUnionFromDict(const struct UnionFromDict * x);
4570+void cJSON_DeleteUnionFromDict(struct UnionFromDict * x);
4571+struct UnionFromDict * cJSON_ParseUnionFromDict(const char * s);
4572+char * cJSON_PrintUnionFromDict(const struct UnionFromDict * x);
4573+
45434574 #define cJSON_IsUnionFromJson(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
45444575 struct UnionFromJson * cJSON_GetUnionFromJsonValue(const cJSON * j);
45454576 cJSON * cJSON_CreateUnionFromJson(const struct UnionFromJson * x);
@@ -5464,6 +5495,13 @@ void cJSON_DeleteUnionTimeZone(struct UnionTimeZone * x);
54645495 struct UnionTimeZone * cJSON_ParseUnionTimeZone(const char * s);
54655496 char * cJSON_PrintUnionTimeZone(const struct UnionTimeZone * x);
54665497
5498+#define cJSON_IsUnionToDict(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5499+struct UnionToDict * cJSON_GetUnionToDictValue(const cJSON * j);
5500+cJSON * cJSON_CreateUnionToDict(const struct UnionToDict * x);
5501+void cJSON_DeleteUnionToDict(struct UnionToDict * x);
5502+struct UnionToDict * cJSON_ParseUnionToDict(const char * s);
5503+char * cJSON_PrintUnionToDict(const struct UnionToDict * x);
5504+
54675505 #define cJSON_IsUnionToJson(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
54685506 struct UnionToJson * cJSON_GetUnionToJsonValue(const cJSON * j);
54695507 cJSON * cJSON_CreateUnionToJson(const struct UnionToJson * x);
@@ -6792,6 +6830,12 @@ cJSON * cJSON_CreateFrom(const struct From * x);
67926830 char * cJSON_PrintFrom(const struct From * x);
67936831 void cJSON_DeleteFrom(struct From * x);
67946832
6833+struct FromDict * cJSON_ParseFromDict(const char * s);
6834+struct FromDict * cJSON_GetFromDictValue(const cJSON * j);
6835+cJSON * cJSON_CreateFromDict(const struct FromDict * x);
6836+char * cJSON_PrintFromDict(const struct FromDict * x);
6837+void cJSON_DeleteFromDict(struct FromDict * x);
6838+
67956839 struct FromJson * cJSON_ParseFromJson(const char * s);
67966840 struct FromJson * cJSON_GetFromJsonValue(const cJSON * j);
67976841 cJSON * cJSON_CreateFromJson(const struct FromJson * x);
@@ -7584,6 +7628,12 @@ cJSON * cJSON_CreateTimeZone(const struct TimeZone * x);
75847628 char * cJSON_PrintTimeZone(const struct TimeZone * x);
75857629 void cJSON_DeleteTimeZone(struct TimeZone * x);
75867630
7631+struct ToDict * cJSON_ParseToDict(const char * s);
7632+struct ToDict * cJSON_GetToDictValue(const cJSON * j);
7633+cJSON * cJSON_CreateToDict(const struct ToDict * x);
7634+char * cJSON_PrintToDict(const struct ToDict * x);
7635+void cJSON_DeleteToDict(struct ToDict * x);
7636+
75877637 struct ToJson * cJSON_ParseToJson(const char * s);
75887638 struct ToJson * cJSON_GetToJsonValue(const cJSON * j);
75897639 cJSON * cJSON_CreateToJson(const struct ToJson * x);
Mschema-cplusplusdefault / quicktype.hpp+120 −0
@@ -953,6 +953,18 @@ namespace quicktype {
953953
954954 using UnionFrom = std::variant<From, double>;
955955
956+ class FromDict {
957+ public:
958+ FromDict() = default;
959+ virtual ~FromDict() = default;
960+
961+ private:
962+
963+ public:
964+ };
965+
966+ using UnionFromDict = std::variant<FromDict, double>;
967+
956968 class FromJson {
957969 public:
958970 FromJson() = default;
@@ -2549,6 +2561,18 @@ namespace quicktype {
25492561
25502562 using UnionTimeZone = std::variant<TimeZone, double>;
25512563
2564+ class ToDict {
2565+ public:
2566+ ToDict() = default;
2567+ virtual ~ToDict() = default;
2568+
2569+ private:
2570+
2571+ public:
2572+ };
2573+
2574+ using UnionToDict = std::variant<ToDict, double>;
2575+
25522576 class ToJson {
25532577 public:
25542578 ToJson() = default;
@@ -4201,6 +4225,7 @@ namespace quicktype {
42014225 std::optional<UnionFormatException> format_exception;
42024226 std::optional<UnionFriend> top_level_friend;
42034227 std::optional<UnionFrom> from;
4228+ std::optional<UnionFromDict> from_dict;
42044229 std::optional<UnionFromJson> from_json;
42054230 std::optional<UnionFunc> func;
42064231 std::optional<UnionFunction> function;
@@ -4371,6 +4396,7 @@ namespace quicktype {
43714396 std::optional<UnionTimeOnly> time_only;
43724397 std::optional<UnionTimeOnlyConverter> time_only_converter;
43734398 std::optional<UnionTimeZone> time_zone;
4399+ std::optional<UnionToDict> to_dict;
43744400 std::optional<UnionToJson> to_json;
43754401 std::optional<UnionTopLevel> top_level;
43764402 std::optional<UnionToString> to_string;
@@ -4902,6 +4928,10 @@ namespace quicktype {
49024928 std::optional<UnionFrom> & get_mutable_from() { return from; }
49034929 void set_from(const std::optional<UnionFrom> & value) { this->from = value; }
49044930
4931+ const std::optional<UnionFromDict> & get_from_dict() const { return from_dict; }
4932+ std::optional<UnionFromDict> & get_mutable_from_dict() { return from_dict; }
4933+ void set_from_dict(const std::optional<UnionFromDict> & value) { this->from_dict = value; }
4934+
49054935 const std::optional<UnionFromJson> & get_from_json() const { return from_json; }
49064936 std::optional<UnionFromJson> & get_mutable_from_json() { return from_json; }
49074937 void set_from_json(const std::optional<UnionFromJson> & value) { this->from_json = value; }
@@ -5582,6 +5612,10 @@ namespace quicktype {
55825612 std::optional<UnionTimeZone> & get_mutable_time_zone() { return time_zone; }
55835613 void set_time_zone(const std::optional<UnionTimeZone> & value) { this->time_zone = value; }
55845614
5615+ const std::optional<UnionToDict> & get_to_dict() const { return to_dict; }
5616+ std::optional<UnionToDict> & get_mutable_to_dict() { return to_dict; }
5617+ void set_to_dict(const std::optional<UnionToDict> & value) { this->to_dict = value; }
5618+
55855619 const std::optional<UnionToJson> & get_to_json() const { return to_json; }
55865620 std::optional<UnionToJson> & get_mutable_to_json() { return to_json; }
55875621 void set_to_json(const std::optional<UnionToJson> & value) { this->to_json = value; }
@@ -5965,6 +5999,9 @@ void to_json(json & j, const FormatException & x);
59655999 void from_json(const json & j, From & x);
59666000 void to_json(json & j, const From & x);
59676001
6002+void from_json(const json & j, FromDict & x);
6003+void to_json(json & j, const FromDict & x);
6004+
59686005 void from_json(const json & j, FromJson & x);
59696006 void to_json(json & j, const FromJson & x);
59706007
@@ -6364,6 +6401,9 @@ void to_json(json & j, const TimeOnlyConverter & x);
63646401 void from_json(const json & j, TimeZone & x);
63656402 void to_json(json & j, const TimeZone & x);
63666403
6404+void from_json(const json & j, ToDict & x);
6405+void to_json(json & j, const ToDict & x);
6406+
63676407 void from_json(const json & j, ToJson & x);
63686408 void to_json(json & j, const ToJson & x);
63696409
@@ -7181,6 +7221,12 @@ struct adl_serializer<std::variant<quicktype::From, double>> {
71817221 static void to_json(json & j, const std::variant<quicktype::From, double> & x);
71827222 };
71837223
7224+template <>
7225+struct adl_serializer<std::variant<quicktype::FromDict, double>> {
7226+ static void from_json(const json & j, std::variant<quicktype::FromDict, double> & x);
7227+ static void to_json(json & j, const std::variant<quicktype::FromDict, double> & x);
7228+};
7229+
71847230 template <>
71857231 struct adl_serializer<std::variant<quicktype::FromJson, double>> {
71867232 static void from_json(const json & j, std::variant<quicktype::FromJson, double> & x);
@@ -7979,6 +8025,12 @@ struct adl_serializer<std::variant<quicktype::TimeZone, double>> {
79798025 static void to_json(json & j, const std::variant<quicktype::TimeZone, double> & x);
79808026 };
79818027
8028+template <>
8029+struct adl_serializer<std::variant<quicktype::ToDict, double>> {
8030+ static void from_json(const json & j, std::variant<quicktype::ToDict, double> & x);
8031+ static void to_json(json & j, const std::variant<quicktype::ToDict, double> & x);
8032+};
8033+
79828034 template <>
79838035 struct adl_serializer<std::variant<quicktype::ToJson, double>> {
79848036 static void from_json(const json & j, std::variant<quicktype::ToJson, double> & x);
@@ -9534,6 +9586,17 @@ namespace quicktype {
95349586 (void)x;
95359587 }
95369588
9589+ inline void from_json(const json & j, FromDict& x) {
9590+ if (!j.is_object()) throw std::runtime_error("Expected object");
9591+ (void)j;
9592+ (void)x;
9593+ }
9594+
9595+ inline void to_json(json & j, const FromDict & x) {
9596+ j = json::object();
9597+ (void)x;
9598+ }
9599+
95379600 inline void from_json(const json & j, FromJson& x) {
95389601 if (!j.is_object()) throw std::runtime_error("Expected object");
95399602 (void)j;
@@ -10997,6 +11060,17 @@ namespace quicktype {
1099711060 (void)x;
1099811061 }
1099911062
11063+ inline void from_json(const json & j, ToDict& x) {
11064+ if (!j.is_object()) throw std::runtime_error("Expected object");
11065+ (void)j;
11066+ (void)x;
11067+ }
11068+
11069+ inline void to_json(json & j, const ToDict & x) {
11070+ j = json::object();
11071+ (void)x;
11072+ }
11073+
1100011074 inline void from_json(const json & j, ToJson& x) {
1100111075 if (!j.is_object()) throw std::runtime_error("Expected object");
1100211076 (void)j;
@@ -12640,6 +12714,8 @@ namespace quicktype {
1264012714 x.set_top_level_friend(get_stack_optional<std::variant<Friend, double>>(j, "friend"));
1264112715 if (j.find("from") != j.end() && j.at("from").is_null()) throw std::runtime_error("Unexpected null");
1264212716 x.set_from(get_stack_optional<std::variant<From, double>>(j, "from"));
12717+ if (j.find("from_dict") != j.end() && j.at("from_dict").is_null()) throw std::runtime_error("Unexpected null");
12718+ x.set_from_dict(get_stack_optional<std::variant<FromDict, double>>(j, "from_dict"));
1264312719 if (j.find("from_json") != j.end() && j.at("from_json").is_null()) throw std::runtime_error("Unexpected null");
1264412720 x.set_from_json(get_stack_optional<std::variant<FromJson, double>>(j, "from_json"));
1264512721 if (j.find("func") != j.end() && j.at("func").is_null()) throw std::runtime_error("Unexpected null");
@@ -12980,6 +13056,8 @@ namespace quicktype {
1298013056 x.set_time_only_converter(get_stack_optional<std::variant<TimeOnlyConverter, double>>(j, "TimeOnlyConverter"));
1298113057 if (j.find("TimeZone") != j.end() && j.at("TimeZone").is_null()) throw std::runtime_error("Unexpected null");
1298213058 x.set_time_zone(get_stack_optional<std::variant<TimeZone, double>>(j, "TimeZone"));
13059+ if (j.find("to_dict") != j.end() && j.at("to_dict").is_null()) throw std::runtime_error("Unexpected null");
13060+ x.set_to_dict(get_stack_optional<std::variant<ToDict, double>>(j, "to_dict"));
1298313061 if (j.find("to_json") != j.end() && j.at("to_json").is_null()) throw std::runtime_error("Unexpected null");
1298413062 x.set_to_json(get_stack_optional<std::variant<ToJson, double>>(j, "to_json"));
1298513063 if (j.find("top_level") != j.end() && j.at("top_level").is_null()) throw std::runtime_error("Unexpected null");
@@ -13188,6 +13266,7 @@ namespace quicktype {
1318813266 j["FormatException"] = x.get_format_exception();
1318913267 j["friend"] = x.get_top_level_friend();
1319013268 j["from"] = x.get_from();
13269+ j["from_dict"] = x.get_from_dict();
1319113270 j["from_json"] = x.get_from_json();
1319213271 j["func"] = x.get_func();
1319313272 j["function"] = x.get_function();
@@ -13358,6 +13437,7 @@ namespace quicktype {
1335813437 j["TimeOnly"] = x.get_time_only();
1335913438 j["TimeOnlyConverter"] = x.get_time_only_converter();
1336013439 j["TimeZone"] = x.get_time_zone();
13440+ j["to_dict"] = x.get_to_dict();
1336113441 j["to_json"] = x.get_to_json();
1336213442 j["top_level"] = x.get_top_level();
1336313443 j["toString"] = x.get_to_string();
@@ -14842,6 +14922,26 @@ namespace nlohmann {
1484214922 }
1484314923 }
1484414924
14925+ inline void adl_serializer<std::variant<quicktype::FromDict, double>>::from_json(const json & j, std::variant<quicktype::FromDict, double> & x) {
14926+ if (j.is_number())
14927+ x = j.get<double>();
14928+ else if (j.is_object())
14929+ x = j.get<quicktype::FromDict>();
14930+ else throw std::runtime_error("Could not deserialise!");
14931+ }
14932+
14933+ inline void adl_serializer<std::variant<quicktype::FromDict, double>>::to_json(json & j, const std::variant<quicktype::FromDict, double> & x) {
14934+ switch (x.index()) {
14935+ case 0:
14936+ j = std::get<quicktype::FromDict>(x);
14937+ break;
14938+ case 1:
14939+ j = std::get<double>(x);
14940+ break;
14941+ default: throw std::runtime_error("Input JSON does not conform to schema!");
14942+ }
14943+ }
14944+
1484514945 inline void adl_serializer<std::variant<quicktype::FromJson, double>>::from_json(const json & j, std::variant<quicktype::FromJson, double> & x) {
1484614946 if (j.is_number())
1484714947 x = j.get<double>();
@@ -17502,6 +17602,26 @@ namespace nlohmann {
1750217602 }
1750317603 }
1750417604
17605+ inline void adl_serializer<std::variant<quicktype::ToDict, double>>::from_json(const json & j, std::variant<quicktype::ToDict, double> & x) {
17606+ if (j.is_number())
17607+ x = j.get<double>();
17608+ else if (j.is_object())
17609+ x = j.get<quicktype::ToDict>();
17610+ else throw std::runtime_error("Could not deserialise!");
17611+ }
17612+
17613+ inline void adl_serializer<std::variant<quicktype::ToDict, double>>::to_json(json & j, const std::variant<quicktype::ToDict, double> & x) {
17614+ switch (x.index()) {
17615+ case 0:
17616+ j = std::get<quicktype::ToDict>(x);
17617+ break;
17618+ case 1:
17619+ j = std::get<double>(x);
17620+ break;
17621+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17622+ }
17623+ }
17624+
1750517625 inline void adl_serializer<std::variant<quicktype::ToJson, double>>::from_json(const json & j, std::variant<quicktype::ToJson, double> & x) {
1750617626 if (j.is_number())
1750717627 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+18 −0
@@ -287,6 +287,8 @@ class TopLevel
287287
288288 property from : UnionFrom?
289289
290+ property from_dict : UnionFromDict?
291+
290292 property from_json : UnionFromJson?
291293
292294 property func : UnionFunc?
@@ -688,6 +690,8 @@ class TopLevel
688690 @[JSON::Field(key: "TimeZone")]
689691 property time_zone : UnionTimeZone?
690692
693+ property to_dict : UnionToDict?
694+
691695 @[JSON::Field(key: "to_json")]
692696 property top_level_to_json : UnionToJson?
693697
@@ -1302,6 +1306,11 @@ class From
13021306
13031307 end
13041308
1309+class FromDict
1310+ include JSON::Serializable
1311+
1312+end
1313+
13051314 class FromJson
13061315 include JSON::Serializable
13071316
@@ -2087,6 +2096,11 @@ class TimeZone
20872096
20882097 end
20892098
2099+class ToDict
2100+ include JSON::Serializable
2101+
2102+end
2103+
20902104 class ToString
20912105 include JSON::Serializable
20922106
@@ -2653,6 +2667,8 @@ alias UnionFriend = Float64 | Friend
26532667
26542668 alias UnionFrom = Float64 | From
26552669
2670+alias UnionFromDict = Float64 | FromDict
2671+
26562672 alias UnionFromJson = Float64 | FromJson
26572673
26582674 alias UnionFunc = Float64 | Func
@@ -2967,6 +2983,8 @@ alias UnionTimeOnlyConverter = Float64 | TimeOnlyConverter
29672983
29682984 alias UnionTimeZone = Float64 | TimeZone
29692985
2986+alias UnionToDict = Float64 | ToDict
2987+
29702988 alias UnionToString = Float64 | ToString
29712989
29722990 alias UnionTopLevel = Float64 | TopLevelClass
Mschema-csharp-recordsdefault / QuickType.cs+110 −0
@@ -391,6 +391,9 @@ namespace QuickType
391391 [JsonProperty("from", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
392392 public UnionFrom? From { get; set; }
393393
394+ [JsonProperty("from_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
395+ public UnionFromDict? FromDict { get; set; }
396+
394397 [JsonProperty("from_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
395398 public UnionFromJson? TopLevelFromJson { get; set; }
396399
@@ -901,6 +904,9 @@ namespace QuickType
901904 [JsonProperty("TimeZone", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
902905 public UnionTimeZone? TimeZone { get; set; }
903906
907+ [JsonProperty("to_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
908+ public UnionToDict? ToDict { get; set; }
909+
904910 [JsonProperty("to_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
905911 public UnionToJson? TopLevelToJson { get; set; }
906912
@@ -1477,6 +1483,10 @@ namespace QuickType
14771483 {
14781484 }
14791485
1486+ public partial record FromDict
1487+ {
1488+ }
1489+
14801490 public partial record Func
14811491 {
14821492 }
@@ -2137,6 +2147,10 @@ namespace QuickType
21372147 {
21382148 }
21392149
2150+ public partial record ToDict
2151+ {
2152+ }
2153+
21402154 public partial record AnyClass
21412155 {
21422156 }
@@ -3370,6 +3384,15 @@ namespace QuickType
33703384 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
33713385 }
33723386
3387+ public partial struct UnionFromDict
3388+ {
3389+ public double? Double;
3390+ public FromDict? FromDict;
3391+
3392+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3393+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3394+ }
3395+
33733396 public partial struct UnionFunc
33743397 {
33753398 public double? Double;
@@ -4855,6 +4878,15 @@ namespace QuickType
48554878 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
48564879 }
48574880
4881+ public partial struct UnionToDict
4882+ {
4883+ public double? Double;
4884+ public ToDict? ToDict;
4885+
4886+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
4887+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
4888+ }
4889+
48584890 public partial struct UnionAnyUnion
48594891 {
48604892 public AnyClass? AnyClass;
@@ -5523,6 +5555,7 @@ namespace QuickType
55235555 UnionForeachConverter.Singleton,
55245556 UnionFriendConverter.Singleton,
55255557 UnionFromConverter.Singleton,
5558+ UnionFromDictConverter.Singleton,
55265559 UnionFromJsonConverter.Singleton,
55275560 UnionFuncConverter.Singleton,
55285561 UnionFunctionConverter.Singleton,
@@ -5657,6 +5690,7 @@ namespace QuickType
56575690 UnionThrowConverter.Singleton,
56585691 UnionThrowsConverter.Singleton,
56595692 UnionToStringConverter.Singleton,
5693+ UnionToDictConverter.Singleton,
56605694 UnionToJsonConverter.Singleton,
56615695 UnionTopLevelConverter.Singleton,
56625696 UnionTransientConverter.Singleton,
@@ -11928,6 +11962,44 @@ namespace QuickType
1192811962 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1192911963 }
1193011964
11965+ internal class UnionFromDictConverter : JsonConverter
11966+ {
11967+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict) || t == typeof(UnionFromDict?);
11968+
11969+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
11970+ {
11971+ switch (reader.TokenType)
11972+ {
11973+ case JsonToken.Integer:
11974+ case JsonToken.Float:
11975+ var doubleValue = serializer.Deserialize<double>(reader);
11976+ return new UnionFromDict { Double = doubleValue };
11977+ case JsonToken.StartObject:
11978+ var objectValue = serializer.Deserialize<FromDict>(reader);
11979+ return new UnionFromDict { FromDict = objectValue };
11980+ }
11981+ throw new Exception("Cannot unmarshal type UnionFromDict");
11982+ }
11983+
11984+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
11985+ {
11986+ var value = (UnionFromDict)untypedValue;
11987+ if (value.Double != null)
11988+ {
11989+ serializer.Serialize(writer, value.Double.Value);
11990+ return;
11991+ }
11992+ if (value.FromDict != null)
11993+ {
11994+ serializer.Serialize(writer, value.FromDict);
11995+ return;
11996+ }
11997+ throw new Exception("Cannot marshal type UnionFromDict");
11998+ }
11999+
12000+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12001+ }
12002+
1193112003 internal class UnionFromJsonConverter : JsonConverter
1193212004 {
1193312005 public override bool CanConvert(Type t) => t == typeof(UnionFromJson) || t == typeof(UnionFromJson?);
@@ -17020,6 +17092,44 @@ namespace QuickType
1702017092 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1702117093 }
1702217094
17095+ internal class UnionToDictConverter : JsonConverter
17096+ {
17097+ public override bool CanConvert(Type t) => t == typeof(UnionToDict) || t == typeof(UnionToDict?);
17098+
17099+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
17100+ {
17101+ switch (reader.TokenType)
17102+ {
17103+ case JsonToken.Integer:
17104+ case JsonToken.Float:
17105+ var doubleValue = serializer.Deserialize<double>(reader);
17106+ return new UnionToDict { Double = doubleValue };
17107+ case JsonToken.StartObject:
17108+ var objectValue = serializer.Deserialize<ToDict>(reader);
17109+ return new UnionToDict { ToDict = objectValue };
17110+ }
17111+ throw new Exception("Cannot unmarshal type UnionToDict");
17112+ }
17113+
17114+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
17115+ {
17116+ var value = (UnionToDict)untypedValue;
17117+ if (value.Double != null)
17118+ {
17119+ serializer.Serialize(writer, value.Double.Value);
17120+ return;
17121+ }
17122+ if (value.ToDict != null)
17123+ {
17124+ serializer.Serialize(writer, value.ToDict);
17125+ return;
17126+ }
17127+ throw new Exception("Cannot marshal type UnionToDict");
17128+ }
17129+
17130+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
17131+ }
17132+
1702317133 internal class UnionToJsonConverter : JsonConverter
1702417134 {
1702517135 public override bool CanConvert(Type t) => t == typeof(UnionToJson) || t == typeof(UnionToJson?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+108 −0
@@ -510,6 +510,10 @@ namespace QuickType
510510 [JsonPropertyName("from")]
511511 public UnionFrom? From { get; set; }
512512
513+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
514+ [JsonPropertyName("from_dict")]
515+ public UnionFromDict? FromDict { get; set; }
516+
513517 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
514518 [JsonPropertyName("from_json")]
515519 public UnionFromJson? TopLevelFromJson { get; set; }
@@ -1190,6 +1194,10 @@ namespace QuickType
11901194 [JsonPropertyName("TimeZone")]
11911195 public UnionTimeZone? TimeZone { get; set; }
11921196
1197+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1198+ [JsonPropertyName("to_dict")]
1199+ public UnionToDict? ToDict { get; set; }
1200+
11931201 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
11941202 [JsonPropertyName("to_json")]
11951203 public UnionToJson? TopLevelToJson { get; set; }
@@ -1815,6 +1823,10 @@ namespace QuickType
18151823 {
18161824 }
18171825
1826+ public partial class FromDict
1827+ {
1828+ }
1829+
18181830 public partial class Func
18191831 {
18201832 }
@@ -2479,6 +2491,10 @@ namespace QuickType
24792491 {
24802492 }
24812493
2494+ public partial class ToDict
2495+ {
2496+ }
2497+
24822498 public partial class AnyClass
24832499 {
24842500 }
@@ -3718,6 +3734,15 @@ namespace QuickType
37183734 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
37193735 }
37203736
3737+ public partial struct UnionFromDict
3738+ {
3739+ public double? Double;
3740+ public FromDict? FromDict;
3741+
3742+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3743+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3744+ }
3745+
37213746 public partial struct UnionFunc
37223747 {
37233748 public double? Double;
@@ -5212,6 +5237,15 @@ namespace QuickType
52125237 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
52135238 }
52145239
5240+ public partial struct UnionToDict
5241+ {
5242+ public double? Double;
5243+ public ToDict? ToDict;
5244+
5245+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
5246+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
5247+ }
5248+
52155249 public partial struct UnionAnyUnion
52165250 {
52175251 public AnyClass? AnyClass;
@@ -5851,6 +5885,7 @@ namespace QuickType
58515885 UnionForeachConverter.Singleton,
58525886 UnionFriendConverter.Singleton,
58535887 UnionFromConverter.Singleton,
5888+ UnionFromDictConverter.Singleton,
58545889 UnionFromJsonConverter.Singleton,
58555890 UnionFuncConverter.Singleton,
58565891 UnionFunctionConverter.Singleton,
@@ -5985,6 +6020,7 @@ namespace QuickType
59856020 UnionThrowConverter.Singleton,
59866021 UnionThrowsConverter.Singleton,
59876022 UnionToStringConverter.Singleton,
6023+ UnionToDictConverter.Singleton,
59886024 UnionToJsonConverter.Singleton,
59896025 UnionTopLevelConverter.Singleton,
59906026 UnionTransientConverter.Singleton,
@@ -11930,6 +11966,42 @@ namespace QuickType
1193011966 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1193111967 }
1193211968
11969+ internal class UnionFromDictConverter : JsonConverter<UnionFromDict>
11970+ {
11971+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict);
11972+
11973+ public override UnionFromDict Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
11974+ {
11975+ switch (reader.TokenType)
11976+ {
11977+ case JsonTokenType.Number:
11978+ var doubleValue1 = reader.GetDouble();
11979+ return new UnionFromDict { Double = doubleValue1 };
11980+ case JsonTokenType.StartObject:
11981+ var objectValue = JsonSerializer.Deserialize<FromDict>(ref reader, options);
11982+ return new UnionFromDict { FromDict = objectValue };
11983+ }
11984+ throw new JsonException("Cannot unmarshal type UnionFromDict");
11985+ }
11986+
11987+ public override void Write(Utf8JsonWriter writer, UnionFromDict value, JsonSerializerOptions options)
11988+ {
11989+ if (value.Double != null)
11990+ {
11991+ JsonSerializer.Serialize(writer, value.Double.Value, options);
11992+ return;
11993+ }
11994+ if (value.FromDict != null)
11995+ {
11996+ JsonSerializer.Serialize(writer, value.FromDict, options);
11997+ return;
11998+ }
11999+ throw new NotSupportedException("Cannot marshal type UnionFromDict");
12000+ }
12001+
12002+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12003+ }
12004+
1193312005 internal class UnionFromJsonConverter : JsonConverter<UnionFromJson>
1193412006 {
1193512007 public override bool CanConvert(Type t) => t == typeof(UnionFromJson);
@@ -16754,6 +16826,42 @@ namespace QuickType
1675416826 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1675516827 }
1675616828
16829+ internal class UnionToDictConverter : JsonConverter<UnionToDict>
16830+ {
16831+ public override bool CanConvert(Type t) => t == typeof(UnionToDict);
16832+
16833+ public override UnionToDict Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
16834+ {
16835+ switch (reader.TokenType)
16836+ {
16837+ case JsonTokenType.Number:
16838+ var doubleValue1 = reader.GetDouble();
16839+ return new UnionToDict { Double = doubleValue1 };
16840+ case JsonTokenType.StartObject:
16841+ var objectValue = JsonSerializer.Deserialize<ToDict>(ref reader, options);
16842+ return new UnionToDict { ToDict = objectValue };
16843+ }
16844+ throw new JsonException("Cannot unmarshal type UnionToDict");
16845+ }
16846+
16847+ public override void Write(Utf8JsonWriter writer, UnionToDict value, JsonSerializerOptions options)
16848+ {
16849+ if (value.Double != null)
16850+ {
16851+ JsonSerializer.Serialize(writer, value.Double.Value, options);
16852+ return;
16853+ }
16854+ if (value.ToDict != null)
16855+ {
16856+ JsonSerializer.Serialize(writer, value.ToDict, options);
16857+ return;
16858+ }
16859+ throw new NotSupportedException("Cannot marshal type UnionToDict");
16860+ }
16861+
16862+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
16863+ }
16864+
1675716865 internal class UnionToJsonConverter : JsonConverter<UnionToJson>
1675816866 {
1675916867 public override bool CanConvert(Type t) => t == typeof(UnionToJson);
Mschema-csharpdefault / QuickType.cs+110 −0
@@ -391,6 +391,9 @@ namespace QuickType
391391 [JsonProperty("from", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
392392 public UnionFrom? From { get; set; }
393393
394+ [JsonProperty("from_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
395+ public UnionFromDict? FromDict { get; set; }
396+
394397 [JsonProperty("from_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
395398 public UnionFromJson? TopLevelFromJson { get; set; }
396399
@@ -901,6 +904,9 @@ namespace QuickType
901904 [JsonProperty("TimeZone", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
902905 public UnionTimeZone? TimeZone { get; set; }
903906
907+ [JsonProperty("to_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
908+ public UnionToDict? ToDict { get; set; }
909+
904910 [JsonProperty("to_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
905911 public UnionToJson? TopLevelToJson { get; set; }
906912
@@ -1485,6 +1491,10 @@ namespace QuickType
14851491 {
14861492 }
14871493
1494+ public partial class FromDict
1495+ {
1496+ }
1497+
14881498 public partial class Func
14891499 {
14901500 }
@@ -2149,6 +2159,10 @@ namespace QuickType
21492159 {
21502160 }
21512161
2162+ public partial class ToDict
2163+ {
2164+ }
2165+
21522166 public partial class AnyClass
21532167 {
21542168 }
@@ -3388,6 +3402,15 @@ namespace QuickType
33883402 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
33893403 }
33903404
3405+ public partial struct UnionFromDict
3406+ {
3407+ public double? Double;
3408+ public FromDict? FromDict;
3409+
3410+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3411+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3412+ }
3413+
33913414 public partial struct UnionFunc
33923415 {
33933416 public double? Double;
@@ -4882,6 +4905,15 @@ namespace QuickType
48824905 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
48834906 }
48844907
4908+ public partial struct UnionToDict
4909+ {
4910+ public double? Double;
4911+ public ToDict? ToDict;
4912+
4913+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
4914+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
4915+ }
4916+
48854917 public partial struct UnionAnyUnion
48864918 {
48874919 public AnyClass? AnyClass;
@@ -5523,6 +5555,7 @@ namespace QuickType
55235555 UnionForeachConverter.Singleton,
55245556 UnionFriendConverter.Singleton,
55255557 UnionFromConverter.Singleton,
5558+ UnionFromDictConverter.Singleton,
55265559 UnionFromJsonConverter.Singleton,
55275560 UnionFuncConverter.Singleton,
55285561 UnionFunctionConverter.Singleton,
@@ -5657,6 +5690,7 @@ namespace QuickType
56575690 UnionThrowConverter.Singleton,
56585691 UnionThrowsConverter.Singleton,
56595692 UnionToStringConverter.Singleton,
5693+ UnionToDictConverter.Singleton,
56605694 UnionToJsonConverter.Singleton,
56615695 UnionTopLevelConverter.Singleton,
56625696 UnionTransientConverter.Singleton,
@@ -11928,6 +11962,44 @@ namespace QuickType
1192811962 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1192911963 }
1193011964
11965+ internal class UnionFromDictConverter : JsonConverter
11966+ {
11967+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict) || t == typeof(UnionFromDict?);
11968+
11969+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
11970+ {
11971+ switch (reader.TokenType)
11972+ {
11973+ case JsonToken.Integer:
11974+ case JsonToken.Float:
11975+ var doubleValue = serializer.Deserialize<double>(reader);
11976+ return new UnionFromDict { Double = doubleValue };
11977+ case JsonToken.StartObject:
11978+ var objectValue = serializer.Deserialize<FromDict>(reader);
11979+ return new UnionFromDict { FromDict = objectValue };
11980+ }
11981+ throw new Exception("Cannot unmarshal type UnionFromDict");
11982+ }
11983+
11984+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
11985+ {
11986+ var value = (UnionFromDict)untypedValue;
11987+ if (value.Double != null)
11988+ {
11989+ serializer.Serialize(writer, value.Double.Value);
11990+ return;
11991+ }
11992+ if (value.FromDict != null)
11993+ {
11994+ serializer.Serialize(writer, value.FromDict);
11995+ return;
11996+ }
11997+ throw new Exception("Cannot marshal type UnionFromDict");
11998+ }
11999+
12000+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12001+ }
12002+
1193112003 internal class UnionFromJsonConverter : JsonConverter
1193212004 {
1193312005 public override bool CanConvert(Type t) => t == typeof(UnionFromJson) || t == typeof(UnionFromJson?);
@@ -17020,6 +17092,44 @@ namespace QuickType
1702017092 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1702117093 }
1702217094
17095+ internal class UnionToDictConverter : JsonConverter
17096+ {
17097+ public override bool CanConvert(Type t) => t == typeof(UnionToDict) || t == typeof(UnionToDict?);
17098+
17099+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
17100+ {
17101+ switch (reader.TokenType)
17102+ {
17103+ case JsonToken.Integer:
17104+ case JsonToken.Float:
17105+ var doubleValue = serializer.Deserialize<double>(reader);
17106+ return new UnionToDict { Double = doubleValue };
17107+ case JsonToken.StartObject:
17108+ var objectValue = serializer.Deserialize<ToDict>(reader);
17109+ return new UnionToDict { ToDict = objectValue };
17110+ }
17111+ throw new Exception("Cannot unmarshal type UnionToDict");
17112+ }
17113+
17114+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
17115+ {
17116+ var value = (UnionToDict)untypedValue;
17117+ if (value.Double != null)
17118+ {
17119+ serializer.Serialize(writer, value.Double.Value);
17120+ return;
17121+ }
17122+ if (value.ToDict != null)
17123+ {
17124+ serializer.Serialize(writer, value.ToDict);
17125+ return;
17126+ }
17127+ throw new Exception("Cannot marshal type UnionToDict");
17128+ }
17129+
17130+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
17131+ }
17132+
1702317133 internal class UnionToJsonConverter : JsonConverter
1702417134 {
1702517135 public override bool CanConvert(Type t) => t == typeof(UnionToJson) || t == typeof(UnionToJson?);
Mschema-dartdefault / TopLevel.dart+28 −0
@@ -131,6 +131,7 @@ class TopLevel {
131131 final dynamic formatException;
132132 final dynamic friend;
133133 final dynamic from;
134+ final dynamic fromDict;
134135 final dynamic topLevelFromJson;
135136 final dynamic func;
136137 final dynamic function;
@@ -301,6 +302,7 @@ class TopLevel {
301302 final dynamic timeOnly;
302303 final dynamic timeOnlyConverter;
303304 final dynamic timeZone;
305+ final dynamic toDict;
304306 final dynamic topLevelToJson;
305307 final dynamic topLevel;
306308 final dynamic topLevelToString;
@@ -466,6 +468,7 @@ class TopLevel {
466468 this.formatException,
467469 this.friend,
468470 this.from,
471+ this.fromDict,
469472 this.topLevelFromJson,
470473 this.func,
471474 this.function,
@@ -636,6 +639,7 @@ class TopLevel {
636639 this.timeOnly,
637640 this.timeOnlyConverter,
638641 this.timeZone,
642+ this.toDict,
639643 this.topLevelToJson,
640644 this.topLevel,
641645 this.topLevelToString,
@@ -802,6 +806,7 @@ class TopLevel {
802806 formatException: json["FormatException"],
803807 friend: json["friend"],
804808 from: json["from"],
809+ fromDict: json["from_dict"],
805810 topLevelFromJson: json["from_json"],
806811 func: json["func"],
807812 function: json["function"],
@@ -972,6 +977,7 @@ class TopLevel {
972977 timeOnly: json["TimeOnly"],
973978 timeOnlyConverter: json["TimeOnlyConverter"],
974979 timeZone: json["TimeZone"],
980+ toDict: json["to_dict"],
975981 topLevelToJson: json["to_json"],
976982 topLevel: json["top_level"],
977983 topLevelToString: json["toString"],
@@ -1138,6 +1144,7 @@ class TopLevel {
11381144 "FormatException": formatException,
11391145 "friend": friend,
11401146 "from": from,
1147+ "from_dict": fromDict,
11411148 "from_json": topLevelFromJson,
11421149 "func": func,
11431150 "function": function,
@@ -1308,6 +1315,7 @@ class TopLevel {
13081315 "TimeOnly": timeOnly,
13091316 "TimeOnlyConverter": timeOnlyConverter,
13101317 "TimeZone": timeZone,
1318+ "to_dict": toDict,
13111319 "to_json": topLevelToJson,
13121320 "top_level": topLevel,
13131321 "toString": topLevelToString,
@@ -2272,6 +2280,16 @@ class From {
22722280 };
22732281 }
22742282
2283+class FromDict {
2284+ FromDict();
2285+
2286+ factory FromDict.fromJson(Map<String, dynamic> json) => FromDict(
2287+ );
2288+
2289+ Map<String, dynamic> toJson() => {
2290+ };
2291+}
2292+
22752293 class Func {
22762294 Func();
22772295
@@ -3772,6 +3790,16 @@ class TimeZone {
37723790 };
37733791 }
37743792
3793+class ToDict {
3794+ ToDict();
3795+
3796+ factory ToDict.fromJson(Map<String, dynamic> json) => ToDict(
3797+ );
3798+
3799+ Map<String, dynamic> toJson() => {
3800+ };
3801+}
3802+
37753803 class TopLevelClass {
37763804 TopLevelClass();
Mschema-elixirdefault / QuickType.ex+89 −1
@@ -3224,6 +3224,35 @@ defmodule From do
32243224 end
32253225 end
32263226
3227+defmodule FromDict do
3228+ defstruct []
3229+
3230+ @type t :: %__MODULE__{
3231+ }
3232+
3233+ def from_map(m) when is_map(m) do
3234+ %FromDict{
3235+ }
3236+ end
3237+
3238+ def from_json(json) do
3239+ json
3240+ |> Jason.decode!()
3241+ |> from_map()
3242+ end
3243+
3244+ def to_map(_struct) do
3245+ %{
3246+ }
3247+ end
3248+
3249+ def to_json(struct) do
3250+ struct
3251+ |> to_map()
3252+ |> Jason.encode!()
3253+ end
3254+end
3255+
32273256 defmodule FromJSON do
32283257 defstruct []
32293258
@@ -7922,6 +7951,35 @@ defmodule TimeZone do
79227951 end
79237952 end
79247953
7954+defmodule ToDict do
7955+ defstruct []
7956+
7957+ @type t :: %__MODULE__{
7958+ }
7959+
7960+ def from_map(m) when is_map(m) do
7961+ %ToDict{
7962+ }
7963+ end
7964+
7965+ def from_json(json) do
7966+ json
7967+ |> Jason.decode!()
7968+ |> from_map()
7969+ end
7970+
7971+ def to_map(_struct) do
7972+ %{
7973+ }
7974+ end
7975+
7976+ def to_json(struct) do
7977+ struct
7978+ |> to_map()
7979+ |> Jason.encode!()
7980+ end
7981+end
7982+
79257983 defmodule ToJSON do
79267984 defstruct []
79277985
@@ -9634,7 +9692,7 @@ defmodule Yield do
96349692 end
96359693
96369694 defmodule TopLevel do
9637- defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
9695+ defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
96389696
96399697 @type t :: %__MODULE__{
96409698 empty: Empty.t() | float() | nil,
@@ -9759,6 +9817,7 @@ defmodule TopLevel do
97599817 format_exception: FormatException.t() | float() | nil,
97609818 friend: Friend.t() | float() | nil,
97619819 from: From.t() | float() | nil,
9820+ from_dict: FromDict.t() | float() | nil,
97629821 from_json: FromJSON.t() | float() | nil,
97639822 func: Func.t() | float() | nil,
97649823 function: FunctionClass.t() | float() | nil,
@@ -9929,6 +9988,7 @@ defmodule TopLevel do
99299988 time_only: TimeOnly.t() | float() | nil,
99309989 time_only_converter: TimeOnlyConverter.t() | float() | nil,
99319990 time_zone: TimeZone.t() | float() | nil,
9991+ to_dict: ToDict.t() | float() | nil,
99329992 to_json: ToJSON.t() | float() | nil,
99339993 top_level: TopLevelClass.t() | float() | nil,
99349994 to_string: ToString.t() | float() | nil,
@@ -11432,6 +11492,18 @@ defmodule TopLevel do
1143211492 def encode_from(value) when is_nil(value), do: value
1143311493 def encode_from(_), do: {:error, "Unexpected type when encoding TopLevel.from"}
1143411494
11495+ def decode_from_dict(%{} = value), do: FromDict.from_map(value)
11496+ def decode_from_dict(value) when is_float(value), do: value
11497+ def decode_from_dict(value) when is_integer(value), do: value
11498+ def decode_from_dict(value) when is_nil(value), do: value
11499+ def decode_from_dict(_), do: {:error, "Unexpected type when decoding TopLevel.from_dict"}
11500+
11501+ def encode_from_dict(%FromDict{} = value), do: FromDict.to_map(value)
11502+ def encode_from_dict(value) when is_float(value), do: value
11503+ def encode_from_dict(value) when is_integer(value), do: value
11504+ def encode_from_dict(value) when is_nil(value), do: value
11505+ def encode_from_dict(_), do: {:error, "Unexpected type when encoding TopLevel.from_dict"}
11506+
1143511507 def decode_from_json(%{} = value), do: FromJSON.from_map(value)
1143611508 def decode_from_json(value) when is_float(value), do: value
1143711509 def decode_from_json(value) when is_integer(value), do: value
@@ -13472,6 +13544,18 @@ defmodule TopLevel do
1347213544 def encode_time_zone(value) when is_nil(value), do: value
1347313545 def encode_time_zone(_), do: {:error, "Unexpected type when encoding TopLevel.time_zone"}
1347413546
13547+ def decode_to_dict(%{} = value), do: ToDict.from_map(value)
13548+ def decode_to_dict(value) when is_float(value), do: value
13549+ def decode_to_dict(value) when is_integer(value), do: value
13550+ def decode_to_dict(value) when is_nil(value), do: value
13551+ def decode_to_dict(_), do: {:error, "Unexpected type when decoding TopLevel.to_dict"}
13552+
13553+ def encode_to_dict(%ToDict{} = value), do: ToDict.to_map(value)
13554+ def encode_to_dict(value) when is_float(value), do: value
13555+ def encode_to_dict(value) when is_integer(value), do: value
13556+ def encode_to_dict(value) when is_nil(value), do: value
13557+ def encode_to_dict(_), do: {:error, "Unexpected type when encoding TopLevel.to_dict"}
13558+
1347513559 def decode_to_json(%{} = value), do: ToJSON.from_map(value)
1347613560 def decode_to_json(value) when is_float(value), do: value
1347713561 def decode_to_json(value) when is_integer(value), do: value
@@ -14088,6 +14172,7 @@ defmodule TopLevel do
1408814172 format_exception: decode_format_exception(m["FormatException"]),
1408914173 friend: decode_friend(m["friend"]),
1409014174 from: decode_from(m["from"]),
14175+ from_dict: decode_from_dict(m["from_dict"]),
1409114176 from_json: decode_from_json(m["from_json"]),
1409214177 func: decode_func(m["func"]),
1409314178 function: decode_function(m["function"]),
@@ -14258,6 +14343,7 @@ defmodule TopLevel do
1425814343 time_only: decode_time_only(m["TimeOnly"]),
1425914344 time_only_converter: decode_time_only_converter(m["TimeOnlyConverter"]),
1426014345 time_zone: decode_time_zone(m["TimeZone"]),
14346+ to_dict: decode_to_dict(m["to_dict"]),
1426114347 to_json: decode_to_json(m["to_json"]),
1426214348 top_level: decode_top_level(m["top_level"]),
1426314349 to_string: decode_to_string(m["toString"]),
@@ -14432,6 +14518,7 @@ defmodule TopLevel do
1443214518 "FormatException" => encode_format_exception(struct.format_exception),
1443314519 "friend" => encode_friend(struct.friend),
1443414520 "from" => encode_from(struct.from),
14521+ "from_dict" => encode_from_dict(struct.from_dict),
1443514522 "from_json" => encode_from_json(struct.from_json),
1443614523 "func" => encode_func(struct.func),
1443714524 "function" => encode_function(struct.function),
@@ -14602,6 +14689,7 @@ defmodule TopLevel do
1460214689 "TimeOnly" => encode_time_only(struct.time_only),
1460314690 "TimeOnlyConverter" => encode_time_only_converter(struct.time_only_converter),
1460414691 "TimeZone" => encode_time_zone(struct.time_zone),
14692+ "to_dict" => encode_to_dict(struct.to_dict),
1460514693 "to_json" => encode_to_json(struct.to_json),
1460614694 "top_level" => encode_top_level(struct.top_level),
1460714695 "toString" => encode_to_string(struct.to_string),
Mschema-elmdefault / QuickType.elm+70 −0
@@ -123,6 +123,7 @@ module QuickType exposing
123123 , FormatException
124124 , Friend
125125 , From
126+ , FromDict
126127 , FromJSON
127128 , Func
128129 , Function
@@ -310,6 +311,7 @@ module QuickType exposing
310311 , TimeOnly
311312 , TimeOnlyConverter
312313 , TimeZone
314+ , ToDict
313315 , ToJSON
314316 , ToString
315317 , TopLevel
@@ -455,6 +457,7 @@ module QuickType exposing
455457 , UnionFormatException(..)
456458 , UnionFriend(..)
457459 , UnionFrom(..)
460+ , UnionFromDict(..)
458461 , UnionFromJSON(..)
459462 , UnionFunc(..)
460463 , UnionFunction(..)
@@ -642,6 +645,7 @@ module QuickType exposing
642645 , UnionTimeOnly(..)
643646 , UnionTimeOnlyConverter(..)
644647 , UnionTimeZone(..)
648+ , UnionToDict(..)
645649 , UnionToJSON(..)
646650 , UnionToString(..)
647651 , UnionTopLevel(..)
@@ -809,6 +813,7 @@ type alias QuickType =
809813 , formatException : Maybe UnionFormatException
810814 , friend : Maybe UnionFriend
811815 , from : Maybe UnionFrom
816+ , fromDict : Maybe UnionFromDict
812817 , fromJSON : Maybe UnionFromJSON
813818 , func : Maybe UnionFunc
814819 , function : Maybe UnionFunction
@@ -979,6 +984,7 @@ type alias QuickType =
979984 , timeOnly : Maybe UnionTimeOnly
980985 , timeOnlyConverter : Maybe UnionTimeOnlyConverter
981986 , timeZone : Maybe UnionTimeZone
987+ , toDict : Maybe UnionToDict
982988 , toJSON : Maybe UnionToJSON
983989 , topLevel : Maybe UnionTopLevel
984990 , toString : Maybe UnionToString
@@ -1886,6 +1892,14 @@ type alias From =
18861892 {
18871893 }
18881894
1895+type UnionFromDict
1896+ = DoubleInUnionFromDict Float
1897+ | FromDictInUnionFromDict FromDict
1898+
1899+type alias FromDict =
1900+ {
1901+ }
1902+
18891903 type UnionFromJSON
18901904 = DoubleInUnionFromJSON Float
18911905 | FromJSONInUnionFromJSON FromJSON
@@ -3382,6 +3396,14 @@ type alias TimeZone =
33823396 {
33833397 }
33843398
3399+type UnionToDict
3400+ = DoubleInUnionToDict Float
3401+ | ToDictInUnionToDict ToDict
3402+
3403+type alias ToDict =
3404+ {
3405+ }
3406+
33853407 type UnionToJSON
33863408 = DoubleInUnionToJSON Float
33873409 | ToJSONInUnionToJSON ToJSON
@@ -3814,6 +3836,7 @@ quickType =
38143836 |> Jpipe.custom (optionalField "FormatException" (Jdec.map Just unionFormatException) Nothing)
38153837 |> Jpipe.custom (optionalField "friend" (Jdec.map Just unionFriend) Nothing)
38163838 |> Jpipe.custom (optionalField "from" (Jdec.map Just unionFrom) Nothing)
3839+ |> Jpipe.custom (optionalField "from_dict" (Jdec.map Just unionFromDict) Nothing)
38173840 |> Jpipe.custom (optionalField "from_json" (Jdec.map Just unionFromJSON) Nothing)
38183841 |> Jpipe.custom (optionalField "func" (Jdec.map Just unionFunc) Nothing)
38193842 |> Jpipe.custom (optionalField "function" (Jdec.map Just unionFunction) Nothing)
@@ -3984,6 +4007,7 @@ quickType =
39844007 |> Jpipe.custom (optionalField "TimeOnly" (Jdec.map Just unionTimeOnly) Nothing)
39854008 |> Jpipe.custom (optionalField "TimeOnlyConverter" (Jdec.map Just unionTimeOnlyConverter) Nothing)
39864009 |> Jpipe.custom (optionalField "TimeZone" (Jdec.map Just unionTimeZone) Nothing)
4010+ |> Jpipe.custom (optionalField "to_dict" (Jdec.map Just unionToDict) Nothing)
39874011 |> Jpipe.custom (optionalField "to_json" (Jdec.map Just unionToJSON) Nothing)
39884012 |> Jpipe.custom (optionalField "top_level" (Jdec.map Just unionTopLevel) Nothing)
39894013 |> Jpipe.custom (optionalField "toString" (Jdec.map Just unionToString) Nothing)
@@ -4151,6 +4175,7 @@ encodeQuickType x =
41514175 , ("FormatException", makeNullableEncoder encodeUnionFormatException x.formatException)
41524176 , ("friend", makeNullableEncoder encodeUnionFriend x.friend)
41534177 , ("from", makeNullableEncoder encodeUnionFrom x.from)
4178+ , ("from_dict", makeNullableEncoder encodeUnionFromDict x.fromDict)
41544179 , ("from_json", makeNullableEncoder encodeUnionFromJSON x.fromJSON)
41554180 , ("func", makeNullableEncoder encodeUnionFunc x.func)
41564181 , ("function", makeNullableEncoder encodeUnionFunction x.function)
@@ -4321,6 +4346,7 @@ encodeQuickType x =
43214346 , ("TimeOnly", makeNullableEncoder encodeUnionTimeOnly x.timeOnly)
43224347 , ("TimeOnlyConverter", makeNullableEncoder encodeUnionTimeOnlyConverter x.timeOnlyConverter)
43234348 , ("TimeZone", makeNullableEncoder encodeUnionTimeZone x.timeZone)
4349+ , ("to_dict", makeNullableEncoder encodeUnionToDict x.toDict)
43244350 , ("to_json", makeNullableEncoder encodeUnionToJSON x.toJSON)
43254351 , ("top_level", makeNullableEncoder encodeUnionTopLevel x.topLevel)
43264352 , ("toString", makeNullableEncoder encodeUnionToString x.toString)
@@ -6740,6 +6766,28 @@ encodeFrom x =
67406766 [
67416767 ]
67426768
6769+unionFromDict : Jdec.Decoder UnionFromDict
6770+unionFromDict =
6771+ Jdec.oneOf
6772+ [ Jdec.map DoubleInUnionFromDict Jdec.float
6773+ , Jdec.map FromDictInUnionFromDict fromDict
6774+ ]
6775+
6776+encodeUnionFromDict : UnionFromDict -> Jenc.Value
6777+encodeUnionFromDict x = case x of
6778+ DoubleInUnionFromDict y -> Jenc.float y
6779+ FromDictInUnionFromDict y -> encodeFromDict y
6780+
6781+fromDict : Jdec.Decoder FromDict
6782+fromDict =
6783+ Jdec.dict Jdec.value |> Jdec.map (\_ -> FromDict)
6784+
6785+encodeFromDict : FromDict -> Jenc.Value
6786+encodeFromDict x =
6787+ Jenc.object
6788+ [
6789+ ]
6790+
67436791 unionFromJSON : Jdec.Decoder UnionFromJSON
67446792 unionFromJSON =
67456793 Jdec.oneOf
@@ -10854,6 +10902,28 @@ encodeTimeZone x =
1085410902 [
1085510903 ]
1085610904
10905+unionToDict : Jdec.Decoder UnionToDict
10906+unionToDict =
10907+ Jdec.oneOf
10908+ [ Jdec.map DoubleInUnionToDict Jdec.float
10909+ , Jdec.map ToDictInUnionToDict toDict
10910+ ]
10911+
10912+encodeUnionToDict : UnionToDict -> Jenc.Value
10913+encodeUnionToDict x = case x of
10914+ DoubleInUnionToDict y -> Jenc.float y
10915+ ToDictInUnionToDict y -> encodeToDict y
10916+
10917+toDict : Jdec.Decoder ToDict
10918+toDict =
10919+ Jdec.dict Jdec.value |> Jdec.map (\_ -> ToDict)
10920+
10921+encodeToDict : ToDict -> Jenc.Value
10922+encodeToDict x =
10923+ Jenc.object
10924+ [
10925+ ]
10926+
1085710927 unionToJSON : Jdec.Decoder UnionToJSON
1085810928 unionToJSON =
1085910929 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+18 −0
@@ -132,6 +132,7 @@ export type TopLevel = {
132132 FormatException?: UnionFormatException;
133133 friend?: UnionFriend;
134134 from?: UnionFrom;
135+ from_dict?: UnionFromDict;
135136 from_json?: UnionFromJSON;
136137 func?: UnionFunc;
137138 function?: UnionFunction;
@@ -302,6 +303,7 @@ export type TopLevel = {
302303 TimeOnly?: UnionTimeOnly;
303304 TimeOnlyConverter?: UnionTimeOnlyConverter;
304305 TimeZone?: UnionTimeZone;
306+ to_dict?: UnionToDict;
305307 to_json?: UnionToJSON;
306308 top_level?: UnionTopLevel;
307309 toString?: UnionToString;
@@ -1166,6 +1168,11 @@ export type UnionFrom = From | number;
11661168 export type From = {
11671169 };
11681170
1171+export type UnionFromDict = FromDict | number;
1172+
1173+export type FromDict = {
1174+};
1175+
11691176 export type UnionFromJSON = FromJSON | number;
11701177
11711178 export type FromJSON = {
@@ -1836,6 +1843,11 @@ export type UnionToString = ToString | number;
18361843 export type ToString = {
18371844 };
18381845
1846+export type UnionToDict = ToDict | number;
1847+
1848+export type ToDict = {
1849+};
1850+
18391851 export type UnionToJSON = ToJSON | number;
18401852
18411853 export type ToJSON = {
@@ -2314,6 +2326,7 @@ const typeMap: any = {
23142326 { json: "FormatException", js: "FormatException", typ: u(undefined, u(r("FormatException"), 3.14)) },
23152327 { json: "friend", js: "friend", typ: u(undefined, u(r("Friend"), 3.14)) },
23162328 { json: "from", js: "from", typ: u(undefined, u(r("From"), 3.14)) },
2329+ { json: "from_dict", js: "from_dict", typ: u(undefined, u(r("FromDict"), 3.14)) },
23172330 { json: "from_json", js: "from_json", typ: u(undefined, u(r("FromJSON"), 3.14)) },
23182331 { json: "func", js: "func", typ: u(undefined, u(r("Func"), 3.14)) },
23192332 { json: "function", js: "function", typ: u(undefined, u(r("Function"), 3.14)) },
@@ -2484,6 +2497,7 @@ const typeMap: any = {
24842497 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(r("TimeOnly"), 3.14)) },
24852498 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(r("TimeOnlyConverter"), 3.14)) },
24862499 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(r("TimeZone"), 3.14)) },
2500+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(r("ToDict"), 3.14)) },
24872501 { json: "to_json", js: "to_json", typ: u(undefined, u(r("ToJSON"), 3.14)) },
24882502 { json: "top_level", js: "top_level", typ: u(undefined, u(r("TopLevelClass"), 3.14)) },
24892503 { json: "toString", js: "toString", typ: u(undefined, u(r("ToString"), 3.14)) },
@@ -2854,6 +2868,8 @@ const typeMap: any = {
28542868 ], false),
28552869 "From": o([
28562870 ], false),
2871+ "FromDict": o([
2872+ ], false),
28572873 "FromJSON": o([
28582874 ], false),
28592875 "Func": o([
@@ -3122,6 +3138,8 @@ const typeMap: any = {
31223138 ], false),
31233139 "ToString": o([
31243140 ], false),
3141+ "ToDict": o([
3142+ ], false),
31253143 "ToJSON": o([
31263144 ], false),
31273145 "TopLevelClass": o([
Mschema-golangdefault / quicktype.go+52 −0
@@ -144,6 +144,7 @@ type TopLevel struct {
144144 FormatException *UnionFormatException `json:"FormatException"`
145145 Friend *UnionFriend `json:"friend"`
146146 From *UnionFrom `json:"from"`
147+ FromDict *UnionFromDict `json:"from_dict"`
147148 FromJSON *UnionFromJSON `json:"from_json"`
148149 Func *UnionFunc `json:"func"`
149150 Function *UnionFunction `json:"function"`
@@ -314,6 +315,7 @@ type TopLevel struct {
314315 TimeOnly *UnionTimeOnly `json:"TimeOnly"`
315316 TimeOnlyConverter *UnionTimeOnlyConverter `json:"TimeOnlyConverter"`
316317 TimeZone *UnionTimeZone `json:"TimeZone"`
318+ ToDict *UnionToDict `json:"to_dict"`
317319 ToJSON *UnionToJSON `json:"to_json"`
318320 TopLevel *UnionTopLevel `json:"top_level"`
319321 ToString *UnionToString `json:"toString"`
@@ -702,6 +704,9 @@ type Friend struct {
702704 type From struct {
703705 }
704706
707+type FromDict struct {
708+}
709+
705710 type FromJSON struct {
706711 }
707712
@@ -1206,6 +1211,9 @@ type TimeOnlyConverter struct {
12061211 type TimeZone struct {
12071212 }
12081213
1214+type ToDict struct {
1215+}
1216+
12091217 type ToJSON struct {
12101218 }
12111219
@@ -3883,6 +3891,28 @@ func (x *UnionFrom) MarshalJSON() ([]byte, error) {
38833891 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.From != nil, x.From, false, nil, false, nil, false)
38843892 }
38853893
3894+type UnionFromDict struct {
3895+ Double *float64
3896+ FromDict *FromDict
3897+}
3898+
3899+func (x *UnionFromDict) UnmarshalJSON(data []byte) error {
3900+ x.FromDict = nil
3901+ var c FromDict
3902+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
3903+ if err != nil {
3904+ return err
3905+ }
3906+ if object {
3907+ x.FromDict = &c
3908+ }
3909+ return nil
3910+}
3911+
3912+func (x *UnionFromDict) MarshalJSON() ([]byte, error) {
3913+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.FromDict != nil, x.FromDict, false, nil, false, nil, false)
3914+}
3915+
38863916 type UnionFromJSON struct {
38873917 Double *float64
38883918 FromJSON *FromJSON
@@ -7579,6 +7609,28 @@ func (x *UnionTimeZone) MarshalJSON() ([]byte, error) {
75797609 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.TimeZone != nil, x.TimeZone, false, nil, false, nil, false)
75807610 }
75817611
7612+type UnionToDict struct {
7613+ Double *float64
7614+ ToDict *ToDict
7615+}
7616+
7617+func (x *UnionToDict) UnmarshalJSON(data []byte) error {
7618+ x.ToDict = nil
7619+ var c ToDict
7620+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
7621+ if err != nil {
7622+ return err
7623+ }
7624+ if object {
7625+ x.ToDict = &c
7626+ }
7627+ return nil
7628+}
7629+
7630+func (x *UnionToDict) MarshalJSON() ([]byte, error) {
7631+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.ToDict != nil, x.ToDict, false, nil, false, nil, false)
7632+}
7633+
75827634 type UnionToJSON struct {
75837635 Double *float64
75847636 ToJSON *ToJSON
Mschema-haskelldefault / QuickType.hs+57 −1
@@ -112,6 +112,7 @@ module QuickType
112112 , FormatException (..)
113113 , Friend (..)
114114 , From (..)
115+ , FromDict (..)
115116 , FromJSONClass (..)
116117 , Func (..)
117118 , Function (..)
@@ -298,6 +299,7 @@ module QuickType
298299 , TimeOnly (..)
299300 , TimeOnlyConverter (..)
300301 , TimeZone (..)
302+ , ToDict (..)
301303 , ToJSONClass (..)
302304 , ToString (..)
303305 , TopLevel (..)
@@ -444,6 +446,7 @@ module QuickType
444446 , UnionFormatException (..)
445447 , UnionFriend (..)
446448 , UnionFrom (..)
449+ , UnionFromDict (..)
447450 , UnionFromJSON (..)
448451 , UnionFunc (..)
449452 , UnionFunction (..)
@@ -630,6 +633,7 @@ module QuickType
630633 , UnionTimeOnly (..)
631634 , UnionTimeOnlyConverter (..)
632635 , UnionTimeZone (..)
636+ , UnionToDict (..)
633637 , UnionToJSON (..)
634638 , UnionToString (..)
635639 , UnionTopLevel (..)
@@ -799,6 +803,7 @@ data QuickType = QuickType
799803 , formatExceptionQuickType :: Maybe UnionFormatException
800804 , friendQuickType :: Maybe UnionFriend
801805 , fromQuickType :: Maybe UnionFrom
806+ , fromDictQuickType :: Maybe UnionFromDict
802807 , fromJSONQuickType :: Maybe UnionFromJSON
803808 , funcQuickType :: Maybe UnionFunc
804809 , functionQuickType :: Maybe UnionFunction
@@ -969,6 +974,7 @@ data QuickType = QuickType
969974 , timeOnlyQuickType :: Maybe UnionTimeOnly
970975 , timeOnlyConverterQuickType :: Maybe UnionTimeOnlyConverter
971976 , timeZoneQuickType :: Maybe UnionTimeZone
977+ , toDictQuickType :: Maybe UnionToDict
972978 , toJSONQuickType :: Maybe UnionToJSON
973979 , topLevelQuickType :: Maybe UnionTopLevel
974980 , toStringQuickType :: Maybe UnionToString
@@ -1993,6 +1999,15 @@ data From = From
19931999 {
19942000 } deriving (Show)
19952001
2002+data UnionFromDict
2003+ = DoubleInUnionFromDict Double
2004+ | FromDictInUnionFromDict FromDict
2005+ deriving (Show)
2006+
2007+data FromDict = FromDict
2008+ {
2009+ } deriving (Show)
2010+
19962011 data UnionFromJSON
19972012 = DoubleInUnionFromJSON Double
19982013 | FromJSONClassInUnionFromJSON FromJSONClass
@@ -3667,6 +3682,15 @@ data TimeZone = TimeZone
36673682 {
36683683 } deriving (Show)
36693684
3685+data UnionToDict
3686+ = DoubleInUnionToDict Double
3687+ | ToDictInUnionToDict ToDict
3688+ deriving (Show)
3689+
3690+data ToDict = ToDict
3691+ {
3692+ } deriving (Show)
3693+
36703694 data UnionToJSON
36713695 = DoubleInUnionToJSON Double
36723696 | ToJSONClassInUnionToJSON ToJSONClass
@@ -4004,7 +4028,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
40044028 decodeTopLevel = decode
40054029
40064030 instance ToJSON QuickType where
4007- toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serializeQuickType serializerProviderQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4031+ toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromDictQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serializeQuickType serializerProviderQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toDictQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
40084032 object $ foldMap (maybe [] pure)
40094033 [ ("_" .=) <$> emptyQuickType
40104034 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4128,6 +4152,7 @@ instance ToJSON QuickType where
41284152 , ("FormatException" .=) <$> formatExceptionQuickType
41294153 , ("friend" .=) <$> friendQuickType
41304154 , ("from" .=) <$> fromQuickType
4155+ , ("from_dict" .=) <$> fromDictQuickType
41314156 , ("from_json" .=) <$> fromJSONQuickType
41324157 , ("func" .=) <$> funcQuickType
41334158 , ("function" .=) <$> functionQuickType
@@ -4298,6 +4323,7 @@ instance ToJSON QuickType where
42984323 , ("TimeOnly" .=) <$> timeOnlyQuickType
42994324 , ("TimeOnlyConverter" .=) <$> timeOnlyConverterQuickType
43004325 , ("TimeZone" .=) <$> timeZoneQuickType
4326+ , ("to_dict" .=) <$> toDictQuickType
43014327 , ("to_json" .=) <$> toJSONQuickType
43024328 , ("top_level" .=) <$> topLevelQuickType
43034329 , ("toString" .=) <$> toStringQuickType
@@ -4465,6 +4491,7 @@ instance FromJSON QuickType where
44654491 <*> v .:! "FormatException"
44664492 <*> v .:! "friend"
44674493 <*> v .:! "from"
4494+ <*> v .:! "from_dict"
44684495 <*> v .:! "from_json"
44694496 <*> v .:! "func"
44704497 <*> v .:! "function"
@@ -4635,6 +4662,7 @@ instance FromJSON QuickType where
46354662 <*> v .:! "TimeOnly"
46364663 <*> v .:! "TimeOnlyConverter"
46374664 <*> v .:! "TimeZone"
4665+ <*> v .:! "to_dict"
46384666 <*> v .:! "to_json"
46394667 <*> v .:! "top_level"
46404668 <*> v .:! "toString"
@@ -6203,6 +6231,20 @@ instance ToJSON From where
62036231 instance FromJSON From where
62046232 parseJSON (Object _) = return From
62056233
6234+instance ToJSON UnionFromDict where
6235+ toJSON (DoubleInUnionFromDict x) = toJSON x
6236+ toJSON (FromDictInUnionFromDict x) = toJSON x
6237+
6238+instance FromJSON UnionFromDict where
6239+ parseJSON xs@(Number _) = (fmap DoubleInUnionFromDict . parseJSON) xs
6240+ parseJSON xs@(Object _) = (fmap FromDictInUnionFromDict . parseJSON) xs
6241+
6242+instance ToJSON FromDict where
6243+ toJSON = \_ -> emptyObject
6244+
6245+instance FromJSON FromDict where
6246+ parseJSON (Object _) = return FromDict
6247+
62066248 instance ToJSON UnionFromJSON where
62076249 toJSON (DoubleInUnionFromJSON x) = toJSON x
62086250 toJSON (FromJSONClassInUnionFromJSON x) = toJSON x
@@ -8807,6 +8849,20 @@ instance ToJSON TimeZone where
88078849 instance FromJSON TimeZone where
88088850 parseJSON (Object _) = return TimeZone
88098851
8852+instance ToJSON UnionToDict where
8853+ toJSON (DoubleInUnionToDict x) = toJSON x
8854+ toJSON (ToDictInUnionToDict x) = toJSON x
8855+
8856+instance FromJSON UnionToDict where
8857+ parseJSON xs@(Number _) = (fmap DoubleInUnionToDict . parseJSON) xs
8858+ parseJSON xs@(Object _) = (fmap ToDictInUnionToDict . parseJSON) xs
8859+
8860+instance ToJSON ToDict where
8861+ toJSON = \_ -> emptyObject
8862+
8863+instance FromJSON ToDict where
8864+ parseJSON (Object _) = return ToDict
8865+
88108866 instance ToJSON UnionToJSON where
88118867 toJSON (DoubleInUnionToJSON x) = toJSON x
88128868 toJSON (ToJSONClassInUnionToJSON x) = toJSON x
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / FromDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class FromDict {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / ToDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class ToDict {
7+}
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+12 −0
@@ -125,6 +125,7 @@ public class TopLevel {
125125 private UnionFormatException formatException;
126126 private UnionFriend friend;
127127 private UnionFrom from;
128+ private UnionFromDict fromDict;
128129 private UnionFromJSON fromJSON;
129130 private UnionFunc func;
130131 private UnionFunction function;
@@ -295,6 +296,7 @@ public class TopLevel {
295296 private UnionTimeOnly timeOnly;
296297 private UnionTimeOnlyConverter timeOnlyConverter;
297298 private UnionTimeZone timeZone;
299+ private UnionToDict toDict;
298300 private UnionToJSON toJSON;
299301 private UnionTopLevel topLevel;
300302 private UnionToString toString;
@@ -947,6 +949,11 @@ public class TopLevel {
947949 @JsonProperty("from")
948950 public void setFrom(UnionFrom value) { this.from = value; }
949951
952+ @JsonProperty("from_dict")
953+ public UnionFromDict getFromDict() { return fromDict; }
954+ @JsonProperty("from_dict")
955+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
956+
950957 @JsonProperty("from_json")
951958 public UnionFromJSON getFromJSON() { return fromJSON; }
952959 @JsonProperty("from_json")
@@ -1797,6 +1804,11 @@ public class TopLevel {
17971804 @JsonProperty("TimeZone")
17981805 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
17991806
1807+ @JsonProperty("to_dict")
1808+ public UnionToDict getToDict() { return toDict; }
1809+ @JsonProperty("to_dict")
1810+ public void setToDict(UnionToDict value) { this.toDict = value; }
1811+
18001812 @JsonProperty("to_json")
18011813 public UnionToJSON getToJSON() { return toJSON; }
18021814 @JsonProperty("to_json")
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionFromDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionFromDict.Deserializer.class)
11+@JsonSerialize(using = UnionFromDict.Serializer.class)
12+public class UnionFromDict {
13+ public Double doubleValue;
14+ public FromDict fromDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionFromDict> {
17+ @Override
18+ public UnionFromDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionFromDict value = new UnionFromDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.fromDictValue = jsonParser.readValueAs(FromDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionFromDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionFromDict> {
37+ @Override
38+ public void serialize(UnionFromDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.fromDictValue != null) {
44+ jsonGenerator.writeObject(obj.fromDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionToDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionToDict.Deserializer.class)
11+@JsonSerialize(using = UnionToDict.Serializer.class)
12+public class UnionToDict {
13+ public Double doubleValue;
14+ public ToDict toDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionToDict> {
17+ @Override
18+ public UnionToDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionToDict value = new UnionToDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.toDictValue = jsonParser.readValueAs(ToDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionToDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionToDict> {
37+ @Override
38+ public void serialize(UnionToDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.toDictValue != null) {
44+ jsonGenerator.writeObject(obj.toDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / FromDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class FromDict {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / ToDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class ToDict {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+12 −0
@@ -125,6 +125,7 @@ public class TopLevel {
125125 private UnionFormatException formatException;
126126 private UnionFriend friend;
127127 private UnionFrom from;
128+ private UnionFromDict fromDict;
128129 private UnionFromJSON fromJSON;
129130 private UnionFunc func;
130131 private UnionFunction function;
@@ -295,6 +296,7 @@ public class TopLevel {
295296 private UnionTimeOnly timeOnly;
296297 private UnionTimeOnlyConverter timeOnlyConverter;
297298 private UnionTimeZone timeZone;
299+ private UnionToDict toDict;
298300 private UnionToJSON toJSON;
299301 private UnionTopLevel topLevel;
300302 private UnionToString toString;
@@ -947,6 +949,11 @@ public class TopLevel {
947949 @JsonProperty("from")
948950 public void setFrom(UnionFrom value) { this.from = value; }
949951
952+ @JsonProperty("from_dict")
953+ public UnionFromDict getFromDict() { return fromDict; }
954+ @JsonProperty("from_dict")
955+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
956+
950957 @JsonProperty("from_json")
951958 public UnionFromJSON getFromJSON() { return fromJSON; }
952959 @JsonProperty("from_json")
@@ -1797,6 +1804,11 @@ public class TopLevel {
17971804 @JsonProperty("TimeZone")
17981805 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
17991806
1807+ @JsonProperty("to_dict")
1808+ public UnionToDict getToDict() { return toDict; }
1809+ @JsonProperty("to_dict")
1810+ public void setToDict(UnionToDict value) { this.toDict = value; }
1811+
18001812 @JsonProperty("to_json")
18011813 public UnionToJSON getToJSON() { return toJSON; }
18021814 @JsonProperty("to_json")
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionFromDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionFromDict.Deserializer.class)
11+@JsonSerialize(using = UnionFromDict.Serializer.class)
12+public class UnionFromDict {
13+ public Double doubleValue;
14+ public FromDict fromDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionFromDict> {
17+ @Override
18+ public UnionFromDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionFromDict value = new UnionFromDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.fromDictValue = jsonParser.readValueAs(FromDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionFromDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionFromDict> {
37+ @Override
38+ public void serialize(UnionFromDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.fromDictValue != null) {
44+ jsonGenerator.writeObject(obj.fromDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionToDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionToDict.Deserializer.class)
11+@JsonSerialize(using = UnionToDict.Serializer.class)
12+public class UnionToDict {
13+ public Double doubleValue;
14+ public ToDict toDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionToDict> {
17+ @Override
18+ public UnionToDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionToDict value = new UnionToDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.toDictValue = jsonParser.readValueAs(ToDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionToDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionToDict> {
37+ @Override
38+ public void serialize(UnionToDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.toDictValue != null) {
44+ jsonGenerator.writeObject(obj.toDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / FromDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class FromDict {
7+}
Aschema-javadefault / src / main / java / io / quicktype / ToDict.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class ToDict {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+12 −0
@@ -125,6 +125,7 @@ public class TopLevel {
125125 private UnionFormatException formatException;
126126 private UnionFriend friend;
127127 private UnionFrom from;
128+ private UnionFromDict fromDict;
128129 private UnionFromJSON fromJSON;
129130 private UnionFunc func;
130131 private UnionFunction function;
@@ -295,6 +296,7 @@ public class TopLevel {
295296 private UnionTimeOnly timeOnly;
296297 private UnionTimeOnlyConverter timeOnlyConverter;
297298 private UnionTimeZone timeZone;
299+ private UnionToDict toDict;
298300 private UnionToJSON toJSON;
299301 private UnionTopLevel topLevel;
300302 private UnionToString toString;
@@ -947,6 +949,11 @@ public class TopLevel {
947949 @JsonProperty("from")
948950 public void setFrom(UnionFrom value) { this.from = value; }
949951
952+ @JsonProperty("from_dict")
953+ public UnionFromDict getFromDict() { return fromDict; }
954+ @JsonProperty("from_dict")
955+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
956+
950957 @JsonProperty("from_json")
951958 public UnionFromJSON getFromJSON() { return fromJSON; }
952959 @JsonProperty("from_json")
@@ -1797,6 +1804,11 @@ public class TopLevel {
17971804 @JsonProperty("TimeZone")
17981805 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
17991806
1807+ @JsonProperty("to_dict")
1808+ public UnionToDict getToDict() { return toDict; }
1809+ @JsonProperty("to_dict")
1810+ public void setToDict(UnionToDict value) { this.toDict = value; }
1811+
18001812 @JsonProperty("to_json")
18011813 public UnionToJSON getToJSON() { return toJSON; }
18021814 @JsonProperty("to_json")
Aschema-javadefault / src / main / java / io / quicktype / UnionFromDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionFromDict.Deserializer.class)
11+@JsonSerialize(using = UnionFromDict.Serializer.class)
12+public class UnionFromDict {
13+ public Double doubleValue;
14+ public FromDict fromDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionFromDict> {
17+ @Override
18+ public UnionFromDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionFromDict value = new UnionFromDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.fromDictValue = jsonParser.readValueAs(FromDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionFromDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionFromDict> {
37+ @Override
38+ public void serialize(UnionFromDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.fromDictValue != null) {
44+ jsonGenerator.writeObject(obj.fromDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionToDict.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionToDict.Deserializer.class)
11+@JsonSerialize(using = UnionToDict.Serializer.class)
12+public class UnionToDict {
13+ public Double doubleValue;
14+ public ToDict toDictValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionToDict> {
17+ @Override
18+ public UnionToDict deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionToDict value = new UnionToDict();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.toDictValue = jsonParser.readValueAs(ToDict.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionToDict");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionToDict> {
37+ @Override
38+ public void serialize(UnionToDict obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.toDictValue != null) {
44+ jsonGenerator.writeObject(obj.toDictValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Mschema-javascript-prop-typesdefault / toplevel.js+8 −0
@@ -177,6 +177,7 @@ let _For;
177177 let _Foreach;
178178 let _Friend;
179179 let _From;
180+let _FromDict;
180181 let _FromJSON;
181182 let _Func;
182183 let _Function;
@@ -311,6 +312,7 @@ let _ThreadLocal;
311312 let _Throw;
312313 let _Throws;
313314 let _ToString;
315+let _ToDict;
314316 let _ToJSON;
315317 let _TopLevelClass;
316318 let _Transient;
@@ -673,6 +675,8 @@ _Friend = PropTypes.shape({
673675 });
674676 _From = PropTypes.shape({
675677 });
678+_FromDict = PropTypes.shape({
679+});
676680 _FromJSON = PropTypes.shape({
677681 });
678682 _Func = PropTypes.shape({
@@ -941,6 +945,8 @@ _Throws = PropTypes.shape({
941945 });
942946 _ToString = PropTypes.shape({
943947 });
948+_ToDict = PropTypes.shape({
949+});
944950 _ToJSON = PropTypes.shape({
945951 });
946952 _TopLevelClass = PropTypes.shape({
@@ -1132,6 +1138,7 @@ _TopLevel = PropTypes.shape({
11321138 "FormatException": PropTypes.oneOfType([_FormatException, PropTypes.number, PropTypes.oneOf([null])]),
11331139 "friend": PropTypes.oneOfType([_Friend, PropTypes.number, PropTypes.oneOf([null])]),
11341140 "from": PropTypes.oneOfType([_From, PropTypes.number, PropTypes.oneOf([null])]),
1141+ "from_dict": PropTypes.oneOfType([_FromDict, PropTypes.number, PropTypes.oneOf([null])]),
11351142 "from_json": PropTypes.oneOfType([_FromJSON, PropTypes.number, PropTypes.oneOf([null])]),
11361143 "func": PropTypes.oneOfType([_Func, PropTypes.number, PropTypes.oneOf([null])]),
11371144 "function": PropTypes.oneOfType([_Function, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1302,6 +1309,7 @@ _TopLevel = PropTypes.shape({
13021309 "TimeOnly": PropTypes.oneOfType([_TimeOnly, PropTypes.number, PropTypes.oneOf([null])]),
13031310 "TimeOnlyConverter": PropTypes.oneOfType([_TimeOnlyConverter, PropTypes.number, PropTypes.oneOf([null])]),
13041311 "TimeZone": PropTypes.oneOfType([_TimeZone, PropTypes.number, PropTypes.oneOf([null])]),
1312+ "to_dict": PropTypes.oneOfType([_ToDict, PropTypes.number, PropTypes.oneOf([null])]),
13051313 "to_json": PropTypes.oneOfType([_ToJSON, PropTypes.number, PropTypes.oneOf([null])]),
13061314 "top_level": PropTypes.oneOfType([_TopLevelClass, PropTypes.number, PropTypes.oneOf([null])]),
13071315 "toString": (props, name, ...args) => Object.prototype.hasOwnProperty.call(props, name) ? PropTypes.oneOfType([_ToString, PropTypes.number, PropTypes.oneOf([null])])(props, name, ...args) : null,
Mschema-javascriptdefault / TopLevel.js+6 −0
@@ -315,6 +315,7 @@ const typeMap = {
315315 { json: "FormatException", js: "FormatException", typ: u(undefined, u(r("FormatException"), 3.14)) },
316316 { json: "friend", js: "friend", typ: u(undefined, u(r("Friend"), 3.14)) },
317317 { json: "from", js: "from", typ: u(undefined, u(r("From"), 3.14)) },
318+ { json: "from_dict", js: "from_dict", typ: u(undefined, u(r("FromDict"), 3.14)) },
318319 { json: "from_json", js: "from_json", typ: u(undefined, u(r("FromJSON"), 3.14)) },
319320 { json: "func", js: "func", typ: u(undefined, u(r("Func"), 3.14)) },
320321 { json: "function", js: "function", typ: u(undefined, u(r("Function"), 3.14)) },
@@ -485,6 +486,7 @@ const typeMap = {
485486 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(r("TimeOnly"), 3.14)) },
486487 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(r("TimeOnlyConverter"), 3.14)) },
487488 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(r("TimeZone"), 3.14)) },
489+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(r("ToDict"), 3.14)) },
488490 { json: "to_json", js: "to_json", typ: u(undefined, u(r("ToJSON"), 3.14)) },
489491 { json: "top_level", js: "top_level", typ: u(undefined, u(r("TopLevelClass"), 3.14)) },
490492 { json: "toString", js: "toString", typ: u(undefined, u(r("ToString"), 3.14)) },
@@ -855,6 +857,8 @@ const typeMap = {
855857 ], false),
856858 "From": o([
857859 ], false),
860+ "FromDict": o([
861+ ], false),
858862 "FromJSON": o([
859863 ], false),
860864 "Func": o([
@@ -1123,6 +1127,8 @@ const typeMap = {
11231127 ], false),
11241128 "ToString": o([
11251129 ], false),
1130+ "ToDict": o([
1131+ ], false),
11261132 "ToJSON": o([
11271133 ], false),
11281134 "TopLevelClass": o([
Mschema-objective-cdefault / QTTopLevel.h+10 −0
@@ -103,6 +103,7 @@
103103 @class QTFormatException;
104104 @class QTFriend;
105105 @class QTFrom;
106+@class QTFromDict;
106107 @class QTFromJSON;
107108 @class QTFunc;
108109 @class QTFunction;
@@ -307,6 +308,7 @@
307308 @class QTTimeOnly;
308309 @class QTTimeOnlyConverter;
309310 @class QTTimeZone;
311+@class QTToDict;
310312 @class QTToJSON;
311313 @class QTToString;
312314 @class QTTopLevelClass;
@@ -473,6 +475,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
473475 @property (nonatomic, nullable, copy) id formatException;
474476 @property (nonatomic, nullable, copy) id friend;
475477 @property (nonatomic, nullable, copy) id from;
478+@property (nonatomic, nullable, copy) id fromDict;
476479 @property (nonatomic, nullable, copy) id fromJSON;
477480 @property (nonatomic, nullable, copy) id func;
478481 @property (nonatomic, nullable, copy) id function;
@@ -643,6 +646,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
643646 @property (nonatomic, nullable, copy) id timeOnly;
644647 @property (nonatomic, nullable, copy) id timeOnlyConverter;
645648 @property (nonatomic, nullable, copy) id timeZone;
649+@property (nonatomic, nullable, copy) id toDict;
646650 @property (nonatomic, nullable, copy) id toJSON;
647651 @property (nonatomic, nullable, copy) id topLevel;
648652 @property (nonatomic, nullable, copy) id toString;
@@ -982,6 +986,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
982986 @interface QTFrom : NSObject
983987 @end
984988
989+@interface QTFromDict : NSObject
990+@end
991+
985992 @interface QTFromJSON : NSObject
986993 @end
987994
@@ -1594,6 +1601,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15941601 @interface QTTimeZone : NSObject
15951602 @end
15961603
1604+@interface QTToDict : NSObject
1605+@end
1606+
15971607 @interface QTToJSON : NSObject
15981608 @end
Mschema-objective-cdefault / QTTopLevel.m+90 −0
@@ -498,6 +498,11 @@ NS_ASSUME_NONNULL_BEGIN
498498 - (NSDictionary *)JSONDictionary;
499499 @end
500500
501+@interface QTFromDict (JSONConversion)
502++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
503+- (NSDictionary *)JSONDictionary;
504+@end
505+
501506 @interface QTFromJSON (JSONConversion)
502507 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
503508 - (NSDictionary *)JSONDictionary;
@@ -1518,6 +1523,11 @@ NS_ASSUME_NONNULL_BEGIN
15181523 - (NSDictionary *)JSONDictionary;
15191524 @end
15201525
1526+@interface QTToDict (JSONConversion)
1527++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1528+- (NSDictionary *)JSONDictionary;
1529+@end
1530+
15211531 @interface QTToJSON (JSONConversion)
15221532 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
15231533 - (NSDictionary *)JSONDictionary;
@@ -1836,6 +1846,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
18361846 @"FormatException": @"formatException",
18371847 @"friend": @"friend",
18381848 @"from": @"from",
1849+ @"from_dict": @"fromDict",
18391850 @"from_json": @"fromJSON",
18401851 @"func": @"func",
18411852 @"function": @"function",
@@ -2006,6 +2017,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
20062017 @"TimeOnly": @"timeOnly",
20072018 @"TimeOnlyConverter": @"timeOnlyConverter",
20082019 @"TimeZone": @"timeZone",
2020+ @"to_dict": @"toDict",
20092021 @"to_json": @"toJSON",
20102022 @"top_level": @"topLevel",
20112023 @"toString": @"toString",
@@ -5894,6 +5906,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
58945906 }
58955907 @end
58965908
5909+@implementation QTFromDict
5910++ (NSDictionary<NSString *, NSString *> *)properties
5911+{
5912+ static NSDictionary<NSString *, NSString *> *properties;
5913+ return properties = properties ? properties : @{
5914+ };
5915+}
5916+
5917++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
5918+{
5919+ return [dict isKindOfClass:NSDictionary.class] ? [[QTFromDict alloc] initWithJSONDictionary:dict] : nil;
5920+}
5921+
5922+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
5923+{
5924+ if (self = [super init]) {
5925+ [self setValuesForKeysWithDictionary:dict];
5926+ }
5927+ return self;
5928+}
5929+
5930+- (void)setValue:(nullable id)value forKey:(NSString *)key
5931+{
5932+ id resolved = QTFromDict.properties[key];
5933+ if (resolved) [super setValue:value forKey:resolved];
5934+}
5935+
5936+- (void)setNilValueForKey:(NSString *)key
5937+{
5938+ id resolved = QTFromDict.properties[key];
5939+ if (resolved) [super setValue:@(0) forKey:resolved];
5940+}
5941+
5942+- (NSDictionary *)JSONDictionary
5943+{
5944+ return [self dictionaryWithValuesForKeys:QTFromDict.properties.allValues];
5945+}
5946+@end
5947+
58975948 @implementation QTFromJSON
58985949 + (NSDictionary<NSString *, NSString *> *)properties
58995950 {
@@ -13850,6 +13901,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1385013901 }
1385113902 @end
1385213903
13904+@implementation QTToDict
13905++ (NSDictionary<NSString *, NSString *> *)properties
13906+{
13907+ static NSDictionary<NSString *, NSString *> *properties;
13908+ return properties = properties ? properties : @{
13909+ };
13910+}
13911+
13912++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13913+{
13914+ return [dict isKindOfClass:NSDictionary.class] ? [[QTToDict alloc] initWithJSONDictionary:dict] : nil;
13915+}
13916+
13917+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13918+{
13919+ if (self = [super init]) {
13920+ [self setValuesForKeysWithDictionary:dict];
13921+ }
13922+ return self;
13923+}
13924+
13925+- (void)setValue:(nullable id)value forKey:(NSString *)key
13926+{
13927+ id resolved = QTToDict.properties[key];
13928+ if (resolved) [super setValue:value forKey:resolved];
13929+}
13930+
13931+- (void)setNilValueForKey:(NSString *)key
13932+{
13933+ id resolved = QTToDict.properties[key];
13934+ if (resolved) [super setValue:@(0) forKey:resolved];
13935+}
13936+
13937+- (NSDictionary *)JSONDictionary
13938+{
13939+ return [self dictionaryWithValuesForKeys:QTToDict.properties.allValues];
13940+}
13941+@end
13942+
1385313943 @implementation QTToJSON
1385413944 + (NSDictionary<NSString *, NSString *> *)properties
1385513945 {
Mschema-phpdefault / TopLevel.php+472 −216
@@ -126,6 +126,7 @@ class TopLevel {
126126 private FormatException|float|null $formatException; // json:FormatException Optional
127127 private Friend|float|null $friend; // json:friend Optional
128128 private From|float|null $from; // json:from Optional
129+ private FromDict|float|null $fromDict; // json:from_dict Optional
129130 private FromJSON|float|null $fromJSON; // json:from_json Optional
130131 private Func|float|null $func; // json:func Optional
131132 private FunctionClass|float|null $function; // json:function Optional
@@ -296,6 +297,7 @@ class TopLevel {
296297 private TimeOnly|float|null $timeOnly; // json:TimeOnly Optional
297298 private TimeOnlyConverter|float|null $timeOnlyConverter; // json:TimeOnlyConverter Optional
298299 private TimeZone|float|null $timeZone; // json:TimeZone Optional
300+ private ToDict|float|null $toDict; // json:to_dict Optional
299301 private ToJSON|float|null $toJSON; // json:to_json Optional
300302 private TopLevelClass|float|null $topLevel; // json:top_level Optional
301303 private ToString|float|null $toString; // json:toString Optional
@@ -461,6 +463,7 @@ class TopLevel {
461463 * @param FormatException|float|null $formatException
462464 * @param Friend|float|null $friend
463465 * @param From|float|null $from
466+ * @param FromDict|float|null $fromDict
464467 * @param FromJSON|float|null $fromJSON
465468 * @param Func|float|null $func
466469 * @param FunctionClass|float|null $function
@@ -631,6 +634,7 @@ class TopLevel {
631634 * @param TimeOnly|float|null $timeOnly
632635 * @param TimeOnlyConverter|float|null $timeOnlyConverter
633636 * @param TimeZone|float|null $timeZone
637+ * @param ToDict|float|null $toDict
634638 * @param ToJSON|float|null $toJSON
635639 * @param TopLevelClass|float|null $topLevel
636640 * @param ToString|float|null $toString
@@ -673,7 +677,7 @@ class TopLevel {
673677 * @param Yes|float|null $yes
674678 * @param YieldClass|float|null $yield
675679 */
676- public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
680+ public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromDict|float|null $fromDict, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToDict|float|null $toDict, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
677681 $this->empty = $empty;
678682 $this->topLevelBool = $topLevelBool;
679683 $this->complex = $complex;
@@ -796,6 +800,7 @@ class TopLevel {
796800 $this->formatException = $formatException;
797801 $this->friend = $friend;
798802 $this->from = $from;
803+ $this->fromDict = $fromDict;
799804 $this->fromJSON = $fromJSON;
800805 $this->func = $func;
801806 $this->function = $function;
@@ -966,6 +971,7 @@ class TopLevel {
966971 $this->timeOnly = $timeOnly;
967972 $this->timeOnlyConverter = $timeOnlyConverter;
968973 $this->timeZone = $timeZone;
974+ $this->toDict = $toDict;
969975 $this->toJSON = $toJSON;
970976 $this->topLevel = $topLevel;
971977 $this->toString = $toString;
@@ -7398,7 +7404,7 @@ class TopLevel {
73987404 * @throws Exception
73997405 * @return Dict|float|null
74007406 */
7401- public static function fromDict(stdClass|float|null $value): Dict|float|null {
7407+ public static function purpleFromDict(stdClass|float|null $value): Dict|float|null {
74027408 if (is_null($value)) {
74037409 return $value; /*null*/
74047410 } elseif (is_object($value)) {
@@ -7414,7 +7420,7 @@ class TopLevel {
74147420 * @throws Exception
74157421 * @return stdClass|float|null
74167422 */
7417- public function toDict(): stdClass|float|null {
7423+ public function purpleToDict(): stdClass|float|null {
74187424 if (TopLevel::validateDict($this->dict)) {
74197425 if (is_null($this->dict)) {
74207426 return $this->dict; /*null*/
@@ -10262,6 +10268,82 @@ class TopLevel {
1026210268 return From::sample(); /*152:from*/
1026310269 }
1026410270
10271+ /**
10272+ * @param stdClass|float|null $value
10273+ * @throws Exception
10274+ * @return FromDict|float|null
10275+ */
10276+ public static function fromFromDict(stdClass|float|null $value): FromDict|float|null {
10277+ if (is_null($value)) {
10278+ return $value; /*null*/
10279+ } elseif (is_object($value)) {
10280+ return FromDict::from($value); /*class*/
10281+ } elseif (is_float($value) || is_int($value)) {
10282+ return $value; /*float*/
10283+ } else {
10284+ throw new Exception('Cannot deserialize union value in TopLevel');
10285+ }
10286+ }
10287+
10288+ /**
10289+ * @throws Exception
10290+ * @return stdClass|float|null
10291+ */
10292+ public function toFromDict(): stdClass|float|null {
10293+ if (TopLevel::validateFromDict($this->fromDict)) {
10294+ if (is_null($this->fromDict)) {
10295+ return $this->fromDict; /*null*/
10296+ } elseif ($this->fromDict instanceof FromDict) {
10297+ return $this->fromDict->to(); /*class*/
10298+ } elseif (is_float($this->fromDict) || is_int($this->fromDict)) {
10299+ return $this->fromDict; /*float*/
10300+ } else {
10301+ throw new Exception('Union value has no matching member in TopLevel');
10302+ }
10303+ }
10304+ throw new Exception('never get to this TopLevel::fromDict');
10305+ }
10306+
10307+ /**
10308+ * @param FromDict|float|null
10309+ * @return bool
10310+ * @throws Exception
10311+ */
10312+ public static function validateFromDict(FromDict|float|null $value): bool {
10313+ if (is_null($value)) {
10314+ if (!is_null($value)) {
10315+ throw new Exception("Attribute Error:TopLevel::fromDict");
10316+ }
10317+ } elseif ($value instanceof FromDict) {
10318+ $value->validate();
10319+ } elseif (is_float($value) || is_int($value)) {
10320+ if (!is_float($value) && !is_int($value)) {
10321+ throw new Exception("Attribute Error:TopLevel::fromDict");
10322+ }
10323+ } else {
10324+ throw new Exception("Attribute Error:TopLevel::fromDict");
10325+ }
10326+ return true;
10327+ }
10328+
10329+ /**
10330+ * @throws Exception
10331+ * @return FromDict|float|null
10332+ */
10333+ public function getFromDict(): FromDict|float|null {
10334+ if (TopLevel::validateFromDict($this->fromDict)) {
10335+ return $this->fromDict;
10336+ }
10337+ throw new Exception('never get to getFromDict TopLevel::fromDict');
10338+ }
10339+
10340+ /**
10341+ * @return FromDict|float|null
10342+ */
10343+ public static function sampleFromDict(): FromDict|float|null {
10344+ return FromDict::sample(); /*153:fromDict*/
10345+ }
10346+
1026510347 /**
1026610348 * @param stdClass|float|null $value
1026710349 * @throws Exception
@@ -10335,7 +10417,7 @@ class TopLevel {
1033510417 * @return FromJSON|float|null
1033610418 */
1033710419 public static function sampleFromJSON(): FromJSON|float|null {
10338- return FromJSON::sample(); /*153:fromJSON*/
10420+ return FromJSON::sample(); /*154:fromJSON*/
1033910421 }
1034010422
1034110423 /**
@@ -10411,7 +10493,7 @@ class TopLevel {
1041110493 * @return Func|float|null
1041210494 */
1041310495 public static function sampleFunc(): Func|float|null {
10414- return Func::sample(); /*154:func*/
10496+ return Func::sample(); /*155:func*/
1041510497 }
1041610498
1041710499 /**
@@ -10487,7 +10569,7 @@ class TopLevel {
1048710569 * @return FunctionClass|float|null
1048810570 */
1048910571 public static function sampleFunction(): FunctionClass|float|null {
10490- return FunctionClass::sample(); /*155:function*/
10572+ return FunctionClass::sample(); /*156:function*/
1049110573 }
1049210574
1049310575 /**
@@ -10563,7 +10645,7 @@ class TopLevel {
1056310645 * @return Get|float|null
1056410646 */
1056510647 public static function sampleGet(): Get|float|null {
10566- return Get::sample(); /*156:get*/
10648+ return Get::sample(); /*157:get*/
1056710649 }
1056810650
1056910651 /**
@@ -10639,7 +10721,7 @@ class TopLevel {
1063910721 * @return GlobalClass|float|null
1064010722 */
1064110723 public static function sampleGlobal(): GlobalClass|float|null {
10642- return GlobalClass::sample(); /*157:global*/
10724+ return GlobalClass::sample(); /*158:global*/
1064310725 }
1064410726
1064510727 /**
@@ -10715,7 +10797,7 @@ class TopLevel {
1071510797 * @return Go|float|null
1071610798 */
1071710799 public static function sampleGo(): Go|float|null {
10718- return Go::sample(); /*158:go*/
10800+ return Go::sample(); /*159:go*/
1071910801 }
1072010802
1072110803 /**
@@ -10791,7 +10873,7 @@ class TopLevel {
1079110873 * @return GotoClass|float|null
1079210874 */
1079310875 public static function sampleGoto(): GotoClass|float|null {
10794- return GotoClass::sample(); /*159:goto*/
10876+ return GotoClass::sample(); /*160:goto*/
1079510877 }
1079610878
1079710879 /**
@@ -10867,7 +10949,7 @@ class TopLevel {
1086710949 * @return Guard|float|null
1086810950 */
1086910951 public static function sampleGuard(): Guard|float|null {
10870- return Guard::sample(); /*160:guard*/
10952+ return Guard::sample(); /*161:guard*/
1087110953 }
1087210954
1087310955 /**
@@ -10943,7 +11025,7 @@ class TopLevel {
1094311025 * @return Hashable|float|null
1094411026 */
1094511027 public static function sampleHashable(): Hashable|float|null {
10946- return Hashable::sample(); /*161:hashable*/
11028+ return Hashable::sample(); /*162:hashable*/
1094711029 }
1094811030
1094911031 /**
@@ -11019,7 +11101,7 @@ class TopLevel {
1101911101 * @return HashCode|float|null
1102011102 */
1102111103 public static function sampleHashCode(): HashCode|float|null {
11022- return HashCode::sample(); /*162:hashCode*/
11104+ return HashCode::sample(); /*163:hashCode*/
1102311105 }
1102411106
1102511107 /**
@@ -11095,7 +11177,7 @@ class TopLevel {
1109511177 * @return Hasher|float|null
1109611178 */
1109711179 public static function sampleHasher(): Hasher|float|null {
11098- return Hasher::sample(); /*163:hasher*/
11180+ return Hasher::sample(); /*164:hasher*/
1109911181 }
1110011182
1110111183 /**
@@ -11171,7 +11253,7 @@ class TopLevel {
1117111253 * @return HasOwnProperty|float|null
1117211254 */
1117311255 public static function sampleHasOwnProperty(): HasOwnProperty|float|null {
11174- return HasOwnProperty::sample(); /*164:hasOwnProperty*/
11256+ return HasOwnProperty::sample(); /*165:hasOwnProperty*/
1117511257 }
1117611258
1117711259 /**
@@ -11247,7 +11329,7 @@ class TopLevel {
1124711329 * @return ID|float|null
1124811330 */
1124911331 public static function sampleID(): ID|float|null {
11250- return ID::sample(); /*165:id*/
11332+ return ID::sample(); /*166:id*/
1125111333 }
1125211334
1125311335 /**
@@ -11323,7 +11405,7 @@ class TopLevel {
1132311405 * @return IfClass|float|null
1132411406 */
1132511407 public static function sampleIf(): IfClass|float|null {
11326- return IfClass::sample(); /*166:if*/
11408+ return IfClass::sample(); /*167:if*/
1132711409 }
1132811410
1132911411 /**
@@ -11399,7 +11481,7 @@ class TopLevel {
1139911481 * @return Imp|float|null
1140011482 */
1140111483 public static function sampleImp(): Imp|float|null {
11402- return Imp::sample(); /*167:imp*/
11484+ return Imp::sample(); /*168:imp*/
1140311485 }
1140411486
1140511487 /**
@@ -11475,7 +11557,7 @@ class TopLevel {
1147511557 * @return ImplementsClass|float|null
1147611558 */
1147711559 public static function sampleImplements(): ImplementsClass|float|null {
11478- return ImplementsClass::sample(); /*168:implements*/
11560+ return ImplementsClass::sample(); /*169:implements*/
1147911561 }
1148011562
1148111563 /**
@@ -11551,7 +11633,7 @@ class TopLevel {
1155111633 * @return Implicit|float|null
1155211634 */
1155311635 public static function sampleImplicit(): Implicit|float|null {
11554- return Implicit::sample(); /*169:implicit*/
11636+ return Implicit::sample(); /*170:implicit*/
1155511637 }
1155611638
1155711639 /**
@@ -11627,7 +11709,7 @@ class TopLevel {
1162711709 * @return Import|float|null
1162811710 */
1162911711 public static function sampleImport(): Import|float|null {
11630- return Import::sample(); /*170:import*/
11712+ return Import::sample(); /*171:import*/
1163111713 }
1163211714
1163311715 /**
@@ -11703,7 +11785,7 @@ class TopLevel {
1170311785 * @return In|float|null
1170411786 */
1170511787 public static function sampleIn(): In|float|null {
11706- return In::sample(); /*171:in*/
11788+ return In::sample(); /*172:in*/
1170711789 }
1170811790
1170911791 /**
@@ -11779,7 +11861,7 @@ class TopLevel {
1177911861 * @return Indirect|float|null
1178011862 */
1178111863 public static function sampleIndirect(): Indirect|float|null {
11782- return Indirect::sample(); /*172:indirect*/
11864+ return Indirect::sample(); /*173:indirect*/
1178311865 }
1178411866
1178511867 /**
@@ -11855,7 +11937,7 @@ class TopLevel {
1185511937 * @return Infix|float|null
1185611938 */
1185711939 public static function sampleInfix(): Infix|float|null {
11858- return Infix::sample(); /*173:infix*/
11940+ return Infix::sample(); /*174:infix*/
1185911941 }
1186011942
1186111943 /**
@@ -11931,7 +12013,7 @@ class TopLevel {
1193112013 * @return Init|float|null
1193212014 */
1193312015 public static function sampleInit(): Init|float|null {
11934- return Init::sample(); /*174:init*/
12016+ return Init::sample(); /*175:init*/
1193512017 }
1193612018
1193712019 /**
@@ -12007,7 +12089,7 @@ class TopLevel {
1200712089 * @return Inline|float|null
1200812090 */
1200912091 public static function sampleInline(): Inline|float|null {
12010- return Inline::sample(); /*175:inline*/
12092+ return Inline::sample(); /*176:inline*/
1201112093 }
1201212094
1201312095 /**
@@ -12083,7 +12165,7 @@ class TopLevel {
1208312165 * @return Inout|float|null
1208412166 */
1208512167 public static function sampleInout(): Inout|float|null {
12086- return Inout::sample(); /*176:inout*/
12168+ return Inout::sample(); /*177:inout*/
1208712169 }
1208812170
1208912171 /**
@@ -12159,7 +12241,7 @@ class TopLevel {
1215912241 * @return InstanceofClass|float|null
1216012242 */
1216112243 public static function sampleInstanceof(): InstanceofClass|float|null {
12162- return InstanceofClass::sample(); /*177:instanceof*/
12244+ return InstanceofClass::sample(); /*178:instanceof*/
1216312245 }
1216412246
1216512247 /**
@@ -12235,7 +12317,7 @@ class TopLevel {
1223512317 * @return IntClass|float|null
1223612318 */
1223712319 public static function sampleInt(): IntClass|float|null {
12238- return IntClass::sample(); /*178:int*/
12320+ return IntClass::sample(); /*179:int*/
1223912321 }
1224012322
1224112323 /**
@@ -12311,7 +12393,7 @@ class TopLevel {
1231112393 * @return InterfaceClass|float|null
1231212394 */
1231312395 public static function sampleInterface(): InterfaceClass|float|null {
12314- return InterfaceClass::sample(); /*179:interface*/
12396+ return InterfaceClass::sample(); /*180:interface*/
1231512397 }
1231612398
1231712399 /**
@@ -12387,7 +12469,7 @@ class TopLevel {
1238712469 * @return Internal|float|null
1238812470 */
1238912471 public static function sampleInternal(): Internal|float|null {
12390- return Internal::sample(); /*180:internal*/
12472+ return Internal::sample(); /*181:internal*/
1239112473 }
1239212474
1239312475 /**
@@ -12463,7 +12545,7 @@ class TopLevel {
1246312545 * @return Is|float|null
1246412546 */
1246512547 public static function sampleIs(): Is|float|null {
12466- return Is::sample(); /*181:is*/
12548+ return Is::sample(); /*182:is*/
1246712549 }
1246812550
1246912551 /**
@@ -12539,7 +12621,7 @@ class TopLevel {
1253912621 * @return ISODateTimeOffsetConverter|float|null
1254012622 */
1254112623 public static function sampleISODateTimeOffsetConverter(): ISODateTimeOffsetConverter|float|null {
12542- return ISODateTimeOffsetConverter::sample(); /*182:isoDateTimeOffsetConverter*/
12624+ return ISODateTimeOffsetConverter::sample(); /*183:isoDateTimeOffsetConverter*/
1254312625 }
1254412626
1254512627 /**
@@ -12615,7 +12697,7 @@ class TopLevel {
1261512697 * @return IterableClass|float|null
1261612698 */
1261712699 public static function sampleIterable(): IterableClass|float|null {
12618- return IterableClass::sample(); /*183:iterable*/
12700+ return IterableClass::sample(); /*184:iterable*/
1261912701 }
1262012702
1262112703 /**
@@ -12691,7 +12773,7 @@ class TopLevel {
1269112773 * @return Jdec|float|null
1269212774 */
1269312775 public static function sampleJdec(): Jdec|float|null {
12694- return Jdec::sample(); /*184:jdec*/
12776+ return Jdec::sample(); /*185:jdec*/
1269512777 }
1269612778
1269712779 /**
@@ -12767,7 +12849,7 @@ class TopLevel {
1276712849 * @return Jenc|float|null
1276812850 */
1276912851 public static function sampleJenc(): Jenc|float|null {
12770- return Jenc::sample(); /*185:jenc*/
12852+ return Jenc::sample(); /*186:jenc*/
1277112853 }
1277212854
1277312855 /**
@@ -12843,7 +12925,7 @@ class TopLevel {
1284312925 * @return Jpipe|float|null
1284412926 */
1284512927 public static function sampleJpipe(): Jpipe|float|null {
12846- return Jpipe::sample(); /*186:jpipe*/
12928+ return Jpipe::sample(); /*187:jpipe*/
1284712929 }
1284812930
1284912931 /**
@@ -12919,7 +13001,7 @@ class TopLevel {
1291913001 * @return JSON|float|null
1292013002 */
1292113003 public static function sampleJSON(): JSON|float|null {
12922- return JSON::sample(); /*187:json*/
13004+ return JSON::sample(); /*188:json*/
1292313005 }
1292413006
1292513007 /**
@@ -12995,7 +13077,7 @@ class TopLevel {
1299513077 * @return JSONConverter|float|null
1299613078 */
1299713079 public static function sampleJSONConverter(): JSONConverter|float|null {
12998- return JSONConverter::sample(); /*188:jsonConverter*/
13080+ return JSONConverter::sample(); /*189:jsonConverter*/
1299913081 }
1300013082
1300113083 /**
@@ -13071,7 +13153,7 @@ class TopLevel {
1307113153 * @return JSONSerializer|float|null
1307213154 */
1307313155 public static function sampleJSONSerializer(): JSONSerializer|float|null {
13074- return JSONSerializer::sample(); /*189:jsonSerializer*/
13156+ return JSONSerializer::sample(); /*190:jsonSerializer*/
1307513157 }
1307613158
1307713159 /**
@@ -13147,7 +13229,7 @@ class TopLevel {
1314713229 * @return JSONToken|float|null
1314813230 */
1314913231 public static function sampleJSONToken(): JSONToken|float|null {
13150- return JSONToken::sample(); /*190:jsonToken*/
13232+ return JSONToken::sample(); /*191:jsonToken*/
1315113233 }
1315213234
1315313235 /**
@@ -13223,7 +13305,7 @@ class TopLevel {
1322313305 * @return JSONWriter|float|null
1322413306 */
1322513307 public static function sampleJSONWriter(): JSONWriter|float|null {
13226- return JSONWriter::sample(); /*191:jsonWriter*/
13308+ return JSONWriter::sample(); /*192:jsonWriter*/
1322713309 }
1322813310
1322913311 /**
@@ -13299,7 +13381,7 @@ class TopLevel {
1329913381 * @return JSONAny|float|null
1330013382 */
1330113383 public static function sampleJSONAny(): JSONAny|float|null {
13302- return JSONAny::sample(); /*192:jsonAny*/
13384+ return JSONAny::sample(); /*193:jsonAny*/
1330313385 }
1330413386
1330513387 /**
@@ -13375,7 +13457,7 @@ class TopLevel {
1337513457 * @return JSONCodingKey|float|null
1337613458 */
1337713459 public static function sampleJSONCodingKey(): JSONCodingKey|float|null {
13378- return JSONCodingKey::sample(); /*193:jsonCodingKey*/
13460+ return JSONCodingKey::sample(); /*194:jsonCodingKey*/
1337913461 }
1338013462
1338113463 /**
@@ -13451,7 +13533,7 @@ class TopLevel {
1345113533 * @return JSONDecoder|float|null
1345213534 */
1345313535 public static function sampleJSONDecoder(): JSONDecoder|float|null {
13454- return JSONDecoder::sample(); /*194:jsonDecoder*/
13536+ return JSONDecoder::sample(); /*195:jsonDecoder*/
1345513537 }
1345613538
1345713539 /**
@@ -13527,7 +13609,7 @@ class TopLevel {
1352713609 * @return JSONEncoder|float|null
1352813610 */
1352913611 public static function sampleJSONEncoder(): JSONEncoder|float|null {
13530- return JSONEncoder::sample(); /*195:jsonEncoder*/
13612+ return JSONEncoder::sample(); /*196:jsonEncoder*/
1353113613 }
1353213614
1353313615 /**
@@ -13603,7 +13685,7 @@ class TopLevel {
1360313685 * @return JSONExceptionClass|float|null
1360413686 */
1360513687 public static function sampleJSONException(): JSONExceptionClass|float|null {
13606- return JSONExceptionClass::sample(); /*196:jsonException*/
13688+ return JSONExceptionClass::sample(); /*197:jsonException*/
1360713689 }
1360813690
1360913691 /**
@@ -13679,7 +13761,7 @@ class TopLevel {
1367913761 * @return JSONGenerator|float|null
1368013762 */
1368113763 public static function sampleJSONGenerator(): JSONGenerator|float|null {
13682- return JSONGenerator::sample(); /*197:jsonGenerator*/
13764+ return JSONGenerator::sample(); /*198:jsonGenerator*/
1368313765 }
1368413766
1368513767 /**
@@ -13755,7 +13837,7 @@ class TopLevel {
1375513837 * @return JSONNode|float|null
1375613838 */
1375713839 public static function sampleJSONNode(): JSONNode|float|null {
13758- return JSONNode::sample(); /*198:jsonNode*/
13840+ return JSONNode::sample(); /*199:jsonNode*/
1375913841 }
1376013842
1376113843 /**
@@ -13831,7 +13913,7 @@ class TopLevel {
1383113913 * @return JSONNull|float|null
1383213914 */
1383313915 public static function sampleJSONNull(): JSONNull|float|null {
13834- return JSONNull::sample(); /*199:jsonNull*/
13916+ return JSONNull::sample(); /*200:jsonNull*/
1383513917 }
1383613918
1383713919 /**
@@ -13907,7 +13989,7 @@ class TopLevel {
1390713989 * @return JSONParser|float|null
1390813990 */
1390913991 public static function sampleJSONParser(): JSONParser|float|null {
13910- return JSONParser::sample(); /*200:jsonParser*/
13992+ return JSONParser::sample(); /*201:jsonParser*/
1391113993 }
1391213994
1391313995 /**
@@ -13983,7 +14065,7 @@ class TopLevel {
1398314065 * @return JSONReader|float|null
1398414066 */
1398514067 public static function sampleJSONReader(): JSONReader|float|null {
13986- return JSONReader::sample(); /*201:jsonReader*/
14068+ return JSONReader::sample(); /*202:jsonReader*/
1398714069 }
1398814070
1398914071 /**
@@ -14059,7 +14141,7 @@ class TopLevel {
1405914141 * @return JSONTokenType|float|null
1406014142 */
1406114143 public static function sampleJSONTokenType(): JSONTokenType|float|null {
14062- return JSONTokenType::sample(); /*202:jsonTokenType*/
14144+ return JSONTokenType::sample(); /*203:jsonTokenType*/
1406314145 }
1406414146
1406514147 /**
@@ -14135,7 +14217,7 @@ class TopLevel {
1413514217 * @return Lambda|float|null
1413614218 */
1413714219 public static function sampleLambda(): Lambda|float|null {
14138- return Lambda::sample(); /*203:lambda*/
14220+ return Lambda::sample(); /*204:lambda*/
1413914221 }
1414014222
1414114223 /**
@@ -14211,7 +14293,7 @@ class TopLevel {
1421114293 * @return Lazy|float|null
1421214294 */
1421314295 public static function sampleLazy(): Lazy|float|null {
14214- return Lazy::sample(); /*204:lazy*/
14296+ return Lazy::sample(); /*205:lazy*/
1421514297 }
1421614298
1421714299 /**
@@ -14287,7 +14369,7 @@ class TopLevel {
1428714369 * @return Left|float|null
1428814370 */
1428914371 public static function sampleLeft(): Left|float|null {
14290- return Left::sample(); /*205:left*/
14372+ return Left::sample(); /*206:left*/
1429114373 }
1429214374
1429314375 /**
@@ -14363,7 +14445,7 @@ class TopLevel {
1436314445 * @return Let|float|null
1436414446 */
1436514447 public static function sampleLet(): Let|float|null {
14366- return Let::sample(); /*206:let*/
14448+ return Let::sample(); /*207:let*/
1436714449 }
1436814450
1436914451 /**
@@ -14439,7 +14521,7 @@ class TopLevel {
1443914521 * @return ListClass|float|null
1444014522 */
1444114523 public static function sampleList(): ListClass|float|null {
14442- return ListClass::sample(); /*207:list*/
14524+ return ListClass::sample(); /*208:list*/
1444314525 }
1444414526
1444514527 /**
@@ -14515,7 +14597,7 @@ class TopLevel {
1451514597 * @return LocaleClass|float|null
1451614598 */
1451714599 public static function sampleLocale(): LocaleClass|float|null {
14518- return LocaleClass::sample(); /*208:locale*/
14600+ return LocaleClass::sample(); /*209:locale*/
1451914601 }
1452014602
1452114603 /**
@@ -14591,7 +14673,7 @@ class TopLevel {
1459114673 * @return Lock|float|null
1459214674 */
1459314675 public static function sampleLock(): Lock|float|null {
14594- return Lock::sample(); /*209:lock*/
14676+ return Lock::sample(); /*210:lock*/
1459514677 }
1459614678
1459714679 /**
@@ -14667,7 +14749,7 @@ class TopLevel {
1466714749 * @return Long|float|null
1466814750 */
1466914751 public static function sampleLong(): Long|float|null {
14670- return Long::sample(); /*210:long*/
14752+ return Long::sample(); /*211:long*/
1467114753 }
1467214754
1467314755 /**
@@ -14743,7 +14825,7 @@ class TopLevel {
1474314825 * @return Map|float|null
1474414826 */
1474514827 public static function sampleMap(): Map|float|null {
14746- return Map::sample(); /*211:map*/
14828+ return Map::sample(); /*212:map*/
1474714829 }
1474814830
1474914831 /**
@@ -14819,7 +14901,7 @@ class TopLevel {
1481914901 * @return MapEntry|float|null
1482014902 */
1482114903 public static function sampleMapEntry(): MapEntry|float|null {
14822- return MapEntry::sample(); /*212:mapEntry*/
14904+ return MapEntry::sample(); /*213:mapEntry*/
1482314905 }
1482414906
1482514907 /**
@@ -14895,7 +14977,7 @@ class TopLevel {
1489514977 * @return MetadataPropertyHandling|float|null
1489614978 */
1489714979 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
14898- return MetadataPropertyHandling::sample(); /*213:metadataPropertyHandling*/
14980+ return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/
1489914981 }
1490014982
1490114983 /**
@@ -14971,7 +15053,7 @@ class TopLevel {
1497115053 * @return Module|float|null
1497215054 */
1497315055 public static function sampleModule(): Module|float|null {
14974- return Module::sample(); /*214:module*/
15056+ return Module::sample(); /*215:module*/
1497515057 }
1497615058
1497715059 /**
@@ -15047,7 +15129,7 @@ class TopLevel {
1504715129 * @return Mutable|float|null
1504815130 */
1504915131 public static function sampleMutable(): Mutable|float|null {
15050- return Mutable::sample(); /*215:mutable*/
15132+ return Mutable::sample(); /*216:mutable*/
1505115133 }
1505215134
1505315135 /**
@@ -15123,7 +15205,7 @@ class TopLevel {
1512315205 * @return Mutating|float|null
1512415206 */
1512515207 public static function sampleMutating(): Mutating|float|null {
15126- return Mutating::sample(); /*216:mutating*/
15208+ return Mutating::sample(); /*217:mutating*/
1512715209 }
1512815210
1512915211 /**
@@ -15199,7 +15281,7 @@ class TopLevel {
1519915281 * @return NamespaceClass|float|null
1520015282 */
1520115283 public static function sampleNamespace(): NamespaceClass|float|null {
15202- return NamespaceClass::sample(); /*217:namespace*/
15284+ return NamespaceClass::sample(); /*218:namespace*/
1520315285 }
1520415286
1520515287 /**
@@ -15275,7 +15357,7 @@ class TopLevel {
1527515357 * @return Native|float|null
1527615358 */
1527715359 public static function sampleNative(): Native|float|null {
15278- return Native::sample(); /*218:native*/
15360+ return Native::sample(); /*219:native*/
1527915361 }
1528015362
1528115363 /**
@@ -15351,7 +15433,7 @@ class TopLevel {
1535115433 * @return NewClass|float|null
1535215434 */
1535315435 public static function sampleNew(): NewClass|float|null {
15354- return NewClass::sample(); /*219:new*/
15436+ return NewClass::sample(); /*220:new*/
1535515437 }
1535615438
1535715439 /**
@@ -15427,7 +15509,7 @@ class TopLevel {
1542715509 * @return Newtonsoft|float|null
1542815510 */
1542915511 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15430- return Newtonsoft::sample(); /*220:newtonsoft*/
15512+ return Newtonsoft::sample(); /*221:newtonsoft*/
1543115513 }
1543215514
1543315515 /**
@@ -15503,7 +15585,7 @@ class TopLevel {
1550315585 * @return Nil|float|null
1550415586 */
1550515587 public static function sampleNil(): Nil|float|null {
15506- return Nil::sample(); /*221:nil*/
15588+ return Nil::sample(); /*222:nil*/
1550715589 }
1550815590
1550915591 /**
@@ -15579,7 +15661,7 @@ class TopLevel {
1557915661 * @return No|float|null
1558015662 */
1558115663 public static function sampleNo(): No|float|null {
15582- return No::sample(); /*222:no*/
15664+ return No::sample(); /*223:no*/
1558315665 }
1558415666
1558515667 /**
@@ -15655,7 +15737,7 @@ class TopLevel {
1565515737 * @return Noexcept|float|null
1565615738 */
1565715739 public static function sampleNoexcept(): Noexcept|float|null {
15658- return Noexcept::sample(); /*223:noexcept*/
15740+ return Noexcept::sample(); /*224:noexcept*/
1565915741 }
1566015742
1566115743 /**
@@ -15731,7 +15813,7 @@ class TopLevel {
1573115813 * @return Nonatomic|float|null
1573215814 */
1573315815 public static function sampleNonatomic(): Nonatomic|float|null {
15734- return Nonatomic::sample(); /*224:nonatomic*/
15816+ return Nonatomic::sample(); /*225:nonatomic*/
1573515817 }
1573615818
1573715819 /**
@@ -15807,7 +15889,7 @@ class TopLevel {
1580715889 * @return NoneClass|float|null
1580815890 */
1580915891 public static function sampleTopLevelNone(): NoneClass|float|null {
15810- return NoneClass::sample(); /*225:topLevelNone*/
15892+ return NoneClass::sample(); /*226:topLevelNone*/
1581115893 }
1581215894
1581315895 /**
@@ -15883,7 +15965,7 @@ class TopLevel {
1588315965 * @return None|float|null
1588415966 */
1588515967 public static function sampleNone(): None|float|null {
15886- return None::sample(); /*226:none*/
15968+ return None::sample(); /*227:none*/
1588715969 }
1588815970
1588915971 /**
@@ -15959,7 +16041,7 @@ class TopLevel {
1595916041 * @return Nonlocal|float|null
1596016042 */
1596116043 public static function sampleNonlocal(): Nonlocal|float|null {
15962- return Nonlocal::sample(); /*227:nonlocal*/
16044+ return Nonlocal::sample(); /*228:nonlocal*/
1596316045 }
1596416046
1596516047 /**
@@ -16035,7 +16117,7 @@ class TopLevel {
1603516117 * @return Nonmutating|float|null
1603616118 */
1603716119 public static function sampleNonmutating(): Nonmutating|float|null {
16038- return Nonmutating::sample(); /*228:nonmutating*/
16120+ return Nonmutating::sample(); /*229:nonmutating*/
1603916121 }
1604016122
1604116123 /**
@@ -16111,7 +16193,7 @@ class TopLevel {
1611116193 * @return NoSuchMethod|float|null
1611216194 */
1611316195 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16114- return NoSuchMethod::sample(); /*229:noSuchMethod*/
16196+ return NoSuchMethod::sample(); /*230:noSuchMethod*/
1611516197 }
1611616198
1611716199 /**
@@ -16187,7 +16269,7 @@ class TopLevel {
1618716269 * @return Not|float|null
1618816270 */
1618916271 public static function sampleNot(): Not|float|null {
16190- return Not::sample(); /*230:not*/
16272+ return Not::sample(); /*231:not*/
1619116273 }
1619216274
1619316275 /**
@@ -16263,7 +16345,7 @@ class TopLevel {
1626316345 * @return NotEq|float|null
1626416346 */
1626516347 public static function sampleNotEq(): NotEq|float|null {
16266- return NotEq::sample(); /*231:notEq*/
16348+ return NotEq::sample(); /*232:notEq*/
1626716349 }
1626816350
1626916351 /**
@@ -16339,7 +16421,7 @@ class TopLevel {
1633916421 * @return NSError|float|null
1634016422 */
1634116423 public static function sampleNSError(): NSError|float|null {
16342- return NSError::sample(); /*232:nsError*/
16424+ return NSError::sample(); /*233:nsError*/
1634316425 }
1634416426
1634516427 /**
@@ -16415,7 +16497,7 @@ class TopLevel {
1641516497 * @return NSObject|float|null
1641616498 */
1641716499 public static function sampleNSObject(): NSObject|float|null {
16418- return NSObject::sample(); /*233:nsObject*/
16500+ return NSObject::sample(); /*234:nsObject*/
1641916501 }
1642016502
1642116503 /**
@@ -16491,7 +16573,7 @@ class TopLevel {
1649116573 * @return NSString|float|null
1649216574 */
1649316575 public static function sampleNSString(): NSString|float|null {
16494- return NSString::sample(); /*234:nsString*/
16576+ return NSString::sample(); /*235:nsString*/
1649516577 }
1649616578
1649716579 /**
@@ -16567,7 +16649,7 @@ class TopLevel {
1656716649 * @return NULLClass|float|null
1656816650 */
1656916651 public static function sampleNull(): NULLClass|float|null {
16570- return NULLClass::sample(); /*235:null*/
16652+ return NULLClass::sample(); /*236:null*/
1657116653 }
1657216654
1657316655 /**
@@ -16643,7 +16725,7 @@ class TopLevel {
1664316725 * @return UnionNullNull|float|null
1664416726 */
1664516727 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16646- return UnionNullNull::sample(); /*236:topLevelNull*/
16728+ return UnionNullNull::sample(); /*237:topLevelNull*/
1664716729 }
1664816730
1664916731 /**
@@ -16719,7 +16801,7 @@ class TopLevel {
1671916801 * @return Nullptr|float|null
1672016802 */
1672116803 public static function sampleNullptr(): Nullptr|float|null {
16722- return Nullptr::sample(); /*237:nullptr*/
16804+ return Nullptr::sample(); /*238:nullptr*/
1672316805 }
1672416806
1672516807 /**
@@ -16795,7 +16877,7 @@ class TopLevel {
1679516877 * @return Number|float|null
1679616878 */
1679716879 public static function sampleNumber(): Number|float|null {
16798- return Number::sample(); /*238:number*/
16880+ return Number::sample(); /*239:number*/
1679916881 }
1680016882
1680116883 /**
@@ -16871,7 +16953,7 @@ class TopLevel {
1687116953 * @return ObjectClass|float|null
1687216954 */
1687316955 public static function sampleObject(): ObjectClass|float|null {
16874- return ObjectClass::sample(); /*239:object*/
16956+ return ObjectClass::sample(); /*240:object*/
1687516957 }
1687616958
1687716959 /**
@@ -16947,7 +17029,7 @@ class TopLevel {
1694717029 * @return ObjectMapper|float|null
1694817030 */
1694917031 public static function sampleObjectMapper(): ObjectMapper|float|null {
16950- return ObjectMapper::sample(); /*240:objectMapper*/
17032+ return ObjectMapper::sample(); /*241:objectMapper*/
1695117033 }
1695217034
1695317035 /**
@@ -17023,7 +17105,7 @@ class TopLevel {
1702317105 * @return Of|float|null
1702417106 */
1702517107 public static function sampleOf(): Of|float|null {
17026- return Of::sample(); /*241:of*/
17108+ return Of::sample(); /*242:of*/
1702717109 }
1702817110
1702917111 /**
@@ -17099,7 +17181,7 @@ class TopLevel {
1709917181 * @return Oneway|float|null
1710017182 */
1710117183 public static function sampleOneway(): Oneway|float|null {
17102- return Oneway::sample(); /*242:oneway*/
17184+ return Oneway::sample(); /*243:oneway*/
1710317185 }
1710417186
1710517187 /**
@@ -17175,7 +17257,7 @@ class TopLevel {
1717517257 * @return Open|float|null
1717617258 */
1717717259 public static function sampleOpen(): Open|float|null {
17178- return Open::sample(); /*243:open*/
17260+ return Open::sample(); /*244:open*/
1717917261 }
1718017262
1718117263 /**
@@ -17251,7 +17333,7 @@ class TopLevel {
1725117333 * @return Operator|float|null
1725217334 */
1725317335 public static function sampleOperator(): Operator|float|null {
17254- return Operator::sample(); /*244:operator*/
17336+ return Operator::sample(); /*245:operator*/
1725517337 }
1725617338
1725717339 /**
@@ -17327,7 +17409,7 @@ class TopLevel {
1732717409 * @return Optional|float|null
1732817410 */
1732917411 public static function sampleOptional(): Optional|float|null {
17330- return Optional::sample(); /*245:optional*/
17412+ return Optional::sample(); /*246:optional*/
1733117413 }
1733217414
1733317415 /**
@@ -17403,7 +17485,7 @@ class TopLevel {
1740317485 * @return OrClass|float|null
1740417486 */
1740517487 public static function sampleOr(): OrClass|float|null {
17406- return OrClass::sample(); /*246:or*/
17488+ return OrClass::sample(); /*247:or*/
1740717489 }
1740817490
1740917491 /**
@@ -17479,7 +17561,7 @@ class TopLevel {
1747917561 * @return OrEq|float|null
1748017562 */
1748117563 public static function sampleOrEq(): OrEq|float|null {
17482- return OrEq::sample(); /*247:orEq*/
17564+ return OrEq::sample(); /*248:orEq*/
1748317565 }
1748417566
1748517567 /**
@@ -17555,7 +17637,7 @@ class TopLevel {
1755517637 * @return Out|float|null
1755617638 */
1755717639 public static function sampleOut(): Out|float|null {
17558- return Out::sample(); /*248:out*/
17640+ return Out::sample(); /*249:out*/
1755917641 }
1756017642
1756117643 /**
@@ -17631,7 +17713,7 @@ class TopLevel {
1763117713 * @return OverrideClass|float|null
1763217714 */
1763317715 public static function sampleOverride(): OverrideClass|float|null {
17634- return OverrideClass::sample(); /*249:override*/
17716+ return OverrideClass::sample(); /*250:override*/
1763517717 }
1763617718
1763717719 /**
@@ -17707,7 +17789,7 @@ class TopLevel {
1770717789 * @return Package|float|null
1770817790 */
1770917791 public static function samplePackage(): Package|float|null {
17710- return Package::sample(); /*250:package*/
17792+ return Package::sample(); /*251:package*/
1771117793 }
1771217794
1771317795 /**
@@ -17783,7 +17865,7 @@ class TopLevel {
1778317865 * @return Params|float|null
1778417866 */
1778517867 public static function sampleParams(): Params|float|null {
17786- return Params::sample(); /*251:params*/
17868+ return Params::sample(); /*252:params*/
1778717869 }
1778817870
1778917871 /**
@@ -17859,7 +17941,7 @@ class TopLevel {
1785917941 * @return Pass|float|null
1786017942 */
1786117943 public static function samplePass(): Pass|float|null {
17862- return Pass::sample(); /*252:pass*/
17944+ return Pass::sample(); /*253:pass*/
1786317945 }
1786417946
1786517947 /**
@@ -17935,7 +18017,7 @@ class TopLevel {
1793518017 * @return Port|float|null
1793618018 */
1793718019 public static function samplePort(): Port|float|null {
17938- return Port::sample(); /*253:port*/
18020+ return Port::sample(); /*254:port*/
1793918021 }
1794018022
1794118023 /**
@@ -18011,7 +18093,7 @@ class TopLevel {
1801118093 * @return Postfix|float|null
1801218094 */
1801318095 public static function samplePostfix(): Postfix|float|null {
18014- return Postfix::sample(); /*254:postfix*/
18096+ return Postfix::sample(); /*255:postfix*/
1801518097 }
1801618098
1801718099 /**
@@ -18087,7 +18169,7 @@ class TopLevel {
1808718169 * @return Precedence|float|null
1808818170 */
1808918171 public static function samplePrecedence(): Precedence|float|null {
18090- return Precedence::sample(); /*255:precedence*/
18172+ return Precedence::sample(); /*256:precedence*/
1809118173 }
1809218174
1809318175 /**
@@ -18163,7 +18245,7 @@ class TopLevel {
1816318245 * @return Prefix|float|null
1816418246 */
1816518247 public static function samplePrefix(): Prefix|float|null {
18166- return Prefix::sample(); /*256:prefix*/
18248+ return Prefix::sample(); /*257:prefix*/
1816718249 }
1816818250
1816918251 /**
@@ -18239,7 +18321,7 @@ class TopLevel {
1823918321 * @return PrintClass|float|null
1824018322 */
1824118323 public static function samplePrint(): PrintClass|float|null {
18242- return PrintClass::sample(); /*257:print*/
18324+ return PrintClass::sample(); /*258:print*/
1824318325 }
1824418326
1824518327 /**
@@ -18315,7 +18397,7 @@ class TopLevel {
1831518397 * @return Printf|float|null
1831618398 */
1831718399 public static function samplePrintf(): Printf|float|null {
18318- return Printf::sample(); /*258:printf*/
18400+ return Printf::sample(); /*259:printf*/
1831918401 }
1832018402
1832118403 /**
@@ -18391,7 +18473,7 @@ class TopLevel {
1839118473 * @return PrintMembers|float|null
1839218474 */
1839318475 public static function samplePrintMembers(): PrintMembers|float|null {
18394- return PrintMembers::sample(); /*259:printMembers*/
18476+ return PrintMembers::sample(); /*260:printMembers*/
1839518477 }
1839618478
1839718479 /**
@@ -18467,7 +18549,7 @@ class TopLevel {
1846718549 * @return PrivateClass|float|null
1846818550 */
1846918551 public static function samplePrivate(): PrivateClass|float|null {
18470- return PrivateClass::sample(); /*260:private*/
18552+ return PrivateClass::sample(); /*261:private*/
1847118553 }
1847218554
1847318555 /**
@@ -18543,7 +18625,7 @@ class TopLevel {
1854318625 * @return ProtectedClass|float|null
1854418626 */
1854518627 public static function sampleProtected(): ProtectedClass|float|null {
18546- return ProtectedClass::sample(); /*261:protected*/
18628+ return ProtectedClass::sample(); /*262:protected*/
1854718629 }
1854818630
1854918631 /**
@@ -18619,7 +18701,7 @@ class TopLevel {
1861918701 * @return Protocol|float|null
1862018702 */
1862118703 public static function sampleProtocol(): Protocol|float|null {
18622- return Protocol::sample(); /*262:protocol*/
18704+ return Protocol::sample(); /*263:protocol*/
1862318705 }
1862418706
1862518707 /**
@@ -18695,7 +18777,7 @@ class TopLevel {
1869518777 * @return ProtocolClass|float|null
1869618778 */
1869718779 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
18698- return ProtocolClass::sample(); /*263:topLevelProtocol*/
18780+ return ProtocolClass::sample(); /*264:topLevelProtocol*/
1869918781 }
1870018782
1870118783 /**
@@ -18771,7 +18853,7 @@ class TopLevel {
1877118853 * @return PublicClass|float|null
1877218854 */
1877318855 public static function samplePublic(): PublicClass|float|null {
18774- return PublicClass::sample(); /*264:public*/
18856+ return PublicClass::sample(); /*265:public*/
1877518857 }
1877618858
1877718859 /**
@@ -18847,7 +18929,7 @@ class TopLevel {
1884718929 * @return Quicktype|float|null
1884818930 */
1884918931 public static function sampleQuicktype(): Quicktype|float|null {
18850- return Quicktype::sample(); /*265:quicktype*/
18932+ return Quicktype::sample(); /*266:quicktype*/
1885118933 }
1885218934
1885318935 /**
@@ -18923,7 +19005,7 @@ class TopLevel {
1892319005 * @return Raise|float|null
1892419006 */
1892519007 public static function sampleRaise(): Raise|float|null {
18926- return Raise::sample(); /*266:raise*/
19008+ return Raise::sample(); /*267:raise*/
1892719009 }
1892819010
1892919011 /**
@@ -18999,7 +19081,7 @@ class TopLevel {
1899919081 * @return Range|float|null
1900019082 */
1900119083 public static function sampleRange(): Range|float|null {
19002- return Range::sample(); /*267:range*/
19084+ return Range::sample(); /*268:range*/
1900319085 }
1900419086
1900519087 /**
@@ -19075,7 +19157,7 @@ class TopLevel {
1907519157 * @return ReadonlyClass|float|null
1907619158 */
1907719159 public static function sampleReadonly(): ReadonlyClass|float|null {
19078- return ReadonlyClass::sample(); /*268:readonly*/
19160+ return ReadonlyClass::sample(); /*269:readonly*/
1907919161 }
1908019162
1908119163 /**
@@ -19151,7 +19233,7 @@ class TopLevel {
1915119233 * @return Ref|float|null
1915219234 */
1915319235 public static function sampleRef(): Ref|float|null {
19154- return Ref::sample(); /*269:ref*/
19236+ return Ref::sample(); /*270:ref*/
1915519237 }
1915619238
1915719239 /**
@@ -19227,7 +19309,7 @@ class TopLevel {
1922719309 * @return RegExp|float|null
1922819310 */
1922919311 public static function sampleRegExp(): RegExp|float|null {
19230- return RegExp::sample(); /*270:regExp*/
19312+ return RegExp::sample(); /*271:regExp*/
1923119313 }
1923219314
1923319315 /**
@@ -19303,7 +19385,7 @@ class TopLevel {
1930319385 * @return Register|float|null
1930419386 */
1930519387 public static function sampleRegister(): Register|float|null {
19306- return Register::sample(); /*271:register*/
19388+ return Register::sample(); /*272:register*/
1930719389 }
1930819390
1930919391 /**
@@ -19379,7 +19461,7 @@ class TopLevel {
1937919461 * @return ReinterpretCast|float|null
1938019462 */
1938119463 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19382- return ReinterpretCast::sample(); /*272:reinterpretCast*/
19464+ return ReinterpretCast::sample(); /*273:reinterpretCast*/
1938319465 }
1938419466
1938519467 /**
@@ -19455,7 +19537,7 @@ class TopLevel {
1945519537 * @return Repeat|float|null
1945619538 */
1945719539 public static function sampleRepeat(): Repeat|float|null {
19458- return Repeat::sample(); /*273:repeat*/
19540+ return Repeat::sample(); /*274:repeat*/
1945919541 }
1946019542
1946119543 /**
@@ -19531,7 +19613,7 @@ class TopLevel {
1953119613 * @return RequireClass|float|null
1953219614 */
1953319615 public static function sampleRequire(): RequireClass|float|null {
19534- return RequireClass::sample(); /*274:require*/
19616+ return RequireClass::sample(); /*275:require*/
1953519617 }
1953619618
1953719619 /**
@@ -19607,7 +19689,7 @@ class TopLevel {
1960719689 * @return Required|float|null
1960819690 */
1960919691 public static function sampleRequired(): Required|float|null {
19610- return Required::sample(); /*275:required*/
19692+ return Required::sample(); /*276:required*/
1961119693 }
1961219694
1961319695 /**
@@ -19683,7 +19765,7 @@ class TopLevel {
1968319765 * @return Requires|float|null
1968419766 */
1968519767 public static function sampleRequires(): Requires|float|null {
19686- return Requires::sample(); /*276:requires*/
19768+ return Requires::sample(); /*277:requires*/
1968719769 }
1968819770
1968919771 /**
@@ -19759,7 +19841,7 @@ class TopLevel {
1975919841 * @return Restrict|float|null
1976019842 */
1976119843 public static function sampleRestrict(): Restrict|float|null {
19762- return Restrict::sample(); /*277:restrict*/
19844+ return Restrict::sample(); /*278:restrict*/
1976319845 }
1976419846
1976519847 /**
@@ -19835,7 +19917,7 @@ class TopLevel {
1983519917 * @return Retain|float|null
1983619918 */
1983719919 public static function sampleRetain(): Retain|float|null {
19838- return Retain::sample(); /*278:retain*/
19920+ return Retain::sample(); /*279:retain*/
1983919921 }
1984019922
1984119923 /**
@@ -19911,7 +19993,7 @@ class TopLevel {
1991119993 * @return Rethrows|float|null
1991219994 */
1991319995 public static function sampleRethrows(): Rethrows|float|null {
19914- return Rethrows::sample(); /*279:rethrows*/
19996+ return Rethrows::sample(); /*280:rethrows*/
1991519997 }
1991619998
1991719999 /**
@@ -19987,7 +20069,7 @@ class TopLevel {
1998720069 * @return ReturnClass|float|null
1998820070 */
1998920071 public static function sampleReturn(): ReturnClass|float|null {
19990- return ReturnClass::sample(); /*280:return*/
20072+ return ReturnClass::sample(); /*281:return*/
1999120073 }
1999220074
1999320075 /**
@@ -20063,7 +20145,7 @@ class TopLevel {
2006320145 * @return Right|float|null
2006420146 */
2006520147 public static function sampleRight(): Right|float|null {
20066- return Right::sample(); /*281:right*/
20148+ return Right::sample(); /*282:right*/
2006720149 }
2006820150
2006920151 /**
@@ -20139,7 +20221,7 @@ class TopLevel {
2013920221 * @return RuntimeType|float|null
2014020222 */
2014120223 public static function sampleRuntimeType(): RuntimeType|float|null {
20142- return RuntimeType::sample(); /*282:runtimeType*/
20224+ return RuntimeType::sample(); /*283:runtimeType*/
2014320225 }
2014420226
2014520227 /**
@@ -20215,7 +20297,7 @@ class TopLevel {
2021520297 * @return S|float|null
2021620298 */
2021720299 public static function sampleS(): S|float|null {
20218- return S::sample(); /*283:s*/
20300+ return S::sample(); /*284:s*/
2021920301 }
2022020302
2022120303 /**
@@ -20291,7 +20373,7 @@ class TopLevel {
2029120373 * @return Sbyte|float|null
2029220374 */
2029320375 public static function sampleSbyte(): Sbyte|float|null {
20294- return Sbyte::sample(); /*284:sbyte*/
20376+ return Sbyte::sample(); /*285:sbyte*/
2029520377 }
2029620378
2029720379 /**
@@ -20367,7 +20449,7 @@ class TopLevel {
2036720449 * @return Sealed|float|null
2036820450 */
2036920451 public static function sampleSealed(): Sealed|float|null {
20370- return Sealed::sample(); /*285:sealed*/
20452+ return Sealed::sample(); /*286:sealed*/
2037120453 }
2037220454
2037320455 /**
@@ -20443,7 +20525,7 @@ class TopLevel {
2044320525 * @return Sel|float|null
2044420526 */
2044520527 public static function sampleSel(): Sel|float|null {
20446- return Sel::sample(); /*286:sel*/
20528+ return Sel::sample(); /*287:sel*/
2044720529 }
2044820530
2044920531 /**
@@ -20519,7 +20601,7 @@ class TopLevel {
2051920601 * @return Select|float|null
2052020602 */
2052120603 public static function sampleSelect(): Select|float|null {
20522- return Select::sample(); /*287:select*/
20604+ return Select::sample(); /*288:select*/
2052320605 }
2052420606
2052520607 /**
@@ -20595,7 +20677,7 @@ class TopLevel {
2059520677 * @return SelfClass|float|null
2059620678 */
2059720679 public static function sampleSelf(): SelfClass|float|null {
20598- return SelfClass::sample(); /*288:self*/
20680+ return SelfClass::sample(); /*289:self*/
2059920681 }
2060020682
2060120683 /**
@@ -20671,7 +20753,7 @@ class TopLevel {
2067120753 * @return UnionSelfSelf|float|null
2067220754 */
2067320755 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
20674- return UnionSelfSelf::sample(); /*289:topLevelSelf*/
20756+ return UnionSelfSelf::sample(); /*290:topLevelSelf*/
2067520757 }
2067620758
2067720759 /**
@@ -20747,7 +20829,7 @@ class TopLevel {
2074720829 * @return Sendable|float|null
2074820830 */
2074920831 public static function sampleSendable(): Sendable|float|null {
20750- return Sendable::sample(); /*290:sendable*/
20832+ return Sendable::sample(); /*291:sendable*/
2075120833 }
2075220834
2075320835 /**
@@ -20823,7 +20905,7 @@ class TopLevel {
2082320905 * @return Serialize|float|null
2082420906 */
2082520907 public static function sampleSerialize(): Serialize|float|null {
20826- return Serialize::sample(); /*291:serialize*/
20908+ return Serialize::sample(); /*292:serialize*/
2082720909 }
2082820910
2082920911 /**
@@ -20899,7 +20981,7 @@ class TopLevel {
2089920981 * @return SerializerProvider|float|null
2090020982 */
2090120983 public static function sampleSerializerProvider(): SerializerProvider|float|null {
20902- return SerializerProvider::sample(); /*292:serializerProvider*/
20984+ return SerializerProvider::sample(); /*293:serializerProvider*/
2090320985 }
2090420986
2090520987 /**
@@ -20975,7 +21057,7 @@ class TopLevel {
2097521057 * @return Set|float|null
2097621058 */
2097721059 public static function sampleSet(): Set|float|null {
20978- return Set::sample(); /*293:set*/
21060+ return Set::sample(); /*294:set*/
2097921061 }
2098021062
2098121063 /**
@@ -21051,7 +21133,7 @@ class TopLevel {
2105121133 * @return Short|float|null
2105221134 */
2105321135 public static function sampleShort(): Short|float|null {
21054- return Short::sample(); /*294:short*/
21136+ return Short::sample(); /*295:short*/
2105521137 }
2105621138
2105721139 /**
@@ -21127,7 +21209,7 @@ class TopLevel {
2112721209 * @return Signed|float|null
2112821210 */
2112921211 public static function sampleSigned(): Signed|float|null {
21130- return Signed::sample(); /*295:signed*/
21212+ return Signed::sample(); /*296:signed*/
2113121213 }
2113221214
2113321215 /**
@@ -21203,7 +21285,7 @@ class TopLevel {
2120321285 * @return SimpleModule|float|null
2120421286 */
2120521287 public static function sampleSimpleModule(): SimpleModule|float|null {
21206- return SimpleModule::sample(); /*296:simpleModule*/
21288+ return SimpleModule::sample(); /*297:simpleModule*/
2120721289 }
2120821290
2120921291 /**
@@ -21279,7 +21361,7 @@ class TopLevel {
2127921361 * @return Sizeof|float|null
2128021362 */
2128121363 public static function sampleSizeof(): Sizeof|float|null {
21282- return Sizeof::sample(); /*297:sizeof*/
21364+ return Sizeof::sample(); /*298:sizeof*/
2128321365 }
2128421366
2128521367 /**
@@ -21355,7 +21437,7 @@ class TopLevel {
2135521437 * @return Stackalloc|float|null
2135621438 */
2135721439 public static function sampleStackalloc(): Stackalloc|float|null {
21358- return Stackalloc::sample(); /*298:stackalloc*/
21440+ return Stackalloc::sample(); /*299:stackalloc*/
2135921441 }
2136021442
2136121443 /**
@@ -21431,7 +21513,7 @@ class TopLevel {
2143121513 * @return Standards|float|null
2143221514 */
2143321515 public static function sampleStandards(): Standards|float|null {
21434- return Standards::sample(); /*299:standards*/
21516+ return Standards::sample(); /*300:standards*/
2143521517 }
2143621518
2143721519 /**
@@ -21507,7 +21589,7 @@ class TopLevel {
2150721589 * @return StaticClass|float|null
2150821590 */
2150921591 public static function sampleStatic(): StaticClass|float|null {
21510- return StaticClass::sample(); /*300:static*/
21592+ return StaticClass::sample(); /*301:static*/
2151121593 }
2151221594
2151321595 /**
@@ -21583,7 +21665,7 @@ class TopLevel {
2158321665 * @return StaticAssert|float|null
2158421666 */
2158521667 public static function sampleStaticAssert(): StaticAssert|float|null {
21586- return StaticAssert::sample(); /*301:staticAssert*/
21668+ return StaticAssert::sample(); /*302:staticAssert*/
2158721669 }
2158821670
2158921671 /**
@@ -21659,7 +21741,7 @@ class TopLevel {
2165921741 * @return StaticCast|float|null
2166021742 */
2166121743 public static function sampleStaticCast(): StaticCast|float|null {
21662- return StaticCast::sample(); /*302:staticCast*/
21744+ return StaticCast::sample(); /*303:staticCast*/
2166321745 }
2166421746
2166521747 /**
@@ -21735,7 +21817,7 @@ class TopLevel {
2173521817 * @return StdDeserializer|float|null
2173621818 */
2173721819 public static function sampleStdDeserializer(): StdDeserializer|float|null {
21738- return StdDeserializer::sample(); /*303:stdDeserializer*/
21820+ return StdDeserializer::sample(); /*304:stdDeserializer*/
2173921821 }
2174021822
2174121823 /**
@@ -21811,7 +21893,7 @@ class TopLevel {
2181121893 * @return StdSerializer|float|null
2181221894 */
2181321895 public static function sampleStdSerializer(): StdSerializer|float|null {
21814- return StdSerializer::sample(); /*304:stdSerializer*/
21896+ return StdSerializer::sample(); /*305:stdSerializer*/
2181521897 }
2181621898
2181721899 /**
@@ -21887,7 +21969,7 @@ class TopLevel {
2188721969 * @return Strictfp|float|null
2188821970 */
2188921971 public static function sampleStrictfp(): Strictfp|float|null {
21890- return Strictfp::sample(); /*305:strictfp*/
21972+ return Strictfp::sample(); /*306:strictfp*/
2189121973 }
2189221974
2189321975 /**
@@ -21963,7 +22045,7 @@ class TopLevel {
2196322045 * @return StringClass|float|null
2196422046 */
2196522047 public static function sampleString(): StringClass|float|null {
21966- return StringClass::sample(); /*306:string*/
22048+ return StringClass::sample(); /*307:string*/
2196722049 }
2196822050
2196922051 /**
@@ -22039,7 +22121,7 @@ class TopLevel {
2203922121 * @return Struct|float|null
2204022122 */
2204122123 public static function sampleStruct(): Struct|float|null {
22042- return Struct::sample(); /*307:struct*/
22124+ return Struct::sample(); /*308:struct*/
2204322125 }
2204422126
2204522127 /**
@@ -22115,7 +22197,7 @@ class TopLevel {
2211522197 * @return Subscript|float|null
2211622198 */
2211722199 public static function sampleSubscript(): Subscript|float|null {
22118- return Subscript::sample(); /*308:subscript*/
22200+ return Subscript::sample(); /*309:subscript*/
2211922201 }
2212022202
2212122203 /**
@@ -22191,7 +22273,7 @@ class TopLevel {
2219122273 * @return Super|float|null
2219222274 */
2219322275 public static function sampleSuper(): Super|float|null {
22194- return Super::sample(); /*309:super*/
22276+ return Super::sample(); /*310:super*/
2219522277 }
2219622278
2219722279 /**
@@ -22267,7 +22349,7 @@ class TopLevel {
2226722349 * @return SwitchClass|float|null
2226822350 */
2226922351 public static function sampleSwitch(): SwitchClass|float|null {
22270- return SwitchClass::sample(); /*310:switch*/
22352+ return SwitchClass::sample(); /*311:switch*/
2227122353 }
2227222354
2227322355 /**
@@ -22343,7 +22425,7 @@ class TopLevel {
2234322425 * @return Symbol|float|null
2234422426 */
2234522427 public static function sampleSymbol(): Symbol|float|null {
22346- return Symbol::sample(); /*311:symbol*/
22428+ return Symbol::sample(); /*312:symbol*/
2234722429 }
2234822430
2234922431 /**
@@ -22419,7 +22501,7 @@ class TopLevel {
2241922501 * @return Synchronized|float|null
2242022502 */
2242122503 public static function sampleSynchronized(): Synchronized|float|null {
22422- return Synchronized::sample(); /*312:synchronized*/
22504+ return Synchronized::sample(); /*313:synchronized*/
2242322505 }
2242422506
2242522507 /**
@@ -22495,7 +22577,7 @@ class TopLevel {
2249522577 * @return System|float|null
2249622578 */
2249722579 public static function sampleSystem(): System|float|null {
22498- return System::sample(); /*313:system*/
22580+ return System::sample(); /*314:system*/
2249922581 }
2250022582
2250122583 /**
@@ -22571,7 +22653,7 @@ class TopLevel {
2257122653 * @return Template|float|null
2257222654 */
2257322655 public static function sampleTemplate(): Template|float|null {
22574- return Template::sample(); /*314:template*/
22656+ return Template::sample(); /*315:template*/
2257522657 }
2257622658
2257722659 /**
@@ -22647,7 +22729,7 @@ class TopLevel {
2264722729 * @return Then|float|null
2264822730 */
2264922731 public static function sampleThen(): Then|float|null {
22650- return Then::sample(); /*315:then*/
22732+ return Then::sample(); /*316:then*/
2265122733 }
2265222734
2265322735 /**
@@ -22723,7 +22805,7 @@ class TopLevel {
2272322805 * @return This|float|null
2272422806 */
2272522807 public static function sampleTopLevelThis(): This|float|null {
22726- return This::sample(); /*316:topLevelThis*/
22808+ return This::sample(); /*317:topLevelThis*/
2272722809 }
2272822810
2272922811 /**
@@ -22799,7 +22881,7 @@ class TopLevel {
2279922881 * @return ThreadLocal|float|null
2280022882 */
2280122883 public static function sampleThreadLocal(): ThreadLocal|float|null {
22802- return ThreadLocal::sample(); /*317:threadLocal*/
22884+ return ThreadLocal::sample(); /*318:threadLocal*/
2280322885 }
2280422886
2280522887 /**
@@ -22875,7 +22957,7 @@ class TopLevel {
2287522957 * @return ThrowClass|float|null
2287622958 */
2287722959 public static function sampleThrow(): ThrowClass|float|null {
22878- return ThrowClass::sample(); /*318:throw*/
22960+ return ThrowClass::sample(); /*319:throw*/
2287922961 }
2288022962
2288122963 /**
@@ -22951,7 +23033,7 @@ class TopLevel {
2295123033 * @return Throws|float|null
2295223034 */
2295323035 public static function sampleThrows(): Throws|float|null {
22954- return Throws::sample(); /*319:throws*/
23036+ return Throws::sample(); /*320:throws*/
2295523037 }
2295623038
2295723039 /**
@@ -23027,7 +23109,7 @@ class TopLevel {
2302723109 * @return TimeOnly|float|null
2302823110 */
2302923111 public static function sampleTimeOnly(): TimeOnly|float|null {
23030- return TimeOnly::sample(); /*320:timeOnly*/
23112+ return TimeOnly::sample(); /*321:timeOnly*/
2303123113 }
2303223114
2303323115 /**
@@ -23103,7 +23185,7 @@ class TopLevel {
2310323185 * @return TimeOnlyConverter|float|null
2310423186 */
2310523187 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23106- return TimeOnlyConverter::sample(); /*321:timeOnlyConverter*/
23188+ return TimeOnlyConverter::sample(); /*322:timeOnlyConverter*/
2310723189 }
2310823190
2310923191 /**
@@ -23179,7 +23261,83 @@ class TopLevel {
2317923261 * @return TimeZone|float|null
2318023262 */
2318123263 public static function sampleTimeZone(): TimeZone|float|null {
23182- return TimeZone::sample(); /*322:timeZone*/
23264+ return TimeZone::sample(); /*323:timeZone*/
23265+ }
23266+
23267+ /**
23268+ * @param stdClass|float|null $value
23269+ * @throws Exception
23270+ * @return ToDict|float|null
23271+ */
23272+ public static function fromToDict(stdClass|float|null $value): ToDict|float|null {
23273+ if (is_null($value)) {
23274+ return $value; /*null*/
23275+ } elseif (is_object($value)) {
23276+ return ToDict::from($value); /*class*/
23277+ } elseif (is_float($value) || is_int($value)) {
23278+ return $value; /*float*/
23279+ } else {
23280+ throw new Exception('Cannot deserialize union value in TopLevel');
23281+ }
23282+ }
23283+
23284+ /**
23285+ * @throws Exception
23286+ * @return stdClass|float|null
23287+ */
23288+ public function toToDict(): stdClass|float|null {
23289+ if (TopLevel::validateToDict($this->toDict)) {
23290+ if (is_null($this->toDict)) {
23291+ return $this->toDict; /*null*/
23292+ } elseif ($this->toDict instanceof ToDict) {
23293+ return $this->toDict->to(); /*class*/
23294+ } elseif (is_float($this->toDict) || is_int($this->toDict)) {
23295+ return $this->toDict; /*float*/
23296+ } else {
23297+ throw new Exception('Union value has no matching member in TopLevel');
23298+ }
23299+ }
23300+ throw new Exception('never get to this TopLevel::toDict');
23301+ }
23302+
23303+ /**
23304+ * @param ToDict|float|null
23305+ * @return bool
23306+ * @throws Exception
23307+ */
23308+ public static function validateToDict(ToDict|float|null $value): bool {
23309+ if (is_null($value)) {
23310+ if (!is_null($value)) {
23311+ throw new Exception("Attribute Error:TopLevel::toDict");
23312+ }
23313+ } elseif ($value instanceof ToDict) {
23314+ $value->validate();
23315+ } elseif (is_float($value) || is_int($value)) {
23316+ if (!is_float($value) && !is_int($value)) {
23317+ throw new Exception("Attribute Error:TopLevel::toDict");
23318+ }
23319+ } else {
23320+ throw new Exception("Attribute Error:TopLevel::toDict");
23321+ }
23322+ return true;
23323+ }
23324+
23325+ /**
23326+ * @throws Exception
23327+ * @return ToDict|float|null
23328+ */
23329+ public function getToDict(): ToDict|float|null {
23330+ if (TopLevel::validateToDict($this->toDict)) {
23331+ return $this->toDict;
23332+ }
23333+ throw new Exception('never get to getToDict TopLevel::toDict');
23334+ }
23335+
23336+ /**
23337+ * @return ToDict|float|null
23338+ */
23339+ public static function sampleToDict(): ToDict|float|null {
23340+ return ToDict::sample(); /*324:toDict*/
2318323341 }
2318423342
2318523343 /**
@@ -23255,7 +23413,7 @@ class TopLevel {
2325523413 * @return ToJSON|float|null
2325623414 */
2325723415 public static function sampleToJSON(): ToJSON|float|null {
23258- return ToJSON::sample(); /*323:toJSON*/
23416+ return ToJSON::sample(); /*325:toJSON*/
2325923417 }
2326023418
2326123419 /**
@@ -23331,7 +23489,7 @@ class TopLevel {
2333123489 * @return TopLevelClass|float|null
2333223490 */
2333323491 public static function sampleTopLevel(): TopLevelClass|float|null {
23334- return TopLevelClass::sample(); /*324:topLevel*/
23492+ return TopLevelClass::sample(); /*326:topLevel*/
2333523493 }
2333623494
2333723495 /**
@@ -23407,7 +23565,7 @@ class TopLevel {
2340723565 * @return ToString|float|null
2340823566 */
2340923567 public static function sampleToString(): ToString|float|null {
23410- return ToString::sample(); /*325:toString*/
23568+ return ToString::sample(); /*327:toString*/
2341123569 }
2341223570
2341323571 /**
@@ -23483,7 +23641,7 @@ class TopLevel {
2348323641 * @return Transient|float|null
2348423642 */
2348523643 public static function sampleTransient(): Transient|float|null {
23486- return Transient::sample(); /*326:transient*/
23644+ return Transient::sample(); /*328:transient*/
2348723645 }
2348823646
2348923647 /**
@@ -23559,7 +23717,7 @@ class TopLevel {
2355923717 * @return TrueClass|float|null
2356023718 */
2356123719 public static function sampleTrue(): TrueClass|float|null {
23562- return TrueClass::sample(); /*327:true*/
23720+ return TrueClass::sample(); /*329:true*/
2356323721 }
2356423722
2356523723 /**
@@ -23635,7 +23793,7 @@ class TopLevel {
2363523793 * @return UnionTrueTrue|float|null
2363623794 */
2363723795 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
23638- return UnionTrueTrue::sample(); /*328:topLevelTrue*/
23796+ return UnionTrueTrue::sample(); /*330:topLevelTrue*/
2363923797 }
2364023798
2364123799 /**
@@ -23711,7 +23869,7 @@ class TopLevel {
2371123869 * @return TryClass|float|null
2371223870 */
2371323871 public static function sampleTry(): TryClass|float|null {
23714- return TryClass::sample(); /*329:try*/
23872+ return TryClass::sample(); /*331:try*/
2371523873 }
2371623874
2371723875 /**
@@ -23787,7 +23945,7 @@ class TopLevel {
2378723945 * @return Type|float|null
2378823946 */
2378923947 public static function sampleType(): Type|float|null {
23790- return Type::sample(); /*330:type*/
23948+ return Type::sample(); /*332:type*/
2379123949 }
2379223950
2379323951 /**
@@ -23863,7 +24021,7 @@ class TopLevel {
2386324021 * @return TypeClass|float|null
2386424022 */
2386524023 public static function sampleTopLevelType(): TypeClass|float|null {
23866- return TypeClass::sample(); /*331:topLevelType*/
24024+ return TypeClass::sample(); /*333:topLevelType*/
2386724025 }
2386824026
2386924027 /**
@@ -23939,7 +24097,7 @@ class TopLevel {
2393924097 * @return Typealias|float|null
2394024098 */
2394124099 public static function sampleTypealias(): Typealias|float|null {
23942- return Typealias::sample(); /*332:typealias*/
24100+ return Typealias::sample(); /*334:typealias*/
2394324101 }
2394424102
2394524103 /**
@@ -24015,7 +24173,7 @@ class TopLevel {
2401524173 * @return Typedef|float|null
2401624174 */
2401724175 public static function sampleTypedef(): Typedef|float|null {
24018- return Typedef::sample(); /*333:typedef*/
24176+ return Typedef::sample(); /*335:typedef*/
2401924177 }
2402024178
2402124179 /**
@@ -24091,7 +24249,7 @@ class TopLevel {
2409124249 * @return Typeid|float|null
2409224250 */
2409324251 public static function sampleTypeid(): Typeid|float|null {
24094- return Typeid::sample(); /*334:typeid*/
24252+ return Typeid::sample(); /*336:typeid*/
2409524253 }
2409624254
2409724255 /**
@@ -24167,7 +24325,7 @@ class TopLevel {
2416724325 * @return Typename|float|null
2416824326 */
2416924327 public static function sampleTypename(): Typename|float|null {
24170- return Typename::sample(); /*335:typename*/
24328+ return Typename::sample(); /*337:typename*/
2417124329 }
2417224330
2417324331 /**
@@ -24243,7 +24401,7 @@ class TopLevel {
2424324401 * @return Typeof|float|null
2424424402 */
2424524403 public static function sampleTypeof(): Typeof|float|null {
24246- return Typeof::sample(); /*336:typeof*/
24404+ return Typeof::sample(); /*338:typeof*/
2424724405 }
2424824406
2424924407 /**
@@ -24319,7 +24477,7 @@ class TopLevel {
2431924477 * @return Uint|float|null
2432024478 */
2432124479 public static function sampleUint(): Uint|float|null {
24322- return Uint::sample(); /*337:uint*/
24480+ return Uint::sample(); /*339:uint*/
2432324481 }
2432424482
2432524483 /**
@@ -24395,7 +24553,7 @@ class TopLevel {
2439524553 * @return Ulong|float|null
2439624554 */
2439724555 public static function sampleUlong(): Ulong|float|null {
24398- return Ulong::sample(); /*338:ulong*/
24556+ return Ulong::sample(); /*340:ulong*/
2439924557 }
2440024558
2440124559 /**
@@ -24471,7 +24629,7 @@ class TopLevel {
2447124629 * @return Unchecked|float|null
2447224630 */
2447324631 public static function sampleUnchecked(): Unchecked|float|null {
24474- return Unchecked::sample(); /*339:unchecked*/
24632+ return Unchecked::sample(); /*341:unchecked*/
2447524633 }
2447624634
2447724635 /**
@@ -24547,7 +24705,7 @@ class TopLevel {
2454724705 * @return Undefined|float|null
2454824706 */
2454924707 public static function sampleUndefined(): Undefined|float|null {
24550- return Undefined::sample(); /*340:undefined*/
24708+ return Undefined::sample(); /*342:undefined*/
2455124709 }
2455224710
2455324711 /**
@@ -24623,7 +24781,7 @@ class TopLevel {
2462324781 * @return UnionClass|float|null
2462424782 */
2462524783 public static function sampleUnion(): UnionClass|float|null {
24626- return UnionClass::sample(); /*341:union*/
24784+ return UnionClass::sample(); /*343:union*/
2462724785 }
2462824786
2462924787 /**
@@ -24699,7 +24857,7 @@ class TopLevel {
2469924857 * @return Unowned|float|null
2470024858 */
2470124859 public static function sampleUnowned(): Unowned|float|null {
24702- return Unowned::sample(); /*342:unowned*/
24860+ return Unowned::sample(); /*344:unowned*/
2470324861 }
2470424862
2470524863 /**
@@ -24775,7 +24933,7 @@ class TopLevel {
2477524933 * @return Unsafe|float|null
2477624934 */
2477724935 public static function sampleUnsafe(): Unsafe|float|null {
24778- return Unsafe::sample(); /*343:unsafe*/
24936+ return Unsafe::sample(); /*345:unsafe*/
2477924937 }
2478024938
2478124939 /**
@@ -24851,7 +25009,7 @@ class TopLevel {
2485125009 * @return Unsigned|float|null
2485225010 */
2485325011 public static function sampleUnsigned(): Unsigned|float|null {
24854- return Unsigned::sample(); /*344:unsigned*/
25012+ return Unsigned::sample(); /*346:unsigned*/
2485525013 }
2485625014
2485725015 /**
@@ -24927,7 +25085,7 @@ class TopLevel {
2492725085 * @return Ushort|float|null
2492825086 */
2492925087 public static function sampleUshort(): Ushort|float|null {
24930- return Ushort::sample(); /*345:ushort*/
25088+ return Ushort::sample(); /*347:ushort*/
2493125089 }
2493225090
2493325091 /**
@@ -25003,7 +25161,7 @@ class TopLevel {
2500325161 * @return Using|float|null
2500425162 */
2500525163 public static function sampleUsing(): Using|float|null {
25006- return Using::sample(); /*346:using*/
25164+ return Using::sample(); /*348:using*/
2500725165 }
2500825166
2500925167 /**
@@ -25079,7 +25237,7 @@ class TopLevel {
2507925237 * @return Utf8JSONReader|float|null
2508025238 */
2508125239 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25082- return Utf8JSONReader::sample(); /*347:utf8JSONReader*/
25240+ return Utf8JSONReader::sample(); /*349:utf8JSONReader*/
2508325241 }
2508425242
2508525243 /**
@@ -25155,7 +25313,7 @@ class TopLevel {
2515525313 * @return Utf8JSONWriter|float|null
2515625314 */
2515725315 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25158- return Utf8JSONWriter::sample(); /*348:utf8JSONWriter*/
25316+ return Utf8JSONWriter::sample(); /*350:utf8JSONWriter*/
2515925317 }
2516025318
2516125319 /**
@@ -25231,7 +25389,7 @@ class TopLevel {
2523125389 * @return UUID|float|null
2523225390 */
2523325391 public static function sampleUUID(): UUID|float|null {
25234- return UUID::sample(); /*349:uuid*/
25392+ return UUID::sample(); /*351:uuid*/
2523525393 }
2523625394
2523725395 /**
@@ -25307,7 +25465,7 @@ class TopLevel {
2530725465 * @return VarClass|float|null
2530825466 */
2530925467 public static function sampleVar(): VarClass|float|null {
25310- return VarClass::sample(); /*350:var*/
25468+ return VarClass::sample(); /*352:var*/
2531125469 }
2531225470
2531325471 /**
@@ -25383,7 +25541,7 @@ class TopLevel {
2538325541 * @return Virtual|float|null
2538425542 */
2538525543 public static function sampleVirtual(): Virtual|float|null {
25386- return Virtual::sample(); /*351:virtual*/
25544+ return Virtual::sample(); /*353:virtual*/
2538725545 }
2538825546
2538925547 /**
@@ -25459,7 +25617,7 @@ class TopLevel {
2545925617 * @return VoidClass|float|null
2546025618 */
2546125619 public static function sampleVoid(): VoidClass|float|null {
25462- return VoidClass::sample(); /*352:void*/
25620+ return VoidClass::sample(); /*354:void*/
2546325621 }
2546425622
2546525623 /**
@@ -25535,7 +25693,7 @@ class TopLevel {
2553525693 * @return Volatile|float|null
2553625694 */
2553725695 public static function sampleVolatile(): Volatile|float|null {
25538- return Volatile::sample(); /*353:volatile*/
25696+ return Volatile::sample(); /*355:volatile*/
2553925697 }
2554025698
2554125699 /**
@@ -25611,7 +25769,7 @@ class TopLevel {
2561125769 * @return WcharT|float|null
2561225770 */
2561325771 public static function sampleWcharT(): WcharT|float|null {
25614- return WcharT::sample(); /*354:wcharT*/
25772+ return WcharT::sample(); /*356:wcharT*/
2561525773 }
2561625774
2561725775 /**
@@ -25687,7 +25845,7 @@ class TopLevel {
2568725845 * @return Weak|float|null
2568825846 */
2568925847 public static function sampleWeak(): Weak|float|null {
25690- return Weak::sample(); /*355:weak*/
25848+ return Weak::sample(); /*357:weak*/
2569125849 }
2569225850
2569325851 /**
@@ -25763,7 +25921,7 @@ class TopLevel {
2576325921 * @return Where|float|null
2576425922 */
2576525923 public static function sampleWhere(): Where|float|null {
25766- return Where::sample(); /*356:where*/
25924+ return Where::sample(); /*358:where*/
2576725925 }
2576825926
2576925927 /**
@@ -25839,7 +25997,7 @@ class TopLevel {
2583925997 * @return WhileClass|float|null
2584025998 */
2584125999 public static function sampleWhile(): WhileClass|float|null {
25842- return WhileClass::sample(); /*357:while*/
26000+ return WhileClass::sample(); /*359:while*/
2584326001 }
2584426002
2584526003 /**
@@ -25915,7 +26073,7 @@ class TopLevel {
2591526073 * @return WillSet|float|null
2591626074 */
2591726075 public static function sampleWillSet(): WillSet|float|null {
25918- return WillSet::sample(); /*358:willSet*/
26076+ return WillSet::sample(); /*360:willSet*/
2591926077 }
2592026078
2592126079 /**
@@ -25991,7 +26149,7 @@ class TopLevel {
2599126149 * @return With|float|null
2599226150 */
2599326151 public static function sampleWith(): With|float|null {
25994- return With::sample(); /*359:with*/
26152+ return With::sample(); /*361:with*/
2599526153 }
2599626154
2599726155 /**
@@ -26067,7 +26225,7 @@ class TopLevel {
2606726225 * @return XorClass|float|null
2606826226 */
2606926227 public static function sampleXor(): XorClass|float|null {
26070- return XorClass::sample(); /*360:xor*/
26228+ return XorClass::sample(); /*362:xor*/
2607126229 }
2607226230
2607326231 /**
@@ -26143,7 +26301,7 @@ class TopLevel {
2614326301 * @return XorEq|float|null
2614426302 */
2614526303 public static function sampleXorEq(): XorEq|float|null {
26146- return XorEq::sample(); /*361:xorEq*/
26304+ return XorEq::sample(); /*363:xorEq*/
2614726305 }
2614826306
2614926307 /**
@@ -26219,7 +26377,7 @@ class TopLevel {
2621926377 * @return Yes|float|null
2622026378 */
2622126379 public static function sampleYes(): Yes|float|null {
26222- return Yes::sample(); /*362:yes*/
26380+ return Yes::sample(); /*364:yes*/
2622326381 }
2622426382
2622526383 /**
@@ -26295,7 +26453,7 @@ class TopLevel {
2629526453 * @return YieldClass|float|null
2629626454 */
2629726455 public static function sampleYield(): YieldClass|float|null {
26298- return YieldClass::sample(); /*363:yield*/
26456+ return YieldClass::sample(); /*365:yield*/
2629926457 }
2630026458
2630126459 /**
@@ -26425,6 +26583,7 @@ class TopLevel {
2642526583 || TopLevel::validateFormatException($this->formatException)
2642626584 || TopLevel::validateFriend($this->friend)
2642726585 || TopLevel::validateFrom($this->from)
26586+ || TopLevel::validateFromDict($this->fromDict)
2642826587 || TopLevel::validateFromJSON($this->fromJSON)
2642926588 || TopLevel::validateFunc($this->func)
2643026589 || TopLevel::validateFunction($this->function)
@@ -26595,6 +26754,7 @@ class TopLevel {
2659526754 || TopLevel::validateTimeOnly($this->timeOnly)
2659626755 || TopLevel::validateTimeOnlyConverter($this->timeOnlyConverter)
2659726756 || TopLevel::validateTimeZone($this->timeZone)
26757+ || TopLevel::validateToDict($this->toDict)
2659826758 || TopLevel::validateToJSON($this->toJSON)
2659926759 || TopLevel::validateTopLevel($this->topLevel)
2660026760 || TopLevel::validateToString($this->toString)
@@ -26728,7 +26888,7 @@ class TopLevel {
2672826888 $out->{'del'} = $this->toDel();
2672926889 $out->{'delegate'} = $this->toDelegate();
2673026890 $out->{'delete'} = $this->toDelete();
26731- $out->{'dict'} = $this->toDict();
26891+ $out->{'dict'} = $this->purpleToDict();
2673226892 $out->{'dictionary'} = $this->toDictionary();
2673326893 $out->{'didSet'} = $this->toDidSet();
2673426894 $out->{'do'} = $this->toDo();
@@ -26766,6 +26926,7 @@ class TopLevel {
2676626926 $out->{'FormatException'} = $this->toFormatException();
2676726927 $out->{'friend'} = $this->toFriend();
2676826928 $out->{'from'} = $this->toFrom();
26929+ $out->{'from_dict'} = $this->toFromDict();
2676926930 $out->{'from_json'} = $this->toFromJSON();
2677026931 $out->{'func'} = $this->toFunc();
2677126932 $out->{'function'} = $this->toFunction();
@@ -26936,6 +27097,7 @@ class TopLevel {
2693627097 $out->{'TimeOnly'} = $this->toTimeOnly();
2693727098 $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
2693827099 $out->{'TimeZone'} = $this->toTimeZone();
27100+ $out->{'to_dict'} = $this->toToDict();
2693927101 $out->{'to_json'} = $this->toToJSON();
2694027102 $out->{'top_level'} = $this->toTopLevel();
2694127103 $out->{'toString'} = $this->toToString();
@@ -27071,7 +27233,7 @@ class TopLevel {
2707127233 ,TopLevel::fromDel($obj->{'del'})
2707227234 ,TopLevel::fromDelegate($obj->{'delegate'})
2707327235 ,TopLevel::fromDelete($obj->{'delete'})
27074- ,TopLevel::fromDict($obj->{'dict'})
27236+ ,TopLevel::purpleFromDict($obj->{'dict'})
2707527237 ,TopLevel::fromDictionary($obj->{'dictionary'})
2707627238 ,TopLevel::fromDidSet($obj->{'didSet'})
2707727239 ,TopLevel::fromDo($obj->{'do'})
@@ -27109,6 +27271,7 @@ class TopLevel {
2710927271 ,TopLevel::fromFormatException($obj->{'FormatException'})
2711027272 ,TopLevel::fromFriend($obj->{'friend'})
2711127273 ,TopLevel::fromFrom($obj->{'from'})
27274+ ,TopLevel::fromFromDict($obj->{'from_dict'})
2711227275 ,TopLevel::fromFromJSON($obj->{'from_json'})
2711327276 ,TopLevel::fromFunc($obj->{'func'})
2711427277 ,TopLevel::fromFunction($obj->{'function'})
@@ -27279,6 +27442,7 @@ class TopLevel {
2727927442 ,TopLevel::fromTimeOnly($obj->{'TimeOnly'})
2728027443 ,TopLevel::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
2728127444 ,TopLevel::fromTimeZone($obj->{'TimeZone'})
27445+ ,TopLevel::fromToDict($obj->{'to_dict'})
2728227446 ,TopLevel::fromToJSON($obj->{'to_json'})
2728327447 ,TopLevel::fromTopLevel($obj->{'top_level'})
2728427448 ,TopLevel::fromToString($obj->{'toString'})
@@ -27450,6 +27614,7 @@ class TopLevel {
2745027614 ,TopLevel::sampleFormatException()
2745127615 ,TopLevel::sampleFriend()
2745227616 ,TopLevel::sampleFrom()
27617+ ,TopLevel::sampleFromDict()
2745327618 ,TopLevel::sampleFromJSON()
2745427619 ,TopLevel::sampleFunc()
2745527620 ,TopLevel::sampleFunction()
@@ -27620,6 +27785,7 @@ class TopLevel {
2762027785 ,TopLevel::sampleTimeOnly()
2762127786 ,TopLevel::sampleTimeOnlyConverter()
2762227787 ,TopLevel::sampleTimeZone()
27788+ ,TopLevel::sampleToDict()
2762327789 ,TopLevel::sampleToJSON()
2762427790 ,TopLevel::sampleTopLevel()
2762527791 ,TopLevel::sampleToString()
@@ -32840,6 +33006,51 @@ class From {
3284033006 }
3284133007 }
3284233008
33009+// This is an autogenerated file:FromDict
33010+
33011+class FromDict {
33012+
33013+ /**
33014+ */
33015+ public function __construct() {
33016+ }
33017+
33018+ /**
33019+ * @throws Exception
33020+ * @return bool
33021+ */
33022+ public function validate(): bool {
33023+ return true;
33024+ }
33025+
33026+ /**
33027+ * @return stdClass
33028+ * @throws Exception
33029+ */
33030+ public function to(): stdClass {
33031+ $out = new stdClass();
33032+ return $out;
33033+ }
33034+
33035+ /**
33036+ * @param stdClass $obj
33037+ * @return FromDict
33038+ * @throws Exception
33039+ */
33040+ public static function from(stdClass $obj): FromDict {
33041+ return new FromDict(
33042+ );
33043+ }
33044+
33045+ /**
33046+ * @return FromDict
33047+ */
33048+ public static function sample(): FromDict {
33049+ return new FromDict(
33050+ );
33051+ }
33052+}
33053+
3284333054 // This is an autogenerated file:FromJSON
3284433055
3284533056 class FromJSON {
@@ -40355,6 +40566,51 @@ class TimeZone {
4035540566 }
4035640567 }
4035740568
40569+// This is an autogenerated file:ToDict
40570+
40571+class ToDict {
40572+
40573+ /**
40574+ */
40575+ public function __construct() {
40576+ }
40577+
40578+ /**
40579+ * @throws Exception
40580+ * @return bool
40581+ */
40582+ public function validate(): bool {
40583+ return true;
40584+ }
40585+
40586+ /**
40587+ * @return stdClass
40588+ * @throws Exception
40589+ */
40590+ public function to(): stdClass {
40591+ $out = new stdClass();
40592+ return $out;
40593+ }
40594+
40595+ /**
40596+ * @param stdClass $obj
40597+ * @return ToDict
40598+ * @throws Exception
40599+ */
40600+ public static function from(stdClass $obj): ToDict {
40601+ return new ToDict(
40602+ );
40603+ }
40604+
40605+ /**
40606+ * @return ToDict
40607+ */
40608+ public static function sample(): ToDict {
40609+ return new ToDict(
40610+ );
40611+ }
40612+}
40613+
4035840614 // This is an autogenerated file:ToJSON
4035940615
4036040616 class ToJSON {
Mschema-pikedefault / TopLevel.pmod+52 −0
@@ -135,6 +135,7 @@ class TopLevel {
135135 UnionFormatException format_exception; // json: "FormatException"
136136 UnionFriend friend; // json: "friend"
137137 UnionFrom from; // json: "from"
138+ UnionFromDict from_dict; // json: "from_dict"
138139 UnionFromJson from_json; // json: "from_json"
139140 UnionFunc func; // json: "func"
140141 UnionFunction top_level_function; // json: "function"
@@ -305,6 +306,7 @@ class TopLevel {
305306 UnionTimeOnly time_only; // json: "TimeOnly"
306307 UnionTimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter"
307308 UnionTimeZone time_zone; // json: "TimeZone"
309+ UnionToDict to_dict; // json: "to_dict"
308310 UnionToJson to_json; // json: "to_json"
309311 UnionTopLevel top_level; // json: "top_level"
310312 UnionToString to_string; // json: "toString"
@@ -471,6 +473,7 @@ class TopLevel {
471473 "FormatException" : format_exception,
472474 "friend" : friend,
473475 "from" : from,
476+ "from_dict" : from_dict,
474477 "from_json" : from_json,
475478 "func" : func,
476479 "function" : top_level_function,
@@ -641,6 +644,7 @@ class TopLevel {
641644 "TimeOnly" : time_only,
642645 "TimeOnlyConverter" : time_only_converter,
643646 "TimeZone" : time_zone,
647+ "to_dict" : to_dict,
644648 "to_json" : to_json,
645649 "top_level" : top_level,
646650 "toString" : to_string,
@@ -934,6 +938,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
934938 retval.friend = json["friend"];
935939 if (arrayp(json["from"])) error("Unexpected array");
936940 retval.from = json["from"];
941+ if (arrayp(json["from_dict"])) error("Unexpected array");
942+ retval.from_dict = json["from_dict"];
937943 if (arrayp(json["from_json"])) error("Unexpected array");
938944 retval.from_json = json["from_json"];
939945 if (arrayp(json["func"])) error("Unexpected array");
@@ -1274,6 +1280,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
12741280 retval.time_only_converter = json["TimeOnlyConverter"];
12751281 if (arrayp(json["TimeZone"])) error("Unexpected array");
12761282 retval.time_zone = json["TimeZone"];
1283+ if (arrayp(json["to_dict"])) error("Unexpected array");
1284+ retval.to_dict = json["to_dict"];
12771285 if (arrayp(json["to_json"])) error("Unexpected array");
12781286 retval.to_json = json["to_json"];
12791287 if (arrayp(json["top_level"])) error("Unexpected array");
@@ -3516,6 +3524,28 @@ From From_from_JSON(mixed json) {
35163524 return retval;
35173525 }
35183526
3527+typedef float|FromDict UnionFromDict;
3528+
3529+UnionFromDict UnionFromDict_from_JSON(mixed json) {
3530+ return json;
3531+}
3532+
3533+class FromDict {
3534+
3535+ string encode_json() {
3536+ mapping(string:mixed) json = ([
3537+ ]);
3538+
3539+ return Standards.JSON.encode(json);
3540+ }
3541+}
3542+
3543+FromDict FromDict_from_JSON(mixed json) {
3544+ FromDict retval = FromDict();
3545+
3546+ return retval;
3547+}
3548+
35193549 typedef float|FromJson UnionFromJson;
35203550
35213551 UnionFromJson UnionFromJson_from_JSON(mixed json) {
@@ -6882,6 +6912,28 @@ TimeZone TimeZone_from_JSON(mixed json) {
68826912 return retval;
68836913 }
68846914
6915+typedef float|ToDict UnionToDict;
6916+
6917+UnionToDict UnionToDict_from_JSON(mixed json) {
6918+ return json;
6919+}
6920+
6921+class ToDict {
6922+
6923+ string encode_json() {
6924+ mapping(string:mixed) json = ([
6925+ ]);
6926+
6927+ return Standards.JSON.encode(json);
6928+ }
6929+}
6930+
6931+ToDict ToDict_from_JSON(mixed json) {
6932+ ToDict retval = ToDict();
6933+
6934+ return retval;
6935+}
6936+
68856937 typedef float|ToJson UnionToJson;
68866938
68876939 UnionToJson UnionToJson_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+37 −1
@@ -3898,6 +3898,20 @@ class From:
38983898 return result
38993899
39003900
3901+@dataclass
3902+class FromDict:
3903+ pass
3904+
3905+ @staticmethod
3906+ def from_dict(obj: Any) -> 'FromDict':
3907+ assert isinstance(obj, dict)
3908+ return FromDict()
3909+
3910+ def to_dict(self) -> dict:
3911+ result: dict = {}
3912+ return result
3913+
3914+
39013915 @dataclass
39023916 class Global:
39033917 pass
@@ -4150,6 +4164,20 @@ class Self:
41504164 return result
41514165
41524166
4167+@dataclass
4168+class ToDict:
4169+ pass
4170+
4171+ @staticmethod
4172+ def from_dict(obj: Any) -> 'ToDict':
4173+ assert isinstance(obj, dict)
4174+ return ToDict()
4175+
4176+ def to_dict(self) -> dict:
4177+ result: dict = {}
4178+ return result
4179+
4180+
41534181 @dataclass
41544182 class UnionTrueTrue:
41554183 pass
@@ -4806,6 +4834,7 @@ class TopLevel:
48064834 format_exception: float | FormatException | None = None
48074835 friend: float | Friend | None = None
48084836 top_level_from: float | From | None = None
4837+ top_level_from_dict: float | FromDict | None = None
48094838 from_json: float | FromJSON | None = None
48104839 func: float | Func | None = None
48114840 function: float | Function | None = None
@@ -4976,6 +5005,7 @@ class TopLevel:
49765005 time_only: float | TimeOnly | None = None
49775006 time_only_converter: float | TimeOnlyConverter | None = None
49785007 time_zone: float | TimeZone | None = None
5008+ top_level_to_dict: float | ToDict | None = None
49795009 to_json: float | ToJSON | None = None
49805010 top_level: float | TopLevelClass | None = None
49815011 to_string: float | ToString | None = None
@@ -5143,6 +5173,7 @@ class TopLevel:
51435173 format_exception = from_union([from_float, FormatException.from_dict, from_none], obj.get("FormatException"))
51445174 friend = from_union([from_float, Friend.from_dict, from_none], obj.get("friend"))
51455175 top_level_from = from_union([from_float, From.from_dict, from_none], obj.get("from"))
5176+ top_level_from_dict = from_union([from_float, FromDict.from_dict, from_none], obj.get("from_dict"))
51465177 from_json = from_union([from_float, FromJSON.from_dict, from_none], obj.get("from_json"))
51475178 func = from_union([from_float, Func.from_dict, from_none], obj.get("func"))
51485179 function = from_union([from_float, Function.from_dict, from_none], obj.get("function"))
@@ -5313,6 +5344,7 @@ class TopLevel:
53135344 time_only = from_union([from_float, TimeOnly.from_dict, from_none], obj.get("TimeOnly"))
53145345 time_only_converter = from_union([from_float, TimeOnlyConverter.from_dict, from_none], obj.get("TimeOnlyConverter"))
53155346 time_zone = from_union([from_float, TimeZone.from_dict, from_none], obj.get("TimeZone"))
5347+ top_level_to_dict = from_union([from_float, ToDict.from_dict, from_none], obj.get("to_dict"))
53165348 to_json = from_union([from_float, ToJSON.from_dict, from_none], obj.get("to_json"))
53175349 top_level = from_union([from_float, TopLevelClass.from_dict, from_none], obj.get("top_level"))
53185350 to_string = from_union([from_float, ToString.from_dict, from_none], obj.get("toString"))
@@ -5354,7 +5386,7 @@ class TopLevel:
53545386 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
53555387 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
53565388 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5357- return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serialize, serializer_provider, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
5389+ return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, top_level_from_dict, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serialize, serializer_provider, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, top_level_to_dict, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
53585390
53595391 def to_dict(self) -> dict:
53605392 result: dict = {}
@@ -5602,6 +5634,8 @@ class TopLevel:
56025634 result["friend"] = from_union([to_float, lambda x: to_class(Friend, x), from_none], self.friend)
56035635 if self.top_level_from is not None:
56045636 result["from"] = from_union([to_float, lambda x: to_class(From, x), from_none], self.top_level_from)
5637+ if self.top_level_from_dict is not None:
5638+ result["from_dict"] = from_union([to_float, lambda x: to_class(FromDict, x), from_none], self.top_level_from_dict)
56055639 if self.from_json is not None:
56065640 result["from_json"] = from_union([to_float, lambda x: to_class(FromJSON, x), from_none], self.from_json)
56075641 if self.func is not None:
@@ -5942,6 +5976,8 @@ class TopLevel:
59425976 result["TimeOnlyConverter"] = from_union([to_float, lambda x: to_class(TimeOnlyConverter, x), from_none], self.time_only_converter)
59435977 if self.time_zone is not None:
59445978 result["TimeZone"] = from_union([to_float, lambda x: to_class(TimeZone, x), from_none], self.time_zone)
5979+ if self.top_level_to_dict is not None:
5980+ result["to_dict"] = from_union([to_float, lambda x: to_class(ToDict, x), from_none], self.top_level_to_dict)
59455981 if self.to_json is not None:
59465982 result["to_json"] = from_union([to_float, lambda x: to_class(ToJSON, x), from_none], self.to_json)
59475983 if self.top_level is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+120 −0
@@ -5947,6 +5947,63 @@ class UnionFrom < Dry::Struct
59475947 end
59485948 end
59495949
5950+class FromDict < Dry::Struct
5951+
5952+ def self.from_dynamic!(d)
5953+ d = Types::Hash[d]
5954+ new(
5955+ )
5956+ end
5957+
5958+ def self.from_json!(json)
5959+ from_dynamic!(JSON.parse(json))
5960+ end
5961+
5962+ def to_dynamic
5963+ {
5964+ }
5965+ end
5966+
5967+ def to_json(options = nil)
5968+ JSON.generate(to_dynamic, options)
5969+ end
5970+end
5971+
5972+class UnionFromDict < Dry::Struct
5973+ attribute :double, Types::Double.optional
5974+ attribute :from_dict, FromDict.optional
5975+
5976+ def self.from_dynamic!(d)
5977+ if schema.key(:double).type.right.valid? d
5978+ return new(double: d, from_dict: nil)
5979+ end
5980+ begin
5981+ value = FromDict.from_dynamic!(d)
5982+ if schema.key(:from_dict).type.right.valid? value
5983+ return new(from_dict: value, double: nil)
5984+ end
5985+ rescue
5986+ end
5987+ raise "Invalid union"
5988+ end
5989+
5990+ def self.from_json!(json)
5991+ from_dynamic!(JSON.parse(json))
5992+ end
5993+
5994+ def to_dynamic
5995+ if double != nil
5996+ double
5997+ elsif from_dict != nil
5998+ from_dict.to_dynamic
5999+ end
6000+ end
6001+
6002+ def to_json(options = nil)
6003+ JSON.generate(to_dynamic, options)
6004+ end
6005+end
6006+
59506007 class FromJSON < Dry::Struct
59516008
59526009 def self.from_dynamic!(d)
@@ -14326,6 +14383,63 @@ class UnionTimeZone < Dry::Struct
1432614383 end
1432714384 end
1432814385
14386+class ToDict < Dry::Struct
14387+
14388+ def self.from_dynamic!(d)
14389+ d = Types::Hash[d]
14390+ new(
14391+ )
14392+ end
14393+
14394+ def self.from_json!(json)
14395+ from_dynamic!(JSON.parse(json))
14396+ end
14397+
14398+ def to_dynamic
14399+ {
14400+ }
14401+ end
14402+
14403+ def to_json(options = nil)
14404+ JSON.generate(to_dynamic, options)
14405+ end
14406+end
14407+
14408+class UnionToDict < Dry::Struct
14409+ attribute :double, Types::Double.optional
14410+ attribute :to_dict, ToDict.optional
14411+
14412+ def self.from_dynamic!(d)
14413+ if schema.key(:double).type.right.valid? d
14414+ return new(double: d, to_dict: nil)
14415+ end
14416+ begin
14417+ value = ToDict.from_dynamic!(d)
14418+ if schema.key(:to_dict).type.right.valid? value
14419+ return new(to_dict: value, double: nil)
14420+ end
14421+ rescue
14422+ end
14423+ raise "Invalid union"
14424+ end
14425+
14426+ def self.from_json!(json)
14427+ from_dynamic!(JSON.parse(json))
14428+ end
14429+
14430+ def to_dynamic
14431+ if double != nil
14432+ double
14433+ elsif to_dict != nil
14434+ to_dict.to_dynamic
14435+ end
14436+ end
14437+
14438+ def to_json(options = nil)
14439+ JSON.generate(to_dynamic, options)
14440+ end
14441+end
14442+
1432914443 class ToString < Dry::Struct
1433014444
1433114445 def self.from_dynamic!(d)
@@ -19066,6 +19180,7 @@ class TopLevel < Dry::Struct
1906619180 attribute :format_exception, Types.Instance(UnionFormatException).optional
1906719181 attribute :friend, Types.Instance(UnionFriend).optional
1906819182 attribute :from, Types.Instance(UnionFrom).optional
19183+ attribute :from_dict, Types.Instance(UnionFromDict).optional
1906919184 attribute :from_json, Types.Instance(UnionFromJSON).optional
1907019185 attribute :func, Types.Instance(UnionFunc).optional
1907119186 attribute :function, Types.Instance(UnionFunction).optional
@@ -19236,6 +19351,7 @@ class TopLevel < Dry::Struct
1923619351 attribute :time_only, Types.Instance(UnionTimeOnly).optional
1923719352 attribute :time_only_converter, Types.Instance(UnionTimeOnlyConverter).optional
1923819353 attribute :time_zone, Types.Instance(UnionTimeZone).optional
19354+ attribute :to_dict, Types.Instance(UnionToDict).optional
1923919355 attribute :top_level_to_json, Types.Instance(UnionToJSON).optional
1924019356 attribute :top_level, Types.Instance(UnionTopLevel).optional
1924119357 attribute :to_string, Types.Instance(UnionToString).optional
@@ -19403,6 +19519,7 @@ class TopLevel < Dry::Struct
1940319519 format_exception: d.key?("FormatException") ? UnionFormatException.from_dynamic!(d["FormatException"]) : nil,
1940419520 friend: d.key?("friend") ? UnionFriend.from_dynamic!(d["friend"]) : nil,
1940519521 from: d.key?("from") ? UnionFrom.from_dynamic!(d["from"]) : nil,
19522+ from_dict: d.key?("from_dict") ? UnionFromDict.from_dynamic!(d["from_dict"]) : nil,
1940619523 from_json: d.key?("from_json") ? UnionFromJSON.from_dynamic!(d["from_json"]) : nil,
1940719524 func: d.key?("func") ? UnionFunc.from_dynamic!(d["func"]) : nil,
1940819525 function: d.key?("function") ? UnionFunction.from_dynamic!(d["function"]) : nil,
@@ -19573,6 +19690,7 @@ class TopLevel < Dry::Struct
1957319690 time_only: d.key?("TimeOnly") ? UnionTimeOnly.from_dynamic!(d["TimeOnly"]) : nil,
1957419691 time_only_converter: d.key?("TimeOnlyConverter") ? UnionTimeOnlyConverter.from_dynamic!(d["TimeOnlyConverter"]) : nil,
1957519692 time_zone: d.key?("TimeZone") ? UnionTimeZone.from_dynamic!(d["TimeZone"]) : nil,
19693+ to_dict: d.key?("to_dict") ? UnionToDict.from_dynamic!(d["to_dict"]) : nil,
1957619694 top_level_to_json: d.key?("to_json") ? UnionToJSON.from_dynamic!(d["to_json"]) : nil,
1957719695 top_level: d.key?("top_level") ? UnionTopLevel.from_dynamic!(d["top_level"]) : nil,
1957819696 to_string: d.key?("toString") ? UnionToString.from_dynamic!(d["toString"]) : nil,
@@ -19745,6 +19863,7 @@ class TopLevel < Dry::Struct
1974519863 "FormatException" => format_exception&.to_dynamic,
1974619864 "friend" => friend&.to_dynamic,
1974719865 "from" => from&.to_dynamic,
19866+ "from_dict" => from_dict&.to_dynamic,
1974819867 "from_json" => from_json&.to_dynamic,
1974919868 "func" => func&.to_dynamic,
1975019869 "function" => function&.to_dynamic,
@@ -19915,6 +20034,7 @@ class TopLevel < Dry::Struct
1991520034 "TimeOnly" => time_only&.to_dynamic,
1991620035 "TimeOnlyConverter" => time_only_converter&.to_dynamic,
1991720036 "TimeZone" => time_zone&.to_dynamic,
20037+ "to_dict" => to_dict&.to_dynamic,
1991820038 "to_json" => top_level_to_json&.to_dynamic,
1991920039 "top_level" => top_level&.to_dynamic,
1992020040 "toString" => to_string&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+120 −0
@@ -5947,6 +5947,63 @@ class UnionFrom < Dry::Struct
59475947 end
59485948 end
59495949
5950+class FromDict < Dry::Struct
5951+
5952+ def self.from_dynamic!(d)
5953+ d = Types::Hash[d]
5954+ new(
5955+ )
5956+ end
5957+
5958+ def self.from_json!(json)
5959+ from_dynamic!(JSON.parse(json))
5960+ end
5961+
5962+ def to_dynamic
5963+ {
5964+ }
5965+ end
5966+
5967+ def to_json(options = nil)
5968+ JSON.generate(to_dynamic, options)
5969+ end
5970+end
5971+
5972+class UnionFromDict < Dry::Struct
5973+ attribute :double, Types::Double.optional
5974+ attribute :from_dict, FromDict.optional
5975+
5976+ def self.from_dynamic!(d)
5977+ if schema.key(:double).type.right.valid? d
5978+ return new(double: d, from_dict: nil)
5979+ end
5980+ begin
5981+ value = FromDict.from_dynamic!(d)
5982+ if schema.key(:from_dict).type.right.valid? value
5983+ return new(from_dict: value, double: nil)
5984+ end
5985+ rescue
5986+ end
5987+ raise "Invalid union"
5988+ end
5989+
5990+ def self.from_json!(json)
5991+ from_dynamic!(JSON.parse(json))
5992+ end
5993+
5994+ def to_dynamic
5995+ if double != nil
5996+ double
5997+ elsif from_dict != nil
5998+ from_dict.to_dynamic
5999+ end
6000+ end
6001+
6002+ def to_json(options = nil)
6003+ JSON.generate(to_dynamic, options)
6004+ end
6005+end
6006+
59506007 class FromJSON < Dry::Struct
59516008
59526009 def self.from_dynamic!(d)
@@ -14326,6 +14383,63 @@ class UnionTimeZone < Dry::Struct
1432614383 end
1432714384 end
1432814385
14386+class ToDict < Dry::Struct
14387+
14388+ def self.from_dynamic!(d)
14389+ d = Types::Hash[d]
14390+ new(
14391+ )
14392+ end
14393+
14394+ def self.from_json!(json)
14395+ from_dynamic!(JSON.parse(json))
14396+ end
14397+
14398+ def to_dynamic
14399+ {
14400+ }
14401+ end
14402+
14403+ def to_json(options = nil)
14404+ JSON.generate(to_dynamic, options)
14405+ end
14406+end
14407+
14408+class UnionToDict < Dry::Struct
14409+ attribute :double, Types::Double.optional
14410+ attribute :to_dict, ToDict.optional
14411+
14412+ def self.from_dynamic!(d)
14413+ if schema.key(:double).type.right.valid? d
14414+ return new(double: d, to_dict: nil)
14415+ end
14416+ begin
14417+ value = ToDict.from_dynamic!(d)
14418+ if schema.key(:to_dict).type.right.valid? value
14419+ return new(to_dict: value, double: nil)
14420+ end
14421+ rescue
14422+ end
14423+ raise "Invalid union"
14424+ end
14425+
14426+ def self.from_json!(json)
14427+ from_dynamic!(JSON.parse(json))
14428+ end
14429+
14430+ def to_dynamic
14431+ if double != nil
14432+ double
14433+ elsif to_dict != nil
14434+ to_dict.to_dynamic
14435+ end
14436+ end
14437+
14438+ def to_json(options = nil)
14439+ JSON.generate(to_dynamic, options)
14440+ end
14441+end
14442+
1432914443 class ToString < Dry::Struct
1433014444
1433114445 def self.from_dynamic!(d)
@@ -19066,6 +19180,7 @@ class TopLevel < Dry::Struct
1906619180 attribute :format_exception, Types.Instance(UnionFormatException).optional
1906719181 attribute :friend, Types.Instance(UnionFriend).optional
1906819182 attribute :from, Types.Instance(UnionFrom).optional
19183+ attribute :from_dict, Types.Instance(UnionFromDict).optional
1906919184 attribute :from_json, Types.Instance(UnionFromJSON).optional
1907019185 attribute :func, Types.Instance(UnionFunc).optional
1907119186 attribute :function, Types.Instance(UnionFunction).optional
@@ -19236,6 +19351,7 @@ class TopLevel < Dry::Struct
1923619351 attribute :time_only, Types.Instance(UnionTimeOnly).optional
1923719352 attribute :time_only_converter, Types.Instance(UnionTimeOnlyConverter).optional
1923819353 attribute :time_zone, Types.Instance(UnionTimeZone).optional
19354+ attribute :to_dict, Types.Instance(UnionToDict).optional
1923919355 attribute :top_level_to_json, Types.Instance(UnionToJSON).optional
1924019356 attribute :top_level, Types.Instance(UnionTopLevel).optional
1924119357 attribute :to_string, Types.Instance(UnionToString).optional
@@ -19403,6 +19519,7 @@ class TopLevel < Dry::Struct
1940319519 format_exception: d.key?("FormatException") ? UnionFormatException.from_dynamic!(d["FormatException"]) : nil,
1940419520 friend: d.key?("friend") ? UnionFriend.from_dynamic!(d["friend"]) : nil,
1940519521 from: d.key?("from") ? UnionFrom.from_dynamic!(d["from"]) : nil,
19522+ from_dict: d.key?("from_dict") ? UnionFromDict.from_dynamic!(d["from_dict"]) : nil,
1940619523 from_json: d.key?("from_json") ? UnionFromJSON.from_dynamic!(d["from_json"]) : nil,
1940719524 func: d.key?("func") ? UnionFunc.from_dynamic!(d["func"]) : nil,
1940819525 function: d.key?("function") ? UnionFunction.from_dynamic!(d["function"]) : nil,
@@ -19573,6 +19690,7 @@ class TopLevel < Dry::Struct
1957319690 time_only: d.key?("TimeOnly") ? UnionTimeOnly.from_dynamic!(d["TimeOnly"]) : nil,
1957419691 time_only_converter: d.key?("TimeOnlyConverter") ? UnionTimeOnlyConverter.from_dynamic!(d["TimeOnlyConverter"]) : nil,
1957519692 time_zone: d.key?("TimeZone") ? UnionTimeZone.from_dynamic!(d["TimeZone"]) : nil,
19693+ to_dict: d.key?("to_dict") ? UnionToDict.from_dynamic!(d["to_dict"]) : nil,
1957619694 top_level_to_json: d.key?("to_json") ? UnionToJSON.from_dynamic!(d["to_json"]) : nil,
1957719695 top_level: d.key?("top_level") ? UnionTopLevel.from_dynamic!(d["top_level"]) : nil,
1957819696 to_string: d.key?("toString") ? UnionToString.from_dynamic!(d["toString"]) : nil,
@@ -19745,6 +19863,7 @@ class TopLevel < Dry::Struct
1974519863 "FormatException" => format_exception&.to_dynamic,
1974619864 "friend" => friend&.to_dynamic,
1974719865 "from" => from&.to_dynamic,
19866+ "from_dict" => from_dict&.to_dynamic,
1974819867 "from_json" => from_json&.to_dynamic,
1974919868 "func" => func&.to_dynamic,
1975019869 "function" => function&.to_dynamic,
@@ -19915,6 +20034,7 @@ class TopLevel < Dry::Struct
1991520034 "TimeOnly" => time_only&.to_dynamic,
1991620035 "TimeOnlyConverter" => time_only_converter&.to_dynamic,
1991720036 "TimeZone" => time_zone&.to_dynamic,
20037+ "to_dict" => to_dict&.to_dynamic,
1991820038 "to_json" => top_level_to_json&.to_dynamic,
1991920039 "top_level" => top_level&.to_dynamic,
1992020040 "toString" => to_string&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+28 −0
@@ -304,6 +304,8 @@ pub struct TopLevel {
304304
305305 pub from: Option<UnionFrom>,
306306
307+ pub from_dict: Option<UnionFromDict>,
308+
307309 pub from_json: Option<UnionFromJson>,
308310
309311 pub func: Option<UnionFunc>,
@@ -700,6 +702,8 @@ pub struct TopLevel {
700702 #[serde(rename = "TimeZone")]
701703 pub time_zone: Option<UnionTimeZone>,
702704
705+ pub to_dict: Option<UnionToDict>,
706+
703707 pub to_json: Option<UnionToJson>,
704708
705709 pub top_level: Option<UnionTopLevel>,
@@ -1988,6 +1992,18 @@ pub enum UnionFrom {
19881992 pub struct From {
19891993 }
19901994
1995+#[derive(Debug, Clone, Serialize, Deserialize)]
1996+#[serde(untagged)]
1997+pub enum UnionFromDict {
1998+ Double(f64),
1999+
2000+ FromDict(FromDict),
2001+}
2002+
2003+#[derive(Debug, Clone, Serialize, Deserialize)]
2004+pub struct FromDict {
2005+}
2006+
19912007 #[derive(Debug, Clone, Serialize, Deserialize)]
19922008 #[serde(untagged)]
19932009 pub enum UnionFromJson {
@@ -3920,6 +3936,18 @@ pub enum UnionTimeZone {
39203936 pub struct TimeZone {
39213937 }
39223938
3939+#[derive(Debug, Clone, Serialize, Deserialize)]
3940+#[serde(untagged)]
3941+pub enum UnionToDict {
3942+ Double(f64),
3943+
3944+ ToDict(ToDict),
3945+}
3946+
3947+#[derive(Debug, Clone, Serialize, Deserialize)]
3948+pub struct ToDict {
3949+}
3950+
39233951 #[derive(Debug, Clone, Serialize, Deserialize)]
39243952 #[serde(untagged)]
39253953 pub enum UnionToJson {
Mschema-schemadefault / TopLevel.schema+38 −0
@@ -372,6 +372,9 @@
372372 "from": {
373373 "$ref": "#/definitions/UnionFrom"
374374 },
375+ "from_dict": {
376+ "$ref": "#/definitions/UnionFromDict"
377+ },
375378 "from_json": {
376379 "$ref": "#/definitions/UnionFromJSON"
377380 },
@@ -882,6 +885,9 @@
882885 "TimeZone": {
883886 "$ref": "#/definitions/UnionTimeZone"
884887 },
888+ "to_dict": {
889+ "$ref": "#/definitions/UnionToDict"
890+ },
885891 "to_json": {
886892 "$ref": "#/definitions/UnionToJSON"
887893 },
@@ -1829,6 +1835,11 @@
18291835 "additionalProperties": false,
18301836 "title": "From"
18311837 },
1838+ "FromDict": {
1839+ "type": "object",
1840+ "additionalProperties": false,
1841+ "title": "FromDict"
1842+ },
18321843 "FromJSON": {
18331844 "type": "object",
18341845 "additionalProperties": false,
@@ -2499,6 +2510,11 @@
24992510 "additionalProperties": false,
25002511 "title": "ToString"
25012512 },
2513+ "ToDict": {
2514+ "type": "object",
2515+ "additionalProperties": false,
2516+ "title": "ToDict"
2517+ },
25022518 "ToJSON": {
25032519 "type": "object",
25042520 "additionalProperties": false,
@@ -4473,6 +4489,17 @@
44734489 ],
44744490 "title": "UnionFrom"
44754491 },
4492+ "UnionFromDict": {
4493+ "anyOf": [
4494+ {
4495+ "$ref": "#/definitions/FromDict"
4496+ },
4497+ {
4498+ "type": "number"
4499+ }
4500+ ],
4501+ "title": "UnionFromDict"
4502+ },
44764503 "UnionFromJSON": {
44774504 "anyOf": [
44784505 {
@@ -5947,6 +5974,17 @@
59475974 ],
59485975 "title": "UnionToString"
59495976 },
5977+ "UnionToDict": {
5978+ "anyOf": [
5979+ {
5980+ "$ref": "#/definitions/ToDict"
5981+ },
5982+ {
5983+ "type": "number"
5984+ }
5985+ ],
5986+ "title": "UnionToDict"
5987+ },
59505988 "UnionToJSON": {
59515989 "anyOf": [
59525990 {
Mschema-swiftdefault / quicktype.swift+150 −0
@@ -129,6 +129,7 @@ struct TopLevel: Codable {
129129 let formatException: UnionFormatException?
130130 let friend: UnionFriend?
131131 let from: UnionFrom?
132+ let fromDict: UnionFromDict?
132133 let fromJSON: UnionFromJSON?
133134 let topLevelFunc: UnionFunc?
134135 let function: UnionFunction?
@@ -299,6 +300,7 @@ struct TopLevel: Codable {
299300 let timeOnly: UnionTimeOnly?
300301 let timeOnlyConverter: UnionTimeOnlyConverter?
301302 let timeZone: UnionTimeZone?
303+ let toDict: UnionToDict?
302304 let toJSON: UnionToJSON?
303305 let topLevel: UnionTopLevel?
304306 let toString: UnionToString?
@@ -464,6 +466,7 @@ struct TopLevel: Codable {
464466 case formatException = "FormatException"
465467 case friend = "friend"
466468 case from = "from"
469+ case fromDict = "from_dict"
467470 case fromJSON = "from_json"
468471 case topLevelFunc = "func"
469472 case function = "function"
@@ -634,6 +637,7 @@ struct TopLevel: Codable {
634637 case timeOnly = "TimeOnly"
635638 case timeOnlyConverter = "TimeOnlyConverter"
636639 case timeZone = "TimeZone"
640+ case toDict = "to_dict"
637641 case toJSON = "to_json"
638642 case topLevel = "top_level"
639643 case toString = "toString"
@@ -819,6 +823,7 @@ extension TopLevel {
819823 formatException: UnionFormatException?? = nil,
820824 friend: UnionFriend?? = nil,
821825 from: UnionFrom?? = nil,
826+ fromDict: UnionFromDict?? = nil,
822827 fromJSON: UnionFromJSON?? = nil,
823828 topLevelFunc: UnionFunc?? = nil,
824829 function: UnionFunction?? = nil,
@@ -989,6 +994,7 @@ extension TopLevel {
989994 timeOnly: UnionTimeOnly?? = nil,
990995 timeOnlyConverter: UnionTimeOnlyConverter?? = nil,
991996 timeZone: UnionTimeZone?? = nil,
997+ toDict: UnionToDict?? = nil,
992998 toJSON: UnionToJSON?? = nil,
993999 topLevel: UnionTopLevel?? = nil,
9941000 toString: UnionToString?? = nil,
@@ -1154,6 +1160,7 @@ extension TopLevel {
11541160 formatException: formatException ?? self.formatException,
11551161 friend: friend ?? self.friend,
11561162 from: from ?? self.from,
1163+ fromDict: fromDict ?? self.fromDict,
11571164 fromJSON: fromJSON ?? self.fromJSON,
11581165 topLevelFunc: topLevelFunc ?? self.topLevelFunc,
11591166 function: function ?? self.function,
@@ -1324,6 +1331,7 @@ extension TopLevel {
13241331 timeOnly: timeOnly ?? self.timeOnly,
13251332 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
13261333 timeZone: timeZone ?? self.timeZone,
1334+ toDict: toDict ?? self.toDict,
13271335 toJSON: toJSON ?? self.toJSON,
13281336 topLevel: topLevel ?? self.topLevel,
13291337 toString: toString ?? self.toString,
@@ -7838,6 +7846,77 @@ extension From {
78387846 }
78397847 }
78407848
7849+enum UnionFromDict: Codable {
7850+ case double(Double)
7851+ case fromDict(FromDict)
7852+
7853+ init(from decoder: Decoder) throws {
7854+ let container = try decoder.singleValueContainer()
7855+ if let x = try? container.decode(Double.self) {
7856+ self = .double(x)
7857+ return
7858+ }
7859+ if let x = try? container.decode(FromDict.self) {
7860+ self = .fromDict(x)
7861+ return
7862+ }
7863+ throw DecodingError.typeMismatch(UnionFromDict.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionFromDict"))
7864+ }
7865+
7866+ func encode(to encoder: Encoder) throws {
7867+ var container = encoder.singleValueContainer()
7868+ switch self {
7869+ case .double(let x):
7870+ try container.encode(x)
7871+ case .fromDict(let x):
7872+ try container.encode(x)
7873+ }
7874+ }
7875+}
7876+
7877+// MARK: - FromDict
7878+struct FromDict: Codable {
7879+ private enum K: String, CodingKey { case unused }
7880+ init(from decoder: Decoder) throws {
7881+ _ = try decoder.container(keyedBy: K.self)
7882+ }
7883+ init() {
7884+ }
7885+}
7886+
7887+// MARK: FromDict convenience initializers and mutators
7888+
7889+extension FromDict {
7890+ init(data: Data) throws {
7891+ self = try newJSONDecoder().decode(FromDict.self, from: data)
7892+ }
7893+
7894+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
7895+ guard let data = json.data(using: encoding) else {
7896+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
7897+ }
7898+ try self.init(data: data)
7899+ }
7900+
7901+ init(fromURL url: URL) throws {
7902+ try self.init(data: try Data(contentsOf: url))
7903+ }
7904+
7905+ func with(
7906+ ) -> FromDict {
7907+ return FromDict(
7908+ )
7909+ }
7910+
7911+ func jsonData() throws -> Data {
7912+ return try newJSONEncoder().encode(self)
7913+ }
7914+
7915+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
7916+ return String(data: try self.jsonData(), encoding: encoding)
7917+ }
7918+}
7919+
78417920 enum UnionFromJSON: Codable {
78427921 case double(Double)
78437922 case fromJSON(FromJSON)
@@ -17068,6 +17147,77 @@ extension TimeZoneClass {
1706817147 }
1706917148 }
1707017149
17150+enum UnionToDict: Codable {
17151+ case double(Double)
17152+ case toDict(ToDict)
17153+
17154+ init(from decoder: Decoder) throws {
17155+ let container = try decoder.singleValueContainer()
17156+ if let x = try? container.decode(Double.self) {
17157+ self = .double(x)
17158+ return
17159+ }
17160+ if let x = try? container.decode(ToDict.self) {
17161+ self = .toDict(x)
17162+ return
17163+ }
17164+ throw DecodingError.typeMismatch(UnionToDict.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionToDict"))
17165+ }
17166+
17167+ func encode(to encoder: Encoder) throws {
17168+ var container = encoder.singleValueContainer()
17169+ switch self {
17170+ case .double(let x):
17171+ try container.encode(x)
17172+ case .toDict(let x):
17173+ try container.encode(x)
17174+ }
17175+ }
17176+}
17177+
17178+// MARK: - ToDict
17179+struct ToDict: Codable {
17180+ private enum K: String, CodingKey { case unused }
17181+ init(from decoder: Decoder) throws {
17182+ _ = try decoder.container(keyedBy: K.self)
17183+ }
17184+ init() {
17185+ }
17186+}
17187+
17188+// MARK: ToDict convenience initializers and mutators
17189+
17190+extension ToDict {
17191+ init(data: Data) throws {
17192+ self = try newJSONDecoder().decode(ToDict.self, from: data)
17193+ }
17194+
17195+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17196+ guard let data = json.data(using: encoding) else {
17197+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17198+ }
17199+ try self.init(data: data)
17200+ }
17201+
17202+ init(fromURL url: URL) throws {
17203+ try self.init(data: try Data(contentsOf: url))
17204+ }
17205+
17206+ func with(
17207+ ) -> ToDict {
17208+ return ToDict(
17209+ )
17210+ }
17211+
17212+ func jsonData() throws -> Data {
17213+ return try newJSONEncoder().encode(self)
17214+ }
17215+
17216+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17217+ return String(data: try self.jsonData(), encoding: encoding)
17218+ }
17219+}
17220+
1707117221 enum UnionToJSON: Codable {
1707217222 case double(Double)
1707317223 case toJSON(ToJSON)
Mschema-typescript-effect-schemadefault / TopLevel.ts+8 −0
@@ -148,6 +148,9 @@ export class ToString extends S.Class<ToString>("ToString")(S.Struct({}).pipe(S.
148148 export class ToJson extends S.Class<ToJson>("ToJson")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
149149 ) {}
150150
151+export class ToDict extends S.Class<ToDict>("ToDict")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
152+) {}
153+
151154 export class TimeZone extends S.Class<TimeZone>("TimeZone")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
152155 ) {}
153156
@@ -652,6 +655,9 @@ export class Func extends S.Class<Func>("Func")(S.Struct({}).pipe(S.filter(value
652655 export class FromJson extends S.Class<FromJson>("FromJson")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
653656 ) {}
654657
658+export class FromDict extends S.Class<FromDict>("FromDict")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
659+) {}
660+
655661 export class From extends S.Class<From>("From")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
656662 ) {}
657663
@@ -1120,6 +1126,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
11201126 "FormatException": S.optional(S.Union(S.Number, FormatException)),
11211127 "friend": S.optional(S.Union(S.Number, Friend)),
11221128 "from": S.optional(S.Union(S.Number, From)),
1129+ "from_dict": S.optional(S.Union(S.Number, FromDict)),
11231130 "from_json": S.optional(S.Union(S.Number, FromJson)),
11241131 "func": S.optional(S.Union(S.Number, Func)),
11251132 "function": S.optional(S.Union(S.Number, Function)),
@@ -1290,6 +1297,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12901297 "TimeOnly": S.optional(S.Union(S.Number, TimeOnly)),
12911298 "TimeOnlyConverter": S.optional(S.Union(S.Number, TimeOnlyConverter)),
12921299 "TimeZone": S.optional(S.Union(S.Number, TimeZone)),
1300+ "to_dict": S.optional(S.Union(S.Number, ToDict)),
12931301 "to_json": S.optional(S.Union(S.Number, ToJson)),
12941302 "top_level": S.optional(S.Union(S.Number, TopLevelClass)),
12951303 "toString": S.optional(S.Union(S.Number, ToString)),
Mschema-typescript-zoddefault / TopLevel.ts+10 −0
@@ -461,6 +461,10 @@ export const FromSchema = z.object({
461461 });
462462 export type From = z.infer<typeof FromSchema>;
463463
464+export const FromDictSchema = z.object({
465+});
466+export type FromDict = z.infer<typeof FromDictSchema>;
467+
464468 export const FromJsonSchema = z.object({
465469 });
466470 export type FromJson = z.infer<typeof FromJsonSchema>;
@@ -1133,6 +1137,10 @@ export const TimeZoneSchema = z.object({
11331137 });
11341138 export type TimeZone = z.infer<typeof TimeZoneSchema>;
11351139
1140+export const ToDictSchema = z.object({
1141+});
1142+export type ToDict = z.infer<typeof ToDictSchema>;
1143+
11361144 export const ToJsonSchema = z.object({
11371145 });
11381146 export type ToJson = z.infer<typeof ToJsonSchema>;
@@ -1452,6 +1460,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
14521460 "FormatException": z.union([FormatExceptionSchema, z.number()]).optional(),
14531461 "friend": z.union([FriendSchema, z.number()]).optional(),
14541462 "from": z.union([FromSchema, z.number()]).optional(),
1463+ "from_dict": z.union([FromDictSchema, z.number()]).optional(),
14551464 "from_json": z.union([FromJsonSchema, z.number()]).optional(),
14561465 "func": z.union([FuncSchema, z.number()]).optional(),
14571466 "function": z.union([FunctionSchema, z.number()]).optional(),
@@ -1622,6 +1631,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
16221631 "TimeOnly": z.union([TimeOnlySchema, z.number()]).optional(),
16231632 "TimeOnlyConverter": z.union([TimeOnlyConverterSchema, z.number()]).optional(),
16241633 "TimeZone": z.union([TimeZoneSchema, z.number()]).optional(),
1634+ "to_dict": z.union([ToDictSchema, z.number()]).optional(),
16251635 "to_json": z.union([ToJsonSchema, z.number()]).optional(),
16261636 "top_level": z.union([TopLevelClassSchema, z.number()]).optional(),
16271637 "toString": z.union([ToStringSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+8 −0
@@ -130,6 +130,7 @@ export interface TopLevel {
130130 FormatException?: UnionFormatException;
131131 friend?: UnionFriend;
132132 from?: UnionFrom;
133+ from_dict?: UnionFromDict;
133134 from_json?: UnionFromJSON;
134135 func?: UnionFunc;
135136 function?: UnionFunction;
@@ -300,6 +301,7 @@ export interface TopLevel {
300301 TimeOnly?: UnionTimeOnly;
301302 TimeOnlyConverter?: UnionTimeOnlyConverter;
302303 TimeZone?: UnionTimeZone;
304+ to_dict?: UnionToDict;
303305 to_json?: UnionToJSON;
304306 top_level?: UnionTopLevel;
305307 toString?: UnionToString;
@@ -672,6 +674,8 @@ export type UnionFriend = object | number;
672674
673675 export type UnionFrom = object | number;
674676
677+export type UnionFromDict = object | number;
678+
675679 export type UnionFromJSON = object | number;
676680
677681 export type UnionFunc = object | number;
@@ -940,6 +944,8 @@ export type UnionThrows = object | number;
940944
941945 export type UnionToString = object | number;
942946
947+export type UnionToDict = object | number;
948+
943949 export type UnionToJSON = object | number;
944950
945951 export type UnionTopLevel = object | number;
@@ -1318,6 +1324,7 @@ const typeMap: any = {
13181324 { json: "FormatException", js: "FormatException", typ: u(undefined, u(m("any"), 3.14)) },
13191325 { json: "friend", js: "friend", typ: u(undefined, u(m("any"), 3.14)) },
13201326 { json: "from", js: "from", typ: u(undefined, u(m("any"), 3.14)) },
1327+ { json: "from_dict", js: "from_dict", typ: u(undefined, u(m("any"), 3.14)) },
13211328 { json: "from_json", js: "from_json", typ: u(undefined, u(m("any"), 3.14)) },
13221329 { json: "func", js: "func", typ: u(undefined, u(m("any"), 3.14)) },
13231330 { json: "function", js: "function", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1488,6 +1495,7 @@ const typeMap: any = {
14881495 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(m("any"), 3.14)) },
14891496 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(m("any"), 3.14)) },
14901497 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(m("any"), 3.14)) },
1498+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(m("any"), 3.14)) },
14911499 { json: "to_json", js: "to_json", typ: u(undefined, u(m("any"), 3.14)) },
14921500 { json: "top_level", js: "top_level", typ: u(undefined, u(m("any"), 3.14)) },
14931501 { json: "toString", js: "toString", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.