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,730changed lines
+9,006 −4,724insertions / deletions
Base b848720ff991a5e25d8f194da6d4aed99b478368 · PR merge c446f090cb175b0c82e76b0767284f8daccd0671 · Head 25df10bb87c0664bb2fd06ee8059492a57e06a97 · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +6,279 −4,487
Mcjsondefault / TopLevel.c+469 −339
@@ -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 }
@@ -18209,47 +18209,47 @@ void cJSON_DeleteUnion(struct Union * x) {
1820918209 }
1821018210 }
1821118211
18212-struct Unsigned * cJSON_ParseUnsigned(const char * s) {
18213- struct Unsigned * x = NULL;
18212+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18213+ struct PrimitiveKind * x = NULL;
1821418214 if (NULL != s) {
1821518215 cJSON * j = cJSON_Parse(s);
1821618216 if (NULL != j) {
18217- x = cJSON_GetUnsignedValue(j);
18217+ x = cJSON_GetPrimitiveKindValue(j);
1821818218 cJSON_Delete(j);
1821918219 }
1822018220 }
1822118221 return x;
1822218222 }
1822318223
18224-struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) {
18225- struct Unsigned * x = NULL;
18224+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18225+ struct PrimitiveKind * x = NULL;
1822618226 if (NULL != j) {
18227- if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) {
18228- memset(x, 0, sizeof(struct Unsigned));
18229- if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; }
18230- if (cJSON_HasObjectItem(j, "unsigned")) {
18231- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; }
18232- x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
18227+ if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18228+ memset(x, 0, sizeof(struct PrimitiveKind));
18229+ if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18230+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18231+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18232+ x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
1823318233 }
1823418234 }
1823518235 }
1823618236 return x;
1823718237 }
1823818238
18239-cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) {
18239+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
1824018240 cJSON * j = NULL;
1824118241 if (NULL != x) {
1824218242 if (NULL != (j = cJSON_CreateObject())) {
18243- cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned);
18243+ cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
1824418244 }
1824518245 }
1824618246 return j;
1824718247 }
1824818248
18249-char * cJSON_PrintUnsigned(const struct Unsigned * x) {
18249+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1825018250 char * s = NULL;
1825118251 if (NULL != x) {
18252- cJSON * j = cJSON_CreateUnsigned(x);
18252+ cJSON * j = cJSON_CreatePrimitiveKind(x);
1825318253 if (NULL != j) {
1825418254 s = cJSON_Print(j);
1825518255 cJSON_Delete(j);
@@ -18258,53 +18258,53 @@ char * cJSON_PrintUnsigned(const struct Unsigned * x) {
1825818258 return s;
1825918259 }
1826018260
18261-void cJSON_DeleteUnsigned(struct Unsigned * x) {
18261+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
1826218262 if (NULL != x) {
1826318263 cJSON_free(x);
1826418264 }
1826518265 }
1826618266
18267-struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18268- struct PrimitiveKind * 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_GetPrimitiveKindValue(j);
18272+ x = cJSON_GetObj5TrueValue(j);
1827318273 cJSON_Delete(j);
1827418274 }
1827518275 }
1827618276 return x;
1827718277 }
1827818278
18279-struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18280- struct PrimitiveKind * 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 PrimitiveKind)))) {
18283- memset(x, 0, sizeof(struct PrimitiveKind));
18284- if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18285- if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18286- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18287- x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
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_CreatePrimitiveKind(const struct PrimitiveKind * 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, "PrimitiveKind", x->primitive_kind);
18298+ cJSON_AddNumberToObject(j, "true", x->true_true);
1829918299 }
1830018300 }
1830118301 return j;
1830218302 }
1830318303
18304-char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
18304+char * cJSON_PrintObj5True(const struct Obj5True * x) {
1830518305 char * s = NULL;
1830618306 if (NULL != x) {
18307- cJSON * j = cJSON_CreatePrimitiveKind(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_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1831318313 return s;
1831418314 }
1831518315
18316-void cJSON_DeletePrimitiveKind(struct PrimitiveKind * 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 }
@@ -19694,6 +19694,61 @@ void cJSON_DeleteTimeZone(struct TimeZone * x) {
1969419694 }
1969519695 }
1969619696
19697+struct ToDict * cJSON_ParseToDict(const char * s) {
19698+ struct ToDict * x = NULL;
19699+ if (NULL != s) {
19700+ cJSON * j = cJSON_Parse(s);
19701+ if (NULL != j) {
19702+ x = cJSON_GetToDictValue(j);
19703+ cJSON_Delete(j);
19704+ }
19705+ }
19706+ return x;
19707+}
19708+
19709+struct ToDict * cJSON_GetToDictValue(const cJSON * j) {
19710+ struct ToDict * x = NULL;
19711+ if (NULL != j) {
19712+ if (NULL != (x = cJSON_malloc(sizeof(struct ToDict)))) {
19713+ memset(x, 0, sizeof(struct ToDict));
19714+ if (!cJSON_HasObjectItem(j, "to_dict")) { cJSON_DeleteToDict(x); return NULL; }
19715+ if (cJSON_HasObjectItem(j, "to_dict")) {
19716+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteToDict(x); return NULL; }
19717+ x->to_dict = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
19718+ }
19719+ }
19720+ }
19721+ return x;
19722+}
19723+
19724+cJSON * cJSON_CreateToDict(const struct ToDict * x) {
19725+ cJSON * j = NULL;
19726+ if (NULL != x) {
19727+ if (NULL != (j = cJSON_CreateObject())) {
19728+ cJSON_AddNumberToObject(j, "to_dict", x->to_dict);
19729+ }
19730+ }
19731+ return j;
19732+}
19733+
19734+char * cJSON_PrintToDict(const struct ToDict * x) {
19735+ char * s = NULL;
19736+ if (NULL != x) {
19737+ cJSON * j = cJSON_CreateToDict(x);
19738+ if (NULL != j) {
19739+ s = cJSON_Print(j);
19740+ cJSON_Delete(j);
19741+ }
19742+ }
19743+ return s;
19744+}
19745+
19746+void cJSON_DeleteToDict(struct ToDict * x) {
19747+ if (NULL != x) {
19748+ cJSON_free(x);
19749+ }
19750+}
19751+
1969719752 struct ToJson * cJSON_ParseToJson(const char * s) {
1969819753 struct ToJson * x = NULL;
1969919754 if (NULL != s) {
@@ -20409,61 +20464,6 @@ void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
2040920464 }
2041020465 }
2041120466
20412-struct Ushort * cJSON_ParseUshort(const char * s) {
20413- struct Ushort * x = NULL;
20414- if (NULL != s) {
20415- cJSON * j = cJSON_Parse(s);
20416- if (NULL != j) {
20417- x = cJSON_GetUshortValue(j);
20418- cJSON_Delete(j);
20419- }
20420- }
20421- return x;
20422-}
20423-
20424-struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
20425- struct Ushort * x = NULL;
20426- if (NULL != j) {
20427- if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
20428- memset(x, 0, sizeof(struct Ushort));
20429- if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
20430- if (cJSON_HasObjectItem(j, "ushort")) {
20431- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
20432- x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
20433- }
20434- }
20435- }
20436- return x;
20437-}
20438-
20439-cJSON * cJSON_CreateUshort(const struct Ushort * x) {
20440- cJSON * j = NULL;
20441- if (NULL != x) {
20442- if (NULL != (j = cJSON_CreateObject())) {
20443- cJSON_AddNumberToObject(j, "ushort", x->ushort);
20444- }
20445- }
20446- return j;
20447-}
20448-
20449-char * cJSON_PrintUshort(const struct Ushort * x) {
20450- char * s = NULL;
20451- if (NULL != x) {
20452- cJSON * j = cJSON_CreateUshort(x);
20453- if (NULL != j) {
20454- s = cJSON_Print(j);
20455- cJSON_Delete(j);
20456- }
20457- }
20458- return s;
20459-}
20460-
20461-void cJSON_DeleteUshort(struct Ushort * 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) {
@@ -20624,12 +20624,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2062420624 x->obj5_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
2062520625 if (NULL == x->obj5_union) { cJSON_DeleteObj5(x); return NULL; }
2062620626 }
20627- if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj5(x); return NULL; }
20628- if (cJSON_HasObjectItem(j, "unsigned")) {
20629- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj5(x); return NULL; }
20630- x->obj5_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
20631- if (NULL == x->obj5_unsigned) { cJSON_DeleteObj5(x); return NULL; }
20632- }
2063320627 if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; }
2063420628 if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
2063520629 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20642,6 +20636,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
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; }
@@ -20786,6 +20786,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2078620786 x->time_zone = cJSON_GetTimeZoneValue(cJSON_GetObjectItemCaseSensitive(j, "TimeZone"));
2078720787 if (NULL == x->time_zone) { cJSON_DeleteObj5(x); return NULL; }
2078820788 }
20789+ if (!cJSON_HasObjectItem(j, "to_dict")) { cJSON_DeleteObj5(x); return NULL; }
20790+ if (cJSON_HasObjectItem(j, "to_dict")) {
20791+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteObj5(x); return NULL; }
20792+ x->to_dict = cJSON_GetToDictValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
20793+ if (NULL == x->to_dict) { cJSON_DeleteObj5(x); return NULL; }
20794+ }
2078920795 if (!cJSON_HasObjectItem(j, "to_json")) { cJSON_DeleteObj5(x); return NULL; }
2079020796 if (cJSON_HasObjectItem(j, "to_json")) {
2079120797 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->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
2086520871 if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; }
2086620872 }
20867- if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj5(x); return NULL; }
20868- if (cJSON_HasObjectItem(j, "ushort")) {
20869- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj5(x); return NULL; }
20870- x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
20871- if (NULL == x->ushort) { cJSON_DeleteObj5(x); return NULL; }
20872- }
2087320873 }
2087420874 }
2087520875 return x;
@@ -20903,9 +20903,9 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2090320903 cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj5_typename));
2090420904 cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof));
2090520905 cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
20906- cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned));
2090720906 cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind));
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, "SerialDescriptor", cJSON_CreateSerialDescriptor(x->serial_descriptor));
@@ -20930,6 +20930,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2093020930 cJSON_AddItemToObject(j, "TimeOnly", cJSON_CreateTimeOnly(x->time_only));
2093120931 cJSON_AddItemToObject(j, "TimeOnlyConverter", cJSON_CreateTimeOnlyConverter(x->time_only_converter));
2093220932 cJSON_AddItemToObject(j, "TimeZone", cJSON_CreateTimeZone(x->time_zone));
20933+ cJSON_AddItemToObject(j, "to_dict", cJSON_CreateToDict(x->to_dict));
2093320934 cJSON_AddItemToObject(j, "to_json", cJSON_CreateToJson(x->to_json));
2093420935 cJSON_AddItemToObject(j, "toString", cJSON_CreateToString(x->to_string));
2093520936 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, "unowned", cJSON_CreateUnowned(x->unowned));
2094420945 cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
2094520946 cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers));
20946- cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2094720947 }
2094820948 }
2094920949 return j;
@@ -21032,15 +21032,15 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103221032 if (NULL != x->obj5_union) {
2103321033 cJSON_DeleteUnion(x->obj5_union);
2103421034 }
21035- if (NULL != x->obj5_unsigned) {
21036- cJSON_DeleteUnsigned(x->obj5_unsigned);
21037- }
2103821035 if (NULL != x->primitive_kind) {
2103921036 cJSON_DeletePrimitiveKind(x->primitive_kind);
2104021037 }
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 }
@@ -21113,6 +21113,9 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2111321113 if (NULL != x->time_zone) {
2111421114 cJSON_DeleteTimeZone(x->time_zone);
2111521115 }
21116+ if (NULL != x->to_dict) {
21117+ cJSON_DeleteToDict(x->to_dict);
21118+ }
2111621119 if (NULL != x->to_json) {
2111721120 cJSON_DeleteToJson(x->to_json);
2111821121 }
@@ -21152,9 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2115221155 if (NULL != x->use_serializers) {
2115321156 cJSON_DeleteUseSerializers(x->use_serializers);
2115421157 }
21155- if (NULL != x->ushort) {
21156- cJSON_DeleteUshort(x->ushort);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Unsigned * cJSON_ParseUnsigned(const char * s) {
21163+ struct Unsigned * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetUnsignedValue(j);
21168+ cJSON_Delete(j);
21169+ }
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) {
21175+ struct Unsigned * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) {
21178+ memset(x, 0, sizeof(struct Unsigned));
21179+ if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "unsigned")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; }
21182+ x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
21183+ }
21184+ }
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned);
21194+ }
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintUnsigned(const struct Unsigned * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateUnsigned(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
2115721206 }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteUnsigned(struct Unsigned * x) {
21212+ if (NULL != x) {
2115821213 cJSON_free(x);
2115921214 }
2116021215 }
@@ -21599,6 +21654,61 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2159921654 }
2160021655 }
2160121656
21657+struct Ushort * cJSON_ParseUshort(const char * s) {
21658+ struct Ushort * x = NULL;
21659+ if (NULL != s) {
21660+ cJSON * j = cJSON_Parse(s);
21661+ if (NULL != j) {
21662+ x = cJSON_GetUshortValue(j);
21663+ cJSON_Delete(j);
21664+ }
21665+ }
21666+ return x;
21667+}
21668+
21669+struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
21670+ struct Ushort * x = NULL;
21671+ if (NULL != j) {
21672+ if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
21673+ memset(x, 0, sizeof(struct Ushort));
21674+ if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
21675+ if (cJSON_HasObjectItem(j, "ushort")) {
21676+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
21677+ x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
21678+ }
21679+ }
21680+ }
21681+ return x;
21682+}
21683+
21684+cJSON * cJSON_CreateUshort(const struct Ushort * x) {
21685+ cJSON * j = NULL;
21686+ if (NULL != x) {
21687+ if (NULL != (j = cJSON_CreateObject())) {
21688+ cJSON_AddNumberToObject(j, "ushort", x->ushort);
21689+ }
21690+ }
21691+ return j;
21692+}
21693+
21694+char * cJSON_PrintUshort(const struct Ushort * x) {
21695+ char * s = NULL;
21696+ if (NULL != x) {
21697+ cJSON * j = cJSON_CreateUshort(x);
21698+ if (NULL != j) {
21699+ s = cJSON_Print(j);
21700+ cJSON_Delete(j);
21701+ }
21702+ }
21703+ return s;
21704+}
21705+
21706+void cJSON_DeleteUshort(struct Ushort * x) {
21707+ if (NULL != x) {
21708+ cJSON_free(x);
21709+ }
21710+}
21711+
2160221712 struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s) {
2160321713 struct Utf8JsonReader * x = NULL;
2160421714 if (NULL != s) {
@@ -22171,6 +22281,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2217122281 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2217222282 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2217322283 }
22284+ if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj6(x); return NULL; }
22285+ if (cJSON_HasObjectItem(j, "unsigned")) {
22286+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj6(x); return NULL; }
22287+ x->obj6_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
22288+ if (NULL == x->obj6_unsigned) { cJSON_DeleteObj6(x); return NULL; }
22289+ }
2217422290 if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteObj6(x); return NULL; }
2217522291 if (cJSON_HasObjectItem(j, "using")) {
2217622292 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22219,6 +22335,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2221922335 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2222022336 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2222122337 }
22338+ if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj6(x); return NULL; }
22339+ if (cJSON_HasObjectItem(j, "ushort")) {
22340+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj6(x); return NULL; }
22341+ x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
22342+ if (NULL == x->ushort) { cJSON_DeleteObj6(x); return NULL; }
22343+ }
2222222344 if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteObj6(x); return NULL; }
2222322345 if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
2222422346 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22289,6 +22411,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2228922411 if (NULL != x) {
2229022412 if (NULL != (j = cJSON_CreateObject())) {
2229122413 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22414+ cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj6_unsigned));
2229222415 cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using));
2229322416 cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
2229422417 cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void));
@@ -22297,6 +22420,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2229722420 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2229822421 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2229922422 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22423+ cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2230022424 cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
2230122425 cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
2230222426 cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
@@ -22326,6 +22450,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2232622450
2232722451 void cJSON_DeleteObj6(struct Obj6 * x) {
2232822452 if (NULL != x) {
22453+ if (NULL != x->obj6_unsigned) {
22454+ cJSON_DeleteUnsigned(x->obj6_unsigned);
22455+ }
2232922456 if (NULL != x->obj6_using) {
2233022457 cJSON_DeleteUsing(x->obj6_using);
2233122458 }
@@ -22350,6 +22477,9 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2235022477 if (NULL != x->obj6_xor_eq) {
2235122478 cJSON_DeleteXorEq(x->obj6_xor_eq);
2235222479 }
22480+ if (NULL != x->ushort) {
22481+ cJSON_DeleteUshort(x->ushort);
22482+ }
2235322483 if (NULL != x->utf8_json_reader) {
2235422484 cJSON_DeleteUtf8JsonReader(x->utf8_json_reader);
2235522485 }
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 KSerializer {
@@ -1441,10 +1441,6 @@ struct Union {
14411441 int64_t union_union;
14421442 };
14431443
1444-struct Unsigned {
1445- int64_t unsigned_unsigned;
1446-};
1447-
14481444 struct PrimitiveKind {
14491445 int64_t primitive_kind;
14501446 };
@@ -1453,6 +1449,10 @@ 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 };
@@ -1549,6 +1549,10 @@ struct TimeZone {
15491549 int64_t time_zone;
15501550 };
15511551
1552+struct ToDict {
1553+ int64_t to_dict;
1554+};
1555+
15521556 struct ToJson {
15531557 int64_t to_json;
15541558 };
@@ -1601,10 +1605,6 @@ struct UseSerializers {
16011605 int64_t use_serializers;
16021606 };
16031607
1604-struct Ushort {
1605- int64_t ushort;
1606-};
1607-
16081608 struct Obj5 {
16091609 int64_t dummy;
16101610 struct KSerializer * k_serializer;
@@ -1630,9 +1630,9 @@ struct Obj5 {
16301630 struct Typename * obj5_typename;
16311631 struct Typeof * obj5_typeof;
16321632 struct Union * obj5_union;
1633- struct Unsigned * obj5_unsigned;
16341633 struct PrimitiveKind * primitive_kind;
16351634 struct Obj5True * purple_true;
1635+ struct Select * select;
16361636 struct Self * self;
16371637 struct Sendable * sendable;
16381638 struct SerialDescriptor * serial_descriptor;
@@ -1657,6 +1657,7 @@ struct Obj5 {
16571657 struct TimeOnly * time_only;
16581658 struct TimeOnlyConverter * time_only_converter;
16591659 struct TimeZone * time_zone;
1660+ struct ToDict * to_dict;
16601661 struct ToJson * to_json;
16611662 struct ToString * to_string;
16621663 struct TopLevelClass * top_level;
@@ -1670,7 +1671,10 @@ struct Obj5 {
16701671 struct Unowned * unowned;
16711672 struct Unsafe * unsafe;
16721673 struct UseSerializers * use_serializers;
1673- struct Ushort * ushort;
1674+};
1675+
1676+struct Unsigned {
1677+ int64_t unsigned_unsigned;
16741678 };
16751679
16761680 struct Using {
@@ -1705,6 +1709,10 @@ struct XorEq {
17051709 int64_t xor_eq_xor_eq;
17061710 };
17071711
1712+struct Ushort {
1713+ int64_t ushort;
1714+};
1715+
17081716 struct Utf8JsonReader {
17091717 int64_t utf8_json_reader;
17101718 };
@@ -1747,6 +1755,7 @@ struct Yield {
17471755
17481756 struct Obj6 {
17491757 int64_t dummy;
1758+ struct Unsigned * obj6_unsigned;
17501759 struct Using * obj6_using;
17511760 struct Virtual * obj6_virtual;
17521761 struct Void * obj6_void;
@@ -1755,6 +1764,7 @@ struct Obj6 {
17551764 struct While * obj6_while;
17561765 struct Xor * obj6_xor;
17571766 struct XorEq * obj6_xor_eq;
1767+ struct Ushort * ushort;
17581768 struct Utf8JsonReader * utf8_json_reader;
17591769 struct Utf8JsonWriter * utf8_json_writer;
17601770 struct Uuid * uuid;
@@ -2410,6 +2420,12 @@ cJSON * cJSON_CreateFrom(const struct From * x);
24102420 char * cJSON_PrintFrom(const struct From * x);
24112421 void cJSON_DeleteFrom(struct From * x);
24122422
2423+struct FromDict * cJSON_ParseFromDict(const char * s);
2424+struct FromDict * cJSON_GetFromDictValue(const cJSON * j);
2425+cJSON * cJSON_CreateFromDict(const struct FromDict * x);
2426+char * cJSON_PrintFromDict(const struct FromDict * x);
2427+void cJSON_DeleteFromDict(struct FromDict * x);
2428+
24132429 struct FromJson * cJSON_ParseFromJson(const char * s);
24142430 struct FromJson * cJSON_GetFromJsonValue(const cJSON * j);
24152431 cJSON * cJSON_CreateFromJson(const struct FromJson * x);
@@ -2542,12 +2558,6 @@ cJSON * cJSON_CreateFriend(const struct Friend * x);
25422558 char * cJSON_PrintFriend(const struct Friend * x);
25432559 void cJSON_DeleteFriend(struct Friend * x);
25442560
2545-struct Goto * cJSON_ParseGoto(const char * s);
2546-struct Goto * cJSON_GetGotoValue(const cJSON * j);
2547-cJSON * cJSON_CreateGoto(const struct Goto * x);
2548-char * cJSON_PrintGoto(const struct Goto * x);
2549-void cJSON_DeleteGoto(struct Goto * x);
2550-
25512561 struct Obj2False * cJSON_ParseObj2False(const char * s);
25522562 struct Obj2False * cJSON_GetObj2FalseValue(const cJSON * j);
25532563 cJSON * cJSON_CreateObj2False(const struct Obj2False * x);
@@ -2884,6 +2894,12 @@ cJSON * cJSON_CreateNo(const struct No * x);
28842894 char * cJSON_PrintNo(const struct No * x);
28852895 void cJSON_DeleteNo(struct No * x);
28862896
2897+struct Goto * cJSON_ParseGoto(const char * s);
2898+struct Goto * cJSON_GetGotoValue(const cJSON * j);
2899+cJSON * cJSON_CreateGoto(const struct Goto * x);
2900+char * cJSON_PrintGoto(const struct Goto * x);
2901+void cJSON_DeleteGoto(struct Goto * x);
2902+
28872903 struct If * cJSON_ParseIf(const char * s);
28882904 struct If * cJSON_GetIfValue(const cJSON * j);
28892905 cJSON * cJSON_CreateIf(const struct If * x);
@@ -2938,12 +2954,6 @@ cJSON * cJSON_CreateNew(const struct New * x);
29382954 char * cJSON_PrintNew(const struct New * x);
29392955 void cJSON_DeleteNew(struct New * x);
29402956
2941-struct Noexcept * cJSON_ParseNoexcept(const char * s);
2942-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
2943-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
2944-char * cJSON_PrintNoexcept(const struct Noexcept * x);
2945-void cJSON_DeleteNoexcept(struct Noexcept * x);
2946-
29472957 struct Obj3 * cJSON_ParseObj3(const char * s);
29482958 struct Obj3 * cJSON_GetObj3Value(const cJSON * j);
29492959 cJSON * cJSON_CreateObj3(const struct Obj3 * x);
@@ -3010,6 +3020,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x);
30103020 char * cJSON_PrintNumberClass(const struct NumberClass * x);
30113021 void cJSON_DeleteNumberClass(struct NumberClass * x);
30123022
3023+struct Noexcept * cJSON_ParseNoexcept(const char * s);
3024+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
3025+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
3026+char * cJSON_PrintNoexcept(const struct Noexcept * x);
3027+void cJSON_DeleteNoexcept(struct Noexcept * x);
3028+
30133029 struct NoneClass * cJSON_ParseNoneClass(const char * s);
30143030 struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j);
30153031 cJSON * cJSON_CreateNoneClass(const struct NoneClass * x);
@@ -3328,12 +3344,6 @@ cJSON * cJSON_CreateSel(const struct Sel * x);
33283344 char * cJSON_PrintSel(const struct Sel * x);
33293345 void cJSON_DeleteSel(struct Sel * x);
33303346
3331-struct Select * cJSON_ParseSelect(const char * s);
3332-struct Select * cJSON_GetSelectValue(const cJSON * j);
3333-cJSON * cJSON_CreateSelect(const struct Select * x);
3334-char * cJSON_PrintSelect(const struct Select * x);
3335-void cJSON_DeleteSelect(struct Select * x);
3336-
33373347 struct Obj4 * cJSON_ParseObj4(const char * s);
33383348 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
33393349 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3478,12 +3488,6 @@ cJSON * cJSON_CreateUnion(const struct Union * x);
34783488 char * cJSON_PrintUnion(const struct Union * x);
34793489 void cJSON_DeleteUnion(struct Union * x);
34803490
3481-struct Unsigned * cJSON_ParseUnsigned(const char * s);
3482-struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j);
3483-cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
3484-char * cJSON_PrintUnsigned(const struct Unsigned * x);
3485-void cJSON_DeleteUnsigned(struct Unsigned * x);
3486-
34873491 struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
34883492 struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
34893493 cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
@@ -3496,6 +3500,12 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
34963500 char * cJSON_PrintObj5True(const struct Obj5True * x);
34973501 void cJSON_DeleteObj5True(struct Obj5True * x);
34983502
3503+struct Select * cJSON_ParseSelect(const char * s);
3504+struct Select * cJSON_GetSelectValue(const cJSON * j);
3505+cJSON * cJSON_CreateSelect(const struct Select * x);
3506+char * cJSON_PrintSelect(const struct Select * x);
3507+void cJSON_DeleteSelect(struct Select * x);
3508+
34993509 struct Self * cJSON_ParseSelf(const char * s);
35003510 struct Self * cJSON_GetSelfValue(const cJSON * j);
35013511 cJSON * cJSON_CreateSelf(const struct Self * x);
@@ -3640,6 +3650,12 @@ cJSON * cJSON_CreateTimeZone(const struct TimeZone * x);
36403650 char * cJSON_PrintTimeZone(const struct TimeZone * x);
36413651 void cJSON_DeleteTimeZone(struct TimeZone * x);
36423652
3653+struct ToDict * cJSON_ParseToDict(const char * s);
3654+struct ToDict * cJSON_GetToDictValue(const cJSON * j);
3655+cJSON * cJSON_CreateToDict(const struct ToDict * x);
3656+char * cJSON_PrintToDict(const struct ToDict * x);
3657+void cJSON_DeleteToDict(struct ToDict * x);
3658+
36433659 struct ToJson * cJSON_ParseToJson(const char * s);
36443660 struct ToJson * cJSON_GetToJsonValue(const cJSON * j);
36453661 cJSON * cJSON_CreateToJson(const struct ToJson * x);
@@ -3718,18 +3734,18 @@ cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
37183734 char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
37193735 void cJSON_DeleteUseSerializers(struct UseSerializers * x);
37203736
3721-struct Ushort * cJSON_ParseUshort(const char * s);
3722-struct Ushort * cJSON_GetUshortValue(const cJSON * j);
3723-cJSON * cJSON_CreateUshort(const struct Ushort * x);
3724-char * cJSON_PrintUshort(const struct Ushort * x);
3725-void cJSON_DeleteUshort(struct Ushort * x);
3726-
37273737 struct Obj5 * cJSON_ParseObj5(const char * s);
37283738 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
37293739 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37303740 char * cJSON_PrintObj5(const struct Obj5 * x);
37313741 void cJSON_DeleteObj5(struct Obj5 * x);
37323742
3743+struct Unsigned * cJSON_ParseUnsigned(const char * s);
3744+struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j);
3745+cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
3746+char * cJSON_PrintUnsigned(const struct Unsigned * x);
3747+void cJSON_DeleteUnsigned(struct Unsigned * x);
3748+
37333749 struct Using * cJSON_ParseUsing(const char * s);
37343750 struct Using * cJSON_GetUsingValue(const cJSON * j);
37353751 cJSON * cJSON_CreateUsing(const struct Using * x);
@@ -3778,6 +3794,12 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
37783794 char * cJSON_PrintXorEq(const struct XorEq * x);
37793795 void cJSON_DeleteXorEq(struct XorEq * x);
37803796
3797+struct Ushort * cJSON_ParseUshort(const char * s);
3798+struct Ushort * cJSON_GetUshortValue(const cJSON * j);
3799+cJSON * cJSON_CreateUshort(const struct Ushort * x);
3800+char * cJSON_PrintUshort(const struct Ushort * x);
3801+void cJSON_DeleteUshort(struct Ushort * x);
3802+
37813803 struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s);
37823804 struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j);
37833805 cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x);
Mcplusplusdefault / quicktype.hpp+244 −174
@@ -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 KSerializer {
@@ -5261,20 +5261,6 @@ namespace quicktype {
52615261 void set_union_union(const int64_t & value) { this->union_union = value; }
52625262 };
52635263
5264- class Unsigned {
5265- public:
5266- Unsigned() = default;
5267- virtual ~Unsigned() = default;
5268-
5269- private:
5270- int64_t unsigned_unsigned;
5271-
5272- public:
5273- const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; }
5274- int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; }
5275- void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; }
5276- };
5277-
52785264 class PrimitiveKind {
52795265 public:
52805266 PrimitiveKind() = 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;
@@ -5639,6 +5639,20 @@ namespace quicktype {
56395639 void set_time_zone(const int64_t & value) { this->time_zone = value; }
56405640 };
56415641
5642+ class ToDict {
5643+ public:
5644+ ToDict() = default;
5645+ virtual ~ToDict() = default;
5646+
5647+ private:
5648+ int64_t to_dict;
5649+
5650+ public:
5651+ const int64_t & get_to_dict() const { return to_dict; }
5652+ int64_t & get_mutable_to_dict() { return to_dict; }
5653+ void set_to_dict(const int64_t & value) { this->to_dict = value; }
5654+ };
5655+
56425656 class ToJson {
56435657 public:
56445658 ToJson() = default;
@@ -5835,20 +5849,6 @@ namespace quicktype {
58355849 void set_use_serializers(const int64_t & value) { this->use_serializers = value; }
58365850 };
58375851
5838- class Ushort {
5839- public:
5840- Ushort() = default;
5841- virtual ~Ushort() = default;
5842-
5843- private:
5844- int64_t ushort;
5845-
5846- public:
5847- const int64_t & get_ushort() const { return ushort; }
5848- int64_t & get_mutable_ushort() { return ushort; }
5849- void set_ushort(const int64_t & value) { this->ushort = value; }
5850- };
5851-
58525852 class Obj5 {
58535853 public:
58545854 Obj5() = default;
@@ -5878,9 +5878,9 @@ namespace quicktype {
58785878 Typeid obj5_typeid;
58795879 Typename obj5_typename;
58805880 Union obj5_union;
5881- Unsigned obj5_unsigned;
58825881 PrimitiveKind primitive_kind;
58835882 TrueClass purple_true;
5883+ Select select;
58845884 Self self;
58855885 Sendable sendable;
58865886 SerialDescriptor serial_descriptor;
@@ -5905,6 +5905,7 @@ namespace quicktype {
59055905 TimeOnly time_only;
59065906 TimeOnlyConverter time_only_converter;
59075907 TimeZone time_zone;
5908+ ToDict to_dict;
59085909 ToJson to_json;
59095910 ToString to_string;
59105911 TopLevelClass top_level;
@@ -5919,7 +5920,6 @@ namespace quicktype {
59195920 Unowned unowned;
59205921 Unsafe unsafe;
59215922 UseSerializers use_serializers;
5922- Ushort ushort;
59235923
59245924 public:
59255925 const int64_t & get_dummy() const { return dummy; }
@@ -6014,10 +6014,6 @@ namespace quicktype {
60146014 Union & get_mutable_obj5_union() { return obj5_union; }
60156015 void set_obj5_union(const Union & value) { this->obj5_union = value; }
60166016
6017- const Unsigned & get_obj5_unsigned() const { return obj5_unsigned; }
6018- Unsigned & get_mutable_obj5_unsigned() { return obj5_unsigned; }
6019- void set_obj5_unsigned(const Unsigned & value) { this->obj5_unsigned = value; }
6020-
60216017 const PrimitiveKind & get_primitive_kind() const { return primitive_kind; }
60226018 PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; }
60236019 void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; }
@@ -6026,6 +6022,10 @@ namespace quicktype {
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; }
@@ -6122,6 +6122,10 @@ namespace quicktype {
61226122 TimeZone & get_mutable_time_zone() { return time_zone; }
61236123 void set_time_zone(const TimeZone & value) { this->time_zone = value; }
61246124
6125+ const ToDict & get_to_dict() const { return to_dict; }
6126+ ToDict & get_mutable_to_dict() { return to_dict; }
6127+ void set_to_dict(const ToDict & value) { this->to_dict = value; }
6128+
61256129 const ToJson & get_to_json() const { return to_json; }
61266130 ToJson & get_mutable_to_json() { return to_json; }
61276131 void set_to_json(const ToJson & value) { this->to_json = value; }
@@ -6177,10 +6181,20 @@ namespace quicktype {
61776181 const UseSerializers & get_use_serializers() const { return use_serializers; }
61786182 UseSerializers & get_mutable_use_serializers() { return use_serializers; }
61796183 void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; }
6184+ };
61806185
6181- const Ushort & get_ushort() const { return ushort; }
6182- Ushort & get_mutable_ushort() { return ushort; }
6183- void set_ushort(const Ushort & value) { this->ushort = value; }
6186+ class Unsigned {
6187+ public:
6188+ Unsigned() = default;
6189+ virtual ~Unsigned() = default;
6190+
6191+ private:
6192+ int64_t unsigned_unsigned;
6193+
6194+ public:
6195+ const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; }
6196+ int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; }
6197+ void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; }
61846198 };
61856199
61866200 class Using {
@@ -6295,6 +6309,20 @@ namespace quicktype {
62956309 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
62966310 };
62976311
6312+ class Ushort {
6313+ public:
6314+ Ushort() = default;
6315+ virtual ~Ushort() = default;
6316+
6317+ private:
6318+ int64_t ushort;
6319+
6320+ public:
6321+ const int64_t & get_ushort() const { return ushort; }
6322+ int64_t & get_mutable_ushort() { return ushort; }
6323+ void set_ushort(const int64_t & value) { this->ushort = value; }
6324+ };
6325+
62986326 class Utf8JsonReader {
62996327 public:
63006328 Utf8JsonReader() = default;
@@ -6442,6 +6470,7 @@ namespace quicktype {
64426470
64436471 private:
64446472 int64_t dummy;
6473+ Unsigned obj6_unsigned;
64456474 Using obj6_using;
64466475 Virtual obj6_virtual;
64476476 Void obj6_void;
@@ -6450,6 +6479,7 @@ namespace quicktype {
64506479 While obj6_while;
64516480 Xor obj6_xor;
64526481 XorEq obj6_xor_eq;
6482+ Ushort ushort;
64536483 Utf8JsonReader utf8_json_reader;
64546484 Utf8JsonWriter utf8_json_writer;
64556485 Uuid uuid;
@@ -6466,6 +6496,10 @@ namespace quicktype {
64666496 int64_t & get_mutable_dummy() { return dummy; }
64676497 void set_dummy(const int64_t & value) { this->dummy = value; }
64686498
6499+ const Unsigned & get_obj6_unsigned() const { return obj6_unsigned; }
6500+ Unsigned & get_mutable_obj6_unsigned() { return obj6_unsigned; }
6501+ void set_obj6_unsigned(const Unsigned & value) { this->obj6_unsigned = value; }
6502+
64696503 const Using & get_obj6_using() const { return obj6_using; }
64706504 Using & get_mutable_obj6_using() { return obj6_using; }
64716505 void set_obj6_using(const Using & value) { this->obj6_using = value; }
@@ -6498,6 +6532,10 @@ namespace quicktype {
64986532 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
64996533 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
65006534
6535+ const Ushort & get_ushort() const { return ushort; }
6536+ Ushort & get_mutable_ushort() { return ushort; }
6537+ void set_ushort(const Ushort & value) { this->ushort = value; }
6538+
65016539 const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; }
65026540 Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; }
65036541 void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; }
@@ -6900,6 +6938,9 @@ namespace quicktype {
69006938 void from_json(const json & j, From & x);
69016939 void to_json(json & j, const From & x);
69026940
6941+ void from_json(const json & j, FromDict & x);
6942+ void to_json(json & j, const FromDict & x);
6943+
69036944 void from_json(const json & j, FromJson & x);
69046945 void to_json(json & j, const FromJson & x);
69056946
@@ -6966,9 +7007,6 @@ namespace quicktype {
69667007 void from_json(const json & j, Friend & x);
69677008 void to_json(json & j, const Friend & x);
69687009
6969- void from_json(const json & j, Goto & x);
6970- void to_json(json & j, const Goto & x);
6971-
69727010 void from_json(const json & j, FalseClass & x);
69737011 void to_json(json & j, const FalseClass & x);
69747012
@@ -7137,6 +7175,9 @@ namespace quicktype {
71377175 void from_json(const json & j, No & x);
71387176 void to_json(json & j, const No & x);
71397177
7178+ void from_json(const json & j, Goto & x);
7179+ void to_json(json & j, const Goto & x);
7180+
71407181 void from_json(const json & j, If & x);
71417182 void to_json(json & j, const If & x);
71427183
@@ -7164,9 +7205,6 @@ namespace quicktype {
71647205 void from_json(const json & j, New & x);
71657206 void to_json(json & j, const New & x);
71667207
7167- void from_json(const json & j, Noexcept & x);
7168- void to_json(json & j, const Noexcept & x);
7169-
71707208 void from_json(const json & j, Obj3 & x);
71717209 void to_json(json & j, const Obj3 & x);
71727210
@@ -7200,6 +7238,9 @@ namespace quicktype {
72007238 void from_json(const json & j, Number & x);
72017239 void to_json(json & j, const Number & x);
72027240
7241+ void from_json(const json & j, Noexcept & x);
7242+ void to_json(json & j, const Noexcept & x);
7243+
72037244 void from_json(const json & j, NoneClass & x);
72047245 void to_json(json & j, const NoneClass & x);
72057246
@@ -7359,9 +7400,6 @@ namespace quicktype {
73597400 void from_json(const json & j, Sel & x);
73607401 void to_json(json & j, const Sel & x);
73617402
7362- void from_json(const json & j, Select & x);
7363- void to_json(json & j, const Select & x);
7364-
73657403 void from_json(const json & j, Obj4 & x);
73667404 void to_json(json & j, const Obj4 & x);
73677405
@@ -7431,15 +7469,15 @@ namespace quicktype {
74317469 void from_json(const json & j, Union & x);
74327470 void to_json(json & j, const Union & x);
74337471
7434- void from_json(const json & j, Unsigned & x);
7435- void to_json(json & j, const Unsigned & x);
7436-
74377472 void from_json(const json & j, PrimitiveKind & x);
74387473 void to_json(json & j, const PrimitiveKind & x);
74397474
74407475 void from_json(const json & j, TrueClass & x);
74417476 void to_json(json & j, const TrueClass & x);
74427477
7478+ void from_json(const json & j, Select & x);
7479+ void to_json(json & j, const Select & x);
7480+
74437481 void from_json(const json & j, Self & x);
74447482 void to_json(json & j, const Self & x);
74457483
@@ -7512,6 +7550,9 @@ namespace quicktype {
75127550 void from_json(const json & j, TimeZone & x);
75137551 void to_json(json & j, const TimeZone & x);
75147552
7553+ void from_json(const json & j, ToDict & x);
7554+ void to_json(json & j, const ToDict & x);
7555+
75157556 void from_json(const json & j, ToJson & x);
75167557 void to_json(json & j, const ToJson & x);
75177558
@@ -7554,12 +7595,12 @@ namespace quicktype {
75547595 void from_json(const json & j, UseSerializers & x);
75557596 void to_json(json & j, const UseSerializers & x);
75567597
7557- void from_json(const json & j, Ushort & x);
7558- void to_json(json & j, const Ushort & x);
7559-
75607598 void from_json(const json & j, Obj5 & x);
75617599 void to_json(json & j, const Obj5 & x);
75627600
7601+ void from_json(const json & j, Unsigned & x);
7602+ void to_json(json & j, const Unsigned & x);
7603+
75637604 void from_json(const json & j, Using & x);
75647605 void to_json(json & j, const Using & x);
75657606
@@ -7584,6 +7625,9 @@ namespace quicktype {
75847625 void from_json(const json & j, XorEq & x);
75857626 void to_json(json & j, const XorEq & x);
75867627
7628+ void from_json(const json & j, Ushort & x);
7629+ void to_json(json & j, const Ushort & x);
7630+
75877631 void from_json(const json & j, Utf8JsonReader & x);
75887632 void to_json(json & j, const Utf8JsonReader & x);
75897633
@@ -8905,6 +8949,17 @@ namespace quicktype {
89058949 j["from"] = x.get_from();
89068950 }
89078951
8952+ inline void from_json(const json & j, FromDict& x) {
8953+ if (!j.is_object()) throw std::runtime_error("Expected object");
8954+ if (j.find("from_dict") != j.end() && !j.at("from_dict").is_number_integer()) throw std::runtime_error("Expected integer");
8955+ x.set_from_dict(j.at("from_dict").get<int64_t>());
8956+ }
8957+
8958+ inline void to_json(json & j, const FromDict & x) {
8959+ j = json::object();
8960+ j["from_dict"] = x.get_from_dict();
8961+ }
8962+
89088963 inline void from_json(const json & j, FromJson& x) {
89098964 if (!j.is_object()) throw std::runtime_error("Expected object");
89108965 if (j.find("from_json") != j.end() && !j.at("from_json").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9147,17 +9202,6 @@ namespace quicktype {
91479202 j["friend"] = x.get_friend_friend();
91489203 }
91499204
9150- inline void from_json(const json & j, Goto& x) {
9151- if (!j.is_object()) throw std::runtime_error("Expected object");
9152- if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
9153- x.set_goto_goto(j.at("goto").get<int64_t>());
9154- }
9155-
9156- inline void to_json(json & j, const Goto & x) {
9157- j = json::object();
9158- j["goto"] = x.get_goto_goto();
9159- }
9160-
91619205 inline void from_json(const json & j, FalseClass& x) {
91629206 if (!j.is_object()) throw std::runtime_error("Expected object");
91639207 if (j.find("false") != j.end() && !j.at("false").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9213,6 +9257,7 @@ namespace quicktype {
92139257 x.set_foreach(j.at("foreach").get<Foreach>());
92149258 x.set_format_exception(j.at("FormatException").get<FormatException>());
92159259 x.set_from(j.at("from").get<From>());
9260+ x.set_from_dict(j.at("from_dict").get<FromDict>());
92169261 x.set_from_json(j.at("from_json").get<FromJson>());
92179262 x.set_func(j.at("func").get<Func>());
92189263 x.set_function(j.at("function").get<Function>());
@@ -9235,7 +9280,6 @@ namespace quicktype {
92359280 x.set_obj2_float(j.at("float").get<Float>());
92369281 x.set_obj2_for(j.at("for").get<For>());
92379282 x.set_obj2_friend(j.at("friend").get<Friend>());
9238- x.set_obj2_goto(j.at("goto").get<Goto>());
92399283 x.set_purple_false(j.at("false").get<FalseClass>());
92409284 }
92419285
@@ -9282,6 +9326,7 @@ namespace quicktype {
92829326 j["foreach"] = x.get_foreach();
92839327 j["FormatException"] = x.get_format_exception();
92849328 j["from"] = x.get_from();
9329+ j["from_dict"] = x.get_from_dict();
92859330 j["from_json"] = x.get_from_json();
92869331 j["func"] = x.get_func();
92879332 j["function"] = x.get_function();
@@ -9304,7 +9349,6 @@ namespace quicktype {
93049349 j["float"] = x.get_obj2_float();
93059350 j["for"] = x.get_obj2_for();
93069351 j["friend"] = x.get_obj2_friend();
9307- j["goto"] = x.get_obj2_goto();
93089352 j["false"] = x.get_purple_false();
93099353 }
93109354
@@ -9901,6 +9945,17 @@ namespace quicktype {
99019945 j["NO"] = x.get_no();
99029946 }
99039947
9948+ inline void from_json(const json & j, Goto& x) {
9949+ if (!j.is_object()) throw std::runtime_error("Expected object");
9950+ if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
9951+ x.set_goto_goto(j.at("goto").get<int64_t>());
9952+ }
9953+
9954+ inline void to_json(json & j, const Goto & x) {
9955+ j = json::object();
9956+ j["goto"] = x.get_goto_goto();
9957+ }
9958+
99049959 inline void from_json(const json & j, If& x) {
99059960 if (!j.is_object()) throw std::runtime_error("Expected object");
99069961 if (j.find("if") != j.end() && !j.at("if").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10000,17 +10055,6 @@ namespace quicktype {
1000010055 j["new"] = x.get_new_new();
1000110056 }
1000210057
10003- inline void from_json(const json & j, Noexcept& x) {
10004- if (!j.is_object()) throw std::runtime_error("Expected object");
10005- if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10006- x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10007- }
10008-
10009- inline void to_json(json & j, const Noexcept & x) {
10010- j = json::object();
10011- j["noexcept"] = x.get_noexcept_noexcept();
10012- }
10013-
1001410058 inline void from_json(const json & j, Obj3& x) {
1001510059 if (!j.is_object()) throw std::runtime_error("Expected object");
1001610060 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10069,6 +10113,7 @@ namespace quicktype {
1006910113 x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>());
1007010114 x.set_nil(j.at("nil").get<Nil>());
1007110115 x.set_no(j.at("NO").get<No>());
10116+ x.set_obj3_goto(j.at("goto").get<Goto>());
1007210117 x.set_obj3_if(j.at("if").get<If>());
1007310118 x.set_obj3_import(j.at("import").get<Import>());
1007410119 x.set_obj3_inline(j.at("inline").get<Inline>());
@@ -10078,7 +10123,6 @@ namespace quicktype {
1007810123 x.set_obj3_mutable(j.at("mutable").get<Mutable>());
1007910124 x.set_obj3_namespace(j.at("namespace").get<Namespace>());
1008010125 x.set_obj3_new(j.at("new").get<New>());
10081- x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>());
1008210126 }
1008310127
1008410128 inline void to_json(json & j, const Obj3 & x) {
@@ -10138,6 +10182,7 @@ namespace quicktype {
1013810182 j["newtonsoft"] = x.get_newtonsoft();
1013910183 j["nil"] = x.get_nil();
1014010184 j["NO"] = x.get_no();
10185+ j["goto"] = x.get_obj3_goto();
1014110186 j["if"] = x.get_obj3_if();
1014210187 j["import"] = x.get_obj3_import();
1014310188 j["inline"] = x.get_obj3_inline();
@@ -10147,7 +10192,6 @@ namespace quicktype {
1014710192 j["mutable"] = x.get_obj3_mutable();
1014810193 j["namespace"] = x.get_obj3_namespace();
1014910194 j["new"] = x.get_obj3_new();
10150- j["noexcept"] = x.get_obj3_noexcept();
1015110195 }
1015210196
1015310197 inline void from_json(const json & j, NoSuchMethod& x) {
@@ -10260,6 +10304,17 @@ namespace quicktype {
1026010304 j["number"] = x.get_number();
1026110305 }
1026210306
10307+ inline void from_json(const json & j, Noexcept& x) {
10308+ if (!j.is_object()) throw std::runtime_error("Expected object");
10309+ if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10310+ x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10311+ }
10312+
10313+ inline void to_json(json & j, const Noexcept & x) {
10314+ j = json::object();
10315+ j["noexcept"] = x.get_noexcept_noexcept();
10316+ }
10317+
1026310318 inline void from_json(const json & j, NoneClass& x) {
1026410319 if (!j.is_object()) throw std::runtime_error("Expected object");
1026510320 if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10843,17 +10898,6 @@ namespace quicktype {
1084310898 j["SEL"] = x.get_sel();
1084410899 }
1084510900
10846- inline void from_json(const json & j, Select& x) {
10847- if (!j.is_object()) throw std::runtime_error("Expected object");
10848- if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
10849- x.set_select(j.at("select").get<int64_t>());
10850- }
10851-
10852- inline void to_json(json & j, const Select & x) {
10853- j = json::object();
10854- j["select"] = x.get_select();
10855- }
10856-
1085710901 inline void from_json(const json & j, Obj4& x) {
1085810902 if (!j.is_object()) throw std::runtime_error("Expected object");
1085910903 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10868,6 +10912,7 @@ namespace quicktype {
1086810912 x.set_ns_string(j.at("NSString").get<NsString>());
1086910913 x.set_null(j.at("NULL").get<Null>());
1087010914 x.set_number(j.at("number").get<Number>());
10915+ x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>());
1087110916 x.set_obj4_none(j.at("none").get<NoneClass>());
1087210917 x.set_obj4_not(j.at("not").get<Not>());
1087310918 x.set_obj4_not_eq(j.at("not_eq").get<NotEq>());
@@ -10921,7 +10966,6 @@ namespace quicktype {
1092110966 x.set_sbyte(j.at("sbyte").get<Sbyte>());
1092210967 x.set_sealed(j.at("sealed").get<Sealed>());
1092310968 x.set_sel(j.at("SEL").get<Sel>());
10924- x.set_select(j.at("select").get<Select>());
1092510969 }
1092610970
1092710971 inline void to_json(json & j, const Obj4 & x) {
@@ -10937,6 +10981,7 @@ namespace quicktype {
1093710981 j["NSString"] = x.get_ns_string();
1093810982 j["NULL"] = x.get_null();
1093910983 j["number"] = x.get_number();
10984+ j["noexcept"] = x.get_obj4_noexcept();
1094010985 j["none"] = x.get_obj4_none();
1094110986 j["not"] = x.get_obj4_not();
1094210987 j["not_eq"] = x.get_obj4_not_eq();
@@ -10990,7 +11035,6 @@ namespace quicktype {
1099011035 j["sbyte"] = x.get_sbyte();
1099111036 j["sealed"] = x.get_sealed();
1099211037 j["SEL"] = x.get_sel();
10993- j["select"] = x.get_select();
1099411038 }
1099511039
1099611040 inline void from_json(const json & j, KSerializer& x) {
@@ -11235,17 +11279,6 @@ namespace quicktype {
1123511279 j["union"] = x.get_union_union();
1123611280 }
1123711281
11238- inline void from_json(const json & j, Unsigned& x) {
11239- if (!j.is_object()) throw std::runtime_error("Expected object");
11240- if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer");
11241- x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>());
11242- }
11243-
11244- inline void to_json(json & j, const Unsigned & x) {
11245- j = json::object();
11246- j["unsigned"] = x.get_unsigned_unsigned();
11247- }
11248-
1124911282 inline void from_json(const json & j, PrimitiveKind& x) {
1125011283 if (!j.is_object()) throw std::runtime_error("Expected object");
1125111284 if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11268,6 +11301,17 @@ namespace quicktype {
1126811301 j["true"] = x.get_true_true();
1126911302 }
1127011303
11304+ inline void from_json(const json & j, Select& x) {
11305+ if (!j.is_object()) throw std::runtime_error("Expected object");
11306+ if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
11307+ x.set_select(j.at("select").get<int64_t>());
11308+ }
11309+
11310+ inline void to_json(json & j, const Select & x) {
11311+ j = json::object();
11312+ j["select"] = x.get_select();
11313+ }
11314+
1127111315 inline void from_json(const json & j, Self& x) {
1127211316 if (!j.is_object()) throw std::runtime_error("Expected object");
1127311317 if (j.find("Self") != j.end() && !j.at("Self").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11532,6 +11576,17 @@ namespace quicktype {
1153211576 j["TimeZone"] = x.get_time_zone();
1153311577 }
1153411578
11579+ inline void from_json(const json & j, ToDict& x) {
11580+ if (!j.is_object()) throw std::runtime_error("Expected object");
11581+ if (j.find("to_dict") != j.end() && !j.at("to_dict").is_number_integer()) throw std::runtime_error("Expected integer");
11582+ x.set_to_dict(j.at("to_dict").get<int64_t>());
11583+ }
11584+
11585+ inline void to_json(json & j, const ToDict & x) {
11586+ j = json::object();
11587+ j["to_dict"] = x.get_to_dict();
11588+ }
11589+
1153511590 inline void from_json(const json & j, ToJson& x) {
1153611591 if (!j.is_object()) throw std::runtime_error("Expected object");
1153711592 if (j.find("to_json") != j.end() && !j.at("to_json").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11686,17 +11741,6 @@ namespace quicktype {
1168611741 j["UseSerializers"] = x.get_use_serializers();
1168711742 }
1168811743
11689- inline void from_json(const json & j, Ushort& x) {
11690- if (!j.is_object()) throw std::runtime_error("Expected object");
11691- if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
11692- x.set_ushort(j.at("ushort").get<int64_t>());
11693- }
11694-
11695- inline void to_json(json & j, const Ushort & x) {
11696- j = json::object();
11697- j["ushort"] = x.get_ushort();
11698- }
11699-
1170011744 inline void from_json(const json & j, Obj5& x) {
1170111745 if (!j.is_object()) throw std::runtime_error("Expected object");
1170211746 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11723,9 +11767,9 @@ namespace quicktype {
1172311767 x.set_obj5_typeid(j.at("typeid").get<Typeid>());
1172411768 x.set_obj5_typename(j.at("typename").get<Typename>());
1172511769 x.set_obj5_union(j.at("union").get<Union>());
11726- x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>());
1172711770 x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>());
1172811771 x.set_purple_true(j.at("true").get<TrueClass>());
11772+ x.set_select(j.at("select").get<Select>());
1172911773 x.set_self(j.at("Self").get<Self>());
1173011774 x.set_sendable(j.at("Sendable").get<Sendable>());
1173111775 x.set_serial_descriptor(j.at("SerialDescriptor").get<SerialDescriptor>());
@@ -11750,6 +11794,7 @@ namespace quicktype {
1175011794 x.set_time_only(j.at("TimeOnly").get<TimeOnly>());
1175111795 x.set_time_only_converter(j.at("TimeOnlyConverter").get<TimeOnlyConverter>());
1175211796 x.set_time_zone(j.at("TimeZone").get<TimeZone>());
11797+ x.set_to_dict(j.at("to_dict").get<ToDict>());
1175311798 x.set_to_json(j.at("to_json").get<ToJson>());
1175411799 x.set_to_string(j.at("toString").get<ToString>());
1175511800 x.set_top_level(j.at("top_level").get<TopLevelClass>());
@@ -11764,7 +11809,6 @@ namespace quicktype {
1176411809 x.set_unowned(j.at("unowned").get<Unowned>());
1176511810 x.set_unsafe(j.at("unsafe").get<Unsafe>());
1176611811 x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>());
11767- x.set_ushort(j.at("ushort").get<Ushort>());
1176811812 }
1176911813
1177011814 inline void to_json(json & j, const Obj5 & x) {
@@ -11792,9 +11836,9 @@ namespace quicktype {
1179211836 j["typeid"] = x.get_obj5_typeid();
1179311837 j["typename"] = x.get_obj5_typename();
1179411838 j["union"] = x.get_obj5_union();
11795- j["unsigned"] = x.get_obj5_unsigned();
1179611839 j["PrimitiveKind"] = x.get_primitive_kind();
1179711840 j["true"] = x.get_purple_true();
11841+ j["select"] = x.get_select();
1179811842 j["Self"] = x.get_self();
1179911843 j["Sendable"] = x.get_sendable();
1180011844 j["SerialDescriptor"] = x.get_serial_descriptor();
@@ -11819,6 +11863,7 @@ namespace quicktype {
1181911863 j["TimeOnly"] = x.get_time_only();
1182011864 j["TimeOnlyConverter"] = x.get_time_only_converter();
1182111865 j["TimeZone"] = x.get_time_zone();
11866+ j["to_dict"] = x.get_to_dict();
1182211867 j["to_json"] = x.get_to_json();
1182311868 j["toString"] = x.get_to_string();
1182411869 j["top_level"] = x.get_top_level();
@@ -11833,7 +11878,17 @@ namespace quicktype {
1183311878 j["unowned"] = x.get_unowned();
1183411879 j["unsafe"] = x.get_unsafe();
1183511880 j["UseSerializers"] = x.get_use_serializers();
11836- j["ushort"] = x.get_ushort();
11881+ }
11882+
11883+ inline void from_json(const json & j, Unsigned& x) {
11884+ if (!j.is_object()) throw std::runtime_error("Expected object");
11885+ if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer");
11886+ x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>());
11887+ }
11888+
11889+ inline void to_json(json & j, const Unsigned & x) {
11890+ j = json::object();
11891+ j["unsigned"] = x.get_unsigned_unsigned();
1183711892 }
1183811893
1183911894 inline void from_json(const json & j, Using& x) {
@@ -11924,6 +11979,17 @@ namespace quicktype {
1192411979 j["xor_eq"] = x.get_xor_eq_xor_eq();
1192511980 }
1192611981
11982+ inline void from_json(const json & j, Ushort& x) {
11983+ if (!j.is_object()) throw std::runtime_error("Expected object");
11984+ if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
11985+ x.set_ushort(j.at("ushort").get<int64_t>());
11986+ }
11987+
11988+ inline void to_json(json & j, const Ushort & x) {
11989+ j = json::object();
11990+ j["ushort"] = x.get_ushort();
11991+ }
11992+
1192711993 inline void from_json(const json & j, Utf8JsonReader& x) {
1192811994 if (!j.is_object()) throw std::runtime_error("Expected object");
1192911995 if (j.find("Utf8JsonReader") != j.end() && !j.at("Utf8JsonReader").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -12038,6 +12104,7 @@ namespace quicktype {
1203812104 if (!j.is_object()) throw std::runtime_error("Expected object");
1203912105 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1204012106 x.set_dummy(j.at("dummy").get<int64_t>());
12107+ x.set_obj6_unsigned(j.at("unsigned").get<Unsigned>());
1204112108 x.set_obj6_using(j.at("using").get<Using>());
1204212109 x.set_obj6_virtual(j.at("virtual").get<Virtual>());
1204312110 x.set_obj6_void(j.at("void").get<Void>());
@@ -12046,6 +12113,7 @@ namespace quicktype {
1204612113 x.set_obj6_while(j.at("while").get<While>());
1204712114 x.set_obj6_xor(j.at("xor").get<Xor>());
1204812115 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
12116+ x.set_ushort(j.at("ushort").get<Ushort>());
1204912117 x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
1205012118 x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
1205112119 x.set_uuid(j.at("UUID").get<Uuid>());
@@ -12061,6 +12129,7 @@ namespace quicktype {
1206112129 inline void to_json(json & j, const Obj6 & x) {
1206212130 j = json::object();
1206312131 j["dummy"] = x.get_dummy();
12132+ j["unsigned"] = x.get_obj6_unsigned();
1206412133 j["using"] = x.get_obj6_using();
1206512134 j["virtual"] = x.get_obj6_virtual();
1206612135 j["void"] = x.get_obj6_void();
@@ -12069,6 +12138,7 @@ namespace quicktype {
1206912138 j["while"] = x.get_obj6_while();
1207012139 j["xor"] = x.get_obj6_xor();
1207112140 j["xor_eq"] = x.get_obj6_xor_eq();
12141+ j["ushort"] = x.get_ushort();
1207212142 j["Utf8JsonReader"] = x.get_utf8_json_reader();
1207312143 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
1207412144 j["UUID"] = x.get_uuid();
Mcrystaldefault / TopLevel.cr+58 −42
@@ -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
@@ -2265,6 +2263,9 @@ class Obj5
22652263 @[JSON::Field(key: "KSerializer")]
22662264 property k_serializer : KSerializer
22672265
2266+ @[JSON::Field(key: "select")]
2267+ property obj5_select : Select
2268+
22682269 @[JSON::Field(key: "Self")]
22692270 property obj5_self : Self
22702271
@@ -2383,6 +2384,8 @@ class Obj5
23832384 @[JSON::Field(key: "TimeZone")]
23842385 property time_zone : TimeZone
23852386
2387+ property to_dict : ToDict
2388+
23862389 @[JSON::Field(key: "toString")]
23872390 property to_string : ToString
23882391
@@ -2412,12 +2415,8 @@ class Obj5
24122415
24132416 property unsafe : Unsafe
24142417
2415- property unsigned : Unsigned
2416-
24172418 @[JSON::Field(key: "UseSerializers")]
24182419 property use_serializers : UseSerializers
2419-
2420- property ushort : Ushort
24212420 end
24222421
24232422 class KSerializer
@@ -2427,6 +2426,13 @@ class KSerializer
24272426 property k_serializer : Int64
24282427 end
24292428
2429+class Select
2430+ include JSON::Serializable
2431+
2432+ @[JSON::Field(key: "select")]
2433+ property select_select : Int64
2434+end
2435+
24302436 class Self
24312437 include JSON::Serializable
24322438
@@ -2729,6 +2735,12 @@ class TimeZone
27292735 property time_zone : Int64
27302736 end
27312737
2738+class ToDict
2739+ include JSON::Serializable
2740+
2741+ property to_dict : Int64
2742+end
2743+
27322744 class ToString
27332745 include JSON::Serializable
27342746
@@ -2814,12 +2826,6 @@ class Unsafe
28142826 property unsafe : Int64
28152827 end
28162828
2817-class Unsigned
2818- include JSON::Serializable
2819-
2820- property unsigned : Int64
2821-end
2822-
28232829 class UseSerializers
28242830 include JSON::Serializable
28252831
@@ -2827,12 +2833,6 @@ class UseSerializers
28272833 property use_serializers : Int64
28282834 end
28292835
2830-class Ushort
2831- include JSON::Serializable
2832-
2833- property ushort : Int64
2834-end
2835-
28362836 class Obj6
28372837 include JSON::Serializable
28382838
@@ -2847,6 +2847,10 @@ class Obj6
28472847 @[JSON::Field(key: "yield")]
28482848 property obj6_yield : Yield
28492849
2850+ property unsigned : Unsigned
2851+
2852+ property ushort : Ushort
2853+
28502854 property using : Using
28512855
28522856 @[JSON::Field(key: "Utf8JsonReader")]
@@ -2904,6 +2908,18 @@ class Yield
29042908 property yield_yield : Int64
29052909 end
29062910
2911+class Unsigned
2912+ include JSON::Serializable
2913+
2914+ property unsigned : Int64
2915+end
2916+
2917+class Ushort
2918+ include JSON::Serializable
2919+
2920+ property ushort : Int64
2921+end
2922+
29072923 class Using
29082924 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)]
@@ -2401,6 +2401,9 @@ namespace QuickType
24012401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24022402 public PrimitiveKind PrimitiveKind { get; set; }
24032403
2404+ [JsonProperty("select", Required = Required.Always)]
2405+ public Select Select { get; set; }
2406+
24042407 [JsonProperty("Self", Required = Required.Always)]
24052408 public Self Self { get; set; }
24062409
@@ -2512,6 +2515,9 @@ namespace QuickType
25122515 [JsonProperty("TimeZone", Required = Required.Always)]
25132516 public TimeZone TimeZone { get; set; }
25142517
2518+ [JsonProperty("to_dict", Required = Required.Always)]
2519+ public ToDict ToDict { get; set; }
2520+
25152521 [JsonProperty("top_level", Required = Required.Always)]
25162522 public TopLevelClass TopLevel { get; set; }
25172523
@@ -2563,14 +2569,8 @@ namespace QuickType
25632569 [JsonProperty("unsafe", Required = Required.Always)]
25642570 public Unsafe Unsafe { get; set; }
25652571
2566- [JsonProperty("unsigned", Required = Required.Always)]
2567- public Unsigned Unsigned { get; set; }
2568-
25692572 [JsonProperty("UseSerializers", Required = Required.Always)]
25702573 public UseSerializers UseSerializers { get; set; }
2571-
2572- [JsonProperty("ushort", Required = Required.Always)]
2573- public Ushort Ushort { get; set; }
25742574 }
25752575
25762576 public partial record KSerializer
@@ -2615,6 +2615,12 @@ namespace QuickType
26152615 public long PrimitiveKindPrimitiveKind { get; set; }
26162616 }
26172617
2618+ public partial record Select
2619+ {
2620+ [JsonProperty("select", Required = Required.Always)]
2621+ public long SelectSelect { get; set; }
2622+ }
2623+
26182624 public partial record Self
26192625 {
26202626 [JsonProperty("Self", Required = Required.Always)]
@@ -2837,6 +2843,12 @@ namespace QuickType
28372843 public long TimeZoneTimeZone { get; set; }
28382844 }
28392845
2846+ public partial record ToDict
2847+ {
2848+ [JsonProperty("to_dict", Required = Required.Always)]
2849+ public long ToDictToDict { get; set; }
2850+ }
2851+
28402852 public partial record TopLevelClass
28412853 {
28422854 [JsonProperty("top_level", Required = Required.Always)]
@@ -2939,29 +2951,23 @@ namespace QuickType
29392951 public long UnsafeUnsafe { get; set; }
29402952 }
29412953
2942- public partial record Unsigned
2943- {
2944- [JsonProperty("unsigned", Required = Required.Always)]
2945- public long UnsignedUnsigned { get; set; }
2946- }
2947-
29482954 public partial record UseSerializers
29492955 {
29502956 [JsonProperty("UseSerializers", Required = Required.Always)]
29512957 public long UseSerializersUseSerializers { get; set; }
29522958 }
29532959
2954- public partial record Ushort
2955- {
2956- [JsonProperty("ushort", Required = Required.Always)]
2957- public long UshortUshort { 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("unsigned", Required = Required.Always)]
2966+ public Unsigned Unsigned { get; set; }
2967+
2968+ [JsonProperty("ushort", Required = Required.Always)]
2969+ public Ushort Ushort { get; set; }
2970+
29652971 [JsonProperty("using", Required = Required.Always)]
29662972 public Using Using { get; set; }
29672973
@@ -3017,6 +3023,18 @@ namespace QuickType
30173023 public Yield Yield { get; set; }
30183024 }
30193025
3026+ public partial record Unsigned
3027+ {
3028+ [JsonProperty("unsigned", Required = Required.Always)]
3029+ public long UnsignedUnsigned { get; set; }
3030+ }
3031+
3032+ public partial record Ushort
3033+ {
3034+ [JsonProperty("ushort", Required = Required.Always)]
3035+ public long UshortUshort { get; set; }
3036+ }
3037+
30203038 public partial record Using
30213039 {
30223040 [JsonProperty("using", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+75 −53
@@ -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]
@@ -2929,6 +2929,10 @@ namespace QuickType
29292929 [JsonPropertyName("PrimitiveKind")]
29302930 public PrimitiveKind PrimitiveKind { get; set; }
29312931
2932+ [JsonRequired]
2933+ [JsonPropertyName("select")]
2934+ public Select Select { get; set; }
2935+
29322936 [JsonRequired]
29332937 [JsonPropertyName("Self")]
29342938 public Self Self { get; set; }
@@ -3077,6 +3081,10 @@ namespace QuickType
30773081 [JsonPropertyName("TimeZone")]
30783082 public TimeZone TimeZone { get; set; }
30793083
3084+ [JsonRequired]
3085+ [JsonPropertyName("to_dict")]
3086+ public ToDict ToDict { get; set; }
3087+
30803088 [JsonRequired]
30813089 [JsonPropertyName("top_level")]
30823090 public TopLevelClass TopLevel { get; set; }
@@ -3145,17 +3153,9 @@ namespace QuickType
31453153 [JsonPropertyName("unsafe")]
31463154 public Unsafe Unsafe { get; set; }
31473155
3148- [JsonRequired]
3149- [JsonPropertyName("unsigned")]
3150- public Unsigned Unsigned { get; set; }
3151-
31523156 [JsonRequired]
31533157 [JsonPropertyName("UseSerializers")]
31543158 public UseSerializers UseSerializers { get; set; }
3155-
3156- [JsonRequired]
3157- [JsonPropertyName("ushort")]
3158- public Ushort Ushort { get; set; }
31593159 }
31603160
31613161 public partial class KSerializer
@@ -3207,6 +3207,13 @@ namespace QuickType
32073207 public long PrimitiveKindPrimitiveKind { get; set; }
32083208 }
32093209
3210+ public partial class Select
3211+ {
3212+ [JsonRequired]
3213+ [JsonPropertyName("select")]
3214+ public long SelectSelect { get; set; }
3215+ }
3216+
32103217 public partial class Self
32113218 {
32123219 [JsonRequired]
@@ -3466,6 +3473,13 @@ namespace QuickType
34663473 public long TimeZoneTimeZone { get; set; }
34673474 }
34683475
3476+ public partial class ToDict
3477+ {
3478+ [JsonRequired]
3479+ [JsonPropertyName("to_dict")]
3480+ public long ToDictToDict { get; set; }
3481+ }
3482+
34693483 public partial class TopLevelClass
34703484 {
34713485 [JsonRequired]
@@ -3585,13 +3599,6 @@ namespace QuickType
35853599 public long UnsafeUnsafe { get; set; }
35863600 }
35873601
3588- public partial class Unsigned
3589- {
3590- [JsonRequired]
3591- [JsonPropertyName("unsigned")]
3592- public long UnsignedUnsigned { get; set; }
3593- }
3594-
35953602 public partial class UseSerializers
35963603 {
35973604 [JsonRequired]
@@ -3599,19 +3606,20 @@ namespace QuickType
35993606 public long UseSerializersUseSerializers { get; set; }
36003607 }
36013608
3602- public partial class Ushort
3603- {
3604- [JsonRequired]
3605- [JsonPropertyName("ushort")]
3606- public long UshortUshort { get; set; }
3607- }
3608-
36093609 public partial class Obj6
36103610 {
36113611 [JsonRequired]
36123612 [JsonPropertyName("dummy")]
36133613 public long Dummy { get; set; }
36143614
3615+ [JsonRequired]
3616+ [JsonPropertyName("unsigned")]
3617+ public Unsigned Unsigned { get; set; }
3618+
3619+ [JsonRequired]
3620+ [JsonPropertyName("ushort")]
3621+ public Ushort Ushort { get; set; }
3622+
36153623 [JsonRequired]
36163624 [JsonPropertyName("using")]
36173625 public Using Using { get; set; }
@@ -3685,6 +3693,20 @@ namespace QuickType
36853693 public Yield Yield { get; set; }
36863694 }
36873695
3696+ public partial class Unsigned
3697+ {
3698+ [JsonRequired]
3699+ [JsonPropertyName("unsigned")]
3700+ public long UnsignedUnsigned { get; set; }
3701+ }
3702+
3703+ public partial class Ushort
3704+ {
3705+ [JsonRequired]
3706+ [JsonPropertyName("ushort")]
3707+ public long UshortUshort { get; set; }
3708+ }
3709+
36883710 public partial class Using
36893711 {
36903712 [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)]
@@ -2401,6 +2401,9 @@ namespace QuickType
24012401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24022402 public PrimitiveKind PrimitiveKind { get; set; }
24032403
2404+ [JsonProperty("select", Required = Required.Always)]
2405+ public Select Select { get; set; }
2406+
24042407 [JsonProperty("Self", Required = Required.Always)]
24052408 public Self Self { get; set; }
24062409
@@ -2512,6 +2515,9 @@ namespace QuickType
25122515 [JsonProperty("TimeZone", Required = Required.Always)]
25132516 public TimeZone TimeZone { get; set; }
25142517
2518+ [JsonProperty("to_dict", Required = Required.Always)]
2519+ public ToDict ToDict { get; set; }
2520+
25152521 [JsonProperty("top_level", Required = Required.Always)]
25162522 public TopLevelClass TopLevel { get; set; }
25172523
@@ -2563,14 +2569,8 @@ namespace QuickType
25632569 [JsonProperty("unsafe", Required = Required.Always)]
25642570 public Unsafe Unsafe { get; set; }
25652571
2566- [JsonProperty("unsigned", Required = Required.Always)]
2567- public Unsigned Unsigned { get; set; }
2568-
25692572 [JsonProperty("UseSerializers", Required = Required.Always)]
25702573 public UseSerializers UseSerializers { get; set; }
2571-
2572- [JsonProperty("ushort", Required = Required.Always)]
2573- public Ushort Ushort { get; set; }
25742574 }
25752575
25762576 public partial class KSerializer
@@ -2615,6 +2615,12 @@ namespace QuickType
26152615 public long PrimitiveKindPrimitiveKind { get; set; }
26162616 }
26172617
2618+ public partial class Select
2619+ {
2620+ [JsonProperty("select", Required = Required.Always)]
2621+ public long SelectSelect { get; set; }
2622+ }
2623+
26182624 public partial class Self
26192625 {
26202626 [JsonProperty("Self", Required = Required.Always)]
@@ -2837,6 +2843,12 @@ namespace QuickType
28372843 public long TimeZoneTimeZone { get; set; }
28382844 }
28392845
2846+ public partial class ToDict
2847+ {
2848+ [JsonProperty("to_dict", Required = Required.Always)]
2849+ public long ToDictToDict { get; set; }
2850+ }
2851+
28402852 public partial class TopLevelClass
28412853 {
28422854 [JsonProperty("top_level", Required = Required.Always)]
@@ -2939,29 +2951,23 @@ namespace QuickType
29392951 public long UnsafeUnsafe { get; set; }
29402952 }
29412953
2942- public partial class Unsigned
2943- {
2944- [JsonProperty("unsigned", Required = Required.Always)]
2945- public long UnsignedUnsigned { get; set; }
2946- }
2947-
29482954 public partial class UseSerializers
29492955 {
29502956 [JsonProperty("UseSerializers", Required = Required.Always)]
29512957 public long UseSerializersUseSerializers { get; set; }
29522958 }
29532959
2954- public partial class Ushort
2955- {
2956- [JsonProperty("ushort", Required = Required.Always)]
2957- public long UshortUshort { 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("unsigned", Required = Required.Always)]
2966+ public Unsigned Unsigned { get; set; }
2967+
2968+ [JsonProperty("ushort", Required = Required.Always)]
2969+ public Ushort Ushort { get; set; }
2970+
29652971 [JsonProperty("using", Required = Required.Always)]
29662972 public Using Using { get; set; }
29672973
@@ -3017,6 +3023,18 @@ namespace QuickType
30173023 public Yield Yield { get; set; }
30183024 }
30193025
3026+ public partial class Unsigned
3027+ {
3028+ [JsonProperty("unsigned", Required = Required.Always)]
3029+ public long UnsignedUnsigned { get; set; }
3030+ }
3031+
3032+ public partial class Ushort
3033+ {
3034+ [JsonProperty("ushort", Required = Required.Always)]
3035+ public long UshortUshort { get; set; }
3036+ }
3037+
30203038 public partial class Using
30213039 {
30223040 [JsonProperty("using", Required = Required.Always)]
Mdartdefault / TopLevel.dart+140 −100
@@ -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 KSerializer kSerializer;
@@ -5260,6 +5260,7 @@ class Obj5 {
52605260 final Typedef obj5Typedef;
52615261 final PrimitiveKind primitiveKind;
52625262 final TrueClass purpleTrue;
5263+ final Select select;
52635264 final Self self;
52645265 final Sendable sendable;
52655266 final SerialDescriptor serialDescriptor;
@@ -5291,6 +5292,7 @@ class Obj5 {
52915292 final TimeOnly timeOnly;
52925293 final TimeOnlyConverter timeOnlyConverter;
52935294 final TimeZone timeZone;
5295+ final ToDict toDict;
52945296 final TopLevelClass topLevel;
52955297 final Transient transient;
52965298 final Type type;
@@ -5305,9 +5307,7 @@ class Obj5 {
53055307 final Union union;
53065308 final Unowned unowned;
53075309 final Unsafe unsafe;
5308- final Unsigned unsigned;
53095310 final UseSerializers useSerializers;
5310- final Ushort ushort;
53115311
53125312 Obj5({
53135313 required this.dummy,
@@ -5327,6 +5327,7 @@ class Obj5 {
53275327 required this.obj5Typedef,
53285328 required this.primitiveKind,
53295329 required this.purpleTrue,
5330+ required this.select,
53305331 required this.self,
53315332 required this.sendable,
53325333 required this.serialDescriptor,
@@ -5358,6 +5359,7 @@ class Obj5 {
53585359 required this.timeOnly,
53595360 required this.timeOnlyConverter,
53605361 required this.timeZone,
5362+ required this.toDict,
53615363 required this.topLevel,
53625364 required this.transient,
53635365 required this.type,
@@ -5372,9 +5374,7 @@ class Obj5 {
53725374 required this.union,
53735375 required this.unowned,
53745376 required this.unsafe,
5375- required this.unsigned,
53765377 required this.useSerializers,
5377- required this.ushort,
53785378 });
53795379
53805380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5395,6 +5395,7 @@ class Obj5 {
53955395 obj5Typedef: Typedef.fromJson(json["typedef"]),
53965396 primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]),
53975397 purpleTrue: TrueClass.fromJson(json["true"]),
5398+ select: Select.fromJson(json["select"]),
53985399 self: Self.fromJson(json["Self"]),
53995400 sendable: Sendable.fromJson(json["Sendable"]),
54005401 serialDescriptor: SerialDescriptor.fromJson(json["SerialDescriptor"]),
@@ -5426,6 +5427,7 @@ class Obj5 {
54265427 timeOnly: TimeOnly.fromJson(json["TimeOnly"]),
54275428 timeOnlyConverter: TimeOnlyConverter.fromJson(json["TimeOnlyConverter"]),
54285429 timeZone: TimeZone.fromJson(json["TimeZone"]),
5430+ toDict: ToDict.fromJson(json["to_dict"]),
54295431 topLevel: TopLevelClass.fromJson(json["top_level"]),
54305432 transient: Transient.fromJson(json["transient"]),
54315433 type: Type.fromJson(json["Type"]),
@@ -5440,9 +5442,7 @@ class Obj5 {
54405442 union: Union.fromJson(json["union"]),
54415443 unowned: Unowned.fromJson(json["unowned"]),
54425444 unsafe: Unsafe.fromJson(json["unsafe"]),
5443- unsigned: Unsigned.fromJson(json["unsigned"]),
54445445 useSerializers: UseSerializers.fromJson(json["UseSerializers"]),
5445- ushort: Ushort.fromJson(json["ushort"]),
54465446 );
54475447
54485448 Map<String, dynamic> toJson() => {
@@ -5463,6 +5463,7 @@ class Obj5 {
54635463 "typedef": obj5Typedef.toJson(),
54645464 "PrimitiveKind": primitiveKind.toJson(),
54655465 "true": purpleTrue.toJson(),
5466+ "select": select.toJson(),
54665467 "Self": self.toJson(),
54675468 "Sendable": sendable.toJson(),
54685469 "SerialDescriptor": serialDescriptor.toJson(),
@@ -5494,6 +5495,7 @@ class Obj5 {
54945495 "TimeOnly": timeOnly.toJson(),
54955496 "TimeOnlyConverter": timeOnlyConverter.toJson(),
54965497 "TimeZone": timeZone.toJson(),
5498+ "to_dict": toDict.toJson(),
54975499 "top_level": topLevel.toJson(),
54985500 "transient": transient.toJson(),
54995501 "Type": type.toJson(),
@@ -5508,9 +5510,7 @@ class Obj5 {
55085510 "union": union.toJson(),
55095511 "unowned": unowned.toJson(),
55105512 "unsafe": unsafe.toJson(),
5511- "unsigned": unsigned.toJson(),
55125513 "UseSerializers": useSerializers.toJson(),
5513- "ushort": ushort.toJson(),
55145514 };
55155515 }
55165516
@@ -5770,6 +5770,22 @@ class TrueClass {
57705770 };
57715771 }
57725772
5773+class Select {
5774+ final int select;
5775+
5776+ Select({
5777+ required this.select,
5778+ });
5779+
5780+ factory Select.fromJson(Map<String, dynamic> json) => Select(
5781+ select: json["select"],
5782+ );
5783+
5784+ Map<String, dynamic> toJson() => {
5785+ "select": select,
5786+ };
5787+}
5788+
57735789 class Self {
57745790 final int self;
57755791
@@ -6266,6 +6282,22 @@ class TimeZone {
62666282 };
62676283 }
62686284
6285+class ToDict {
6286+ final int toDict;
6287+
6288+ ToDict({
6289+ required this.toDict,
6290+ });
6291+
6292+ factory ToDict.fromJson(Map<String, dynamic> json) => ToDict(
6293+ toDict: json["to_dict"],
6294+ );
6295+
6296+ Map<String, dynamic> toJson() => {
6297+ "to_dict": toDict,
6298+ };
6299+}
6300+
62696301 class TopLevelClass {
62706302 final int topLevel;
62716303
@@ -6490,22 +6522,6 @@ class Unsafe {
64906522 };
64916523 }
64926524
6493-class Unsigned {
6494- final int unsigned;
6495-
6496- Unsigned({
6497- required this.unsigned,
6498- });
6499-
6500- factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned(
6501- unsigned: json["unsigned"],
6502- );
6503-
6504- Map<String, dynamic> toJson() => {
6505- "unsigned": unsigned,
6506- };
6507-}
6508-
65096525 class UseSerializers {
65106526 final int useSerializers;
65116527
@@ -6522,22 +6538,6 @@ class UseSerializers {
65226538 };
65236539 }
65246540
6525-class Ushort {
6526- final int ushort;
6527-
6528- Ushort({
6529- required this.ushort,
6530- });
6531-
6532- factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6533- ushort: json["ushort"],
6534- );
6535-
6536- Map<String, dynamic> toJson() => {
6537- "ushort": ushort,
6538- };
6539-}
6540-
65416541 class Obj6 {
65426542 final int dummy;
65436543 final Var obj6Var;
@@ -6545,6 +6545,8 @@ class Obj6 {
65456545 final While obj6While;
65466546 final With obj6With;
65476547 final Yield obj6Yield;
6548+ final Unsigned unsigned;
6549+ final Ushort ushort;
65486550 final Using using;
65496551 final Utf8JsonReader utf8JsonReader;
65506552 final Utf8JsonWriter utf8JsonWriter;
@@ -6566,6 +6568,8 @@ class Obj6 {
65666568 required this.obj6While,
65676569 required this.obj6With,
65686570 required this.obj6Yield,
6571+ required this.unsigned,
6572+ required this.ushort,
65696573 required this.using,
65706574 required this.utf8JsonReader,
65716575 required this.utf8JsonWriter,
@@ -6588,6 +6592,8 @@ class Obj6 {
65886592 obj6While: While.fromJson(json["while"]),
65896593 obj6With: With.fromJson(json["with"]),
65906594 obj6Yield: Yield.fromJson(json["yield"]),
6595+ unsigned: Unsigned.fromJson(json["unsigned"]),
6596+ ushort: Ushort.fromJson(json["ushort"]),
65916597 using: Using.fromJson(json["using"]),
65926598 utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
65936599 utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
@@ -6610,6 +6616,8 @@ class Obj6 {
66106616 "while": obj6While.toJson(),
66116617 "with": obj6With.toJson(),
66126618 "yield": obj6Yield.toJson(),
6619+ "unsigned": unsigned.toJson(),
6620+ "ushort": ushort.toJson(),
66136621 "using": using.toJson(),
66146622 "Utf8JsonReader": utf8JsonReader.toJson(),
66156623 "Utf8JsonWriter": utf8JsonWriter.toJson(),
@@ -6706,6 +6714,38 @@ class Yield {
67066714 };
67076715 }
67086716
6717+class Unsigned {
6718+ final int unsigned;
6719+
6720+ Unsigned({
6721+ required this.unsigned,
6722+ });
6723+
6724+ factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned(
6725+ unsigned: json["unsigned"],
6726+ );
6727+
6728+ Map<String, dynamic> toJson() => {
6729+ "unsigned": unsigned,
6730+ };
6731+}
6732+
6733+class Ushort {
6734+ final int ushort;
6735+
6736+ Ushort({
6737+ required this.ushort,
6738+ });
6739+
6740+ factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6741+ ushort: json["ushort"],
6742+ );
6743+
6744+ Map<String, dynamic> toJson() => {
6745+ "ushort": ushort,
6746+ };
6747+}
6748+
67096749 class Using {
67106750 final int using;
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
@@ -11154,6 +11154,45 @@ defmodule PrimitiveKind do
1115411154 end
1115511155 end
1115611156
11157+defmodule Select do
11158+ @enforce_keys [:select]
11159+ defstruct [:select]
11160+
11161+ @type t :: %__MODULE__{
11162+ select: integer()
11163+ }
11164+
11165+ def decode_select(value) when is_integer(value), do: value
11166+ def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
11167+
11168+ def encode_select(value) when is_integer(value), do: value
11169+ def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
11170+
11171+ def from_map(m) do
11172+ %Select{
11173+ select: decode_select(m["select"]),
11174+ }
11175+ end
11176+
11177+ def from_json(json) do
11178+ json
11179+ |> Jason.decode!()
11180+ |> from_map()
11181+ end
11182+
11183+ def to_map(struct) do
11184+ %{
11185+ "select" => struct.select,
11186+ }
11187+ end
11188+
11189+ def to_json(struct) do
11190+ struct
11191+ |> to_map()
11192+ |> Jason.encode!()
11193+ end
11194+end
11195+
1115711196 defmodule Self do
1115811197 @enforce_keys [:self]
1115911198 defstruct [:self]
@@ -12597,6 +12636,45 @@ defmodule TimeZone do
1259712636 end
1259812637 end
1259912638
12639+defmodule ToDict do
12640+ @enforce_keys [:to_dict]
12641+ defstruct [:to_dict]
12642+
12643+ @type t :: %__MODULE__{
12644+ to_dict: integer()
12645+ }
12646+
12647+ def decode_to_dict(value) when is_integer(value), do: value
12648+ def decode_to_dict(_), do: {:error, "Unexpected type when decoding ToDict.to_dict"}
12649+
12650+ def encode_to_dict(value) when is_integer(value), do: value
12651+ def encode_to_dict(_), do: {:error, "Unexpected type when encoding ToDict.to_dict"}
12652+
12653+ def from_map(m) do
12654+ %ToDict{
12655+ to_dict: decode_to_dict(m["to_dict"]),
12656+ }
12657+ end
12658+
12659+ def from_json(json) do
12660+ json
12661+ |> Jason.decode!()
12662+ |> from_map()
12663+ end
12664+
12665+ def to_map(struct) do
12666+ %{
12667+ "to_dict" => struct.to_dict,
12668+ }
12669+ end
12670+
12671+ def to_json(struct) do
12672+ struct
12673+ |> to_map()
12674+ |> Jason.encode!()
12675+ end
12676+end
12677+
1260012678 defmodule ToJSON do
1260112679 @enforce_keys [:to_json]
1260212680 defstruct [:to_json]
@@ -13338,45 +13416,6 @@ defmodule Unsafe do
1333813416 end
1333913417 end
1334013418
13341-defmodule Unsigned do
13342- @enforce_keys [:unsigned]
13343- defstruct [:unsigned]
13344-
13345- @type t :: %__MODULE__{
13346- unsigned: integer()
13347- }
13348-
13349- def decode_unsigned(value) when is_integer(value), do: value
13350- def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
13351-
13352- def encode_unsigned(value) when is_integer(value), do: value
13353- def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
13354-
13355- def from_map(m) do
13356- %Unsigned{
13357- unsigned: decode_unsigned(m["unsigned"]),
13358- }
13359- end
13360-
13361- def from_json(json) do
13362- json
13363- |> Jason.decode!()
13364- |> from_map()
13365- end
13366-
13367- def to_map(struct) do
13368- %{
13369- "unsigned" => struct.unsigned,
13370- }
13371- end
13372-
13373- def to_json(struct) do
13374- struct
13375- |> to_map()
13376- |> Jason.encode!()
13377- end
13378-end
13379-
1338013419 defmodule UseSerializers do
1338113420 @enforce_keys [:use_serializers]
1338213421 defstruct [:use_serializers]
@@ -13416,48 +13455,9 @@ defmodule UseSerializers do
1341613455 end
1341713456 end
1341813457
13419-defmodule Ushort do
13420- @enforce_keys [:ushort]
13421- defstruct [:ushort]
13422-
13423- @type t :: %__MODULE__{
13424- ushort: integer()
13425- }
13426-
13427- def decode_ushort(value) when is_integer(value), do: value
13428- def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13429-
13430- def encode_ushort(value) when is_integer(value), do: value
13431- def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13432-
13433- def from_map(m) do
13434- %Ushort{
13435- ushort: decode_ushort(m["ushort"]),
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- "ushort" => struct.ushort,
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, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers, :ushort]
13460- defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers, :ushort]
13459+ @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers]
13460+ defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers]
1346113461
1346213462 @type t :: %__MODULE__{
1346313463 dummy: integer(),
@@ -13466,6 +13466,7 @@ defmodule Obj5 do
1346613466 obj5_true: TrueClass.t(),
1346713467 obj5_type: TypeClass.t(),
1346813468 primitive_kind: PrimitiveKind.t(),
13469+ select: Select.t(),
1346913470 self: Self.t(),
1347013471 sendable: Sendable.t(),
1347113472 serial_descriptor: SerialDescriptor.t(),
@@ -13503,6 +13504,7 @@ defmodule Obj5 do
1350313504 time_only: TimeOnly.t(),
1350413505 time_only_converter: TimeOnlyConverter.t(),
1350513506 time_zone: TimeZone.t(),
13507+ to_dict: ToDict.t(),
1350613508 to_json: ToJSON.t(),
1350713509 to_string: ToString.t(),
1350813510 top_level: TopLevelClass.t(),
@@ -13522,9 +13524,7 @@ defmodule Obj5 do
1352213524 union: Union.t(),
1352313525 unowned: Unowned.t(),
1352413526 unsafe: Unsafe.t(),
13525- unsigned: Unsigned.t(),
13526- use_serializers: UseSerializers.t(),
13527- ushort: Ushort.t()
13527+ use_serializers: UseSerializers.t()
1352813528 }
1352913529
1353013530 def decode_dummy(value) when is_integer(value), do: value
@@ -13541,6 +13541,7 @@ defmodule Obj5 do
1354113541 obj5_true: TrueClass.from_map(m["True"]),
1354213542 obj5_type: TypeClass.from_map(m["type"]),
1354313543 primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]),
13544+ select: Select.from_map(m["select"]),
1354413545 self: Self.from_map(m["Self"]),
1354513546 sendable: Sendable.from_map(m["Sendable"]),
1354613547 serial_descriptor: SerialDescriptor.from_map(m["SerialDescriptor"]),
@@ -13578,6 +13579,7 @@ defmodule Obj5 do
1357813579 time_only: TimeOnly.from_map(m["TimeOnly"]),
1357913580 time_only_converter: TimeOnlyConverter.from_map(m["TimeOnlyConverter"]),
1358013581 time_zone: TimeZone.from_map(m["TimeZone"]),
13582+ to_dict: ToDict.from_map(m["to_dict"]),
1358113583 to_json: ToJSON.from_map(m["to_json"]),
1358213584 to_string: ToString.from_map(m["toString"]),
1358313585 top_level: TopLevelClass.from_map(m["top_level"]),
@@ -13597,9 +13599,7 @@ defmodule Obj5 do
1359713599 union: Union.from_map(m["union"]),
1359813600 unowned: Unowned.from_map(m["unowned"]),
1359913601 unsafe: Unsafe.from_map(m["unsafe"]),
13600- unsigned: Unsigned.from_map(m["unsigned"]),
1360113602 use_serializers: UseSerializers.from_map(m["UseSerializers"]),
13602- ushort: Ushort.from_map(m["ushort"]),
1360313603 }
1360413604 end
1360513605
@@ -13617,6 +13617,7 @@ defmodule Obj5 do
1361713617 "True" => TrueClass.to_map(struct.obj5_true),
1361813618 "type" => TypeClass.to_map(struct.obj5_type),
1361913619 "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind),
13620+ "select" => Select.to_map(struct.select),
1362013621 "Self" => Self.to_map(struct.self),
1362113622 "Sendable" => Sendable.to_map(struct.sendable),
1362213623 "SerialDescriptor" => SerialDescriptor.to_map(struct.serial_descriptor),
@@ -13654,6 +13655,7 @@ defmodule Obj5 do
1365413655 "TimeOnly" => TimeOnly.to_map(struct.time_only),
1365513656 "TimeOnlyConverter" => TimeOnlyConverter.to_map(struct.time_only_converter),
1365613657 "TimeZone" => TimeZone.to_map(struct.time_zone),
13658+ "to_dict" => ToDict.to_map(struct.to_dict),
1365713659 "to_json" => ToJSON.to_map(struct.to_json),
1365813660 "toString" => ToString.to_map(struct.to_string),
1365913661 "top_level" => TopLevelClass.to_map(struct.top_level),
@@ -13673,9 +13675,85 @@ defmodule Obj5 do
1367313675 "union" => Union.to_map(struct.union),
1367413676 "unowned" => Unowned.to_map(struct.unowned),
1367513677 "unsafe" => Unsafe.to_map(struct.unsafe),
13676- "unsigned" => Unsigned.to_map(struct.unsigned),
1367713678 "UseSerializers" => UseSerializers.to_map(struct.use_serializers),
13678- "ushort" => Ushort.to_map(struct.ushort),
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 Unsigned do
13690+ @enforce_keys [:unsigned]
13691+ defstruct [:unsigned]
13692+
13693+ @type t :: %__MODULE__{
13694+ unsigned: integer()
13695+ }
13696+
13697+ def decode_unsigned(value) when is_integer(value), do: value
13698+ def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
13699+
13700+ def encode_unsigned(value) when is_integer(value), do: value
13701+ def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
13702+
13703+ def from_map(m) do
13704+ %Unsigned{
13705+ unsigned: decode_unsigned(m["unsigned"]),
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+ "unsigned" => struct.unsigned,
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 Ushort do
13729+ @enforce_keys [:ushort]
13730+ defstruct [:ushort]
13731+
13732+ @type t :: %__MODULE__{
13733+ ushort: integer()
13734+ }
13735+
13736+ def decode_ushort(value) when is_integer(value), do: value
13737+ def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13738+
13739+ def encode_ushort(value) when is_integer(value), do: value
13740+ def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13741+
13742+ def from_map(m) do
13743+ %Ushort{
13744+ ushort: decode_ushort(m["ushort"]),
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+ "ushort" => struct.ushort,
1367913757 }
1368013758 end
1368113759
@@ -14389,11 +14467,13 @@ defmodule Yield do
1438914467 end
1439014468
1439114469 defmodule Obj6 do
14392- @enforce_keys [:dummy, :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]
14393- defstruct [:dummy, :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]
14470+ @enforce_keys [:dummy, :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]
14471+ defstruct [:dummy, :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]
1439414472
1439514473 @type t :: %__MODULE__{
1439614474 dummy: integer(),
14475+ unsigned: Unsigned.t(),
14476+ ushort: Ushort.t(),
1439714477 using: Using.t(),
1439814478 utf8_json_reader: Utf8JSONReader.t(),
1439914479 utf8_json_writer: Utf8JSONWriter.t(),
@@ -14423,6 +14503,8 @@ defmodule Obj6 do
1442314503 def from_map(m) do
1442414504 %Obj6{
1442514505 dummy: decode_dummy(m["dummy"]),
14506+ unsigned: Unsigned.from_map(m["unsigned"]),
14507+ ushort: Ushort.from_map(m["ushort"]),
1442614508 using: Using.from_map(m["using"]),
1442714509 utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
1442814510 utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
@@ -14453,6 +14535,8 @@ defmodule Obj6 do
1445314535 def to_map(struct) do
1445414536 %{
1445514537 "dummy" => struct.dummy,
14538+ "unsigned" => Unsigned.to_map(struct.unsigned),
14539+ "ushort" => Ushort.to_map(struct.ushort),
1445614540 "using" => Using.to_map(struct.using),
1445714541 "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
1445814542 "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
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 , KSerializer
280280 , SelfClass
@@ -284,6 +284,7 @@ module QuickType exposing
284284 , Type
285285 , PrimitiveKind
286286 , TypeClass
287+ , Select
287288 , Self
288289 , Sendable
289290 , SerialDescriptor
@@ -319,6 +320,7 @@ module QuickType exposing
319320 , TimeOnly
320321 , TimeOnlyConverter
321322 , TimeZone
323+ , ToDict
322324 , ToJSON
323325 , ToString
324326 , TopLevel
@@ -337,11 +339,11 @@ module QuickType exposing
337339 , Union
338340 , Unowned
339341 , Unsafe
340- , Unsigned
341342 , UseSerializers
342- , Ushort
343343 , Obj6
344344 , Where
345+ , Unsigned
346+ , Ushort
345347 , Using
346348 , Utf8JSONReader
347349 , Utf8JSONWriter
@@ -755,13 +757,13 @@ type alias Obj2 =
755757 , formatException : FormatException
756758 , friend : Friend
757759 , from : From
760+ , fromDict : FromDict
758761 , fromJSON : FromJSON
759762 , func : Func
760763 , function : Function
761764 , get : Get
762765 , global : Global
763766 , go : Go
764- , goto : Goto
765767 , obj2Decoder : Decoder
766768 , obj2Else : Else
767769 , obj2Exposing : Exposing
@@ -981,6 +983,10 @@ type alias From =
981983 { from : Int
982984 }
983985
986+type alias FromDict =
987+ { fromDict : Int
988+ }
989+
984990 type alias FromJSON =
985991 { fromJSON : Int
986992 }
@@ -1005,10 +1011,6 @@ type alias Go =
10051011 { go : Int
10061012 }
10071013
1008-type alias Goto =
1009- { goto : Int
1010- }
1011-
10121014 type alias Decoder =
10131015 { decoderDecoder : Int
10141016 }
@@ -1031,6 +1033,7 @@ type alias FloatClass =
10311033
10321034 type alias Obj3 =
10331035 { dummy : Int
1036+ , goto : Goto
10341037 , guard : Guard
10351038 , hasOwnProperty : HasOwnProperty
10361039 , hashCode : HashCode
@@ -1087,7 +1090,6 @@ type alias Obj3 =
10871090 , newtonsoft : Newtonsoft
10881091 , nil : Nil
10891092 , no : No
1090- , noexcept : Noexcept
10911093 , obj3If : If
10921094 , obj3Import : Import
10931095 , obj3In : In
@@ -1097,6 +1099,10 @@ type alias Obj3 =
10971099 , obj3Module : Module
10981100 }
10991101
1102+type alias Goto =
1103+ { goto : Int
1104+ }
1105+
11001106 type alias Guard =
11011107 { guard : Int
11021108 }
@@ -1321,10 +1327,6 @@ type alias No =
13211327 { no : Int
13221328 }
13231329
1324-type alias Noexcept =
1325- { noexcept : Int
1326- }
1327-
13281330 type alias If =
13291331 { ifIf : Int
13301332 }
@@ -1356,6 +1358,7 @@ type alias Module =
13561358 type alias Obj4 =
13571359 { dummy : Int
13581360 , noSuchMethod : NoSuchMethod
1361+ , noexcept : Noexcept
13591362 , nonatomic : Nonatomic
13601363 , none : None
13611364 , nonlocal : Nonlocal
@@ -1418,13 +1421,16 @@ type alias Obj4 =
14181421 , sbyte : Sbyte
14191422 , sealed : Sealed
14201423 , sel : Sel
1421- , select : Select
14221424 }
14231425
14241426 type alias NoSuchMethod =
14251427 { noSuchMethod : Int
14261428 }
14271429
1430+type alias Noexcept =
1431+ { noexcept : Int
1432+ }
1433+
14281434 type alias Nonatomic =
14291435 { nonatomic : Int
14301436 }
@@ -1673,10 +1679,6 @@ type alias Sel =
16731679 { sel : Int
16741680 }
16751681
1676-type alias Select =
1677- { select : Int
1678- }
1679-
16801682 type alias Obj5 =
16811683 { dummy : Int
16821684 , kSerializer : KSerializer
@@ -1687,6 +1689,7 @@ type alias Obj5 =
16871689 , obj5Type : Type
16881690 , primitiveKind : PrimitiveKind
16891691 , purpleType : TypeClass
1692+ , select : Select
16901693 , self : Self
16911694 , sendable : Sendable
16921695 , serialDescriptor : SerialDescriptor
@@ -1722,6 +1725,7 @@ type alias Obj5 =
17221725 , timeOnly : TimeOnly
17231726 , timeOnlyConverter : TimeOnlyConverter
17241727 , timeZone : TimeZone
1728+ , toDict : ToDict
17251729 , toJSON : ToJSON
17261730 , toString : ToString
17271731 , topLevel : TopLevel
@@ -1740,9 +1744,7 @@ type alias Obj5 =
17401744 , union : Union
17411745 , unowned : Unowned
17421746 , unsafe : Unsafe
1743- , unsigned : Unsigned
17441747 , useSerializers : UseSerializers
1745- , ushort : Ushort
17461748 }
17471749
17481750 type alias KSerializer =
@@ -1777,6 +1779,10 @@ type alias TypeClass =
17771779 { typeType : Int
17781780 }
17791781
1782+type alias Select =
1783+ { select : Int
1784+ }
1785+
17801786 type alias Self =
17811787 { self : Int
17821788 }
@@ -1917,6 +1923,10 @@ type alias TimeZone =
19171923 { timeZone : Int
19181924 }
19191925
1926+type alias ToDict =
1927+ { toDict : Int
1928+ }
1929+
19201930 type alias ToJSON =
19211931 { toJSON : Int
19221932 }
@@ -1989,21 +1999,15 @@ type alias Unsafe =
19891999 { unsafe : Int
19902000 }
19912001
1992-type alias Unsigned =
1993- { unsigned : Int
1994- }
1995-
19962002 type alias UseSerializers =
19972003 { useSerializers : Int
19982004 }
19992005
2000-type alias Ushort =
2001- { ushort : Int
2002- }
2003-
20042006 type alias Obj6 =
20052007 { dummy : Int
20062008 , obj6Where : Where
2009+ , unsigned : Unsigned
2010+ , ushort : Ushort
20072011 , using : Using
20082012 , utf8JSONReader : Utf8JSONReader
20092013 , utf8JSONWriter : Utf8JSONWriter
@@ -2027,6 +2031,14 @@ type alias Where =
20272031 { whereWhere : Int
20282032 }
20292033
2034+type alias Unsigned =
2035+ { unsigned : Int
2036+ }
2037+
2038+type alias Ushort =
2039+ { ushort : Int
2040+ }
2041+
20302042 type alias Using =
20312043 { using : Int
20322044 }
@@ -3028,13 +3040,13 @@ obj2 =
30283040 |> Jpipe.required "FormatException" formatException
30293041 |> Jpipe.required "friend" friend
30303042 |> Jpipe.required "from" from
3043+ |> Jpipe.required "from_dict" fromDict
30313044 |> Jpipe.required "from_json" fromJSON
30323045 |> Jpipe.required "func" func
30333046 |> Jpipe.required "function" function
30343047 |> Jpipe.required "get" get
30353048 |> Jpipe.required "global" global
30363049 |> Jpipe.required "go" go
3037- |> Jpipe.required "goto" goto
30383050 |> Jpipe.required "Decoder" purpleDecoder
30393051 |> Jpipe.required "else" purpleElse
30403052 |> Jpipe.required "exposing" purpleExposing
@@ -3097,13 +3109,13 @@ encodeObj2 x =
30973109 , ("FormatException", encodeFormatException x.formatException)
30983110 , ("friend", encodeFriend x.friend)
30993111 , ("from", encodeFrom x.from)
3112+ , ("from_dict", encodeFromDict x.fromDict)
31003113 , ("from_json", encodeFromJSON x.fromJSON)
31013114 , ("func", encodeFunc x.func)
31023115 , ("function", encodeFunction x.function)
31033116 , ("get", encodeGet x.get)
31043117 , ("global", encodeGlobal x.global)
31053118 , ("go", encodeGo x.go)
3106- , ("goto", encodeGoto x.goto)
31073119 , ("Decoder", encodeDecoder x.obj2Decoder)
31083120 , ("else", encodeElse x.obj2Else)
31093121 , ("exposing", encodeExposing x.obj2Exposing)
@@ -3698,6 +3710,17 @@ encodeFrom x =
36983710 [ ("from", Jenc.int x.from)
36993711 ]
37003712
3713+fromDict : Jdec.Decoder FromDict
3714+fromDict =
3715+ Jdec.succeed FromDict
3716+ |> Jpipe.required "from_dict" Jdec.int
3717+
3718+encodeFromDict : FromDict -> Jenc.Value
3719+encodeFromDict x =
3720+ Jenc.object
3721+ [ ("from_dict", Jenc.int x.fromDict)
3722+ ]
3723+
37013724 fromJSON : Jdec.Decoder FromJSON
37023725 fromJSON =
37033726 Jdec.succeed FromJSON
@@ -3764,17 +3787,6 @@ encodeGo x =
37643787 [ ("go", Jenc.int x.go)
37653788 ]
37663789
3767-goto : Jdec.Decoder Goto
3768-goto =
3769- Jdec.succeed Goto
3770- |> Jpipe.required "goto" Jdec.int
3771-
3772-encodeGoto : Goto -> Jenc.Value
3773-encodeGoto x =
3774- Jenc.object
3775- [ ("goto", Jenc.int x.goto)
3776- ]
3777-
37783790 purpleDecoder : Jdec.Decoder Decoder
37793791 purpleDecoder =
37803792 Jdec.succeed Decoder
@@ -3834,6 +3846,7 @@ obj3 : Jdec.Decoder Obj3
38343846 obj3 =
38353847 Jdec.succeed Obj3
38363848 |> Jpipe.required "dummy" Jdec.int
3849+ |> Jpipe.required "goto" goto
38373850 |> Jpipe.required "guard" guard
38383851 |> Jpipe.required "hasOwnProperty" hasOwnProperty
38393852 |> Jpipe.required "hashCode" hashCode
@@ -3890,7 +3903,6 @@ obj3 =
38903903 |> Jpipe.required "newtonsoft" newtonsoft
38913904 |> Jpipe.required "nil" nil
38923905 |> Jpipe.required "NO" no
3893- |> Jpipe.required "noexcept" noexcept
38943906 |> Jpipe.required "if" purpleIf
38953907 |> Jpipe.required "import" purpleImport
38963908 |> Jpipe.required "in" purpleIn
@@ -3903,6 +3915,7 @@ encodeObj3 : Obj3 -> Jenc.Value
39033915 encodeObj3 x =
39043916 Jenc.object
39053917 [ ("dummy", Jenc.int x.dummy)
3918+ , ("goto", encodeGoto x.goto)
39063919 , ("guard", encodeGuard x.guard)
39073920 , ("hasOwnProperty", encodeHasOwnProperty x.hasOwnProperty)
39083921 , ("hashCode", encodeHashCode x.hashCode)
@@ -3959,7 +3972,6 @@ encodeObj3 x =
39593972 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
39603973 , ("nil", encodeNil x.nil)
39613974 , ("NO", encodeNo x.no)
3962- , ("noexcept", encodeNoexcept x.noexcept)
39633975 , ("if", encodeIf x.obj3If)
39643976 , ("import", encodeImport x.obj3Import)
39653977 , ("in", encodeIn x.obj3In)
@@ -3969,6 +3981,17 @@ encodeObj3 x =
39693981 , ("module", encodeModule x.obj3Module)
39703982 ]
39713983
3984+goto : Jdec.Decoder Goto
3985+goto =
3986+ Jdec.succeed Goto
3987+ |> Jpipe.required "goto" Jdec.int
3988+
3989+encodeGoto : Goto -> Jenc.Value
3990+encodeGoto x =
3991+ Jenc.object
3992+ [ ("goto", Jenc.int x.goto)
3993+ ]
3994+
39723995 guard : Jdec.Decoder Guard
39733996 guard =
39743997 Jdec.succeed Guard
@@ -4585,17 +4608,6 @@ encodeNo x =
45854608 [ ("NO", Jenc.int x.no)
45864609 ]
45874610
4588-noexcept : Jdec.Decoder Noexcept
4589-noexcept =
4590- Jdec.succeed Noexcept
4591- |> Jpipe.required "noexcept" Jdec.int
4592-
4593-encodeNoexcept : Noexcept -> Jenc.Value
4594-encodeNoexcept x =
4595- Jenc.object
4596- [ ("noexcept", Jenc.int x.noexcept)
4597- ]
4598-
45994611 purpleIf : Jdec.Decoder If
46004612 purpleIf =
46014613 Jdec.succeed If
@@ -4678,6 +4690,7 @@ obj4 =
46784690 Jdec.succeed Obj4
46794691 |> Jpipe.required "dummy" Jdec.int
46804692 |> Jpipe.required "noSuchMethod" noSuchMethod
4693+ |> Jpipe.required "noexcept" noexcept
46814694 |> Jpipe.required "nonatomic" nonatomic
46824695 |> Jpipe.required "None" none
46834696 |> Jpipe.required "nonlocal" nonlocal
@@ -4740,13 +4753,13 @@ obj4 =
47404753 |> Jpipe.required "sbyte" sbyte
47414754 |> Jpipe.required "sealed" sealed
47424755 |> Jpipe.required "SEL" sel
4743- |> Jpipe.required "select" select
47444756
47454757 encodeObj4 : Obj4 -> Jenc.Value
47464758 encodeObj4 x =
47474759 Jenc.object
47484760 [ ("dummy", Jenc.int x.dummy)
47494761 , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
4762+ , ("noexcept", encodeNoexcept x.noexcept)
47504763 , ("nonatomic", encodeNonatomic x.nonatomic)
47514764 , ("None", encodeNone x.none)
47524765 , ("nonlocal", encodeNonlocal x.nonlocal)
@@ -4809,7 +4822,6 @@ encodeObj4 x =
48094822 , ("sbyte", encodeSbyte x.sbyte)
48104823 , ("sealed", encodeSealed x.sealed)
48114824 , ("SEL", encodeSel x.sel)
4812- , ("select", encodeSelect x.select)
48134825 ]
48144826
48154827 noSuchMethod : Jdec.Decoder NoSuchMethod
@@ -4823,6 +4835,17 @@ encodeNoSuchMethod x =
48234835 [ ("noSuchMethod", Jenc.int x.noSuchMethod)
48244836 ]
48254837
4838+noexcept : Jdec.Decoder Noexcept
4839+noexcept =
4840+ Jdec.succeed Noexcept
4841+ |> Jpipe.required "noexcept" Jdec.int
4842+
4843+encodeNoexcept : Noexcept -> Jenc.Value
4844+encodeNoexcept x =
4845+ Jenc.object
4846+ [ ("noexcept", Jenc.int x.noexcept)
4847+ ]
4848+
48264849 nonatomic : Jdec.Decoder Nonatomic
48274850 nonatomic =
48284851 Jdec.succeed Nonatomic
@@ -5505,17 +5528,6 @@ encodeSel x =
55055528 [ ("SEL", Jenc.int x.sel)
55065529 ]
55075530
5508-select : Jdec.Decoder Select
5509-select =
5510- Jdec.succeed Select
5511- |> Jpipe.required "select" Jdec.int
5512-
5513-encodeSelect : Select -> Jenc.Value
5514-encodeSelect x =
5515- Jenc.object
5516- [ ("select", Jenc.int x.select)
5517- ]
5518-
55195531 obj5 : Jdec.Decoder Obj5
55205532 obj5 =
55215533 Jdec.succeed Obj5
@@ -5528,6 +5540,7 @@ obj5 =
55285540 |> Jpipe.required "Type" purpleType
55295541 |> Jpipe.required "PrimitiveKind" primitiveKind
55305542 |> Jpipe.required "type" typeClass
5543+ |> Jpipe.required "select" select
55315544 |> Jpipe.required "Self" self
55325545 |> Jpipe.required "Sendable" sendable
55335546 |> Jpipe.required "SerialDescriptor" serialDescriptor
@@ -5563,6 +5576,7 @@ obj5 =
55635576 |> Jpipe.required "TimeOnly" timeOnly
55645577 |> Jpipe.required "TimeOnlyConverter" timeOnlyConverter
55655578 |> Jpipe.required "TimeZone" timeZone
5579+ |> Jpipe.required "to_dict" toDict
55665580 |> Jpipe.required "to_json" toJSON
55675581 |> Jpipe.required "toString" toString
55685582 |> Jpipe.required "top_level" topLevel
@@ -5581,9 +5595,7 @@ obj5 =
55815595 |> Jpipe.required "union" union
55825596 |> Jpipe.required "unowned" unowned
55835597 |> Jpipe.required "unsafe" unsafe
5584- |> Jpipe.required "unsigned" unsigned
55855598 |> Jpipe.required "UseSerializers" useSerializers
5586- |> Jpipe.required "ushort" ushort
55875599
55885600 encodeObj5 : Obj5 -> Jenc.Value
55895601 encodeObj5 x =
@@ -5597,6 +5609,7 @@ encodeObj5 x =
55975609 , ("Type", encodeType x.obj5Type)
55985610 , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind)
55995611 , ("type", encodeTypeClass x.purpleType)
5612+ , ("select", encodeSelect x.select)
56005613 , ("Self", encodeSelf x.self)
56015614 , ("Sendable", encodeSendable x.sendable)
56025615 , ("SerialDescriptor", encodeSerialDescriptor x.serialDescriptor)
@@ -5632,6 +5645,7 @@ encodeObj5 x =
56325645 , ("TimeOnly", encodeTimeOnly x.timeOnly)
56335646 , ("TimeOnlyConverter", encodeTimeOnlyConverter x.timeOnlyConverter)
56345647 , ("TimeZone", encodeTimeZone x.timeZone)
5648+ , ("to_dict", encodeToDict x.toDict)
56355649 , ("to_json", encodeToJSON x.toJSON)
56365650 , ("toString", encodeToString x.toString)
56375651 , ("top_level", encodeTopLevel x.topLevel)
@@ -5650,9 +5664,7 @@ encodeObj5 x =
56505664 , ("union", encodeUnion x.union)
56515665 , ("unowned", encodeUnowned x.unowned)
56525666 , ("unsafe", encodeUnsafe x.unsafe)
5653- , ("unsigned", encodeUnsigned x.unsigned)
56545667 , ("UseSerializers", encodeUseSerializers x.useSerializers)
5655- , ("ushort", encodeUshort x.ushort)
56565668 ]
56575669
56585670 kSerializer : Jdec.Decoder KSerializer
@@ -5743,6 +5755,17 @@ encodeTypeClass x =
57435755 [ ("type", Jenc.int x.typeType)
57445756 ]
57455757
5758+select : Jdec.Decoder Select
5759+select =
5760+ Jdec.succeed Select
5761+ |> Jpipe.required "select" Jdec.int
5762+
5763+encodeSelect : Select -> Jenc.Value
5764+encodeSelect x =
5765+ Jenc.object
5766+ [ ("select", Jenc.int x.select)
5767+ ]
5768+
57465769 self : Jdec.Decoder Self
57475770 self =
57485771 Jdec.succeed Self
@@ -6128,6 +6151,17 @@ encodeTimeZone x =
61286151 [ ("TimeZone", Jenc.int x.timeZone)
61296152 ]
61306153
6154+toDict : Jdec.Decoder ToDict
6155+toDict =
6156+ Jdec.succeed ToDict
6157+ |> Jpipe.required "to_dict" Jdec.int
6158+
6159+encodeToDict : ToDict -> Jenc.Value
6160+encodeToDict x =
6161+ Jenc.object
6162+ [ ("to_dict", Jenc.int x.toDict)
6163+ ]
6164+
61316165 toJSON : Jdec.Decoder ToJSON
61326166 toJSON =
61336167 Jdec.succeed ToJSON
@@ -6326,17 +6360,6 @@ encodeUnsafe x =
63266360 [ ("unsafe", Jenc.int x.unsafe)
63276361 ]
63286362
6329-unsigned : Jdec.Decoder Unsigned
6330-unsigned =
6331- Jdec.succeed Unsigned
6332- |> Jpipe.required "unsigned" Jdec.int
6333-
6334-encodeUnsigned : Unsigned -> Jenc.Value
6335-encodeUnsigned x =
6336- Jenc.object
6337- [ ("unsigned", Jenc.int x.unsigned)
6338- ]
6339-
63406363 useSerializers : Jdec.Decoder UseSerializers
63416364 useSerializers =
63426365 Jdec.succeed UseSerializers
@@ -6348,22 +6371,13 @@ encodeUseSerializers x =
63486371 [ ("UseSerializers", Jenc.int x.useSerializers)
63496372 ]
63506373
6351-ushort : Jdec.Decoder Ushort
6352-ushort =
6353- Jdec.succeed Ushort
6354- |> Jpipe.required "ushort" Jdec.int
6355-
6356-encodeUshort : Ushort -> Jenc.Value
6357-encodeUshort x =
6358- Jenc.object
6359- [ ("ushort", Jenc.int x.ushort)
6360- ]
6361-
63626374 obj6 : Jdec.Decoder Obj6
63636375 obj6 =
63646376 Jdec.succeed Obj6
63656377 |> Jpipe.required "dummy" Jdec.int
63666378 |> Jpipe.required "where" purpleWhere
6379+ |> Jpipe.required "unsigned" unsigned
6380+ |> Jpipe.required "ushort" ushort
63676381 |> Jpipe.required "using" using
63686382 |> Jpipe.required "Utf8JsonReader" utf8JSONReader
63696383 |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
@@ -6387,6 +6401,8 @@ encodeObj6 x =
63876401 Jenc.object
63886402 [ ("dummy", Jenc.int x.dummy)
63896403 , ("where", encodeWhere x.obj6Where)
6404+ , ("unsigned", encodeUnsigned x.unsigned)
6405+ , ("ushort", encodeUshort x.ushort)
63906406 , ("using", encodeUsing x.using)
63916407 , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
63926408 , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
@@ -6417,6 +6433,28 @@ encodeWhere x =
64176433 [ ("where", Jenc.int x.whereWhere)
64186434 ]
64196435
6436+unsigned : Jdec.Decoder Unsigned
6437+unsigned =
6438+ Jdec.succeed Unsigned
6439+ |> Jpipe.required "unsigned" Jdec.int
6440+
6441+encodeUnsigned : Unsigned -> Jenc.Value
6442+encodeUnsigned x =
6443+ Jenc.object
6444+ [ ("unsigned", Jenc.int x.unsigned)
6445+ ]
6446+
6447+ushort : Jdec.Decoder Ushort
6448+ushort =
6449+ Jdec.succeed Ushort
6450+ |> Jpipe.required "ushort" Jdec.int
6451+
6452+encodeUshort : Ushort -> Jenc.Value
6453+encodeUshort x =
6454+ Jenc.object
6455+ [ ("ushort", Jenc.int x.ushort)
6456+ ]
6457+
64206458 using : Jdec.Decoder Using
64216459 using =
64226460 Jdec.succeed Using
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 KSerializer: KSerializer;
13241324 PrimitiveKind: PrimitiveKind;
@@ -1339,6 +1339,7 @@ export type Obj5 = {
13391339 Type: Type;
13401340 UseSerializers: UseSerializers;
13411341 dummy: number;
1342+ select: Select;
13421343 self: SelfClass;
13431344 serialize: Serialize;
13441345 set: Set;
@@ -1365,6 +1366,7 @@ export type Obj5 = {
13651366 throw: Throw;
13661367 throws: Throws;
13671368 toString: ToString;
1369+ to_dict: ToDict;
13681370 to_json: ToJSON;
13691371 top_level: TopLevelClass;
13701372 transient: Transient;
@@ -1383,8 +1385,6 @@ export type Obj5 = {
13831385 union: Union;
13841386 unowned: Unowned;
13851387 unsafe: Unsafe;
1386- unsigned: Unsigned;
1387- ushort: Ushort;
13881388 };
13891389
13901390 export type KSerializer = {
@@ -1459,6 +1459,10 @@ export type UseSerializers = {
14591459 UseSerializers: number;
14601460 };
14611461
1462+export type Select = {
1463+ select: number;
1464+};
1465+
14621466 export type SelfClass = {
14631467 self: number;
14641468 };
@@ -1563,6 +1567,10 @@ export type ToString = {
15631567 toString: number;
15641568 };
15651569
1570+export type ToDict = {
1571+ to_dict: number;
1572+};
1573+
15661574 export type ToJSON = {
15671575 to_json: number;
15681576 };
@@ -1635,20 +1643,14 @@ export type Unsafe = {
16351643 unsafe: number;
16361644 };
16371645
1638-export type Unsigned = {
1639- unsigned: number;
1640-};
1641-
1642-export type Ushort = {
1643- ushort: number;
1644-};
1645-
16461646 export type Obj6 = {
16471647 UUID: UUID;
16481648 Utf8JsonReader: Utf8JSONReader;
16491649 Utf8JsonWriter: Utf8JSONWriter;
16501650 YES: Yes;
16511651 dummy: number;
1652+ unsigned: Unsigned;
1653+ ushort: Ushort;
16521654 using: Using;
16531655 var: Var;
16541656 virtual: Virtual;
@@ -1681,6 +1683,14 @@ export type Yes = {
16811683 YES: number;
16821684 };
16831685
1686+export type Unsigned = {
1687+ unsigned: number;
1688+};
1689+
1690+export type Ushort = {
1691+ ushort: number;
1692+};
1693+
16841694 export type Using = {
16851695 using: number;
16861696 };
@@ -2250,13 +2260,13 @@ const typeMap: any = {
22502260 { json: "foreach", js: "foreach", typ: r("Foreach") },
22512261 { json: "friend", js: "friend", typ: r("Friend") },
22522262 { json: "from", js: "from", typ: r("From") },
2263+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22532264 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22542265 { json: "func", js: "func", typ: r("Func") },
22552266 { json: "function", js: "function", typ: r("Function") },
22562267 { json: "get", js: "get", typ: r("Get") },
22572268 { json: "global", js: "global", typ: r("Global") },
22582269 { json: "go", js: "go", typ: r("Go") },
2259- { json: "goto", js: "goto", typ: r("Goto") },
22602270 ], false),
22612271 "DateFormatter": o([
22622272 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2429,6 +2439,9 @@ const typeMap: any = {
24292439 "From": o([
24302440 { json: "from", js: "from", typ: i(0) },
24312441 ], false),
2442+ "FromDict": o([
2443+ { json: "from_dict", js: "from_dict", typ: i(0) },
2444+ ], false),
24322445 "FromJSON": o([
24332446 { json: "from_json", js: "from_json", typ: i(0) },
24342447 ], false),
@@ -2447,9 +2460,6 @@ const typeMap: any = {
24472460 "Go": o([
24482461 { json: "go", js: "go", typ: i(0) },
24492462 ], false),
2450- "Goto": o([
2451- { json: "goto", js: "goto", typ: i(0) },
2452- ], false),
24532463 "Obj3": o([
24542464 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24552465 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2470,6 +2480,7 @@ const typeMap: any = {
24702480 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24712481 { json: "NO", js: "NO", typ: r("No") },
24722482 { json: "dummy", js: "dummy", typ: i(0) },
2483+ { json: "goto", js: "goto", typ: r("Goto") },
24732484 { json: "guard", js: "guard", typ: r("Guard") },
24742485 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24752486 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2515,7 +2526,6 @@ const typeMap: any = {
25152526 { json: "new", js: "new", typ: r("New") },
25162527 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25172528 { json: "nil", js: "nil", typ: r("Nil") },
2518- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25192529 ], false),
25202530 "Hashable": o([
25212531 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2571,6 +2581,9 @@ const typeMap: any = {
25712581 "No": o([
25722582 { json: "NO", js: "NO", typ: i(0) },
25732583 ], false),
2584+ "Goto": o([
2585+ { json: "goto", js: "goto", typ: i(0) },
2586+ ], false),
25742587 "Guard": o([
25752588 { json: "guard", js: "guard", typ: i(0) },
25762589 ], false),
@@ -2706,9 +2719,6 @@ const typeMap: any = {
27062719 "Nil": o([
27072720 { json: "nil", js: "nil", typ: i(0) },
27082721 ], false),
2709- "Noexcept": o([
2710- { json: "noexcept", js: "noexcept", typ: i(0) },
2711- ], false),
27122722 "Obj4": o([
27132723 { json: "NSError", js: "NSError", typ: r("NSError") },
27142724 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2721,6 +2731,7 @@ const typeMap: any = {
27212731 { json: "SEL", js: "SEL", typ: r("Sel") },
27222732 { json: "dummy", js: "dummy", typ: i(0) },
27232733 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2734+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27242735 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27252736 { json: "none", js: "none", typ: r("NoneClass") },
27262737 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2774,7 +2785,6 @@ const typeMap: any = {
27742785 { json: "s", js: "s", typ: r("S") },
27752786 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27762787 { json: "sealed", js: "sealed", typ: r("Sealed") },
2777- { json: "select", js: "select", typ: r("Select") },
27782788 ], false),
27792789 "NSError": o([
27802790 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2806,6 +2816,9 @@ const typeMap: any = {
28062816 "NoSuchMethod": o([
28072817 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28082818 ], false),
2819+ "Noexcept": o([
2820+ { json: "noexcept", js: "noexcept", typ: i(0) },
2821+ ], false),
28092822 "Nonatomic": o([
28102823 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28112824 ], false),
@@ -2965,9 +2978,6 @@ const typeMap: any = {
29652978 "Sealed": o([
29662979 { json: "sealed", js: "sealed", typ: i(0) },
29672980 ], false),
2968- "Select": o([
2969- { json: "select", js: "select", typ: i(0) },
2970- ], false),
29712981 "Obj5": o([
29722982 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29732983 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -2988,6 +2998,7 @@ const typeMap: any = {
29882998 { json: "Type", js: "Type", typ: r("Type") },
29892999 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29903000 { json: "dummy", js: "dummy", typ: i(0) },
3001+ { json: "select", js: "select", typ: r("Select") },
29913002 { json: "self", js: "self", typ: r("SelfClass") },
29923003 { json: "serialize", js: "serialize", typ: r("Serialize") },
29933004 { json: "set", js: "set", typ: r("Set") },
@@ -3014,6 +3025,7 @@ const typeMap: any = {
30143025 { json: "throw", js: "throw", typ: r("Throw") },
30153026 { json: "throws", js: "throws", typ: r("Throws") },
30163027 { json: "toString", js: "toString", typ: r("ToString") },
3028+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
30173029 { json: "to_json", js: "to_json", typ: r("ToJSON") },
30183030 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
30193031 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3032,8 +3044,6 @@ const typeMap: any = {
30323044 { json: "union", js: "union", typ: r("Union") },
30333045 { json: "unowned", js: "unowned", typ: r("Unowned") },
30343046 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3035- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3036- { json: "ushort", js: "ushort", typ: r("Ushort") },
30373047 ], false),
30383048 "KSerializer": o([
30393049 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3089,6 +3099,9 @@ const typeMap: any = {
30893099 "UseSerializers": o([
30903100 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30913101 ], false),
3102+ "Select": o([
3103+ { json: "select", js: "select", typ: i(0) },
3104+ ], false),
30923105 "SelfClass": o([
30933106 { json: "self", js: "self", typ: i(0) },
30943107 ], false),
@@ -3167,6 +3180,9 @@ const typeMap: any = {
31673180 "ToString": o([
31683181 { json: "toString", js: "toString", typ: i(0) },
31693182 ], false),
3183+ "ToDict": o([
3184+ { json: "to_dict", js: "to_dict", typ: i(0) },
3185+ ], false),
31703186 "ToJSON": o([
31713187 { json: "to_json", js: "to_json", typ: i(0) },
31723188 ], false),
@@ -3221,18 +3237,14 @@ const typeMap: any = {
32213237 "Unsafe": o([
32223238 { json: "unsafe", js: "unsafe", typ: i(0) },
32233239 ], false),
3224- "Unsigned": o([
3225- { json: "unsigned", js: "unsigned", typ: i(0) },
3226- ], false),
3227- "Ushort": o([
3228- { json: "ushort", js: "ushort", typ: i(0) },
3229- ], false),
32303240 "Obj6": o([
32313241 { json: "UUID", js: "UUID", typ: r("UUID") },
32323242 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32333243 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32343244 { json: "YES", js: "YES", typ: r("Yes") },
32353245 { json: "dummy", js: "dummy", typ: i(0) },
3246+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3247+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32363248 { json: "using", js: "using", typ: r("Using") },
32373249 { json: "var", js: "var", typ: r("Var") },
32383250 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3260,6 +3272,12 @@ const typeMap: any = {
32603272 "Yes": o([
32613273 { json: "YES", js: "YES", typ: i(0) },
32623274 ], false),
3275+ "Unsigned": o([
3276+ { json: "unsigned", js: "unsigned", typ: i(0) },
3277+ ], false),
3278+ "Ushort": o([
3279+ { json: "ushort", js: "ushort", typ: i(0) },
3280+ ], false),
32633281 "Using": o([
32643282 { json: "using", js: "using", typ: i(0) },
32653283 ], 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,10 +1326,6 @@ 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 KSerializer KSerializer `json:"KSerializer"`
@@ -1333,6 +1333,7 @@ type Obj5 struct {
13331333 Obj5True TrueClass `json:"true"`
13341334 Obj5Type TypeClass `json:"type"`
13351335 PrimitiveKind PrimitiveKind `json:"PrimitiveKind"`
1336+ Select Select `json:"select"`
13361337 Self Self `json:"Self"`
13371338 Sendable Sendable `json:"Sendable"`
13381339 SerialDescriptor SerialDescriptor `json:"SerialDescriptor"`
@@ -1370,6 +1371,7 @@ type Obj5 struct {
13701371 TimeOnly TimeOnly `json:"TimeOnly"`
13711372 TimeOnlyConverter TimeOnlyConverter `json:"TimeOnlyConverter"`
13721373 TimeZone TimeZone `json:"TimeZone"`
1374+ ToDict ToDict `json:"to_dict"`
13731375 ToJSON ToJSON `json:"to_json"`
13741376 ToString ToString `json:"toString"`
13751377 TopLevel TopLevelClass `json:"top_level"`
@@ -1389,9 +1391,7 @@ type Obj5 struct {
13891391 Union Union `json:"union"`
13901392 Unowned Unowned `json:"unowned"`
13911393 Unsafe Unsafe `json:"unsafe"`
1392- Unsigned Unsigned `json:"unsigned"`
13931394 UseSerializers UseSerializers `json:"UseSerializers"`
1394- Ushort Ushort `json:"ushort"`
13951395 }
13961396
13971397 type KSerializer struct {
@@ -1414,6 +1414,10 @@ type PrimitiveKind struct {
14141414 PrimitiveKind int64 `json:"PrimitiveKind"`
14151415 }
14161416
1417+type Select struct {
1418+ Select int64 `json:"select"`
1419+}
1420+
14171421 type Self struct {
14181422 Self int64 `json:"Self"`
14191423 }
@@ -1562,6 +1566,10 @@ type TimeZone struct {
15621566 TimeZone int64 `json:"TimeZone"`
15631567 }
15641568
1569+type ToDict struct {
1570+ ToDict int64 `json:"to_dict"`
1571+}
1572+
15651573 type ToJSON struct {
15661574 ToJSON int64 `json:"to_json"`
15671575 }
@@ -1638,21 +1646,15 @@ type Unsafe struct {
16381646 Unsafe int64 `json:"unsafe"`
16391647 }
16401648
1641-type Unsigned struct {
1642- Unsigned int64 `json:"unsigned"`
1643-}
1644-
16451649 type UseSerializers struct {
16461650 UseSerializers int64 `json:"UseSerializers"`
16471651 }
16481652
1649-type Ushort struct {
1650- Ushort int64 `json:"ushort"`
1651-}
1652-
16531653 type Obj6 struct {
16541654 Dummy int64 `json:"dummy"`
16551655 UUID UUID `json:"UUID"`
1656+ Unsigned Unsigned `json:"unsigned"`
1657+ Ushort Ushort `json:"ushort"`
16561658 Using Using `json:"using"`
16571659 Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
16581660 Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
@@ -1676,6 +1678,14 @@ type UUID struct {
16761678 UUID int64 `json:"UUID"`
16771679 }
16781680
1681+type Unsigned struct {
1682+ Unsigned int64 `json:"unsigned"`
1683+}
1684+
1685+type Ushort struct {
1686+ Ushort int64 `json:"ushort"`
1687+}
1688+
16791689 type Using struct {
16801690 Using int64 `json:"using"`
16811691 }
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,7 +263,6 @@ module QuickType
262263 , Sbyte (..)
263264 , Sealed (..)
264265 , Sel (..)
265- , Select (..)
266266 , Obj5 (..)
267267 , KSerializer (..)
268268 , SelfClass (..)
@@ -271,6 +271,7 @@ module QuickType
271271 , Type (..)
272272 , PrimitiveKind (..)
273273 , TypeClass (..)
274+ , Select (..)
274275 , Self (..)
275276 , Sendable (..)
276277 , SerialDescriptor (..)
@@ -307,6 +308,7 @@ module QuickType
307308 , TimeOnly (..)
308309 , TimeOnlyConverter (..)
309310 , TimeZone (..)
311+ , ToDict (..)
310312 , ToJSONClass (..)
311313 , ToString (..)
312314 , TopLevel (..)
@@ -325,11 +327,11 @@ module QuickType
325327 , Union (..)
326328 , Unowned (..)
327329 , Unsafe (..)
328- , Unsigned (..)
329330 , UseSerializers (..)
330- , Ushort (..)
331331 , Obj6 (..)
332332 , Where (..)
333+ , Unsigned (..)
334+ , Ushort (..)
333335 , Using (..)
334336 , Utf8JSONReader (..)
335337 , Utf8JSONWriter (..)
@@ -746,13 +748,13 @@ data Obj2 = Obj2
746748 , formatExceptionObj2 :: FormatException
747749 , friendObj2 :: Friend
748750 , fromObj2 :: From
751+ , fromDictObj2 :: FromDict
749752 , fromJSONObj2 :: FromJSONClass
750753 , funcObj2 :: Func
751754 , functionObj2 :: Function
752755 , getObj2 :: Get
753756 , globalObj2 :: Global
754757 , goObj2 :: Go
755- , gotoObj2 :: Goto
756758 , obj2DefaultObj2 :: Default
757759 , obj2DoObj2 :: Do
758760 , obj2ElseObj2 :: Else
@@ -976,6 +978,10 @@ data From = From
976978 { fromFrom :: Int
977979 } deriving (Show)
978980
981+data FromDict = FromDict
982+ { fromDictFromDict :: Int
983+ } deriving (Show)
984+
979985 data FromJSONClass = FromJSONClass
980986 { fromJSONFromJSONClass :: Int
981987 } deriving (Show)
@@ -1000,10 +1006,6 @@ data Go = Go
10001006 { goGo :: Int
10011007 } deriving (Show)
10021008
1003-data Goto = Goto
1004- { gotoGoto :: Int
1005- } deriving (Show)
1006-
10071009 data Default = Default
10081010 { defaultDefaultDefault :: Int
10091011 } deriving (Show)
@@ -1022,6 +1024,7 @@ data Obj2False = Obj2False
10221024
10231025 data Obj3 = Obj3
10241026 { dummyObj3 :: Int
1027+ , gotoObj3 :: Goto
10251028 , guardObj3 :: Guard
10261029 , hasOwnPropertyObj3 :: HasOwnProperty
10271030 , hashCodeObj3 :: HashCode
@@ -1078,7 +1081,6 @@ data Obj3 = Obj3
10781081 , newtonsoftObj3 :: Newtonsoft
10791082 , nilObj3 :: Nil
10801083 , noObj3 :: No
1081- , noexceptObj3 :: Noexcept
10821084 , obj3IDObj3 :: ID
10831085 , obj3IfObj3 :: If
10841086 , obj3ImportObj3 :: Import
@@ -1088,6 +1090,10 @@ data Obj3 = Obj3
10881090 , obj3ModuleObj3 :: Module
10891091 } deriving (Show)
10901092
1093+data Goto = Goto
1094+ { gotoGoto :: Int
1095+ } deriving (Show)
1096+
10911097 data Guard = Guard
10921098 { guardGuard :: Int
10931099 } deriving (Show)
@@ -1312,10 +1318,6 @@ data No = No
13121318 { noNo :: Int
13131319 } deriving (Show)
13141320
1315-data Noexcept = Noexcept
1316- { noexceptNoexcept :: Int
1317- } deriving (Show)
1318-
13191321 data ID = ID
13201322 { idIDID :: Int
13211323 } deriving (Show)
@@ -1347,6 +1349,7 @@ data Module = Module
13471349 data Obj4 = Obj4
13481350 { dummyObj4 :: Int
13491351 , noSuchMethodObj4 :: NoSuchMethod
1352+ , noexceptObj4 :: Noexcept
13501353 , nonatomicObj4 :: Nonatomic
13511354 , noneObj4 :: None
13521355 , nonlocalObj4 :: Nonlocal
@@ -1409,13 +1412,16 @@ data Obj4 = Obj4
14091412 , sbyteObj4 :: Sbyte
14101413 , sealedObj4 :: Sealed
14111414 , selObj4 :: Sel
1412- , selectObj4 :: Select
14131415 } deriving (Show)
14141416
14151417 data NoSuchMethod = NoSuchMethod
14161418 { noSuchMethodNoSuchMethod :: Int
14171419 } deriving (Show)
14181420
1421+data Noexcept = Noexcept
1422+ { noexceptNoexcept :: Int
1423+ } deriving (Show)
1424+
14191425 data Nonatomic = Nonatomic
14201426 { nonatomicNonatomic :: Int
14211427 } deriving (Show)
@@ -1664,10 +1670,6 @@ data Sel = Sel
16641670 { selSel :: Int
16651671 } deriving (Show)
16661672
1667-data Select = Select
1668- { selectSelect :: Int
1669- } deriving (Show)
1670-
16711673 data Obj5 = Obj5
16721674 { dummyObj5 :: Int
16731675 , kSerializerObj5 :: KSerializer
@@ -1677,6 +1679,7 @@ data Obj5 = Obj5
16771679 , obj5TypeObj5 :: Type
16781680 , primitiveKindObj5 :: PrimitiveKind
16791681 , purpleTypeObj5 :: TypeClass
1682+ , selectObj5 :: Select
16801683 , selfObj5 :: Self
16811684 , sendableObj5 :: Sendable
16821685 , serialDescriptorObj5 :: SerialDescriptor
@@ -1713,6 +1716,7 @@ data Obj5 = Obj5
17131716 , timeOnlyObj5 :: TimeOnly
17141717 , timeOnlyConverterObj5 :: TimeOnlyConverter
17151718 , timeZoneObj5 :: TimeZone
1719+ , toDictObj5 :: ToDict
17161720 , toJSONObj5 :: ToJSONClass
17171721 , toStringObj5 :: ToString
17181722 , topLevelObj5 :: TopLevel
@@ -1731,9 +1735,7 @@ data Obj5 = Obj5
17311735 , unionObj5 :: Union
17321736 , unownedObj5 :: Unowned
17331737 , unsafeObj5 :: Unsafe
1734- , unsignedObj5 :: Unsigned
17351738 , useSerializersObj5 :: UseSerializers
1736- , ushortObj5 :: Ushort
17371739 } deriving (Show)
17381740
17391741 data KSerializer = KSerializer
@@ -1764,6 +1766,10 @@ data TypeClass = TypeClass
17641766 { typeTypeTypeClass :: Int
17651767 } deriving (Show)
17661768
1769+data Select = Select
1770+ { selectSelect :: Int
1771+ } deriving (Show)
1772+
17671773 data Self = Self
17681774 { selfSelf :: Int
17691775 } deriving (Show)
@@ -1908,6 +1914,10 @@ data TimeZone = TimeZone
19081914 { timeZoneTimeZone :: Int
19091915 } deriving (Show)
19101916
1917+data ToDict = ToDict
1918+ { toDictToDict :: Int
1919+ } deriving (Show)
1920+
19111921 data ToJSONClass = ToJSONClass
19121922 { toJSONToJSONClass :: Int
19131923 } deriving (Show)
@@ -1980,21 +1990,15 @@ data Unsafe = Unsafe
19801990 { unsafeUnsafe :: Int
19811991 } deriving (Show)
19821992
1983-data Unsigned = Unsigned
1984- { unsignedUnsigned :: Int
1985- } deriving (Show)
1986-
19871993 data UseSerializers = UseSerializers
19881994 { useSerializersUseSerializers :: Int
19891995 } deriving (Show)
19901996
1991-data Ushort = Ushort
1992- { ushortUshort :: Int
1993- } deriving (Show)
1994-
19951997 data Obj6 = Obj6
19961998 { dummyObj6 :: Int
19971999 , obj6WhereObj6 :: Where
2000+ , unsignedObj6 :: Unsigned
2001+ , ushortObj6 :: Ushort
19982002 , usingObj6 :: Using
19992003 , utf8JSONReaderObj6 :: Utf8JSONReader
20002004 , utf8JSONWriterObj6 :: Utf8JSONWriter
@@ -2018,6 +2022,14 @@ data Where = Where
20182022 { whereWhereWhere :: Int
20192023 } deriving (Show)
20202024
2025+data Unsigned = Unsigned
2026+ { unsignedUnsigned :: Int
2027+ } deriving (Show)
2028+
2029+data Ushort = Ushort
2030+ { ushortUshort :: Int
2031+ } deriving (Show)
2032+
20212033 data Using = Using
20222034 { usingUsing :: Int
20232035 } deriving (Show)
@@ -2890,7 +2902,7 @@ instance FromJSON ClassClass where
28902902 <$> v .: "class"
28912903
28922904 instance ToJSON Obj2 where
2893- 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) =
2905+ 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) =
28942906 object $ foldMap (maybe [] pure)
28952907 [ Just $ "DateFormatter" .= dateFormatterObj2
28962908 , Just $ "DateOnly" .= dateOnlyObj2
@@ -2946,13 +2958,13 @@ instance ToJSON Obj2 where
29462958 , Just $ "FormatException" .= formatExceptionObj2
29472959 , Just $ "friend" .= friendObj2
29482960 , Just $ "from" .= fromObj2
2961+ , Just $ "from_dict" .= fromDictObj2
29492962 , Just $ "from_json" .= fromJSONObj2
29502963 , Just $ "func" .= funcObj2
29512964 , Just $ "function" .= functionObj2
29522965 , Just $ "get" .= getObj2
29532966 , Just $ "global" .= globalObj2
29542967 , Just $ "go" .= goObj2
2955- , Just $ "goto" .= gotoObj2
29562968 , Just $ "default" .= obj2DefaultObj2
29572969 , Just $ "do" .= obj2DoObj2
29582970 , Just $ "else" .= obj2ElseObj2
@@ -3015,13 +3027,13 @@ instance FromJSON Obj2 where
30153027 <*> v .: "FormatException"
30163028 <*> v .: "friend"
30173029 <*> v .: "from"
3030+ <*> v .: "from_dict"
30183031 <*> v .: "from_json"
30193032 <*> v .: "func"
30203033 <*> v .: "function"
30213034 <*> v .: "get"
30223035 <*> v .: "global"
30233036 <*> v .: "go"
3024- <*> v .: "goto"
30253037 <*> v .: "default"
30263038 <*> v .: "do"
30273039 <*> v .: "else"
@@ -3567,6 +3579,16 @@ instance FromJSON From where
35673579 parseJSON (Object v) = From
35683580 <$> v .: "from"
35693581
3582+instance ToJSON FromDict where
3583+ toJSON (FromDict fromDictFromDict) =
3584+ object $ foldMap (maybe [] pure)
3585+ [ Just $ "from_dict" .= fromDictFromDict
3586+ ]
3587+
3588+instance FromJSON FromDict where
3589+ parseJSON (Object v) = FromDict
3590+ <$> v .: "from_dict"
3591+
35703592 instance ToJSON FromJSONClass where
35713593 toJSON (FromJSONClass fromJSONFromJSONClass) =
35723594 object $ foldMap (maybe [] pure)
@@ -3627,16 +3649,6 @@ instance FromJSON Go where
36273649 parseJSON (Object v) = Go
36283650 <$> v .: "go"
36293651
3630-instance ToJSON Goto where
3631- toJSON (Goto gotoGoto) =
3632- object $ foldMap (maybe [] pure)
3633- [ Just $ "goto" .= gotoGoto
3634- ]
3635-
3636-instance FromJSON Goto where
3637- parseJSON (Object v) = Goto
3638- <$> v .: "goto"
3639-
36403652 instance ToJSON Default where
36413653 toJSON (Default defaultDefaultDefault) =
36423654 object $ foldMap (maybe [] pure)
@@ -3678,9 +3690,10 @@ instance FromJSON Obj2False where
36783690 <$> v .: "false"
36793691
36803692 instance ToJSON Obj3 where
3681- 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) =
3693+ 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) =
36823694 object $ foldMap (maybe [] pure)
36833695 [ Just $ "dummy" .= dummyObj3
3696+ , Just $ "goto" .= gotoObj3
36843697 , Just $ "guard" .= guardObj3
36853698 , Just $ "hasOwnProperty" .= hasOwnPropertyObj3
36863699 , Just $ "hashCode" .= hashCodeObj3
@@ -3737,7 +3750,6 @@ instance ToJSON Obj3 where
37373750 , Just $ "newtonsoft" .= newtonsoftObj3
37383751 , Just $ "nil" .= nilObj3
37393752 , Just $ "NO" .= noObj3
3740- , Just $ "noexcept" .= noexceptObj3
37413753 , Just $ "id" .= obj3IDObj3
37423754 , Just $ "if" .= obj3IfObj3
37433755 , Just $ "import" .= obj3ImportObj3
@@ -3750,6 +3762,7 @@ instance ToJSON Obj3 where
37503762 instance FromJSON Obj3 where
37513763 parseJSON (Object v) = Obj3
37523764 <$> v .: "dummy"
3765+ <*> v .: "goto"
37533766 <*> v .: "guard"
37543767 <*> v .: "hasOwnProperty"
37553768 <*> v .: "hashCode"
@@ -3806,7 +3819,6 @@ instance FromJSON Obj3 where
38063819 <*> v .: "newtonsoft"
38073820 <*> v .: "nil"
38083821 <*> v .: "NO"
3809- <*> v .: "noexcept"
38103822 <*> v .: "id"
38113823 <*> v .: "if"
38123824 <*> v .: "import"
@@ -3815,6 +3827,16 @@ instance FromJSON Obj3 where
38153827 <*> v .: "let"
38163828 <*> v .: "module"
38173829
3830+instance ToJSON Goto where
3831+ toJSON (Goto gotoGoto) =
3832+ object $ foldMap (maybe [] pure)
3833+ [ Just $ "goto" .= gotoGoto
3834+ ]
3835+
3836+instance FromJSON Goto where
3837+ parseJSON (Object v) = Goto
3838+ <$> v .: "goto"
3839+
38183840 instance ToJSON Guard where
38193841 toJSON (Guard guardGuard) =
38203842 object $ foldMap (maybe [] pure)
@@ -4375,16 +4397,6 @@ instance FromJSON No where
43754397 parseJSON (Object v) = No
43764398 <$> v .: "NO"
43774399
4378-instance ToJSON Noexcept where
4379- toJSON (Noexcept noexceptNoexcept) =
4380- object $ foldMap (maybe [] pure)
4381- [ Just $ "noexcept" .= noexceptNoexcept
4382- ]
4383-
4384-instance FromJSON Noexcept where
4385- parseJSON (Object v) = Noexcept
4386- <$> v .: "noexcept"
4387-
43884400 instance ToJSON ID where
43894401 toJSON (ID idIDID) =
43904402 object $ foldMap (maybe [] pure)
@@ -4456,10 +4468,11 @@ instance FromJSON Module where
44564468 <$> v .: "module"
44574469
44584470 instance ToJSON Obj4 where
4459- 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) =
4471+ 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) =
44604472 object $ foldMap (maybe [] pure)
44614473 [ Just $ "dummy" .= dummyObj4
44624474 , Just $ "noSuchMethod" .= noSuchMethodObj4
4475+ , Just $ "noexcept" .= noexceptObj4
44634476 , Just $ "nonatomic" .= nonatomicObj4
44644477 , Just $ "None" .= noneObj4
44654478 , Just $ "nonlocal" .= nonlocalObj4
@@ -4522,13 +4535,13 @@ instance ToJSON Obj4 where
45224535 , Just $ "sbyte" .= sbyteObj4
45234536 , Just $ "sealed" .= sealedObj4
45244537 , Just $ "SEL" .= selObj4
4525- , Just $ "select" .= selectObj4
45264538 ]
45274539
45284540 instance FromJSON Obj4 where
45294541 parseJSON (Object v) = Obj4
45304542 <$> v .: "dummy"
45314543 <*> v .: "noSuchMethod"
4544+ <*> v .: "noexcept"
45324545 <*> v .: "nonatomic"
45334546 <*> v .: "None"
45344547 <*> v .: "nonlocal"
@@ -4591,7 +4604,6 @@ instance FromJSON Obj4 where
45914604 <*> v .: "sbyte"
45924605 <*> v .: "sealed"
45934606 <*> v .: "SEL"
4594- <*> v .: "select"
45954607
45964608 instance ToJSON NoSuchMethod where
45974609 toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
@@ -4603,6 +4615,16 @@ instance FromJSON NoSuchMethod where
46034615 parseJSON (Object v) = NoSuchMethod
46044616 <$> v .: "noSuchMethod"
46054617
4618+instance ToJSON Noexcept where
4619+ toJSON (Noexcept noexceptNoexcept) =
4620+ object $ foldMap (maybe [] pure)
4621+ [ Just $ "noexcept" .= noexceptNoexcept
4622+ ]
4623+
4624+instance FromJSON Noexcept where
4625+ parseJSON (Object v) = Noexcept
4626+ <$> v .: "noexcept"
4627+
46064628 instance ToJSON Nonatomic where
46074629 toJSON (Nonatomic nonatomicNonatomic) =
46084630 object $ foldMap (maybe [] pure)
@@ -5223,18 +5245,8 @@ instance FromJSON Sel where
52235245 parseJSON (Object v) = Sel
52245246 <$> v .: "SEL"
52255247
5226-instance ToJSON Select where
5227- toJSON (Select selectSelect) =
5228- object $ foldMap (maybe [] pure)
5229- [ Just $ "select" .= selectSelect
5230- ]
5231-
5232-instance FromJSON Select where
5233- parseJSON (Object v) = Select
5234- <$> v .: "select"
5235-
52365248 instance ToJSON Obj5 where
5237- toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 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 useSerializersObj5 ushortObj5) =
5249+ toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 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 useSerializersObj5) =
52385250 object $ foldMap (maybe [] pure)
52395251 [ Just $ "dummy" .= dummyObj5
52405252 , Just $ "KSerializer" .= kSerializerObj5
@@ -5244,6 +5256,7 @@ instance ToJSON Obj5 where
52445256 , Just $ "Type" .= obj5TypeObj5
52455257 , Just $ "PrimitiveKind" .= primitiveKindObj5
52465258 , Just $ "type" .= purpleTypeObj5
5259+ , Just $ "select" .= selectObj5
52475260 , Just $ "Self" .= selfObj5
52485261 , Just $ "Sendable" .= sendableObj5
52495262 , Just $ "SerialDescriptor" .= serialDescriptorObj5
@@ -5280,6 +5293,7 @@ instance ToJSON Obj5 where
52805293 , Just $ "TimeOnly" .= timeOnlyObj5
52815294 , Just $ "TimeOnlyConverter" .= timeOnlyConverterObj5
52825295 , Just $ "TimeZone" .= timeZoneObj5
5296+ , Just $ "to_dict" .= toDictObj5
52835297 , Just $ "to_json" .= toJSONObj5
52845298 , Just $ "toString" .= toStringObj5
52855299 , Just $ "top_level" .= topLevelObj5
@@ -5298,9 +5312,7 @@ instance ToJSON Obj5 where
52985312 , Just $ "union" .= unionObj5
52995313 , Just $ "unowned" .= unownedObj5
53005314 , Just $ "unsafe" .= unsafeObj5
5301- , Just $ "unsigned" .= unsignedObj5
53025315 , Just $ "UseSerializers" .= useSerializersObj5
5303- , Just $ "ushort" .= ushortObj5
53045316 ]
53055317
53065318 instance FromJSON Obj5 where
@@ -5313,6 +5325,7 @@ instance FromJSON Obj5 where
53135325 <*> v .: "Type"
53145326 <*> v .: "PrimitiveKind"
53155327 <*> v .: "type"
5328+ <*> v .: "select"
53165329 <*> v .: "Self"
53175330 <*> v .: "Sendable"
53185331 <*> v .: "SerialDescriptor"
@@ -5349,6 +5362,7 @@ instance FromJSON Obj5 where
53495362 <*> v .: "TimeOnly"
53505363 <*> v .: "TimeOnlyConverter"
53515364 <*> v .: "TimeZone"
5365+ <*> v .: "to_dict"
53525366 <*> v .: "to_json"
53535367 <*> v .: "toString"
53545368 <*> v .: "top_level"
@@ -5367,9 +5381,7 @@ instance FromJSON Obj5 where
53675381 <*> v .: "union"
53685382 <*> v .: "unowned"
53695383 <*> v .: "unsafe"
5370- <*> v .: "unsigned"
53715384 <*> v .: "UseSerializers"
5372- <*> v .: "ushort"
53735385
53745386 instance ToJSON KSerializer where
53755387 toJSON (KSerializer kSerializerKSerializer) =
@@ -5441,6 +5453,16 @@ instance FromJSON TypeClass where
54415453 parseJSON (Object v) = TypeClass
54425454 <$> v .: "type"
54435455
5456+instance ToJSON Select where
5457+ toJSON (Select selectSelect) =
5458+ object $ foldMap (maybe [] pure)
5459+ [ Just $ "select" .= selectSelect
5460+ ]
5461+
5462+instance FromJSON Select where
5463+ parseJSON (Object v) = Select
5464+ <$> v .: "select"
5465+
54445466 instance ToJSON Self where
54455467 toJSON (Self selfSelf) =
54465468 object $ foldMap (maybe [] pure)
@@ -5801,6 +5823,16 @@ instance FromJSON TimeZone where
58015823 parseJSON (Object v) = TimeZone
58025824 <$> v .: "TimeZone"
58035825
5826+instance ToJSON ToDict where
5827+ toJSON (ToDict toDictToDict) =
5828+ object $ foldMap (maybe [] pure)
5829+ [ Just $ "to_dict" .= toDictToDict
5830+ ]
5831+
5832+instance FromJSON ToDict where
5833+ parseJSON (Object v) = ToDict
5834+ <$> v .: "to_dict"
5835+
58045836 instance ToJSON ToJSONClass where
58055837 toJSON (ToJSONClass toJSONToJSONClass) =
58065838 object $ foldMap (maybe [] pure)
@@ -5981,16 +6013,6 @@ instance FromJSON Unsafe where
59816013 parseJSON (Object v) = Unsafe
59826014 <$> v .: "unsafe"
59836015
5984-instance ToJSON Unsigned where
5985- toJSON (Unsigned unsignedUnsigned) =
5986- object $ foldMap (maybe [] pure)
5987- [ Just $ "unsigned" .= unsignedUnsigned
5988- ]
5989-
5990-instance FromJSON Unsigned where
5991- parseJSON (Object v) = Unsigned
5992- <$> v .: "unsigned"
5993-
59946016 instance ToJSON UseSerializers where
59956017 toJSON (UseSerializers useSerializersUseSerializers) =
59966018 object $ foldMap (maybe [] pure)
@@ -6001,21 +6023,13 @@ instance FromJSON UseSerializers where
60016023 parseJSON (Object v) = UseSerializers
60026024 <$> v .: "UseSerializers"
60036025
6004-instance ToJSON Ushort where
6005- toJSON (Ushort ushortUshort) =
6006- object $ foldMap (maybe [] pure)
6007- [ Just $ "ushort" .= ushortUshort
6008- ]
6009-
6010-instance FromJSON Ushort where
6011- parseJSON (Object v) = Ushort
6012- <$> v .: "ushort"
6013-
60146026 instance ToJSON Obj6 where
6015- toJSON (Obj6 dummyObj6 obj6WhereObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
6027+ toJSON (Obj6 dummyObj6 obj6WhereObj6 unsignedObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
60166028 object $ foldMap (maybe [] pure)
60176029 [ Just $ "dummy" .= dummyObj6
60186030 , Just $ "where" .= obj6WhereObj6
6031+ , Just $ "unsigned" .= unsignedObj6
6032+ , Just $ "ushort" .= ushortObj6
60196033 , Just $ "using" .= usingObj6
60206034 , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6
60216035 , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj6
@@ -6039,6 +6053,8 @@ instance FromJSON Obj6 where
60396053 parseJSON (Object v) = Obj6
60406054 <$> v .: "dummy"
60416055 <*> v .: "where"
6056+ <*> v .: "unsigned"
6057+ <*> v .: "ushort"
60426058 <*> v .: "using"
60436059 <*> v .: "Utf8JsonReader"
60446060 <*> v .: "Utf8JsonWriter"
@@ -6067,6 +6083,26 @@ instance FromJSON Where where
60676083 parseJSON (Object v) = Where
60686084 <$> v .: "where"
60696085
6086+instance ToJSON Unsigned where
6087+ toJSON (Unsigned unsignedUnsigned) =
6088+ object $ foldMap (maybe [] pure)
6089+ [ Just $ "unsigned" .= unsignedUnsigned
6090+ ]
6091+
6092+instance FromJSON Unsigned where
6093+ parseJSON (Object v) = Unsigned
6094+ <$> v .: "unsigned"
6095+
6096+instance ToJSON Ushort where
6097+ toJSON (Ushort ushortUshort) =
6098+ object $ foldMap (maybe [] pure)
6099+ [ Just $ "ushort" .= ushortUshort
6100+ ]
6101+
6102+instance FromJSON Ushort where
6103+ parseJSON (Object v) = Ushort
6104+ <$> v .: "ushort"
6105+
60706106 instance ToJSON Using where
60716107 toJSON (Using usingUsing) =
60726108 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
@@ -21,6 +21,7 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Select select;
2425 private Self self;
2526 private Sendable sendable;
2627 private SerialDescriptor serialDescriptor;
@@ -49,6 +50,7 @@ public class Obj5 {
4950 private TimeOnly timeOnly;
5051 private TimeOnlyConverter timeOnlyConverter;
5152 private TimeZone timeZone;
53+ private ToDict toDict;
5254 private ToJSON toJSON;
5355 private ToString toString;
5456 private TopLevelClass topLevel;
@@ -65,9 +67,7 @@ public class Obj5 {
6567 private Union union;
6668 private Unowned unowned;
6769 private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,11 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
162167 @JsonProperty("Self")
163168 public Self getSelf() { return self; }
164169 @JsonProperty("Self")
@@ -299,6 +304,11 @@ public class Obj5 {
299304 @JsonProperty("TimeZone")
300305 public void setTimeZone(TimeZone value) { this.timeZone = value; }
301306
307+ @JsonProperty("to_dict")
308+ public ToDict getToDict() { return toDict; }
309+ @JsonProperty("to_dict")
310+ public void setToDict(ToDict value) { this.toDict = value; }
311+
302312 @JsonProperty("to_json")
303313 public ToJSON getToJSON() { return toJSON; }
304314 @JsonProperty("to_json")
@@ -379,18 +389,8 @@ public class Obj5 {
379389 @JsonProperty("unsafe")
380390 public void setUnsafe(Unsafe value) { this.unsafe = value; }
381391
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = 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 Unsigned unsigned;
11+ private Ushort ushort;
1012 private Using using;
1113 private Utf8JSONReader utf8JSONReader;
1214 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +45,16 @@ public class Obj6 {
4345 @JsonProperty("while")
4446 public void setObj6While(While value) { this.obj6While = value; }
4547
48+ @JsonProperty("unsigned")
49+ public Unsigned getUnsigned() { return unsigned; }
50+ @JsonProperty("unsigned")
51+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
52+
53+ @JsonProperty("ushort")
54+ public Ushort getUshort() { return ushort; }
55+ @JsonProperty("ushort")
56+ public void setUshort(Ushort value) { this.ushort = value; }
57+
4658 @JsonProperty("using")
4759 public Using getUsing() { return using; }
4860 @JsonProperty("using")
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
@@ -21,6 +21,7 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Select select;
2425 private Self self;
2526 private Sendable sendable;
2627 private SerialDescriptor serialDescriptor;
@@ -49,6 +50,7 @@ public class Obj5 {
4950 private TimeOnly timeOnly;
5051 private TimeOnlyConverter timeOnlyConverter;
5152 private TimeZone timeZone;
53+ private ToDict toDict;
5254 private ToJSON toJSON;
5355 private ToString toString;
5456 private TopLevelClass topLevel;
@@ -65,9 +67,7 @@ public class Obj5 {
6567 private Union union;
6668 private Unowned unowned;
6769 private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,11 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
162167 @JsonProperty("Self")
163168 public Self getSelf() { return self; }
164169 @JsonProperty("Self")
@@ -299,6 +304,11 @@ public class Obj5 {
299304 @JsonProperty("TimeZone")
300305 public void setTimeZone(TimeZone value) { this.timeZone = value; }
301306
307+ @JsonProperty("to_dict")
308+ public ToDict getToDict() { return toDict; }
309+ @JsonProperty("to_dict")
310+ public void setToDict(ToDict value) { this.toDict = value; }
311+
302312 @JsonProperty("to_json")
303313 public ToJSON getToJSON() { return toJSON; }
304314 @JsonProperty("to_json")
@@ -379,18 +389,8 @@ public class Obj5 {
379389 @JsonProperty("unsafe")
380390 public void setUnsafe(Unsafe value) { this.unsafe = value; }
381391
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = 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 Unsigned unsigned;
11+ private Ushort ushort;
1012 private Using using;
1113 private Utf8JSONReader utf8JSONReader;
1214 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +45,16 @@ public class Obj6 {
4345 @JsonProperty("while")
4446 public void setObj6While(While value) { this.obj6While = value; }
4547
48+ @JsonProperty("unsigned")
49+ public Unsigned getUnsigned() { return unsigned; }
50+ @JsonProperty("unsigned")
51+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
52+
53+ @JsonProperty("ushort")
54+ public Ushort getUshort() { return ushort; }
55+ @JsonProperty("ushort")
56+ public void setUshort(Ushort value) { this.ushort = value; }
57+
4658 @JsonProperty("using")
4759 public Using getUsing() { return using; }
4860 @JsonProperty("using")
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
@@ -21,6 +21,7 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Select select;
2425 private Self self;
2526 private Sendable sendable;
2627 private SerialDescriptor serialDescriptor;
@@ -49,6 +50,7 @@ public class Obj5 {
4950 private TimeOnly timeOnly;
5051 private TimeOnlyConverter timeOnlyConverter;
5152 private TimeZone timeZone;
53+ private ToDict toDict;
5254 private ToJSON toJSON;
5355 private ToString toString;
5456 private TopLevelClass topLevel;
@@ -65,9 +67,7 @@ public class Obj5 {
6567 private Union union;
6668 private Unowned unowned;
6769 private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,11 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
162167 @JsonProperty("Self")
163168 public Self getSelf() { return self; }
164169 @JsonProperty("Self")
@@ -299,6 +304,11 @@ public class Obj5 {
299304 @JsonProperty("TimeZone")
300305 public void setTimeZone(TimeZone value) { this.timeZone = value; }
301306
307+ @JsonProperty("to_dict")
308+ public ToDict getToDict() { return toDict; }
309+ @JsonProperty("to_dict")
310+ public void setToDict(ToDict value) { this.toDict = value; }
311+
302312 @JsonProperty("to_json")
303313 public ToJSON getToJSON() { return toJSON; }
304314 @JsonProperty("to_json")
@@ -379,18 +389,8 @@ public class Obj5 {
379389 @JsonProperty("unsafe")
380390 public void setUnsafe(Unsafe value) { this.unsafe = value; }
381391
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = 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 Unsigned unsigned;
11+ private Ushort ushort;
1012 private Using using;
1113 private Utf8JSONReader utf8JSONReader;
1214 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +45,16 @@ public class Obj6 {
4345 @JsonProperty("while")
4446 public void setObj6While(While value) { this.obj6While = value; }
4547
48+ @JsonProperty("unsigned")
49+ public Unsigned getUnsigned() { return unsigned; }
50+ @JsonProperty("unsigned")
51+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
52+
53+ @JsonProperty("ushort")
54+ public Ushort getUshort() { return ushort; }
55+ @JsonProperty("ushort")
56+ public void setUshort(Ushort value) { this.ushort = value; }
57+
4658 @JsonProperty("using")
4759 public Using getUsing() { return using; }
4860 @JsonProperty("using")
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 _KSerializer;
279279 let _PrimitiveKind;
@@ -293,6 +293,7 @@ let _TimeZone;
293293 let _True;
294294 let _Type;
295295 let _UseSerializers;
296+let _Select;
296297 let _SelfClass;
297298 let _Serialize;
298299 let _Set;
@@ -319,6 +320,7 @@ let _ThreadLocal;
319320 let _Throw;
320321 let _Throws;
321322 let _ToString;
323+let _ToDict;
322324 let _ToJSON;
323325 let _TopLevelClass;
324326 let _Transient;
@@ -337,13 +339,13 @@ let _Undefined;
337339 let _Union;
338340 let _Unowned;
339341 let _Unsafe;
340-let _Unsigned;
341-let _Ushort;
342342 let _Obj6;
343343 let _UUID;
344344 let _Utf8JSONReader;
345345 let _Utf8JSONWriter;
346346 let _Yes;
347+let _Unsigned;
348+let _Ushort;
347349 let _Using;
348350 let _Var;
349351 let _Virtual;
@@ -789,6 +791,9 @@ _Friend = PropTypes.shape({
789791 _From = PropTypes.shape({
790792 "from": PropTypes.oneOfType([Integer]).isRequired,
791793 });
794+_FromDict = PropTypes.shape({
795+ "from_dict": PropTypes.oneOfType([Integer]).isRequired,
796+});
792797 _FromJSON = PropTypes.shape({
793798 "from_json": PropTypes.oneOfType([Integer]).isRequired,
794799 });
@@ -807,9 +812,6 @@ _Global = PropTypes.shape({
807812 _Go = PropTypes.shape({
808813 "go": PropTypes.oneOfType([Integer]).isRequired,
809814 });
810-_Goto = PropTypes.shape({
811- "goto": PropTypes.oneOfType([Integer]).isRequired,
812-});
813815 _Obj2 = PropTypes.shape({
814816 "DateFormatter": _DateFormatter,
815817 "DateOnly": _DateOnly,
@@ -869,13 +871,13 @@ _Obj2 = PropTypes.shape({
869871 "foreach": _Foreach,
870872 "friend": _Friend,
871873 "from": _From,
874+ "from_dict": _FromDict,
872875 "from_json": _FromJSON,
873876 "func": _Func,
874877 "function": _Function,
875878 "get": _Get,
876879 "global": _Global,
877880 "go": _Go,
878- "goto": _Goto,
879881 });
880882 _Hashable = PropTypes.shape({
881883 "Hashable": PropTypes.oneOfType([Integer]).isRequired,
@@ -931,6 +933,9 @@ _MapEntry = PropTypes.shape({
931933 _No = PropTypes.shape({
932934 "NO": PropTypes.oneOfType([Integer]).isRequired,
933935 });
936+_Goto = PropTypes.shape({
937+ "goto": PropTypes.oneOfType([Integer]).isRequired,
938+});
934939 _Guard = PropTypes.shape({
935940 "guard": PropTypes.oneOfType([Integer]).isRequired,
936941 });
@@ -1066,9 +1071,6 @@ _Newtonsoft = PropTypes.shape({
10661071 _Nil = PropTypes.shape({
10671072 "nil": PropTypes.oneOfType([Integer]).isRequired,
10681073 });
1069-_Noexcept = PropTypes.shape({
1070- "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1071-});
10721074 _Obj3 = PropTypes.shape({
10731075 "Hashable": _Hashable,
10741076 "Hasher": _Hasher,
@@ -1089,6 +1091,7 @@ _Obj3 = PropTypes.shape({
10891091 "MapEntry": _MapEntry,
10901092 "NO": _No,
10911093 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1094+ "goto": _Goto,
10921095 "guard": _Guard,
10931096 "hasOwnProperty": _HasOwnProperty,
10941097 "hashCode": _HashCode,
@@ -1134,7 +1137,6 @@ _Obj3 = PropTypes.shape({
11341137 "new": _New,
11351138 "newtonsoft": _Newtonsoft,
11361139 "nil": _Nil,
1137- "noexcept": _Noexcept,
11381140 });
11391141 _NSError = PropTypes.shape({
11401142 "NSError": PropTypes.oneOfType([Integer]).isRequired,
@@ -1166,6 +1168,9 @@ _Sel = PropTypes.shape({
11661168 _NoSuchMethod = PropTypes.shape({
11671169 "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
11681170 });
1171+_Noexcept = PropTypes.shape({
1172+ "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1173+});
11691174 _Nonatomic = PropTypes.shape({
11701175 "nonatomic": PropTypes.oneOfType([Integer]).isRequired,
11711176 });
@@ -1325,9 +1330,6 @@ _Sbyte = PropTypes.shape({
13251330 _Sealed = PropTypes.shape({
13261331 "sealed": PropTypes.oneOfType([Integer]).isRequired,
13271332 });
1328-_Select = PropTypes.shape({
1329- "select": PropTypes.oneOfType([Integer]).isRequired,
1330-});
13311333 _Obj4 = PropTypes.shape({
13321334 "NSError": _NSError,
13331335 "NSObject": _NSObject,
@@ -1340,6 +1342,7 @@ _Obj4 = PropTypes.shape({
13401342 "SEL": _Sel,
13411343 "dummy": PropTypes.oneOfType([Integer]).isRequired,
13421344 "noSuchMethod": _NoSuchMethod,
1345+ "noexcept": _Noexcept,
13431346 "nonatomic": _Nonatomic,
13441347 "none": _NoneClass,
13451348 "nonlocal": _Nonlocal,
@@ -1393,7 +1396,6 @@ _Obj4 = PropTypes.shape({
13931396 "s": _S,
13941397 "sbyte": _Sbyte,
13951398 "sealed": _Sealed,
1396- "select": _Select,
13971399 });
13981400 _KSerializer = PropTypes.shape({
13991401 "KSerializer": PropTypes.oneOfType([Integer]).isRequired,
@@ -1449,6 +1451,9 @@ _Type = PropTypes.shape({
14491451 _UseSerializers = PropTypes.shape({
14501452 "UseSerializers": PropTypes.oneOfType([Integer]).isRequired,
14511453 });
1454+_Select = PropTypes.shape({
1455+ "select": PropTypes.oneOfType([Integer]).isRequired,
1456+});
14521457 _SelfClass = PropTypes.shape({
14531458 "self": PropTypes.oneOfType([Integer]).isRequired,
14541459 });
@@ -1527,6 +1532,9 @@ _Throws = PropTypes.shape({
15271532 _ToString = PropTypes.shape({
15281533 "toString": PropTypes.oneOfType([Integer]).isRequired,
15291534 });
1535+_ToDict = PropTypes.shape({
1536+ "to_dict": PropTypes.oneOfType([Integer]).isRequired,
1537+});
15301538 _ToJSON = PropTypes.shape({
15311539 "to_json": PropTypes.oneOfType([Integer]).isRequired,
15321540 });
@@ -1581,12 +1589,6 @@ _Unowned = PropTypes.shape({
15811589 _Unsafe = PropTypes.shape({
15821590 "unsafe": PropTypes.oneOfType([Integer]).isRequired,
15831591 });
1584-_Unsigned = PropTypes.shape({
1585- "unsigned": PropTypes.oneOfType([Integer]).isRequired,
1586-});
1587-_Ushort = PropTypes.shape({
1588- "ushort": PropTypes.oneOfType([Integer]).isRequired,
1589-});
15901592 _Obj5 = PropTypes.shape({
15911593 "KSerializer": _KSerializer,
15921594 "PrimitiveKind": _PrimitiveKind,
@@ -1607,6 +1609,7 @@ _Obj5 = PropTypes.shape({
16071609 "Type": _Type,
16081610 "UseSerializers": _UseSerializers,
16091611 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1612+ "select": _Select,
16101613 "self": _SelfClass,
16111614 "serialize": _Serialize,
16121615 "set": _Set,
@@ -1633,6 +1636,7 @@ _Obj5 = PropTypes.shape({
16331636 "throw": _Throw,
16341637 "throws": _Throws,
16351638 "toString": _ToString,
1639+ "to_dict": _ToDict,
16361640 "to_json": _ToJSON,
16371641 "top_level": _TopLevelClass,
16381642 "transient": _Transient,
@@ -1651,8 +1655,6 @@ _Obj5 = PropTypes.shape({
16511655 "union": _Union,
16521656 "unowned": _Unowned,
16531657 "unsafe": _Unsafe,
1654- "unsigned": _Unsigned,
1655- "ushort": _Ushort,
16561658 });
16571659 _UUID = PropTypes.shape({
16581660 "UUID": PropTypes.oneOfType([Integer]).isRequired,
@@ -1666,6 +1668,12 @@ _Utf8JSONWriter = PropTypes.shape({
16661668 _Yes = PropTypes.shape({
16671669 "YES": PropTypes.oneOfType([Integer]).isRequired,
16681670 });
1671+_Unsigned = PropTypes.shape({
1672+ "unsigned": PropTypes.oneOfType([Integer]).isRequired,
1673+});
1674+_Ushort = PropTypes.shape({
1675+ "ushort": PropTypes.oneOfType([Integer]).isRequired,
1676+});
16691677 _Using = PropTypes.shape({
16701678 "using": PropTypes.oneOfType([Integer]).isRequired,
16711679 });
@@ -1714,6 +1722,8 @@ _Obj6 = PropTypes.shape({
17141722 "Utf8JsonWriter": _Utf8JSONWriter,
17151723 "YES": _Yes,
17161724 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1725+ "unsigned": _Unsigned,
1726+ "ushort": _Ushort,
17171727 "using": _Using,
17181728 "var": _Var,
17191729 "virtual": _Virtual,
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: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
12431243 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -1258,6 +1258,7 @@ const typeMap = {
12581258 { json: "Type", js: "Type", typ: r("Type") },
12591259 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
12601260 { json: "dummy", js: "dummy", typ: i(0) },
1261+ { json: "select", js: "select", typ: r("Select") },
12611262 { json: "self", js: "self", typ: r("SelfClass") },
12621263 { json: "serialize", js: "serialize", typ: r("Serialize") },
12631264 { json: "set", js: "set", typ: r("Set") },
@@ -1284,6 +1285,7 @@ const typeMap = {
12841285 { json: "throw", js: "throw", typ: r("Throw") },
12851286 { json: "throws", js: "throws", typ: r("Throws") },
12861287 { json: "toString", js: "toString", typ: r("ToString") },
1288+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
12871289 { json: "to_json", js: "to_json", typ: r("ToJSON") },
12881290 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
12891291 { json: "transient", js: "transient", typ: r("Transient") },
@@ -1302,8 +1304,6 @@ const typeMap = {
13021304 { json: "union", js: "union", typ: r("Union") },
13031305 { json: "unowned", js: "unowned", typ: r("Unowned") },
13041306 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
1305- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
1306- { json: "ushort", js: "ushort", typ: r("Ushort") },
13071307 ], false),
13081308 "KSerializer": o([
13091309 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -1359,6 +1359,9 @@ const typeMap = {
13591359 "UseSerializers": o([
13601360 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
13611361 ], false),
1362+ "Select": o([
1363+ { json: "select", js: "select", typ: i(0) },
1364+ ], false),
13621365 "SelfClass": o([
13631366 { json: "self", js: "self", typ: i(0) },
13641367 ], false),
@@ -1437,6 +1440,9 @@ const typeMap = {
14371440 "ToString": o([
14381441 { json: "toString", js: "toString", typ: i(0) },
14391442 ], false),
1443+ "ToDict": o([
1444+ { json: "to_dict", js: "to_dict", typ: i(0) },
1445+ ], false),
14401446 "ToJSON": o([
14411447 { json: "to_json", js: "to_json", typ: i(0) },
14421448 ], false),
@@ -1491,18 +1497,14 @@ const typeMap = {
14911497 "Unsafe": o([
14921498 { json: "unsafe", js: "unsafe", typ: i(0) },
14931499 ], false),
1494- "Unsigned": o([
1495- { json: "unsigned", js: "unsigned", typ: i(0) },
1496- ], false),
1497- "Ushort": o([
1498- { json: "ushort", js: "ushort", typ: i(0) },
1499- ], false),
15001500 "Obj6": o([
15011501 { json: "UUID", js: "UUID", typ: r("UUID") },
15021502 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
15031503 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
15041504 { json: "YES", js: "YES", typ: r("Yes") },
15051505 { json: "dummy", js: "dummy", typ: i(0) },
1506+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
1507+ { json: "ushort", js: "ushort", typ: r("Ushort") },
15061508 { json: "using", js: "using", typ: r("Using") },
15071509 { json: "var", js: "var", typ: r("Var") },
15081510 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -1530,6 +1532,12 @@ const typeMap = {
15301532 "Yes": o([
15311533 { json: "YES", js: "YES", typ: i(0) },
15321534 ], false),
1535+ "Unsigned": o([
1536+ { json: "unsigned", js: "unsigned", typ: i(0) },
1537+ ], false),
1538+ "Ushort": o([
1539+ { json: "ushort", js: "ushort", typ: i(0) },
1540+ ], false),
15331541 "Using": o([
15341542 { json: "using", js: "using", typ: i(0) },
15351543 ], 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,
@@ -2184,6 +2184,9 @@ data class Obj5 (
21842184 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21852185 val purpleTrue: TrueClass,
21862186
2187+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2188+ val select: Select,
2189+
21872190 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
21882191 val self: Self,
21892192
@@ -2286,6 +2289,9 @@ data class Obj5 (
22862289 @get:JsonProperty("TimeZone", required=true)@field:JsonProperty("TimeZone", required=true)
22872290 val timeZone: TimeZone,
22882291
2292+ @get:JsonProperty("to_dict", required=true)@field:JsonProperty("to_dict", required=true)
2293+ val toDict: ToDict,
2294+
22892295 @get:JsonProperty("to_json", required=true)@field:JsonProperty("to_json", required=true)
22902296 val toJSON: ToJSON,
22912297
@@ -2331,14 +2337,8 @@ data class Obj5 (
23312337 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
23322338 val unsafe: Unsafe,
23332339
2334- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2335- val unsigned: Unsigned,
2336-
23372340 @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2338- val useSerializers: UseSerializers,
2339-
2340- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2341- val ushort: Ushort
2341+ val useSerializers: UseSerializers
23422342 )
23432343
23442344 data class KSerializer (
@@ -2401,6 +2401,11 @@ data class TrueClass (
24012401 val trueTrue: Long
24022402 )
24032403
2404+data class Select (
2405+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2406+ val select: Long
2407+)
2408+
24042409 data class Self (
24052410 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
24062411 val self: Long
@@ -2571,6 +2576,11 @@ data class TimeZone (
25712576 val timeZone: Long
25722577 )
25732578
2579+data class ToDict (
2580+ @get:JsonProperty("to_dict", required=true)@field:JsonProperty("to_dict", required=true)
2581+ val toDict: Long
2582+)
2583+
25742584 data class ToJSON (
25752585 @get:JsonProperty("to_json", required=true)@field:JsonProperty("to_json", required=true)
25762586 val toJSON: Long
@@ -2646,21 +2656,11 @@ data class Unsafe (
26462656 val unsafe: Long
26472657 )
26482658
2649-data class Unsigned (
2650- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2651- val unsigned: Long
2652-)
2653-
26542659 data class UseSerializers (
26552660 @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
26562661 val useSerializers: Long
26572662 )
26582663
2659-data class Ushort (
2660- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2661- val ushort: Long
2662-)
2663-
26642664 data class Obj6 (
26652665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26662666 val dummy: Long,
@@ -2671,6 +2671,12 @@ data class Obj6 (
26712671 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26722672 val obj6While: While,
26732673
2674+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2675+ val unsigned: Unsigned,
2676+
2677+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2678+ val ushort: Ushort,
2679+
26742680 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26752681 val using: Using,
26762682
@@ -2730,6 +2736,16 @@ data class While (
27302736 val whileWhile: Long
27312737 )
27322738
2739+data class Unsigned (
2740+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2741+ val unsigned: Long
2742+)
2743+
2744+data class Ushort (
2745+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2746+ val ushort: Long
2747+)
2748+
27332749 data class Using (
27342750 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27352751 val using: Long
Mkotlindefault / TopLevel.kt+44 −30
@@ -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
@@ -1693,6 +1694,8 @@ data class Obj5 (
16931694 @Json(name = "true")
16941695 val purpleTrue: TrueClass,
16951696
1697+ val select: Select,
1698+
16961699 @Json(name = "Self")
16971700 val self: Self,
16981701
@@ -1765,6 +1768,9 @@ data class Obj5 (
17651768 @Json(name = "TimeZone")
17661769 val timeZone: TimeZone,
17671770
1771+ @Json(name = "to_dict")
1772+ val toDict: ToDict,
1773+
17681774 @Json(name = "to_json")
17691775 val toJSON: ToJSON,
17701776
@@ -1788,12 +1794,9 @@ data class Obj5 (
17881794 val union: Union,
17891795 val unowned: Unowned,
17901796 val unsafe: Unsafe,
1791- val unsigned: Unsigned,
17921797
17931798 @Json(name = "UseSerializers")
1794- val useSerializers: UseSerializers,
1795-
1796- val ushort: Ushort
1799+ val useSerializers: UseSerializers
17971800 )
17981801
17991802 data class KSerializer (
@@ -1854,6 +1857,10 @@ data class TrueClass (
18541857 val trueTrue: Long
18551858 )
18561859
1860+data class Select (
1861+ val select: Long
1862+)
1863+
18571864 data class Self (
18581865 @Json(name = "Self")
18591866 val self: Long
@@ -2006,6 +2013,11 @@ data class TimeZone (
20062013 val timeZone: Long
20072014 )
20082015
2016+data class ToDict (
2017+ @Json(name = "to_dict")
2018+ val toDict: Long
2019+)
2020+
20092021 data class ToJSON (
20102022 @Json(name = "to_json")
20112023 val toJSON: Long
@@ -2069,19 +2081,11 @@ data class Unsafe (
20692081 val unsafe: Long
20702082 )
20712083
2072-data class Unsigned (
2073- val unsigned: Long
2074-)
2075-
20762084 data class UseSerializers (
20772085 @Json(name = "UseSerializers")
20782086 val useSerializers: Long
20792087 )
20802088
2081-data class Ushort (
2082- val ushort: Long
2083-)
2084-
20852089 data class Obj6 (
20862090 val dummy: Long,
20872091
@@ -2091,6 +2095,8 @@ data class Obj6 (
20912095 @Json(name = "while")
20922096 val obj6While: While,
20932097
2098+ val unsigned: Unsigned,
2099+ val ushort: Ushort,
20942100 val using: Using,
20952101
20962102 @Json(name = "Utf8JsonReader")
@@ -2134,6 +2140,14 @@ data class While (
21342140 val whileWhile: Long
21352141 )
21362142
2143+data class Unsigned (
2144+ val unsigned: Long
2145+)
2146+
2147+data class Ushort (
2148+ val ushort: Long
2149+)
2150+
21372151 data class Using (
21382152 val using: Long
21392153 )
Mkotlinxdefault / TopLevel.kt+51 −35
@@ -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,
@@ -1936,6 +1937,8 @@ data class Obj5 (
19361937 @SerialName("true")
19371938 val purpleTrue: TrueClass,
19381939
1940+ val select: Select,
1941+
19391942 @SerialName("Self")
19401943 val self: Self,
19411944
@@ -2008,6 +2011,9 @@ data class Obj5 (
20082011 @SerialName("TimeZone")
20092012 val timeZone: TimeZone,
20102013
2014+ @SerialName("to_dict")
2015+ val toDict: ToDict,
2016+
20112017 @SerialName("to_json")
20122018 val toJSON: ToJSON,
20132019
@@ -2031,12 +2037,9 @@ data class Obj5 (
20312037 val union: Union,
20322038 val unowned: Unowned,
20332039 val unsafe: Unsafe,
2034- val unsigned: Unsigned,
20352040
20362041 @SerialName("UseSerializers")
2037- val useSerializers: UseSerializersClass,
2038-
2039- val ushort: Ushort
2042+ val useSerializers: UseSerializersClass
20402043 )
20412044
20422045 @Serializable
@@ -2109,6 +2112,11 @@ data class TrueClass (
21092112 val trueTrue: Long
21102113 )
21112114
2115+@Serializable
2116+data class Select (
2117+ val select: Long
2118+)
2119+
21122120 @Serializable
21132121 data class Self (
21142122 @SerialName("Self")
@@ -2295,6 +2303,12 @@ data class TimeZone (
22952303 val timeZone: Long
22962304 )
22972305
2306+@Serializable
2307+data class ToDict (
2308+ @SerialName("to_dict")
2309+ val toDict: Long
2310+)
2311+
22982312 @Serializable
22992313 data class ToJSON (
23002314 @SerialName("to_json")
@@ -2373,22 +2387,12 @@ data class Unsafe (
23732387 val unsafe: Long
23742388 )
23752389
2376-@Serializable
2377-data class Unsigned (
2378- val unsigned: Long
2379-)
2380-
23812390 @Serializable
23822391 data class UseSerializersClass (
23832392 @SerialName("UseSerializers")
23842393 val useSerializers: Long
23852394 )
23862395
2387-@Serializable
2388-data class Ushort (
2389- val ushort: Long
2390-)
2391-
23922396 @Serializable
23932397 data class Obj6 (
23942398 val dummy: Long,
@@ -2399,6 +2403,8 @@ data class Obj6 (
23992403 @SerialName("while")
24002404 val obj6While: While,
24012405
2406+ val unsigned: Unsigned,
2407+ val ushort: Ushort,
24022408 val using: Using,
24032409
24042410 @SerialName("Utf8JsonReader")
@@ -2444,6 +2450,16 @@ data class While (
24442450 val whileWhile: Long
24452451 )
24462452
2453+@Serializable
2454+data class Unsigned (
2455+ val unsigned: Long
2456+)
2457+
2458+@Serializable
2459+data class Ushort (
2460+ val ushort: Long
2461+)
2462+
24472463 @Serializable
24482464 data class Using (
24492465 val using: 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 QTKSerializer;
272272 @class QTSelfClass;
@@ -281,8 +281,8 @@
281281 @class QTTypedef;
282282 @class QTTypeof;
283283 @class QTUnion;
284-@class QTUnsigned;
285284 @class QTPrimitiveKind;
285+@class QTSelect;
286286 @class QTSelf;
287287 @class QTSendable;
288288 @class QTSerialDescriptor;
@@ -315,6 +315,7 @@
315315 @class QTTimeOnly;
316316 @class QTTimeOnlyConverter;
317317 @class QTTimeZone;
318+@class QTToDict;
318319 @class QTToJSON;
319320 @class QTToString;
320321 @class QTTopLevelClass;
@@ -331,11 +332,12 @@
331332 @class QTUnowned;
332333 @class QTUnsafe;
333334 @class QTUseSerializers;
334-@class QTUshort;
335335 @class QTObj6;
336+@class QTUnsigned;
336337 @class QTVoid;
337338 @class QTVolatile;
338339 @class QTWhile;
340+@class QTUshort;
339341 @class QTUsing;
340342 @class QTUtf8JSONReader;
341343 @class QTUtf8JSONWriter;
@@ -760,6 +762,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
760762 @property (nonatomic, strong) QTFormatException *formatException;
761763 @property (nonatomic, strong) QTFriend *friend;
762764 @property (nonatomic, strong) QTFrom *from;
765+@property (nonatomic, strong) QTFromDict *fromDict;
763766 @property (nonatomic, strong) QTFromJSON *fromJSON;
764767 @property (nonatomic, strong) QTFunc *func;
765768 @property (nonatomic, strong) QTFunction *function;
@@ -775,7 +778,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
775778 @property (nonatomic, strong) QTFalse *obj2False;
776779 @property (nonatomic, strong) QTFloat *obj2Float;
777780 @property (nonatomic, strong) QTFor *obj2For;
778-@property (nonatomic, strong) QTGoto *obj2Goto;
779781 @property (nonatomic, strong) QTFalseClass *theFalse;
780782 @end
781783
@@ -967,6 +969,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
967969 @property (nonatomic, assign) NSInteger from;
968970 @end
969971
972+@interface QTFromDict : NSObject
973+@property (nonatomic, assign) NSInteger fromDict;
974+@end
975+
970976 @interface QTFromJSON : NSObject
971977 @property (nonatomic, assign) NSInteger fromJSON;
972978 @end
@@ -1027,10 +1033,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10271033 @property (nonatomic, assign) NSInteger forFor;
10281034 @end
10291035
1030-@interface QTGoto : NSObject
1031-@property (nonatomic, assign) NSInteger gotoGoto;
1032-@end
1033-
10341036 @interface QTFalseClass : NSObject
10351037 @property (nonatomic, assign) NSInteger falseFalse;
10361038 @end
@@ -1092,7 +1094,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10921094 @property (nonatomic, strong) QTNative *native;
10931095 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
10941096 @property (nonatomic, strong) QTNo *no;
1095-@property (nonatomic, strong) QTNoexcept *noexcept;
1097+@property (nonatomic, strong) QTGoto *obj3Goto;
10961098 @property (nonatomic, strong) QTIf *obj3If;
10971099 @property (nonatomic, strong) QTInline *obj3Inline;
10981100 @property (nonatomic, strong) QTInt *obj3Int;
@@ -1323,8 +1325,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13231325 @property (nonatomic, assign) NSInteger no;
13241326 @end
13251327
1326-@interface QTNoexcept : NSObject
1327-@property (nonatomic, assign) NSInteger noexcept;
1328+@interface QTGoto : NSObject
1329+@property (nonatomic, assign) NSInteger gotoGoto;
13281330 @end
13291331
13301332 @interface QTIf : NSObject
@@ -1362,6 +1364,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13621364 @interface QTObj4 : NSObject
13631365 @property (nonatomic, assign) NSInteger dummy;
13641366 @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
1367+@property (nonatomic, strong) QTNoexcept *noexcept;
13651368 @property (nonatomic, strong) QTNone *none;
13661369 @property (nonatomic, strong) QTNonlocal *nonlocal;
13671370 @property (nonatomic, strong) QTNonmutating *nonmutating;
@@ -1424,13 +1427,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14241427 @property (nonatomic, strong) QTSbyte *sbyte;
14251428 @property (nonatomic, strong) QTSealed *sealed;
14261429 @property (nonatomic, strong) QTSel *sel;
1427-@property (nonatomic, strong) QTSelect *select;
14281430 @end
14291431
14301432 @interface QTNoSuchMethod : NSObject
14311433 @property (nonatomic, assign) NSInteger noSuchMethod;
14321434 @end
14331435
1436+@interface QTNoexcept : NSObject
1437+@property (nonatomic, assign) NSInteger noexcept;
1438+@end
1439+
14341440 @interface QTNone : NSObject
14351441 @property (nonatomic, assign) NSInteger none;
14361442 @end
@@ -1679,10 +1685,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16791685 @property (nonatomic, assign) NSInteger sel;
16801686 @end
16811687
1682-@interface QTSelect : NSObject
1683-@property (nonatomic, assign) NSInteger select;
1684-@end
1685-
16861688 @interface QTObj5 : NSObject
16871689 @property (nonatomic, assign) NSInteger dummy;
16881690 @property (nonatomic, strong) QTKSerializer *kSerializer;
@@ -1698,8 +1700,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16981700 @property (nonatomic, strong) QTTypedef *obj5Typedef;
16991701 @property (nonatomic, strong) QTTypeof *obj5Typeof;
17001702 @property (nonatomic, strong) QTUnion *obj5Union;
1701-@property (nonatomic, strong) QTUnsigned *obj5Unsigned;
17021703 @property (nonatomic, strong) QTPrimitiveKind *primitiveKind;
1704+@property (nonatomic, strong) QTSelect *select;
17031705 @property (nonatomic, strong) QTSelf *self;
17041706 @property (nonatomic, strong) QTSendable *sendable;
17051707 @property (nonatomic, strong) QTSerialDescriptor *serialDescriptor;
@@ -1732,6 +1734,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17321734 @property (nonatomic, strong) QTTimeOnly *timeOnly;
17331735 @property (nonatomic, strong) QTTimeOnlyConverter *timeOnlyConverter;
17341736 @property (nonatomic, strong) QTTimeZone *timeZone;
1737+@property (nonatomic, strong) QTToDict *toDict;
17351738 @property (nonatomic, strong) QTToJSON *toJSON;
17361739 @property (nonatomic, strong) QTToString *toString;
17371740 @property (nonatomic, strong) QTTopLevelClass *topLevel;
@@ -1748,7 +1751,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17481751 @property (nonatomic, strong) QTUnowned *unowned;
17491752 @property (nonatomic, strong) QTUnsafe *unsafe;
17501753 @property (nonatomic, strong) QTUseSerializers *useSerializers;
1751-@property (nonatomic, strong) QTUshort *ushort;
17521754 @end
17531755
17541756 @interface QTKSerializer : NSObject
@@ -1803,14 +1805,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
18031805 @property (nonatomic, assign) NSInteger unionUnion;
18041806 @end
18051807
1806-@interface QTUnsigned : NSObject
1807-@property (nonatomic, assign) NSInteger unsignedUnsigned;
1808-@end
1809-
18101808 @interface QTPrimitiveKind : NSObject
18111809 @property (nonatomic, assign) NSInteger primitiveKind;
18121810 @end
18131811
1812+@interface QTSelect : NSObject
1813+@property (nonatomic, assign) NSInteger select;
1814+@end
1815+
18141816 @interface QTSelf : NSObject
18151817 @property (nonatomic, assign) NSInteger self;
18161818 @end
@@ -1939,6 +1941,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19391941 @property (nonatomic, assign) NSInteger timeZone;
19401942 @end
19411943
1944+@interface QTToDict : NSObject
1945+@property (nonatomic, assign) NSInteger toDict;
1946+@end
1947+
19421948 @interface QTToJSON : NSObject
19431949 @property (nonatomic, assign) NSInteger toJSON;
19441950 @end
@@ -2003,15 +2009,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20032009 @property (nonatomic, assign) NSInteger useSerializers;
20042010 @end
20052011
2006-@interface QTUshort : NSObject
2007-@property (nonatomic, assign) NSInteger ushort;
2008-@end
2009-
20102012 @interface QTObj6 : NSObject
20112013 @property (nonatomic, assign) NSInteger dummy;
2014+@property (nonatomic, strong) QTUnsigned *obj6Unsigned;
20122015 @property (nonatomic, strong) QTVoid *obj6Void;
20132016 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20142017 @property (nonatomic, strong) QTWhile *obj6While;
2018+@property (nonatomic, strong) QTUshort *ushort;
20152019 @property (nonatomic, strong) QTUsing *using;
20162020 @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
20172021 @property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
@@ -2029,6 +2033,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20292033 @property (nonatomic, strong) QTYield *yield;
20302034 @end
20312035
2036+@interface QTUnsigned : NSObject
2037+@property (nonatomic, assign) NSInteger unsignedUnsigned;
2038+@end
2039+
20322040 @interface QTVoid : NSObject
20332041 @property (nonatomic, assign) NSInteger voidVoid;
20342042 @end
@@ -2041,6 +2049,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20412049 @property (nonatomic, assign) NSInteger whileWhile;
20422050 @end
20432051
2052+@interface QTUshort : NSObject
2053+@property (nonatomic, assign) NSInteger ushort;
2054+@end
2055+
20442056 @interface QTUsing : NSObject
20452057 @property (nonatomic, assign) NSInteger using;
20462058 @end
Mobjective-cdefault / QTTopLevel.m+336 −212
@@ -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,12 +1383,12 @@ NS_ASSUME_NONNULL_BEGIN
13831383 - (NSDictionary *)JSONDictionary;
13841384 @end
13851385
1386-@interface QTUnsigned (JSONConversion)
1386+@interface QTPrimitiveKind (JSONConversion)
13871387 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881388 - (NSDictionary *)JSONDictionary;
13891389 @end
13901390
1391-@interface QTPrimitiveKind (JSONConversion)
1391+@interface QTSelect (JSONConversion)
13921392 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13931393 - (NSDictionary *)JSONDictionary;
13941394 @end
@@ -1553,6 +1553,11 @@ NS_ASSUME_NONNULL_BEGIN
15531553 - (NSDictionary *)JSONDictionary;
15541554 @end
15551555
1556+@interface QTToDict (JSONConversion)
1557++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1558+- (NSDictionary *)JSONDictionary;
1559+@end
1560+
15561561 @interface QTToJSON (JSONConversion)
15571562 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
15581563 - (NSDictionary *)JSONDictionary;
@@ -1633,12 +1638,12 @@ NS_ASSUME_NONNULL_BEGIN
16331638 - (NSDictionary *)JSONDictionary;
16341639 @end
16351640
1636-@interface QTUshort (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16371642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381643 - (NSDictionary *)JSONDictionary;
16391644 @end
16401645
1641-@interface QTObj6 (JSONConversion)
1646+@interface QTUnsigned (JSONConversion)
16421647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431648 - (NSDictionary *)JSONDictionary;
16441649 @end
@@ -1658,6 +1663,11 @@ NS_ASSUME_NONNULL_BEGIN
16581663 - (NSDictionary *)JSONDictionary;
16591664 @end
16601665
1666+@interface QTUshort (JSONConversion)
1667++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1668+- (NSDictionary *)JSONDictionary;
1669+@end
1670+
16611671 @interface QTUsing (JSONConversion)
16621672 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16631673 - (NSDictionary *)JSONDictionary;
@@ -5331,6 +5341,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53315341 @"FormatException": @"formatException",
53325342 @"friend": @"friend",
53335343 @"from": @"from",
5344+ @"from_dict": @"fromDict",
53345345 @"from_json": @"fromJSON",
53355346 @"func": @"func",
53365347 @"function": @"function",
@@ -5346,7 +5357,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53465357 @"False": @"obj2False",
53475358 @"float": @"obj2Float",
53485359 @"for": @"obj2For",
5349- @"goto": @"obj2Goto",
53505360 @"false": @"theFalse",
53515361 };
53525362 }
@@ -5408,6 +5418,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
54085418 if (![dict[@"FormatException"] isKindOfClass:NSDictionary.class]) return nil;
54095419 if (![dict[@"friend"] isKindOfClass:NSDictionary.class]) return nil;
54105420 if (![dict[@"from"] isKindOfClass:NSDictionary.class]) return nil;
5421+ if (![dict[@"from_dict"] isKindOfClass:NSDictionary.class]) return nil;
54115422 if (![dict[@"from_json"] isKindOfClass:NSDictionary.class]) return nil;
54125423 if (![dict[@"func"] isKindOfClass:NSDictionary.class]) return nil;
54135424 if (![dict[@"function"] isKindOfClass:NSDictionary.class]) return nil;
@@ -5423,7 +5434,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
54235434 if (![dict[@"False"] isKindOfClass:NSDictionary.class]) return nil;
54245435 if (![dict[@"float"] isKindOfClass:NSDictionary.class]) return nil;
54255436 if (![dict[@"for"] isKindOfClass:NSDictionary.class]) return nil;
5426- if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
54275437 if (![dict[@"false"] isKindOfClass:NSDictionary.class]) return nil;
54285438 [self setValuesForKeysWithDictionary:dict];
54295439 _dateFormatter = [QTDateFormatter fromJSONDictionary:(id)_dateFormatter];
@@ -5520,6 +5530,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
55205530 if (!_friend && dict[@"friend"] && ![dict[@"friend"] isKindOfClass:NSNull.class]) return nil;
55215531 _from = [QTFrom fromJSONDictionary:(id)_from];
55225532 if (!_from && dict[@"from"] && ![dict[@"from"] isKindOfClass:NSNull.class]) return nil;
5533+ _fromDict = [QTFromDict fromJSONDictionary:(id)_fromDict];
5534+ if (!_fromDict && dict[@"from_dict"] && ![dict[@"from_dict"] isKindOfClass:NSNull.class]) return nil;
55235535 _fromJSON = [QTFromJSON fromJSONDictionary:(id)_fromJSON];
55245536 if (!_fromJSON && dict[@"from_json"] && ![dict[@"from_json"] isKindOfClass:NSNull.class]) return nil;
55255537 _func = [QTFunc fromJSONDictionary:(id)_func];
@@ -5550,8 +5562,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
55505562 if (!_obj2Float && dict[@"float"] && ![dict[@"float"] isKindOfClass:NSNull.class]) return nil;
55515563 _obj2For = [QTFor fromJSONDictionary:(id)_obj2For];
55525564 if (!_obj2For && dict[@"for"] && ![dict[@"for"] isKindOfClass:NSNull.class]) return nil;
5553- _obj2Goto = [QTGoto fromJSONDictionary:(id)_obj2Goto];
5554- if (!_obj2Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
55555565 _theFalse = [QTFalseClass fromJSONDictionary:(id)_theFalse];
55565566 if (!_theFalse && dict[@"false"] && ![dict[@"false"] isKindOfClass:NSNull.class]) return nil;
55575567 }
@@ -5630,6 +5640,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
56305640 @"FormatException": [_formatException JSONDictionary],
56315641 @"friend": [_friend JSONDictionary],
56325642 @"from": [_from JSONDictionary],
5643+ @"from_dict": [_fromDict JSONDictionary],
56335644 @"from_json": [_fromJSON JSONDictionary],
56345645 @"func": [_func JSONDictionary],
56355646 @"function": [_function JSONDictionary],
@@ -5645,7 +5656,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
56455656 @"False": [_obj2False JSONDictionary],
56465657 @"float": [_obj2Float JSONDictionary],
56475658 @"for": [_obj2For JSONDictionary],
5648- @"goto": [_obj2Goto JSONDictionary],
56495659 @"false": [_theFalse JSONDictionary],
56505660 }];
56515661
@@ -7781,6 +7791,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
77817791 }
77827792 @end
77837793
7794+@implementation QTFromDict
7795++ (NSDictionary<NSString *, NSString *> *)properties
7796+{
7797+ static NSDictionary<NSString *, NSString *> *properties;
7798+ return properties = properties ? properties : @{
7799+ @"from_dict": @"fromDict",
7800+ };
7801+}
7802+
7803++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
7804+{
7805+ return [dict isKindOfClass:NSDictionary.class] ? [[QTFromDict alloc] initWithJSONDictionary:dict] : nil;
7806+}
7807+
7808+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7809+{
7810+ if (self = [super init]) {
7811+ if (![dict[@"from_dict"] isKindOfClass:NSNumber.class]) return nil;
7812+ if ([dict[@"from_dict"] doubleValue] != [dict[@"from_dict"] longLongValue]) return nil;
7813+ [self setValuesForKeysWithDictionary:dict];
7814+ }
7815+ return self;
7816+}
7817+
7818+- (void)setValue:(nullable id)value forKey:(NSString *)key
7819+{
7820+ id resolved = QTFromDict.properties[key];
7821+ if (resolved) [super setValue:value forKey:resolved];
7822+}
7823+
7824+- (void)setNilValueForKey:(NSString *)key
7825+{
7826+ id resolved = QTFromDict.properties[key];
7827+ if (resolved) [super setValue:@(0) forKey:resolved];
7828+}
7829+
7830+- (NSDictionary *)JSONDictionary
7831+{
7832+ id dict = [[self dictionaryWithValuesForKeys:QTFromDict.properties.allValues] mutableCopy];
7833+
7834+ for (id jsonName in QTFromDict.properties) {
7835+ id propertyName = QTFromDict.properties[jsonName];
7836+ if (![jsonName isEqualToString:propertyName]) {
7837+ dict[jsonName] = dict[propertyName];
7838+ [dict removeObjectForKey:propertyName];
7839+ }
7840+ }
7841+
7842+ return dict;
7843+}
7844+@end
7845+
77847846 @implementation QTFromJSON
77857847 + (NSDictionary<NSString *, NSString *> *)properties
77867848 {
@@ -8511,58 +8573,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
85118573 }
85128574 @end
85138575
8514-@implementation QTGoto
8515-+ (NSDictionary<NSString *, NSString *> *)properties
8516-{
8517- static NSDictionary<NSString *, NSString *> *properties;
8518- return properties = properties ? properties : @{
8519- @"goto": @"gotoGoto",
8520- };
8521-}
8522-
8523-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
8524-{
8525- return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil;
8526-}
8527-
8528-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8529-{
8530- if (self = [super init]) {
8531- if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil;
8532- if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil;
8533- [self setValuesForKeysWithDictionary:dict];
8534- }
8535- return self;
8536-}
8537-
8538-- (void)setValue:(nullable id)value forKey:(NSString *)key
8539-{
8540- id resolved = QTGoto.properties[key];
8541- if (resolved) [super setValue:value forKey:resolved];
8542-}
8543-
8544-- (void)setNilValueForKey:(NSString *)key
8545-{
8546- id resolved = QTGoto.properties[key];
8547- if (resolved) [super setValue:@(0) forKey:resolved];
8548-}
8549-
8550-- (NSDictionary *)JSONDictionary
8551-{
8552- id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy];
8553-
8554- for (id jsonName in QTGoto.properties) {
8555- id propertyName = QTGoto.properties[jsonName];
8556- if (![jsonName isEqualToString:propertyName]) {
8557- dict[jsonName] = dict[propertyName];
8558- [dict removeObjectForKey:propertyName];
8559- }
8560- }
8561-
8562- return dict;
8563-}
8564-@end
8565-
85668576 @implementation QTFalseClass
85678577 + (NSDictionary<NSString *, NSString *> *)properties
85688578 {
@@ -8676,7 +8686,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86768686 @"native": @"native",
86778687 @"newtonsoft": @"newtonsoft",
86788688 @"NO": @"no",
8679- @"noexcept": @"noexcept",
8689+ @"goto": @"obj3Goto",
86808690 @"if": @"obj3If",
86818691 @"inline": @"obj3Inline",
86828692 @"int": @"obj3Int",
@@ -8753,7 +8763,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87538763 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
87548764 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
87558765 if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
8756- if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
8766+ if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
87578767 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
87588768 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
87598769 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8873,8 +8883,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88738883 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
88748884 _no = [QTNo fromJSONDictionary:(id)_no];
88758885 if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
8876- _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
8877- if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
8886+ _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto];
8887+ if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
88788888 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
88798889 if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil;
88808890 _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline];
@@ -8975,7 +8985,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89758985 @"native": [_native JSONDictionary],
89768986 @"newtonsoft": [_newtonsoft JSONDictionary],
89778987 @"NO": [_no JSONDictionary],
8978- @"noexcept": [_noexcept JSONDictionary],
8988+ @"goto": [_obj3Goto JSONDictionary],
89798989 @"if": [_obj3If JSONDictionary],
89808990 @"inline": [_obj3Inline JSONDictionary],
89818991 @"int": [_obj3Int JSONDictionary],
@@ -11539,25 +11549,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1153911549 }
1154011550 @end
1154111551
11542-@implementation QTNoexcept
11552+@implementation QTGoto
1154311553 + (NSDictionary<NSString *, NSString *> *)properties
1154411554 {
1154511555 static NSDictionary<NSString *, NSString *> *properties;
1154611556 return properties = properties ? properties : @{
11547- @"noexcept": @"noexcept",
11557+ @"goto": @"gotoGoto",
1154811558 };
1154911559 }
1155011560
1155111561 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1155211562 {
11553- return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
11563+ return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil;
1155411564 }
1155511565
1155611566 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1155711567 {
1155811568 if (self = [super init]) {
11559- if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
11560- if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
11569+ if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil;
11570+ if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil;
1156111571 [self setValuesForKeysWithDictionary:dict];
1156211572 }
1156311573 return self;
@@ -11565,19 +11575,29 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1156511575
1156611576 - (void)setValue:(nullable id)value forKey:(NSString *)key
1156711577 {
11568- id resolved = QTNoexcept.properties[key];
11578+ id resolved = QTGoto.properties[key];
1156911579 if (resolved) [super setValue:value forKey:resolved];
1157011580 }
1157111581
1157211582 - (void)setNilValueForKey:(NSString *)key
1157311583 {
11574- id resolved = QTNoexcept.properties[key];
11584+ id resolved = QTGoto.properties[key];
1157511585 if (resolved) [super setValue:@(0) forKey:resolved];
1157611586 }
1157711587
1157811588 - (NSDictionary *)JSONDictionary
1157911589 {
11580- return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
11590+ id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy];
11591+
11592+ for (id jsonName in QTGoto.properties) {
11593+ id propertyName = QTGoto.properties[jsonName];
11594+ if (![jsonName isEqualToString:propertyName]) {
11595+ dict[jsonName] = dict[propertyName];
11596+ [dict removeObjectForKey:propertyName];
11597+ }
11598+ }
11599+
11600+ return dict;
1158111601 }
1158211602 @end
1158311603
@@ -12004,6 +12024,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1200412024 return properties = properties ? properties : @{
1200512025 @"dummy": @"dummy",
1200612026 @"noSuchMethod": @"noSuchMethod",
12027+ @"noexcept": @"noexcept",
1200712028 @"None": @"none",
1200812029 @"nonlocal": @"nonlocal",
1200912030 @"nonmutating": @"nonmutating",
@@ -12066,7 +12087,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1206612087 @"sbyte": @"sbyte",
1206712088 @"sealed": @"sealed",
1206812089 @"SEL": @"sel",
12069- @"select": @"select",
1207012090 };
1207112091 }
1207212092
@@ -12081,6 +12101,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1208112101 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1208212102 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
1208312103 if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
12104+ if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
1208412105 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
1208512106 if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil;
1208612107 if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12143,10 +12164,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1214312164 if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
1214412165 if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
1214512166 if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
12146- if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1214712167 [self setValuesForKeysWithDictionary:dict];
1214812168 _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
1214912169 if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
12170+ _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
12171+ if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
1215012172 _none = [QTNone fromJSONDictionary:(id)_none];
1215112173 if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil;
1215212174 _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal];
@@ -12271,8 +12293,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1227112293 if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
1227212294 _sel = [QTSel fromJSONDictionary:(id)_sel];
1227312295 if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
12274- _select = [QTSelect fromJSONDictionary:(id)_select];
12275- if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1227612296 }
1227712297 return self;
1227812298 }
@@ -12303,6 +12323,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1230312323
1230412324 [dict addEntriesFromDictionary:@{
1230512325 @"noSuchMethod": [_noSuchMethod JSONDictionary],
12326+ @"noexcept": [_noexcept JSONDictionary],
1230612327 @"None": [_none JSONDictionary],
1230712328 @"nonlocal": [_nonlocal JSONDictionary],
1230812329 @"nonmutating": [_nonmutating JSONDictionary],
@@ -12365,7 +12386,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1236512386 @"sbyte": [_sbyte JSONDictionary],
1236612387 @"sealed": [_sealed JSONDictionary],
1236712388 @"SEL": [_sel JSONDictionary],
12368- @"select": [_select JSONDictionary],
1236912389 }];
1237012390
1237112391 return dict;
@@ -12414,6 +12434,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1241412434 }
1241512435 @end
1241612436
12437+@implementation QTNoexcept
12438++ (NSDictionary<NSString *, NSString *> *)properties
12439+{
12440+ static NSDictionary<NSString *, NSString *> *properties;
12441+ return properties = properties ? properties : @{
12442+ @"noexcept": @"noexcept",
12443+ };
12444+}
12445+
12446++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12447+{
12448+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
12449+}
12450+
12451+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12452+{
12453+ if (self = [super init]) {
12454+ if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
12455+ if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
12456+ [self setValuesForKeysWithDictionary:dict];
12457+ }
12458+ return self;
12459+}
12460+
12461+- (void)setValue:(nullable id)value forKey:(NSString *)key
12462+{
12463+ id resolved = QTNoexcept.properties[key];
12464+ if (resolved) [super setValue:value forKey:resolved];
12465+}
12466+
12467+- (void)setNilValueForKey:(NSString *)key
12468+{
12469+ id resolved = QTNoexcept.properties[key];
12470+ if (resolved) [super setValue:@(0) forKey:resolved];
12471+}
12472+
12473+- (NSDictionary *)JSONDictionary
12474+{
12475+ return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
12476+}
12477+@end
12478+
1241712479 @implementation QTNone
1241812480 + (NSDictionary<NSString *, NSString *> *)properties
1241912481 {
@@ -15188,48 +15250,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1518815250 }
1518915251 @end
1519015252
15191-@implementation QTSelect
15192-+ (NSDictionary<NSString *, NSString *> *)properties
15193-{
15194- static NSDictionary<NSString *, NSString *> *properties;
15195- return properties = properties ? properties : @{
15196- @"select": @"select",
15197- };
15198-}
15199-
15200-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15201-{
15202- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
15203-}
15204-
15205-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15206-{
15207- if (self = [super init]) {
15208- if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
15209- if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
15210- [self setValuesForKeysWithDictionary:dict];
15211- }
15212- return self;
15213-}
15214-
15215-- (void)setValue:(nullable id)value forKey:(NSString *)key
15216-{
15217- id resolved = QTSelect.properties[key];
15218- if (resolved) [super setValue:value forKey:resolved];
15219-}
15220-
15221-- (void)setNilValueForKey:(NSString *)key
15222-{
15223- id resolved = QTSelect.properties[key];
15224- if (resolved) [super setValue:@(0) forKey:resolved];
15225-}
15226-
15227-- (NSDictionary *)JSONDictionary
15228-{
15229- return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
15230-}
15231-@end
15232-
1523315253 @implementation QTObj5
1523415254 + (NSDictionary<NSString *, NSString *> *)properties
1523515255 {
@@ -15249,8 +15269,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1524915269 @"typedef": @"obj5Typedef",
1525015270 @"typeof": @"obj5Typeof",
1525115271 @"union": @"obj5Union",
15252- @"unsigned": @"obj5Unsigned",
1525315272 @"PrimitiveKind": @"primitiveKind",
15273+ @"select": @"select",
1525415274 @"Self": @"self",
1525515275 @"Sendable": @"sendable",
1525615276 @"SerialDescriptor": @"serialDescriptor",
@@ -15283,6 +15303,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1528315303 @"TimeOnly": @"timeOnly",
1528415304 @"TimeOnlyConverter": @"timeOnlyConverter",
1528515305 @"TimeZone": @"timeZone",
15306+ @"to_dict": @"toDict",
1528615307 @"to_json": @"toJSON",
1528715308 @"toString": @"toString",
1528815309 @"top_level": @"topLevel",
@@ -15299,7 +15320,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1529915320 @"unowned": @"unowned",
1530015321 @"unsafe": @"unsafe",
1530115322 @"UseSerializers": @"useSerializers",
15302- @"ushort": @"ushort",
1530315323 };
1530415324 }
1530515325
@@ -15326,8 +15346,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1532615346 if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil;
1532715347 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1532815348 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
15329- if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
1533015349 if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil;
15350+ if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1533115351 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1533215352 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
1533315353 if (![dict[@"SerialDescriptor"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15360,6 +15380,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1536015380 if (![dict[@"TimeOnly"] isKindOfClass:NSDictionary.class]) return nil;
1536115381 if (![dict[@"TimeOnlyConverter"] isKindOfClass:NSDictionary.class]) return nil;
1536215382 if (![dict[@"TimeZone"] isKindOfClass:NSDictionary.class]) return nil;
15383+ if (![dict[@"to_dict"] isKindOfClass:NSDictionary.class]) return nil;
1536315384 if (![dict[@"to_json"] isKindOfClass:NSDictionary.class]) return nil;
1536415385 if (![dict[@"toString"] isKindOfClass:NSDictionary.class]) return nil;
1536515386 if (![dict[@"top_level"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15376,7 +15397,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1537615397 if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil;
1537715398 if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
1537815399 if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil;
15379- if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
1538015400 [self setValuesForKeysWithDictionary:dict];
1538115401 _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer];
1538215402 if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil;
@@ -15404,10 +15424,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1540415424 if (!_obj5Typeof && dict[@"typeof"] && ![dict[@"typeof"] isKindOfClass:NSNull.class]) return nil;
1540515425 _obj5Union = [QTUnion fromJSONDictionary:(id)_obj5Union];
1540615426 if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
15407- _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned];
15408- if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
1540915427 _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind];
1541015428 if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil;
15429+ _select = [QTSelect fromJSONDictionary:(id)_select];
15430+ if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1541115431 _self = [QTSelf fromJSONDictionary:(id)_self];
1541215432 if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil;
1541315433 _sendable = [QTSendable fromJSONDictionary:(id)_sendable];
@@ -15472,6 +15492,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1547215492 if (!_timeOnlyConverter && dict[@"TimeOnlyConverter"] && ![dict[@"TimeOnlyConverter"] isKindOfClass:NSNull.class]) return nil;
1547315493 _timeZone = [QTTimeZone fromJSONDictionary:(id)_timeZone];
1547415494 if (!_timeZone && dict[@"TimeZone"] && ![dict[@"TimeZone"] isKindOfClass:NSNull.class]) return nil;
15495+ _toDict = [QTToDict fromJSONDictionary:(id)_toDict];
15496+ if (!_toDict && dict[@"to_dict"] && ![dict[@"to_dict"] isKindOfClass:NSNull.class]) return nil;
1547515497 _toJSON = [QTToJSON fromJSONDictionary:(id)_toJSON];
1547615498 if (!_toJSON && dict[@"to_json"] && ![dict[@"to_json"] isKindOfClass:NSNull.class]) return nil;
1547715499 _toString = [QTToString fromJSONDictionary:(id)_toString];
@@ -15504,8 +15526,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1550415526 if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
1550515527 _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers];
1550615528 if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil;
15507- _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
15508- if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
1550915529 }
1551015530 return self;
1551115531 }
@@ -15548,8 +15568,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1554815568 @"typedef": [_obj5Typedef JSONDictionary],
1554915569 @"typeof": [_obj5Typeof JSONDictionary],
1555015570 @"union": [_obj5Union JSONDictionary],
15551- @"unsigned": [_obj5Unsigned JSONDictionary],
1555215571 @"PrimitiveKind": [_primitiveKind JSONDictionary],
15572+ @"select": [_select JSONDictionary],
1555315573 @"Self": [_self JSONDictionary],
1555415574 @"Sendable": [_sendable JSONDictionary],
1555515575 @"SerialDescriptor": [_serialDescriptor JSONDictionary],
@@ -15582,6 +15602,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1558215602 @"TimeOnly": [_timeOnly JSONDictionary],
1558315603 @"TimeOnlyConverter": [_timeOnlyConverter JSONDictionary],
1558415604 @"TimeZone": [_timeZone JSONDictionary],
15605+ @"to_dict": [_toDict JSONDictionary],
1558515606 @"to_json": [_toJSON JSONDictionary],
1558615607 @"toString": [_toString JSONDictionary],
1558715608 @"top_level": [_topLevel JSONDictionary],
@@ -15598,7 +15619,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1559815619 @"unowned": [_unowned JSONDictionary],
1559915620 @"unsafe": [_unsafe JSONDictionary],
1560015621 @"UseSerializers": [_useSerializers JSONDictionary],
15601- @"ushort": [_ushort JSONDictionary],
1560215622 }];
1560315623
1560415624 return dict;
@@ -16261,25 +16281,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1626116281 }
1626216282 @end
1626316283
16264-@implementation QTUnsigned
16284+@implementation QTPrimitiveKind
1626516285 + (NSDictionary<NSString *, NSString *> *)properties
1626616286 {
1626716287 static NSDictionary<NSString *, NSString *> *properties;
1626816288 return properties = properties ? properties : @{
16269- @"unsigned": @"unsignedUnsigned",
16289+ @"PrimitiveKind": @"primitiveKind",
1627016290 };
1627116291 }
1627216292
1627316293 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1627416294 {
16275- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
16295+ return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
1627616296 }
1627716297
1627816298 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1627916299 {
1628016300 if (self = [super init]) {
16281- if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
16282- if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
16301+ if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16302+ if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
1628316303 [self setValuesForKeysWithDictionary:dict];
1628416304 }
1628516305 return self;
@@ -16287,22 +16307,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1628716307
1628816308 - (void)setValue:(nullable id)value forKey:(NSString *)key
1628916309 {
16290- id resolved = QTUnsigned.properties[key];
16310+ id resolved = QTPrimitiveKind.properties[key];
1629116311 if (resolved) [super setValue:value forKey:resolved];
1629216312 }
1629316313
1629416314 - (void)setNilValueForKey:(NSString *)key
1629516315 {
16296- id resolved = QTUnsigned.properties[key];
16316+ id resolved = QTPrimitiveKind.properties[key];
1629716317 if (resolved) [super setValue:@(0) forKey:resolved];
1629816318 }
1629916319
1630016320 - (NSDictionary *)JSONDictionary
1630116321 {
16302- id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
16322+ id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
1630316323
16304- for (id jsonName in QTUnsigned.properties) {
16305- id propertyName = QTUnsigned.properties[jsonName];
16324+ for (id jsonName in QTPrimitiveKind.properties) {
16325+ id propertyName = QTPrimitiveKind.properties[jsonName];
1630616326 if (![jsonName isEqualToString:propertyName]) {
1630716327 dict[jsonName] = dict[propertyName];
1630816328 [dict removeObjectForKey:propertyName];
@@ -16313,25 +16333,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1631316333 }
1631416334 @end
1631516335
16316-@implementation QTPrimitiveKind
16336+@implementation QTSelect
1631716337 + (NSDictionary<NSString *, NSString *> *)properties
1631816338 {
1631916339 static NSDictionary<NSString *, NSString *> *properties;
1632016340 return properties = properties ? properties : @{
16321- @"PrimitiveKind": @"primitiveKind",
16341+ @"select": @"select",
1632216342 };
1632316343 }
1632416344
1632516345 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1632616346 {
16327- return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
16347+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
1632816348 }
1632916349
1633016350 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1633116351 {
1633216352 if (self = [super init]) {
16333- if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16334- if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
16353+ if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16354+ if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
1633516355 [self setValuesForKeysWithDictionary:dict];
1633616356 }
1633716357 return self;
@@ -16339,29 +16359,19 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1633916359
1634016360 - (void)setValue:(nullable id)value forKey:(NSString *)key
1634116361 {
16342- id resolved = QTPrimitiveKind.properties[key];
16362+ id resolved = QTSelect.properties[key];
1634316363 if (resolved) [super setValue:value forKey:resolved];
1634416364 }
1634516365
1634616366 - (void)setNilValueForKey:(NSString *)key
1634716367 {
16348- id resolved = QTPrimitiveKind.properties[key];
16368+ id resolved = QTSelect.properties[key];
1634916369 if (resolved) [super setValue:@(0) forKey:resolved];
1635016370 }
1635116371
1635216372 - (NSDictionary *)JSONDictionary
1635316373 {
16354- id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
16355-
16356- for (id jsonName in QTPrimitiveKind.properties) {
16357- id propertyName = QTPrimitiveKind.properties[jsonName];
16358- if (![jsonName isEqualToString:propertyName]) {
16359- dict[jsonName] = dict[propertyName];
16360- [dict removeObjectForKey:propertyName];
16361- }
16362- }
16363-
16364- return dict;
16374+ return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
1636516375 }
1636616376 @end
1636716377
@@ -17879,6 +17889,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1787917889 }
1788017890 @end
1788117891
17892+@implementation QTToDict
17893++ (NSDictionary<NSString *, NSString *> *)properties
17894+{
17895+ static NSDictionary<NSString *, NSString *> *properties;
17896+ return properties = properties ? properties : @{
17897+ @"to_dict": @"toDict",
17898+ };
17899+}
17900+
17901++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
17902+{
17903+ return [dict isKindOfClass:NSDictionary.class] ? [[QTToDict alloc] initWithJSONDictionary:dict] : nil;
17904+}
17905+
17906+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
17907+{
17908+ if (self = [super init]) {
17909+ if (![dict[@"to_dict"] isKindOfClass:NSNumber.class]) return nil;
17910+ if ([dict[@"to_dict"] doubleValue] != [dict[@"to_dict"] longLongValue]) return nil;
17911+ [self setValuesForKeysWithDictionary:dict];
17912+ }
17913+ return self;
17914+}
17915+
17916+- (void)setValue:(nullable id)value forKey:(NSString *)key
17917+{
17918+ id resolved = QTToDict.properties[key];
17919+ if (resolved) [super setValue:value forKey:resolved];
17920+}
17921+
17922+- (void)setNilValueForKey:(NSString *)key
17923+{
17924+ id resolved = QTToDict.properties[key];
17925+ if (resolved) [super setValue:@(0) forKey:resolved];
17926+}
17927+
17928+- (NSDictionary *)JSONDictionary
17929+{
17930+ id dict = [[self dictionaryWithValuesForKeys:QTToDict.properties.allValues] mutableCopy];
17931+
17932+ for (id jsonName in QTToDict.properties) {
17933+ id propertyName = QTToDict.properties[jsonName];
17934+ if (![jsonName isEqualToString:propertyName]) {
17935+ dict[jsonName] = dict[propertyName];
17936+ [dict removeObjectForKey:propertyName];
17937+ }
17938+ }
17939+
17940+ return dict;
17941+}
17942+@end
17943+
1788217944 @implementation QTToJSON
1788317945 + (NSDictionary<NSString *, NSString *> *)properties
1788417946 {
@@ -18591,57 +18653,17 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1859118653 }
1859218654 @end
1859318655
18594-@implementation QTUshort
18595-+ (NSDictionary<NSString *, NSString *> *)properties
18596-{
18597- static NSDictionary<NSString *, NSString *> *properties;
18598- return properties = properties ? properties : @{
18599- @"ushort": @"ushort",
18600- };
18601-}
18602-
18603-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18604-{
18605- return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
18606-}
18607-
18608-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18609-{
18610- if (self = [super init]) {
18611- if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
18612- if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
18613- [self setValuesForKeysWithDictionary:dict];
18614- }
18615- return self;
18616-}
18617-
18618-- (void)setValue:(nullable id)value forKey:(NSString *)key
18619-{
18620- id resolved = QTUshort.properties[key];
18621- if (resolved) [super setValue:value forKey:resolved];
18622-}
18623-
18624-- (void)setNilValueForKey:(NSString *)key
18625-{
18626- id resolved = QTUshort.properties[key];
18627- if (resolved) [super setValue:@(0) forKey:resolved];
18628-}
18629-
18630-- (NSDictionary *)JSONDictionary
18631-{
18632- return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
18633-}
18634-@end
18635-
1863618656 @implementation QTObj6
1863718657 + (NSDictionary<NSString *, NSString *> *)properties
1863818658 {
1863918659 static NSDictionary<NSString *, NSString *> *properties;
1864018660 return properties = properties ? properties : @{
1864118661 @"dummy": @"dummy",
18662+ @"unsigned": @"obj6Unsigned",
1864218663 @"void": @"obj6Void",
1864318664 @"volatile": @"obj6Volatile",
1864418665 @"while": @"obj6While",
18666+ @"ushort": @"ushort",
1864518667 @"using": @"using",
1864618668 @"Utf8JsonReader": @"utf8JSONReader",
1864718669 @"Utf8JsonWriter": @"utf8JSONWriter",
@@ -18670,9 +18692,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1867018692 if (self = [super init]) {
1867118693 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1867218694 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18695+ if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
1867318696 if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
1867418697 if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
1867518698 if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18699+ if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
1867618700 if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
1867718701 if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
1867818702 if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18689,12 +18713,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1868918713 if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
1869018714 if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
1869118715 [self setValuesForKeysWithDictionary:dict];
18716+ _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned];
18717+ if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
1869218718 _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
1869318719 if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
1869418720 _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
1869518721 if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
1869618722 _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
1869718723 if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18724+ _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
18725+ if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
1869818726 _using = [QTUsing fromJSONDictionary:(id)_using];
1869918727 if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
1870018728 _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
@@ -18754,9 +18782,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1875418782 }
1875518783
1875618784 [dict addEntriesFromDictionary:@{
18785+ @"unsigned": [_obj6Unsigned JSONDictionary],
1875718786 @"void": [_obj6Void JSONDictionary],
1875818787 @"volatile": [_obj6Volatile JSONDictionary],
1875918788 @"while": [_obj6While JSONDictionary],
18789+ @"ushort": [_ushort JSONDictionary],
1876018790 @"using": [_using JSONDictionary],
1876118791 @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
1876218792 @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
@@ -18778,6 +18808,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1877818808 }
1877918809 @end
1878018810
18811+@implementation QTUnsigned
18812++ (NSDictionary<NSString *, NSString *> *)properties
18813+{
18814+ static NSDictionary<NSString *, NSString *> *properties;
18815+ return properties = properties ? properties : @{
18816+ @"unsigned": @"unsignedUnsigned",
18817+ };
18818+}
18819+
18820++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18821+{
18822+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
18823+}
18824+
18825+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18826+{
18827+ if (self = [super init]) {
18828+ if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
18829+ if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
18830+ [self setValuesForKeysWithDictionary:dict];
18831+ }
18832+ return self;
18833+}
18834+
18835+- (void)setValue:(nullable id)value forKey:(NSString *)key
18836+{
18837+ id resolved = QTUnsigned.properties[key];
18838+ if (resolved) [super setValue:value forKey:resolved];
18839+}
18840+
18841+- (void)setNilValueForKey:(NSString *)key
18842+{
18843+ id resolved = QTUnsigned.properties[key];
18844+ if (resolved) [super setValue:@(0) forKey:resolved];
18845+}
18846+
18847+- (NSDictionary *)JSONDictionary
18848+{
18849+ id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
18850+
18851+ for (id jsonName in QTUnsigned.properties) {
18852+ id propertyName = QTUnsigned.properties[jsonName];
18853+ if (![jsonName isEqualToString:propertyName]) {
18854+ dict[jsonName] = dict[propertyName];
18855+ [dict removeObjectForKey:propertyName];
18856+ }
18857+ }
18858+
18859+ return dict;
18860+}
18861+@end
18862+
1878118863 @implementation QTVoid
1878218864 + (NSDictionary<NSString *, NSString *> *)properties
1878318865 {
@@ -18934,6 +19016,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1893419016 }
1893519017 @end
1893619018
19019+@implementation QTUshort
19020++ (NSDictionary<NSString *, NSString *> *)properties
19021+{
19022+ static NSDictionary<NSString *, NSString *> *properties;
19023+ return properties = properties ? properties : @{
19024+ @"ushort": @"ushort",
19025+ };
19026+}
19027+
19028++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19029+{
19030+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
19031+}
19032+
19033+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19034+{
19035+ if (self = [super init]) {
19036+ if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
19037+ if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
19038+ [self setValuesForKeysWithDictionary:dict];
19039+ }
19040+ return self;
19041+}
19042+
19043+- (void)setValue:(nullable id)value forKey:(NSString *)key
19044+{
19045+ id resolved = QTUshort.properties[key];
19046+ if (resolved) [super setValue:value forKey:resolved];
19047+}
19048+
19049+- (void)setNilValueForKey:(NSString *)key
19050+{
19051+ id resolved = QTUshort.properties[key];
19052+ if (resolved) [super setValue:@(0) forKey:resolved];
19053+}
19054+
19055+- (NSDictionary *)JSONDictionary
19056+{
19057+ return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
19058+}
19059+@end
19060+
1893719061 @implementation QTUsing
1893819062 + (NSDictionary<NSString *, NSString *> *)properties
1893919063 {
Mphpdefault / TopLevel.php+1,328 −1,010
@@ -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 {
@@ -41642,6 +41642,7 @@ class Obj5 {
4164241642 private Obj5True $obj5True; // json:true Required
4164341643 private TypeClass $obj5Type; // json:type Required
4164441644 private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
41645+ private Select $select; // json:select Required
4164541646 private SelfClass $self; // json:Self Required
4164641647 private Sendable $sendable; // json:Sendable Required
4164741648 private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required
@@ -41678,6 +41679,7 @@ class Obj5 {
4167841679 private TimeOnly $timeOnly; // json:TimeOnly Required
4167941680 private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required
4168041681 private TimeZone $timeZone; // json:TimeZone Required
41682+ private ToDict $toDict; // json:to_dict Required
4168141683 private ToJSON $toJSON; // json:to_json Required
4168241684 private ToString $toString; // json:toString Required
4168341685 private TopLevelClass $topLevel; // json:top_level Required
@@ -41697,9 +41699,7 @@ class Obj5 {
4169741699 private Union $union; // json:union Required
4169841700 private Unowned $unowned; // json:unowned Required
4169941701 private Unsafe $unsafe; // json:unsafe Required
41700- private Unsigned $unsigned; // json:unsigned Required
4170141702 private UseSerializers $useSerializers; // json:UseSerializers Required
41702- private Ushort $ushort; // json:ushort Required
4170341703
4170441704 /**
4170541705 * @param int $dummy
@@ -41709,6 +41709,7 @@ class Obj5 {
4170941709 * @param Obj5True $obj5True
4171041710 * @param TypeClass $obj5Type
4171141711 * @param PrimitiveKind $primitiveKind
41712+ * @param Select $select
4171241713 * @param SelfClass $self
4171341714 * @param Sendable $sendable
4171441715 * @param SerialDescriptor $serialDescriptor
@@ -41745,6 +41746,7 @@ class Obj5 {
4174541746 * @param TimeOnly $timeOnly
4174641747 * @param TimeOnlyConverter $timeOnlyConverter
4174741748 * @param TimeZone $timeZone
41749+ * @param ToDict $toDict
4174841750 * @param ToJSON $toJSON
4174941751 * @param ToString $toString
4175041752 * @param TopLevelClass $topLevel
@@ -41764,11 +41766,9 @@ class Obj5 {
4176441766 * @param Union $union
4176541767 * @param Unowned $unowned
4176641768 * @param Unsafe $unsafe
41767- * @param Unsigned $unsigned
4176841769 * @param UseSerializers $useSerializers
41769- * @param Ushort $ushort
4177041770 */
41771- public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, UseSerializers $useSerializers, Ushort $ushort) {
41771+ public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, UseSerializers $useSerializers) {
4177241772 $this->dummy = $dummy;
4177341773 $this->kSerializer = $kSerializer;
4177441774 $this->obj5Self = $obj5Self;
@@ -41776,6 +41776,7 @@ class Obj5 {
4177641776 $this->obj5True = $obj5True;
4177741777 $this->obj5Type = $obj5Type;
4177841778 $this->primitiveKind = $primitiveKind;
41779+ $this->select = $select;
4177941780 $this->self = $self;
4178041781 $this->sendable = $sendable;
4178141782 $this->serialDescriptor = $serialDescriptor;
@@ -41812,6 +41813,7 @@ class Obj5 {
4181241813 $this->timeOnly = $timeOnly;
4181341814 $this->timeOnlyConverter = $timeOnlyConverter;
4181441815 $this->timeZone = $timeZone;
41816+ $this->toDict = $toDict;
4181541817 $this->toJSON = $toJSON;
4181641818 $this->toString = $toString;
4181741819 $this->topLevel = $topLevel;
@@ -41831,9 +41833,7 @@ class Obj5 {
4183141833 $this->union = $union;
4183241834 $this->unowned = $unowned;
4183341835 $this->unsafe = $unsafe;
41834- $this->unsigned = $unsigned;
4183541836 $this->useSerializers = $useSerializers;
41836- $this->ushort = $ushort;
4183741837 }
4183841838
4183941839 /**
@@ -42171,6 +42171,54 @@ class Obj5 {
4217142171 return PrimitiveKind::sample(); /*37:primitiveKind*/
4217242172 }
4217342173
42174+ /**
42175+ * @param stdClass $value
42176+ * @throws Exception
42177+ * @return Select
42178+ */
42179+ public static function fromSelect(stdClass $value): Select {
42180+ return Select::from($value); /*class*/
42181+ }
42182+
42183+ /**
42184+ * @throws Exception
42185+ * @return stdClass
42186+ */
42187+ public function toSelect(): stdClass {
42188+ if (Obj5::validateSelect($this->select)) {
42189+ return $this->select->to(); /*class*/
42190+ }
42191+ throw new Exception('never get to this Obj5::select');
42192+ }
42193+
42194+ /**
42195+ * @param Select
42196+ * @return bool
42197+ * @throws Exception
42198+ */
42199+ public static function validateSelect(Select $value): bool {
42200+ $value->validate();
42201+ return true;
42202+ }
42203+
42204+ /**
42205+ * @throws Exception
42206+ * @return Select
42207+ */
42208+ public function getSelect(): Select {
42209+ if (Obj5::validateSelect($this->select)) {
42210+ return $this->select;
42211+ }
42212+ throw new Exception('never get to getSelect Obj5::select');
42213+ }
42214+
42215+ /**
42216+ * @return Select
42217+ */
42218+ public static function sampleSelect(): Select {
42219+ return Select::sample(); /*38:select*/
42220+ }
42221+
4217442222 /**
4217542223 * @param stdClass $value
4217642224 * @throws Exception
@@ -42216,7 +42264,7 @@ class Obj5 {
4221642264 * @return SelfClass
4221742265 */
4221842266 public static function sampleSelf(): SelfClass {
42219- return SelfClass::sample(); /*38:self*/
42267+ return SelfClass::sample(); /*39:self*/
4222042268 }
4222142269
4222242270 /**
@@ -42264,7 +42312,7 @@ class Obj5 {
4226442312 * @return Sendable
4226542313 */
4226642314 public static function sampleSendable(): Sendable {
42267- return Sendable::sample(); /*39:sendable*/
42315+ return Sendable::sample(); /*40:sendable*/
4226842316 }
4226942317
4227042318 /**
@@ -42312,7 +42360,7 @@ class Obj5 {
4231242360 * @return SerialDescriptor
4231342361 */
4231442362 public static function sampleSerialDescriptor(): SerialDescriptor {
42315- return SerialDescriptor::sample(); /*40:serialDescriptor*/
42363+ return SerialDescriptor::sample(); /*41:serialDescriptor*/
4231642364 }
4231742365
4231842366 /**
@@ -42360,7 +42408,7 @@ class Obj5 {
4236042408 * @return SerialName
4236142409 */
4236242410 public static function sampleSerialName(): SerialName {
42363- return SerialName::sample(); /*41:serialName*/
42411+ return SerialName::sample(); /*42:serialName*/
4236442412 }
4236542413
4236642414 /**
@@ -42408,7 +42456,7 @@ class Obj5 {
4240842456 * @return SerializableClass
4240942457 */
4241042458 public static function sampleSerializable(): SerializableClass {
42411- return SerializableClass::sample(); /*42:serializable*/
42459+ return SerializableClass::sample(); /*43:serializable*/
4241242460 }
4241342461
4241442462 /**
@@ -42456,7 +42504,7 @@ class Obj5 {
4245642504 * @return Serialize
4245742505 */
4245842506 public static function sampleSerialize(): Serialize {
42459- return Serialize::sample(); /*43:serialize*/
42507+ return Serialize::sample(); /*44:serialize*/
4246042508 }
4246142509
4246242510 /**
@@ -42504,7 +42552,7 @@ class Obj5 {
4250442552 * @return SerializerProvider
4250542553 */
4250642554 public static function sampleSerializerProvider(): SerializerProvider {
42507- return SerializerProvider::sample(); /*44:serializerProvider*/
42555+ return SerializerProvider::sample(); /*45:serializerProvider*/
4250842556 }
4250942557
4251042558 /**
@@ -42552,7 +42600,7 @@ class Obj5 {
4255242600 * @return Set
4255342601 */
4255442602 public static function sampleSet(): Set {
42555- return Set::sample(); /*45:set*/
42603+ return Set::sample(); /*46:set*/
4255642604 }
4255742605
4255842606 /**
@@ -42600,7 +42648,7 @@ class Obj5 {
4260042648 * @return Short
4260142649 */
4260242650 public static function sampleShort(): Short {
42603- return Short::sample(); /*46:short*/
42651+ return Short::sample(); /*47:short*/
4260442652 }
4260542653
4260642654 /**
@@ -42648,7 +42696,7 @@ class Obj5 {
4264842696 * @return Signed
4264942697 */
4265042698 public static function sampleSigned(): Signed {
42651- return Signed::sample(); /*47:signed*/
42699+ return Signed::sample(); /*48:signed*/
4265242700 }
4265342701
4265442702 /**
@@ -42696,7 +42744,7 @@ class Obj5 {
4269642744 * @return SimpleModule
4269742745 */
4269842746 public static function sampleSimpleModule(): SimpleModule {
42699- return SimpleModule::sample(); /*48:simpleModule*/
42747+ return SimpleModule::sample(); /*49:simpleModule*/
4270042748 }
4270142749
4270242750 /**
@@ -42744,7 +42792,7 @@ class Obj5 {
4274442792 * @return Sizeof
4274542793 */
4274642794 public static function sampleSizeof(): Sizeof {
42747- return Sizeof::sample(); /*49:sizeof*/
42795+ return Sizeof::sample(); /*50:sizeof*/
4274842796 }
4274942797
4275042798 /**
@@ -42792,7 +42840,7 @@ class Obj5 {
4279242840 * @return Stackalloc
4279342841 */
4279442842 public static function sampleStackalloc(): Stackalloc {
42795- return Stackalloc::sample(); /*50:stackalloc*/
42843+ return Stackalloc::sample(); /*51:stackalloc*/
4279642844 }
4279742845
4279842846 /**
@@ -42840,7 +42888,7 @@ class Obj5 {
4284042888 * @return Standards
4284142889 */
4284242890 public static function sampleStandards(): Standards {
42843- return Standards::sample(); /*51:standards*/
42891+ return Standards::sample(); /*52:standards*/
4284442892 }
4284542893
4284642894 /**
@@ -42888,7 +42936,7 @@ class Obj5 {
4288842936 * @return StaticClass
4288942937 */
4289042938 public static function sampleStatic(): StaticClass {
42891- return StaticClass::sample(); /*52:static*/
42939+ return StaticClass::sample(); /*53:static*/
4289242940 }
4289342941
4289442942 /**
@@ -42936,7 +42984,7 @@ class Obj5 {
4293642984 * @return StaticAssert
4293742985 */
4293842986 public static function sampleStaticAssert(): StaticAssert {
42939- return StaticAssert::sample(); /*53:staticAssert*/
42987+ return StaticAssert::sample(); /*54:staticAssert*/
4294042988 }
4294142989
4294242990 /**
@@ -42984,7 +43032,7 @@ class Obj5 {
4298443032 * @return StaticCast
4298543033 */
4298643034 public static function sampleStaticCast(): StaticCast {
42987- return StaticCast::sample(); /*54:staticCast*/
43035+ return StaticCast::sample(); /*55:staticCast*/
4298843036 }
4298943037
4299043038 /**
@@ -43032,7 +43080,7 @@ class Obj5 {
4303243080 * @return StdDeserializer
4303343081 */
4303443082 public static function sampleStdDeserializer(): StdDeserializer {
43035- return StdDeserializer::sample(); /*55:stdDeserializer*/
43083+ return StdDeserializer::sample(); /*56:stdDeserializer*/
4303643084 }
4303743085
4303843086 /**
@@ -43080,7 +43128,7 @@ class Obj5 {
4308043128 * @return StdSerializer
4308143129 */
4308243130 public static function sampleStdSerializer(): StdSerializer {
43083- return StdSerializer::sample(); /*56:stdSerializer*/
43131+ return StdSerializer::sample(); /*57:stdSerializer*/
4308443132 }
4308543133
4308643134 /**
@@ -43128,7 +43176,7 @@ class Obj5 {
4312843176 * @return Strictfp
4312943177 */
4313043178 public static function sampleStrictfp(): Strictfp {
43131- return Strictfp::sample(); /*57:strictfp*/
43179+ return Strictfp::sample(); /*58:strictfp*/
4313243180 }
4313343181
4313443182 /**
@@ -43176,7 +43224,7 @@ class Obj5 {
4317643224 * @return StringClass
4317743225 */
4317843226 public static function sampleString(): StringClass {
43179- return StringClass::sample(); /*58:string*/
43227+ return StringClass::sample(); /*59:string*/
4318043228 }
4318143229
4318243230 /**
@@ -43224,7 +43272,7 @@ class Obj5 {
4322443272 * @return Struct
4322543273 */
4322643274 public static function sampleStruct(): Struct {
43227- return Struct::sample(); /*59:struct*/
43275+ return Struct::sample(); /*60:struct*/
4322843276 }
4322943277
4323043278 /**
@@ -43272,7 +43320,7 @@ class Obj5 {
4327243320 * @return Subscript
4327343321 */
4327443322 public static function sampleSubscript(): Subscript {
43275- return Subscript::sample(); /*60:subscript*/
43323+ return Subscript::sample(); /*61:subscript*/
4327643324 }
4327743325
4327843326 /**
@@ -43320,7 +43368,7 @@ class Obj5 {
4332043368 * @return Super
4332143369 */
4332243370 public static function sampleSuper(): Super {
43323- return Super::sample(); /*61:super*/
43371+ return Super::sample(); /*62:super*/
4332443372 }
4332543373
4332643374 /**
@@ -43368,7 +43416,7 @@ class Obj5 {
4336843416 * @return SwitchClass
4336943417 */
4337043418 public static function sampleSwitch(): SwitchClass {
43371- return SwitchClass::sample(); /*62:switch*/
43419+ return SwitchClass::sample(); /*63:switch*/
4337243420 }
4337343421
4337443422 /**
@@ -43416,7 +43464,7 @@ class Obj5 {
4341643464 * @return Symbol
4341743465 */
4341843466 public static function sampleSymbol(): Symbol {
43419- return Symbol::sample(); /*63:symbol*/
43467+ return Symbol::sample(); /*64:symbol*/
4342043468 }
4342143469
4342243470 /**
@@ -43464,7 +43512,7 @@ class Obj5 {
4346443512 * @return Synchronized
4346543513 */
4346643514 public static function sampleSynchronized(): Synchronized {
43467- return Synchronized::sample(); /*64:synchronized*/
43515+ return Synchronized::sample(); /*65:synchronized*/
4346843516 }
4346943517
4347043518 /**
@@ -43512,7 +43560,7 @@ class Obj5 {
4351243560 * @return System
4351343561 */
4351443562 public static function sampleSystem(): System {
43515- return System::sample(); /*65:system*/
43563+ return System::sample(); /*66:system*/
4351643564 }
4351743565
4351843566 /**
@@ -43560,7 +43608,7 @@ class Obj5 {
4356043608 * @return Template
4356143609 */
4356243610 public static function sampleTemplate(): Template {
43563- return Template::sample(); /*66:template*/
43611+ return Template::sample(); /*67:template*/
4356443612 }
4356543613
4356643614 /**
@@ -43608,7 +43656,7 @@ class Obj5 {
4360843656 * @return Then
4360943657 */
4361043658 public static function sampleThen(): Then {
43611- return Then::sample(); /*67:then*/
43659+ return Then::sample(); /*68:then*/
4361243660 }
4361343661
4361443662 /**
@@ -43656,7 +43704,7 @@ class Obj5 {
4365643704 * @return ThreadLocal
4365743705 */
4365843706 public static function sampleThreadLocal(): ThreadLocal {
43659- return ThreadLocal::sample(); /*68:threadLocal*/
43707+ return ThreadLocal::sample(); /*69:threadLocal*/
4366043708 }
4366143709
4366243710 /**
@@ -43704,7 +43752,7 @@ class Obj5 {
4370443752 * @return ThrowClass
4370543753 */
4370643754 public static function sampleThrow(): ThrowClass {
43707- return ThrowClass::sample(); /*69:throw*/
43755+ return ThrowClass::sample(); /*70:throw*/
4370843756 }
4370943757
4371043758 /**
@@ -43752,7 +43800,7 @@ class Obj5 {
4375243800 * @return Throws
4375343801 */
4375443802 public static function sampleThrows(): Throws {
43755- return Throws::sample(); /*70:throws*/
43803+ return Throws::sample(); /*71:throws*/
4375643804 }
4375743805
4375843806 /**
@@ -43800,7 +43848,7 @@ class Obj5 {
4380043848 * @return TimeOnly
4380143849 */
4380243850 public static function sampleTimeOnly(): TimeOnly {
43803- return TimeOnly::sample(); /*71:timeOnly*/
43851+ return TimeOnly::sample(); /*72:timeOnly*/
4380443852 }
4380543853
4380643854 /**
@@ -43848,7 +43896,7 @@ class Obj5 {
4384843896 * @return TimeOnlyConverter
4384943897 */
4385043898 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
43851- return TimeOnlyConverter::sample(); /*72:timeOnlyConverter*/
43899+ return TimeOnlyConverter::sample(); /*73:timeOnlyConverter*/
4385243900 }
4385343901
4385443902 /**
@@ -43896,7 +43944,55 @@ class Obj5 {
4389643944 * @return TimeZone
4389743945 */
4389843946 public static function sampleTimeZone(): TimeZone {
43899- return TimeZone::sample(); /*73:timeZone*/
43947+ return TimeZone::sample(); /*74:timeZone*/
43948+ }
43949+
43950+ /**
43951+ * @param stdClass $value
43952+ * @throws Exception
43953+ * @return ToDict
43954+ */
43955+ public static function fromToDict(stdClass $value): ToDict {
43956+ return ToDict::from($value); /*class*/
43957+ }
43958+
43959+ /**
43960+ * @throws Exception
43961+ * @return stdClass
43962+ */
43963+ public function toToDict(): stdClass {
43964+ if (Obj5::validateToDict($this->toDict)) {
43965+ return $this->toDict->to(); /*class*/
43966+ }
43967+ throw new Exception('never get to this Obj5::toDict');
43968+ }
43969+
43970+ /**
43971+ * @param ToDict
43972+ * @return bool
43973+ * @throws Exception
43974+ */
43975+ public static function validateToDict(ToDict $value): bool {
43976+ $value->validate();
43977+ return true;
43978+ }
43979+
43980+ /**
43981+ * @throws Exception
43982+ * @return ToDict
43983+ */
43984+ public function getToDict(): ToDict {
43985+ if (Obj5::validateToDict($this->toDict)) {
43986+ return $this->toDict;
43987+ }
43988+ throw new Exception('never get to getToDict Obj5::toDict');
43989+ }
43990+
43991+ /**
43992+ * @return ToDict
43993+ */
43994+ public static function sampleToDict(): ToDict {
43995+ return ToDict::sample(); /*75:toDict*/
4390043996 }
4390143997
4390243998 /**
@@ -43944,7 +44040,7 @@ class Obj5 {
4394444040 * @return ToJSON
4394544041 */
4394644042 public static function sampleToJSON(): ToJSON {
43947- return ToJSON::sample(); /*74:toJSON*/
44043+ return ToJSON::sample(); /*76:toJSON*/
4394844044 }
4394944045
4395044046 /**
@@ -43992,7 +44088,7 @@ class Obj5 {
4399244088 * @return ToString
4399344089 */
4399444090 public static function sampleToString(): ToString {
43995- return ToString::sample(); /*75:toString*/
44091+ return ToString::sample(); /*77:toString*/
4399644092 }
4399744093
4399844094 /**
@@ -44040,7 +44136,7 @@ class Obj5 {
4404044136 * @return TopLevelClass
4404144137 */
4404244138 public static function sampleTopLevel(): TopLevelClass {
44043- return TopLevelClass::sample(); /*76:topLevel*/
44139+ return TopLevelClass::sample(); /*78:topLevel*/
4404444140 }
4404544141
4404644142 /**
@@ -44088,7 +44184,7 @@ class Obj5 {
4408844184 * @return Transient
4408944185 */
4409044186 public static function sampleTransient(): Transient {
44091- return Transient::sample(); /*77:transient*/
44187+ return Transient::sample(); /*79:transient*/
4409244188 }
4409344189
4409444190 /**
@@ -44136,7 +44232,7 @@ class Obj5 {
4413644232 * @return TrueClass
4413744233 */
4413844234 public static function sampleTrue(): TrueClass {
44139- return TrueClass::sample(); /*78:true*/
44235+ return TrueClass::sample(); /*80:true*/
4414044236 }
4414144237
4414244238 /**
@@ -44184,7 +44280,7 @@ class Obj5 {
4418444280 * @return TryClass
4418544281 */
4418644282 public static function sampleTry(): TryClass {
44187- return TryClass::sample(); /*79:try*/
44283+ return TryClass::sample(); /*81:try*/
4418844284 }
4418944285
4419044286 /**
@@ -44232,7 +44328,7 @@ class Obj5 {
4423244328 * @return Type
4423344329 */
4423444330 public static function sampleType(): Type {
44235- return Type::sample(); /*80:type*/
44331+ return Type::sample(); /*82:type*/
4423644332 }
4423744333
4423844334 /**
@@ -44280,7 +44376,7 @@ class Obj5 {
4428044376 * @return Typealias
4428144377 */
4428244378 public static function sampleTypealias(): Typealias {
44283- return Typealias::sample(); /*81:typealias*/
44379+ return Typealias::sample(); /*83:typealias*/
4428444380 }
4428544381
4428644382 /**
@@ -44328,7 +44424,7 @@ class Obj5 {
4432844424 * @return Typedef
4432944425 */
4433044426 public static function sampleTypedef(): Typedef {
44331- return Typedef::sample(); /*82:typedef*/
44427+ return Typedef::sample(); /*84:typedef*/
4433244428 }
4433344429
4433444430 /**
@@ -44376,7 +44472,7 @@ class Obj5 {
4437644472 * @return Typeid
4437744473 */
4437844474 public static function sampleTypeid(): Typeid {
44379- return Typeid::sample(); /*83:typeid*/
44475+ return Typeid::sample(); /*85:typeid*/
4438044476 }
4438144477
4438244478 /**
@@ -44424,7 +44520,7 @@ class Obj5 {
4442444520 * @return Typename
4442544521 */
4442644522 public static function sampleTypename(): Typename {
44427- return Typename::sample(); /*84:typename*/
44523+ return Typename::sample(); /*86:typename*/
4442844524 }
4442944525
4443044526 /**
@@ -44472,7 +44568,7 @@ class Obj5 {
4447244568 * @return Typeof
4447344569 */
4447444570 public static function sampleTypeof(): Typeof {
44475- return Typeof::sample(); /*85:typeof*/
44571+ return Typeof::sample(); /*87:typeof*/
4447644572 }
4447744573
4447844574 /**
@@ -44520,7 +44616,7 @@ class Obj5 {
4452044616 * @return Uint
4452144617 */
4452244618 public static function sampleUint(): Uint {
44523- return Uint::sample(); /*86:uint*/
44619+ return Uint::sample(); /*88:uint*/
4452444620 }
4452544621
4452644622 /**
@@ -44568,7 +44664,7 @@ class Obj5 {
4456844664 * @return Ulong
4456944665 */
4457044666 public static function sampleUlong(): Ulong {
44571- return Ulong::sample(); /*87:ulong*/
44667+ return Ulong::sample(); /*89:ulong*/
4457244668 }
4457344669
4457444670 /**
@@ -44616,7 +44712,7 @@ class Obj5 {
4461644712 * @return Unchecked
4461744713 */
4461844714 public static function sampleUnchecked(): Unchecked {
44619- return Unchecked::sample(); /*88:unchecked*/
44715+ return Unchecked::sample(); /*90:unchecked*/
4462044716 }
4462144717
4462244718 /**
@@ -44664,7 +44760,7 @@ class Obj5 {
4466444760 * @return Undefined
4466544761 */
4466644762 public static function sampleUndefined(): Undefined {
44667- return Undefined::sample(); /*89:undefined*/
44763+ return Undefined::sample(); /*91:undefined*/
4466844764 }
4466944765
4467044766 /**
@@ -44712,7 +44808,7 @@ class Obj5 {
4471244808 * @return Union
4471344809 */
4471444810 public static function sampleUnion(): Union {
44715- return Union::sample(); /*90:union*/
44811+ return Union::sample(); /*92:union*/
4471644812 }
4471744813
4471844814 /**
@@ -44760,7 +44856,7 @@ class Obj5 {
4476044856 * @return Unowned
4476144857 */
4476244858 public static function sampleUnowned(): Unowned {
44763- return Unowned::sample(); /*91:unowned*/
44859+ return Unowned::sample(); /*93:unowned*/
4476444860 }
4476544861
4476644862 /**
@@ -44808,55 +44904,7 @@ class Obj5 {
4480844904 * @return Unsafe
4480944905 */
4481044906 public static function sampleUnsafe(): Unsafe {
44811- return Unsafe::sample(); /*92:unsafe*/
44812- }
44813-
44814- /**
44815- * @param stdClass $value
44816- * @throws Exception
44817- * @return Unsigned
44818- */
44819- public static function fromUnsigned(stdClass $value): Unsigned {
44820- return Unsigned::from($value); /*class*/
44821- }
44822-
44823- /**
44824- * @throws Exception
44825- * @return stdClass
44826- */
44827- public function toUnsigned(): stdClass {
44828- if (Obj5::validateUnsigned($this->unsigned)) {
44829- return $this->unsigned->to(); /*class*/
44830- }
44831- throw new Exception('never get to this Obj5::unsigned');
44832- }
44833-
44834- /**
44835- * @param Unsigned
44836- * @return bool
44837- * @throws Exception
44838- */
44839- public static function validateUnsigned(Unsigned $value): bool {
44840- $value->validate();
44841- return true;
44842- }
44843-
44844- /**
44845- * @throws Exception
44846- * @return Unsigned
44847- */
44848- public function getUnsigned(): Unsigned {
44849- if (Obj5::validateUnsigned($this->unsigned)) {
44850- return $this->unsigned;
44851- }
44852- throw new Exception('never get to getUnsigned Obj5::unsigned');
44853- }
44854-
44855- /**
44856- * @return Unsigned
44857- */
44858- public static function sampleUnsigned(): Unsigned {
44859- return Unsigned::sample(); /*93:unsigned*/
44907+ return Unsafe::sample(); /*94:unsafe*/
4486044908 }
4486144909
4486244910 /**
@@ -44904,55 +44952,7 @@ class Obj5 {
4490444952 * @return UseSerializers
4490544953 */
4490644954 public static function sampleUseSerializers(): UseSerializers {
44907- return UseSerializers::sample(); /*94:useSerializers*/
44908- }
44909-
44910- /**
44911- * @param stdClass $value
44912- * @throws Exception
44913- * @return Ushort
44914- */
44915- public static function fromUshort(stdClass $value): Ushort {
44916- return Ushort::from($value); /*class*/
44917- }
44918-
44919- /**
44920- * @throws Exception
44921- * @return stdClass
44922- */
44923- public function toUshort(): stdClass {
44924- if (Obj5::validateUshort($this->ushort)) {
44925- return $this->ushort->to(); /*class*/
44926- }
44927- throw new Exception('never get to this Obj5::ushort');
44928- }
44929-
44930- /**
44931- * @param Ushort
44932- * @return bool
44933- * @throws Exception
44934- */
44935- public static function validateUshort(Ushort $value): bool {
44936- $value->validate();
44937- return true;
44938- }
44939-
44940- /**
44941- * @throws Exception
44942- * @return Ushort
44943- */
44944- public function getUshort(): Ushort {
44945- if (Obj5::validateUshort($this->ushort)) {
44946- return $this->ushort;
44947- }
44948- throw new Exception('never get to getUshort Obj5::ushort');
44949- }
44950-
44951- /**
44952- * @return Ushort
44953- */
44954- public static function sampleUshort(): Ushort {
44955- return Ushort::sample(); /*95:ushort*/
44955+ return UseSerializers::sample(); /*95:useSerializers*/
4495644956 }
4495744957
4495844958 /**
@@ -44967,6 +44967,7 @@ class Obj5 {
4496744967 || Obj5::validateObj5True($this->obj5True)
4496844968 || Obj5::validateObj5Type($this->obj5Type)
4496944969 || Obj5::validatePrimitiveKind($this->primitiveKind)
44970+ || Obj5::validateSelect($this->select)
4497044971 || Obj5::validateSelf($this->self)
4497144972 || Obj5::validateSendable($this->sendable)
4497244973 || Obj5::validateSerialDescriptor($this->serialDescriptor)
@@ -45003,6 +45004,7 @@ class Obj5 {
4500345004 || Obj5::validateTimeOnly($this->timeOnly)
4500445005 || Obj5::validateTimeOnlyConverter($this->timeOnlyConverter)
4500545006 || Obj5::validateTimeZone($this->timeZone)
45007+ || Obj5::validateToDict($this->toDict)
4500645008 || Obj5::validateToJSON($this->toJSON)
4500745009 || Obj5::validateToString($this->toString)
4500845010 || Obj5::validateTopLevel($this->topLevel)
@@ -45022,9 +45024,7 @@ class Obj5 {
4502245024 || Obj5::validateUnion($this->union)
4502345025 || Obj5::validateUnowned($this->unowned)
4502445026 || Obj5::validateUnsafe($this->unsafe)
45025- || Obj5::validateUnsigned($this->unsigned)
45026- || Obj5::validateUseSerializers($this->useSerializers)
45027- || Obj5::validateUshort($this->ushort);
45027+ || Obj5::validateUseSerializers($this->useSerializers);
4502845028 }
4502945029
4503045030 /**
@@ -45040,6 +45040,7 @@ class Obj5 {
4504045040 $out->{'true'} = $this->toObj5True();
4504145041 $out->{'type'} = $this->toObj5Type();
4504245042 $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
45043+ $out->{'select'} = $this->toSelect();
4504345044 $out->{'Self'} = $this->toSelf();
4504445045 $out->{'Sendable'} = $this->toSendable();
4504545046 $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
@@ -45076,6 +45077,7 @@ class Obj5 {
4507645077 $out->{'TimeOnly'} = $this->toTimeOnly();
4507745078 $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
4507845079 $out->{'TimeZone'} = $this->toTimeZone();
45080+ $out->{'to_dict'} = $this->toToDict();
4507945081 $out->{'to_json'} = $this->toToJSON();
4508045082 $out->{'toString'} = $this->toToString();
4508145083 $out->{'top_level'} = $this->toTopLevel();
@@ -45095,9 +45097,7 @@ class Obj5 {
4509545097 $out->{'union'} = $this->toUnion();
4509645098 $out->{'unowned'} = $this->toUnowned();
4509745099 $out->{'unsafe'} = $this->toUnsafe();
45098- $out->{'unsigned'} = $this->toUnsigned();
4509945100 $out->{'UseSerializers'} = $this->toUseSerializers();
45100- $out->{'ushort'} = $this->toUshort();
4510145101 return $out;
4510245102 }
4510345103
@@ -45128,6 +45128,9 @@ class Obj5 {
4512845128 if (!property_exists($obj, 'PrimitiveKind')) {
4512945129 throw new Exception("Missing required property");
4513045130 }
45131+ if (!property_exists($obj, 'select')) {
45132+ throw new Exception("Missing required property");
45133+ }
4513145134 if (!property_exists($obj, 'Self')) {
4513245135 throw new Exception("Missing required property");
4513345136 }
@@ -45236,6 +45239,9 @@ class Obj5 {
4523645239 if (!property_exists($obj, 'TimeZone')) {
4523745240 throw new Exception("Missing required property");
4523845241 }
45242+ if (!property_exists($obj, 'to_dict')) {
45243+ throw new Exception("Missing required property");
45244+ }
4523945245 if (!property_exists($obj, 'to_json')) {
4524045246 throw new Exception("Missing required property");
4524145247 }
@@ -45293,15 +45299,9 @@ class Obj5 {
4529345299 if (!property_exists($obj, 'unsafe')) {
4529445300 throw new Exception("Missing required property");
4529545301 }
45296- if (!property_exists($obj, 'unsigned')) {
45297- throw new Exception("Missing required property");
45298- }
4529945302 if (!property_exists($obj, 'UseSerializers')) {
4530045303 throw new Exception("Missing required property");
4530145304 }
45302- if (!property_exists($obj, 'ushort')) {
45303- throw new Exception("Missing required property");
45304- }
4530545305 return new Obj5(
4530645306 Obj5::fromDummy($obj->{'dummy'})
4530745307 ,Obj5::fromKSerializer($obj->{'KSerializer'})
@@ -45310,6 +45310,7 @@ class Obj5 {
4531045310 ,Obj5::fromObj5True($obj->{'true'})
4531145311 ,Obj5::fromObj5Type($obj->{'type'})
4531245312 ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
45313+ ,Obj5::fromSelect($obj->{'select'})
4531345314 ,Obj5::fromSelf($obj->{'Self'})
4531445315 ,Obj5::fromSendable($obj->{'Sendable'})
4531545316 ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'})
@@ -45346,6 +45347,7 @@ class Obj5 {
4534645347 ,Obj5::fromTimeOnly($obj->{'TimeOnly'})
4534745348 ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
4534845349 ,Obj5::fromTimeZone($obj->{'TimeZone'})
45350+ ,Obj5::fromToDict($obj->{'to_dict'})
4534945351 ,Obj5::fromToJSON($obj->{'to_json'})
4535045352 ,Obj5::fromToString($obj->{'toString'})
4535145353 ,Obj5::fromTopLevel($obj->{'top_level'})
@@ -45365,9 +45367,7 @@ class Obj5 {
4536545367 ,Obj5::fromUnion($obj->{'union'})
4536645368 ,Obj5::fromUnowned($obj->{'unowned'})
4536745369 ,Obj5::fromUnsafe($obj->{'unsafe'})
45368- ,Obj5::fromUnsigned($obj->{'unsigned'})
4536945370 ,Obj5::fromUseSerializers($obj->{'UseSerializers'})
45370- ,Obj5::fromUshort($obj->{'ushort'})
4537145371 );
4537245372 }
4537345373
@@ -45383,6 +45383,7 @@ class Obj5 {
4538345383 ,Obj5::sampleObj5True()
4538445384 ,Obj5::sampleObj5Type()
4538545385 ,Obj5::samplePrimitiveKind()
45386+ ,Obj5::sampleSelect()
4538645387 ,Obj5::sampleSelf()
4538745388 ,Obj5::sampleSendable()
4538845389 ,Obj5::sampleSerialDescriptor()
@@ -45419,6 +45420,7 @@ class Obj5 {
4541945420 ,Obj5::sampleTimeOnly()
4542045421 ,Obj5::sampleTimeOnlyConverter()
4542145422 ,Obj5::sampleTimeZone()
45423+ ,Obj5::sampleToDict()
4542245424 ,Obj5::sampleToJSON()
4542345425 ,Obj5::sampleToString()
4542445426 ,Obj5::sampleTopLevel()
@@ -45438,9 +45440,7 @@ class Obj5 {
4543845440 ,Obj5::sampleUnion()
4543945441 ,Obj5::sampleUnowned()
4544045442 ,Obj5::sampleUnsafe()
45441- ,Obj5::sampleUnsigned()
4544245443 ,Obj5::sampleUseSerializers()
45443- ,Obj5::sampleUshort()
4544445444 );
4544545445 }
4544645446 }
@@ -46051,6 +46051,107 @@ class PrimitiveKind {
4605146051 }
4605246052 }
4605346053
46054+// This is an autogenerated file:Select
46055+
46056+class Select {
46057+ private int $select; // json:select Required
46058+
46059+ /**
46060+ * @param int $select
46061+ */
46062+ public function __construct(int $select) {
46063+ $this->select = $select;
46064+ }
46065+
46066+ /**
46067+ * @param int $value
46068+ * @throws Exception
46069+ * @return int
46070+ */
46071+ public static function fromSelect(int $value): int {
46072+ return $value; /*int*/
46073+ }
46074+
46075+ /**
46076+ * @throws Exception
46077+ * @return int
46078+ */
46079+ public function toSelect(): int {
46080+ if (Select::validateSelect($this->select)) {
46081+ return $this->select; /*int*/
46082+ }
46083+ throw new Exception('never get to this Select::select');
46084+ }
46085+
46086+ /**
46087+ * @param int
46088+ * @return bool
46089+ * @throws Exception
46090+ */
46091+ public static function validateSelect(int $value): bool {
46092+ return true;
46093+ }
46094+
46095+ /**
46096+ * @throws Exception
46097+ * @return int
46098+ */
46099+ public function getSelect(): int {
46100+ if (Select::validateSelect($this->select)) {
46101+ return $this->select;
46102+ }
46103+ throw new Exception('never get to getSelect Select::select');
46104+ }
46105+
46106+ /**
46107+ * @return int
46108+ */
46109+ public static function sampleSelect(): int {
46110+ return 31; /*31:select*/
46111+ }
46112+
46113+ /**
46114+ * @throws Exception
46115+ * @return bool
46116+ */
46117+ public function validate(): bool {
46118+ return Select::validateSelect($this->select);
46119+ }
46120+
46121+ /**
46122+ * @return stdClass
46123+ * @throws Exception
46124+ */
46125+ public function to(): stdClass {
46126+ $out = new stdClass();
46127+ $out->{'select'} = $this->toSelect();
46128+ return $out;
46129+ }
46130+
46131+ /**
46132+ * @param stdClass $obj
46133+ * @return Select
46134+ * @throws Exception
46135+ */
46136+ public static function from(stdClass $obj): Select {
46137+ if (!property_exists($obj, 'select')) {
46138+ throw new Exception("Missing required property");
46139+ }
46140+ return new Select(
46141+ Select::fromSelect($obj->{'select'})
46142+ );
46143+ }
46144+
46145+ /**
46146+ * @return Select
46147+ */
46148+ public static function sample(): Select {
46149+ return new Select(
46150+ Select::sampleSelect()
46151+ );
46152+ }
46153+}
46154+
4605446155 // This is an autogenerated file:SelfClass
4605546156
4605646157 class SelfClass {
@@ -49687,6 +49788,107 @@ class TimeZone {
4968749788 }
4968849789 }
4968949790
49791+// This is an autogenerated file:ToDict
49792+
49793+class ToDict {
49794+ private int $toDict; // json:to_dict Required
49795+
49796+ /**
49797+ * @param int $toDict
49798+ */
49799+ public function __construct(int $toDict) {
49800+ $this->toDict = $toDict;
49801+ }
49802+
49803+ /**
49804+ * @param int $value
49805+ * @throws Exception
49806+ * @return int
49807+ */
49808+ public static function fromToDict(int $value): int {
49809+ return $value; /*int*/
49810+ }
49811+
49812+ /**
49813+ * @throws Exception
49814+ * @return int
49815+ */
49816+ public function toToDict(): int {
49817+ if (ToDict::validateToDict($this->toDict)) {
49818+ return $this->toDict; /*int*/
49819+ }
49820+ throw new Exception('never get to this ToDict::toDict');
49821+ }
49822+
49823+ /**
49824+ * @param int
49825+ * @return bool
49826+ * @throws Exception
49827+ */
49828+ public static function validateToDict(int $value): bool {
49829+ return true;
49830+ }
49831+
49832+ /**
49833+ * @throws Exception
49834+ * @return int
49835+ */
49836+ public function getToDict(): int {
49837+ if (ToDict::validateToDict($this->toDict)) {
49838+ return $this->toDict;
49839+ }
49840+ throw new Exception('never get to getToDict ToDict::toDict');
49841+ }
49842+
49843+ /**
49844+ * @return int
49845+ */
49846+ public static function sampleToDict(): int {
49847+ return 31; /*31:toDict*/
49848+ }
49849+
49850+ /**
49851+ * @throws Exception
49852+ * @return bool
49853+ */
49854+ public function validate(): bool {
49855+ return ToDict::validateToDict($this->toDict);
49856+ }
49857+
49858+ /**
49859+ * @return stdClass
49860+ * @throws Exception
49861+ */
49862+ public function to(): stdClass {
49863+ $out = new stdClass();
49864+ $out->{'to_dict'} = $this->toToDict();
49865+ return $out;
49866+ }
49867+
49868+ /**
49869+ * @param stdClass $obj
49870+ * @return ToDict
49871+ * @throws Exception
49872+ */
49873+ public static function from(stdClass $obj): ToDict {
49874+ if (!property_exists($obj, 'to_dict')) {
49875+ throw new Exception("Missing required property");
49876+ }
49877+ return new ToDict(
49878+ ToDict::fromToDict($obj->{'to_dict'})
49879+ );
49880+ }
49881+
49882+ /**
49883+ * @return ToDict
49884+ */
49885+ public static function sample(): ToDict {
49886+ return new ToDict(
49887+ ToDict::sampleToDict()
49888+ );
49889+ }
49890+}
49891+
4969049892 // This is an autogenerated file:ToJSON
4969149893
4969249894 class ToJSON {
@@ -51606,107 +51808,6 @@ class Unsafe {
5160651808 }
5160751809 }
5160851810
51609-// This is an autogenerated file:Unsigned
51610-
51611-class Unsigned {
51612- private int $unsigned; // json:unsigned Required
51613-
51614- /**
51615- * @param int $unsigned
51616- */
51617- public function __construct(int $unsigned) {
51618- $this->unsigned = $unsigned;
51619- }
51620-
51621- /**
51622- * @param int $value
51623- * @throws Exception
51624- * @return int
51625- */
51626- public static function fromUnsigned(int $value): int {
51627- return $value; /*int*/
51628- }
51629-
51630- /**
51631- * @throws Exception
51632- * @return int
51633- */
51634- public function toUnsigned(): int {
51635- if (Unsigned::validateUnsigned($this->unsigned)) {
51636- return $this->unsigned; /*int*/
51637- }
51638- throw new Exception('never get to this Unsigned::unsigned');
51639- }
51640-
51641- /**
51642- * @param int
51643- * @return bool
51644- * @throws Exception
51645- */
51646- public static function validateUnsigned(int $value): bool {
51647- return true;
51648- }
51649-
51650- /**
51651- * @throws Exception
51652- * @return int
51653- */
51654- public function getUnsigned(): int {
51655- if (Unsigned::validateUnsigned($this->unsigned)) {
51656- return $this->unsigned;
51657- }
51658- throw new Exception('never get to getUnsigned Unsigned::unsigned');
51659- }
51660-
51661- /**
51662- * @return int
51663- */
51664- public static function sampleUnsigned(): int {
51665- return 31; /*31:unsigned*/
51666- }
51667-
51668- /**
51669- * @throws Exception
51670- * @return bool
51671- */
51672- public function validate(): bool {
51673- return Unsigned::validateUnsigned($this->unsigned);
51674- }
51675-
51676- /**
51677- * @return stdClass
51678- * @throws Exception
51679- */
51680- public function to(): stdClass {
51681- $out = new stdClass();
51682- $out->{'unsigned'} = $this->toUnsigned();
51683- return $out;
51684- }
51685-
51686- /**
51687- * @param stdClass $obj
51688- * @return Unsigned
51689- * @throws Exception
51690- */
51691- public static function from(stdClass $obj): Unsigned {
51692- if (!property_exists($obj, 'unsigned')) {
51693- throw new Exception("Missing required property");
51694- }
51695- return new Unsigned(
51696- Unsigned::fromUnsigned($obj->{'unsigned'})
51697- );
51698- }
51699-
51700- /**
51701- * @return Unsigned
51702- */
51703- public static function sample(): Unsigned {
51704- return new Unsigned(
51705- Unsigned::sampleUnsigned()
51706- );
51707- }
51708-}
51709-
5171051811 // This is an autogenerated file:UseSerializers
5171151812
5171251813 class UseSerializers {
@@ -51808,111 +51909,12 @@ class UseSerializers {
5180851909 }
5180951910 }
5181051911
51811-// This is an autogenerated file:Ushort
51812-
51813-class Ushort {
51814- private int $ushort; // json:ushort Required
51815-
51816- /**
51817- * @param int $ushort
51818- */
51819- public function __construct(int $ushort) {
51820- $this->ushort = $ushort;
51821- }
51822-
51823- /**
51824- * @param int $value
51825- * @throws Exception
51826- * @return int
51827- */
51828- public static function fromUshort(int $value): int {
51829- return $value; /*int*/
51830- }
51831-
51832- /**
51833- * @throws Exception
51834- * @return int
51835- */
51836- public function toUshort(): int {
51837- if (Ushort::validateUshort($this->ushort)) {
51838- return $this->ushort; /*int*/
51839- }
51840- throw new Exception('never get to this Ushort::ushort');
51841- }
51842-
51843- /**
51844- * @param int
51845- * @return bool
51846- * @throws Exception
51847- */
51848- public static function validateUshort(int $value): bool {
51849- return true;
51850- }
51851-
51852- /**
51853- * @throws Exception
51854- * @return int
51855- */
51856- public function getUshort(): int {
51857- if (Ushort::validateUshort($this->ushort)) {
51858- return $this->ushort;
51859- }
51860- throw new Exception('never get to getUshort Ushort::ushort');
51861- }
51862-
51863- /**
51864- * @return int
51865- */
51866- public static function sampleUshort(): int {
51867- return 31; /*31:ushort*/
51868- }
51869-
51870- /**
51871- * @throws Exception
51872- * @return bool
51873- */
51874- public function validate(): bool {
51875- return Ushort::validateUshort($this->ushort);
51876- }
51877-
51878- /**
51879- * @return stdClass
51880- * @throws Exception
51881- */
51882- public function to(): stdClass {
51883- $out = new stdClass();
51884- $out->{'ushort'} = $this->toUshort();
51885- return $out;
51886- }
51887-
51888- /**
51889- * @param stdClass $obj
51890- * @return Ushort
51891- * @throws Exception
51892- */
51893- public static function from(stdClass $obj): Ushort {
51894- if (!property_exists($obj, 'ushort')) {
51895- throw new Exception("Missing required property");
51896- }
51897- return new Ushort(
51898- Ushort::fromUshort($obj->{'ushort'})
51899- );
51900- }
51901-
51902- /**
51903- * @return Ushort
51904- */
51905- public static function sample(): Ushort {
51906- return new Ushort(
51907- Ushort::sampleUshort()
51908- );
51909- }
51910-}
51911-
5191251912 // This is an autogenerated file:Obj6
5191351913
5191451914 class Obj6 {
5191551915 private int $dummy; // json:dummy Required
51916+ private Unsigned $unsigned; // json:unsigned Required
51917+ private Ushort $ushort; // json:ushort Required
5191651918 private Using $using; // json:using Required
5191751919 private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
5191851920 private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
@@ -51934,6 +51936,8 @@ class Obj6 {
5193451936
5193551937 /**
5193651938 * @param int $dummy
51939+ * @param Unsigned $unsigned
51940+ * @param Ushort $ushort
5193751941 * @param Using $using
5193851942 * @param Utf8JSONReader $utf8JSONReader
5193951943 * @param Utf8JSONWriter $utf8JSONWriter
@@ -51953,8 +51957,10 @@ class Obj6 {
5195351957 * @param Yes $yes
5195451958 * @param YieldClass $yield
5195551959 */
51956- public function __construct(int $dummy, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, 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) {
51960+ public function __construct(int $dummy, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, 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) {
5195751961 $this->dummy = $dummy;
51962+ $this->unsigned = $unsigned;
51963+ $this->ushort = $ushort;
5195851964 $this->using = $using;
5195951965 $this->utf8JSONReader = $utf8JSONReader;
5196051966 $this->utf8JSONWriter = $utf8JSONWriter;
@@ -52022,6 +52028,102 @@ class Obj6 {
5202252028 return 31; /*31:dummy*/
5202352029 }
5202452030
52031+ /**
52032+ * @param stdClass $value
52033+ * @throws Exception
52034+ * @return Unsigned
52035+ */
52036+ public static function fromUnsigned(stdClass $value): Unsigned {
52037+ return Unsigned::from($value); /*class*/
52038+ }
52039+
52040+ /**
52041+ * @throws Exception
52042+ * @return stdClass
52043+ */
52044+ public function toUnsigned(): stdClass {
52045+ if (Obj6::validateUnsigned($this->unsigned)) {
52046+ return $this->unsigned->to(); /*class*/
52047+ }
52048+ throw new Exception('never get to this Obj6::unsigned');
52049+ }
52050+
52051+ /**
52052+ * @param Unsigned
52053+ * @return bool
52054+ * @throws Exception
52055+ */
52056+ public static function validateUnsigned(Unsigned $value): bool {
52057+ $value->validate();
52058+ return true;
52059+ }
52060+
52061+ /**
52062+ * @throws Exception
52063+ * @return Unsigned
52064+ */
52065+ public function getUnsigned(): Unsigned {
52066+ if (Obj6::validateUnsigned($this->unsigned)) {
52067+ return $this->unsigned;
52068+ }
52069+ throw new Exception('never get to getUnsigned Obj6::unsigned');
52070+ }
52071+
52072+ /**
52073+ * @return Unsigned
52074+ */
52075+ public static function sampleUnsigned(): Unsigned {
52076+ return Unsigned::sample(); /*32:unsigned*/
52077+ }
52078+
52079+ /**
52080+ * @param stdClass $value
52081+ * @throws Exception
52082+ * @return Ushort
52083+ */
52084+ public static function fromUshort(stdClass $value): Ushort {
52085+ return Ushort::from($value); /*class*/
52086+ }
52087+
52088+ /**
52089+ * @throws Exception
52090+ * @return stdClass
52091+ */
52092+ public function toUshort(): stdClass {
52093+ if (Obj6::validateUshort($this->ushort)) {
52094+ return $this->ushort->to(); /*class*/
52095+ }
52096+ throw new Exception('never get to this Obj6::ushort');
52097+ }
52098+
52099+ /**
52100+ * @param Ushort
52101+ * @return bool
52102+ * @throws Exception
52103+ */
52104+ public static function validateUshort(Ushort $value): bool {
52105+ $value->validate();
52106+ return true;
52107+ }
52108+
52109+ /**
52110+ * @throws Exception
52111+ * @return Ushort
52112+ */
52113+ public function getUshort(): Ushort {
52114+ if (Obj6::validateUshort($this->ushort)) {
52115+ return $this->ushort;
52116+ }
52117+ throw new Exception('never get to getUshort Obj6::ushort');
52118+ }
52119+
52120+ /**
52121+ * @return Ushort
52122+ */
52123+ public static function sampleUshort(): Ushort {
52124+ return Ushort::sample(); /*33:ushort*/
52125+ }
52126+
5202552127 /**
5202652128 * @param stdClass $value
5202752129 * @throws Exception
@@ -52067,7 +52169,7 @@ class Obj6 {
5206752169 * @return Using
5206852170 */
5206952171 public static function sampleUsing(): Using {
52070- return Using::sample(); /*32:using*/
52172+ return Using::sample(); /*34:using*/
5207152173 }
5207252174
5207352175 /**
@@ -52115,7 +52217,7 @@ class Obj6 {
5211552217 * @return Utf8JSONReader
5211652218 */
5211752219 public static function sampleUtf8JSONReader(): Utf8JSONReader {
52118- return Utf8JSONReader::sample(); /*33:utf8JSONReader*/
52220+ return Utf8JSONReader::sample(); /*35:utf8JSONReader*/
5211952221 }
5212052222
5212152223 /**
@@ -52163,7 +52265,7 @@ class Obj6 {
5216352265 * @return Utf8JSONWriter
5216452266 */
5216552267 public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52166- return Utf8JSONWriter::sample(); /*34:utf8JSONWriter*/
52268+ return Utf8JSONWriter::sample(); /*36:utf8JSONWriter*/
5216752269 }
5216852270
5216952271 /**
@@ -52211,7 +52313,7 @@ class Obj6 {
5221152313 * @return UUID
5221252314 */
5221352315 public static function sampleUUID(): UUID {
52214- return UUID::sample(); /*35:uuid*/
52316+ return UUID::sample(); /*37:uuid*/
5221552317 }
5221652318
5221752319 /**
@@ -52259,7 +52361,7 @@ class Obj6 {
5225952361 * @return VarClass
5226052362 */
5226152363 public static function sampleVar(): VarClass {
52262- return VarClass::sample(); /*36:var*/
52364+ return VarClass::sample(); /*38:var*/
5226352365 }
5226452366
5226552367 /**
@@ -52307,7 +52409,7 @@ class Obj6 {
5230752409 * @return Virtual
5230852410 */
5230952411 public static function sampleVirtual(): Virtual {
52310- return Virtual::sample(); /*37:virtual*/
52412+ return Virtual::sample(); /*39:virtual*/
5231152413 }
5231252414
5231352415 /**
@@ -52355,7 +52457,7 @@ class Obj6 {
5235552457 * @return VoidClass
5235652458 */
5235752459 public static function sampleVoid(): VoidClass {
52358- return VoidClass::sample(); /*38:void*/
52460+ return VoidClass::sample(); /*40:void*/
5235952461 }
5236052462
5236152463 /**
@@ -52403,7 +52505,7 @@ class Obj6 {
5240352505 * @return Volatile
5240452506 */
5240552507 public static function sampleVolatile(): Volatile {
52406- return Volatile::sample(); /*39:volatile*/
52508+ return Volatile::sample(); /*41:volatile*/
5240752509 }
5240852510
5240952511 /**
@@ -52451,7 +52553,7 @@ class Obj6 {
5245152553 * @return WcharT
5245252554 */
5245352555 public static function sampleWcharT(): WcharT {
52454- return WcharT::sample(); /*40:wcharT*/
52556+ return WcharT::sample(); /*42:wcharT*/
5245552557 }
5245652558
5245752559 /**
@@ -52499,7 +52601,7 @@ class Obj6 {
5249952601 * @return Weak
5250052602 */
5250152603 public static function sampleWeak(): Weak {
52502- return Weak::sample(); /*41:weak*/
52604+ return Weak::sample(); /*43:weak*/
5250352605 }
5250452606
5250552607 /**
@@ -52547,7 +52649,7 @@ class Obj6 {
5254752649 * @return Where
5254852650 */
5254952651 public static function sampleWhere(): Where {
52550- return Where::sample(); /*42:where*/
52652+ return Where::sample(); /*44:where*/
5255152653 }
5255252654
5255352655 /**
@@ -52595,7 +52697,7 @@ class Obj6 {
5259552697 * @return WhileClass
5259652698 */
5259752699 public static function sampleWhile(): WhileClass {
52598- return WhileClass::sample(); /*43:while*/
52700+ return WhileClass::sample(); /*45:while*/
5259952701 }
5260052702
5260152703 /**
@@ -52643,7 +52745,7 @@ class Obj6 {
5264352745 * @return WillSet
5264452746 */
5264552747 public static function sampleWillSet(): WillSet {
52646- return WillSet::sample(); /*44:willSet*/
52748+ return WillSet::sample(); /*46:willSet*/
5264752749 }
5264852750
5264952751 /**
@@ -52691,7 +52793,7 @@ class Obj6 {
5269152793 * @return With
5269252794 */
5269352795 public static function sampleWith(): With {
52694- return With::sample(); /*45:with*/
52796+ return With::sample(); /*47:with*/
5269552797 }
5269652798
5269752799 /**
@@ -52739,7 +52841,7 @@ class Obj6 {
5273952841 * @return XorClass
5274052842 */
5274152843 public static function sampleXor(): XorClass {
52742- return XorClass::sample(); /*46:xor*/
52844+ return XorClass::sample(); /*48:xor*/
5274352845 }
5274452846
5274552847 /**
@@ -52787,7 +52889,7 @@ class Obj6 {
5278752889 * @return XorEq
5278852890 */
5278952891 public static function sampleXorEq(): XorEq {
52790- return XorEq::sample(); /*47:xorEq*/
52892+ return XorEq::sample(); /*49:xorEq*/
5279152893 }
5279252894
5279352895 /**
@@ -52835,7 +52937,7 @@ class Obj6 {
5283552937 * @return Yes
5283652938 */
5283752939 public static function sampleYes(): Yes {
52838- return Yes::sample(); /*48:yes*/
52940+ return Yes::sample(); /*50:yes*/
5283952941 }
5284052942
5284152943 /**
@@ -52883,7 +52985,7 @@ class Obj6 {
5288352985 * @return YieldClass
5288452986 */
5288552987 public static function sampleYield(): YieldClass {
52886- return YieldClass::sample(); /*49:yield*/
52988+ return YieldClass::sample(); /*51:yield*/
5288752989 }
5288852990
5288952991 /**
@@ -52892,6 +52994,8 @@ class Obj6 {
5289252994 */
5289352995 public function validate(): bool {
5289452996 return Obj6::validateDummy($this->dummy)
52997+ || Obj6::validateUnsigned($this->unsigned)
52998+ || Obj6::validateUshort($this->ushort)
5289552999 || Obj6::validateUsing($this->using)
5289653000 || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
5289753001 || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
@@ -52919,6 +53023,8 @@ class Obj6 {
5291953023 public function to(): stdClass {
5292053024 $out = new stdClass();
5292153025 $out->{'dummy'} = $this->toDummy();
53026+ $out->{'unsigned'} = $this->toUnsigned();
53027+ $out->{'ushort'} = $this->toUshort();
5292253028 $out->{'using'} = $this->toUsing();
5292353029 $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
5292453030 $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
@@ -52949,6 +53055,12 @@ class Obj6 {
5294953055 if (!property_exists($obj, 'dummy')) {
5295053056 throw new Exception("Missing required property");
5295153057 }
53058+ if (!property_exists($obj, 'unsigned')) {
53059+ throw new Exception("Missing required property");
53060+ }
53061+ if (!property_exists($obj, 'ushort')) {
53062+ throw new Exception("Missing required property");
53063+ }
5295253064 if (!property_exists($obj, 'using')) {
5295353065 throw new Exception("Missing required property");
5295453066 }
@@ -53005,6 +53117,8 @@ class Obj6 {
5300553117 }
5300653118 return new Obj6(
5300753119 Obj6::fromDummy($obj->{'dummy'})
53120+ ,Obj6::fromUnsigned($obj->{'unsigned'})
53121+ ,Obj6::fromUshort($obj->{'ushort'})
5300853122 ,Obj6::fromUsing($obj->{'using'})
5300953123 ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
5301053124 ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
@@ -53032,6 +53146,8 @@ class Obj6 {
5303253146 public static function sample(): Obj6 {
5303353147 return new Obj6(
5303453148 Obj6::sampleDummy()
53149+ ,Obj6::sampleUnsigned()
53150+ ,Obj6::sampleUshort()
5303553151 ,Obj6::sampleUsing()
5303653152 ,Obj6::sampleUtf8JSONReader()
5303753153 ,Obj6::sampleUtf8JSONWriter()
@@ -53054,6 +53170,208 @@ class Obj6 {
5305453170 }
5305553171 }
5305653172
53173+// This is an autogenerated file:Unsigned
53174+
53175+class Unsigned {
53176+ private int $unsigned; // json:unsigned Required
53177+
53178+ /**
53179+ * @param int $unsigned
53180+ */
53181+ public function __construct(int $unsigned) {
53182+ $this->unsigned = $unsigned;
53183+ }
53184+
53185+ /**
53186+ * @param int $value
53187+ * @throws Exception
53188+ * @return int
53189+ */
53190+ public static function fromUnsigned(int $value): int {
53191+ return $value; /*int*/
53192+ }
53193+
53194+ /**
53195+ * @throws Exception
53196+ * @return int
53197+ */
53198+ public function toUnsigned(): int {
53199+ if (Unsigned::validateUnsigned($this->unsigned)) {
53200+ return $this->unsigned; /*int*/
53201+ }
53202+ throw new Exception('never get to this Unsigned::unsigned');
53203+ }
53204+
53205+ /**
53206+ * @param int
53207+ * @return bool
53208+ * @throws Exception
53209+ */
53210+ public static function validateUnsigned(int $value): bool {
53211+ return true;
53212+ }
53213+
53214+ /**
53215+ * @throws Exception
53216+ * @return int
53217+ */
53218+ public function getUnsigned(): int {
53219+ if (Unsigned::validateUnsigned($this->unsigned)) {
53220+ return $this->unsigned;
53221+ }
53222+ throw new Exception('never get to getUnsigned Unsigned::unsigned');
53223+ }
53224+
53225+ /**
53226+ * @return int
53227+ */
53228+ public static function sampleUnsigned(): int {
53229+ return 31; /*31:unsigned*/
53230+ }
53231+
53232+ /**
53233+ * @throws Exception
53234+ * @return bool
53235+ */
53236+ public function validate(): bool {
53237+ return Unsigned::validateUnsigned($this->unsigned);
53238+ }
53239+
53240+ /**
53241+ * @return stdClass
53242+ * @throws Exception
53243+ */
53244+ public function to(): stdClass {
53245+ $out = new stdClass();
53246+ $out->{'unsigned'} = $this->toUnsigned();
53247+ return $out;
53248+ }
53249+
53250+ /**
53251+ * @param stdClass $obj
53252+ * @return Unsigned
53253+ * @throws Exception
53254+ */
53255+ public static function from(stdClass $obj): Unsigned {
53256+ if (!property_exists($obj, 'unsigned')) {
53257+ throw new Exception("Missing required property");
53258+ }
53259+ return new Unsigned(
53260+ Unsigned::fromUnsigned($obj->{'unsigned'})
53261+ );
53262+ }
53263+
53264+ /**
53265+ * @return Unsigned
53266+ */
53267+ public static function sample(): Unsigned {
53268+ return new Unsigned(
53269+ Unsigned::sampleUnsigned()
53270+ );
53271+ }
53272+}
53273+
53274+// This is an autogenerated file:Ushort
53275+
53276+class Ushort {
53277+ private int $ushort; // json:ushort Required
53278+
53279+ /**
53280+ * @param int $ushort
53281+ */
53282+ public function __construct(int $ushort) {
53283+ $this->ushort = $ushort;
53284+ }
53285+
53286+ /**
53287+ * @param int $value
53288+ * @throws Exception
53289+ * @return int
53290+ */
53291+ public static function fromUshort(int $value): int {
53292+ return $value; /*int*/
53293+ }
53294+
53295+ /**
53296+ * @throws Exception
53297+ * @return int
53298+ */
53299+ public function toUshort(): int {
53300+ if (Ushort::validateUshort($this->ushort)) {
53301+ return $this->ushort; /*int*/
53302+ }
53303+ throw new Exception('never get to this Ushort::ushort');
53304+ }
53305+
53306+ /**
53307+ * @param int
53308+ * @return bool
53309+ * @throws Exception
53310+ */
53311+ public static function validateUshort(int $value): bool {
53312+ return true;
53313+ }
53314+
53315+ /**
53316+ * @throws Exception
53317+ * @return int
53318+ */
53319+ public function getUshort(): int {
53320+ if (Ushort::validateUshort($this->ushort)) {
53321+ return $this->ushort;
53322+ }
53323+ throw new Exception('never get to getUshort Ushort::ushort');
53324+ }
53325+
53326+ /**
53327+ * @return int
53328+ */
53329+ public static function sampleUshort(): int {
53330+ return 31; /*31:ushort*/
53331+ }
53332+
53333+ /**
53334+ * @throws Exception
53335+ * @return bool
53336+ */
53337+ public function validate(): bool {
53338+ return Ushort::validateUshort($this->ushort);
53339+ }
53340+
53341+ /**
53342+ * @return stdClass
53343+ * @throws Exception
53344+ */
53345+ public function to(): stdClass {
53346+ $out = new stdClass();
53347+ $out->{'ushort'} = $this->toUshort();
53348+ return $out;
53349+ }
53350+
53351+ /**
53352+ * @param stdClass $obj
53353+ * @return Ushort
53354+ * @throws Exception
53355+ */
53356+ public static function from(stdClass $obj): Ushort {
53357+ if (!property_exists($obj, 'ushort')) {
53358+ throw new Exception("Missing required property");
53359+ }
53360+ return new Ushort(
53361+ Ushort::fromUshort($obj->{'ushort'})
53362+ );
53363+ }
53364+
53365+ /**
53366+ * @return Ushort
53367+ */
53368+ public static function sample(): Ushort {
53369+ return new Ushort(
53370+ Ushort::sampleUshort()
53371+ );
53372+ }
53373+}
53374+
5305753375 // This is an autogenerated file:Using
5305853376
5305953377 class Using {
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 KSerializer k_serializer; // json: "KSerializer"
@@ -6558,6 +6558,7 @@ class Obj5 {
65586558 Typedef obj5_typedef; // json: "typedef"
65596559 Typeof obj5_typeof; // json: "typeof"
65606560 PrimitiveKind primitive_kind; // json: "PrimitiveKind"
6561+ Select select; // json: "select"
65616562 Self self; // json: "Self"
65626563 Sendable sendable; // json: "Sendable"
65636564 SerialDescriptor serial_descriptor; // json: "SerialDescriptor"
@@ -6592,6 +6593,7 @@ class Obj5 {
65926593 TimeOnly time_only; // json: "TimeOnly"
65936594 TimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter"
65946595 TimeZone time_zone; // json: "TimeZone"
6596+ ToDict to_dict; // json: "to_dict"
65956597 ToJson to_json; // json: "to_json"
65966598 ToString to_string; // json: "toString"
65976599 TopLevelClass top_level; // json: "top_level"
@@ -6609,9 +6611,7 @@ class Obj5 {
66096611 Union union; // json: "union"
66106612 Unowned unowned; // json: "unowned"
66116613 Unsafe unsafe; // json: "unsafe"
6612- Unsigned unsigned; // json: "unsigned"
66136614 UseSerializers use_serializers; // json: "UseSerializers"
6614- Ushort ushort; // json: "ushort"
66156615
66166616 string encode_json() {
66176617 mapping(string:mixed) json = ([
@@ -6626,6 +6626,7 @@ class Obj5 {
66266626 "typedef" : obj5_typedef,
66276627 "typeof" : obj5_typeof,
66286628 "PrimitiveKind" : primitive_kind,
6629+ "select" : select,
66296630 "Self" : self,
66306631 "Sendable" : sendable,
66316632 "SerialDescriptor" : serial_descriptor,
@@ -6660,6 +6661,7 @@ class Obj5 {
66606661 "TimeOnly" : time_only,
66616662 "TimeOnlyConverter" : time_only_converter,
66626663 "TimeZone" : time_zone,
6664+ "to_dict" : to_dict,
66636665 "to_json" : to_json,
66646666 "toString" : to_string,
66656667 "top_level" : top_level,
@@ -6677,9 +6679,7 @@ class Obj5 {
66776679 "union" : union,
66786680 "unowned" : unowned,
66796681 "unsafe" : unsafe,
6680- "unsigned" : unsigned,
66816682 "UseSerializers" : use_serializers,
6682- "ushort" : ushort,
66836683 ]);
66846684
66856685 return Standards.JSON.encode(json);
@@ -6711,6 +6711,8 @@ Obj5 Obj5_from_JSON(mixed json) {
67116711 retval.obj5_typeof = json["typeof"];
67126712 if (!mappingp(json["PrimitiveKind"])) error("Expected object");
67136713 retval.primitive_kind = json["PrimitiveKind"];
6714+ if (!mappingp(json["select"])) error("Expected object");
6715+ retval.select = json["select"];
67146716 if (!mappingp(json["Self"])) error("Expected object");
67156717 retval.self = json["Self"];
67166718 if (!mappingp(json["Sendable"])) error("Expected object");
@@ -6779,6 +6781,8 @@ Obj5 Obj5_from_JSON(mixed json) {
67796781 retval.time_only_converter = json["TimeOnlyConverter"];
67806782 if (!mappingp(json["TimeZone"])) error("Expected object");
67816783 retval.time_zone = json["TimeZone"];
6784+ if (!mappingp(json["to_dict"])) error("Expected object");
6785+ retval.to_dict = json["to_dict"];
67826786 if (!mappingp(json["to_json"])) error("Expected object");
67836787 retval.to_json = json["to_json"];
67846788 if (!mappingp(json["toString"])) error("Expected object");
@@ -6813,12 +6817,8 @@ Obj5 Obj5_from_JSON(mixed json) {
68136817 retval.unowned = json["unowned"];
68146818 if (!mappingp(json["unsafe"])) error("Expected object");
68156819 retval.unsafe = json["unsafe"];
6816- if (!mappingp(json["unsigned"])) error("Expected object");
6817- retval.unsigned = json["unsigned"];
68186820 if (!mappingp(json["UseSerializers"])) error("Expected object");
68196821 retval.use_serializers = json["UseSerializers"];
6820- if (!mappingp(json["ushort"])) error("Expected object");
6821- retval.ushort = json["ushort"];
68226822
68236823 return retval;
68246824 }
@@ -7033,6 +7033,27 @@ PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
70337033 return retval;
70347034 }
70357035
7036+class Select {
7037+ int select; // json: "select"
7038+
7039+ string encode_json() {
7040+ mapping(string:mixed) json = ([
7041+ "select" : select,
7042+ ]);
7043+
7044+ return Standards.JSON.encode(json);
7045+ }
7046+}
7047+
7048+Select Select_from_JSON(mixed json) {
7049+ Select retval = Select();
7050+
7051+ if (!intp(json["select"])) error("Expected integer");
7052+ retval.select = json["select"];
7053+
7054+ return retval;
7055+}
7056+
70367057 class Self {
70377058 int self; // json: "Self"
70387059
@@ -7747,6 +7768,27 @@ TimeZone TimeZone_from_JSON(mixed json) {
77477768 return retval;
77487769 }
77497770
7771+class ToDict {
7772+ int to_dict; // json: "to_dict"
7773+
7774+ string encode_json() {
7775+ mapping(string:mixed) json = ([
7776+ "to_dict" : to_dict,
7777+ ]);
7778+
7779+ return Standards.JSON.encode(json);
7780+ }
7781+}
7782+
7783+ToDict ToDict_from_JSON(mixed json) {
7784+ ToDict retval = ToDict();
7785+
7786+ if (!intp(json["to_dict"])) error("Expected integer");
7787+ retval.to_dict = json["to_dict"];
7788+
7789+ return retval;
7790+}
7791+
77507792 class ToJson {
77517793 int to_json; // json: "to_json"
77527794
@@ -8104,27 +8146,6 @@ Unsafe Unsafe_from_JSON(mixed json) {
81048146 return retval;
81058147 }
81068148
8107-class Unsigned {
8108- int unsigned; // json: "unsigned"
8109-
8110- string encode_json() {
8111- mapping(string:mixed) json = ([
8112- "unsigned" : unsigned,
8113- ]);
8114-
8115- return Standards.JSON.encode(json);
8116- }
8117-}
8118-
8119-Unsigned Unsigned_from_JSON(mixed json) {
8120- Unsigned retval = Unsigned();
8121-
8122- if (!intp(json["unsigned"])) error("Expected integer");
8123- retval.unsigned = json["unsigned"];
8124-
8125- return retval;
8126-}
8127-
81288149 class UseSerializers {
81298150 int use_serializers; // json: "UseSerializers"
81308151
@@ -8146,31 +8167,12 @@ UseSerializers UseSerializers_from_JSON(mixed json) {
81468167 return retval;
81478168 }
81488169
8149-class Ushort {
8150- int ushort; // json: "ushort"
8151-
8152- string encode_json() {
8153- mapping(string:mixed) json = ([
8154- "ushort" : ushort,
8155- ]);
8156-
8157- return Standards.JSON.encode(json);
8158- }
8159-}
8160-
8161-Ushort Ushort_from_JSON(mixed json) {
8162- Ushort retval = Ushort();
8163-
8164- if (!intp(json["ushort"])) error("Expected integer");
8165- retval.ushort = json["ushort"];
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+ Unsigned unsigned; // json: "unsigned"
8175+ Ushort ushort; // json: "ushort"
81748176 Using using; // json: "using"
81758177 Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
81768178 Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
@@ -8193,6 +8195,8 @@ class Obj6 {
81938195 "dummy" : dummy,
81948196 "void" : obj6_void,
81958197 "while" : obj6_while,
8198+ "unsigned" : unsigned,
8199+ "ushort" : ushort,
81968200 "using" : using,
81978201 "Utf8JsonReader" : utf8_json_reader,
81988202 "Utf8JsonWriter" : utf8_json_writer,
@@ -8224,6 +8228,10 @@ Obj6 Obj6_from_JSON(mixed json) {
82248228 retval.obj6_void = json["void"];
82258229 if (!mappingp(json["while"])) error("Expected object");
82268230 retval.obj6_while = json["while"];
8231+ if (!mappingp(json["unsigned"])) error("Expected object");
8232+ retval.unsigned = json["unsigned"];
8233+ if (!mappingp(json["ushort"])) error("Expected object");
8234+ retval.ushort = json["ushort"];
82278235 if (!mappingp(json["using"])) error("Expected object");
82288236 retval.using = json["using"];
82298237 if (!mappingp(json["Utf8JsonReader"])) error("Expected object");
@@ -8302,6 +8310,48 @@ While While_from_JSON(mixed json) {
83028310 return retval;
83038311 }
83048312
8313+class Unsigned {
8314+ int unsigned; // json: "unsigned"
8315+
8316+ string encode_json() {
8317+ mapping(string:mixed) json = ([
8318+ "unsigned" : unsigned,
8319+ ]);
8320+
8321+ return Standards.JSON.encode(json);
8322+ }
8323+}
8324+
8325+Unsigned Unsigned_from_JSON(mixed json) {
8326+ Unsigned retval = Unsigned();
8327+
8328+ if (!intp(json["unsigned"])) error("Expected integer");
8329+ retval.unsigned = json["unsigned"];
8330+
8331+ return retval;
8332+}
8333+
8334+class Ushort {
8335+ int ushort; // json: "ushort"
8336+
8337+ string encode_json() {
8338+ mapping(string:mixed) json = ([
8339+ "ushort" : ushort,
8340+ ]);
8341+
8342+ return Standards.JSON.encode(json);
8343+ }
8344+}
8345+
8346+Ushort Ushort_from_JSON(mixed json) {
8347+ Ushort retval = Ushort();
8348+
8349+ if (!intp(json["ushort"])) error("Expected integer");
8350+ retval.ushort = json["ushort"];
8351+
8352+ return retval;
8353+}
8354+
83058355 class Using {
83068356 int using; // json: "using"
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
@@ -5004,6 +5004,22 @@ class Self:
50045004 return result
50055005
50065006
5007+@dataclass
5008+class ToDict:
5009+ to_dict_to_dict: int
5010+
5011+ @staticmethod
5012+ def from_dict(obj: Any) -> 'ToDict':
5013+ assert isinstance(obj, dict)
5014+ to_dict_to_dict = from_int(obj["to_dict"])
5015+ return ToDict(to_dict_to_dict)
5016+
5017+ def to_dict(self) -> dict:
5018+ result: dict = {}
5019+ result["to_dict"] = from_int(self.to_dict_to_dict)
5020+ return result
5021+
5022+
50075023 @dataclass
50085024 class Obj5True:
50095025 true: int
@@ -5084,6 +5100,22 @@ class SelfClass:
50845100 return result
50855101
50865102
5103+@dataclass
5104+class Select:
5105+ select: int
5106+
5107+ @staticmethod
5108+ def from_dict(obj: Any) -> 'Select':
5109+ assert isinstance(obj, dict)
5110+ select = from_int(obj["select"])
5111+ return Select(select)
5112+
5113+ def to_dict(self) -> dict:
5114+ result: dict = {}
5115+ result["select"] = from_int(self.select)
5116+ return result
5117+
5118+
50875119 @dataclass
50885120 class Sendable:
50895121 sendable: int
@@ -5948,22 +5980,6 @@ class Unsafe:
59485980 return result
59495981
59505982
5951-@dataclass
5952-class Unsigned:
5953- unsigned: int
5954-
5955- @staticmethod
5956- def from_dict(obj: Any) -> 'Unsigned':
5957- assert isinstance(obj, dict)
5958- unsigned = from_int(obj["unsigned"])
5959- return Unsigned(unsigned)
5960-
5961- def to_dict(self) -> dict:
5962- result: dict = {}
5963- result["unsigned"] = from_int(self.unsigned)
5964- return result
5965-
5966-
59675983 @dataclass
59685984 class UseSerializers:
59695985 use_serializers: int
@@ -5980,22 +5996,6 @@ class UseSerializers:
59805996 return result
59815997
59825998
5983-@dataclass
5984-class Ushort:
5985- ushort: int
5986-
5987- @staticmethod
5988- def from_dict(obj: Any) -> 'Ushort':
5989- assert isinstance(obj, dict)
5990- ushort = from_int(obj["ushort"])
5991- return Ushort(ushort)
5992-
5993- def to_dict(self) -> dict:
5994- result: dict = {}
5995- result["ushort"] = from_int(self.ushort)
5996- return result
5997-
5998-
59995999 @dataclass
60006000 class Obj5:
60016001 k_serializer: KSerializer
@@ -6017,6 +6017,7 @@ class Obj5:
60176017 type: TypeClass
60186018 use_serializers: UseSerializers
60196019 dummy: int
6020+ select: Select
60206021 purple_self: SelfClass
60216022 serialize: Serialize
60226023 set: Set
@@ -6043,6 +6044,7 @@ class Obj5:
60436044 throw: Throw
60446045 throws: Throws
60456046 to_string: ToString
6047+ obj5_to_dict: ToDict
60466048 to_json: ToJSON
60476049 top_level: TopLevelClass
60486050 transient: Transient
@@ -6061,8 +6063,6 @@ class Obj5:
60616063 union: UnionClass
60626064 unowned: Unowned
60636065 unsafe: Unsafe
6064- unsigned: Unsigned
6065- ushort: Ushort
60666066
60676067 @staticmethod
60686068 def from_dict(obj: Any) -> 'Obj5':
@@ -6086,6 +6086,7 @@ class Obj5:
60866086 type = TypeClass.from_dict(obj["Type"])
60876087 use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
60886088 dummy = from_int(obj["dummy"])
6089+ select = Select.from_dict(obj["select"])
60896090 purple_self = SelfClass.from_dict(obj["self"])
60906091 serialize = Serialize.from_dict(obj["serialize"])
60916092 set = Set.from_dict(obj["set"])
@@ -6112,6 +6113,7 @@ class Obj5:
61126113 throw = Throw.from_dict(obj["throw"])
61136114 throws = Throws.from_dict(obj["throws"])
61146115 to_string = ToString.from_dict(obj["toString"])
6116+ obj5_to_dict = ToDict.from_dict(obj["to_dict"])
61156117 to_json = ToJSON.from_dict(obj["to_json"])
61166118 top_level = TopLevelClass.from_dict(obj["top_level"])
61176119 transient = Transient.from_dict(obj["transient"])
@@ -6130,9 +6132,7 @@ class Obj5:
61306132 union = UnionClass.from_dict(obj["union"])
61316133 unowned = Unowned.from_dict(obj["unowned"])
61326134 unsafe = Unsafe.from_dict(obj["unsafe"])
6133- unsigned = Unsigned.from_dict(obj["unsigned"])
6134- ushort = Ushort.from_dict(obj["ushort"])
6135- return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, 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)
6135+ return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, 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)
61366136
61376137 def to_dict(self) -> dict:
61386138 result: dict = {}
@@ -6155,6 +6155,7 @@ class Obj5:
61556155 result["Type"] = to_class(TypeClass, self.type)
61566156 result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
61576157 result["dummy"] = from_int(self.dummy)
6158+ result["select"] = to_class(Select, self.select)
61586159 result["self"] = to_class(SelfClass, self.purple_self)
61596160 result["serialize"] = to_class(Serialize, self.serialize)
61606161 result["set"] = to_class(Set, self.set)
@@ -6181,6 +6182,7 @@ class Obj5:
61816182 result["throw"] = to_class(Throw, self.throw)
61826183 result["throws"] = to_class(Throws, self.throws)
61836184 result["toString"] = to_class(ToString, self.to_string)
6185+ result["to_dict"] = to_class(ToDict, self.obj5_to_dict)
61846186 result["to_json"] = to_class(ToJSON, self.to_json)
61856187 result["top_level"] = to_class(TopLevelClass, self.top_level)
61866188 result["transient"] = to_class(Transient, self.transient)
@@ -6199,8 +6201,6 @@ class Obj5:
61996201 result["union"] = to_class(UnionClass, self.union)
62006202 result["unowned"] = to_class(Unowned, self.unowned)
62016203 result["unsafe"] = to_class(Unsafe, self.unsafe)
6202- result["unsigned"] = to_class(Unsigned, self.unsigned)
6203- result["ushort"] = to_class(Ushort, self.ushort)
62046204 return result
62056205
62066206
@@ -6252,6 +6252,38 @@ class Yield:
62526252 return result
62536253
62546254
6255+@dataclass
6256+class Unsigned:
6257+ unsigned: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'Unsigned':
6261+ assert isinstance(obj, dict)
6262+ unsigned = from_int(obj["unsigned"])
6263+ return Unsigned(unsigned)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["unsigned"] = from_int(self.unsigned)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class Ushort:
6273+ ushort: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'Ushort':
6277+ assert isinstance(obj, dict)
6278+ ushort = from_int(obj["ushort"])
6279+ return Ushort(ushort)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["ushort"] = from_int(self.ushort)
6284+ return result
6285+
6286+
62556287 @dataclass
62566288 class Using:
62576289 using: int
@@ -6499,6 +6531,8 @@ class Obj6:
64996531 utf8_json_writer: Utf8JSONWriter
65006532 yes: Yes
65016533 dummy: int
6534+ unsigned: Unsigned
6535+ ushort: Ushort
65026536 using: Using
65036537 var: Var
65046538 virtual: Virtual
@@ -6522,6 +6556,8 @@ class Obj6:
65226556 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
65236557 yes = Yes.from_dict(obj["YES"])
65246558 dummy = from_int(obj["dummy"])
6559+ unsigned = Unsigned.from_dict(obj["unsigned"])
6560+ ushort = Ushort.from_dict(obj["ushort"])
65256561 using = Using.from_dict(obj["using"])
65266562 var = Var.from_dict(obj["var"])
65276563 virtual = Virtual.from_dict(obj["virtual"])
@@ -6536,7 +6572,7 @@ class Obj6:
65366572 xor = Xor.from_dict(obj["xor"])
65376573 xor_eq = XorEq.from_dict(obj["xor_eq"])
65386574 obj6_yield = Yield.from_dict(obj["yield"])
6539- return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6575+ return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
65406576
65416577 def to_dict(self) -> dict:
65426578 result: dict = {}
@@ -6545,6 +6581,8 @@ class Obj6:
65456581 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
65466582 result["YES"] = to_class(Yes, self.yes)
65476583 result["dummy"] = from_int(self.dummy)
6584+ result["unsigned"] = to_class(Unsigned, self.unsigned)
6585+ result["ushort"] = to_class(Ushort, self.ushort)
65486586 result["using"] = to_class(Using, self.using)
65496587 result["var"] = to_class(Var, self.var)
65506588 result["virtual"] = to_class(Virtual, self.virtual)
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,
@@ -7320,6 +7320,31 @@ class KSerializer < Dry::Struct
73207320 end
73217321 end
73227322
7323+class Select < Dry::Struct
7324+ attribute :select_select, Types::Integer
7325+
7326+ def self.from_dynamic!(d)
7327+ d = Types::Hash[d]
7328+ new(
7329+ select_select: d.fetch("select"),
7330+ )
7331+ end
7332+
7333+ def self.from_json!(json)
7334+ from_dynamic!(JSON.parse(json))
7335+ end
7336+
7337+ def to_dynamic
7338+ {
7339+ "select" => select_select,
7340+ }
7341+ end
7342+
7343+ def to_json(options = nil)
7344+ JSON.generate(to_dynamic, options)
7345+ end
7346+end
7347+
73237348 class SelfClass < Dry::Struct
73247349 attribute :self_self, Types::Integer
73257350
@@ -8395,6 +8420,31 @@ class TimeZone < Dry::Struct
83958420 end
83968421 end
83978422
8423+class ToDict < Dry::Struct
8424+ attribute :to_dict, Types::Integer
8425+
8426+ def self.from_dynamic!(d)
8427+ d = Types::Hash[d]
8428+ new(
8429+ to_dict: d.fetch("to_dict"),
8430+ )
8431+ end
8432+
8433+ def self.from_json!(json)
8434+ from_dynamic!(JSON.parse(json))
8435+ end
8436+
8437+ def to_dynamic
8438+ {
8439+ "to_dict" => to_dict,
8440+ }
8441+ end
8442+
8443+ def to_json(options = nil)
8444+ JSON.generate(to_dynamic, options)
8445+ end
8446+end
8447+
83988448 class ToString < Dry::Struct
83998449 attribute :to_string, Types::Integer
84008450
@@ -8820,31 +8870,6 @@ class Unsafe < Dry::Struct
88208870 end
88218871 end
88228872
8823-class Unsigned < Dry::Struct
8824- attribute :unsigned, Types::Integer
8825-
8826- def self.from_dynamic!(d)
8827- d = Types::Hash[d]
8828- new(
8829- unsigned: d.fetch("unsigned"),
8830- )
8831- end
8832-
8833- def self.from_json!(json)
8834- from_dynamic!(JSON.parse(json))
8835- end
8836-
8837- def to_dynamic
8838- {
8839- "unsigned" => unsigned,
8840- }
8841- end
8842-
8843- def to_json(options = nil)
8844- JSON.generate(to_dynamic, options)
8845- end
8846-end
8847-
88488873 class UseSerializers < Dry::Struct
88498874 attribute :use_serializers, Types::Integer
88508875
@@ -8870,34 +8895,10 @@ class UseSerializers < Dry::Struct
88708895 end
88718896 end
88728897
8873-class Ushort < Dry::Struct
8874- attribute :ushort, Types::Integer
8875-
8876- def self.from_dynamic!(d)
8877- d = Types::Hash[d]
8878- new(
8879- ushort: d.fetch("ushort"),
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- "ushort" => ushort,
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
89008900 attribute :k_serializer, KSerializer
8901+ attribute :obj5_select, Select
89018902 attribute :obj5_self, SelfClass
89028903 attribute :obj5_super, Super
89038904 attribute :obj5_system, System
@@ -8941,6 +8942,7 @@ class Obj5 < Dry::Struct
89418942 attribute :time_only, TimeOnly
89428943 attribute :time_only_converter, TimeOnlyConverter
89438944 attribute :time_zone, TimeZone
8945+ attribute :to_dict, ToDict
89448946 attribute :to_string, ToString
89458947 attribute :top_level, TopLevelClass
89468948 attribute :transient, Transient
@@ -8958,15 +8960,14 @@ class Obj5 < Dry::Struct
89588960 attribute :union, Union
89598961 attribute :unowned, Unowned
89608962 attribute :unsafe, Unsafe
8961- attribute :unsigned, Unsigned
89628963 attribute :use_serializers, UseSerializers
8963- attribute :ushort, Ushort
89648964
89658965 def self.from_dynamic!(d)
89668966 d = Types::Hash[d]
89678967 new(
89688968 dummy: d.fetch("dummy"),
89698969 k_serializer: KSerializer.from_dynamic!(d.fetch("KSerializer")),
8970+ obj5_select: Select.from_dynamic!(d.fetch("select")),
89708971 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
89718972 obj5_super: Super.from_dynamic!(d.fetch("super")),
89728973 obj5_system: System.from_dynamic!(d.fetch("system")),
@@ -9010,6 +9011,7 @@ class Obj5 < Dry::Struct
90109011 time_only: TimeOnly.from_dynamic!(d.fetch("TimeOnly")),
90119012 time_only_converter: TimeOnlyConverter.from_dynamic!(d.fetch("TimeOnlyConverter")),
90129013 time_zone: TimeZone.from_dynamic!(d.fetch("TimeZone")),
9014+ to_dict: ToDict.from_dynamic!(d.fetch("to_dict")),
90139015 to_string: ToString.from_dynamic!(d.fetch("toString")),
90149016 top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")),
90159017 transient: Transient.from_dynamic!(d.fetch("transient")),
@@ -9027,9 +9029,7 @@ class Obj5 < Dry::Struct
90279029 union: Union.from_dynamic!(d.fetch("union")),
90289030 unowned: Unowned.from_dynamic!(d.fetch("unowned")),
90299031 unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
9030- unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
90319032 use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")),
9032- ushort: Ushort.from_dynamic!(d.fetch("ushort")),
90339033 )
90349034 end
90359035
@@ -9041,6 +9041,7 @@ class Obj5 < Dry::Struct
90419041 {
90429042 "dummy" => dummy,
90439043 "KSerializer" => k_serializer.to_dynamic,
9044+ "select" => obj5_select.to_dynamic,
90449045 "Self" => obj5_self.to_dynamic,
90459046 "super" => obj5_super.to_dynamic,
90469047 "system" => obj5_system.to_dynamic,
@@ -9084,6 +9085,7 @@ class Obj5 < Dry::Struct
90849085 "TimeOnly" => time_only.to_dynamic,
90859086 "TimeOnlyConverter" => time_only_converter.to_dynamic,
90869087 "TimeZone" => time_zone.to_dynamic,
9088+ "to_dict" => to_dict.to_dynamic,
90879089 "toString" => to_string.to_dynamic,
90889090 "top_level" => top_level.to_dynamic,
90899091 "transient" => transient.to_dynamic,
@@ -9101,9 +9103,7 @@ class Obj5 < Dry::Struct
91019103 "union" => union.to_dynamic,
91029104 "unowned" => unowned.to_dynamic,
91039105 "unsafe" => unsafe.to_dynamic,
9104- "unsigned" => unsigned.to_dynamic,
91059106 "UseSerializers" => use_serializers.to_dynamic,
9106- "ushort" => ushort.to_dynamic,
91079107 }
91089108 end
91099109
@@ -9187,6 +9187,56 @@ class Yield < Dry::Struct
91879187 end
91889188 end
91899189
9190+class Unsigned < Dry::Struct
9191+ attribute :unsigned, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ unsigned: d.fetch("unsigned"),
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+ "unsigned" => unsigned,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class Ushort < Dry::Struct
9216+ attribute :ushort, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ ushort: d.fetch("ushort"),
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+ "ushort" => ushort,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
91909240 class Using < Dry::Struct
91919241 attribute :using, Types::Integer
91929242
@@ -9567,6 +9617,8 @@ class Obj6 < Dry::Struct
95679617 attribute :obj6_while, While
95689618 attribute :obj6_with, With
95699619 attribute :obj6_yield, Yield
9620+ attribute :unsigned, Unsigned
9621+ attribute :ushort, Ushort
95709622 attribute :using, Using
95719623 attribute :utf8_json_reader, Utf8JSONReader
95729624 attribute :utf8_json_writer, Utf8JSONWriter
@@ -9590,6 +9642,8 @@ class Obj6 < Dry::Struct
95909642 obj6_while: While.from_dynamic!(d.fetch("while")),
95919643 obj6_with: With.from_dynamic!(d.fetch("with")),
95929644 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9645+ unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
9646+ ushort: Ushort.from_dynamic!(d.fetch("ushort")),
95939647 using: Using.from_dynamic!(d.fetch("using")),
95949648 utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
95959649 utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
@@ -9618,6 +9672,8 @@ class Obj6 < Dry::Struct
96189672 "while" => obj6_while.to_dynamic,
96199673 "with" => obj6_with.to_dynamic,
96209674 "yield" => obj6_yield.to_dynamic,
9675+ "unsigned" => unsigned.to_dynamic,
9676+ "ushort" => ushort.to_dynamic,
96219677 "using" => using.to_dynamic,
96229678 "Utf8JsonReader" => utf8_json_reader.to_dynamic,
96239679 "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
Mrustdefault / module_under_test.rs+49 −35
@@ -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,
@@ -2074,6 +2074,8 @@ pub struct Obj5 {
20742074 #[serde(rename = "type")]
20752075 pub purple_type: TypeClass,
20762076
2077+ pub select: Select,
2078+
20772079 #[serde(rename = "Sendable")]
20782080 pub sendable: Sendable,
20792081
@@ -2150,6 +2152,8 @@ pub struct Obj5 {
21502152 #[serde(rename = "TimeZone")]
21512153 pub time_zone: TimeZone,
21522154
2155+ pub to_dict: ToDict,
2156+
21532157 pub to_json: ToJson,
21542158
21552159 #[serde(rename = "toString")]
@@ -2179,12 +2183,8 @@ pub struct Obj5 {
21792183
21802184 pub unowned: Unowned,
21812185
2182- pub unsigned: Unsigned,
2183-
21842186 #[serde(rename = "UseSerializers")]
21852187 pub use_serializers: UseSerializers,
2186-
2187- pub ushort: Ushort,
21882188 }
21892189
21902190 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2280,6 +2280,11 @@ pub struct TypeClass {
22802280 pub type_type: i64,
22812281 }
22822282
2283+#[derive(Debug, Clone, Serialize, Deserialize)]
2284+pub struct Select {
2285+ pub select: i64,
2286+}
2287+
22832288 #[derive(Debug, Clone, Serialize, Deserialize)]
22842289 #[serde(rename_all = "PascalCase")]
22852290 pub struct Sendable {
@@ -2452,6 +2457,11 @@ pub struct TimeZone {
24522457 pub time_zone: i64,
24532458 }
24542459
2460+#[derive(Debug, Clone, Serialize, Deserialize)]
2461+pub struct ToDict {
2462+ pub to_dict: i64,
2463+}
2464+
24552465 #[derive(Debug, Clone, Serialize, Deserialize)]
24562466 pub struct ToJson {
24572467 pub to_json: i64,
@@ -2523,22 +2533,12 @@ pub struct Unowned {
25232533 pub unowned: i64,
25242534 }
25252535
2526-#[derive(Debug, Clone, Serialize, Deserialize)]
2527-pub struct Unsigned {
2528- pub unsigned: i64,
2529-}
2530-
25312536 #[derive(Debug, Clone, Serialize, Deserialize)]
25322537 #[serde(rename_all = "PascalCase")]
25332538 pub struct UseSerializers {
25342539 pub use_serializers: i64,
25352540 }
25362541
2537-#[derive(Debug, Clone, Serialize, Deserialize)]
2538-pub struct Ushort {
2539- pub ushort: i64,
2540-}
2541-
25422542 #[derive(Debug, Clone, Serialize, Deserialize)]
25432543 pub struct Obj6 {
25442544 pub dummy: i64,
@@ -2555,6 +2555,10 @@ pub struct Obj6 {
25552555 #[serde(rename = "yield")]
25562556 pub obj6_yield: Yield,
25572557
2558+ pub unsigned: Unsigned,
2559+
2560+ pub ushort: Ushort,
2561+
25582562 pub using: Using,
25592563
25602564 #[serde(rename = "Utf8JsonReader")]
@@ -2613,6 +2617,16 @@ pub struct Yield {
26132617 pub yield_yield: i64,
26142618 }
26152619
2620+#[derive(Debug, Clone, Serialize, Deserialize)]
2621+pub struct Unsigned {
2622+ pub unsigned: i64,
2623+}
2624+
2625+#[derive(Debug, Clone, Serialize, Deserialize)]
2626+pub struct Ushort {
2627+ pub ushort: i64,
2628+}
2629+
26162630 #[derive(Debug, Clone, Serialize, Deserialize)]
26172631 pub struct Using {
26182632 pub using: 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 KSerializer : KSerializer,
@@ -1420,6 +1420,7 @@ case class Obj5 (
14201420 val PrimitiveKind : PrimitiveKind,
14211421 val `true` : TrueClass,
14221422 val `type` : TypeClass,
1423+ val select : Select,
14231424 val Self : Self,
14241425 val Sendable : Sendable,
14251426 val SerialDescriptor : SerialDescriptor,
@@ -1454,6 +1455,7 @@ case class Obj5 (
14541455 val TimeOnly : TimeOnly,
14551456 val TimeOnlyConverter : TimeOnlyConverter,
14561457 val TimeZone : TimeZone,
1458+ val to_dict : ToDict,
14571459 val to_json : ToJSON,
14581460 @upickle.implicits.key("toString")
14591461 val toStringValue : ToString,
@@ -1471,9 +1473,7 @@ case class Obj5 (
14711473 val union : Union,
14721474 val unowned : Unowned,
14731475 val unsafe : Unsafe,
1474- val unsigned : Unsigned,
1475- val UseSerializers : UseSerializers,
1476- val ushort : Ushort
1476+ val UseSerializers : UseSerializers
14771477 ) derives OptionPickler.ReadWriter
14781478
14791479 case class KSerializer (
@@ -1524,6 +1524,10 @@ case class TypeClass (
15241524 val `type` : Long
15251525 ) derives OptionPickler.ReadWriter
15261526
1527+case class Select (
1528+ val select : Long
1529+) derives OptionPickler.ReadWriter
1530+
15271531 case class Self (
15281532 val Self : Long
15291533 ) derives OptionPickler.ReadWriter
@@ -1657,6 +1661,10 @@ case class TimeZone (
16571661 val TimeZone : Long
16581662 ) derives OptionPickler.ReadWriter
16591663
1664+case class ToDict (
1665+ val to_dict : Long
1666+) derives OptionPickler.ReadWriter
1667+
16601668 case class ToJSON (
16611669 val to_json : Long
16621670 ) derives OptionPickler.ReadWriter
@@ -1722,24 +1730,18 @@ case class Unsafe (
17221730 val unsafe : Long
17231731 ) derives OptionPickler.ReadWriter
17241732
1725-case class Unsigned (
1726- val unsigned : Long
1727-) derives OptionPickler.ReadWriter
1728-
17291733 case class UseSerializers (
17301734 val UseSerializers : Long
17311735 ) derives OptionPickler.ReadWriter
17321736
1733-case class Ushort (
1734- val ushort : Long
1735-) derives OptionPickler.ReadWriter
1736-
17371737 case class Obj6 (
17381738 val dummy : Long,
17391739 val `var` : Var,
17401740 val `while` : While,
17411741 val `with` : With,
17421742 val `yield` : Yield,
1743+ val unsigned : Unsigned,
1744+ val ushort : Ushort,
17431745 val using : Using,
17441746 val Utf8JsonReader : Utf8JSONReader,
17451747 val Utf8JsonWriter : Utf8JSONWriter,
@@ -1772,6 +1774,14 @@ case class Yield (
17721774 val `yield` : Long
17731775 ) derives OptionPickler.ReadWriter
17741776
1777+case class Unsigned (
1778+ val unsigned : Long
1779+) derives OptionPickler.ReadWriter
1780+
1781+case class Ushort (
1782+ val ushort : Long
1783+) derives OptionPickler.ReadWriter
1784+
17751785 case class Using (
17761786 val using : Long
17771787 ) 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 KSerializer : KSerializer,
@@ -1387,6 +1387,7 @@ case class Obj5 (
13871387 val PrimitiveKind : PrimitiveKind,
13881388 val `true` : TrueClass,
13891389 val `type` : TypeClass,
1390+ val select : Select,
13901391 val Self : Self,
13911392 val Sendable : Sendable,
13921393 val SerialDescriptor : SerialDescriptor,
@@ -1420,6 +1421,7 @@ case class Obj5 (
14201421 val TimeOnly : TimeOnly,
14211422 val TimeOnlyConverter : TimeOnlyConverter,
14221423 val TimeZone : TimeZone,
1424+ val to_dict : ToDict,
14231425 val to_json : ToJSON,
14241426 val toStringValue : ToString,
14251427 val top_level : TopLevelClass,
@@ -1436,9 +1438,7 @@ case class Obj5 (
14361438 val union : Union,
14371439 val unowned : Unowned,
14381440 val unsafe : Unsafe,
1439- val unsigned : Unsigned,
1440- val UseSerializers : UseSerializers,
1441- val ushort : Ushort
1441+ val UseSerializers : UseSerializers
14421442 )
14431443
14441444 object Obj5:
@@ -1499,6 +1499,10 @@ case class TypeClass (
14991499 val `type` : Long
15001500 ) derives Encoder.AsObject, Decoder
15011501
1502+case class Select (
1503+ val select : Long
1504+) derives Encoder.AsObject, Decoder
1505+
15021506 case class Self (
15031507 val Self : Long
15041508 ) derives Encoder.AsObject, Decoder
@@ -1640,6 +1644,10 @@ case class TimeZone (
16401644 val TimeZone : Long
16411645 ) derives Encoder.AsObject, Decoder
16421646
1647+case class ToDict (
1648+ val to_dict : Long
1649+) derives Encoder.AsObject, Decoder
1650+
16431651 case class ToJSON (
16441652 val to_json : Long
16451653 ) derives Encoder.AsObject, Decoder
@@ -1713,24 +1721,18 @@ case class Unsafe (
17131721 val unsafe : Long
17141722 ) derives Encoder.AsObject, Decoder
17151723
1716-case class Unsigned (
1717- val unsigned : Long
1718-) derives Encoder.AsObject, Decoder
1719-
17201724 case class UseSerializers (
17211725 val UseSerializers : Long
17221726 ) derives Encoder.AsObject, Decoder
17231727
1724-case class Ushort (
1725- val ushort : Long
1726-) derives Encoder.AsObject, Decoder
1727-
17281728 case class Obj6 (
17291729 val dummy : Long,
17301730 val `var` : Var,
17311731 val `while` : While,
17321732 val `with` : With,
17331733 val `yield` : Yield,
1734+ val unsigned : Unsigned,
1735+ val ushort : Ushort,
17341736 val using : Using,
17351737 val Utf8JsonReader : Utf8JSONReader,
17361738 val Utf8JsonWriter : Utf8JSONWriter,
@@ -1763,6 +1765,14 @@ case class Yield (
17631765 val `yield` : Long
17641766 ) derives Encoder.AsObject, Decoder
17651767
1768+case class Unsigned (
1769+ val unsigned : Long
1770+) derives Encoder.AsObject, Decoder
1771+
1772+case class Ushort (
1773+ val ushort : Long
1774+) derives Encoder.AsObject, Decoder
1775+
17661776 case class Using (
17671777 val using : Long
17681778 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+340 −244
@@ -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
@@ -12563,6 +12563,7 @@ struct Obj5: Codable {
1256312563 let primitiveKind: PrimitiveKind
1256412564 let purpleSelf: Obj5Self
1256512565 let purpleTrue: TrueClass
12566+ let select: Select
1256612567 let sendable: Sendable
1256712568 let serialDescriptor: SerialDescriptor
1256812569 let serialName: SerialName
@@ -12591,6 +12592,7 @@ struct Obj5: Codable {
1259112592 let timeOnly: TimeOnly
1259212593 let timeOnlyConverter: TimeOnlyConverter
1259312594 let timeZone: TimeZoneClass
12595+ let toDict: ToDict
1259412596 let toJSON: ToJSON
1259512597 let toString: ToString
1259612598 let topLevel: TopLevelClass
@@ -12606,9 +12608,7 @@ struct Obj5: Codable {
1260612608 let undefined: Undefined
1260712609 let union: Union
1260812610 let unsafe: Unsafe
12609- let unsigned: Unsigned
1261012611 let useSerializers: UseSerializers
12611- let ushort: Ushort
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12630,6 +12630,7 @@ struct Obj5: Codable {
1263012630 case primitiveKind = "PrimitiveKind"
1263112631 case purpleSelf = "self"
1263212632 case purpleTrue = "true"
12633+ case select = "select"
1263312634 case sendable = "Sendable"
1263412635 case serialDescriptor = "SerialDescriptor"
1263512636 case serialName = "SerialName"
@@ -12658,6 +12659,7 @@ struct Obj5: Codable {
1265812659 case timeOnly = "TimeOnly"
1265912660 case timeOnlyConverter = "TimeOnlyConverter"
1266012661 case timeZone = "TimeZone"
12662+ case toDict = "to_dict"
1266112663 case toJSON = "to_json"
1266212664 case toString = "toString"
1266312665 case topLevel = "top_level"
@@ -12673,9 +12675,7 @@ struct Obj5: Codable {
1267312675 case undefined = "undefined"
1267412676 case union = "union"
1267512677 case unsafe = "unsafe"
12676- case unsigned = "unsigned"
1267712678 case useSerializers = "UseSerializers"
12678- case ushort = "ushort"
1267912679 }
1268012680 }
1268112681
@@ -12717,6 +12717,7 @@ extension Obj5 {
1271712717 primitiveKind: PrimitiveKind? = nil,
1271812718 purpleSelf: Obj5Self? = nil,
1271912719 purpleTrue: TrueClass? = nil,
12720+ select: Select? = nil,
1272012721 sendable: Sendable? = nil,
1272112722 serialDescriptor: SerialDescriptor? = nil,
1272212723 serialName: SerialName? = nil,
@@ -12745,6 +12746,7 @@ extension Obj5 {
1274512746 timeOnly: TimeOnly? = nil,
1274612747 timeOnlyConverter: TimeOnlyConverter? = nil,
1274712748 timeZone: TimeZoneClass? = nil,
12749+ toDict: ToDict? = nil,
1274812750 toJSON: ToJSON? = nil,
1274912751 toString: ToString? = nil,
1275012752 topLevel: TopLevelClass? = nil,
@@ -12760,9 +12762,7 @@ extension Obj5 {
1276012762 undefined: Undefined? = nil,
1276112763 union: Union? = nil,
1276212764 unsafe: Unsafe? = nil,
12763- unsigned: Unsigned? = nil,
12764- useSerializers: UseSerializers? = nil,
12765- ushort: Ushort? = nil
12765+ useSerializers: UseSerializers? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12784,6 +12784,7 @@ extension Obj5 {
1278412784 primitiveKind: primitiveKind ?? self.primitiveKind,
1278512785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278612786 purpleTrue: purpleTrue ?? self.purpleTrue,
12787+ select: select ?? self.select,
1278712788 sendable: sendable ?? self.sendable,
1278812789 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1278912790 serialName: serialName ?? self.serialName,
@@ -12812,6 +12813,7 @@ extension Obj5 {
1281212813 timeOnly: timeOnly ?? self.timeOnly,
1281312814 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1281412815 timeZone: timeZone ?? self.timeZone,
12816+ toDict: toDict ?? self.toDict,
1281512817 toJSON: toJSON ?? self.toJSON,
1281612818 toString: toString ?? self.toString,
1281712819 topLevel: topLevel ?? self.topLevel,
@@ -12827,9 +12829,7 @@ extension Obj5 {
1282712829 undefined: undefined ?? self.undefined,
1282812830 union: union ?? self.union,
1282912831 unsafe: unsafe ?? self.unsafe,
12830- unsigned: unsigned ?? self.unsigned,
12831- useSerializers: useSerializers ?? self.useSerializers,
12832- ushort: ushort ?? self.ushort
12832+ useSerializers: useSerializers ?? self.useSerializers
1283312833 )
1283412834 }
1283512835
@@ -13634,6 +13634,50 @@ extension TrueClass {
1363413634 }
1363513635 }
1363613636
13637+// MARK: - Select
13638+struct Select: Codable {
13639+ let select: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case select = "select"
13643+ }
13644+}
13645+
13646+// MARK: Select convenience initializers and mutators
13647+
13648+extension Select {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Select.self, from: data)
13651+ }
13652+
13653+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13654+ guard let data = json.data(using: encoding) else {
13655+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13656+ }
13657+ try self.init(data: data)
13658+ }
13659+
13660+ init(fromURL url: URL) throws {
13661+ try self.init(data: try Data(contentsOf: url))
13662+ }
13663+
13664+ func with(
13665+ select: Int? = nil
13666+ ) -> Select {
13667+ return Select(
13668+ select: select ?? self.select
13669+ )
13670+ }
13671+
13672+ func jsonData() throws -> Data {
13673+ return try newJSONEncoder().encode(self)
13674+ }
13675+
13676+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13677+ return String(data: try self.jsonData(), encoding: encoding)
13678+ }
13679+}
13680+
1363713681 // MARK: - Sendable
1363813682 struct Sendable: Codable {
1363913683 let sendable: Int
@@ -14866,6 +14910,50 @@ extension TimeZoneClass {
1486614910 }
1486714911 }
1486814912
14913+// MARK: - ToDict
14914+struct ToDict: Codable {
14915+ let toDict: Int
14916+
14917+ enum CodingKeys: String, CodingKey {
14918+ case toDict = "to_dict"
14919+ }
14920+}
14921+
14922+// MARK: ToDict convenience initializers and mutators
14923+
14924+extension ToDict {
14925+ init(data: Data) throws {
14926+ self = try newJSONDecoder().decode(ToDict.self, from: data)
14927+ }
14928+
14929+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14930+ guard let data = json.data(using: encoding) else {
14931+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14932+ }
14933+ try self.init(data: data)
14934+ }
14935+
14936+ init(fromURL url: URL) throws {
14937+ try self.init(data: try Data(contentsOf: url))
14938+ }
14939+
14940+ func with(
14941+ toDict: Int? = nil
14942+ ) -> ToDict {
14943+ return ToDict(
14944+ toDict: toDict ?? self.toDict
14945+ )
14946+ }
14947+
14948+ func jsonData() throws -> Data {
14949+ return try newJSONEncoder().encode(self)
14950+ }
14951+
14952+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14953+ return String(data: try self.jsonData(), encoding: encoding)
14954+ }
14955+}
14956+
1486914957 // MARK: - ToJSON
1487014958 struct ToJSON: Codable {
1487114959 let toJSON: Int
@@ -15526,50 +15614,6 @@ extension Unsafe {
1552615614 }
1552715615 }
1552815616
15529-// MARK: - Unsigned
15530-struct Unsigned: Codable {
15531- let unsigned: Int
15532-
15533- enum CodingKeys: String, CodingKey {
15534- case unsigned = "unsigned"
15535- }
15536-}
15537-
15538-// MARK: Unsigned convenience initializers and mutators
15539-
15540-extension Unsigned {
15541- init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Unsigned.self, from: data)
15543- }
15544-
15545- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15546- guard let data = json.data(using: encoding) else {
15547- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15548- }
15549- try self.init(data: data)
15550- }
15551-
15552- init(fromURL url: URL) throws {
15553- try self.init(data: try Data(contentsOf: url))
15554- }
15555-
15556- func with(
15557- unsigned: Int? = nil
15558- ) -> Unsigned {
15559- return Unsigned(
15560- unsigned: unsigned ?? self.unsigned
15561- )
15562- }
15563-
15564- func jsonData() throws -> Data {
15565- return try newJSONEncoder().encode(self)
15566- }
15567-
15568- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15569- return String(data: try self.jsonData(), encoding: encoding)
15570- }
15571-}
15572-
1557315617 // MARK: - UseSerializers
1557415618 struct UseSerializers: Codable {
1557515619 let useSerializers: Int
@@ -15614,50 +15658,6 @@ extension UseSerializers {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Ushort
15618-struct Ushort: Codable {
15619- let ushort: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case ushort = "ushort"
15623- }
15624-}
15625-
15626-// MARK: Ushort convenience initializers and mutators
15627-
15628-extension Ushort {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Ushort.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- ushort: Int? = nil
15646- ) -> Ushort {
15647- return Ushort(
15648- ushort: ushort ?? self.ushort
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
@@ -15666,6 +15666,8 @@ struct Obj6: Codable {
1566615666 let obj6Where: Where
1566715667 let obj6While: While
1566815668 let obj6WillSet: WillSet
15669+ let unsigned: Unsigned
15670+ let ushort: Ushort
1566915671 let using: Using
1567015672 let utf8JSONReader: Utf8JSONReader
1567115673 let utf8JSONWriter: Utf8JSONWriter
@@ -15687,6 +15689,8 @@ struct Obj6: Codable {
1568715689 case obj6Where = "where"
1568815690 case obj6While = "while"
1568915691 case obj6WillSet = "willSet"
15692+ case unsigned = "unsigned"
15693+ case ushort = "ushort"
1569015694 case using = "using"
1569115695 case utf8JSONReader = "Utf8JsonReader"
1569215696 case utf8JSONWriter = "Utf8JsonWriter"
@@ -15728,6 +15732,8 @@ extension Obj6 {
1572815732 obj6Where: Where? = nil,
1572915733 obj6While: While? = nil,
1573015734 obj6WillSet: WillSet? = nil,
15735+ unsigned: Unsigned? = nil,
15736+ ushort: Ushort? = nil,
1573115737 using: Using? = nil,
1573215738 utf8JSONReader: Utf8JSONReader? = nil,
1573315739 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -15749,6 +15755,8 @@ extension Obj6 {
1574915755 obj6Where: obj6Where ?? self.obj6Where,
1575015756 obj6While: obj6While ?? self.obj6While,
1575115757 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15758+ unsigned: unsigned ?? self.unsigned,
15759+ ushort: ushort ?? self.ushort,
1575215760 using: using ?? self.using,
1575315761 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1575415762 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -15994,6 +16002,94 @@ extension WillSet {
1599416002 }
1599516003 }
1599616004
16005+// MARK: - Unsigned
16006+struct Unsigned: Codable {
16007+ let unsigned: Int
16008+
16009+ enum CodingKeys: String, CodingKey {
16010+ case unsigned = "unsigned"
16011+ }
16012+}
16013+
16014+// MARK: Unsigned convenience initializers and mutators
16015+
16016+extension Unsigned {
16017+ init(data: Data) throws {
16018+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
16019+ }
16020+
16021+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16022+ guard let data = json.data(using: encoding) else {
16023+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16024+ }
16025+ try self.init(data: data)
16026+ }
16027+
16028+ init(fromURL url: URL) throws {
16029+ try self.init(data: try Data(contentsOf: url))
16030+ }
16031+
16032+ func with(
16033+ unsigned: Int? = nil
16034+ ) -> Unsigned {
16035+ return Unsigned(
16036+ unsigned: unsigned ?? self.unsigned
16037+ )
16038+ }
16039+
16040+ func jsonData() throws -> Data {
16041+ return try newJSONEncoder().encode(self)
16042+ }
16043+
16044+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16045+ return String(data: try self.jsonData(), encoding: encoding)
16046+ }
16047+}
16048+
16049+// MARK: - Ushort
16050+struct Ushort: Codable {
16051+ let ushort: Int
16052+
16053+ enum CodingKeys: String, CodingKey {
16054+ case ushort = "ushort"
16055+ }
16056+}
16057+
16058+// MARK: Ushort convenience initializers and mutators
16059+
16060+extension Ushort {
16061+ init(data: Data) throws {
16062+ self = try newJSONDecoder().decode(Ushort.self, from: data)
16063+ }
16064+
16065+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16066+ guard let data = json.data(using: encoding) else {
16067+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16068+ }
16069+ try self.init(data: data)
16070+ }
16071+
16072+ init(fromURL url: URL) throws {
16073+ try self.init(data: try Data(contentsOf: url))
16074+ }
16075+
16076+ func with(
16077+ ushort: Int? = nil
16078+ ) -> Ushort {
16079+ return Ushort(
16080+ ushort: ushort ?? self.ushort
16081+ )
16082+ }
16083+
16084+ func jsonData() throws -> Data {
16085+ return try newJSONEncoder().encode(self)
16086+ }
16087+
16088+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16089+ return String(data: try self.jsonData(), encoding: encoding)
16090+ }
16091+}
16092+
1599716093 // MARK: - Using
1599816094 struct Using: Codable {
1599916095 let using: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+392 −284
@@ -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
@@ -14130,6 +14130,7 @@ extension Select {
1413014130 let primitiveKind: PrimitiveKind
1413114131 let purpleSelf: Obj5Self
1413214132 let purpleTrue: TrueClass
14133+ let select: Select
1413314134 let sendable: Sendable
1413414135 let serialDescriptor: SerialDescriptor
1413514136 let serialName: SerialName
@@ -14158,6 +14159,7 @@ extension Select {
1415814159 let timeOnly: TimeOnly
1415914160 let timeOnlyConverter: TimeOnlyConverter
1416014161 let timeZone: TimeZoneClass
14162+ let toDict: ToDict
1416114163 let toJSON: ToJSON
1416214164 let toString: ToString
1416314165 let topLevel: TopLevelClass
@@ -14173,9 +14175,7 @@ extension Select {
1417314175 let undefined: Undefined
1417414176 let union: Union
1417514177 let unsafe: Unsafe
14176- let unsigned: Unsigned
1417714178 let useSerializers: UseSerializers
14178- let ushort: Ushort
1417914179
1418014180 enum CodingKeys: String, CodingKey {
1418114181 case dummy = "dummy"
@@ -14197,6 +14197,7 @@ extension Select {
1419714197 case primitiveKind = "PrimitiveKind"
1419814198 case purpleSelf = "self"
1419914199 case purpleTrue = "true"
14200+ case select = "select"
1420014201 case sendable = "Sendable"
1420114202 case serialDescriptor = "SerialDescriptor"
1420214203 case serialName = "SerialName"
@@ -14225,6 +14226,7 @@ extension Select {
1422514226 case timeOnly = "TimeOnly"
1422614227 case timeOnlyConverter = "TimeOnlyConverter"
1422714228 case timeZone = "TimeZone"
14229+ case toDict = "to_dict"
1422814230 case toJSON = "to_json"
1422914231 case toString = "toString"
1423014232 case topLevel = "top_level"
@@ -14240,12 +14242,10 @@ extension Select {
1424014242 case undefined = "undefined"
1424114243 case union = "union"
1424214244 case unsafe = "unsafe"
14243- case unsigned = "unsigned"
1424414245 case useSerializers = "UseSerializers"
14245- case ushort = "ushort"
1424614246 }
1424714247
14248- init(dummy: Int, kSerializer: KSerializer, 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, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, useSerializers: UseSerializers, ushort: Ushort) {
14248+ init(dummy: Int, kSerializer: KSerializer, 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, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, useSerializers: UseSerializers) {
1424914249 self.dummy = dummy
1425014250 self.kSerializer = kSerializer
1425114251 self.obj5Self = obj5Self
@@ -14265,6 +14265,7 @@ extension Select {
1426514265 self.primitiveKind = primitiveKind
1426614266 self.purpleSelf = purpleSelf
1426714267 self.purpleTrue = purpleTrue
14268+ self.select = select
1426814269 self.sendable = sendable
1426914270 self.serialDescriptor = serialDescriptor
1427014271 self.serialName = serialName
@@ -14293,6 +14294,7 @@ extension Select {
1429314294 self.timeOnly = timeOnly
1429414295 self.timeOnlyConverter = timeOnlyConverter
1429514296 self.timeZone = timeZone
14297+ self.toDict = toDict
1429614298 self.toJSON = toJSON
1429714299 self.toString = toString
1429814300 self.topLevel = topLevel
@@ -14308,9 +14310,7 @@ extension Select {
1430814310 self.undefined = undefined
1430914311 self.union = union
1431014312 self.unsafe = unsafe
14311- self.unsigned = unsigned
1431214313 self.useSerializers = useSerializers
14313- self.ushort = ushort
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, kSerializer: me.kSerializer, 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, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, useSerializers: me.useSerializers, ushort: me.ushort)
14322+ self.init(dummy: me.dummy, kSerializer: me.kSerializer, 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, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, useSerializers: me.useSerializers)
1432314323 }
1432414324
1432514325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14353,6 +14353,7 @@ extension Obj5 {
1435314353 primitiveKind: PrimitiveKind? = nil,
1435414354 purpleSelf: Obj5Self? = nil,
1435514355 purpleTrue: TrueClass? = nil,
14356+ select: Select? = nil,
1435614357 sendable: Sendable? = nil,
1435714358 serialDescriptor: SerialDescriptor? = nil,
1435814359 serialName: SerialName? = nil,
@@ -14381,6 +14382,7 @@ extension Obj5 {
1438114382 timeOnly: TimeOnly? = nil,
1438214383 timeOnlyConverter: TimeOnlyConverter? = nil,
1438314384 timeZone: TimeZoneClass? = nil,
14385+ toDict: ToDict? = nil,
1438414386 toJSON: ToJSON? = nil,
1438514387 toString: ToString? = nil,
1438614388 topLevel: TopLevelClass? = nil,
@@ -14396,9 +14398,7 @@ extension Obj5 {
1439614398 undefined: Undefined? = nil,
1439714399 union: Union? = nil,
1439814400 unsafe: Unsafe? = nil,
14399- unsigned: Unsigned? = nil,
14400- useSerializers: UseSerializers? = nil,
14401- ushort: Ushort? = nil
14401+ useSerializers: UseSerializers? = nil
1440214402 ) -> Obj5 {
1440314403 return Obj5(
1440414404 dummy: dummy ?? self.dummy,
@@ -14420,6 +14420,7 @@ extension Obj5 {
1442014420 primitiveKind: primitiveKind ?? self.primitiveKind,
1442114421 purpleSelf: purpleSelf ?? self.purpleSelf,
1442214422 purpleTrue: purpleTrue ?? self.purpleTrue,
14423+ select: select ?? self.select,
1442314424 sendable: sendable ?? self.sendable,
1442414425 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1442514426 serialName: serialName ?? self.serialName,
@@ -14448,6 +14449,7 @@ extension Obj5 {
1444814449 timeOnly: timeOnly ?? self.timeOnly,
1444914450 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1445014451 timeZone: timeZone ?? self.timeZone,
14452+ toDict: toDict ?? self.toDict,
1445114453 toJSON: toJSON ?? self.toJSON,
1445214454 toString: toString ?? self.toString,
1445314455 topLevel: topLevel ?? self.topLevel,
@@ -14463,9 +14465,7 @@ extension Obj5 {
1446314465 undefined: undefined ?? self.undefined,
1446414466 union: union ?? self.union,
1446514467 unsafe: unsafe ?? self.unsafe,
14466- unsigned: unsigned ?? self.unsigned,
14467- useSerializers: useSerializers ?? self.useSerializers,
14468- ushort: ushort ?? self.ushort
14468+ useSerializers: useSerializers ?? self.useSerializers
1446914469 )
1447014470 }
1447114471
@@ -15360,6 +15360,55 @@ extension TrueClass {
1536015360 }
1536115361 }
1536215362
15363+// MARK: - Select
15364+@objcMembers class Select: NSObject, Codable {
15365+ let select: Int
15366+
15367+ enum CodingKeys: String, CodingKey {
15368+ case select = "select"
15369+ }
15370+
15371+ init(select: Int) {
15372+ self.select = select
15373+ }
15374+}
15375+
15376+// MARK: Select convenience initializers and mutators
15377+
15378+extension Select {
15379+ convenience init(data: Data) throws {
15380+ let me = try newJSONDecoder().decode(Select.self, from: data)
15381+ self.init(select: me.select)
15382+ }
15383+
15384+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15385+ guard let data = json.data(using: encoding) else {
15386+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15387+ }
15388+ try self.init(data: data)
15389+ }
15390+
15391+ convenience init(fromURL url: URL) throws {
15392+ try self.init(data: try Data(contentsOf: url))
15393+ }
15394+
15395+ func with(
15396+ select: Int? = nil
15397+ ) -> Select {
15398+ return Select(
15399+ select: select ?? self.select
15400+ )
15401+ }
15402+
15403+ func jsonData() throws -> Data {
15404+ return try newJSONEncoder().encode(self)
15405+ }
15406+
15407+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15408+ return String(data: try self.jsonData(), encoding: encoding)
15409+ }
15410+}
15411+
1536315412 // MARK: - Sendable
1536415413 @objcMembers class Sendable: NSObject, Codable {
1536515414 let sendable: Int
@@ -16732,6 +16781,55 @@ extension TimeZoneClass {
1673216781 }
1673316782 }
1673416783
16784+// MARK: - ToDict
16785+@objcMembers class ToDict: NSObject, Codable {
16786+ let toDict: Int
16787+
16788+ enum CodingKeys: String, CodingKey {
16789+ case toDict = "to_dict"
16790+ }
16791+
16792+ init(toDict: Int) {
16793+ self.toDict = toDict
16794+ }
16795+}
16796+
16797+// MARK: ToDict convenience initializers and mutators
16798+
16799+extension ToDict {
16800+ convenience init(data: Data) throws {
16801+ let me = try newJSONDecoder().decode(ToDict.self, from: data)
16802+ self.init(toDict: me.toDict)
16803+ }
16804+
16805+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16806+ guard let data = json.data(using: encoding) else {
16807+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16808+ }
16809+ try self.init(data: data)
16810+ }
16811+
16812+ convenience init(fromURL url: URL) throws {
16813+ try self.init(data: try Data(contentsOf: url))
16814+ }
16815+
16816+ func with(
16817+ toDict: Int? = nil
16818+ ) -> ToDict {
16819+ return ToDict(
16820+ toDict: toDict ?? self.toDict
16821+ )
16822+ }
16823+
16824+ func jsonData() throws -> Data {
16825+ return try newJSONEncoder().encode(self)
16826+ }
16827+
16828+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16829+ return String(data: try self.jsonData(), encoding: encoding)
16830+ }
16831+}
16832+
1673516833 // MARK: - ToJSON
1673616834 @objcMembers class ToJSON: NSObject, Codable {
1673716835 let toJSON: Int
@@ -17467,55 +17565,6 @@ extension Unsafe {
1746717565 }
1746817566 }
1746917567
17470-// MARK: - Unsigned
17471-@objcMembers class Unsigned: NSObject, Codable {
17472- let unsigned: Int
17473-
17474- enum CodingKeys: String, CodingKey {
17475- case unsigned = "unsigned"
17476- }
17477-
17478- init(unsigned: Int) {
17479- self.unsigned = unsigned
17480- }
17481-}
17482-
17483-// MARK: Unsigned convenience initializers and mutators
17484-
17485-extension Unsigned {
17486- convenience init(data: Data) throws {
17487- let me = try newJSONDecoder().decode(Unsigned.self, from: data)
17488- self.init(unsigned: me.unsigned)
17489- }
17490-
17491- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17492- guard let data = json.data(using: encoding) else {
17493- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17494- }
17495- try self.init(data: data)
17496- }
17497-
17498- convenience init(fromURL url: URL) throws {
17499- try self.init(data: try Data(contentsOf: url))
17500- }
17501-
17502- func with(
17503- unsigned: Int? = nil
17504- ) -> Unsigned {
17505- return Unsigned(
17506- unsigned: unsigned ?? self.unsigned
17507- )
17508- }
17509-
17510- func jsonData() throws -> Data {
17511- return try newJSONEncoder().encode(self)
17512- }
17513-
17514- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17515- return String(data: try self.jsonData(), encoding: encoding)
17516- }
17517-}
17518-
1751917568 // MARK: - UseSerializers
1752017569 @objcMembers class UseSerializers: NSObject, Codable {
1752117570 let useSerializers: Int
@@ -17565,55 +17614,6 @@ extension UseSerializers {
1756517614 }
1756617615 }
1756717616
17568-// MARK: - Ushort
17569-@objcMembers class Ushort: NSObject, Codable {
17570- let ushort: Int
17571-
17572- enum CodingKeys: String, CodingKey {
17573- case ushort = "ushort"
17574- }
17575-
17576- init(ushort: Int) {
17577- self.ushort = ushort
17578- }
17579-}
17580-
17581-// MARK: Ushort convenience initializers and mutators
17582-
17583-extension Ushort {
17584- convenience init(data: Data) throws {
17585- let me = try newJSONDecoder().decode(Ushort.self, from: data)
17586- self.init(ushort: me.ushort)
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- ushort: Int? = nil
17602- ) -> Ushort {
17603- return Ushort(
17604- ushort: ushort ?? self.ushort
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
@@ -17622,6 +17622,8 @@ extension Ushort {
1762217622 let obj6Where: Where
1762317623 let obj6While: While
1762417624 let obj6WillSet: WillSet
17625+ let unsigned: Unsigned
17626+ let ushort: Ushort
1762517627 let using: Using
1762617628 let utf8JSONReader: Utf8JSONReader
1762717629 let utf8JSONWriter: Utf8JSONWriter
@@ -17643,6 +17645,8 @@ extension Ushort {
1764317645 case obj6Where = "where"
1764417646 case obj6While = "while"
1764517647 case obj6WillSet = "willSet"
17648+ case unsigned = "unsigned"
17649+ case ushort = "ushort"
1764617650 case using = "using"
1764717651 case utf8JSONReader = "Utf8JsonReader"
1764817652 case utf8JSONWriter = "Utf8JsonWriter"
@@ -17658,13 +17662,15 @@ extension Ushort {
1765817662 case yield = "yield"
1765917663 }
1766017664
17661- init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17665+ init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
1766217666 self.dummy = dummy
1766317667 self.obj6Var = obj6Var
1766417668 self.obj6Weak = obj6Weak
1766517669 self.obj6Where = obj6Where
1766617670 self.obj6While = obj6While
1766717671 self.obj6WillSet = obj6WillSet
17672+ self.unsigned = unsigned
17673+ self.ushort = ushort
1766817674 self.using = using
1766917675 self.utf8JSONReader = utf8JSONReader
1767017676 self.utf8JSONWriter = utf8JSONWriter
@@ -17686,7 +17692,7 @@ extension Ushort {
1768617692 extension Obj6 {
1768717693 convenience init(data: Data) throws {
1768817694 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17689- self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, 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)
17695+ self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, 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)
1769017696 }
1769117697
1769217698 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17707,6 +17713,8 @@ extension Obj6 {
1770717713 obj6Where: Where? = nil,
1770817714 obj6While: While? = nil,
1770917715 obj6WillSet: WillSet? = nil,
17716+ unsigned: Unsigned? = nil,
17717+ ushort: Ushort? = nil,
1771017718 using: Using? = nil,
1771117719 utf8JSONReader: Utf8JSONReader? = nil,
1771217720 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -17728,6 +17736,8 @@ extension Obj6 {
1772817736 obj6Where: obj6Where ?? self.obj6Where,
1772917737 obj6While: obj6While ?? self.obj6While,
1773017738 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17739+ unsigned: unsigned ?? self.unsigned,
17740+ ushort: ushort ?? self.ushort,
1773117741 using: using ?? self.using,
1773217742 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1773317743 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -17998,6 +18008,104 @@ extension WillSet {
1799818008 }
1799918009 }
1800018010
18011+// MARK: - Unsigned
18012+@objcMembers class Unsigned: NSObject, Codable {
18013+ let unsigned: Int
18014+
18015+ enum CodingKeys: String, CodingKey {
18016+ case unsigned = "unsigned"
18017+ }
18018+
18019+ init(unsigned: Int) {
18020+ self.unsigned = unsigned
18021+ }
18022+}
18023+
18024+// MARK: Unsigned convenience initializers and mutators
18025+
18026+extension Unsigned {
18027+ convenience init(data: Data) throws {
18028+ let me = try newJSONDecoder().decode(Unsigned.self, from: data)
18029+ self.init(unsigned: me.unsigned)
18030+ }
18031+
18032+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18033+ guard let data = json.data(using: encoding) else {
18034+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18035+ }
18036+ try self.init(data: data)
18037+ }
18038+
18039+ convenience init(fromURL url: URL) throws {
18040+ try self.init(data: try Data(contentsOf: url))
18041+ }
18042+
18043+ func with(
18044+ unsigned: Int? = nil
18045+ ) -> Unsigned {
18046+ return Unsigned(
18047+ unsigned: unsigned ?? self.unsigned
18048+ )
18049+ }
18050+
18051+ func jsonData() throws -> Data {
18052+ return try newJSONEncoder().encode(self)
18053+ }
18054+
18055+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18056+ return String(data: try self.jsonData(), encoding: encoding)
18057+ }
18058+}
18059+
18060+// MARK: - Ushort
18061+@objcMembers class Ushort: NSObject, Codable {
18062+ let ushort: Int
18063+
18064+ enum CodingKeys: String, CodingKey {
18065+ case ushort = "ushort"
18066+ }
18067+
18068+ init(ushort: Int) {
18069+ self.ushort = ushort
18070+ }
18071+}
18072+
18073+// MARK: Ushort convenience initializers and mutators
18074+
18075+extension Ushort {
18076+ convenience init(data: Data) throws {
18077+ let me = try newJSONDecoder().decode(Ushort.self, from: data)
18078+ self.init(ushort: me.ushort)
18079+ }
18080+
18081+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18082+ guard let data = json.data(using: encoding) else {
18083+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18084+ }
18085+ try self.init(data: data)
18086+ }
18087+
18088+ convenience init(fromURL url: URL) throws {
18089+ try self.init(data: try Data(contentsOf: url))
18090+ }
18091+
18092+ func with(
18093+ ushort: Int? = nil
18094+ ) -> Ushort {
18095+ return Ushort(
18096+ ushort: ushort ?? self.ushort
18097+ )
18098+ }
18099+
18100+ func jsonData() throws -> Data {
18101+ return try newJSONEncoder().encode(self)
18102+ }
18103+
18104+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18105+ return String(data: try self.jsonData(), encoding: encoding)
18106+ }
18107+}
18108+
1800118109 // MARK: - Using
1800218110 @objcMembers class Using: NSObject, Codable {
1800318111 let using: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+407 −299
@@ -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
@@ -14135,6 +14135,7 @@ struct Obj5: Codable, Equatable {
1413514135 let primitiveKind: PrimitiveKind
1413614136 let purpleSelf: Obj5Self
1413714137 let purpleTrue: TrueClass
14138+ let select: Select
1413814139 let sendable: Sendable
1413914140 let serialDescriptor: SerialDescriptor
1414014141 let serialName: SerialName
@@ -14163,6 +14164,7 @@ struct Obj5: Codable, Equatable {
1416314164 let timeOnly: TimeOnly
1416414165 let timeOnlyConverter: TimeOnlyConverter
1416514166 let timeZone: TimeZoneClass
14167+ let toDict: ToDict
1416614168 let toJSON: ToJSON
1416714169 let toString: ToString
1416814170 let topLevel: TopLevelClass
@@ -14178,9 +14180,7 @@ struct Obj5: Codable, Equatable {
1417814180 let undefined: Undefined
1417914181 let union: Union
1418014182 let unsafe: Unsafe
14181- let unsigned: Unsigned
1418214183 let useSerializers: UseSerializers
14183- let ushort: Ushort
1418414184
1418514185 enum CodingKeys: String, CodingKey {
1418614186 case dummy = "dummy"
@@ -14202,6 +14202,7 @@ struct Obj5: Codable, Equatable {
1420214202 case primitiveKind = "PrimitiveKind"
1420314203 case purpleSelf = "self"
1420414204 case purpleTrue = "true"
14205+ case select = "select"
1420514206 case sendable = "Sendable"
1420614207 case serialDescriptor = "SerialDescriptor"
1420714208 case serialName = "SerialName"
@@ -14230,6 +14231,7 @@ struct Obj5: Codable, Equatable {
1423014231 case timeOnly = "TimeOnly"
1423114232 case timeOnlyConverter = "TimeOnlyConverter"
1423214233 case timeZone = "TimeZone"
14234+ case toDict = "to_dict"
1423314235 case toJSON = "to_json"
1423414236 case toString = "toString"
1423514237 case topLevel = "top_level"
@@ -14245,9 +14247,7 @@ struct Obj5: Codable, Equatable {
1424514247 case undefined = "undefined"
1424614248 case union = "union"
1424714249 case unsafe = "unsafe"
14248- case unsigned = "unsigned"
1424914250 case useSerializers = "UseSerializers"
14250- case ushort = "ushort"
1425114251 }
1425214252 }
1425314253
@@ -14289,6 +14289,7 @@ extension Obj5 {
1428914289 primitiveKind: PrimitiveKind? = nil,
1429014290 purpleSelf: Obj5Self? = nil,
1429114291 purpleTrue: TrueClass? = nil,
14292+ select: Select? = nil,
1429214293 sendable: Sendable? = nil,
1429314294 serialDescriptor: SerialDescriptor? = nil,
1429414295 serialName: SerialName? = nil,
@@ -14317,6 +14318,7 @@ extension Obj5 {
1431714318 timeOnly: TimeOnly? = nil,
1431814319 timeOnlyConverter: TimeOnlyConverter? = nil,
1431914320 timeZone: TimeZoneClass? = nil,
14321+ toDict: ToDict? = nil,
1432014322 toJSON: ToJSON? = nil,
1432114323 toString: ToString? = nil,
1432214324 topLevel: TopLevelClass? = nil,
@@ -14332,9 +14334,7 @@ extension Obj5 {
1433214334 undefined: Undefined? = nil,
1433314335 union: Union? = nil,
1433414336 unsafe: Unsafe? = nil,
14335- unsigned: Unsigned? = nil,
14336- useSerializers: UseSerializers? = nil,
14337- ushort: Ushort? = nil
14337+ useSerializers: UseSerializers? = nil
1433814338 ) -> Obj5 {
1433914339 return Obj5(
1434014340 dummy: dummy ?? self.dummy,
@@ -14356,6 +14356,7 @@ extension Obj5 {
1435614356 primitiveKind: primitiveKind ?? self.primitiveKind,
1435714357 purpleSelf: purpleSelf ?? self.purpleSelf,
1435814358 purpleTrue: purpleTrue ?? self.purpleTrue,
14359+ select: select ?? self.select,
1435914360 sendable: sendable ?? self.sendable,
1436014361 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1436114362 serialName: serialName ?? self.serialName,
@@ -14384,6 +14385,7 @@ extension Obj5 {
1438414385 timeOnly: timeOnly ?? self.timeOnly,
1438514386 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1438614387 timeZone: timeZone ?? self.timeZone,
14388+ toDict: toDict ?? self.toDict,
1438714389 toJSON: toJSON ?? self.toJSON,
1438814390 toString: toString ?? self.toString,
1438914391 topLevel: topLevel ?? self.topLevel,
@@ -14399,9 +14401,7 @@ extension Obj5 {
1439914401 undefined: undefined ?? self.undefined,
1440014402 union: union ?? self.union,
1440114403 unsafe: unsafe ?? self.unsafe,
14402- unsigned: unsigned ?? self.unsigned,
14403- useSerializers: useSerializers ?? self.useSerializers,
14404- ushort: ushort ?? self.ushort
14404+ useSerializers: useSerializers ?? self.useSerializers
1440514405 )
1440614406 }
1440714407
@@ -15320,6 +15320,56 @@ extension TrueClass {
1532015320 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1532115321 // synthesized for types that have collections (such as arrays or dictionaries).
1532215322
15323+// MARK: - Select
15324+struct Select: Codable, Equatable {
15325+ let select: Int
15326+
15327+ enum CodingKeys: String, CodingKey {
15328+ case select = "select"
15329+ }
15330+}
15331+
15332+// MARK: Select convenience initializers and mutators
15333+
15334+extension Select {
15335+ init(data: Data) throws {
15336+ self = try newJSONDecoder().decode(Select.self, from: data)
15337+ }
15338+
15339+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15340+ guard let data = json.data(using: encoding) else {
15341+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15342+ }
15343+ try self.init(data: data)
15344+ }
15345+
15346+ init(fromURL url: URL) throws {
15347+ try self.init(data: try Data(contentsOf: url))
15348+ }
15349+
15350+ func with(
15351+ select: Int? = nil
15352+ ) -> Select {
15353+ return Select(
15354+ select: select ?? self.select
15355+ )
15356+ }
15357+
15358+ func jsonData() throws -> Data {
15359+ return try newJSONEncoder().encode(self)
15360+ }
15361+
15362+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15363+ return String(data: try self.jsonData(), encoding: encoding)
15364+ }
15365+}
15366+
15367+//
15368+// Hashable or Equatable:
15369+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15370+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15371+// synthesized for types that have collections (such as arrays or dictionaries).
15372+
1532315373 // MARK: - Sendable
1532415374 struct Sendable: Codable, Equatable {
1532515375 let sendable: Int
@@ -16720,6 +16770,56 @@ extension TimeZoneClass {
1672016770 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1672116771 // synthesized for types that have collections (such as arrays or dictionaries).
1672216772
16773+// MARK: - ToDict
16774+struct ToDict: Codable, Equatable {
16775+ let toDict: Int
16776+
16777+ enum CodingKeys: String, CodingKey {
16778+ case toDict = "to_dict"
16779+ }
16780+}
16781+
16782+// MARK: ToDict convenience initializers and mutators
16783+
16784+extension ToDict {
16785+ init(data: Data) throws {
16786+ self = try newJSONDecoder().decode(ToDict.self, from: data)
16787+ }
16788+
16789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16790+ guard let data = json.data(using: encoding) else {
16791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16792+ }
16793+ try self.init(data: data)
16794+ }
16795+
16796+ init(fromURL url: URL) throws {
16797+ try self.init(data: try Data(contentsOf: url))
16798+ }
16799+
16800+ func with(
16801+ toDict: Int? = nil
16802+ ) -> ToDict {
16803+ return ToDict(
16804+ toDict: toDict ?? self.toDict
16805+ )
16806+ }
16807+
16808+ func jsonData() throws -> Data {
16809+ return try newJSONEncoder().encode(self)
16810+ }
16811+
16812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16813+ return String(data: try self.jsonData(), encoding: encoding)
16814+ }
16815+}
16816+
16817+//
16818+// Hashable or Equatable:
16819+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
16820+// for types that require the use of JSONAny, nor will the implementation of Hashable be
16821+// synthesized for types that have collections (such as arrays or dictionaries).
16822+
1672316823 // MARK: - ToJSON
1672416824 struct ToJSON: Codable, Equatable {
1672516825 let toJSON: Int
@@ -17470,56 +17570,6 @@ extension Unsafe {
1747017570 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1747117571 // synthesized for types that have collections (such as arrays or dictionaries).
1747217572
17473-// MARK: - Unsigned
17474-struct Unsigned: Codable, Equatable {
17475- let unsigned: Int
17476-
17477- enum CodingKeys: String, CodingKey {
17478- case unsigned = "unsigned"
17479- }
17480-}
17481-
17482-// MARK: Unsigned convenience initializers and mutators
17483-
17484-extension Unsigned {
17485- init(data: Data) throws {
17486- self = try newJSONDecoder().decode(Unsigned.self, from: data)
17487- }
17488-
17489- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17490- guard let data = json.data(using: encoding) else {
17491- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17492- }
17493- try self.init(data: data)
17494- }
17495-
17496- init(fromURL url: URL) throws {
17497- try self.init(data: try Data(contentsOf: url))
17498- }
17499-
17500- func with(
17501- unsigned: Int? = nil
17502- ) -> Unsigned {
17503- return Unsigned(
17504- unsigned: unsigned ?? self.unsigned
17505- )
17506- }
17507-
17508- func jsonData() throws -> Data {
17509- return try newJSONEncoder().encode(self)
17510- }
17511-
17512- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17513- return String(data: try self.jsonData(), encoding: encoding)
17514- }
17515-}
17516-
17517-//
17518-// Hashable or Equatable:
17519-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17520-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17521-// synthesized for types that have collections (such as arrays or dictionaries).
17522-
1752317573 // MARK: - UseSerializers
1752417574 struct UseSerializers: Codable, Equatable {
1752517575 let useSerializers: Int
@@ -17570,56 +17620,6 @@ extension UseSerializers {
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: - Ushort
17574-struct Ushort: Codable, Equatable {
17575- let ushort: Int
17576-
17577- enum CodingKeys: String, CodingKey {
17578- case ushort = "ushort"
17579- }
17580-}
17581-
17582-// MARK: Ushort convenience initializers and mutators
17583-
17584-extension Ushort {
17585- init(data: Data) throws {
17586- self = try newJSONDecoder().decode(Ushort.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- ushort: Int? = nil
17602- ) -> Ushort {
17603- return Ushort(
17604- ushort: ushort ?? self.ushort
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
@@ -17628,6 +17628,8 @@ struct Obj6: Codable, Equatable {
1762817628 let obj6Where: Where
1762917629 let obj6While: While
1763017630 let obj6WillSet: WillSet
17631+ let unsigned: Unsigned
17632+ let ushort: Ushort
1763117633 let using: Using
1763217634 let utf8JSONReader: Utf8JSONReader
1763317635 let utf8JSONWriter: Utf8JSONWriter
@@ -17649,6 +17651,8 @@ struct Obj6: Codable, Equatable {
1764917651 case obj6Where = "where"
1765017652 case obj6While = "while"
1765117653 case obj6WillSet = "willSet"
17654+ case unsigned = "unsigned"
17655+ case ushort = "ushort"
1765217656 case using = "using"
1765317657 case utf8JSONReader = "Utf8JsonReader"
1765417658 case utf8JSONWriter = "Utf8JsonWriter"
@@ -17690,6 +17694,8 @@ extension Obj6 {
1769017694 obj6Where: Where? = nil,
1769117695 obj6While: While? = nil,
1769217696 obj6WillSet: WillSet? = nil,
17697+ unsigned: Unsigned? = nil,
17698+ ushort: Ushort? = nil,
1769317699 using: Using? = nil,
1769417700 utf8JSONReader: Utf8JSONReader? = nil,
1769517701 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -17711,6 +17717,8 @@ extension Obj6 {
1771117717 obj6Where: obj6Where ?? self.obj6Where,
1771217718 obj6While: obj6While ?? self.obj6While,
1771317719 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17720+ unsigned: unsigned ?? self.unsigned,
17721+ ushort: ushort ?? self.ushort,
1771417722 using: using ?? self.using,
1771517723 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1771617724 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -17992,6 +18000,106 @@ extension WillSet {
1799218000 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1799318001 // synthesized for types that have collections (such as arrays or dictionaries).
1799418002
18003+// MARK: - Unsigned
18004+struct Unsigned: Codable, Equatable {
18005+ let unsigned: Int
18006+
18007+ enum CodingKeys: String, CodingKey {
18008+ case unsigned = "unsigned"
18009+ }
18010+}
18011+
18012+// MARK: Unsigned convenience initializers and mutators
18013+
18014+extension Unsigned {
18015+ init(data: Data) throws {
18016+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
18017+ }
18018+
18019+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18020+ guard let data = json.data(using: encoding) else {
18021+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18022+ }
18023+ try self.init(data: data)
18024+ }
18025+
18026+ init(fromURL url: URL) throws {
18027+ try self.init(data: try Data(contentsOf: url))
18028+ }
18029+
18030+ func with(
18031+ unsigned: Int? = nil
18032+ ) -> Unsigned {
18033+ return Unsigned(
18034+ unsigned: unsigned ?? self.unsigned
18035+ )
18036+ }
18037+
18038+ func jsonData() throws -> Data {
18039+ return try newJSONEncoder().encode(self)
18040+ }
18041+
18042+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18043+ return String(data: try self.jsonData(), encoding: encoding)
18044+ }
18045+}
18046+
18047+//
18048+// Hashable or Equatable:
18049+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18050+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18051+// synthesized for types that have collections (such as arrays or dictionaries).
18052+
18053+// MARK: - Ushort
18054+struct Ushort: Codable, Equatable {
18055+ let ushort: Int
18056+
18057+ enum CodingKeys: String, CodingKey {
18058+ case ushort = "ushort"
18059+ }
18060+}
18061+
18062+// MARK: Ushort convenience initializers and mutators
18063+
18064+extension Ushort {
18065+ init(data: Data) throws {
18066+ self = try newJSONDecoder().decode(Ushort.self, from: data)
18067+ }
18068+
18069+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18070+ guard let data = json.data(using: encoding) else {
18071+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18072+ }
18073+ try self.init(data: data)
18074+ }
18075+
18076+ init(fromURL url: URL) throws {
18077+ try self.init(data: try Data(contentsOf: url))
18078+ }
18079+
18080+ func with(
18081+ ushort: Int? = nil
18082+ ) -> Ushort {
18083+ return Ushort(
18084+ ushort: ushort ?? self.ushort
18085+ )
18086+ }
18087+
18088+ func jsonData() throws -> Data {
18089+ return try newJSONEncoder().encode(self)
18090+ }
18091+
18092+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18093+ return String(data: try self.jsonData(), encoding: encoding)
18094+ }
18095+}
18096+
18097+//
18098+// Hashable or Equatable:
18099+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18100+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18101+// synthesized for types that have collections (such as arrays or dictionaries).
18102+
1799518103 // MARK: - Using
1799618104 struct Using: Codable, Equatable {
1799718105 let using: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+340 −244
@@ -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
@@ -12563,6 +12563,7 @@ struct Obj5: Codable, Sendable {
1256312563 let primitiveKind: PrimitiveKind
1256412564 let purpleSelf: Obj5Self
1256512565 let purpleTrue: TrueClass
12566+ let select: Select
1256612567 let sendable: SendableClass
1256712568 let serialDescriptor: SerialDescriptor
1256812569 let serialName: SerialName
@@ -12591,6 +12592,7 @@ struct Obj5: Codable, Sendable {
1259112592 let timeOnly: TimeOnly
1259212593 let timeOnlyConverter: TimeOnlyConverter
1259312594 let timeZone: TimeZoneClass
12595+ let toDict: ToDict
1259412596 let toJSON: ToJSON
1259512597 let toString: ToString
1259612598 let topLevel: TopLevelClass
@@ -12606,9 +12608,7 @@ struct Obj5: Codable, Sendable {
1260612608 let undefined: Undefined
1260712609 let union: Union
1260812610 let unsafe: Unsafe
12609- let unsigned: Unsigned
1261012611 let useSerializers: UseSerializers
12611- let ushort: Ushort
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12630,6 +12630,7 @@ struct Obj5: Codable, Sendable {
1263012630 case primitiveKind = "PrimitiveKind"
1263112631 case purpleSelf = "self"
1263212632 case purpleTrue = "true"
12633+ case select = "select"
1263312634 case sendable = "Sendable"
1263412635 case serialDescriptor = "SerialDescriptor"
1263512636 case serialName = "SerialName"
@@ -12658,6 +12659,7 @@ struct Obj5: Codable, Sendable {
1265812659 case timeOnly = "TimeOnly"
1265912660 case timeOnlyConverter = "TimeOnlyConverter"
1266012661 case timeZone = "TimeZone"
12662+ case toDict = "to_dict"
1266112663 case toJSON = "to_json"
1266212664 case toString = "toString"
1266312665 case topLevel = "top_level"
@@ -12673,9 +12675,7 @@ struct Obj5: Codable, Sendable {
1267312675 case undefined = "undefined"
1267412676 case union = "union"
1267512677 case unsafe = "unsafe"
12676- case unsigned = "unsigned"
1267712678 case useSerializers = "UseSerializers"
12678- case ushort = "ushort"
1267912679 }
1268012680 }
1268112681
@@ -12717,6 +12717,7 @@ extension Obj5 {
1271712717 primitiveKind: PrimitiveKind? = nil,
1271812718 purpleSelf: Obj5Self? = nil,
1271912719 purpleTrue: TrueClass? = nil,
12720+ select: Select? = nil,
1272012721 sendable: SendableClass? = nil,
1272112722 serialDescriptor: SerialDescriptor? = nil,
1272212723 serialName: SerialName? = nil,
@@ -12745,6 +12746,7 @@ extension Obj5 {
1274512746 timeOnly: TimeOnly? = nil,
1274612747 timeOnlyConverter: TimeOnlyConverter? = nil,
1274712748 timeZone: TimeZoneClass? = nil,
12749+ toDict: ToDict? = nil,
1274812750 toJSON: ToJSON? = nil,
1274912751 toString: ToString? = nil,
1275012752 topLevel: TopLevelClass? = nil,
@@ -12760,9 +12762,7 @@ extension Obj5 {
1276012762 undefined: Undefined? = nil,
1276112763 union: Union? = nil,
1276212764 unsafe: Unsafe? = nil,
12763- unsigned: Unsigned? = nil,
12764- useSerializers: UseSerializers? = nil,
12765- ushort: Ushort? = nil
12765+ useSerializers: UseSerializers? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12784,6 +12784,7 @@ extension Obj5 {
1278412784 primitiveKind: primitiveKind ?? self.primitiveKind,
1278512785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278612786 purpleTrue: purpleTrue ?? self.purpleTrue,
12787+ select: select ?? self.select,
1278712788 sendable: sendable ?? self.sendable,
1278812789 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1278912790 serialName: serialName ?? self.serialName,
@@ -12812,6 +12813,7 @@ extension Obj5 {
1281212813 timeOnly: timeOnly ?? self.timeOnly,
1281312814 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
1281412815 timeZone: timeZone ?? self.timeZone,
12816+ toDict: toDict ?? self.toDict,
1281512817 toJSON: toJSON ?? self.toJSON,
1281612818 toString: toString ?? self.toString,
1281712819 topLevel: topLevel ?? self.topLevel,
@@ -12827,9 +12829,7 @@ extension Obj5 {
1282712829 undefined: undefined ?? self.undefined,
1282812830 union: union ?? self.union,
1282912831 unsafe: unsafe ?? self.unsafe,
12830- unsigned: unsigned ?? self.unsigned,
12831- useSerializers: useSerializers ?? self.useSerializers,
12832- ushort: ushort ?? self.ushort
12832+ useSerializers: useSerializers ?? self.useSerializers
1283312833 )
1283412834 }
1283512835
@@ -13634,6 +13634,50 @@ extension TrueClass {
1363413634 }
1363513635 }
1363613636
13637+// MARK: - Select
13638+struct Select: Codable, Sendable {
13639+ let select: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case select = "select"
13643+ }
13644+}
13645+
13646+// MARK: Select convenience initializers and mutators
13647+
13648+extension Select {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Select.self, from: data)
13651+ }
13652+
13653+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13654+ guard let data = json.data(using: encoding) else {
13655+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13656+ }
13657+ try self.init(data: data)
13658+ }
13659+
13660+ init(fromURL url: URL) throws {
13661+ try self.init(data: try Data(contentsOf: url))
13662+ }
13663+
13664+ func with(
13665+ select: Int? = nil
13666+ ) -> Select {
13667+ return Select(
13668+ select: select ?? self.select
13669+ )
13670+ }
13671+
13672+ func jsonData() throws -> Data {
13673+ return try newJSONEncoder().encode(self)
13674+ }
13675+
13676+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13677+ return String(data: try self.jsonData(), encoding: encoding)
13678+ }
13679+}
13680+
1363713681 // MARK: - SendableClass
1363813682 struct SendableClass: Codable, Sendable {
1363913683 let sendable: Int
@@ -14866,6 +14910,50 @@ extension TimeZoneClass {
1486614910 }
1486714911 }
1486814912
14913+// MARK: - ToDict
14914+struct ToDict: Codable, Sendable {
14915+ let toDict: Int
14916+
14917+ enum CodingKeys: String, CodingKey {
14918+ case toDict = "to_dict"
14919+ }
14920+}
14921+
14922+// MARK: ToDict convenience initializers and mutators
14923+
14924+extension ToDict {
14925+ init(data: Data) throws {
14926+ self = try newJSONDecoder().decode(ToDict.self, from: data)
14927+ }
14928+
14929+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14930+ guard let data = json.data(using: encoding) else {
14931+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14932+ }
14933+ try self.init(data: data)
14934+ }
14935+
14936+ init(fromURL url: URL) throws {
14937+ try self.init(data: try Data(contentsOf: url))
14938+ }
14939+
14940+ func with(
14941+ toDict: Int? = nil
14942+ ) -> ToDict {
14943+ return ToDict(
14944+ toDict: toDict ?? self.toDict
14945+ )
14946+ }
14947+
14948+ func jsonData() throws -> Data {
14949+ return try newJSONEncoder().encode(self)
14950+ }
14951+
14952+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14953+ return String(data: try self.jsonData(), encoding: encoding)
14954+ }
14955+}
14956+
1486914957 // MARK: - ToJSON
1487014958 struct ToJSON: Codable, Sendable {
1487114959 let toJSON: Int
@@ -15526,50 +15614,6 @@ extension Unsafe {
1552615614 }
1552715615 }
1552815616
15529-// MARK: - Unsigned
15530-struct Unsigned: Codable, Sendable {
15531- let unsigned: Int
15532-
15533- enum CodingKeys: String, CodingKey {
15534- case unsigned = "unsigned"
15535- }
15536-}
15537-
15538-// MARK: Unsigned convenience initializers and mutators
15539-
15540-extension Unsigned {
15541- init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Unsigned.self, from: data)
15543- }
15544-
15545- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15546- guard let data = json.data(using: encoding) else {
15547- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15548- }
15549- try self.init(data: data)
15550- }
15551-
15552- init(fromURL url: URL) throws {
15553- try self.init(data: try Data(contentsOf: url))
15554- }
15555-
15556- func with(
15557- unsigned: Int? = nil
15558- ) -> Unsigned {
15559- return Unsigned(
15560- unsigned: unsigned ?? self.unsigned
15561- )
15562- }
15563-
15564- func jsonData() throws -> Data {
15565- return try newJSONEncoder().encode(self)
15566- }
15567-
15568- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15569- return String(data: try self.jsonData(), encoding: encoding)
15570- }
15571-}
15572-
1557315617 // MARK: - UseSerializers
1557415618 struct UseSerializers: Codable, Sendable {
1557515619 let useSerializers: Int
@@ -15614,50 +15658,6 @@ extension UseSerializers {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Ushort
15618-struct Ushort: Codable, Sendable {
15619- let ushort: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case ushort = "ushort"
15623- }
15624-}
15625-
15626-// MARK: Ushort convenience initializers and mutators
15627-
15628-extension Ushort {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Ushort.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- ushort: Int? = nil
15646- ) -> Ushort {
15647- return Ushort(
15648- ushort: ushort ?? self.ushort
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
@@ -15666,6 +15666,8 @@ struct Obj6: Codable, Sendable {
1566615666 let obj6Where: Where
1566715667 let obj6While: While
1566815668 let obj6WillSet: WillSet
15669+ let unsigned: Unsigned
15670+ let ushort: Ushort
1566915671 let using: Using
1567015672 let utf8JSONReader: Utf8JSONReader
1567115673 let utf8JSONWriter: Utf8JSONWriter
@@ -15687,6 +15689,8 @@ struct Obj6: Codable, Sendable {
1568715689 case obj6Where = "where"
1568815690 case obj6While = "while"
1568915691 case obj6WillSet = "willSet"
15692+ case unsigned = "unsigned"
15693+ case ushort = "ushort"
1569015694 case using = "using"
1569115695 case utf8JSONReader = "Utf8JsonReader"
1569215696 case utf8JSONWriter = "Utf8JsonWriter"
@@ -15728,6 +15732,8 @@ extension Obj6 {
1572815732 obj6Where: Where? = nil,
1572915733 obj6While: While? = nil,
1573015734 obj6WillSet: WillSet? = nil,
15735+ unsigned: Unsigned? = nil,
15736+ ushort: Ushort? = nil,
1573115737 using: Using? = nil,
1573215738 utf8JSONReader: Utf8JSONReader? = nil,
1573315739 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -15749,6 +15755,8 @@ extension Obj6 {
1574915755 obj6Where: obj6Where ?? self.obj6Where,
1575015756 obj6While: obj6While ?? self.obj6While,
1575115757 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15758+ unsigned: unsigned ?? self.unsigned,
15759+ ushort: ushort ?? self.ushort,
1575215760 using: using ?? self.using,
1575315761 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1575415762 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -15994,6 +16002,94 @@ extension WillSet {
1599416002 }
1599516003 }
1599616004
16005+// MARK: - Unsigned
16006+struct Unsigned: Codable, Sendable {
16007+ let unsigned: Int
16008+
16009+ enum CodingKeys: String, CodingKey {
16010+ case unsigned = "unsigned"
16011+ }
16012+}
16013+
16014+// MARK: Unsigned convenience initializers and mutators
16015+
16016+extension Unsigned {
16017+ init(data: Data) throws {
16018+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
16019+ }
16020+
16021+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16022+ guard let data = json.data(using: encoding) else {
16023+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16024+ }
16025+ try self.init(data: data)
16026+ }
16027+
16028+ init(fromURL url: URL) throws {
16029+ try self.init(data: try Data(contentsOf: url))
16030+ }
16031+
16032+ func with(
16033+ unsigned: Int? = nil
16034+ ) -> Unsigned {
16035+ return Unsigned(
16036+ unsigned: unsigned ?? self.unsigned
16037+ )
16038+ }
16039+
16040+ func jsonData() throws -> Data {
16041+ return try newJSONEncoder().encode(self)
16042+ }
16043+
16044+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16045+ return String(data: try self.jsonData(), encoding: encoding)
16046+ }
16047+}
16048+
16049+// MARK: - Ushort
16050+struct Ushort: Codable, Sendable {
16051+ let ushort: Int
16052+
16053+ enum CodingKeys: String, CodingKey {
16054+ case ushort = "ushort"
16055+ }
16056+}
16057+
16058+// MARK: Ushort convenience initializers and mutators
16059+
16060+extension Ushort {
16061+ init(data: Data) throws {
16062+ self = try newJSONDecoder().decode(Ushort.self, from: data)
16063+ }
16064+
16065+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16066+ guard let data = json.data(using: encoding) else {
16067+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16068+ }
16069+ try self.init(data: data)
16070+ }
16071+
16072+ init(fromURL url: URL) throws {
16073+ try self.init(data: try Data(contentsOf: url))
16074+ }
16075+
16076+ func with(
16077+ ushort: Int? = nil
16078+ ) -> Ushort {
16079+ return Ushort(
16080+ ushort: ushort ?? self.ushort
16081+ )
16082+ }
16083+
16084+ func jsonData() throws -> Data {
16085+ return try newJSONEncoder().encode(self)
16086+ }
16087+
16088+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16089+ return String(data: try self.jsonData(), encoding: encoding)
16090+ }
16091+}
16092+
1599716093 // MARK: - Using
1599816094 struct Using: Codable, Sendable {
1599916095 let using: Int
Mtypescript-effect-schemadefault / TopLevel.ts+35 −25
@@ -79,8 +79,18 @@ export class Using extends S.Class<Using>("Using")({
7979 "using": S.Int,
8080 }) {}
8181
82+export class Ushort extends S.Class<Ushort>("Ushort")({
83+ "ushort": S.Int,
84+}) {}
85+
86+export class Unsigned extends S.Class<Unsigned>("Unsigned")({
87+ "unsigned": S.Int,
88+}) {}
89+
8290 export class Obj6 extends S.Class<Obj6>("Obj6")({
8391 "dummy": S.Int,
92+ "unsigned": Unsigned,
93+ "ushort": Ushort,
8494 "using": Using,
8595 "Utf8JsonReader": Utf8JsonReader,
8696 "Utf8JsonWriter": Utf8JsonWriter,
@@ -101,18 +111,10 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
101111 "yield": Yield,
102112 }) {}
103113
104-export class Ushort extends S.Class<Ushort>("Ushort")({
105- "ushort": S.Int,
106-}) {}
107-
108114 export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({
109115 "UseSerializers": S.Int,
110116 }) {}
111117
112-export class Unsigned extends S.Class<Unsigned>("Unsigned")({
113- "unsigned": S.Int,
114-}) {}
115-
116118 export class Unsafe extends S.Class<Unsafe>("Unsafe")({
117119 "unsafe": S.Int,
118120 }) {}
@@ -190,6 +192,10 @@ export class ToJson extends S.Class<ToJson>("ToJson")({
190192 "to_json": S.Int,
191193 }) {}
192194
195+export class ToDict extends S.Class<ToDict>("ToDict")({
196+ "to_dict": S.Int,
197+}) {}
198+
193199 export class TimeZone extends S.Class<TimeZone>("TimeZone")({
194200 "TimeZone": S.Int,
195201 }) {}
@@ -338,6 +344,10 @@ export class Self extends S.Class<Self>("Self")({
338344 "Self": S.Int,
339345 }) {}
340346
347+export class Select extends S.Class<Select>("Select")({
348+ "select": S.Int,
349+}) {}
350+
341351 export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
342352 "PrimitiveKind": S.Int,
343353 }) {}
@@ -365,6 +375,7 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
365375 "true": TrueClass,
366376 "type": TypeClass,
367377 "PrimitiveKind": PrimitiveKind,
378+ "select": Select,
368379 "Self": Self,
369380 "Sendable": Sendable,
370381 "SerialDescriptor": SerialDescriptor,
@@ -402,6 +413,7 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
402413 "TimeOnly": TimeOnly,
403414 "TimeOnlyConverter": TimeOnlyConverter,
404415 "TimeZone": TimeZone,
416+ "to_dict": ToDict,
405417 "to_json": ToJson,
406418 "toString": ToString,
407419 "top_level": TopLevelClass,
@@ -421,16 +433,10 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
421433 "union": Union,
422434 "unowned": Unowned,
423435 "unsafe": Unsafe,
424- "unsigned": Unsigned,
425436 "UseSerializers": UseSerializers,
426- "ushort": Ushort,
427437 }) {}
428438 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
429439
430-export class Select extends S.Class<Select>("Select")({
431- "select": S.Int,
432-}) {}
433-
434440 export class Sel extends S.Class<Sel>("Sel")({
435441 "SEL": S.Int,
436442 }) {}
@@ -679,6 +685,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({
679685 "nonatomic": S.Int,
680686 }) {}
681687
688+export class Noexcept extends S.Class<Noexcept>("Noexcept")({
689+ "noexcept": S.Int,
690+}) {}
691+
682692 export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
683693 "noSuchMethod": S.Int,
684694 }) {}
@@ -686,6 +696,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
686696 export class Obj4 extends S.Class<Obj4>("Obj4")({
687697 "dummy": S.Int,
688698 "noSuchMethod": NoSuchMethod,
699+ "noexcept": Noexcept,
689700 "nonatomic": Nonatomic,
690701 "None": None,
691702 "nonlocal": Nonlocal,
@@ -748,11 +759,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
748759 "sbyte": Sbyte,
749760 "sealed": Sealed,
750761 "SEL": Sel,
751- "select": Select,
752-}) {}
753-
754-export class Noexcept extends S.Class<Noexcept>("Noexcept")({
755- "noexcept": S.Int,
756762 }) {}
757763
758764 export class No extends S.Class<No>("No")({
@@ -1007,8 +1013,13 @@ export class Guard extends S.Class<Guard>("Guard")({
10071013 "guard": S.Int,
10081014 }) {}
10091015
1016+export class Goto extends S.Class<Goto>("Goto")({
1017+ "goto": S.Int,
1018+}) {}
1019+
10101020 export class Obj3 extends S.Class<Obj3>("Obj3")({
10111021 "dummy": S.Int,
1022+ "goto": Goto,
10121023 "guard": Guard,
10131024 "hasOwnProperty": HasOwnProperty,
10141025 "hashCode": HashCode,
@@ -1072,17 +1083,12 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10721083 "newtonsoft": Newtonsoft,
10731084 "nil": Nil,
10741085 "NO": No,
1075- "noexcept": Noexcept,
10761086 }) {}
10771087
10781088 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
10791089 "false": S.Int,
10801090 }) {}
10811091
1082-export class Goto extends S.Class<Goto>("Goto")({
1083- "goto": S.Int,
1084-}) {}
1085-
10861092 export class Go extends S.Class<Go>("Go")({
10871093 "go": S.Int,
10881094 }) {}
@@ -1107,6 +1113,10 @@ export class FromJson extends S.Class<FromJson>("FromJson")({
11071113 "from_json": S.Int,
11081114 }) {}
11091115
1116+export class FromDict extends S.Class<FromDict>("FromDict")({
1117+ "from_dict": S.Int,
1118+}) {}
1119+
11101120 export class From extends S.Class<From>("From")({
11111121 "from": S.Int,
11121122 }) {}
@@ -1389,13 +1399,13 @@ export class Obj2 extends S.Class<Obj2>("Obj2")({
13891399 "FormatException": FormatException,
13901400 "friend": Friend,
13911401 "from": From,
1402+ "from_dict": FromDict,
13921403 "from_json": FromJson,
13931404 "func": Func,
13941405 "function": Function,
13951406 "get": Get,
13961407 "global": Global,
13971408 "go": Go,
1398- "goto": Goto,
13991409 "false": FalseClass,
14001410 }) {}
Mtypescript-zoddefault / TopLevel.ts+37 −25
@@ -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 KSerializerSchema = z.object({
12911291 "KSerializer": z.number().int(),
12921292 });
@@ -1312,6 +1312,11 @@ export const PrimitiveKindSchema = z.object({
13121312 });
13131313 export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
13141314
1315+export const SelectSchema = z.object({
1316+ "select": z.number().int(),
1317+});
1318+export type Select = z.infer<typeof SelectSchema>;
1319+
13151320 export const SelfSchema = z.object({
13161321 "Self": z.number().int(),
13171322 });
@@ -1497,6 +1502,11 @@ export const TimeZoneSchema = z.object({
14971502 });
14981503 export type TimeZone = z.infer<typeof TimeZoneSchema>;
14991504
1505+export const ToDictSchema = z.object({
1506+ "to_dict": z.number().int(),
1507+});
1508+export type ToDict = z.infer<typeof ToDictSchema>;
1509+
15001510 export const ToJsonSchema = z.object({
15011511 "to_json": z.number().int(),
15021512 });
@@ -1592,16 +1602,16 @@ export const UnsafeSchema = z.object({
15921602 });
15931603 export type Unsafe = z.infer<typeof UnsafeSchema>;
15941604
1595-export const UnsignedSchema = z.object({
1596- "unsigned": z.number().int(),
1597-});
1598-export type Unsigned = z.infer<typeof UnsignedSchema>;
1599-
16001605 export const UseSerializersSchema = z.object({
16011606 "UseSerializers": z.number().int(),
16021607 });
16031608 export type UseSerializers = z.infer<typeof UseSerializersSchema>;
16041609
1610+export const UnsignedSchema = z.object({
1611+ "unsigned": z.number().int(),
1612+});
1613+export type Unsigned = z.infer<typeof UnsignedSchema>;
1614+
16051615 export const UshortSchema = z.object({
16061616 "ushort": z.number().int(),
16071617 });
@@ -1824,19 +1834,20 @@ export const Obj2Schema = z.object({
18241834 "FormatException": FormatExceptionSchema,
18251835 "friend": FriendSchema,
18261836 "from": FromSchema,
1837+ "from_dict": FromDictSchema,
18271838 "from_json": FromJsonSchema,
18281839 "func": FuncSchema,
18291840 "function": FunctionSchema,
18301841 "get": GetSchema,
18311842 "global": GlobalSchema,
18321843 "go": GoSchema,
1833- "goto": GotoSchema,
18341844 "false": FalseClassSchema,
18351845 });
18361846 export type Obj2 = z.infer<typeof Obj2Schema>;
18371847
18381848 export const Obj3Schema = z.object({
18391849 "dummy": z.number().int(),
1850+ "goto": GotoSchema,
18401851 "guard": GuardSchema,
18411852 "hasOwnProperty": HasOwnPropertySchema,
18421853 "hashCode": HashCodeSchema,
@@ -1900,13 +1911,13 @@ export const Obj3Schema = z.object({
19001911 "newtonsoft": NewtonsoftSchema,
19011912 "nil": NilSchema,
19021913 "NO": NoSchema,
1903- "noexcept": NoexceptSchema,
19041914 });
19051915 export type Obj3 = z.infer<typeof Obj3Schema>;
19061916
19071917 export const Obj4Schema = z.object({
19081918 "dummy": z.number().int(),
19091919 "noSuchMethod": NoSuchMethodSchema,
1920+ "noexcept": NoexceptSchema,
19101921 "nonatomic": NonatomicSchema,
19111922 "None": NoneSchema,
19121923 "nonlocal": NonlocalSchema,
@@ -1969,7 +1980,6 @@ export const Obj4Schema = z.object({
19691980 "sbyte": SbyteSchema,
19701981 "sealed": SealedSchema,
19711982 "SEL": SelSchema,
1972- "select": SelectSchema,
19731983 });
19741984 export type Obj4 = z.infer<typeof Obj4Schema>;
19751985
@@ -1980,6 +1990,7 @@ export const Obj5Schema = z.object({
19801990 "true": TrueClassSchema,
19811991 "type": TypeClassSchema,
19821992 "PrimitiveKind": PrimitiveKindSchema,
1993+ "select": SelectSchema,
19831994 "Self": SelfSchema,
19841995 "Sendable": SendableSchema,
19851996 "SerialDescriptor": SerialDescriptorSchema,
@@ -2017,6 +2028,7 @@ export const Obj5Schema = z.object({
20172028 "TimeOnly": TimeOnlySchema,
20182029 "TimeOnlyConverter": TimeOnlyConverterSchema,
20192030 "TimeZone": TimeZoneSchema,
2031+ "to_dict": ToDictSchema,
20202032 "to_json": ToJsonSchema,
20212033 "toString": ToStringSchema,
20222034 "top_level": TopLevelClassSchema,
@@ -2036,14 +2048,14 @@ export const Obj5Schema = z.object({
20362048 "union": UnionSchema,
20372049 "unowned": UnownedSchema,
20382050 "unsafe": UnsafeSchema,
2039- "unsigned": UnsignedSchema,
20402051 "UseSerializers": UseSerializersSchema,
2041- "ushort": UshortSchema,
20422052 });
20432053 export type Obj5 = z.infer<typeof Obj5Schema>;
20442054
20452055 export const Obj6Schema = z.object({
20462056 "dummy": z.number().int(),
2057+ "unsigned": UnsignedSchema,
2058+ "ushort": UshortSchema,
20472059 "using": UsingSchema,
20482060 "Utf8JsonReader": Utf8JsonReaderSchema,
20492061 "Utf8JsonWriter": Utf8JsonWriterSchema,
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 KSerializer: KSerializer;
13201320 PrimitiveKind: PrimitiveKind;
@@ -1335,6 +1335,7 @@ export interface Obj5 {
13351335 Type: Type;
13361336 UseSerializers: UseSerializers;
13371337 dummy: number;
1338+ select: Select;
13381339 self: SelfClass;
13391340 serialize: Serialize;
13401341 set: Set;
@@ -1361,6 +1362,7 @@ export interface Obj5 {
13611362 throw: Throw;
13621363 throws: Throws;
13631364 toString: ToString;
1365+ to_dict: ToDict;
13641366 to_json: ToJSON;
13651367 top_level: TopLevelClass;
13661368 transient: Transient;
@@ -1379,8 +1381,6 @@ export interface Obj5 {
13791381 union: Union;
13801382 unowned: Unowned;
13811383 unsafe: Unsafe;
1382- unsigned: Unsigned;
1383- ushort: Ushort;
13841384 }
13851385
13861386 export interface KSerializer {
@@ -1455,6 +1455,10 @@ export interface UseSerializers {
14551455 UseSerializers: number;
14561456 }
14571457
1458+export interface Select {
1459+ select: number;
1460+}
1461+
14581462 export interface SelfClass {
14591463 self: number;
14601464 }
@@ -1559,6 +1563,10 @@ export interface ToString {
15591563 toString: number;
15601564 }
15611565
1566+export interface ToDict {
1567+ to_dict: number;
1568+}
1569+
15621570 export interface ToJSON {
15631571 to_json: number;
15641572 }
@@ -1631,20 +1639,14 @@ export interface Unsafe {
16311639 unsafe: number;
16321640 }
16331641
1634-export interface Unsigned {
1635- unsigned: number;
1636-}
1637-
1638-export interface Ushort {
1639- ushort: number;
1640-}
1641-
16421642 export interface Obj6 {
16431643 UUID: UUID;
16441644 Utf8JsonReader: Utf8JSONReader;
16451645 Utf8JsonWriter: Utf8JSONWriter;
16461646 YES: Yes;
16471647 dummy: number;
1648+ unsigned: Unsigned;
1649+ ushort: Ushort;
16481650 using: Using;
16491651 var: Var;
16501652 virtual: Virtual;
@@ -1677,6 +1679,14 @@ export interface Yes {
16771679 YES: number;
16781680 }
16791681
1682+export interface Unsigned {
1683+ unsigned: number;
1684+}
1685+
1686+export interface Ushort {
1687+ ushort: number;
1688+}
1689+
16801690 export interface Using {
16811691 using: number;
16821692 }
@@ -2248,13 +2258,13 @@ const typeMap: any = {
22482258 { json: "foreach", js: "foreach", typ: r("Foreach") },
22492259 { json: "friend", js: "friend", typ: r("Friend") },
22502260 { json: "from", js: "from", typ: r("From") },
2261+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22512262 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22522263 { json: "func", js: "func", typ: r("Func") },
22532264 { json: "function", js: "function", typ: r("Function") },
22542265 { json: "get", js: "get", typ: r("Get") },
22552266 { json: "global", js: "global", typ: r("Global") },
22562267 { json: "go", js: "go", typ: r("Go") },
2257- { json: "goto", js: "goto", typ: r("Goto") },
22582268 ], false),
22592269 "DateFormatter": o([
22602270 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2427,6 +2437,9 @@ const typeMap: any = {
24272437 "From": o([
24282438 { json: "from", js: "from", typ: i(0) },
24292439 ], false),
2440+ "FromDict": o([
2441+ { json: "from_dict", js: "from_dict", typ: i(0) },
2442+ ], false),
24302443 "FromJSON": o([
24312444 { json: "from_json", js: "from_json", typ: i(0) },
24322445 ], false),
@@ -2445,9 +2458,6 @@ const typeMap: any = {
24452458 "Go": o([
24462459 { json: "go", js: "go", typ: i(0) },
24472460 ], false),
2448- "Goto": o([
2449- { json: "goto", js: "goto", typ: i(0) },
2450- ], false),
24512461 "Obj3": o([
24522462 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24532463 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2468,6 +2478,7 @@ const typeMap: any = {
24682478 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24692479 { json: "NO", js: "NO", typ: r("No") },
24702480 { json: "dummy", js: "dummy", typ: i(0) },
2481+ { json: "goto", js: "goto", typ: r("Goto") },
24712482 { json: "guard", js: "guard", typ: r("Guard") },
24722483 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24732484 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2513,7 +2524,6 @@ const typeMap: any = {
25132524 { json: "new", js: "new", typ: r("New") },
25142525 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25152526 { json: "nil", js: "nil", typ: r("Nil") },
2516- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25172527 ], false),
25182528 "Hashable": o([
25192529 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2569,6 +2579,9 @@ const typeMap: any = {
25692579 "No": o([
25702580 { json: "NO", js: "NO", typ: i(0) },
25712581 ], false),
2582+ "Goto": o([
2583+ { json: "goto", js: "goto", typ: i(0) },
2584+ ], false),
25722585 "Guard": o([
25732586 { json: "guard", js: "guard", typ: i(0) },
25742587 ], false),
@@ -2704,9 +2717,6 @@ const typeMap: any = {
27042717 "Nil": o([
27052718 { json: "nil", js: "nil", typ: i(0) },
27062719 ], false),
2707- "Noexcept": o([
2708- { json: "noexcept", js: "noexcept", typ: i(0) },
2709- ], false),
27102720 "Obj4": o([
27112721 { json: "NSError", js: "NSError", typ: r("NSError") },
27122722 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2719,6 +2729,7 @@ const typeMap: any = {
27192729 { json: "SEL", js: "SEL", typ: r("Sel") },
27202730 { json: "dummy", js: "dummy", typ: i(0) },
27212731 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2732+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27222733 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27232734 { json: "none", js: "none", typ: r("NoneClass") },
27242735 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2772,7 +2783,6 @@ const typeMap: any = {
27722783 { json: "s", js: "s", typ: r("S") },
27732784 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27742785 { json: "sealed", js: "sealed", typ: r("Sealed") },
2775- { json: "select", js: "select", typ: r("Select") },
27762786 ], false),
27772787 "NSError": o([
27782788 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2804,6 +2814,9 @@ const typeMap: any = {
28042814 "NoSuchMethod": o([
28052815 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28062816 ], false),
2817+ "Noexcept": o([
2818+ { json: "noexcept", js: "noexcept", typ: i(0) },
2819+ ], false),
28072820 "Nonatomic": o([
28082821 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28092822 ], false),
@@ -2963,9 +2976,6 @@ const typeMap: any = {
29632976 "Sealed": o([
29642977 { json: "sealed", js: "sealed", typ: i(0) },
29652978 ], false),
2966- "Select": o([
2967- { json: "select", js: "select", typ: i(0) },
2968- ], false),
29692979 "Obj5": o([
29702980 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29712981 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -2986,6 +2996,7 @@ const typeMap: any = {
29862996 { json: "Type", js: "Type", typ: r("Type") },
29872997 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29882998 { json: "dummy", js: "dummy", typ: i(0) },
2999+ { json: "select", js: "select", typ: r("Select") },
29893000 { json: "self", js: "self", typ: r("SelfClass") },
29903001 { json: "serialize", js: "serialize", typ: r("Serialize") },
29913002 { json: "set", js: "set", typ: r("Set") },
@@ -3012,6 +3023,7 @@ const typeMap: any = {
30123023 { json: "throw", js: "throw", typ: r("Throw") },
30133024 { json: "throws", js: "throws", typ: r("Throws") },
30143025 { json: "toString", js: "toString", typ: r("ToString") },
3026+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
30153027 { json: "to_json", js: "to_json", typ: r("ToJSON") },
30163028 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
30173029 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3030,8 +3042,6 @@ const typeMap: any = {
30303042 { json: "union", js: "union", typ: r("Union") },
30313043 { json: "unowned", js: "unowned", typ: r("Unowned") },
30323044 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3033- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3034- { json: "ushort", js: "ushort", typ: r("Ushort") },
30353045 ], false),
30363046 "KSerializer": o([
30373047 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3087,6 +3097,9 @@ const typeMap: any = {
30873097 "UseSerializers": o([
30883098 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30893099 ], false),
3100+ "Select": o([
3101+ { json: "select", js: "select", typ: i(0) },
3102+ ], false),
30903103 "SelfClass": o([
30913104 { json: "self", js: "self", typ: i(0) },
30923105 ], false),
@@ -3165,6 +3178,9 @@ const typeMap: any = {
31653178 "ToString": o([
31663179 { json: "toString", js: "toString", typ: i(0) },
31673180 ], false),
3181+ "ToDict": o([
3182+ { json: "to_dict", js: "to_dict", typ: i(0) },
3183+ ], false),
31683184 "ToJSON": o([
31693185 { json: "to_json", js: "to_json", typ: i(0) },
31703186 ], false),
@@ -3219,18 +3235,14 @@ const typeMap: any = {
32193235 "Unsafe": o([
32203236 { json: "unsafe", js: "unsafe", typ: i(0) },
32213237 ], false),
3222- "Unsigned": o([
3223- { json: "unsigned", js: "unsigned", typ: i(0) },
3224- ], false),
3225- "Ushort": o([
3226- { json: "ushort", js: "ushort", typ: i(0) },
3227- ], false),
32283238 "Obj6": o([
32293239 { json: "UUID", js: "UUID", typ: r("UUID") },
32303240 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32313241 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32323242 { json: "YES", js: "YES", typ: r("Yes") },
32333243 { json: "dummy", js: "dummy", typ: i(0) },
3244+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3245+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32343246 { json: "using", js: "using", typ: r("Using") },
32353247 { json: "var", js: "var", typ: r("Var") },
32363248 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3258,6 +3270,12 @@ const typeMap: any = {
32583270 "Yes": o([
32593271 { json: "YES", js: "YES", typ: i(0) },
32603272 ], false),
3273+ "Unsigned": o([
3274+ { json: "unsigned", js: "unsigned", typ: i(0) },
3275+ ], false),
3276+ "Ushort": o([
3277+ { json: "ushort", js: "ushort", typ: i(0) },
3278+ ], false),
32613279 "Using": o([
32623280 { json: "using", js: "using", typ: i(0) },
32633281 ], 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 KSerializer: KSerializer;
13201320 PrimitiveKind: PrimitiveKind;
@@ -1335,6 +1335,7 @@ export type Obj5 = {
13351335 Type: Type;
13361336 UseSerializers: UseSerializers;
13371337 dummy: number;
1338+ select: Select;
13381339 self: SelfClass;
13391340 serialize: Serialize;
13401341 set: Set;
@@ -1361,6 +1362,7 @@ export type Obj5 = {
13611362 throw: Throw;
13621363 throws: Throws;
13631364 toString: ToString;
1365+ to_dict: ToDict;
13641366 to_json: ToJSON;
13651367 top_level: TopLevelClass;
13661368 transient: Transient;
@@ -1379,8 +1381,6 @@ export type Obj5 = {
13791381 union: Union;
13801382 unowned: Unowned;
13811383 unsafe: Unsafe;
1382- unsigned: Unsigned;
1383- ushort: Ushort;
13841384 }
13851385
13861386 export type KSerializer = {
@@ -1455,6 +1455,10 @@ export type UseSerializers = {
14551455 UseSerializers: number;
14561456 }
14571457
1458+export type Select = {
1459+ select: number;
1460+}
1461+
14581462 export type SelfClass = {
14591463 self: number;
14601464 }
@@ -1559,6 +1563,10 @@ export type ToString = {
15591563 toString: number;
15601564 }
15611565
1566+export type ToDict = {
1567+ to_dict: number;
1568+}
1569+
15621570 export type ToJSON = {
15631571 to_json: number;
15641572 }
@@ -1631,20 +1639,14 @@ export type Unsafe = {
16311639 unsafe: number;
16321640 }
16331641
1634-export type Unsigned = {
1635- unsigned: number;
1636-}
1637-
1638-export type Ushort = {
1639- ushort: number;
1640-}
1641-
16421642 export type Obj6 = {
16431643 UUID: UUID;
16441644 Utf8JsonReader: Utf8JSONReader;
16451645 Utf8JsonWriter: Utf8JSONWriter;
16461646 YES: Yes;
16471647 dummy: number;
1648+ unsigned: Unsigned;
1649+ ushort: Ushort;
16481650 using: Using;
16491651 var: Var;
16501652 virtual: Virtual;
@@ -1677,6 +1679,14 @@ export type Yes = {
16771679 YES: number;
16781680 }
16791681
1682+export type Unsigned = {
1683+ unsigned: number;
1684+}
1685+
1686+export type Ushort = {
1687+ ushort: number;
1688+}
1689+
16801690 export type Using = {
16811691 using: number;
16821692 }
@@ -2248,13 +2258,13 @@ const typeMap: any = {
22482258 { json: "foreach", js: "foreach", typ: r("Foreach") },
22492259 { json: "friend", js: "friend", typ: r("Friend") },
22502260 { json: "from", js: "from", typ: r("From") },
2261+ { json: "from_dict", js: "from_dict", typ: r("FromDict") },
22512262 { json: "from_json", js: "from_json", typ: r("FromJSON") },
22522263 { json: "func", js: "func", typ: r("Func") },
22532264 { json: "function", js: "function", typ: r("Function") },
22542265 { json: "get", js: "get", typ: r("Get") },
22552266 { json: "global", js: "global", typ: r("Global") },
22562267 { json: "go", js: "go", typ: r("Go") },
2257- { json: "goto", js: "goto", typ: r("Goto") },
22582268 ], false),
22592269 "DateFormatter": o([
22602270 { json: "DateFormatter", js: "DateFormatter", typ: i(0) },
@@ -2427,6 +2437,9 @@ const typeMap: any = {
24272437 "From": o([
24282438 { json: "from", js: "from", typ: i(0) },
24292439 ], false),
2440+ "FromDict": o([
2441+ { json: "from_dict", js: "from_dict", typ: i(0) },
2442+ ], false),
24302443 "FromJSON": o([
24312444 { json: "from_json", js: "from_json", typ: i(0) },
24322445 ], false),
@@ -2445,9 +2458,6 @@ const typeMap: any = {
24452458 "Go": o([
24462459 { json: "go", js: "go", typ: i(0) },
24472460 ], false),
2448- "Goto": o([
2449- { json: "goto", js: "goto", typ: i(0) },
2450- ], false),
24512461 "Obj3": o([
24522462 { json: "Hashable", js: "Hashable", typ: r("Hashable") },
24532463 { json: "Hasher", js: "Hasher", typ: r("Hasher") },
@@ -2468,6 +2478,7 @@ const typeMap: any = {
24682478 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24692479 { json: "NO", js: "NO", typ: r("No") },
24702480 { json: "dummy", js: "dummy", typ: i(0) },
2481+ { json: "goto", js: "goto", typ: r("Goto") },
24712482 { json: "guard", js: "guard", typ: r("Guard") },
24722483 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
24732484 { json: "hashCode", js: "hashCode", typ: r("HashCode") },
@@ -2513,7 +2524,6 @@ const typeMap: any = {
25132524 { json: "new", js: "new", typ: r("New") },
25142525 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25152526 { json: "nil", js: "nil", typ: r("Nil") },
2516- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25172527 ], false),
25182528 "Hashable": o([
25192529 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2569,6 +2579,9 @@ const typeMap: any = {
25692579 "No": o([
25702580 { json: "NO", js: "NO", typ: i(0) },
25712581 ], false),
2582+ "Goto": o([
2583+ { json: "goto", js: "goto", typ: i(0) },
2584+ ], false),
25722585 "Guard": o([
25732586 { json: "guard", js: "guard", typ: i(0) },
25742587 ], false),
@@ -2704,9 +2717,6 @@ const typeMap: any = {
27042717 "Nil": o([
27052718 { json: "nil", js: "nil", typ: i(0) },
27062719 ], false),
2707- "Noexcept": o([
2708- { json: "noexcept", js: "noexcept", typ: i(0) },
2709- ], false),
27102720 "Obj4": o([
27112721 { json: "NSError", js: "NSError", typ: r("NSError") },
27122722 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2719,6 +2729,7 @@ const typeMap: any = {
27192729 { json: "SEL", js: "SEL", typ: r("Sel") },
27202730 { json: "dummy", js: "dummy", typ: i(0) },
27212731 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2732+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27222733 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27232734 { json: "none", js: "none", typ: r("NoneClass") },
27242735 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2772,7 +2783,6 @@ const typeMap: any = {
27722783 { json: "s", js: "s", typ: r("S") },
27732784 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
27742785 { json: "sealed", js: "sealed", typ: r("Sealed") },
2775- { json: "select", js: "select", typ: r("Select") },
27762786 ], false),
27772787 "NSError": o([
27782788 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2804,6 +2814,9 @@ const typeMap: any = {
28042814 "NoSuchMethod": o([
28052815 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28062816 ], false),
2817+ "Noexcept": o([
2818+ { json: "noexcept", js: "noexcept", typ: i(0) },
2819+ ], false),
28072820 "Nonatomic": o([
28082821 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28092822 ], false),
@@ -2963,9 +2976,6 @@ const typeMap: any = {
29632976 "Sealed": o([
29642977 { json: "sealed", js: "sealed", typ: i(0) },
29652978 ], false),
2966- "Select": o([
2967- { json: "select", js: "select", typ: i(0) },
2968- ], false),
29692979 "Obj5": o([
29702980 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29712981 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -2986,6 +2996,7 @@ const typeMap: any = {
29862996 { json: "Type", js: "Type", typ: r("Type") },
29872997 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29882998 { json: "dummy", js: "dummy", typ: i(0) },
2999+ { json: "select", js: "select", typ: r("Select") },
29893000 { json: "self", js: "self", typ: r("SelfClass") },
29903001 { json: "serialize", js: "serialize", typ: r("Serialize") },
29913002 { json: "set", js: "set", typ: r("Set") },
@@ -3012,6 +3023,7 @@ const typeMap: any = {
30123023 { json: "throw", js: "throw", typ: r("Throw") },
30133024 { json: "throws", js: "throws", typ: r("Throws") },
30143025 { json: "toString", js: "toString", typ: r("ToString") },
3026+ { json: "to_dict", js: "to_dict", typ: r("ToDict") },
30153027 { json: "to_json", js: "to_json", typ: r("ToJSON") },
30163028 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
30173029 { json: "transient", js: "transient", typ: r("Transient") },
@@ -3030,8 +3042,6 @@ const typeMap: any = {
30303042 { json: "union", js: "union", typ: r("Union") },
30313043 { json: "unowned", js: "unowned", typ: r("Unowned") },
30323044 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3033- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3034- { json: "ushort", js: "ushort", typ: r("Ushort") },
30353045 ], false),
30363046 "KSerializer": o([
30373047 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3087,6 +3097,9 @@ const typeMap: any = {
30873097 "UseSerializers": o([
30883098 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30893099 ], false),
3100+ "Select": o([
3101+ { json: "select", js: "select", typ: i(0) },
3102+ ], false),
30903103 "SelfClass": o([
30913104 { json: "self", js: "self", typ: i(0) },
30923105 ], false),
@@ -3165,6 +3178,9 @@ const typeMap: any = {
31653178 "ToString": o([
31663179 { json: "toString", js: "toString", typ: i(0) },
31673180 ], false),
3181+ "ToDict": o([
3182+ { json: "to_dict", js: "to_dict", typ: i(0) },
3183+ ], false),
31683184 "ToJSON": o([
31693185 { json: "to_json", js: "to_json", typ: i(0) },
31703186 ], false),
@@ -3219,18 +3235,14 @@ const typeMap: any = {
32193235 "Unsafe": o([
32203236 { json: "unsafe", js: "unsafe", typ: i(0) },
32213237 ], false),
3222- "Unsigned": o([
3223- { json: "unsigned", js: "unsigned", typ: i(0) },
3224- ], false),
3225- "Ushort": o([
3226- { json: "ushort", js: "ushort", typ: i(0) },
3227- ], false),
32283238 "Obj6": o([
32293239 { json: "UUID", js: "UUID", typ: r("UUID") },
32303240 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32313241 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32323242 { json: "YES", js: "YES", typ: r("Yes") },
32333243 { json: "dummy", js: "dummy", typ: i(0) },
3244+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3245+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32343246 { json: "using", js: "using", typ: r("Using") },
32353247 { json: "var", js: "var", typ: r("Var") },
32363248 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3258,6 +3270,12 @@ const typeMap: any = {
32583270 "Yes": o([
32593271 { json: "YES", js: "YES", typ: i(0) },
32603272 ], false),
3273+ "Unsigned": o([
3274+ { json: "unsigned", js: "unsigned", typ: i(0) },
3275+ ], false),
3276+ "Ushort": o([
3277+ { json: "ushort", js: "ushort", typ: i(0) },
3278+ ], false),
32613279 "Using": o([
32623280 { json: "using", js: "using", typ: i(0) },
32633281 ], 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;
@@ -307,6 +308,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
307308 else if (!strcmp(cJSON_GetStringValue(j), "to_json")) x = ENUM_TO_JSON;
308309 else if (!strcmp(cJSON_GetStringValue(j), "top_level")) x = ENUM_TOP_LEVEL;
309310 else if (!strcmp(cJSON_GetStringValue(j), "toString")) x = ENUM_TO_STRING;
311+ else if (!strcmp(cJSON_GetStringValue(j), "to_dict")) x = ENUM_TO_DICT;
310312 else if (!strcmp(cJSON_GetStringValue(j), "transient")) x = ENUM_TRANSIENT;
311313 else if (!strcmp(cJSON_GetStringValue(j), "True")) x = ENUM_TRUE;
312314 else if (!strcmp(cJSON_GetStringValue(j), "true")) x = ENUM_ENUM_TRUE;
@@ -475,6 +477,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
475477 case ENUM_FORMAT_EXCEPTION: j = cJSON_CreateString("FormatException"); break;
476478 case ENUM_FRIEND: j = cJSON_CreateString("friend"); break;
477479 case ENUM_FROM: j = cJSON_CreateString("from"); break;
480+ case ENUM_FROM_DICT: j = cJSON_CreateString("from_dict"); break;
478481 case ENUM_FROM_JSON: j = cJSON_CreateString("from_json"); break;
479482 case ENUM_FUNC: j = cJSON_CreateString("func"); break;
480483 case ENUM_FUNCTION: j = cJSON_CreateString("function"); break;
@@ -653,6 +656,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
653656 case ENUM_TO_JSON: j = cJSON_CreateString("to_json"); break;
654657 case ENUM_TOP_LEVEL: j = cJSON_CreateString("top_level"); break;
655658 case ENUM_TO_STRING: j = cJSON_CreateString("toString"); break;
659+ case ENUM_TO_DICT: j = cJSON_CreateString("to_dict"); break;
656660 case ENUM_TRANSIENT: j = cJSON_CreateString("transient"); break;
657661 case ENUM_TRUE: j = cJSON_CreateString("True"); break;
658662 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,
@@ -348,6 +349,7 @@ enum Enum {
348349 ENUM_TO_JSON,
349350 ENUM_TOP_LEVEL,
350351 ENUM_TO_STRING,
352+ ENUM_TO_DICT,
351353 ENUM_TRANSIENT,
352354 ENUM_TRUE,
353355 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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},
@@ -425,6 +426,7 @@ namespace quicktype {
425426 {"to_json", Enum::TO_JSON},
426427 {"top_level", Enum::TOP_LEVEL},
427428 {"toString", Enum::TO_STRING},
429+ {"to_dict", Enum::TO_DICT},
428430 {"transient", Enum::TRANSIENT},
429431 {"True", Enum::TRUE},
430432 {"true", Enum::ENUM_TRUE},
@@ -596,6 +598,7 @@ namespace quicktype {
596598 case Enum::FORMAT_EXCEPTION: j = "FormatException"; break;
597599 case Enum::FRIEND: j = "friend"; break;
598600 case Enum::FROM: j = "from"; break;
601+ case Enum::FROM_DICT: j = "from_dict"; break;
599602 case Enum::FROM_JSON: j = "from_json"; break;
600603 case Enum::FUNC: j = "func"; break;
601604 case Enum::FUNCTION: j = "function"; break;
@@ -774,6 +777,7 @@ namespace quicktype {
774777 case Enum::TO_JSON: j = "to_json"; break;
775778 case Enum::TOP_LEVEL: j = "top_level"; break;
776779 case Enum::TO_STRING: j = "toString"; break;
780+ case Enum::TO_DICT: j = "to_dict"; break;
777781 case Enum::TRANSIENT: j = "transient"; break;
778782 case Enum::TRUE: j = "True"; break;
779783 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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":
@@ -663,6 +665,8 @@ namespace QuickType
663665 return Enum.TopLevel;
664666 case "toString":
665667 return Enum.ToString;
668+ case "to_dict":
669+ return Enum.ToDict;
666670 case "transient":
667671 return Enum.Transient;
668672 case "True":
@@ -1120,6 +1124,9 @@ namespace QuickType
11201124 case Enum.From:
11211125 serializer.Serialize(writer, "from");
11221126 return;
1127+ case Enum.FromDict:
1128+ serializer.Serialize(writer, "from_dict");
1129+ return;
11231130 case Enum.FromJson:
11241131 serializer.Serialize(writer, "from_json");
11251132 return;
@@ -1654,6 +1661,9 @@ namespace QuickType
16541661 case Enum.ToString:
16551662 serializer.Serialize(writer, "toString");
16561663 return;
1664+ case Enum.ToDict:
1665+ serializer.Serialize(writer, "to_dict");
1666+ return;
16571667 case Enum.Transient:
16581668 serializer.Serialize(writer, "transient");
16591669 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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":
@@ -660,6 +662,8 @@ namespace QuickType
660662 return Enum.TopLevel;
661663 case "toString":
662664 return Enum.ToString;
665+ case "to_dict":
666+ return Enum.ToDict;
663667 case "transient":
664668 return Enum.Transient;
665669 case "True":
@@ -1111,6 +1115,9 @@ namespace QuickType
11111115 case Enum.From:
11121116 JsonSerializer.Serialize(writer, "from", options);
11131117 return;
1118+ case Enum.FromDict:
1119+ JsonSerializer.Serialize(writer, "from_dict", options);
1120+ return;
11141121 case Enum.FromJson:
11151122 JsonSerializer.Serialize(writer, "from_json", options);
11161123 return;
@@ -1645,6 +1652,9 @@ namespace QuickType
16451652 case Enum.ToString:
16461653 JsonSerializer.Serialize(writer, "toString", options);
16471654 return;
1655+ case Enum.ToDict:
1656+ JsonSerializer.Serialize(writer, "to_dict", options);
1657+ return;
16481658 case Enum.Transient:
16491659 JsonSerializer.Serialize(writer, "transient", options);
16501660 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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":
@@ -663,6 +665,8 @@ namespace QuickType
663665 return Enum.TopLevel;
664666 case "toString":
665667 return Enum.ToString;
668+ case "to_dict":
669+ return Enum.ToDict;
666670 case "transient":
667671 return Enum.Transient;
668672 case "True":
@@ -1120,6 +1124,9 @@ namespace QuickType
11201124 case Enum.From:
11211125 serializer.Serialize(writer, "from");
11221126 return;
1127+ case Enum.FromDict:
1128+ serializer.Serialize(writer, "from_dict");
1129+ return;
11231130 case Enum.FromJson:
11241131 serializer.Serialize(writer, "from_json");
11251132 return;
@@ -1654,6 +1661,9 @@ namespace QuickType
16541661 case Enum.ToString:
16551662 serializer.Serialize(writer, "toString");
16561663 return;
1664+ case Enum.ToDict:
1665+ serializer.Serialize(writer, "to_dict");
1666+ return;
16571667 case Enum.Transient:
16581668 serializer.Serialize(writer, "transient");
16591669 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,
@@ -324,6 +325,7 @@ enum Enum {
324325 TO_JSON,
325326 TOP_LEVEL,
326327 TO_STRING,
328+ TO_DICT,
327329 TRANSIENT,
328330 TRUE,
329331 ENUM_TRUE,
@@ -488,6 +490,7 @@ final enumValues = EnumValues({
488490 "FormatException": Enum.FORMAT_EXCEPTION,
489491 "friend": Enum.FRIEND,
490492 "from": Enum.FROM,
493+ "from_dict": Enum.FROM_DICT,
491494 "from_json": Enum.FROM_JSON,
492495 "func": Enum.FUNC,
493496 "function": Enum.FUNCTION,
@@ -666,6 +669,7 @@ final enumValues = EnumValues({
666669 "to_json": Enum.TO_JSON,
667670 "top_level": Enum.TOP_LEVEL,
668671 "toString": Enum.TO_STRING,
672+ "to_dict": Enum.TO_DICT,
669673 "transient": Enum.TRANSIENT,
670674 "True": Enum.TRUE,
671675 "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,
@@ -306,6 +307,7 @@ defmodule EnumEnum do
306307 :to_json,
307308 :top_level,
308309 :toString,
310+ :to_dict,
309311 :transient,
310312 :True,
311313 :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
@@ -327,6 +328,7 @@ type EnumEnum
327328 | ToJSON
328329 | TopLevel
329330 | ToString
331+ | ToDict
330332 | Transient
331333 | EnumTrue
332334 | PurpleTrue
@@ -516,6 +518,7 @@ enumEnum =
516518 "FormatException" -> Jdec.succeed FormatException
517519 "friend" -> Jdec.succeed Friend
518520 "from" -> Jdec.succeed From
521+ "from_dict" -> Jdec.succeed FromDict
519522 "from_json" -> Jdec.succeed FromJSON
520523 "func" -> Jdec.succeed Func
521524 "function" -> Jdec.succeed Function
@@ -694,6 +697,7 @@ enumEnum =
694697 "to_json" -> Jdec.succeed ToJSON
695698 "top_level" -> Jdec.succeed TopLevel
696699 "toString" -> Jdec.succeed ToString
700+ "to_dict" -> Jdec.succeed ToDict
697701 "transient" -> Jdec.succeed Transient
698702 "True" -> Jdec.succeed EnumTrue
699703 "true" -> Jdec.succeed PurpleTrue
@@ -860,6 +864,7 @@ encodeEnumEnum x = case x of
860864 FormatException -> Jenc.string "FormatException"
861865 Friend -> Jenc.string "friend"
862866 From -> Jenc.string "from"
867+ FromDict -> Jenc.string "from_dict"
863868 FromJSON -> Jenc.string "from_json"
864869 Func -> Jenc.string "func"
865870 Function -> Jenc.string "function"
@@ -1038,6 +1043,7 @@ encodeEnumEnum x = case x of
10381043 ToJSON -> Jenc.string "to_json"
10391044 TopLevel -> Jenc.string "top_level"
10401045 ToString -> Jenc.string "toString"
1046+ ToDict -> Jenc.string "to_dict"
10411047 Transient -> Jenc.string "transient"
10421048 EnumTrue -> Jenc.string "True"
10431049 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"
@@ -314,6 +315,7 @@ export type Enum =
314315 | "to_json"
315316 | "top_level"
316317 | "toString"
318+ | "to_dict"
317319 | "transient"
318320 | "True"
319321 | "true"
@@ -665,6 +667,7 @@ const typeMap: any = {
665667 "FormatException",
666668 "friend",
667669 "from",
670+ "from_dict",
668671 "from_json",
669672 "func",
670673 "function",
@@ -843,6 +846,7 @@ const typeMap: any = {
843846 "to_json",
844847 "top_level",
845848 "toString",
849+ "to_dict",
846850 "transient",
847851 "True",
848852 "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"
@@ -324,6 +325,7 @@ const (
324325 ToJSON EnumEnum = "to_json"
325326 EnumTopLevel EnumEnum = "top_level"
326327 ToString EnumEnum = "toString"
328+ ToDict EnumEnum = "to_dict"
327329 Transient EnumEnum = "transient"
328330 True EnumEnum = "True"
329331 EnumTrue EnumEnum = "true"
@@ -373,7 +375,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
373375 var value string
374376 if err := json.Unmarshal(data, &value); err != nil { return err }
375377 switch EnumEnum(value) {
376- 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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
378+ 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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
377379 }
378380 return invalidEnumEnum(value)
379381 }
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
@@ -317,6 +318,7 @@ data EnumEnum
317318 | ToJSONEnumEnum
318319 | TopLevelEnumEnum
319320 | ToStringEnumEnum
321+ | ToDictEnumEnum
320322 | TransientEnumEnum
321323 | TrueEnumEnum
322324 | PurpleTrueEnumEnum
@@ -494,6 +496,7 @@ instance ToJSON EnumEnum where
494496 toJSON FormatExceptionEnumEnum = "FormatException"
495497 toJSON FriendEnumEnum = "friend"
496498 toJSON FromEnumEnum = "from"
499+ toJSON FromDictEnumEnum = "from_dict"
497500 toJSON FromJSONEnumEnum = "from_json"
498501 toJSON FuncEnumEnum = "func"
499502 toJSON FunctionEnumEnum = "function"
@@ -672,6 +675,7 @@ instance ToJSON EnumEnum where
672675 toJSON ToJSONEnumEnum = "to_json"
673676 toJSON TopLevelEnumEnum = "top_level"
674677 toJSON ToStringEnumEnum = "toString"
678+ toJSON ToDictEnumEnum = "to_dict"
675679 toJSON TransientEnumEnum = "transient"
676680 toJSON TrueEnumEnum = "True"
677681 toJSON PurpleTrueEnumEnum = "true"
@@ -837,6 +841,7 @@ instance FromJSON EnumEnum where
837841 parseText "FormatException" = return FormatExceptionEnumEnum
838842 parseText "friend" = return FriendEnumEnum
839843 parseText "from" = return FromEnumEnum
844+ parseText "from_dict" = return FromDictEnumEnum
840845 parseText "from_json" = return FromJSONEnumEnum
841846 parseText "func" = return FuncEnumEnum
842847 parseText "function" = return FunctionEnumEnum
@@ -1015,6 +1020,7 @@ instance FromJSON EnumEnum where
10151020 parseText "to_json" = return ToJSONEnumEnum
10161021 parseText "top_level" = return TopLevelEnumEnum
10171022 parseText "toString" = return ToStringEnumEnum
1023+ parseText "to_dict" = return ToDictEnumEnum
10181024 parseText "transient" = return TransientEnumEnum
10191025 parseText "True" = return TrueEnumEnum
10201026 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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";
@@ -308,6 +309,7 @@ public enum Enum {
308309 case TO_JSON: return "to_json";
309310 case TOP_LEVEL: return "top_level";
310311 case TO_STRING: return "toString";
312+ case TO_DICT: return "to_dict";
311313 case TRANSIENT: return "transient";
312314 case TRUE: return "True";
313315 case ENUM_TRUE: return "true";
@@ -475,6 +477,7 @@ public enum Enum {
475477 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
476478 if (value.equals("friend")) return FRIEND;
477479 if (value.equals("from")) return FROM;
480+ if (value.equals("from_dict")) return FROM_DICT;
478481 if (value.equals("from_json")) return FROM_JSON;
479482 if (value.equals("func")) return FUNC;
480483 if (value.equals("function")) return FUNCTION;
@@ -653,6 +656,7 @@ public enum Enum {
653656 if (value.equals("to_json")) return TO_JSON;
654657 if (value.equals("top_level")) return TOP_LEVEL;
655658 if (value.equals("toString")) return TO_STRING;
659+ if (value.equals("to_dict")) return TO_DICT;
656660 if (value.equals("transient")) return TRANSIENT;
657661 if (value.equals("True")) return TRUE;
658662 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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";
@@ -308,6 +309,7 @@ public enum Enum {
308309 case TO_JSON: return "to_json";
309310 case TOP_LEVEL: return "top_level";
310311 case TO_STRING: return "toString";
312+ case TO_DICT: return "to_dict";
311313 case TRANSIENT: return "transient";
312314 case TRUE: return "True";
313315 case ENUM_TRUE: return "true";
@@ -475,6 +477,7 @@ public enum Enum {
475477 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
476478 if (value.equals("friend")) return FRIEND;
477479 if (value.equals("from")) return FROM;
480+ if (value.equals("from_dict")) return FROM_DICT;
478481 if (value.equals("from_json")) return FROM_JSON;
479482 if (value.equals("func")) return FUNC;
480483 if (value.equals("function")) return FUNCTION;
@@ -653,6 +656,7 @@ public enum Enum {
653656 if (value.equals("to_json")) return TO_JSON;
654657 if (value.equals("top_level")) return TOP_LEVEL;
655658 if (value.equals("toString")) return TO_STRING;
659+ if (value.equals("to_dict")) return TO_DICT;
656660 if (value.equals("transient")) return TRANSIENT;
657661 if (value.equals("True")) return TRUE;
658662 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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";
@@ -308,6 +309,7 @@ public enum Enum {
308309 case TO_JSON: return "to_json";
309310 case TOP_LEVEL: return "top_level";
310311 case TO_STRING: return "toString";
312+ case TO_DICT: return "to_dict";
311313 case TRANSIENT: return "transient";
312314 case TRUE: return "True";
313315 case ENUM_TRUE: return "true";
@@ -475,6 +477,7 @@ public enum Enum {
475477 if (value.equals("FormatException")) return FORMAT_EXCEPTION;
476478 if (value.equals("friend")) return FRIEND;
477479 if (value.equals("from")) return FROM;
480+ if (value.equals("from_dict")) return FROM_DICT;
478481 if (value.equals("from_json")) return FROM_JSON;
479482 if (value.equals("func")) return FUNC;
480483 if (value.equals("function")) return FUNCTION;
@@ -653,6 +656,7 @@ public enum Enum {
653656 if (value.equals("to_json")) return TO_JSON;
654657 if (value.equals("top_level")) return TOP_LEVEL;
655658 if (value.equals("toString")) return TO_STRING;
659+ if (value.equals("to_dict")) return TO_DICT;
656660 if (value.equals("transient")) return TRANSIENT;
657661 if (value.equals("True")) return TRUE;
658662 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', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', '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', 'UseSerializers', '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', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', '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', 'UseSerializers', '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",
@@ -495,6 +496,7 @@ const typeMap = {
495496 "to_json",
496497 "top_level",
497498 "toString",
499+ "to_dict",
498500 "transient",
499501 "True",
500502 "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"),
@@ -340,6 +341,7 @@ enum class EnumEnum(val value: String) {
340341 ToJSON("to_json"),
341342 TopLevel("top_level"),
342343 ToString("toString"),
344+ ToDict("to_dict"),
343345 Transient("transient"),
344346 True("True"),
345347 EnumTrue("true"),
@@ -504,6 +506,7 @@ enum class EnumEnum(val value: String) {
504506 "FormatException" -> FormatException
505507 "friend" -> Friend
506508 "from" -> From
509+ "from_dict" -> FromDict
507510 "from_json" -> FromJSON
508511 "func" -> Func
509512 "function" -> Function
@@ -682,6 +685,7 @@ enum class EnumEnum(val value: String) {
682685 "to_json" -> ToJSON
683686 "top_level" -> TopLevel
684687 "toString" -> ToString
688+ "to_dict" -> ToDict
685689 "transient" -> Transient
686690 "True" -> True
687691 "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"),
@@ -327,6 +328,7 @@ enum class EnumEnum(val value: String) {
327328 ToJSON("to_json"),
328329 TopLevel("top_level"),
329330 ToString("toString"),
331+ ToDict("to_dict"),
330332 Transient("transient"),
331333 True("True"),
332334 EnumTrue("true"),
@@ -491,6 +493,7 @@ enum class EnumEnum(val value: String) {
491493 "FormatException" -> FormatException
492494 "friend" -> Friend
493495 "from" -> From
496+ "from_dict" -> FromDict
494497 "from_json" -> FromJSON
495498 "func" -> Func
496499 "function" -> Function
@@ -669,6 +672,7 @@ enum class EnumEnum(val value: String) {
669672 "to_json" -> ToJSON
670673 "top_level" -> TopLevel
671674 "toString" -> ToString
675+ "to_dict" -> ToDict
672676 "transient" -> Transient
673677 "True" -> True
674678 "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"),
@@ -316,6 +317,7 @@ enum class EnumEnum(val value: String) {
316317 @SerialName("to_json") ToJSON("to_json"),
317318 @SerialName("top_level") TopLevel("top_level"),
318319 @SerialName("toString") ToString("toString"),
320+ @SerialName("to_dict") ToDict("to_dict"),
319321 @SerialName("transient") Transient("transient"),
320322 @SerialName("True") True("True"),
321323 @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;
@@ -314,6 +315,7 @@ NS_ASSUME_NONNULL_BEGIN
314315 + (QTEnum *)toJSON;
315316 + (QTEnum *)topLevel;
316317 + (QTEnum *)toString;
318++ (QTEnum *)toDict;
317319 + (QTEnum *)transient;
318320 + (QTEnum *)enumTrue;
319321 + (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"],
@@ -317,6 +318,7 @@ NS_ASSUME_NONNULL_BEGIN
317318 @"to_json": [[QTEnum alloc] initWithValue:@"to_json"],
318319 @"top_level": [[QTEnum alloc] initWithValue:@"top_level"],
319320 @"toString": [[QTEnum alloc] initWithValue:@"toString"],
321+ @"to_dict": [[QTEnum alloc] initWithValue:@"to_dict"],
320322 @"transient": [[QTEnum alloc] initWithValue:@"transient"],
321323 @"True": [[QTEnum alloc] initWithValue:@"True"],
322324 @"true": [[QTEnum alloc] initWithValue:@"true"],
@@ -481,6 +483,7 @@ NS_ASSUME_NONNULL_BEGIN
481483 + (QTEnum *)formatException { return QTEnum.values[@"FormatException"]; }
482484 + (QTEnum *)friend { return QTEnum.values[@"friend"]; }
483485 + (QTEnum *)from { return QTEnum.values[@"from"]; }
486++ (QTEnum *)fromDict { return QTEnum.values[@"from_dict"]; }
484487 + (QTEnum *)fromJSON { return QTEnum.values[@"from_json"]; }
485488 + (QTEnum *)func { return QTEnum.values[@"func"]; }
486489 + (QTEnum *)function { return QTEnum.values[@"function"]; }
@@ -659,6 +662,7 @@ NS_ASSUME_NONNULL_BEGIN
659662 + (QTEnum *)toJSON { return QTEnum.values[@"to_json"]; }
660663 + (QTEnum *)topLevel { return QTEnum.values[@"top_level"]; }
661664 + (QTEnum *)toString { return QTEnum.values[@"toString"]; }
665++ (QTEnum *)toDict { return QTEnum.values[@"to_dict"]; }
662666 + (QTEnum *)transient { return QTEnum.values[@"transient"]; }
663667 + (QTEnum *)enumTrue { return QTEnum.values[@"True"]; }
664668 + (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;
@@ -412,6 +413,7 @@ class EnumEnum {
412413 public static EnumEnum $TO_JSON;
413414 public static EnumEnum $TOP_LEVEL;
414415 public static EnumEnum $TO_STRING;
416+ public static EnumEnum $TO_DICT;
415417 public static EnumEnum $TRANSIENT;
416418 public static EnumEnum $TRUE;
417419 public static EnumEnum $ENUM_TRUE;
@@ -574,6 +576,7 @@ class EnumEnum {
574576 EnumEnum::$FORMAT_EXCEPTION = new EnumEnum('FormatException');
575577 EnumEnum::$FRIEND = new EnumEnum('friend');
576578 EnumEnum::$FROM = new EnumEnum('from');
579+ EnumEnum::$FROM_DICT = new EnumEnum('from_dict');
577580 EnumEnum::$FROM_JSON = new EnumEnum('from_json');
578581 EnumEnum::$FUNC = new EnumEnum('func');
579582 EnumEnum::$FUNCTION = new EnumEnum('function');
@@ -752,6 +755,7 @@ class EnumEnum {
752755 EnumEnum::$TO_JSON = new EnumEnum('to_json');
753756 EnumEnum::$TOP_LEVEL = new EnumEnum('top_level');
754757 EnumEnum::$TO_STRING = new EnumEnum('toString');
758+ EnumEnum::$TO_DICT = new EnumEnum('to_dict');
755759 EnumEnum::$TRANSIENT = new EnumEnum('transient');
756760 EnumEnum::$TRUE = new EnumEnum('True');
757761 EnumEnum::$ENUM_TRUE = new EnumEnum('true');
@@ -926,6 +930,7 @@ class EnumEnum {
926930 case EnumEnum::$FORMAT_EXCEPTION->enum: return 'FormatException';
927931 case EnumEnum::$FRIEND->enum: return 'friend';
928932 case EnumEnum::$FROM->enum: return 'from';
933+ case EnumEnum::$FROM_DICT->enum: return 'from_dict';
929934 case EnumEnum::$FROM_JSON->enum: return 'from_json';
930935 case EnumEnum::$FUNC->enum: return 'func';
931936 case EnumEnum::$FUNCTION->enum: return 'function';
@@ -1104,6 +1109,7 @@ class EnumEnum {
11041109 case EnumEnum::$TO_JSON->enum: return 'to_json';
11051110 case EnumEnum::$TOP_LEVEL->enum: return 'top_level';
11061111 case EnumEnum::$TO_STRING->enum: return 'toString';
1112+ case EnumEnum::$TO_DICT->enum: return 'to_dict';
11071113 case EnumEnum::$TRANSIENT->enum: return 'transient';
11081114 case EnumEnum::$TRUE->enum: return 'True';
11091115 case EnumEnum::$ENUM_TRUE->enum: return 'true';
@@ -1276,6 +1282,7 @@ class EnumEnum {
12761282 case 'FormatException': return EnumEnum::$FORMAT_EXCEPTION;
12771283 case 'friend': return EnumEnum::$FRIEND;
12781284 case 'from': return EnumEnum::$FROM;
1285+ case 'from_dict': return EnumEnum::$FROM_DICT;
12791286 case 'from_json': return EnumEnum::$FROM_JSON;
12801287 case 'func': return EnumEnum::$FUNC;
12811288 case 'function': return EnumEnum::$FUNCTION;
@@ -1454,6 +1461,7 @@ class EnumEnum {
14541461 case 'to_json': return EnumEnum::$TO_JSON;
14551462 case 'top_level': return EnumEnum::$TOP_LEVEL;
14561463 case 'toString': return EnumEnum::$TO_STRING;
1464+ case 'to_dict': return EnumEnum::$TO_DICT;
14571465 case 'transient': return EnumEnum::$TRANSIENT;
14581466 case 'True': return EnumEnum::$TRUE;
14591467 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"
@@ -332,6 +333,7 @@ enum Enum {
332333 TO_JSON = "to_json", // json: "to_json"
333334 TOP_LEVEL = "top_level", // json: "top_level"
334335 TO_STRING = "toString", // json: "toString"
336+ TO_DICT = "to_dict", // json: "to_dict"
335337 TRANSIENT = "transient", // json: "transient"
336338 TRUE = "True", // json: "True"
337339 ENUM_TRUE = "true", // json: "true"
@@ -375,5 +377,5 @@ enum Enum {
375377 }
376378
377379 Enum Enum_from_JSON(mixed json) {
378- 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 != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&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 != "UseSerializers"&&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;
380+ 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 != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&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 != "UseSerializers"&&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;
379381 }
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"
@@ -331,6 +332,7 @@ class EnumEnum(Enum):
331332 TO_JSON = "to_json"
332333 TOP_LEVEL = "top_level"
333334 TO_STRING = "toString"
335+ TO_DICT = "to_dict"
334336 TRANSIENT = "transient"
335337 TRUE = "True"
336338 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", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "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", "UseSerializers", "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", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "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", "UseSerializers", "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"
@@ -320,6 +321,7 @@ module Enum
320321 ToJSON = "to_json"
321322 TopLevel = "top_level"
322323 ToString = "toString"
324+ ToDict = "to_dict"
323325 Transient = "transient"
324326 True = "True"
325327 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
@@ -729,6 +732,9 @@ pub enum Enum {
729732 #[serde(rename = "toString")]
730733 ToString,
731734
735+ #[serde(rename = "to_dict")]
736+ ToDict,
737+
732738 Transient,
733739
734740 #[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
@@ -382,6 +383,7 @@ enum EnumEnum :
382383 case ToJSON
383384 case TopLevel
384385 case ToString
386+ case ToDict
385387 case Transient
386388 case True
387389 case EnumTrue
@@ -546,6 +548,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
546548 case EnumEnum.FormatException => "FormatException"
547549 case EnumEnum.Friend => "friend"
548550 case EnumEnum.From => "from"
551+ case EnumEnum.FromDict => "from_dict"
549552 case EnumEnum.FromJSON => "from_json"
550553 case EnumEnum.Func => "func"
551554 case EnumEnum.Function => "function"
@@ -724,6 +727,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
724727 case EnumEnum.ToJSON => "to_json"
725728 case EnumEnum.TopLevel => "top_level"
726729 case EnumEnum.ToString => "toString"
730+ case EnumEnum.ToDict => "to_dict"
727731 case EnumEnum.Transient => "transient"
728732 case EnumEnum.True => "True"
729733 case EnumEnum.EnumTrue => "true"
@@ -887,6 +891,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
887891 case "FormatException" => EnumEnum.FormatException
888892 case "friend" => EnumEnum.Friend
889893 case "from" => EnumEnum.From
894+ case "from_dict" => EnumEnum.FromDict
890895 case "from_json" => EnumEnum.FromJSON
891896 case "func" => EnumEnum.Func
892897 case "function" => EnumEnum.Function
@@ -1065,6 +1070,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
10651070 case "to_json" => EnumEnum.ToJSON
10661071 case "top_level" => EnumEnum.TopLevel
10671072 case "toString" => EnumEnum.ToString
1073+ case "to_dict" => EnumEnum.ToDict
10681074 case "transient" => EnumEnum.Transient
10691075 case "True" => EnumEnum.True
10701076 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
@@ -311,6 +312,7 @@ enum EnumEnum :
311312 case ToJSON
312313 case TopLevel
313314 case ToString
315+ case ToDict
314316 case Transient
315317 case True
316318 case EnumTrue
@@ -474,6 +476,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
474476 case "FormatException" => scala.Right(EnumEnum.FormatException)
475477 case "friend" => scala.Right(EnumEnum.Friend)
476478 case "from" => scala.Right(EnumEnum.From)
479+ case "from_dict" => scala.Right(EnumEnum.FromDict)
477480 case "from_json" => scala.Right(EnumEnum.FromJSON)
478481 case "func" => scala.Right(EnumEnum.Func)
479482 case "function" => scala.Right(EnumEnum.Function)
@@ -652,6 +655,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
652655 case "to_json" => scala.Right(EnumEnum.ToJSON)
653656 case "top_level" => scala.Right(EnumEnum.TopLevel)
654657 case "toString" => scala.Right(EnumEnum.ToString)
658+ case "to_dict" => scala.Right(EnumEnum.ToDict)
655659 case "transient" => scala.Right(EnumEnum.Transient)
656660 case "True" => scala.Right(EnumEnum.True)
657661 case "true" => scala.Right(EnumEnum.EnumTrue)
@@ -816,6 +820,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
816820 case EnumEnum.FormatException => "FormatException"
817821 case EnumEnum.Friend => "friend"
818822 case EnumEnum.From => "from"
823+ case EnumEnum.FromDict => "from_dict"
819824 case EnumEnum.FromJSON => "from_json"
820825 case EnumEnum.Func => "func"
821826 case EnumEnum.Function => "function"
@@ -994,6 +999,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
994999 case EnumEnum.ToJSON => "to_json"
9951000 case EnumEnum.TopLevel => "top_level"
9961001 case EnumEnum.ToString => "toString"
1002+ case EnumEnum.ToDict => "to_dict"
9971003 case EnumEnum.Transient => "transient"
9981004 case EnumEnum.True => "True"
9991005 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",
@@ -315,6 +316,7 @@
315316 "to_json",
316317 "top_level",
317318 "toString",
319+ "to_dict",
318320 "transient",
319321 "True",
320322 "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"
@@ -349,6 +350,7 @@ enum Enum: String, Codable {
349350 case toJSON = "to_json"
350351 case topLevel = "top_level"
351352 case toString = "toString"
353+ case toDict = "to_dict"
352354 case transient = "transient"
353355 case enumTrue = "True"
354356 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",
@@ -301,6 +302,7 @@ export const Enum = S.Literal(
301302 "to_json",
302303 "top_level",
303304 "toString",
305+ "to_dict",
304306 "transient",
305307 "True",
306308 "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",
@@ -301,6 +302,7 @@ export const EnumSchema = z.enum([
301302 "to_json",
302303 "top_level",
303304 "toString",
305+ "to_dict",
304306 "transient",
305307 "True",
306308 "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" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "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" | "UseSerializers" | "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" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "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" | "UseSerializers" | "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",
@@ -504,6 +505,7 @@ const typeMap: any = {
504505 "to_json",
505506 "top_level",
506507 "toString",
508+ "to_dict",
507509 "transient",
508510 "True",
509511 "true",
Test case

test/inputs/schema/keyword-unions.schema

43 generated files · +2,579 −225
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) {
@@ -9201,6 +9245,50 @@ void cJSON_DeleteUnionTimeZone(struct UnionTimeZone * x) {
92019245 }
92029246 }
92039247
9248+struct UnionToDict * cJSON_GetUnionToDictValue(const cJSON * j) {
9249+ struct UnionToDict * x = cJSON_malloc(sizeof(struct UnionToDict));
9250+ if (NULL != x) {
9251+ memset(x, 0, sizeof(struct UnionToDict));
9252+ if (cJSON_IsNumber(j)) {
9253+ x->type = cJSON_Number;
9254+ x->value.number = cJSON_GetNumberValue(j);
9255+ }
9256+ else if (cJSON_IsObject(j)) {
9257+ x->type = cJSON_Object;
9258+ x->value.to_dict = cJSON_GetToDictValue(j);
9259+ if (NULL == x->value.to_dict) x->type = 0;
9260+ }
9261+ if (0 == x->type) { cJSON_free(x); return NULL; }
9262+ }
9263+ return x;
9264+}
9265+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; }
9266+char * cJSON_PrintUnionToDict(const struct UnionToDict * x) { cJSON * j = cJSON_CreateUnionToDict(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
9267+
9268+cJSON * cJSON_CreateUnionToDict(const struct UnionToDict * x) {
9269+ cJSON * j = NULL;
9270+ if (NULL != x) {
9271+ if (cJSON_Number == x->type) {
9272+ j = cJSON_CreateNumber(x->value.number);
9273+ }
9274+ else if (cJSON_Object == x->type) {
9275+ j = cJSON_CreateToDict(x->value.to_dict);
9276+ }
9277+ }
9278+ return j;
9279+}
9280+
9281+void cJSON_DeleteUnionToDict(struct UnionToDict * x) {
9282+ if (NULL != x) {
9283+ if (cJSON_Number == x->type) {
9284+ }
9285+ else if (cJSON_Object == x->type) {
9286+ cJSON_DeleteToDict(x->value.to_dict);
9287+ }
9288+ cJSON_free(x);
9289+ }
9290+}
9291+
92049292 struct UnionToJson * cJSON_GetUnionToJsonValue(const cJSON * j) {
92059293 struct UnionToJson * x = cJSON_malloc(sizeof(struct UnionToJson));
92069294 if (NULL != x) {
@@ -18405,6 +18493,55 @@ void cJSON_DeleteFrom(struct From * x) {
1840518493 }
1840618494 }
1840718495
18496+struct FromDict * cJSON_ParseFromDict(const char * s) {
18497+ struct FromDict * x = NULL;
18498+ if (NULL != s) {
18499+ cJSON * j = cJSON_Parse(s);
18500+ if (NULL != j) {
18501+ x = cJSON_GetFromDictValue(j);
18502+ cJSON_Delete(j);
18503+ }
18504+ }
18505+ return x;
18506+}
18507+
18508+struct FromDict * cJSON_GetFromDictValue(const cJSON * j) {
18509+ struct FromDict * x = NULL;
18510+ if (NULL != j) {
18511+ if (NULL != (x = cJSON_malloc(sizeof(struct FromDict)))) {
18512+ memset(x, 0, sizeof(struct FromDict));
18513+ }
18514+ }
18515+ return x;
18516+}
18517+
18518+cJSON * cJSON_CreateFromDict(const struct FromDict * x) {
18519+ cJSON * j = NULL;
18520+ if (NULL != x) {
18521+ if (NULL != (j = cJSON_CreateObject())) {
18522+ }
18523+ }
18524+ return j;
18525+}
18526+
18527+char * cJSON_PrintFromDict(const struct FromDict * x) {
18528+ char * s = NULL;
18529+ if (NULL != x) {
18530+ cJSON * j = cJSON_CreateFromDict(x);
18531+ if (NULL != j) {
18532+ s = cJSON_Print(j);
18533+ cJSON_Delete(j);
18534+ }
18535+ }
18536+ return s;
18537+}
18538+
18539+void cJSON_DeleteFromDict(struct FromDict * x) {
18540+ if (NULL != x) {
18541+ cJSON_free(x);
18542+ }
18543+}
18544+
1840818545 struct FromJson * cJSON_ParseFromJson(const char * s) {
1840918546 struct FromJson * x = NULL;
1841018547 if (NULL != s) {
@@ -25118,6 +25255,55 @@ void cJSON_DeleteTimeZone(struct TimeZone * x) {
2511825255 }
2511925256 }
2512025257
25258+struct ToDict * cJSON_ParseToDict(const char * s) {
25259+ struct ToDict * x = NULL;
25260+ if (NULL != s) {
25261+ cJSON * j = cJSON_Parse(s);
25262+ if (NULL != j) {
25263+ x = cJSON_GetToDictValue(j);
25264+ cJSON_Delete(j);
25265+ }
25266+ }
25267+ return x;
25268+}
25269+
25270+struct ToDict * cJSON_GetToDictValue(const cJSON * j) {
25271+ struct ToDict * x = NULL;
25272+ if (NULL != j) {
25273+ if (NULL != (x = cJSON_malloc(sizeof(struct ToDict)))) {
25274+ memset(x, 0, sizeof(struct ToDict));
25275+ }
25276+ }
25277+ return x;
25278+}
25279+
25280+cJSON * cJSON_CreateToDict(const struct ToDict * x) {
25281+ cJSON * j = NULL;
25282+ if (NULL != x) {
25283+ if (NULL != (j = cJSON_CreateObject())) {
25284+ }
25285+ }
25286+ return j;
25287+}
25288+
25289+char * cJSON_PrintToDict(const struct ToDict * x) {
25290+ char * s = NULL;
25291+ if (NULL != x) {
25292+ cJSON * j = cJSON_CreateToDict(x);
25293+ if (NULL != j) {
25294+ s = cJSON_Print(j);
25295+ cJSON_Delete(j);
25296+ }
25297+ }
25298+ return s;
25299+}
25300+
25301+void cJSON_DeleteToDict(struct ToDict * x) {
25302+ if (NULL != x) {
25303+ cJSON_free(x);
25304+ }
25305+}
25306+
2512125307 struct ToJson * cJSON_ParseToJson(const char * s) {
2512225308 struct ToJson * x = NULL;
2512325309 if (NULL != s) {
@@ -32067,6 +32253,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3206732253 x->from = cJSON_GetUnionFromValue(cJSON_GetObjectItemCaseSensitive(j, "from"));
3206832254 if (NULL == x->from) { cJSON_DeleteTopLevel(x); return NULL; }
3206932255 }
32256+ if (cJSON_HasObjectItem(j, "from_dict")) {
32257+ if (!cJSON_IsUnionFromDict(cJSON_GetObjectItemCaseSensitive(j, "from_dict"))) { cJSON_DeleteTopLevel(x); return NULL; }
32258+ x->from_dict = cJSON_GetUnionFromDictValue(cJSON_GetObjectItemCaseSensitive(j, "from_dict"));
32259+ if (NULL == x->from_dict) { cJSON_DeleteTopLevel(x); return NULL; }
32260+ }
3207032261 if (cJSON_HasObjectItem(j, "from_json")) {
3207132262 if (!cJSON_IsUnionFromJson(cJSON_GetObjectItemCaseSensitive(j, "from_json"))) { cJSON_DeleteTopLevel(x); return NULL; }
3207232263 x->from_json = cJSON_GetUnionFromJsonValue(cJSON_GetObjectItemCaseSensitive(j, "from_json"));
@@ -32942,6 +33133,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3294233133 x->time_zone = cJSON_GetUnionTimeZoneValue(cJSON_GetObjectItemCaseSensitive(j, "TimeZone"));
3294333134 if (NULL == x->time_zone) { cJSON_DeleteTopLevel(x); return NULL; }
3294433135 }
33136+ if (cJSON_HasObjectItem(j, "to_dict")) {
33137+ if (!cJSON_IsUnionToDict(cJSON_GetObjectItemCaseSensitive(j, "to_dict"))) { cJSON_DeleteTopLevel(x); return NULL; }
33138+ x->to_dict = cJSON_GetUnionToDictValue(cJSON_GetObjectItemCaseSensitive(j, "to_dict"));
33139+ if (NULL == x->to_dict) { cJSON_DeleteTopLevel(x); return NULL; }
33140+ }
3294533141 if (cJSON_HasObjectItem(j, "to_json")) {
3294633142 if (!cJSON_IsUnionToJson(cJSON_GetObjectItemCaseSensitive(j, "to_json"))) { cJSON_DeleteTopLevel(x); return NULL; }
3294733143 x->to_json = cJSON_GetUnionToJsonValue(cJSON_GetObjectItemCaseSensitive(j, "to_json"));
@@ -33527,6 +33723,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3352733723 if (NULL != x->from) {
3352833724 cJSON_AddItemToObject(j, "from", cJSON_CreateUnionFrom(x->from));
3352933725 }
33726+ if (NULL != x->from_dict) {
33727+ cJSON_AddItemToObject(j, "from_dict", cJSON_CreateUnionFromDict(x->from_dict));
33728+ }
3353033729 if (NULL != x->from_json) {
3353133730 cJSON_AddItemToObject(j, "from_json", cJSON_CreateUnionFromJson(x->from_json));
3353233731 }
@@ -34052,6 +34251,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3405234251 if (NULL != x->time_zone) {
3405334252 cJSON_AddItemToObject(j, "TimeZone", cJSON_CreateUnionTimeZone(x->time_zone));
3405434253 }
34254+ if (NULL != x->to_dict) {
34255+ cJSON_AddItemToObject(j, "to_dict", cJSON_CreateUnionToDict(x->to_dict));
34256+ }
3405534257 if (NULL != x->to_json) {
3405634258 cJSON_AddItemToObject(j, "to_json", cJSON_CreateUnionToJson(x->to_json));
3405734259 }
@@ -34563,6 +34765,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3456334765 if (NULL != x->from) {
3456434766 cJSON_DeleteUnionFrom(x->from);
3456534767 }
34768+ if (NULL != x->from_dict) {
34769+ cJSON_DeleteUnionFromDict(x->from_dict);
34770+ }
3456634771 if (NULL != x->from_json) {
3456734772 cJSON_DeleteUnionFromJson(x->from_json);
3456834773 }
@@ -35088,6 +35293,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3508835293 if (NULL != x->time_zone) {
3508935294 cJSON_DeleteUnionTimeZone(x->time_zone);
3509035295 }
35296+ if (NULL != x->to_dict) {
35297+ cJSON_DeleteUnionToDict(x->to_dict);
35298+ }
3509135299 if (NULL != x->to_json) {
3509235300 cJSON_DeleteUnionToJson(x->to_json);
3509335301 }
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
@@ -2347,6 +2358,17 @@ struct UnionTimeZone {
23472358 } value;
23482359 };
23492360
2361+struct ToDict {
2362+};
2363+
2364+struct UnionToDict {
2365+ int type;
2366+ union {
2367+ double number;
2368+ struct ToDict * to_dict;
2369+ } value;
2370+};
2371+
23502372 struct ToJson {
23512373 };
23522374
@@ -3889,6 +3911,7 @@ struct TopLevel {
38893911 struct UnionFormatException * format_exception;
38903912 struct UnionFriend * top_level_friend;
38913913 struct UnionFrom * from;
3914+ struct UnionFromDict * from_dict;
38923915 struct UnionFromJson * from_json;
38933916 struct UnionFunc * func;
38943917 struct UnionFunction * function;
@@ -4064,6 +4087,7 @@ struct TopLevel {
40644087 struct UnionTimeOnly * time_only;
40654088 struct UnionTimeOnlyConverter * time_only_converter;
40664089 struct UnionTimeZone * time_zone;
4090+ struct UnionToDict * to_dict;
40674091 struct UnionToJson * to_json;
40684092 struct UnionTopLevel * top_level;
40694093 struct UnionToString * to_string;
@@ -4612,6 +4636,13 @@ void cJSON_DeleteUnionFrom(struct UnionFrom * x);
46124636 struct UnionFrom * cJSON_ParseUnionFrom(const char * s);
46134637 char * cJSON_PrintUnionFrom(const struct UnionFrom * x);
46144638
4639+#define cJSON_IsUnionFromDict(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
4640+struct UnionFromDict * cJSON_GetUnionFromDictValue(const cJSON * j);
4641+cJSON * cJSON_CreateUnionFromDict(const struct UnionFromDict * x);
4642+void cJSON_DeleteUnionFromDict(struct UnionFromDict * x);
4643+struct UnionFromDict * cJSON_ParseUnionFromDict(const char * s);
4644+char * cJSON_PrintUnionFromDict(const struct UnionFromDict * x);
4645+
46154646 #define cJSON_IsUnionFromJson(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
46164647 struct UnionFromJson * cJSON_GetUnionFromJsonValue(const cJSON * j);
46174648 cJSON * cJSON_CreateUnionFromJson(const struct UnionFromJson * x);
@@ -5571,6 +5602,13 @@ void cJSON_DeleteUnionTimeZone(struct UnionTimeZone * x);
55715602 struct UnionTimeZone * cJSON_ParseUnionTimeZone(const char * s);
55725603 char * cJSON_PrintUnionTimeZone(const struct UnionTimeZone * x);
55735604
5605+#define cJSON_IsUnionToDict(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5606+struct UnionToDict * cJSON_GetUnionToDictValue(const cJSON * j);
5607+cJSON * cJSON_CreateUnionToDict(const struct UnionToDict * x);
5608+void cJSON_DeleteUnionToDict(struct UnionToDict * x);
5609+struct UnionToDict * cJSON_ParseUnionToDict(const char * s);
5610+char * cJSON_PrintUnionToDict(const struct UnionToDict * x);
5611+
55745612 #define cJSON_IsUnionToJson(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
55755613 struct UnionToJson * cJSON_GetUnionToJsonValue(const cJSON * j);
55765614 cJSON * cJSON_CreateUnionToJson(const struct UnionToJson * x);
@@ -6906,6 +6944,12 @@ cJSON * cJSON_CreateFrom(const struct From * x);
69066944 char * cJSON_PrintFrom(const struct From * x);
69076945 void cJSON_DeleteFrom(struct From * x);
69086946
6947+struct FromDict * cJSON_ParseFromDict(const char * s);
6948+struct FromDict * cJSON_GetFromDictValue(const cJSON * j);
6949+cJSON * cJSON_CreateFromDict(const struct FromDict * x);
6950+char * cJSON_PrintFromDict(const struct FromDict * x);
6951+void cJSON_DeleteFromDict(struct FromDict * x);
6952+
69096953 struct FromJson * cJSON_ParseFromJson(const char * s);
69106954 struct FromJson * cJSON_GetFromJsonValue(const cJSON * j);
69116955 cJSON * cJSON_CreateFromJson(const struct FromJson * x);
@@ -7728,6 +7772,12 @@ cJSON * cJSON_CreateTimeZone(const struct TimeZone * x);
77287772 char * cJSON_PrintTimeZone(const struct TimeZone * x);
77297773 void cJSON_DeleteTimeZone(struct TimeZone * x);
77307774
7775+struct ToDict * cJSON_ParseToDict(const char * s);
7776+struct ToDict * cJSON_GetToDictValue(const cJSON * j);
7777+cJSON * cJSON_CreateToDict(const struct ToDict * x);
7778+char * cJSON_PrintToDict(const struct ToDict * x);
7779+void cJSON_DeleteToDict(struct ToDict * x);
7780+
77317781 struct ToJson * cJSON_ParseToJson(const char * s);
77327782 struct ToJson * cJSON_GetToJsonValue(const cJSON * j);
77337783 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;
@@ -2609,6 +2621,18 @@ namespace quicktype {
26092621
26102622 using UnionTimeZone = std::variant<TimeZone, double>;
26112623
2624+ class ToDict {
2625+ public:
2626+ ToDict() = default;
2627+ virtual ~ToDict() = default;
2628+
2629+ private:
2630+
2631+ public:
2632+ };
2633+
2634+ using UnionToDict = std::variant<ToDict, double>;
2635+
26122636 class ToJson {
26132637 public:
26142638 ToJson() = default;
@@ -4273,6 +4297,7 @@ namespace quicktype {
42734297 std::optional<UnionFormatException> format_exception;
42744298 std::optional<UnionFriend> top_level_friend;
42754299 std::optional<UnionFrom> from;
4300+ std::optional<UnionFromDict> from_dict;
42764301 std::optional<UnionFromJson> from_json;
42774302 std::optional<UnionFunc> func;
42784303 std::optional<UnionFunction> function;
@@ -4448,6 +4473,7 @@ namespace quicktype {
44484473 std::optional<UnionTimeOnly> time_only;
44494474 std::optional<UnionTimeOnlyConverter> time_only_converter;
44504475 std::optional<UnionTimeZone> time_zone;
4476+ std::optional<UnionToDict> to_dict;
44514477 std::optional<UnionToJson> to_json;
44524478 std::optional<UnionTopLevel> top_level;
44534479 std::optional<UnionToString> to_string;
@@ -4980,6 +5006,10 @@ namespace quicktype {
49805006 std::optional<UnionFrom> & get_mutable_from() { return from; }
49815007 void set_from(const std::optional<UnionFrom> & value) { this->from = value; }
49825008
5009+ const std::optional<UnionFromDict> & get_from_dict() const { return from_dict; }
5010+ std::optional<UnionFromDict> & get_mutable_from_dict() { return from_dict; }
5011+ void set_from_dict(const std::optional<UnionFromDict> & value) { this->from_dict = value; }
5012+
49835013 const std::optional<UnionFromJson> & get_from_json() const { return from_json; }
49845014 std::optional<UnionFromJson> & get_mutable_from_json() { return from_json; }
49855015 void set_from_json(const std::optional<UnionFromJson> & value) { this->from_json = value; }
@@ -5680,6 +5710,10 @@ namespace quicktype {
56805710 std::optional<UnionTimeZone> & get_mutable_time_zone() { return time_zone; }
56815711 void set_time_zone(const std::optional<UnionTimeZone> & value) { this->time_zone = value; }
56825712
5713+ const std::optional<UnionToDict> & get_to_dict() const { return to_dict; }
5714+ std::optional<UnionToDict> & get_mutable_to_dict() { return to_dict; }
5715+ void set_to_dict(const std::optional<UnionToDict> & value) { this->to_dict = value; }
5716+
56835717 const std::optional<UnionToJson> & get_to_json() const { return to_json; }
56845718 std::optional<UnionToJson> & get_mutable_to_json() { return to_json; }
56855719 void set_to_json(const std::optional<UnionToJson> & value) { this->to_json = value; }
@@ -6067,6 +6101,9 @@ void to_json(json & j, const FormatException & x);
60676101 void from_json(const json & j, From & x);
60686102 void to_json(json & j, const From & x);
60696103
6104+void from_json(const json & j, FromDict & x);
6105+void to_json(json & j, const FromDict & x);
6106+
60706107 void from_json(const json & j, FromJson & x);
60716108 void to_json(json & j, const FromJson & x);
60726109
@@ -6481,6 +6518,9 @@ void to_json(json & j, const TimeOnlyConverter & x);
64816518 void from_json(const json & j, TimeZone & x);
64826519 void to_json(json & j, const TimeZone & x);
64836520
6521+void from_json(const json & j, ToDict & x);
6522+void to_json(json & j, const ToDict & x);
6523+
64846524 void from_json(const json & j, ToJson & x);
64856525 void to_json(json & j, const ToJson & x);
64866526
@@ -7301,6 +7341,12 @@ struct adl_serializer<std::variant<quicktype::From, double>> {
73017341 static void to_json(json & j, const std::variant<quicktype::From, double> & x);
73027342 };
73037343
7344+template <>
7345+struct adl_serializer<std::variant<quicktype::FromDict, double>> {
7346+ static void from_json(const json & j, std::variant<quicktype::FromDict, double> & x);
7347+ static void to_json(json & j, const std::variant<quicktype::FromDict, double> & x);
7348+};
7349+
73047350 template <>
73057351 struct adl_serializer<std::variant<quicktype::FromJson, double>> {
73067352 static void from_json(const json & j, std::variant<quicktype::FromJson, double> & x);
@@ -8129,6 +8175,12 @@ struct adl_serializer<std::variant<quicktype::TimeZone, double>> {
81298175 static void to_json(json & j, const std::variant<quicktype::TimeZone, double> & x);
81308176 };
81318177
8178+template <>
8179+struct adl_serializer<std::variant<quicktype::ToDict, double>> {
8180+ static void from_json(const json & j, std::variant<quicktype::ToDict, double> & x);
8181+ static void to_json(json & j, const std::variant<quicktype::ToDict, double> & x);
8182+};
8183+
81328184 template <>
81338185 struct adl_serializer<std::variant<quicktype::ToJson, double>> {
81348186 static void from_json(const json & j, std::variant<quicktype::ToJson, double> & x);
@@ -9690,6 +9742,17 @@ namespace quicktype {
96909742 (void)x;
96919743 }
96929744
9745+ inline void from_json(const json & j, FromDict& x) {
9746+ if (!j.is_object()) throw std::runtime_error("Expected object");
9747+ (void)j;
9748+ (void)x;
9749+ }
9750+
9751+ inline void to_json(json & j, const FromDict & x) {
9752+ j = json::object();
9753+ (void)x;
9754+ }
9755+
96939756 inline void from_json(const json & j, FromJson& x) {
96949757 if (!j.is_object()) throw std::runtime_error("Expected object");
96959758 (void)j;
@@ -11208,6 +11271,17 @@ namespace quicktype {
1120811271 (void)x;
1120911272 }
1121011273
11274+ inline void from_json(const json & j, ToDict& x) {
11275+ if (!j.is_object()) throw std::runtime_error("Expected object");
11276+ (void)j;
11277+ (void)x;
11278+ }
11279+
11280+ inline void to_json(json & j, const ToDict & x) {
11281+ j = json::object();
11282+ (void)x;
11283+ }
11284+
1121111285 inline void from_json(const json & j, ToJson& x) {
1121211286 if (!j.is_object()) throw std::runtime_error("Expected object");
1121311287 (void)j;
@@ -12862,6 +12936,8 @@ namespace quicktype {
1286212936 x.set_top_level_friend(get_stack_optional<std::variant<Friend, double>>(j, "friend"));
1286312937 if (j.find("from") != j.end() && j.at("from").is_null()) throw std::runtime_error("Unexpected null");
1286412938 x.set_from(get_stack_optional<std::variant<From, double>>(j, "from"));
12939+ if (j.find("from_dict") != j.end() && j.at("from_dict").is_null()) throw std::runtime_error("Unexpected null");
12940+ x.set_from_dict(get_stack_optional<std::variant<FromDict, double>>(j, "from_dict"));
1286512941 if (j.find("from_json") != j.end() && j.at("from_json").is_null()) throw std::runtime_error("Unexpected null");
1286612942 x.set_from_json(get_stack_optional<std::variant<FromJson, double>>(j, "from_json"));
1286712943 if (j.find("func") != j.end() && j.at("func").is_null()) throw std::runtime_error("Unexpected null");
@@ -13212,6 +13288,8 @@ namespace quicktype {
1321213288 x.set_time_only_converter(get_stack_optional<std::variant<TimeOnlyConverter, double>>(j, "TimeOnlyConverter"));
1321313289 if (j.find("TimeZone") != j.end() && j.at("TimeZone").is_null()) throw std::runtime_error("Unexpected null");
1321413290 x.set_time_zone(get_stack_optional<std::variant<TimeZone, double>>(j, "TimeZone"));
13291+ if (j.find("to_dict") != j.end() && j.at("to_dict").is_null()) throw std::runtime_error("Unexpected null");
13292+ x.set_to_dict(get_stack_optional<std::variant<ToDict, double>>(j, "to_dict"));
1321513293 if (j.find("to_json") != j.end() && j.at("to_json").is_null()) throw std::runtime_error("Unexpected null");
1321613294 x.set_to_json(get_stack_optional<std::variant<ToJson, double>>(j, "to_json"));
1321713295 if (j.find("top_level") != j.end() && j.at("top_level").is_null()) throw std::runtime_error("Unexpected null");
@@ -13422,6 +13500,7 @@ namespace quicktype {
1342213500 j["FormatException"] = x.get_format_exception();
1342313501 j["friend"] = x.get_top_level_friend();
1342413502 j["from"] = x.get_from();
13503+ j["from_dict"] = x.get_from_dict();
1342513504 j["from_json"] = x.get_from_json();
1342613505 j["func"] = x.get_func();
1342713506 j["function"] = x.get_function();
@@ -13597,6 +13676,7 @@ namespace quicktype {
1359713676 j["TimeOnly"] = x.get_time_only();
1359813677 j["TimeOnlyConverter"] = x.get_time_only_converter();
1359913678 j["TimeZone"] = x.get_time_zone();
13679+ j["to_dict"] = x.get_to_dict();
1360013680 j["to_json"] = x.get_to_json();
1360113681 j["top_level"] = x.get_top_level();
1360213682 j["toString"] = x.get_to_string();
@@ -15082,6 +15162,26 @@ namespace nlohmann {
1508215162 }
1508315163 }
1508415164
15165+ inline void adl_serializer<std::variant<quicktype::FromDict, double>>::from_json(const json & j, std::variant<quicktype::FromDict, double> & x) {
15166+ if (j.is_number())
15167+ x = j.get<double>();
15168+ else if (j.is_object())
15169+ x = j.get<quicktype::FromDict>();
15170+ else throw std::runtime_error("Could not deserialise!");
15171+ }
15172+
15173+ inline void adl_serializer<std::variant<quicktype::FromDict, double>>::to_json(json & j, const std::variant<quicktype::FromDict, double> & x) {
15174+ switch (x.index()) {
15175+ case 0:
15176+ j = std::get<quicktype::FromDict>(x);
15177+ break;
15178+ case 1:
15179+ j = std::get<double>(x);
15180+ break;
15181+ default: throw std::runtime_error("Input JSON does not conform to schema!");
15182+ }
15183+ }
15184+
1508515185 inline void adl_serializer<std::variant<quicktype::FromJson, double>>::from_json(const json & j, std::variant<quicktype::FromJson, double> & x) {
1508615186 if (j.is_number())
1508715187 x = j.get<double>();
@@ -17842,6 +17942,26 @@ namespace nlohmann {
1784217942 }
1784317943 }
1784417944
17945+ inline void adl_serializer<std::variant<quicktype::ToDict, double>>::from_json(const json & j, std::variant<quicktype::ToDict, double> & x) {
17946+ if (j.is_number())
17947+ x = j.get<double>();
17948+ else if (j.is_object())
17949+ x = j.get<quicktype::ToDict>();
17950+ else throw std::runtime_error("Could not deserialise!");
17951+ }
17952+
17953+ inline void adl_serializer<std::variant<quicktype::ToDict, double>>::to_json(json & j, const std::variant<quicktype::ToDict, double> & x) {
17954+ switch (x.index()) {
17955+ case 0:
17956+ j = std::get<quicktype::ToDict>(x);
17957+ break;
17958+ case 1:
17959+ j = std::get<double>(x);
17960+ break;
17961+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17962+ }
17963+ }
17964+
1784517965 inline void adl_serializer<std::variant<quicktype::ToJson, double>>::from_json(const json & j, std::variant<quicktype::ToJson, double> & x) {
1784617966 if (j.is_number())
1784717967 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?
@@ -703,6 +705,8 @@ class TopLevel
703705 @[JSON::Field(key: "TimeZone")]
704706 property time_zone : UnionTimeZone?
705707
708+ property to_dict : UnionToDict?
709+
706710 @[JSON::Field(key: "to_json")]
707711 property top_level_to_json : UnionToJson?
708712
@@ -1320,6 +1324,11 @@ class From
13201324
13211325 end
13221326
1327+class FromDict
1328+ include JSON::Serializable
1329+
1330+end
1331+
13231332 class FromJson
13241333 include JSON::Serializable
13251334
@@ -2130,6 +2139,11 @@ class TimeZone
21302139
21312140 end
21322141
2142+class ToDict
2143+ include JSON::Serializable
2144+
2145+end
2146+
21332147 class ToString
21342148 include JSON::Serializable
21352149
@@ -2701,6 +2715,8 @@ alias UnionFriend = Float64 | Friend
27012715
27022716 alias UnionFrom = Float64 | From
27032717
2718+alias UnionFromDict = Float64 | FromDict
2719+
27042720 alias UnionFromJson = Float64 | FromJson
27052721
27062722 alias UnionFunc = Float64 | Func
@@ -3025,6 +3041,8 @@ alias UnionTimeOnlyConverter = Float64 | TimeOnlyConverter
30253041
30263042 alias UnionTimeZone = Float64 | TimeZone
30273043
3044+alias UnionToDict = Float64 | ToDict
3045+
30283046 alias UnionToString = Float64 | ToString
30293047
30303048 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
@@ -916,6 +919,9 @@ namespace QuickType
916919 [JsonProperty("TimeZone", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
917920 public UnionTimeZone? TimeZone { get; set; }
918921
922+ [JsonProperty("to_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
923+ public UnionToDict? ToDict { get; set; }
924+
919925 [JsonProperty("to_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
920926 public UnionToJson? TopLevelToJson { get; set; }
921927
@@ -1495,6 +1501,10 @@ namespace QuickType
14951501 {
14961502 }
14971503
1504+ public partial record FromDict
1505+ {
1506+ }
1507+
14981508 public partial record Func
14991509 {
15001510 }
@@ -2175,6 +2185,10 @@ namespace QuickType
21752185 {
21762186 }
21772187
2188+ public partial record ToDict
2189+ {
2190+ }
2191+
21782192 public partial record AnyClass
21792193 {
21802194 }
@@ -3412,6 +3426,15 @@ namespace QuickType
34123426 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
34133427 }
34143428
3429+ public partial struct UnionFromDict
3430+ {
3431+ public double? Double;
3432+ public FromDict? FromDict;
3433+
3434+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3435+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3436+ }
3437+
34153438 public partial struct UnionFunc
34163439 {
34173440 public double? Double;
@@ -4942,6 +4965,15 @@ namespace QuickType
49424965 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
49434966 }
49444967
4968+ public partial struct UnionToDict
4969+ {
4970+ public double? Double;
4971+ public ToDict? ToDict;
4972+
4973+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
4974+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
4975+ }
4976+
49454977 public partial struct UnionAnyUnion
49464978 {
49474979 public AnyClass? AnyClass;
@@ -5625,6 +5657,7 @@ namespace QuickType
56255657 UnionForeachConverter.Singleton,
56265658 UnionFriendConverter.Singleton,
56275659 UnionFromConverter.Singleton,
5660+ UnionFromDictConverter.Singleton,
56285661 UnionFromJsonConverter.Singleton,
56295662 UnionFuncConverter.Singleton,
56305663 UnionFunctionConverter.Singleton,
@@ -5759,6 +5792,7 @@ namespace QuickType
57595792 UnionThrowConverter.Singleton,
57605793 UnionThrowsConverter.Singleton,
57615794 UnionToStringConverter.Singleton,
5795+ UnionToDictConverter.Singleton,
57625796 UnionToJsonConverter.Singleton,
57635797 UnionTopLevelConverter.Singleton,
57645798 UnionTransientConverter.Singleton,
@@ -12258,6 +12292,44 @@ namespace QuickType
1225812292 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1225912293 }
1226012294
12295+ internal class UnionFromDictConverter : JsonConverter
12296+ {
12297+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict) || t == typeof(UnionFromDict?);
12298+
12299+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
12300+ {
12301+ switch (reader.TokenType)
12302+ {
12303+ case JsonToken.Integer:
12304+ case JsonToken.Float:
12305+ var doubleValue = serializer.Deserialize<double>(reader);
12306+ return new UnionFromDict { Double = doubleValue };
12307+ case JsonToken.StartObject:
12308+ var objectValue = serializer.Deserialize<FromDict>(reader);
12309+ return new UnionFromDict { FromDict = objectValue };
12310+ }
12311+ throw new Exception("Cannot unmarshal type UnionFromDict");
12312+ }
12313+
12314+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
12315+ {
12316+ var value = (UnionFromDict)untypedValue;
12317+ if (value.Double != null)
12318+ {
12319+ serializer.Serialize(writer, value.Double.Value);
12320+ return;
12321+ }
12322+ if (value.FromDict != null)
12323+ {
12324+ serializer.Serialize(writer, value.FromDict);
12325+ return;
12326+ }
12327+ throw new Exception("Cannot marshal type UnionFromDict");
12328+ }
12329+
12330+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12331+ }
12332+
1226112333 internal class UnionFromJsonConverter : JsonConverter
1226212334 {
1226312335 public override bool CanConvert(Type t) => t == typeof(UnionFromJson) || t == typeof(UnionFromJson?);
@@ -17350,6 +17422,44 @@ namespace QuickType
1735017422 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1735117423 }
1735217424
17425+ internal class UnionToDictConverter : JsonConverter
17426+ {
17427+ public override bool CanConvert(Type t) => t == typeof(UnionToDict) || t == typeof(UnionToDict?);
17428+
17429+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
17430+ {
17431+ switch (reader.TokenType)
17432+ {
17433+ case JsonToken.Integer:
17434+ case JsonToken.Float:
17435+ var doubleValue = serializer.Deserialize<double>(reader);
17436+ return new UnionToDict { Double = doubleValue };
17437+ case JsonToken.StartObject:
17438+ var objectValue = serializer.Deserialize<ToDict>(reader);
17439+ return new UnionToDict { ToDict = objectValue };
17440+ }
17441+ throw new Exception("Cannot unmarshal type UnionToDict");
17442+ }
17443+
17444+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
17445+ {
17446+ var value = (UnionToDict)untypedValue;
17447+ if (value.Double != null)
17448+ {
17449+ serializer.Serialize(writer, value.Double.Value);
17450+ return;
17451+ }
17452+ if (value.ToDict != null)
17453+ {
17454+ serializer.Serialize(writer, value.ToDict);
17455+ return;
17456+ }
17457+ throw new Exception("Cannot marshal type UnionToDict");
17458+ }
17459+
17460+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
17461+ }
17462+
1735317463 internal class UnionToJsonConverter : JsonConverter
1735417464 {
1735517465 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; }
@@ -1210,6 +1214,10 @@ namespace QuickType
12101214 [JsonPropertyName("TimeZone")]
12111215 public UnionTimeZone? TimeZone { get; set; }
12121216
1217+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1218+ [JsonPropertyName("to_dict")]
1219+ public UnionToDict? ToDict { get; set; }
1220+
12131221 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
12141222 [JsonPropertyName("to_json")]
12151223 public UnionToJson? TopLevelToJson { get; set; }
@@ -1839,6 +1847,10 @@ namespace QuickType
18391847 {
18401848 }
18411849
1850+ public partial class FromDict
1851+ {
1852+ }
1853+
18421854 public partial class Func
18431855 {
18441856 }
@@ -2523,6 +2535,10 @@ namespace QuickType
25232535 {
25242536 }
25252537
2538+ public partial class ToDict
2539+ {
2540+ }
2541+
25262542 public partial class AnyClass
25272543 {
25282544 }
@@ -3766,6 +3782,15 @@ namespace QuickType
37663782 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
37673783 }
37683784
3785+ public partial struct UnionFromDict
3786+ {
3787+ public double? Double;
3788+ public FromDict? FromDict;
3789+
3790+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3791+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3792+ }
3793+
37693794 public partial struct UnionFunc
37703795 {
37713796 public double? Double;
@@ -5305,6 +5330,15 @@ namespace QuickType
53055330 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
53065331 }
53075332
5333+ public partial struct UnionToDict
5334+ {
5335+ public double? Double;
5336+ public ToDict? ToDict;
5337+
5338+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
5339+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
5340+ }
5341+
53085342 public partial struct UnionAnyUnion
53095343 {
53105344 public AnyClass? AnyClass;
@@ -5959,6 +5993,7 @@ namespace QuickType
59595993 UnionForeachConverter.Singleton,
59605994 UnionFriendConverter.Singleton,
59615995 UnionFromConverter.Singleton,
5996+ UnionFromDictConverter.Singleton,
59625997 UnionFromJsonConverter.Singleton,
59635998 UnionFuncConverter.Singleton,
59645999 UnionFunctionConverter.Singleton,
@@ -6093,6 +6128,7 @@ namespace QuickType
60936128 UnionThrowConverter.Singleton,
60946129 UnionThrowsConverter.Singleton,
60956130 UnionToStringConverter.Singleton,
6131+ UnionToDictConverter.Singleton,
60966132 UnionToJsonConverter.Singleton,
60976133 UnionTopLevelConverter.Singleton,
60986134 UnionTransientConverter.Singleton,
@@ -12254,6 +12290,42 @@ namespace QuickType
1225412290 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1225512291 }
1225612292
12293+ internal class UnionFromDictConverter : JsonConverter<UnionFromDict>
12294+ {
12295+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict);
12296+
12297+ public override UnionFromDict Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
12298+ {
12299+ switch (reader.TokenType)
12300+ {
12301+ case JsonTokenType.Number:
12302+ var doubleValue1 = reader.GetDouble();
12303+ return new UnionFromDict { Double = doubleValue1 };
12304+ case JsonTokenType.StartObject:
12305+ var objectValue = JsonSerializer.Deserialize<FromDict>(ref reader, options);
12306+ return new UnionFromDict { FromDict = objectValue };
12307+ }
12308+ throw new JsonException("Cannot unmarshal type UnionFromDict");
12309+ }
12310+
12311+ public override void Write(Utf8JsonWriter writer, UnionFromDict value, JsonSerializerOptions options)
12312+ {
12313+ if (value.Double != null)
12314+ {
12315+ JsonSerializer.Serialize(writer, value.Double.Value, options);
12316+ return;
12317+ }
12318+ if (value.FromDict != null)
12319+ {
12320+ JsonSerializer.Serialize(writer, value.FromDict, options);
12321+ return;
12322+ }
12323+ throw new NotSupportedException("Cannot marshal type UnionFromDict");
12324+ }
12325+
12326+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12327+ }
12328+
1225712329 internal class UnionFromJsonConverter : JsonConverter<UnionFromJson>
1225812330 {
1225912331 public override bool CanConvert(Type t) => t == typeof(UnionFromJson);
@@ -17078,6 +17150,42 @@ namespace QuickType
1707817150 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1707917151 }
1708017152
17153+ internal class UnionToDictConverter : JsonConverter<UnionToDict>
17154+ {
17155+ public override bool CanConvert(Type t) => t == typeof(UnionToDict);
17156+
17157+ public override UnionToDict Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
17158+ {
17159+ switch (reader.TokenType)
17160+ {
17161+ case JsonTokenType.Number:
17162+ var doubleValue1 = reader.GetDouble();
17163+ return new UnionToDict { Double = doubleValue1 };
17164+ case JsonTokenType.StartObject:
17165+ var objectValue = JsonSerializer.Deserialize<ToDict>(ref reader, options);
17166+ return new UnionToDict { ToDict = objectValue };
17167+ }
17168+ throw new JsonException("Cannot unmarshal type UnionToDict");
17169+ }
17170+
17171+ public override void Write(Utf8JsonWriter writer, UnionToDict value, JsonSerializerOptions options)
17172+ {
17173+ if (value.Double != null)
17174+ {
17175+ JsonSerializer.Serialize(writer, value.Double.Value, options);
17176+ return;
17177+ }
17178+ if (value.ToDict != null)
17179+ {
17180+ JsonSerializer.Serialize(writer, value.ToDict, options);
17181+ return;
17182+ }
17183+ throw new NotSupportedException("Cannot marshal type UnionToDict");
17184+ }
17185+
17186+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
17187+ }
17188+
1708117189 internal class UnionToJsonConverter : JsonConverter<UnionToJson>
1708217190 {
1708317191 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
@@ -916,6 +919,9 @@ namespace QuickType
916919 [JsonProperty("TimeZone", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
917920 public UnionTimeZone? TimeZone { get; set; }
918921
922+ [JsonProperty("to_dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
923+ public UnionToDict? ToDict { get; set; }
924+
919925 [JsonProperty("to_json", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
920926 public UnionToJson? TopLevelToJson { get; set; }
921927
@@ -1503,6 +1509,10 @@ namespace QuickType
15031509 {
15041510 }
15051511
1512+ public partial class FromDict
1513+ {
1514+ }
1515+
15061516 public partial class Func
15071517 {
15081518 }
@@ -2187,6 +2197,10 @@ namespace QuickType
21872197 {
21882198 }
21892199
2200+ public partial class ToDict
2201+ {
2202+ }
2203+
21902204 public partial class AnyClass
21912205 {
21922206 }
@@ -3430,6 +3444,15 @@ namespace QuickType
34303444 public static implicit operator UnionFrom(From From) => new UnionFrom { From = From };
34313445 }
34323446
3447+ public partial struct UnionFromDict
3448+ {
3449+ public double? Double;
3450+ public FromDict? FromDict;
3451+
3452+ public static implicit operator UnionFromDict(double Double) => new UnionFromDict { Double = Double };
3453+ public static implicit operator UnionFromDict(FromDict FromDict) => new UnionFromDict { FromDict = FromDict };
3454+ }
3455+
34333456 public partial struct UnionFunc
34343457 {
34353458 public double? Double;
@@ -4969,6 +4992,15 @@ namespace QuickType
49694992 public static implicit operator UnionTimeZone(TimeZone TimeZone) => new UnionTimeZone { TimeZone = TimeZone };
49704993 }
49714994
4995+ public partial struct UnionToDict
4996+ {
4997+ public double? Double;
4998+ public ToDict? ToDict;
4999+
5000+ public static implicit operator UnionToDict(double Double) => new UnionToDict { Double = Double };
5001+ public static implicit operator UnionToDict(ToDict ToDict) => new UnionToDict { ToDict = ToDict };
5002+ }
5003+
49725004 public partial struct UnionAnyUnion
49735005 {
49745006 public AnyClass? AnyClass;
@@ -5625,6 +5657,7 @@ namespace QuickType
56255657 UnionForeachConverter.Singleton,
56265658 UnionFriendConverter.Singleton,
56275659 UnionFromConverter.Singleton,
5660+ UnionFromDictConverter.Singleton,
56285661 UnionFromJsonConverter.Singleton,
56295662 UnionFuncConverter.Singleton,
56305663 UnionFunctionConverter.Singleton,
@@ -5759,6 +5792,7 @@ namespace QuickType
57595792 UnionThrowConverter.Singleton,
57605793 UnionThrowsConverter.Singleton,
57615794 UnionToStringConverter.Singleton,
5795+ UnionToDictConverter.Singleton,
57625796 UnionToJsonConverter.Singleton,
57635797 UnionTopLevelConverter.Singleton,
57645798 UnionTransientConverter.Singleton,
@@ -12258,6 +12292,44 @@ namespace QuickType
1225812292 public static readonly UnionFromConverter Singleton = new UnionFromConverter();
1225912293 }
1226012294
12295+ internal class UnionFromDictConverter : JsonConverter
12296+ {
12297+ public override bool CanConvert(Type t) => t == typeof(UnionFromDict) || t == typeof(UnionFromDict?);
12298+
12299+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
12300+ {
12301+ switch (reader.TokenType)
12302+ {
12303+ case JsonToken.Integer:
12304+ case JsonToken.Float:
12305+ var doubleValue = serializer.Deserialize<double>(reader);
12306+ return new UnionFromDict { Double = doubleValue };
12307+ case JsonToken.StartObject:
12308+ var objectValue = serializer.Deserialize<FromDict>(reader);
12309+ return new UnionFromDict { FromDict = objectValue };
12310+ }
12311+ throw new Exception("Cannot unmarshal type UnionFromDict");
12312+ }
12313+
12314+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
12315+ {
12316+ var value = (UnionFromDict)untypedValue;
12317+ if (value.Double != null)
12318+ {
12319+ serializer.Serialize(writer, value.Double.Value);
12320+ return;
12321+ }
12322+ if (value.FromDict != null)
12323+ {
12324+ serializer.Serialize(writer, value.FromDict);
12325+ return;
12326+ }
12327+ throw new Exception("Cannot marshal type UnionFromDict");
12328+ }
12329+
12330+ public static readonly UnionFromDictConverter Singleton = new UnionFromDictConverter();
12331+ }
12332+
1226112333 internal class UnionFromJsonConverter : JsonConverter
1226212334 {
1226312335 public override bool CanConvert(Type t) => t == typeof(UnionFromJson) || t == typeof(UnionFromJson?);
@@ -17350,6 +17422,44 @@ namespace QuickType
1735017422 public static readonly UnionToStringConverter Singleton = new UnionToStringConverter();
1735117423 }
1735217424
17425+ internal class UnionToDictConverter : JsonConverter
17426+ {
17427+ public override bool CanConvert(Type t) => t == typeof(UnionToDict) || t == typeof(UnionToDict?);
17428+
17429+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
17430+ {
17431+ switch (reader.TokenType)
17432+ {
17433+ case JsonToken.Integer:
17434+ case JsonToken.Float:
17435+ var doubleValue = serializer.Deserialize<double>(reader);
17436+ return new UnionToDict { Double = doubleValue };
17437+ case JsonToken.StartObject:
17438+ var objectValue = serializer.Deserialize<ToDict>(reader);
17439+ return new UnionToDict { ToDict = objectValue };
17440+ }
17441+ throw new Exception("Cannot unmarshal type UnionToDict");
17442+ }
17443+
17444+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
17445+ {
17446+ var value = (UnionToDict)untypedValue;
17447+ if (value.Double != null)
17448+ {
17449+ serializer.Serialize(writer, value.Double.Value);
17450+ return;
17451+ }
17452+ if (value.ToDict != null)
17453+ {
17454+ serializer.Serialize(writer, value.ToDict);
17455+ return;
17456+ }
17457+ throw new Exception("Cannot marshal type UnionToDict");
17458+ }
17459+
17460+ public static readonly UnionToDictConverter Singleton = new UnionToDictConverter();
17461+ }
17462+
1735317463 internal class UnionToJsonConverter : JsonConverter
1735417464 {
1735517465 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;
@@ -306,6 +307,7 @@ class TopLevel {
306307 final dynamic timeOnly;
307308 final dynamic timeOnlyConverter;
308309 final dynamic timeZone;
310+ final dynamic toDict;
309311 final dynamic topLevelToJson;
310312 final dynamic topLevel;
311313 final dynamic topLevelToString;
@@ -472,6 +474,7 @@ class TopLevel {
472474 this.formatException,
473475 this.friend,
474476 this.from,
477+ this.fromDict,
475478 this.topLevelFromJson,
476479 this.func,
477480 this.function,
@@ -647,6 +650,7 @@ class TopLevel {
647650 this.timeOnly,
648651 this.timeOnlyConverter,
649652 this.timeZone,
653+ this.toDict,
650654 this.topLevelToJson,
651655 this.topLevel,
652656 this.topLevelToString,
@@ -814,6 +818,7 @@ class TopLevel {
814818 formatException: json["FormatException"],
815819 friend: json["friend"],
816820 from: json["from"],
821+ fromDict: json["from_dict"],
817822 topLevelFromJson: json["from_json"],
818823 func: json["func"],
819824 function: json["function"],
@@ -989,6 +994,7 @@ class TopLevel {
989994 timeOnly: json["TimeOnly"],
990995 timeOnlyConverter: json["TimeOnlyConverter"],
991996 timeZone: json["TimeZone"],
997+ toDict: json["to_dict"],
992998 topLevelToJson: json["to_json"],
993999 topLevel: json["top_level"],
9941000 topLevelToString: json["toString"],
@@ -1156,6 +1162,7 @@ class TopLevel {
11561162 "FormatException": formatException,
11571163 "friend": friend,
11581164 "from": from,
1165+ "from_dict": fromDict,
11591166 "from_json": topLevelFromJson,
11601167 "func": func,
11611168 "function": function,
@@ -1331,6 +1338,7 @@ class TopLevel {
13311338 "TimeOnly": timeOnly,
13321339 "TimeOnlyConverter": timeOnlyConverter,
13331340 "TimeZone": timeZone,
1341+ "to_dict": toDict,
13341342 "to_json": topLevelToJson,
13351343 "top_level": topLevel,
13361344 "toString": topLevelToString,
@@ -2296,6 +2304,16 @@ class From {
22962304 };
22972305 }
22982306
2307+class FromDict {
2308+ FromDict();
2309+
2310+ factory FromDict.fromJson(Map<String, dynamic> json) => FromDict(
2311+ );
2312+
2313+ Map<String, dynamic> toJson() => {
2314+ };
2315+}
2316+
22992317 class Func {
23002318 Func();
23012319
@@ -3846,6 +3864,16 @@ class TimeZone {
38463864 };
38473865 }
38483866
3867+class ToDict {
3868+ ToDict();
3869+
3870+ factory ToDict.fromJson(Map<String, dynamic> json) => ToDict(
3871+ );
3872+
3873+ Map<String, dynamic> toJson() => {
3874+ };
3875+}
3876+
38493877 class TopLevelClass {
38503878 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
@@ -8067,6 +8096,35 @@ defmodule TimeZone do
80678096 end
80688097 end
80698098
8099+defmodule ToDict do
8100+ defstruct []
8101+
8102+ @type t :: %__MODULE__{
8103+ }
8104+
8105+ def from_map(m) when is_map(m) do
8106+ %ToDict{
8107+ }
8108+ end
8109+
8110+ def from_json(json) do
8111+ json
8112+ |> Jason.decode!()
8113+ |> from_map()
8114+ end
8115+
8116+ def to_map(_struct) do
8117+ %{
8118+ }
8119+ end
8120+
8121+ def to_json(struct) do
8122+ struct
8123+ |> to_map()
8124+ |> Jason.encode!()
8125+ end
8126+end
8127+
80708128 defmodule ToJSON do
80718129 defstruct []
80728130
@@ -9808,7 +9866,7 @@ defmodule Yield do
98089866 end
98099867
98109868 defmodule TopLevel do
9811- 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, :k_serializer, :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, :primitive_kind, :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, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :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, :use_serializers, :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]
9869+ 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, :k_serializer, :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, :primitive_kind, :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, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :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, :use_serializers, :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]
98129870
98139871 @type t :: %__MODULE__{
98149872 empty: Empty.t() | float() | nil,
@@ -9933,6 +9991,7 @@ defmodule TopLevel do
99339991 format_exception: FormatException.t() | float() | nil,
99349992 friend: Friend.t() | float() | nil,
99359993 from: From.t() | float() | nil,
9994+ from_dict: FromDict.t() | float() | nil,
99369995 from_json: FromJSON.t() | float() | nil,
99379996 func: Func.t() | float() | nil,
99389997 function: FunctionClass.t() | float() | nil,
@@ -10108,6 +10167,7 @@ defmodule TopLevel do
1010810167 time_only: TimeOnly.t() | float() | nil,
1010910168 time_only_converter: TimeOnlyConverter.t() | float() | nil,
1011010169 time_zone: TimeZone.t() | float() | nil,
10170+ to_dict: ToDict.t() | float() | nil,
1011110171 to_json: ToJSON.t() | float() | nil,
1011210172 top_level: TopLevelClass.t() | float() | nil,
1011310173 to_string: ToString.t() | float() | nil,
@@ -11612,6 +11672,18 @@ defmodule TopLevel do
1161211672 def encode_from(value) when is_nil(value), do: value
1161311673 def encode_from(_), do: {:error, "Unexpected type when encoding TopLevel.from"}
1161411674
11675+ def decode_from_dict(%{} = value), do: FromDict.from_map(value)
11676+ def decode_from_dict(value) when is_float(value), do: value
11677+ def decode_from_dict(value) when is_integer(value), do: value
11678+ def decode_from_dict(value) when is_nil(value), do: value
11679+ def decode_from_dict(_), do: {:error, "Unexpected type when decoding TopLevel.from_dict"}
11680+
11681+ def encode_from_dict(%FromDict{} = value), do: FromDict.to_map(value)
11682+ def encode_from_dict(value) when is_float(value), do: value
11683+ def encode_from_dict(value) when is_integer(value), do: value
11684+ def encode_from_dict(value) when is_nil(value), do: value
11685+ def encode_from_dict(_), do: {:error, "Unexpected type when encoding TopLevel.from_dict"}
11686+
1161511687 def decode_from_json(%{} = value), do: FromJSON.from_map(value)
1161611688 def decode_from_json(value) when is_float(value), do: value
1161711689 def decode_from_json(value) when is_integer(value), do: value
@@ -13712,6 +13784,18 @@ defmodule TopLevel do
1371213784 def encode_time_zone(value) when is_nil(value), do: value
1371313785 def encode_time_zone(_), do: {:error, "Unexpected type when encoding TopLevel.time_zone"}
1371413786
13787+ def decode_to_dict(%{} = value), do: ToDict.from_map(value)
13788+ def decode_to_dict(value) when is_float(value), do: value
13789+ def decode_to_dict(value) when is_integer(value), do: value
13790+ def decode_to_dict(value) when is_nil(value), do: value
13791+ def decode_to_dict(_), do: {:error, "Unexpected type when decoding TopLevel.to_dict"}
13792+
13793+ def encode_to_dict(%ToDict{} = value), do: ToDict.to_map(value)
13794+ def encode_to_dict(value) when is_float(value), do: value
13795+ def encode_to_dict(value) when is_integer(value), do: value
13796+ def encode_to_dict(value) when is_nil(value), do: value
13797+ def encode_to_dict(_), do: {:error, "Unexpected type when encoding TopLevel.to_dict"}
13798+
1371513799 def decode_to_json(%{} = value), do: ToJSON.from_map(value)
1371613800 def decode_to_json(value) when is_float(value), do: value
1371713801 def decode_to_json(value) when is_integer(value), do: value
@@ -14340,6 +14424,7 @@ defmodule TopLevel do
1434014424 format_exception: decode_format_exception(m["FormatException"]),
1434114425 friend: decode_friend(m["friend"]),
1434214426 from: decode_from(m["from"]),
14427+ from_dict: decode_from_dict(m["from_dict"]),
1434314428 from_json: decode_from_json(m["from_json"]),
1434414429 func: decode_func(m["func"]),
1434514430 function: decode_function(m["function"]),
@@ -14515,6 +14600,7 @@ defmodule TopLevel do
1451514600 time_only: decode_time_only(m["TimeOnly"]),
1451614601 time_only_converter: decode_time_only_converter(m["TimeOnlyConverter"]),
1451714602 time_zone: decode_time_zone(m["TimeZone"]),
14603+ to_dict: decode_to_dict(m["to_dict"]),
1451814604 to_json: decode_to_json(m["to_json"]),
1451914605 top_level: decode_top_level(m["top_level"]),
1452014606 to_string: decode_to_string(m["toString"]),
@@ -14690,6 +14776,7 @@ defmodule TopLevel do
1469014776 "FormatException" => encode_format_exception(struct.format_exception),
1469114777 "friend" => encode_friend(struct.friend),
1469214778 "from" => encode_from(struct.from),
14779+ "from_dict" => encode_from_dict(struct.from_dict),
1469314780 "from_json" => encode_from_json(struct.from_json),
1469414781 "func" => encode_func(struct.func),
1469514782 "function" => encode_function(struct.function),
@@ -14865,6 +14952,7 @@ defmodule TopLevel do
1486514952 "TimeOnly" => encode_time_only(struct.time_only),
1486614953 "TimeOnlyConverter" => encode_time_only_converter(struct.time_only_converter),
1486714954 "TimeZone" => encode_time_zone(struct.time_zone),
14955+ "to_dict" => encode_to_dict(struct.to_dict),
1486814956 "to_json" => encode_to_json(struct.to_json),
1486914957 "top_level" => encode_top_level(struct.top_level),
1487014958 "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
@@ -315,6 +316,7 @@ module QuickType exposing
315316 , TimeOnly
316317 , TimeOnlyConverter
317318 , TimeZone
319+ , ToDict
318320 , ToJSON
319321 , ToString
320322 , TopLevel
@@ -461,6 +463,7 @@ module QuickType exposing
461463 , UnionFormatException(..)
462464 , UnionFriend(..)
463465 , UnionFrom(..)
466+ , UnionFromDict(..)
464467 , UnionFromJSON(..)
465468 , UnionFunc(..)
466469 , UnionFunction(..)
@@ -653,6 +656,7 @@ module QuickType exposing
653656 , UnionTimeOnly(..)
654657 , UnionTimeOnlyConverter(..)
655658 , UnionTimeZone(..)
659+ , UnionToDict(..)
656660 , UnionToJSON(..)
657661 , UnionToString(..)
658662 , UnionTopLevel(..)
@@ -821,6 +825,7 @@ type alias QuickType =
821825 , formatException : Maybe UnionFormatException
822826 , friend : Maybe UnionFriend
823827 , from : Maybe UnionFrom
828+ , fromDict : Maybe UnionFromDict
824829 , fromJSON : Maybe UnionFromJSON
825830 , func : Maybe UnionFunc
826831 , function : Maybe UnionFunction
@@ -996,6 +1001,7 @@ type alias QuickType =
9961001 , timeOnly : Maybe UnionTimeOnly
9971002 , timeOnlyConverter : Maybe UnionTimeOnlyConverter
9981003 , timeZone : Maybe UnionTimeZone
1004+ , toDict : Maybe UnionToDict
9991005 , toJSON : Maybe UnionToJSON
10001006 , topLevel : Maybe UnionTopLevel
10011007 , toString : Maybe UnionToString
@@ -1904,6 +1910,14 @@ type alias From =
19041910 {
19051911 }
19061912
1913+type UnionFromDict
1914+ = DoubleInUnionFromDict Float
1915+ | FromDictInUnionFromDict FromDict
1916+
1917+type alias FromDict =
1918+ {
1919+ }
1920+
19071921 type UnionFromJSON
19081922 = DoubleInUnionFromJSON Float
19091923 | FromJSONInUnionFromJSON FromJSON
@@ -3440,6 +3454,14 @@ type alias TimeZone =
34403454 {
34413455 }
34423456
3457+type UnionToDict
3458+ = DoubleInUnionToDict Float
3459+ | ToDictInUnionToDict ToDict
3460+
3461+type alias ToDict =
3462+ {
3463+ }
3464+
34433465 type UnionToJSON
34443466 = DoubleInUnionToJSON Float
34453467 | ToJSONInUnionToJSON ToJSON
@@ -3880,6 +3902,7 @@ quickType =
38803902 |> Jpipe.custom (optionalField "FormatException" (Jdec.map Just unionFormatException) Nothing)
38813903 |> Jpipe.custom (optionalField "friend" (Jdec.map Just unionFriend) Nothing)
38823904 |> Jpipe.custom (optionalField "from" (Jdec.map Just unionFrom) Nothing)
3905+ |> Jpipe.custom (optionalField "from_dict" (Jdec.map Just unionFromDict) Nothing)
38833906 |> Jpipe.custom (optionalField "from_json" (Jdec.map Just unionFromJSON) Nothing)
38843907 |> Jpipe.custom (optionalField "func" (Jdec.map Just unionFunc) Nothing)
38853908 |> Jpipe.custom (optionalField "function" (Jdec.map Just unionFunction) Nothing)
@@ -4055,6 +4078,7 @@ quickType =
40554078 |> Jpipe.custom (optionalField "TimeOnly" (Jdec.map Just unionTimeOnly) Nothing)
40564079 |> Jpipe.custom (optionalField "TimeOnlyConverter" (Jdec.map Just unionTimeOnlyConverter) Nothing)
40574080 |> Jpipe.custom (optionalField "TimeZone" (Jdec.map Just unionTimeZone) Nothing)
4081+ |> Jpipe.custom (optionalField "to_dict" (Jdec.map Just unionToDict) Nothing)
40584082 |> Jpipe.custom (optionalField "to_json" (Jdec.map Just unionToJSON) Nothing)
40594083 |> Jpipe.custom (optionalField "top_level" (Jdec.map Just unionTopLevel) Nothing)
40604084 |> Jpipe.custom (optionalField "toString" (Jdec.map Just unionToString) Nothing)
@@ -4223,6 +4247,7 @@ encodeQuickType x =
42234247 , ("FormatException", makeNullableEncoder encodeUnionFormatException x.formatException)
42244248 , ("friend", makeNullableEncoder encodeUnionFriend x.friend)
42254249 , ("from", makeNullableEncoder encodeUnionFrom x.from)
4250+ , ("from_dict", makeNullableEncoder encodeUnionFromDict x.fromDict)
42264251 , ("from_json", makeNullableEncoder encodeUnionFromJSON x.fromJSON)
42274252 , ("func", makeNullableEncoder encodeUnionFunc x.func)
42284253 , ("function", makeNullableEncoder encodeUnionFunction x.function)
@@ -4398,6 +4423,7 @@ encodeQuickType x =
43984423 , ("TimeOnly", makeNullableEncoder encodeUnionTimeOnly x.timeOnly)
43994424 , ("TimeOnlyConverter", makeNullableEncoder encodeUnionTimeOnlyConverter x.timeOnlyConverter)
44004425 , ("TimeZone", makeNullableEncoder encodeUnionTimeZone x.timeZone)
4426+ , ("to_dict", makeNullableEncoder encodeUnionToDict x.toDict)
44014427 , ("to_json", makeNullableEncoder encodeUnionToJSON x.toJSON)
44024428 , ("top_level", makeNullableEncoder encodeUnionTopLevel x.topLevel)
44034429 , ("toString", makeNullableEncoder encodeUnionToString x.toString)
@@ -6818,6 +6844,28 @@ encodeFrom x =
68186844 [
68196845 ]
68206846
6847+unionFromDict : Jdec.Decoder UnionFromDict
6848+unionFromDict =
6849+ Jdec.oneOf
6850+ [ Jdec.map DoubleInUnionFromDict Jdec.float
6851+ , Jdec.map FromDictInUnionFromDict fromDict
6852+ ]
6853+
6854+encodeUnionFromDict : UnionFromDict -> Jenc.Value
6855+encodeUnionFromDict x = case x of
6856+ DoubleInUnionFromDict y -> Jenc.float y
6857+ FromDictInUnionFromDict y -> encodeFromDict y
6858+
6859+fromDict : Jdec.Decoder FromDict
6860+fromDict =
6861+ Jdec.dict Jdec.value |> Jdec.map (\_ -> FromDict)
6862+
6863+encodeFromDict : FromDict -> Jenc.Value
6864+encodeFromDict x =
6865+ Jenc.object
6866+ [
6867+ ]
6868+
68216869 unionFromJSON : Jdec.Decoder UnionFromJSON
68226870 unionFromJSON =
68236871 Jdec.oneOf
@@ -11042,6 +11090,28 @@ encodeTimeZone x =
1104211090 [
1104311091 ]
1104411092
11093+unionToDict : Jdec.Decoder UnionToDict
11094+unionToDict =
11095+ Jdec.oneOf
11096+ [ Jdec.map DoubleInUnionToDict Jdec.float
11097+ , Jdec.map ToDictInUnionToDict toDict
11098+ ]
11099+
11100+encodeUnionToDict : UnionToDict -> Jenc.Value
11101+encodeUnionToDict x = case x of
11102+ DoubleInUnionToDict y -> Jenc.float y
11103+ ToDictInUnionToDict y -> encodeToDict y
11104+
11105+toDict : Jdec.Decoder ToDict
11106+toDict =
11107+ Jdec.dict Jdec.value |> Jdec.map (\_ -> ToDict)
11108+
11109+encodeToDict : ToDict -> Jenc.Value
11110+encodeToDict x =
11111+ Jenc.object
11112+ [
11113+ ]
11114+
1104511115 unionToJSON : Jdec.Decoder UnionToJSON
1104611116 unionToJSON =
1104711117 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;
@@ -307,6 +308,7 @@ export type TopLevel = {
307308 TimeOnly?: UnionTimeOnly;
308309 TimeOnlyConverter?: UnionTimeOnlyConverter;
309310 TimeZone?: UnionTimeZone;
311+ to_dict?: UnionToDict;
310312 to_json?: UnionToJSON;
311313 top_level?: UnionTopLevel;
312314 toString?: UnionToString;
@@ -1202,6 +1204,11 @@ export type UnionFrom = From | number;
12021204 export type From = {
12031205 };
12041206
1207+export type UnionFromDict = FromDict | number;
1208+
1209+export type FromDict = {
1210+};
1211+
12051212 export type UnionFromJSON = FromJSON | number;
12061213
12071214 export type FromJSON = {
@@ -1872,6 +1879,11 @@ export type UnionToString = ToString | number;
18721879 export type ToString = {
18731880 };
18741881
1882+export type UnionToDict = ToDict | number;
1883+
1884+export type ToDict = {
1885+};
1886+
18751887 export type UnionToJSON = ToJSON | number;
18761888
18771889 export type ToJSON = {
@@ -2350,6 +2362,7 @@ const typeMap: any = {
23502362 { json: "FormatException", js: "FormatException", typ: u(undefined, u(r("FormatException"), 3.14)) },
23512363 { json: "friend", js: "friend", typ: u(undefined, u(r("Friend"), 3.14)) },
23522364 { json: "from", js: "from", typ: u(undefined, u(r("From"), 3.14)) },
2365+ { json: "from_dict", js: "from_dict", typ: u(undefined, u(r("FromDict"), 3.14)) },
23532366 { json: "from_json", js: "from_json", typ: u(undefined, u(r("FromJSON"), 3.14)) },
23542367 { json: "func", js: "func", typ: u(undefined, u(r("Func"), 3.14)) },
23552368 { json: "function", js: "function", typ: u(undefined, u(r("Function"), 3.14)) },
@@ -2525,6 +2538,7 @@ const typeMap: any = {
25252538 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(r("TimeOnly"), 3.14)) },
25262539 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(r("TimeOnlyConverter"), 3.14)) },
25272540 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(r("TimeZone"), 3.14)) },
2541+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(r("ToDict"), 3.14)) },
25282542 { json: "to_json", js: "to_json", typ: u(undefined, u(r("ToJSON"), 3.14)) },
25292543 { json: "top_level", js: "top_level", typ: u(undefined, u(r("TopLevelClass"), 3.14)) },
25302544 { json: "toString", js: "toString", typ: u(undefined, u(r("ToString"), 3.14)) },
@@ -2908,6 +2922,8 @@ const typeMap: any = {
29082922 ], false),
29092923 "From": o([
29102924 ], false),
2925+ "FromDict": o([
2926+ ], false),
29112927 "FromJSON": o([
29122928 ], false),
29132929 "Func": o([
@@ -3176,6 +3192,8 @@ const typeMap: any = {
31763192 ], false),
31773193 "ToString": o([
31783194 ], false),
3195+ "ToDict": o([
3196+ ], false),
31793197 "ToJSON": o([
31803198 ], false),
31813199 "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"`
@@ -319,6 +320,7 @@ type TopLevel struct {
319320 TimeOnly *UnionTimeOnly `json:"TimeOnly"`
320321 TimeOnlyConverter *UnionTimeOnlyConverter `json:"TimeOnlyConverter"`
321322 TimeZone *UnionTimeZone `json:"TimeZone"`
323+ ToDict *UnionToDict `json:"to_dict"`
322324 ToJSON *UnionToJSON `json:"to_json"`
323325 TopLevel *UnionTopLevel `json:"top_level"`
324326 ToString *UnionToString `json:"toString"`
@@ -708,6 +710,9 @@ type Friend struct {
708710 type From struct {
709711 }
710712
713+type FromDict struct {
714+}
715+
711716 type FromJSON struct {
712717 }
713718
@@ -1227,6 +1232,9 @@ type TimeOnlyConverter struct {
12271232 type TimeZone struct {
12281233 }
12291234
1235+type ToDict struct {
1236+}
1237+
12301238 type ToJSON struct {
12311239 }
12321240
@@ -3907,6 +3915,28 @@ func (x *UnionFrom) MarshalJSON() ([]byte, error) {
39073915 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.From != nil, x.From, false, nil, false, nil, false)
39083916 }
39093917
3918+type UnionFromDict struct {
3919+ Double *float64
3920+ FromDict *FromDict
3921+}
3922+
3923+func (x *UnionFromDict) UnmarshalJSON(data []byte) error {
3924+ x.FromDict = nil
3925+ var c FromDict
3926+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
3927+ if err != nil {
3928+ return err
3929+ }
3930+ if object {
3931+ x.FromDict = &c
3932+ }
3933+ return nil
3934+}
3935+
3936+func (x *UnionFromDict) MarshalJSON() ([]byte, error) {
3937+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.FromDict != nil, x.FromDict, false, nil, false, nil, false)
3938+}
3939+
39103940 type UnionFromJSON struct {
39113941 Double *float64
39123942 FromJSON *FromJSON
@@ -7713,6 +7743,28 @@ func (x *UnionTimeZone) MarshalJSON() ([]byte, error) {
77137743 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.TimeZone != nil, x.TimeZone, false, nil, false, nil, false)
77147744 }
77157745
7746+type UnionToDict struct {
7747+ Double *float64
7748+ ToDict *ToDict
7749+}
7750+
7751+func (x *UnionToDict) UnmarshalJSON(data []byte) error {
7752+ x.ToDict = nil
7753+ var c ToDict
7754+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
7755+ if err != nil {
7756+ return err
7757+ }
7758+ if object {
7759+ x.ToDict = &c
7760+ }
7761+ return nil
7762+}
7763+
7764+func (x *UnionToDict) MarshalJSON() ([]byte, error) {
7765+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.ToDict != nil, x.ToDict, false, nil, false, nil, false)
7766+}
7767+
77167768 type UnionToJSON struct {
77177769 Double *float64
77187770 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 (..)
@@ -303,6 +304,7 @@ module QuickType
303304 , TimeOnly (..)
304305 , TimeOnlyConverter (..)
305306 , TimeZone (..)
307+ , ToDict (..)
306308 , ToJSONClass (..)
307309 , ToString (..)
308310 , TopLevel (..)
@@ -450,6 +452,7 @@ module QuickType
450452 , UnionFormatException (..)
451453 , UnionFriend (..)
452454 , UnionFrom (..)
455+ , UnionFromDict (..)
453456 , UnionFromJSON (..)
454457 , UnionFunc (..)
455458 , UnionFunction (..)
@@ -641,6 +644,7 @@ module QuickType
641644 , UnionTimeOnly (..)
642645 , UnionTimeOnlyConverter (..)
643646 , UnionTimeZone (..)
647+ , UnionToDict (..)
644648 , UnionToJSON (..)
645649 , UnionToString (..)
646650 , UnionTopLevel (..)
@@ -811,6 +815,7 @@ data QuickType = QuickType
811815 , formatExceptionQuickType :: Maybe UnionFormatException
812816 , friendQuickType :: Maybe UnionFriend
813817 , fromQuickType :: Maybe UnionFrom
818+ , fromDictQuickType :: Maybe UnionFromDict
814819 , fromJSONQuickType :: Maybe UnionFromJSON
815820 , funcQuickType :: Maybe UnionFunc
816821 , functionQuickType :: Maybe UnionFunction
@@ -986,6 +991,7 @@ data QuickType = QuickType
986991 , timeOnlyQuickType :: Maybe UnionTimeOnly
987992 , timeOnlyConverterQuickType :: Maybe UnionTimeOnlyConverter
988993 , timeZoneQuickType :: Maybe UnionTimeZone
994+ , toDictQuickType :: Maybe UnionToDict
989995 , toJSONQuickType :: Maybe UnionToJSON
990996 , topLevelQuickType :: Maybe UnionTopLevel
991997 , toStringQuickType :: Maybe UnionToString
@@ -2011,6 +2017,15 @@ data From = From
20112017 {
20122018 } deriving (Show)
20132019
2020+data UnionFromDict
2021+ = DoubleInUnionFromDict Double
2022+ | FromDictInUnionFromDict FromDict
2023+ deriving (Show)
2024+
2025+data FromDict = FromDict
2026+ {
2027+ } deriving (Show)
2028+
20142029 data UnionFromJSON
20152030 = DoubleInUnionFromJSON Double
20162031 | FromJSONClassInUnionFromJSON FromJSONClass
@@ -3730,6 +3745,15 @@ data TimeZone = TimeZone
37303745 {
37313746 } deriving (Show)
37323747
3748+data UnionToDict
3749+ = DoubleInUnionToDict Double
3750+ | ToDictInUnionToDict ToDict
3751+ deriving (Show)
3752+
3753+data ToDict = ToDict
3754+ {
3755+ } deriving (Show)
3756+
37333757 data UnionToJSON
37343758 = DoubleInUnionToJSON Double
37353759 | ToJSONClassInUnionToJSON ToJSONClass
@@ -4076,7 +4100,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
40764100 decodeTopLevel = decode
40774101
40784102 instance ToJSON QuickType where
4079- 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 kSerializerQuickType 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 primitiveKindQuickType 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 serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType 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 useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4103+ 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 kSerializerQuickType 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 primitiveKindQuickType 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 serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType 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 useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
40804104 object $ foldMap (maybe [] pure)
40814105 [ ("_" .=) <$> emptyQuickType
40824106 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4200,6 +4224,7 @@ instance ToJSON QuickType where
42004224 , ("FormatException" .=) <$> formatExceptionQuickType
42014225 , ("friend" .=) <$> friendQuickType
42024226 , ("from" .=) <$> fromQuickType
4227+ , ("from_dict" .=) <$> fromDictQuickType
42034228 , ("from_json" .=) <$> fromJSONQuickType
42044229 , ("func" .=) <$> funcQuickType
42054230 , ("function" .=) <$> functionQuickType
@@ -4375,6 +4400,7 @@ instance ToJSON QuickType where
43754400 , ("TimeOnly" .=) <$> timeOnlyQuickType
43764401 , ("TimeOnlyConverter" .=) <$> timeOnlyConverterQuickType
43774402 , ("TimeZone" .=) <$> timeZoneQuickType
4403+ , ("to_dict" .=) <$> toDictQuickType
43784404 , ("to_json" .=) <$> toJSONQuickType
43794405 , ("top_level" .=) <$> topLevelQuickType
43804406 , ("toString" .=) <$> toStringQuickType
@@ -4543,6 +4569,7 @@ instance FromJSON QuickType where
45434569 <*> v .:! "FormatException"
45444570 <*> v .:! "friend"
45454571 <*> v .:! "from"
4572+ <*> v .:! "from_dict"
45464573 <*> v .:! "from_json"
45474574 <*> v .:! "func"
45484575 <*> v .:! "function"
@@ -4718,6 +4745,7 @@ instance FromJSON QuickType where
47184745 <*> v .:! "TimeOnly"
47194746 <*> v .:! "TimeOnlyConverter"
47204747 <*> v .:! "TimeZone"
4748+ <*> v .:! "to_dict"
47214749 <*> v .:! "to_json"
47224750 <*> v .:! "top_level"
47234751 <*> v .:! "toString"
@@ -6287,6 +6315,20 @@ instance ToJSON From where
62876315 instance FromJSON From where
62886316 parseJSON (Object _) = return From
62896317
6318+instance ToJSON UnionFromDict where
6319+ toJSON (DoubleInUnionFromDict x) = toJSON x
6320+ toJSON (FromDictInUnionFromDict x) = toJSON x
6321+
6322+instance FromJSON UnionFromDict where
6323+ parseJSON xs@(Number _) = (fmap DoubleInUnionFromDict . parseJSON) xs
6324+ parseJSON xs@(Object _) = (fmap FromDictInUnionFromDict . parseJSON) xs
6325+
6326+instance ToJSON FromDict where
6327+ toJSON = \_ -> emptyObject
6328+
6329+instance FromJSON FromDict where
6330+ parseJSON (Object _) = return FromDict
6331+
62906332 instance ToJSON UnionFromJSON where
62916333 toJSON (DoubleInUnionFromJSON x) = toJSON x
62926334 toJSON (FromJSONClassInUnionFromJSON x) = toJSON x
@@ -8961,6 +9003,20 @@ instance ToJSON TimeZone where
89619003 instance FromJSON TimeZone where
89629004 parseJSON (Object _) = return TimeZone
89639005
9006+instance ToJSON UnionToDict where
9007+ toJSON (DoubleInUnionToDict x) = toJSON x
9008+ toJSON (ToDictInUnionToDict x) = toJSON x
9009+
9010+instance FromJSON UnionToDict where
9011+ parseJSON xs@(Number _) = (fmap DoubleInUnionToDict . parseJSON) xs
9012+ parseJSON xs@(Object _) = (fmap ToDictInUnionToDict . parseJSON) xs
9013+
9014+instance ToJSON ToDict where
9015+ toJSON = \_ -> emptyObject
9016+
9017+instance FromJSON ToDict where
9018+ parseJSON (Object _) = return ToDict
9019+
89649020 instance ToJSON UnionToJSON where
89659021 toJSON (DoubleInUnionToJSON x) = toJSON x
89669022 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;
@@ -300,6 +301,7 @@ public class TopLevel {
300301 private UnionTimeOnly timeOnly;
301302 private UnionTimeOnlyConverter timeOnlyConverter;
302303 private UnionTimeZone timeZone;
304+ private UnionToDict toDict;
303305 private UnionToJSON toJSON;
304306 private UnionTopLevel topLevel;
305307 private UnionToString toString;
@@ -953,6 +955,11 @@ public class TopLevel {
953955 @JsonProperty("from")
954956 public void setFrom(UnionFrom value) { this.from = value; }
955957
958+ @JsonProperty("from_dict")
959+ public UnionFromDict getFromDict() { return fromDict; }
960+ @JsonProperty("from_dict")
961+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
962+
956963 @JsonProperty("from_json")
957964 public UnionFromJSON getFromJSON() { return fromJSON; }
958965 @JsonProperty("from_json")
@@ -1828,6 +1835,11 @@ public class TopLevel {
18281835 @JsonProperty("TimeZone")
18291836 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
18301837
1838+ @JsonProperty("to_dict")
1839+ public UnionToDict getToDict() { return toDict; }
1840+ @JsonProperty("to_dict")
1841+ public void setToDict(UnionToDict value) { this.toDict = value; }
1842+
18311843 @JsonProperty("to_json")
18321844 public UnionToJSON getToJSON() { return toJSON; }
18331845 @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;
@@ -300,6 +301,7 @@ public class TopLevel {
300301 private UnionTimeOnly timeOnly;
301302 private UnionTimeOnlyConverter timeOnlyConverter;
302303 private UnionTimeZone timeZone;
304+ private UnionToDict toDict;
303305 private UnionToJSON toJSON;
304306 private UnionTopLevel topLevel;
305307 private UnionToString toString;
@@ -953,6 +955,11 @@ public class TopLevel {
953955 @JsonProperty("from")
954956 public void setFrom(UnionFrom value) { this.from = value; }
955957
958+ @JsonProperty("from_dict")
959+ public UnionFromDict getFromDict() { return fromDict; }
960+ @JsonProperty("from_dict")
961+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
962+
956963 @JsonProperty("from_json")
957964 public UnionFromJSON getFromJSON() { return fromJSON; }
958965 @JsonProperty("from_json")
@@ -1828,6 +1835,11 @@ public class TopLevel {
18281835 @JsonProperty("TimeZone")
18291836 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
18301837
1838+ @JsonProperty("to_dict")
1839+ public UnionToDict getToDict() { return toDict; }
1840+ @JsonProperty("to_dict")
1841+ public void setToDict(UnionToDict value) { this.toDict = value; }
1842+
18311843 @JsonProperty("to_json")
18321844 public UnionToJSON getToJSON() { return toJSON; }
18331845 @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;
@@ -300,6 +301,7 @@ public class TopLevel {
300301 private UnionTimeOnly timeOnly;
301302 private UnionTimeOnlyConverter timeOnlyConverter;
302303 private UnionTimeZone timeZone;
304+ private UnionToDict toDict;
303305 private UnionToJSON toJSON;
304306 private UnionTopLevel topLevel;
305307 private UnionToString toString;
@@ -953,6 +955,11 @@ public class TopLevel {
953955 @JsonProperty("from")
954956 public void setFrom(UnionFrom value) { this.from = value; }
955957
958+ @JsonProperty("from_dict")
959+ public UnionFromDict getFromDict() { return fromDict; }
960+ @JsonProperty("from_dict")
961+ public void setFromDict(UnionFromDict value) { this.fromDict = value; }
962+
956963 @JsonProperty("from_json")
957964 public UnionFromJSON getFromJSON() { return fromJSON; }
958965 @JsonProperty("from_json")
@@ -1828,6 +1835,11 @@ public class TopLevel {
18281835 @JsonProperty("TimeZone")
18291836 public void setTimeZone(UnionTimeZone value) { this.timeZone = value; }
18301837
1838+ @JsonProperty("to_dict")
1839+ public UnionToDict getToDict() { return toDict; }
1840+ @JsonProperty("to_dict")
1841+ public void setToDict(UnionToDict value) { this.toDict = value; }
1842+
18311843 @JsonProperty("to_json")
18321844 public UnionToJSON getToJSON() { return toJSON; }
18331845 @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
@@ -183,6 +183,7 @@ let _For;
183183 let _Foreach;
184184 let _Friend;
185185 let _From;
186+let _FromDict;
186187 let _FromJSON;
187188 let _Func;
188189 let _Function;
@@ -317,6 +318,7 @@ let _ThreadLocal;
317318 let _Throw;
318319 let _Throws;
319320 let _ToString;
321+let _ToDict;
320322 let _ToJSON;
321323 let _TopLevelClass;
322324 let _Transient;
@@ -691,6 +693,8 @@ _Friend = PropTypes.shape({
691693 });
692694 _From = PropTypes.shape({
693695 });
696+_FromDict = PropTypes.shape({
697+});
694698 _FromJSON = PropTypes.shape({
695699 });
696700 _Func = PropTypes.shape({
@@ -959,6 +963,8 @@ _Throws = PropTypes.shape({
959963 });
960964 _ToString = PropTypes.shape({
961965 });
966+_ToDict = PropTypes.shape({
967+});
962968 _ToJSON = PropTypes.shape({
963969 });
964970 _TopLevelClass = PropTypes.shape({
@@ -1150,6 +1156,7 @@ _TopLevel = PropTypes.shape({
11501156 "FormatException": PropTypes.oneOfType([_FormatException, PropTypes.number, PropTypes.oneOf([null])]),
11511157 "friend": PropTypes.oneOfType([_Friend, PropTypes.number, PropTypes.oneOf([null])]),
11521158 "from": PropTypes.oneOfType([_From, PropTypes.number, PropTypes.oneOf([null])]),
1159+ "from_dict": PropTypes.oneOfType([_FromDict, PropTypes.number, PropTypes.oneOf([null])]),
11531160 "from_json": PropTypes.oneOfType([_FromJSON, PropTypes.number, PropTypes.oneOf([null])]),
11541161 "func": PropTypes.oneOfType([_Func, PropTypes.number, PropTypes.oneOf([null])]),
11551162 "function": PropTypes.oneOfType([_Function, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1325,6 +1332,7 @@ _TopLevel = PropTypes.shape({
13251332 "TimeOnly": PropTypes.oneOfType([_TimeOnly, PropTypes.number, PropTypes.oneOf([null])]),
13261333 "TimeOnlyConverter": PropTypes.oneOfType([_TimeOnlyConverter, PropTypes.number, PropTypes.oneOf([null])]),
13271334 "TimeZone": PropTypes.oneOfType([_TimeZone, PropTypes.number, PropTypes.oneOf([null])]),
1335+ "to_dict": PropTypes.oneOfType([_ToDict, PropTypes.number, PropTypes.oneOf([null])]),
13281336 "to_json": PropTypes.oneOfType([_ToJSON, PropTypes.number, PropTypes.oneOf([null])]),
13291337 "top_level": PropTypes.oneOfType([_TopLevelClass, PropTypes.number, PropTypes.oneOf([null])]),
13301338 "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)) },
@@ -490,6 +491,7 @@ const typeMap = {
490491 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(r("TimeOnly"), 3.14)) },
491492 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(r("TimeOnlyConverter"), 3.14)) },
492493 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(r("TimeZone"), 3.14)) },
494+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(r("ToDict"), 3.14)) },
493495 { json: "to_json", js: "to_json", typ: u(undefined, u(r("ToJSON"), 3.14)) },
494496 { json: "top_level", js: "top_level", typ: u(undefined, u(r("TopLevelClass"), 3.14)) },
495497 { json: "toString", js: "toString", typ: u(undefined, u(r("ToString"), 3.14)) },
@@ -873,6 +875,8 @@ const typeMap = {
873875 ], false),
874876 "From": o([
875877 ], false),
878+ "FromDict": o([
879+ ], false),
876880 "FromJSON": o([
877881 ], false),
878882 "Func": o([
@@ -1141,6 +1145,8 @@ const typeMap = {
11411145 ], false),
11421146 "ToString": o([
11431147 ], false),
1148+ "ToDict": o([
1149+ ], false),
11441150 "ToJSON": o([
11451151 ], false),
11461152 "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;
@@ -312,6 +313,7 @@
312313 @class QTTimeOnly;
313314 @class QTTimeOnlyConverter;
314315 @class QTTimeZone;
316+@class QTToDict;
315317 @class QTToJSON;
316318 @class QTToString;
317319 @class QTTopLevelClass;
@@ -479,6 +481,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
479481 @property (nonatomic, nullable, copy) id formatException;
480482 @property (nonatomic, nullable, copy) id friend;
481483 @property (nonatomic, nullable, copy) id from;
484+@property (nonatomic, nullable, copy) id fromDict;
482485 @property (nonatomic, nullable, copy) id fromJSON;
483486 @property (nonatomic, nullable, copy) id func;
484487 @property (nonatomic, nullable, copy) id function;
@@ -654,6 +657,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
654657 @property (nonatomic, nullable, copy) id timeOnly;
655658 @property (nonatomic, nullable, copy) id timeOnlyConverter;
656659 @property (nonatomic, nullable, copy) id timeZone;
660+@property (nonatomic, nullable, copy) id toDict;
657661 @property (nonatomic, nullable, copy) id toJSON;
658662 @property (nonatomic, nullable, copy) id topLevel;
659663 @property (nonatomic, nullable, copy) id toString;
@@ -994,6 +998,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
994998 @interface QTFrom : NSObject
995999 @end
9961000
1001+@interface QTFromDict : NSObject
1002+@end
1003+
9971004 @interface QTFromJSON : NSObject
9981005 @end
9991006
@@ -1621,6 +1628,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16211628 @interface QTTimeZone : NSObject
16221629 @end
16231630
1631+@interface QTToDict : NSObject
1632+@end
1633+
16241634 @interface QTToJSON : NSObject
16251635 @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;
@@ -1543,6 +1548,11 @@ NS_ASSUME_NONNULL_BEGIN
15431548 - (NSDictionary *)JSONDictionary;
15441549 @end
15451550
1551+@interface QTToDict (JSONConversion)
1552++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1553+- (NSDictionary *)JSONDictionary;
1554+@end
1555+
15461556 @interface QTToJSON (JSONConversion)
15471557 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
15481558 - (NSDictionary *)JSONDictionary;
@@ -1866,6 +1876,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
18661876 @"FormatException": @"formatException",
18671877 @"friend": @"friend",
18681878 @"from": @"from",
1879+ @"from_dict": @"fromDict",
18691880 @"from_json": @"fromJSON",
18701881 @"func": @"func",
18711882 @"function": @"function",
@@ -2041,6 +2052,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
20412052 @"TimeOnly": @"timeOnly",
20422053 @"TimeOnlyConverter": @"timeOnlyConverter",
20432054 @"TimeZone": @"timeZone",
2055+ @"to_dict": @"toDict",
20442056 @"to_json": @"toJSON",
20452057 @"top_level": @"topLevel",
20462058 @"toString": @"toString",
@@ -5930,6 +5942,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
59305942 }
59315943 @end
59325944
5945+@implementation QTFromDict
5946++ (NSDictionary<NSString *, NSString *> *)properties
5947+{
5948+ static NSDictionary<NSString *, NSString *> *properties;
5949+ return properties = properties ? properties : @{
5950+ };
5951+}
5952+
5953++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
5954+{
5955+ return [dict isKindOfClass:NSDictionary.class] ? [[QTFromDict alloc] initWithJSONDictionary:dict] : nil;
5956+}
5957+
5958+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
5959+{
5960+ if (self = [super init]) {
5961+ [self setValuesForKeysWithDictionary:dict];
5962+ }
5963+ return self;
5964+}
5965+
5966+- (void)setValue:(nullable id)value forKey:(NSString *)key
5967+{
5968+ id resolved = QTFromDict.properties[key];
5969+ if (resolved) [super setValue:value forKey:resolved];
5970+}
5971+
5972+- (void)setNilValueForKey:(NSString *)key
5973+{
5974+ id resolved = QTFromDict.properties[key];
5975+ if (resolved) [super setValue:@(0) forKey:resolved];
5976+}
5977+
5978+- (NSDictionary *)JSONDictionary
5979+{
5980+ return [self dictionaryWithValuesForKeys:QTFromDict.properties.allValues];
5981+}
5982+@end
5983+
59335984 @implementation QTFromJSON
59345985 + (NSDictionary<NSString *, NSString *> *)properties
59355986 {
@@ -14081,6 +14132,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1408114132 }
1408214133 @end
1408314134
14135+@implementation QTToDict
14136++ (NSDictionary<NSString *, NSString *> *)properties
14137+{
14138+ static NSDictionary<NSString *, NSString *> *properties;
14139+ return properties = properties ? properties : @{
14140+ };
14141+}
14142+
14143++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
14144+{
14145+ return [dict isKindOfClass:NSDictionary.class] ? [[QTToDict alloc] initWithJSONDictionary:dict] : nil;
14146+}
14147+
14148+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
14149+{
14150+ if (self = [super init]) {
14151+ [self setValuesForKeysWithDictionary:dict];
14152+ }
14153+ return self;
14154+}
14155+
14156+- (void)setValue:(nullable id)value forKey:(NSString *)key
14157+{
14158+ id resolved = QTToDict.properties[key];
14159+ if (resolved) [super setValue:value forKey:resolved];
14160+}
14161+
14162+- (void)setNilValueForKey:(NSString *)key
14163+{
14164+ id resolved = QTToDict.properties[key];
14165+ if (resolved) [super setValue:@(0) forKey:resolved];
14166+}
14167+
14168+- (NSDictionary *)JSONDictionary
14169+{
14170+ return [self dictionaryWithValuesForKeys:QTToDict.properties.allValues];
14171+}
14172+@end
14173+
1408414174 @implementation QTToJSON
1408514175 + (NSDictionary<NSString *, NSString *> *)properties
1408614176 {
Mschema-phpdefault / TopLevel.php+478 −222
@@ -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
@@ -301,6 +302,7 @@ class TopLevel {
301302 private TimeOnly|float|null $timeOnly; // json:TimeOnly Optional
302303 private TimeOnlyConverter|float|null $timeOnlyConverter; // json:TimeOnlyConverter Optional
303304 private TimeZone|float|null $timeZone; // json:TimeZone Optional
305+ private ToDict|float|null $toDict; // json:to_dict Optional
304306 private ToJSON|float|null $toJSON; // json:to_json Optional
305307 private TopLevelClass|float|null $topLevel; // json:top_level Optional
306308 private ToString|float|null $toString; // json:toString Optional
@@ -467,6 +469,7 @@ class TopLevel {
467469 * @param FormatException|float|null $formatException
468470 * @param Friend|float|null $friend
469471 * @param From|float|null $from
472+ * @param FromDict|float|null $fromDict
470473 * @param FromJSON|float|null $fromJSON
471474 * @param Func|float|null $func
472475 * @param FunctionClass|float|null $function
@@ -642,6 +645,7 @@ class TopLevel {
642645 * @param TimeOnly|float|null $timeOnly
643646 * @param TimeOnlyConverter|float|null $timeOnlyConverter
644647 * @param TimeZone|float|null $timeZone
648+ * @param ToDict|float|null $toDict
645649 * @param ToJSON|float|null $toJSON
646650 * @param TopLevelClass|float|null $topLevel
647651 * @param ToString|float|null $toString
@@ -685,7 +689,7 @@ class TopLevel {
685689 * @param Yes|float|null $yes
686690 * @param YieldClass|float|null $yield
687691 */
688- 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, KSerializer|float|null $kSerializer, 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, PrimitiveKind|float|null $primitiveKind, 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, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, 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, UseSerializers|float|null $useSerializers, 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) {
692+ 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, KSerializer|float|null $kSerializer, 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, PrimitiveKind|float|null $primitiveKind, 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, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, 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, UseSerializers|float|null $useSerializers, 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) {
689693 $this->empty = $empty;
690694 $this->topLevelBool = $topLevelBool;
691695 $this->complex = $complex;
@@ -808,6 +812,7 @@ class TopLevel {
808812 $this->formatException = $formatException;
809813 $this->friend = $friend;
810814 $this->from = $from;
815+ $this->fromDict = $fromDict;
811816 $this->fromJSON = $fromJSON;
812817 $this->func = $func;
813818 $this->function = $function;
@@ -983,6 +988,7 @@ class TopLevel {
983988 $this->timeOnly = $timeOnly;
984989 $this->timeOnlyConverter = $timeOnlyConverter;
985990 $this->timeZone = $timeZone;
991+ $this->toDict = $toDict;
986992 $this->toJSON = $toJSON;
987993 $this->topLevel = $topLevel;
988994 $this->toString = $toString;
@@ -7416,7 +7422,7 @@ class TopLevel {
74167422 * @throws Exception
74177423 * @return Dict|float|null
74187424 */
7419- public static function fromDict(stdClass|float|null $value): Dict|float|null {
7425+ public static function purpleFromDict(stdClass|float|null $value): Dict|float|null {
74207426 if (is_null($value)) {
74217427 return $value; /*null*/
74227428 } elseif (is_object($value)) {
@@ -7432,7 +7438,7 @@ class TopLevel {
74327438 * @throws Exception
74337439 * @return stdClass|float|null
74347440 */
7435- public function toDict(): stdClass|float|null {
7441+ public function purpleToDict(): stdClass|float|null {
74367442 if (TopLevel::validateDict($this->dict)) {
74377443 if (is_null($this->dict)) {
74387444 return $this->dict; /*null*/
@@ -10280,6 +10286,82 @@ class TopLevel {
1028010286 return From::sample(); /*152:from*/
1028110287 }
1028210288
10289+ /**
10290+ * @param stdClass|float|null $value
10291+ * @throws Exception
10292+ * @return FromDict|float|null
10293+ */
10294+ public static function fromFromDict(stdClass|float|null $value): FromDict|float|null {
10295+ if (is_null($value)) {
10296+ return $value; /*null*/
10297+ } elseif (is_object($value)) {
10298+ return FromDict::from($value); /*class*/
10299+ } elseif (is_float($value) || is_int($value)) {
10300+ return $value; /*float*/
10301+ } else {
10302+ throw new Exception('Cannot deserialize union value in TopLevel');
10303+ }
10304+ }
10305+
10306+ /**
10307+ * @throws Exception
10308+ * @return stdClass|float|null
10309+ */
10310+ public function toFromDict(): stdClass|float|null {
10311+ if (TopLevel::validateFromDict($this->fromDict)) {
10312+ if (is_null($this->fromDict)) {
10313+ return $this->fromDict; /*null*/
10314+ } elseif ($this->fromDict instanceof FromDict) {
10315+ return $this->fromDict->to(); /*class*/
10316+ } elseif (is_float($this->fromDict) || is_int($this->fromDict)) {
10317+ return $this->fromDict; /*float*/
10318+ } else {
10319+ throw new Exception('Union value has no matching member in TopLevel');
10320+ }
10321+ }
10322+ throw new Exception('never get to this TopLevel::fromDict');
10323+ }
10324+
10325+ /**
10326+ * @param FromDict|float|null
10327+ * @return bool
10328+ * @throws Exception
10329+ */
10330+ public static function validateFromDict(FromDict|float|null $value): bool {
10331+ if (is_null($value)) {
10332+ if (!is_null($value)) {
10333+ throw new Exception("Attribute Error:TopLevel::fromDict");
10334+ }
10335+ } elseif ($value instanceof FromDict) {
10336+ $value->validate();
10337+ } elseif (is_float($value) || is_int($value)) {
10338+ if (!is_float($value) && !is_int($value)) {
10339+ throw new Exception("Attribute Error:TopLevel::fromDict");
10340+ }
10341+ } else {
10342+ throw new Exception("Attribute Error:TopLevel::fromDict");
10343+ }
10344+ return true;
10345+ }
10346+
10347+ /**
10348+ * @throws Exception
10349+ * @return FromDict|float|null
10350+ */
10351+ public function getFromDict(): FromDict|float|null {
10352+ if (TopLevel::validateFromDict($this->fromDict)) {
10353+ return $this->fromDict;
10354+ }
10355+ throw new Exception('never get to getFromDict TopLevel::fromDict');
10356+ }
10357+
10358+ /**
10359+ * @return FromDict|float|null
10360+ */
10361+ public static function sampleFromDict(): FromDict|float|null {
10362+ return FromDict::sample(); /*153:fromDict*/
10363+ }
10364+
1028310365 /**
1028410366 * @param stdClass|float|null $value
1028510367 * @throws Exception
@@ -10353,7 +10435,7 @@ class TopLevel {
1035310435 * @return FromJSON|float|null
1035410436 */
1035510437 public static function sampleFromJSON(): FromJSON|float|null {
10356- return FromJSON::sample(); /*153:fromJSON*/
10438+ return FromJSON::sample(); /*154:fromJSON*/
1035710439 }
1035810440
1035910441 /**
@@ -10429,7 +10511,7 @@ class TopLevel {
1042910511 * @return Func|float|null
1043010512 */
1043110513 public static function sampleFunc(): Func|float|null {
10432- return Func::sample(); /*154:func*/
10514+ return Func::sample(); /*155:func*/
1043310515 }
1043410516
1043510517 /**
@@ -10505,7 +10587,7 @@ class TopLevel {
1050510587 * @return FunctionClass|float|null
1050610588 */
1050710589 public static function sampleFunction(): FunctionClass|float|null {
10508- return FunctionClass::sample(); /*155:function*/
10590+ return FunctionClass::sample(); /*156:function*/
1050910591 }
1051010592
1051110593 /**
@@ -10581,7 +10663,7 @@ class TopLevel {
1058110663 * @return Get|float|null
1058210664 */
1058310665 public static function sampleGet(): Get|float|null {
10584- return Get::sample(); /*156:get*/
10666+ return Get::sample(); /*157:get*/
1058510667 }
1058610668
1058710669 /**
@@ -10657,7 +10739,7 @@ class TopLevel {
1065710739 * @return GlobalClass|float|null
1065810740 */
1065910741 public static function sampleGlobal(): GlobalClass|float|null {
10660- return GlobalClass::sample(); /*157:global*/
10742+ return GlobalClass::sample(); /*158:global*/
1066110743 }
1066210744
1066310745 /**
@@ -10733,7 +10815,7 @@ class TopLevel {
1073310815 * @return Go|float|null
1073410816 */
1073510817 public static function sampleGo(): Go|float|null {
10736- return Go::sample(); /*158:go*/
10818+ return Go::sample(); /*159:go*/
1073710819 }
1073810820
1073910821 /**
@@ -10809,7 +10891,7 @@ class TopLevel {
1080910891 * @return GotoClass|float|null
1081010892 */
1081110893 public static function sampleGoto(): GotoClass|float|null {
10812- return GotoClass::sample(); /*159:goto*/
10894+ return GotoClass::sample(); /*160:goto*/
1081310895 }
1081410896
1081510897 /**
@@ -10885,7 +10967,7 @@ class TopLevel {
1088510967 * @return Guard|float|null
1088610968 */
1088710969 public static function sampleGuard(): Guard|float|null {
10888- return Guard::sample(); /*160:guard*/
10970+ return Guard::sample(); /*161:guard*/
1088910971 }
1089010972
1089110973 /**
@@ -10961,7 +11043,7 @@ class TopLevel {
1096111043 * @return Hashable|float|null
1096211044 */
1096311045 public static function sampleHashable(): Hashable|float|null {
10964- return Hashable::sample(); /*161:hashable*/
11046+ return Hashable::sample(); /*162:hashable*/
1096511047 }
1096611048
1096711049 /**
@@ -11037,7 +11119,7 @@ class TopLevel {
1103711119 * @return HashCode|float|null
1103811120 */
1103911121 public static function sampleHashCode(): HashCode|float|null {
11040- return HashCode::sample(); /*162:hashCode*/
11122+ return HashCode::sample(); /*163:hashCode*/
1104111123 }
1104211124
1104311125 /**
@@ -11113,7 +11195,7 @@ class TopLevel {
1111311195 * @return Hasher|float|null
1111411196 */
1111511197 public static function sampleHasher(): Hasher|float|null {
11116- return Hasher::sample(); /*163:hasher*/
11198+ return Hasher::sample(); /*164:hasher*/
1111711199 }
1111811200
1111911201 /**
@@ -11189,7 +11271,7 @@ class TopLevel {
1118911271 * @return HasOwnProperty|float|null
1119011272 */
1119111273 public static function sampleHasOwnProperty(): HasOwnProperty|float|null {
11192- return HasOwnProperty::sample(); /*164:hasOwnProperty*/
11274+ return HasOwnProperty::sample(); /*165:hasOwnProperty*/
1119311275 }
1119411276
1119511277 /**
@@ -11265,7 +11347,7 @@ class TopLevel {
1126511347 * @return ID|float|null
1126611348 */
1126711349 public static function sampleID(): ID|float|null {
11268- return ID::sample(); /*165:id*/
11350+ return ID::sample(); /*166:id*/
1126911351 }
1127011352
1127111353 /**
@@ -11341,7 +11423,7 @@ class TopLevel {
1134111423 * @return IfClass|float|null
1134211424 */
1134311425 public static function sampleIf(): IfClass|float|null {
11344- return IfClass::sample(); /*166:if*/
11426+ return IfClass::sample(); /*167:if*/
1134511427 }
1134611428
1134711429 /**
@@ -11417,7 +11499,7 @@ class TopLevel {
1141711499 * @return Imp|float|null
1141811500 */
1141911501 public static function sampleImp(): Imp|float|null {
11420- return Imp::sample(); /*167:imp*/
11502+ return Imp::sample(); /*168:imp*/
1142111503 }
1142211504
1142311505 /**
@@ -11493,7 +11575,7 @@ class TopLevel {
1149311575 * @return ImplementsClass|float|null
1149411576 */
1149511577 public static function sampleImplements(): ImplementsClass|float|null {
11496- return ImplementsClass::sample(); /*168:implements*/
11578+ return ImplementsClass::sample(); /*169:implements*/
1149711579 }
1149811580
1149911581 /**
@@ -11569,7 +11651,7 @@ class TopLevel {
1156911651 * @return Implicit|float|null
1157011652 */
1157111653 public static function sampleImplicit(): Implicit|float|null {
11572- return Implicit::sample(); /*169:implicit*/
11654+ return Implicit::sample(); /*170:implicit*/
1157311655 }
1157411656
1157511657 /**
@@ -11645,7 +11727,7 @@ class TopLevel {
1164511727 * @return Import|float|null
1164611728 */
1164711729 public static function sampleImport(): Import|float|null {
11648- return Import::sample(); /*170:import*/
11730+ return Import::sample(); /*171:import*/
1164911731 }
1165011732
1165111733 /**
@@ -11721,7 +11803,7 @@ class TopLevel {
1172111803 * @return In|float|null
1172211804 */
1172311805 public static function sampleIn(): In|float|null {
11724- return In::sample(); /*171:in*/
11806+ return In::sample(); /*172:in*/
1172511807 }
1172611808
1172711809 /**
@@ -11797,7 +11879,7 @@ class TopLevel {
1179711879 * @return Indirect|float|null
1179811880 */
1179911881 public static function sampleIndirect(): Indirect|float|null {
11800- return Indirect::sample(); /*172:indirect*/
11882+ return Indirect::sample(); /*173:indirect*/
1180111883 }
1180211884
1180311885 /**
@@ -11873,7 +11955,7 @@ class TopLevel {
1187311955 * @return Infix|float|null
1187411956 */
1187511957 public static function sampleInfix(): Infix|float|null {
11876- return Infix::sample(); /*173:infix*/
11958+ return Infix::sample(); /*174:infix*/
1187711959 }
1187811960
1187911961 /**
@@ -11949,7 +12031,7 @@ class TopLevel {
1194912031 * @return Init|float|null
1195012032 */
1195112033 public static function sampleInit(): Init|float|null {
11952- return Init::sample(); /*174:init*/
12034+ return Init::sample(); /*175:init*/
1195312035 }
1195412036
1195512037 /**
@@ -12025,7 +12107,7 @@ class TopLevel {
1202512107 * @return Inline|float|null
1202612108 */
1202712109 public static function sampleInline(): Inline|float|null {
12028- return Inline::sample(); /*175:inline*/
12110+ return Inline::sample(); /*176:inline*/
1202912111 }
1203012112
1203112113 /**
@@ -12101,7 +12183,7 @@ class TopLevel {
1210112183 * @return Inout|float|null
1210212184 */
1210312185 public static function sampleInout(): Inout|float|null {
12104- return Inout::sample(); /*176:inout*/
12186+ return Inout::sample(); /*177:inout*/
1210512187 }
1210612188
1210712189 /**
@@ -12177,7 +12259,7 @@ class TopLevel {
1217712259 * @return InstanceofClass|float|null
1217812260 */
1217912261 public static function sampleInstanceof(): InstanceofClass|float|null {
12180- return InstanceofClass::sample(); /*177:instanceof*/
12262+ return InstanceofClass::sample(); /*178:instanceof*/
1218112263 }
1218212264
1218312265 /**
@@ -12253,7 +12335,7 @@ class TopLevel {
1225312335 * @return IntClass|float|null
1225412336 */
1225512337 public static function sampleInt(): IntClass|float|null {
12256- return IntClass::sample(); /*178:int*/
12338+ return IntClass::sample(); /*179:int*/
1225712339 }
1225812340
1225912341 /**
@@ -12329,7 +12411,7 @@ class TopLevel {
1232912411 * @return InterfaceClass|float|null
1233012412 */
1233112413 public static function sampleInterface(): InterfaceClass|float|null {
12332- return InterfaceClass::sample(); /*179:interface*/
12414+ return InterfaceClass::sample(); /*180:interface*/
1233312415 }
1233412416
1233512417 /**
@@ -12405,7 +12487,7 @@ class TopLevel {
1240512487 * @return Internal|float|null
1240612488 */
1240712489 public static function sampleInternal(): Internal|float|null {
12408- return Internal::sample(); /*180:internal*/
12490+ return Internal::sample(); /*181:internal*/
1240912491 }
1241012492
1241112493 /**
@@ -12481,7 +12563,7 @@ class TopLevel {
1248112563 * @return Is|float|null
1248212564 */
1248312565 public static function sampleIs(): Is|float|null {
12484- return Is::sample(); /*181:is*/
12566+ return Is::sample(); /*182:is*/
1248512567 }
1248612568
1248712569 /**
@@ -12557,7 +12639,7 @@ class TopLevel {
1255712639 * @return ISODateTimeOffsetConverter|float|null
1255812640 */
1255912641 public static function sampleISODateTimeOffsetConverter(): ISODateTimeOffsetConverter|float|null {
12560- return ISODateTimeOffsetConverter::sample(); /*182:isoDateTimeOffsetConverter*/
12642+ return ISODateTimeOffsetConverter::sample(); /*183:isoDateTimeOffsetConverter*/
1256112643 }
1256212644
1256312645 /**
@@ -12633,7 +12715,7 @@ class TopLevel {
1263312715 * @return IterableClass|float|null
1263412716 */
1263512717 public static function sampleIterable(): IterableClass|float|null {
12636- return IterableClass::sample(); /*183:iterable*/
12718+ return IterableClass::sample(); /*184:iterable*/
1263712719 }
1263812720
1263912721 /**
@@ -12709,7 +12791,7 @@ class TopLevel {
1270912791 * @return Jdec|float|null
1271012792 */
1271112793 public static function sampleJdec(): Jdec|float|null {
12712- return Jdec::sample(); /*184:jdec*/
12794+ return Jdec::sample(); /*185:jdec*/
1271312795 }
1271412796
1271512797 /**
@@ -12785,7 +12867,7 @@ class TopLevel {
1278512867 * @return Jenc|float|null
1278612868 */
1278712869 public static function sampleJenc(): Jenc|float|null {
12788- return Jenc::sample(); /*185:jenc*/
12870+ return Jenc::sample(); /*186:jenc*/
1278912871 }
1279012872
1279112873 /**
@@ -12861,7 +12943,7 @@ class TopLevel {
1286112943 * @return Jpipe|float|null
1286212944 */
1286312945 public static function sampleJpipe(): Jpipe|float|null {
12864- return Jpipe::sample(); /*186:jpipe*/
12946+ return Jpipe::sample(); /*187:jpipe*/
1286512947 }
1286612948
1286712949 /**
@@ -12937,7 +13019,7 @@ class TopLevel {
1293713019 * @return JSON|float|null
1293813020 */
1293913021 public static function sampleJSON(): JSON|float|null {
12940- return JSON::sample(); /*187:json*/
13022+ return JSON::sample(); /*188:json*/
1294113023 }
1294213024
1294313025 /**
@@ -13013,7 +13095,7 @@ class TopLevel {
1301313095 * @return JSONConverter|float|null
1301413096 */
1301513097 public static function sampleJSONConverter(): JSONConverter|float|null {
13016- return JSONConverter::sample(); /*188:jsonConverter*/
13098+ return JSONConverter::sample(); /*189:jsonConverter*/
1301713099 }
1301813100
1301913101 /**
@@ -13089,7 +13171,7 @@ class TopLevel {
1308913171 * @return JSONSerializer|float|null
1309013172 */
1309113173 public static function sampleJSONSerializer(): JSONSerializer|float|null {
13092- return JSONSerializer::sample(); /*189:jsonSerializer*/
13174+ return JSONSerializer::sample(); /*190:jsonSerializer*/
1309313175 }
1309413176
1309513177 /**
@@ -13165,7 +13247,7 @@ class TopLevel {
1316513247 * @return JSONToken|float|null
1316613248 */
1316713249 public static function sampleJSONToken(): JSONToken|float|null {
13168- return JSONToken::sample(); /*190:jsonToken*/
13250+ return JSONToken::sample(); /*191:jsonToken*/
1316913251 }
1317013252
1317113253 /**
@@ -13241,7 +13323,7 @@ class TopLevel {
1324113323 * @return JSONWriter|float|null
1324213324 */
1324313325 public static function sampleJSONWriter(): JSONWriter|float|null {
13244- return JSONWriter::sample(); /*191:jsonWriter*/
13326+ return JSONWriter::sample(); /*192:jsonWriter*/
1324513327 }
1324613328
1324713329 /**
@@ -13317,7 +13399,7 @@ class TopLevel {
1331713399 * @return JSONAny|float|null
1331813400 */
1331913401 public static function sampleJSONAny(): JSONAny|float|null {
13320- return JSONAny::sample(); /*192:jsonAny*/
13402+ return JSONAny::sample(); /*193:jsonAny*/
1332113403 }
1332213404
1332313405 /**
@@ -13393,7 +13475,7 @@ class TopLevel {
1339313475 * @return JSONCodingKey|float|null
1339413476 */
1339513477 public static function sampleJSONCodingKey(): JSONCodingKey|float|null {
13396- return JSONCodingKey::sample(); /*193:jsonCodingKey*/
13478+ return JSONCodingKey::sample(); /*194:jsonCodingKey*/
1339713479 }
1339813480
1339913481 /**
@@ -13469,7 +13551,7 @@ class TopLevel {
1346913551 * @return JSONDecoder|float|null
1347013552 */
1347113553 public static function sampleJSONDecoder(): JSONDecoder|float|null {
13472- return JSONDecoder::sample(); /*194:jsonDecoder*/
13554+ return JSONDecoder::sample(); /*195:jsonDecoder*/
1347313555 }
1347413556
1347513557 /**
@@ -13545,7 +13627,7 @@ class TopLevel {
1354513627 * @return JSONEncoder|float|null
1354613628 */
1354713629 public static function sampleJSONEncoder(): JSONEncoder|float|null {
13548- return JSONEncoder::sample(); /*195:jsonEncoder*/
13630+ return JSONEncoder::sample(); /*196:jsonEncoder*/
1354913631 }
1355013632
1355113633 /**
@@ -13621,7 +13703,7 @@ class TopLevel {
1362113703 * @return JSONExceptionClass|float|null
1362213704 */
1362313705 public static function sampleJSONException(): JSONExceptionClass|float|null {
13624- return JSONExceptionClass::sample(); /*196:jsonException*/
13706+ return JSONExceptionClass::sample(); /*197:jsonException*/
1362513707 }
1362613708
1362713709 /**
@@ -13697,7 +13779,7 @@ class TopLevel {
1369713779 * @return JSONGenerator|float|null
1369813780 */
1369913781 public static function sampleJSONGenerator(): JSONGenerator|float|null {
13700- return JSONGenerator::sample(); /*197:jsonGenerator*/
13782+ return JSONGenerator::sample(); /*198:jsonGenerator*/
1370113783 }
1370213784
1370313785 /**
@@ -13773,7 +13855,7 @@ class TopLevel {
1377313855 * @return JSONNode|float|null
1377413856 */
1377513857 public static function sampleJSONNode(): JSONNode|float|null {
13776- return JSONNode::sample(); /*198:jsonNode*/
13858+ return JSONNode::sample(); /*199:jsonNode*/
1377713859 }
1377813860
1377913861 /**
@@ -13849,7 +13931,7 @@ class TopLevel {
1384913931 * @return JSONNull|float|null
1385013932 */
1385113933 public static function sampleJSONNull(): JSONNull|float|null {
13852- return JSONNull::sample(); /*199:jsonNull*/
13934+ return JSONNull::sample(); /*200:jsonNull*/
1385313935 }
1385413936
1385513937 /**
@@ -13925,7 +14007,7 @@ class TopLevel {
1392514007 * @return JSONParser|float|null
1392614008 */
1392714009 public static function sampleJSONParser(): JSONParser|float|null {
13928- return JSONParser::sample(); /*200:jsonParser*/
14010+ return JSONParser::sample(); /*201:jsonParser*/
1392914011 }
1393014012
1393114013 /**
@@ -14001,7 +14083,7 @@ class TopLevel {
1400114083 * @return JSONReader|float|null
1400214084 */
1400314085 public static function sampleJSONReader(): JSONReader|float|null {
14004- return JSONReader::sample(); /*201:jsonReader*/
14086+ return JSONReader::sample(); /*202:jsonReader*/
1400514087 }
1400614088
1400714089 /**
@@ -14077,7 +14159,7 @@ class TopLevel {
1407714159 * @return JSONTokenType|float|null
1407814160 */
1407914161 public static function sampleJSONTokenType(): JSONTokenType|float|null {
14080- return JSONTokenType::sample(); /*202:jsonTokenType*/
14162+ return JSONTokenType::sample(); /*203:jsonTokenType*/
1408114163 }
1408214164
1408314165 /**
@@ -14153,7 +14235,7 @@ class TopLevel {
1415314235 * @return KSerializer|float|null
1415414236 */
1415514237 public static function sampleKSerializer(): KSerializer|float|null {
14156- return KSerializer::sample(); /*203:kSerializer*/
14238+ return KSerializer::sample(); /*204:kSerializer*/
1415714239 }
1415814240
1415914241 /**
@@ -14229,7 +14311,7 @@ class TopLevel {
1422914311 * @return Lambda|float|null
1423014312 */
1423114313 public static function sampleLambda(): Lambda|float|null {
14232- return Lambda::sample(); /*204:lambda*/
14314+ return Lambda::sample(); /*205:lambda*/
1423314315 }
1423414316
1423514317 /**
@@ -14305,7 +14387,7 @@ class TopLevel {
1430514387 * @return Lazy|float|null
1430614388 */
1430714389 public static function sampleLazy(): Lazy|float|null {
14308- return Lazy::sample(); /*205:lazy*/
14390+ return Lazy::sample(); /*206:lazy*/
1430914391 }
1431014392
1431114393 /**
@@ -14381,7 +14463,7 @@ class TopLevel {
1438114463 * @return Left|float|null
1438214464 */
1438314465 public static function sampleLeft(): Left|float|null {
14384- return Left::sample(); /*206:left*/
14466+ return Left::sample(); /*207:left*/
1438514467 }
1438614468
1438714469 /**
@@ -14457,7 +14539,7 @@ class TopLevel {
1445714539 * @return Let|float|null
1445814540 */
1445914541 public static function sampleLet(): Let|float|null {
14460- return Let::sample(); /*207:let*/
14542+ return Let::sample(); /*208:let*/
1446114543 }
1446214544
1446314545 /**
@@ -14533,7 +14615,7 @@ class TopLevel {
1453314615 * @return ListClass|float|null
1453414616 */
1453514617 public static function sampleList(): ListClass|float|null {
14536- return ListClass::sample(); /*208:list*/
14618+ return ListClass::sample(); /*209:list*/
1453714619 }
1453814620
1453914621 /**
@@ -14609,7 +14691,7 @@ class TopLevel {
1460914691 * @return LocaleClass|float|null
1461014692 */
1461114693 public static function sampleLocale(): LocaleClass|float|null {
14612- return LocaleClass::sample(); /*209:locale*/
14694+ return LocaleClass::sample(); /*210:locale*/
1461314695 }
1461414696
1461514697 /**
@@ -14685,7 +14767,7 @@ class TopLevel {
1468514767 * @return Lock|float|null
1468614768 */
1468714769 public static function sampleLock(): Lock|float|null {
14688- return Lock::sample(); /*210:lock*/
14770+ return Lock::sample(); /*211:lock*/
1468914771 }
1469014772
1469114773 /**
@@ -14761,7 +14843,7 @@ class TopLevel {
1476114843 * @return Long|float|null
1476214844 */
1476314845 public static function sampleLong(): Long|float|null {
14764- return Long::sample(); /*211:long*/
14846+ return Long::sample(); /*212:long*/
1476514847 }
1476614848
1476714849 /**
@@ -14837,7 +14919,7 @@ class TopLevel {
1483714919 * @return Map|float|null
1483814920 */
1483914921 public static function sampleMap(): Map|float|null {
14840- return Map::sample(); /*212:map*/
14922+ return Map::sample(); /*213:map*/
1484114923 }
1484214924
1484314925 /**
@@ -14913,7 +14995,7 @@ class TopLevel {
1491314995 * @return MapEntry|float|null
1491414996 */
1491514997 public static function sampleMapEntry(): MapEntry|float|null {
14916- return MapEntry::sample(); /*213:mapEntry*/
14998+ return MapEntry::sample(); /*214:mapEntry*/
1491714999 }
1491815000
1491915001 /**
@@ -14989,7 +15071,7 @@ class TopLevel {
1498915071 * @return MetadataPropertyHandling|float|null
1499015072 */
1499115073 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
14992- return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/
15074+ return MetadataPropertyHandling::sample(); /*215:metadataPropertyHandling*/
1499315075 }
1499415076
1499515077 /**
@@ -15065,7 +15147,7 @@ class TopLevel {
1506515147 * @return Module|float|null
1506615148 */
1506715149 public static function sampleModule(): Module|float|null {
15068- return Module::sample(); /*215:module*/
15150+ return Module::sample(); /*216:module*/
1506915151 }
1507015152
1507115153 /**
@@ -15141,7 +15223,7 @@ class TopLevel {
1514115223 * @return Mutable|float|null
1514215224 */
1514315225 public static function sampleMutable(): Mutable|float|null {
15144- return Mutable::sample(); /*216:mutable*/
15226+ return Mutable::sample(); /*217:mutable*/
1514515227 }
1514615228
1514715229 /**
@@ -15217,7 +15299,7 @@ class TopLevel {
1521715299 * @return Mutating|float|null
1521815300 */
1521915301 public static function sampleMutating(): Mutating|float|null {
15220- return Mutating::sample(); /*217:mutating*/
15302+ return Mutating::sample(); /*218:mutating*/
1522115303 }
1522215304
1522315305 /**
@@ -15293,7 +15375,7 @@ class TopLevel {
1529315375 * @return NamespaceClass|float|null
1529415376 */
1529515377 public static function sampleNamespace(): NamespaceClass|float|null {
15296- return NamespaceClass::sample(); /*218:namespace*/
15378+ return NamespaceClass::sample(); /*219:namespace*/
1529715379 }
1529815380
1529915381 /**
@@ -15369,7 +15451,7 @@ class TopLevel {
1536915451 * @return Native|float|null
1537015452 */
1537115453 public static function sampleNative(): Native|float|null {
15372- return Native::sample(); /*219:native*/
15454+ return Native::sample(); /*220:native*/
1537315455 }
1537415456
1537515457 /**
@@ -15445,7 +15527,7 @@ class TopLevel {
1544515527 * @return NewClass|float|null
1544615528 */
1544715529 public static function sampleNew(): NewClass|float|null {
15448- return NewClass::sample(); /*220:new*/
15530+ return NewClass::sample(); /*221:new*/
1544915531 }
1545015532
1545115533 /**
@@ -15521,7 +15603,7 @@ class TopLevel {
1552115603 * @return Newtonsoft|float|null
1552215604 */
1552315605 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15524- return Newtonsoft::sample(); /*221:newtonsoft*/
15606+ return Newtonsoft::sample(); /*222:newtonsoft*/
1552515607 }
1552615608
1552715609 /**
@@ -15597,7 +15679,7 @@ class TopLevel {
1559715679 * @return Nil|float|null
1559815680 */
1559915681 public static function sampleNil(): Nil|float|null {
15600- return Nil::sample(); /*222:nil*/
15682+ return Nil::sample(); /*223:nil*/
1560115683 }
1560215684
1560315685 /**
@@ -15673,7 +15755,7 @@ class TopLevel {
1567315755 * @return No|float|null
1567415756 */
1567515757 public static function sampleNo(): No|float|null {
15676- return No::sample(); /*223:no*/
15758+ return No::sample(); /*224:no*/
1567715759 }
1567815760
1567915761 /**
@@ -15749,7 +15831,7 @@ class TopLevel {
1574915831 * @return Noexcept|float|null
1575015832 */
1575115833 public static function sampleNoexcept(): Noexcept|float|null {
15752- return Noexcept::sample(); /*224:noexcept*/
15834+ return Noexcept::sample(); /*225:noexcept*/
1575315835 }
1575415836
1575515837 /**
@@ -15825,7 +15907,7 @@ class TopLevel {
1582515907 * @return Nonatomic|float|null
1582615908 */
1582715909 public static function sampleNonatomic(): Nonatomic|float|null {
15828- return Nonatomic::sample(); /*225:nonatomic*/
15910+ return Nonatomic::sample(); /*226:nonatomic*/
1582915911 }
1583015912
1583115913 /**
@@ -15901,7 +15983,7 @@ class TopLevel {
1590115983 * @return NoneClass|float|null
1590215984 */
1590315985 public static function sampleTopLevelNone(): NoneClass|float|null {
15904- return NoneClass::sample(); /*226:topLevelNone*/
15986+ return NoneClass::sample(); /*227:topLevelNone*/
1590515987 }
1590615988
1590715989 /**
@@ -15977,7 +16059,7 @@ class TopLevel {
1597716059 * @return None|float|null
1597816060 */
1597916061 public static function sampleNone(): None|float|null {
15980- return None::sample(); /*227:none*/
16062+ return None::sample(); /*228:none*/
1598116063 }
1598216064
1598316065 /**
@@ -16053,7 +16135,7 @@ class TopLevel {
1605316135 * @return Nonlocal|float|null
1605416136 */
1605516137 public static function sampleNonlocal(): Nonlocal|float|null {
16056- return Nonlocal::sample(); /*228:nonlocal*/
16138+ return Nonlocal::sample(); /*229:nonlocal*/
1605716139 }
1605816140
1605916141 /**
@@ -16129,7 +16211,7 @@ class TopLevel {
1612916211 * @return Nonmutating|float|null
1613016212 */
1613116213 public static function sampleNonmutating(): Nonmutating|float|null {
16132- return Nonmutating::sample(); /*229:nonmutating*/
16214+ return Nonmutating::sample(); /*230:nonmutating*/
1613316215 }
1613416216
1613516217 /**
@@ -16205,7 +16287,7 @@ class TopLevel {
1620516287 * @return NoSuchMethod|float|null
1620616288 */
1620716289 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16208- return NoSuchMethod::sample(); /*230:noSuchMethod*/
16290+ return NoSuchMethod::sample(); /*231:noSuchMethod*/
1620916291 }
1621016292
1621116293 /**
@@ -16281,7 +16363,7 @@ class TopLevel {
1628116363 * @return Not|float|null
1628216364 */
1628316365 public static function sampleNot(): Not|float|null {
16284- return Not::sample(); /*231:not*/
16366+ return Not::sample(); /*232:not*/
1628516367 }
1628616368
1628716369 /**
@@ -16357,7 +16439,7 @@ class TopLevel {
1635716439 * @return NotEq|float|null
1635816440 */
1635916441 public static function sampleNotEq(): NotEq|float|null {
16360- return NotEq::sample(); /*232:notEq*/
16442+ return NotEq::sample(); /*233:notEq*/
1636116443 }
1636216444
1636316445 /**
@@ -16433,7 +16515,7 @@ class TopLevel {
1643316515 * @return NSError|float|null
1643416516 */
1643516517 public static function sampleNSError(): NSError|float|null {
16436- return NSError::sample(); /*233:nsError*/
16518+ return NSError::sample(); /*234:nsError*/
1643716519 }
1643816520
1643916521 /**
@@ -16509,7 +16591,7 @@ class TopLevel {
1650916591 * @return NSObject|float|null
1651016592 */
1651116593 public static function sampleNSObject(): NSObject|float|null {
16512- return NSObject::sample(); /*234:nsObject*/
16594+ return NSObject::sample(); /*235:nsObject*/
1651316595 }
1651416596
1651516597 /**
@@ -16585,7 +16667,7 @@ class TopLevel {
1658516667 * @return NSString|float|null
1658616668 */
1658716669 public static function sampleNSString(): NSString|float|null {
16588- return NSString::sample(); /*235:nsString*/
16670+ return NSString::sample(); /*236:nsString*/
1658916671 }
1659016672
1659116673 /**
@@ -16661,7 +16743,7 @@ class TopLevel {
1666116743 * @return NULLClass|float|null
1666216744 */
1666316745 public static function sampleNull(): NULLClass|float|null {
16664- return NULLClass::sample(); /*236:null*/
16746+ return NULLClass::sample(); /*237:null*/
1666516747 }
1666616748
1666716749 /**
@@ -16737,7 +16819,7 @@ class TopLevel {
1673716819 * @return UnionNullNull|float|null
1673816820 */
1673916821 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16740- return UnionNullNull::sample(); /*237:topLevelNull*/
16822+ return UnionNullNull::sample(); /*238:topLevelNull*/
1674116823 }
1674216824
1674316825 /**
@@ -16813,7 +16895,7 @@ class TopLevel {
1681316895 * @return Nullptr|float|null
1681416896 */
1681516897 public static function sampleNullptr(): Nullptr|float|null {
16816- return Nullptr::sample(); /*238:nullptr*/
16898+ return Nullptr::sample(); /*239:nullptr*/
1681716899 }
1681816900
1681916901 /**
@@ -16889,7 +16971,7 @@ class TopLevel {
1688916971 * @return Number|float|null
1689016972 */
1689116973 public static function sampleNumber(): Number|float|null {
16892- return Number::sample(); /*239:number*/
16974+ return Number::sample(); /*240:number*/
1689316975 }
1689416976
1689516977 /**
@@ -16965,7 +17047,7 @@ class TopLevel {
1696517047 * @return ObjectClass|float|null
1696617048 */
1696717049 public static function sampleObject(): ObjectClass|float|null {
16968- return ObjectClass::sample(); /*240:object*/
17050+ return ObjectClass::sample(); /*241:object*/
1696917051 }
1697017052
1697117053 /**
@@ -17041,7 +17123,7 @@ class TopLevel {
1704117123 * @return ObjectMapper|float|null
1704217124 */
1704317125 public static function sampleObjectMapper(): ObjectMapper|float|null {
17044- return ObjectMapper::sample(); /*241:objectMapper*/
17126+ return ObjectMapper::sample(); /*242:objectMapper*/
1704517127 }
1704617128
1704717129 /**
@@ -17117,7 +17199,7 @@ class TopLevel {
1711717199 * @return Of|float|null
1711817200 */
1711917201 public static function sampleOf(): Of|float|null {
17120- return Of::sample(); /*242:of*/
17202+ return Of::sample(); /*243:of*/
1712117203 }
1712217204
1712317205 /**
@@ -17193,7 +17275,7 @@ class TopLevel {
1719317275 * @return Oneway|float|null
1719417276 */
1719517277 public static function sampleOneway(): Oneway|float|null {
17196- return Oneway::sample(); /*243:oneway*/
17278+ return Oneway::sample(); /*244:oneway*/
1719717279 }
1719817280
1719917281 /**
@@ -17269,7 +17351,7 @@ class TopLevel {
1726917351 * @return Open|float|null
1727017352 */
1727117353 public static function sampleOpen(): Open|float|null {
17272- return Open::sample(); /*244:open*/
17354+ return Open::sample(); /*245:open*/
1727317355 }
1727417356
1727517357 /**
@@ -17345,7 +17427,7 @@ class TopLevel {
1734517427 * @return Operator|float|null
1734617428 */
1734717429 public static function sampleOperator(): Operator|float|null {
17348- return Operator::sample(); /*245:operator*/
17430+ return Operator::sample(); /*246:operator*/
1734917431 }
1735017432
1735117433 /**
@@ -17421,7 +17503,7 @@ class TopLevel {
1742117503 * @return Optional|float|null
1742217504 */
1742317505 public static function sampleOptional(): Optional|float|null {
17424- return Optional::sample(); /*246:optional*/
17506+ return Optional::sample(); /*247:optional*/
1742517507 }
1742617508
1742717509 /**
@@ -17497,7 +17579,7 @@ class TopLevel {
1749717579 * @return OrClass|float|null
1749817580 */
1749917581 public static function sampleOr(): OrClass|float|null {
17500- return OrClass::sample(); /*247:or*/
17582+ return OrClass::sample(); /*248:or*/
1750117583 }
1750217584
1750317585 /**
@@ -17573,7 +17655,7 @@ class TopLevel {
1757317655 * @return OrEq|float|null
1757417656 */
1757517657 public static function sampleOrEq(): OrEq|float|null {
17576- return OrEq::sample(); /*248:orEq*/
17658+ return OrEq::sample(); /*249:orEq*/
1757717659 }
1757817660
1757917661 /**
@@ -17649,7 +17731,7 @@ class TopLevel {
1764917731 * @return Out|float|null
1765017732 */
1765117733 public static function sampleOut(): Out|float|null {
17652- return Out::sample(); /*249:out*/
17734+ return Out::sample(); /*250:out*/
1765317735 }
1765417736
1765517737 /**
@@ -17725,7 +17807,7 @@ class TopLevel {
1772517807 * @return OverrideClass|float|null
1772617808 */
1772717809 public static function sampleOverride(): OverrideClass|float|null {
17728- return OverrideClass::sample(); /*250:override*/
17810+ return OverrideClass::sample(); /*251:override*/
1772917811 }
1773017812
1773117813 /**
@@ -17801,7 +17883,7 @@ class TopLevel {
1780117883 * @return Package|float|null
1780217884 */
1780317885 public static function samplePackage(): Package|float|null {
17804- return Package::sample(); /*251:package*/
17886+ return Package::sample(); /*252:package*/
1780517887 }
1780617888
1780717889 /**
@@ -17877,7 +17959,7 @@ class TopLevel {
1787717959 * @return Params|float|null
1787817960 */
1787917961 public static function sampleParams(): Params|float|null {
17880- return Params::sample(); /*252:params*/
17962+ return Params::sample(); /*253:params*/
1788117963 }
1788217964
1788317965 /**
@@ -17953,7 +18035,7 @@ class TopLevel {
1795318035 * @return Pass|float|null
1795418036 */
1795518037 public static function samplePass(): Pass|float|null {
17956- return Pass::sample(); /*253:pass*/
18038+ return Pass::sample(); /*254:pass*/
1795718039 }
1795818040
1795918041 /**
@@ -18029,7 +18111,7 @@ class TopLevel {
1802918111 * @return Port|float|null
1803018112 */
1803118113 public static function samplePort(): Port|float|null {
18032- return Port::sample(); /*254:port*/
18114+ return Port::sample(); /*255:port*/
1803318115 }
1803418116
1803518117 /**
@@ -18105,7 +18187,7 @@ class TopLevel {
1810518187 * @return Postfix|float|null
1810618188 */
1810718189 public static function samplePostfix(): Postfix|float|null {
18108- return Postfix::sample(); /*255:postfix*/
18190+ return Postfix::sample(); /*256:postfix*/
1810918191 }
1811018192
1811118193 /**
@@ -18181,7 +18263,7 @@ class TopLevel {
1818118263 * @return Precedence|float|null
1818218264 */
1818318265 public static function samplePrecedence(): Precedence|float|null {
18184- return Precedence::sample(); /*256:precedence*/
18266+ return Precedence::sample(); /*257:precedence*/
1818518267 }
1818618268
1818718269 /**
@@ -18257,7 +18339,7 @@ class TopLevel {
1825718339 * @return Prefix|float|null
1825818340 */
1825918341 public static function samplePrefix(): Prefix|float|null {
18260- return Prefix::sample(); /*257:prefix*/
18342+ return Prefix::sample(); /*258:prefix*/
1826118343 }
1826218344
1826318345 /**
@@ -18333,7 +18415,7 @@ class TopLevel {
1833318415 * @return PrimitiveKind|float|null
1833418416 */
1833518417 public static function samplePrimitiveKind(): PrimitiveKind|float|null {
18336- return PrimitiveKind::sample(); /*258:primitiveKind*/
18418+ return PrimitiveKind::sample(); /*259:primitiveKind*/
1833718419 }
1833818420
1833918421 /**
@@ -18409,7 +18491,7 @@ class TopLevel {
1840918491 * @return PrintClass|float|null
1841018492 */
1841118493 public static function samplePrint(): PrintClass|float|null {
18412- return PrintClass::sample(); /*259:print*/
18494+ return PrintClass::sample(); /*260:print*/
1841318495 }
1841418496
1841518497 /**
@@ -18485,7 +18567,7 @@ class TopLevel {
1848518567 * @return Printf|float|null
1848618568 */
1848718569 public static function samplePrintf(): Printf|float|null {
18488- return Printf::sample(); /*260:printf*/
18570+ return Printf::sample(); /*261:printf*/
1848918571 }
1849018572
1849118573 /**
@@ -18561,7 +18643,7 @@ class TopLevel {
1856118643 * @return PrintMembers|float|null
1856218644 */
1856318645 public static function samplePrintMembers(): PrintMembers|float|null {
18564- return PrintMembers::sample(); /*261:printMembers*/
18646+ return PrintMembers::sample(); /*262:printMembers*/
1856518647 }
1856618648
1856718649 /**
@@ -18637,7 +18719,7 @@ class TopLevel {
1863718719 * @return PrivateClass|float|null
1863818720 */
1863918721 public static function samplePrivate(): PrivateClass|float|null {
18640- return PrivateClass::sample(); /*262:private*/
18722+ return PrivateClass::sample(); /*263:private*/
1864118723 }
1864218724
1864318725 /**
@@ -18713,7 +18795,7 @@ class TopLevel {
1871318795 * @return ProtectedClass|float|null
1871418796 */
1871518797 public static function sampleProtected(): ProtectedClass|float|null {
18716- return ProtectedClass::sample(); /*263:protected*/
18798+ return ProtectedClass::sample(); /*264:protected*/
1871718799 }
1871818800
1871918801 /**
@@ -18789,7 +18871,7 @@ class TopLevel {
1878918871 * @return Protocol|float|null
1879018872 */
1879118873 public static function sampleProtocol(): Protocol|float|null {
18792- return Protocol::sample(); /*264:protocol*/
18874+ return Protocol::sample(); /*265:protocol*/
1879318875 }
1879418876
1879518877 /**
@@ -18865,7 +18947,7 @@ class TopLevel {
1886518947 * @return ProtocolClass|float|null
1886618948 */
1886718949 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
18868- return ProtocolClass::sample(); /*265:topLevelProtocol*/
18950+ return ProtocolClass::sample(); /*266:topLevelProtocol*/
1886918951 }
1887018952
1887118953 /**
@@ -18941,7 +19023,7 @@ class TopLevel {
1894119023 * @return PublicClass|float|null
1894219024 */
1894319025 public static function samplePublic(): PublicClass|float|null {
18944- return PublicClass::sample(); /*266:public*/
19026+ return PublicClass::sample(); /*267:public*/
1894519027 }
1894619028
1894719029 /**
@@ -19017,7 +19099,7 @@ class TopLevel {
1901719099 * @return Quicktype|float|null
1901819100 */
1901919101 public static function sampleQuicktype(): Quicktype|float|null {
19020- return Quicktype::sample(); /*267:quicktype*/
19102+ return Quicktype::sample(); /*268:quicktype*/
1902119103 }
1902219104
1902319105 /**
@@ -19093,7 +19175,7 @@ class TopLevel {
1909319175 * @return Raise|float|null
1909419176 */
1909519177 public static function sampleRaise(): Raise|float|null {
19096- return Raise::sample(); /*268:raise*/
19178+ return Raise::sample(); /*269:raise*/
1909719179 }
1909819180
1909919181 /**
@@ -19169,7 +19251,7 @@ class TopLevel {
1916919251 * @return Range|float|null
1917019252 */
1917119253 public static function sampleRange(): Range|float|null {
19172- return Range::sample(); /*269:range*/
19254+ return Range::sample(); /*270:range*/
1917319255 }
1917419256
1917519257 /**
@@ -19245,7 +19327,7 @@ class TopLevel {
1924519327 * @return ReadonlyClass|float|null
1924619328 */
1924719329 public static function sampleReadonly(): ReadonlyClass|float|null {
19248- return ReadonlyClass::sample(); /*270:readonly*/
19330+ return ReadonlyClass::sample(); /*271:readonly*/
1924919331 }
1925019332
1925119333 /**
@@ -19321,7 +19403,7 @@ class TopLevel {
1932119403 * @return Ref|float|null
1932219404 */
1932319405 public static function sampleRef(): Ref|float|null {
19324- return Ref::sample(); /*271:ref*/
19406+ return Ref::sample(); /*272:ref*/
1932519407 }
1932619408
1932719409 /**
@@ -19397,7 +19479,7 @@ class TopLevel {
1939719479 * @return RegExp|float|null
1939819480 */
1939919481 public static function sampleRegExp(): RegExp|float|null {
19400- return RegExp::sample(); /*272:regExp*/
19482+ return RegExp::sample(); /*273:regExp*/
1940119483 }
1940219484
1940319485 /**
@@ -19473,7 +19555,7 @@ class TopLevel {
1947319555 * @return Register|float|null
1947419556 */
1947519557 public static function sampleRegister(): Register|float|null {
19476- return Register::sample(); /*273:register*/
19558+ return Register::sample(); /*274:register*/
1947719559 }
1947819560
1947919561 /**
@@ -19549,7 +19631,7 @@ class TopLevel {
1954919631 * @return ReinterpretCast|float|null
1955019632 */
1955119633 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19552- return ReinterpretCast::sample(); /*274:reinterpretCast*/
19634+ return ReinterpretCast::sample(); /*275:reinterpretCast*/
1955319635 }
1955419636
1955519637 /**
@@ -19625,7 +19707,7 @@ class TopLevel {
1962519707 * @return Repeat|float|null
1962619708 */
1962719709 public static function sampleRepeat(): Repeat|float|null {
19628- return Repeat::sample(); /*275:repeat*/
19710+ return Repeat::sample(); /*276:repeat*/
1962919711 }
1963019712
1963119713 /**
@@ -19701,7 +19783,7 @@ class TopLevel {
1970119783 * @return RequireClass|float|null
1970219784 */
1970319785 public static function sampleRequire(): RequireClass|float|null {
19704- return RequireClass::sample(); /*276:require*/
19786+ return RequireClass::sample(); /*277:require*/
1970519787 }
1970619788
1970719789 /**
@@ -19777,7 +19859,7 @@ class TopLevel {
1977719859 * @return Required|float|null
1977819860 */
1977919861 public static function sampleRequired(): Required|float|null {
19780- return Required::sample(); /*277:required*/
19862+ return Required::sample(); /*278:required*/
1978119863 }
1978219864
1978319865 /**
@@ -19853,7 +19935,7 @@ class TopLevel {
1985319935 * @return Requires|float|null
1985419936 */
1985519937 public static function sampleRequires(): Requires|float|null {
19856- return Requires::sample(); /*278:requires*/
19938+ return Requires::sample(); /*279:requires*/
1985719939 }
1985819940
1985919941 /**
@@ -19929,7 +20011,7 @@ class TopLevel {
1992920011 * @return Restrict|float|null
1993020012 */
1993120013 public static function sampleRestrict(): Restrict|float|null {
19932- return Restrict::sample(); /*279:restrict*/
20014+ return Restrict::sample(); /*280:restrict*/
1993320015 }
1993420016
1993520017 /**
@@ -20005,7 +20087,7 @@ class TopLevel {
2000520087 * @return Retain|float|null
2000620088 */
2000720089 public static function sampleRetain(): Retain|float|null {
20008- return Retain::sample(); /*280:retain*/
20090+ return Retain::sample(); /*281:retain*/
2000920091 }
2001020092
2001120093 /**
@@ -20081,7 +20163,7 @@ class TopLevel {
2008120163 * @return Rethrows|float|null
2008220164 */
2008320165 public static function sampleRethrows(): Rethrows|float|null {
20084- return Rethrows::sample(); /*281:rethrows*/
20166+ return Rethrows::sample(); /*282:rethrows*/
2008520167 }
2008620168
2008720169 /**
@@ -20157,7 +20239,7 @@ class TopLevel {
2015720239 * @return ReturnClass|float|null
2015820240 */
2015920241 public static function sampleReturn(): ReturnClass|float|null {
20160- return ReturnClass::sample(); /*282:return*/
20242+ return ReturnClass::sample(); /*283:return*/
2016120243 }
2016220244
2016320245 /**
@@ -20233,7 +20315,7 @@ class TopLevel {
2023320315 * @return Right|float|null
2023420316 */
2023520317 public static function sampleRight(): Right|float|null {
20236- return Right::sample(); /*283:right*/
20318+ return Right::sample(); /*284:right*/
2023720319 }
2023820320
2023920321 /**
@@ -20309,7 +20391,7 @@ class TopLevel {
2030920391 * @return RuntimeType|float|null
2031020392 */
2031120393 public static function sampleRuntimeType(): RuntimeType|float|null {
20312- return RuntimeType::sample(); /*284:runtimeType*/
20394+ return RuntimeType::sample(); /*285:runtimeType*/
2031320395 }
2031420396
2031520397 /**
@@ -20385,7 +20467,7 @@ class TopLevel {
2038520467 * @return S|float|null
2038620468 */
2038720469 public static function sampleS(): S|float|null {
20388- return S::sample(); /*285:s*/
20470+ return S::sample(); /*286:s*/
2038920471 }
2039020472
2039120473 /**
@@ -20461,7 +20543,7 @@ class TopLevel {
2046120543 * @return Sbyte|float|null
2046220544 */
2046320545 public static function sampleSbyte(): Sbyte|float|null {
20464- return Sbyte::sample(); /*286:sbyte*/
20546+ return Sbyte::sample(); /*287:sbyte*/
2046520547 }
2046620548
2046720549 /**
@@ -20537,7 +20619,7 @@ class TopLevel {
2053720619 * @return Sealed|float|null
2053820620 */
2053920621 public static function sampleSealed(): Sealed|float|null {
20540- return Sealed::sample(); /*287:sealed*/
20622+ return Sealed::sample(); /*288:sealed*/
2054120623 }
2054220624
2054320625 /**
@@ -20613,7 +20695,7 @@ class TopLevel {
2061320695 * @return Sel|float|null
2061420696 */
2061520697 public static function sampleSel(): Sel|float|null {
20616- return Sel::sample(); /*288:sel*/
20698+ return Sel::sample(); /*289:sel*/
2061720699 }
2061820700
2061920701 /**
@@ -20689,7 +20771,7 @@ class TopLevel {
2068920771 * @return Select|float|null
2069020772 */
2069120773 public static function sampleSelect(): Select|float|null {
20692- return Select::sample(); /*289:select*/
20774+ return Select::sample(); /*290:select*/
2069320775 }
2069420776
2069520777 /**
@@ -20765,7 +20847,7 @@ class TopLevel {
2076520847 * @return SelfClass|float|null
2076620848 */
2076720849 public static function sampleSelf(): SelfClass|float|null {
20768- return SelfClass::sample(); /*290:self*/
20850+ return SelfClass::sample(); /*291:self*/
2076920851 }
2077020852
2077120853 /**
@@ -20841,7 +20923,7 @@ class TopLevel {
2084120923 * @return UnionSelfSelf|float|null
2084220924 */
2084320925 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
20844- return UnionSelfSelf::sample(); /*291:topLevelSelf*/
20926+ return UnionSelfSelf::sample(); /*292:topLevelSelf*/
2084520927 }
2084620928
2084720929 /**
@@ -20917,7 +20999,7 @@ class TopLevel {
2091720999 * @return Sendable|float|null
2091821000 */
2091921001 public static function sampleSendable(): Sendable|float|null {
20920- return Sendable::sample(); /*292:sendable*/
21002+ return Sendable::sample(); /*293:sendable*/
2092121003 }
2092221004
2092321005 /**
@@ -20993,7 +21075,7 @@ class TopLevel {
2099321075 * @return SerialDescriptor|float|null
2099421076 */
2099521077 public static function sampleSerialDescriptor(): SerialDescriptor|float|null {
20996- return SerialDescriptor::sample(); /*293:serialDescriptor*/
21078+ return SerialDescriptor::sample(); /*294:serialDescriptor*/
2099721079 }
2099821080
2099921081 /**
@@ -21069,7 +21151,7 @@ class TopLevel {
2106921151 * @return SerializableClass|float|null
2107021152 */
2107121153 public static function sampleSerializable(): SerializableClass|float|null {
21072- return SerializableClass::sample(); /*294:serializable*/
21154+ return SerializableClass::sample(); /*295:serializable*/
2107321155 }
2107421156
2107521157 /**
@@ -21145,7 +21227,7 @@ class TopLevel {
2114521227 * @return Serialize|float|null
2114621228 */
2114721229 public static function sampleSerialize(): Serialize|float|null {
21148- return Serialize::sample(); /*295:serialize*/
21230+ return Serialize::sample(); /*296:serialize*/
2114921231 }
2115021232
2115121233 /**
@@ -21221,7 +21303,7 @@ class TopLevel {
2122121303 * @return SerializerProvider|float|null
2122221304 */
2122321305 public static function sampleSerializerProvider(): SerializerProvider|float|null {
21224- return SerializerProvider::sample(); /*296:serializerProvider*/
21306+ return SerializerProvider::sample(); /*297:serializerProvider*/
2122521307 }
2122621308
2122721309 /**
@@ -21297,7 +21379,7 @@ class TopLevel {
2129721379 * @return SerialName|float|null
2129821380 */
2129921381 public static function sampleSerialName(): SerialName|float|null {
21300- return SerialName::sample(); /*297:serialName*/
21382+ return SerialName::sample(); /*298:serialName*/
2130121383 }
2130221384
2130321385 /**
@@ -21373,7 +21455,7 @@ class TopLevel {
2137321455 * @return Set|float|null
2137421456 */
2137521457 public static function sampleSet(): Set|float|null {
21376- return Set::sample(); /*298:set*/
21458+ return Set::sample(); /*299:set*/
2137721459 }
2137821460
2137921461 /**
@@ -21449,7 +21531,7 @@ class TopLevel {
2144921531 * @return Short|float|null
2145021532 */
2145121533 public static function sampleShort(): Short|float|null {
21452- return Short::sample(); /*299:short*/
21534+ return Short::sample(); /*300:short*/
2145321535 }
2145421536
2145521537 /**
@@ -21525,7 +21607,7 @@ class TopLevel {
2152521607 * @return Signed|float|null
2152621608 */
2152721609 public static function sampleSigned(): Signed|float|null {
21528- return Signed::sample(); /*300:signed*/
21610+ return Signed::sample(); /*301:signed*/
2152921611 }
2153021612
2153121613 /**
@@ -21601,7 +21683,7 @@ class TopLevel {
2160121683 * @return SimpleModule|float|null
2160221684 */
2160321685 public static function sampleSimpleModule(): SimpleModule|float|null {
21604- return SimpleModule::sample(); /*301:simpleModule*/
21686+ return SimpleModule::sample(); /*302:simpleModule*/
2160521687 }
2160621688
2160721689 /**
@@ -21677,7 +21759,7 @@ class TopLevel {
2167721759 * @return Sizeof|float|null
2167821760 */
2167921761 public static function sampleSizeof(): Sizeof|float|null {
21680- return Sizeof::sample(); /*302:sizeof*/
21762+ return Sizeof::sample(); /*303:sizeof*/
2168121763 }
2168221764
2168321765 /**
@@ -21753,7 +21835,7 @@ class TopLevel {
2175321835 * @return Stackalloc|float|null
2175421836 */
2175521837 public static function sampleStackalloc(): Stackalloc|float|null {
21756- return Stackalloc::sample(); /*303:stackalloc*/
21838+ return Stackalloc::sample(); /*304:stackalloc*/
2175721839 }
2175821840
2175921841 /**
@@ -21829,7 +21911,7 @@ class TopLevel {
2182921911 * @return Standards|float|null
2183021912 */
2183121913 public static function sampleStandards(): Standards|float|null {
21832- return Standards::sample(); /*304:standards*/
21914+ return Standards::sample(); /*305:standards*/
2183321915 }
2183421916
2183521917 /**
@@ -21905,7 +21987,7 @@ class TopLevel {
2190521987 * @return StaticClass|float|null
2190621988 */
2190721989 public static function sampleStatic(): StaticClass|float|null {
21908- return StaticClass::sample(); /*305:static*/
21990+ return StaticClass::sample(); /*306:static*/
2190921991 }
2191021992
2191121993 /**
@@ -21981,7 +22063,7 @@ class TopLevel {
2198122063 * @return StaticAssert|float|null
2198222064 */
2198322065 public static function sampleStaticAssert(): StaticAssert|float|null {
21984- return StaticAssert::sample(); /*306:staticAssert*/
22066+ return StaticAssert::sample(); /*307:staticAssert*/
2198522067 }
2198622068
2198722069 /**
@@ -22057,7 +22139,7 @@ class TopLevel {
2205722139 * @return StaticCast|float|null
2205822140 */
2205922141 public static function sampleStaticCast(): StaticCast|float|null {
22060- return StaticCast::sample(); /*307:staticCast*/
22142+ return StaticCast::sample(); /*308:staticCast*/
2206122143 }
2206222144
2206322145 /**
@@ -22133,7 +22215,7 @@ class TopLevel {
2213322215 * @return StdDeserializer|float|null
2213422216 */
2213522217 public static function sampleStdDeserializer(): StdDeserializer|float|null {
22136- return StdDeserializer::sample(); /*308:stdDeserializer*/
22218+ return StdDeserializer::sample(); /*309:stdDeserializer*/
2213722219 }
2213822220
2213922221 /**
@@ -22209,7 +22291,7 @@ class TopLevel {
2220922291 * @return StdSerializer|float|null
2221022292 */
2221122293 public static function sampleStdSerializer(): StdSerializer|float|null {
22212- return StdSerializer::sample(); /*309:stdSerializer*/
22294+ return StdSerializer::sample(); /*310:stdSerializer*/
2221322295 }
2221422296
2221522297 /**
@@ -22285,7 +22367,7 @@ class TopLevel {
2228522367 * @return Strictfp|float|null
2228622368 */
2228722369 public static function sampleStrictfp(): Strictfp|float|null {
22288- return Strictfp::sample(); /*310:strictfp*/
22370+ return Strictfp::sample(); /*311:strictfp*/
2228922371 }
2229022372
2229122373 /**
@@ -22361,7 +22443,7 @@ class TopLevel {
2236122443 * @return StringClass|float|null
2236222444 */
2236322445 public static function sampleString(): StringClass|float|null {
22364- return StringClass::sample(); /*311:string*/
22446+ return StringClass::sample(); /*312:string*/
2236522447 }
2236622448
2236722449 /**
@@ -22437,7 +22519,7 @@ class TopLevel {
2243722519 * @return Struct|float|null
2243822520 */
2243922521 public static function sampleStruct(): Struct|float|null {
22440- return Struct::sample(); /*312:struct*/
22522+ return Struct::sample(); /*313:struct*/
2244122523 }
2244222524
2244322525 /**
@@ -22513,7 +22595,7 @@ class TopLevel {
2251322595 * @return Subscript|float|null
2251422596 */
2251522597 public static function sampleSubscript(): Subscript|float|null {
22516- return Subscript::sample(); /*313:subscript*/
22598+ return Subscript::sample(); /*314:subscript*/
2251722599 }
2251822600
2251922601 /**
@@ -22589,7 +22671,7 @@ class TopLevel {
2258922671 * @return Super|float|null
2259022672 */
2259122673 public static function sampleSuper(): Super|float|null {
22592- return Super::sample(); /*314:super*/
22674+ return Super::sample(); /*315:super*/
2259322675 }
2259422676
2259522677 /**
@@ -22665,7 +22747,7 @@ class TopLevel {
2266522747 * @return SwitchClass|float|null
2266622748 */
2266722749 public static function sampleSwitch(): SwitchClass|float|null {
22668- return SwitchClass::sample(); /*315:switch*/
22750+ return SwitchClass::sample(); /*316:switch*/
2266922751 }
2267022752
2267122753 /**
@@ -22741,7 +22823,7 @@ class TopLevel {
2274122823 * @return Symbol|float|null
2274222824 */
2274322825 public static function sampleSymbol(): Symbol|float|null {
22744- return Symbol::sample(); /*316:symbol*/
22826+ return Symbol::sample(); /*317:symbol*/
2274522827 }
2274622828
2274722829 /**
@@ -22817,7 +22899,7 @@ class TopLevel {
2281722899 * @return Synchronized|float|null
2281822900 */
2281922901 public static function sampleSynchronized(): Synchronized|float|null {
22820- return Synchronized::sample(); /*317:synchronized*/
22902+ return Synchronized::sample(); /*318:synchronized*/
2282122903 }
2282222904
2282322905 /**
@@ -22893,7 +22975,7 @@ class TopLevel {
2289322975 * @return System|float|null
2289422976 */
2289522977 public static function sampleSystem(): System|float|null {
22896- return System::sample(); /*318:system*/
22978+ return System::sample(); /*319:system*/
2289722979 }
2289822980
2289922981 /**
@@ -22969,7 +23051,7 @@ class TopLevel {
2296923051 * @return Template|float|null
2297023052 */
2297123053 public static function sampleTemplate(): Template|float|null {
22972- return Template::sample(); /*319:template*/
23054+ return Template::sample(); /*320:template*/
2297323055 }
2297423056
2297523057 /**
@@ -23045,7 +23127,7 @@ class TopLevel {
2304523127 * @return Then|float|null
2304623128 */
2304723129 public static function sampleThen(): Then|float|null {
23048- return Then::sample(); /*320:then*/
23130+ return Then::sample(); /*321:then*/
2304923131 }
2305023132
2305123133 /**
@@ -23121,7 +23203,7 @@ class TopLevel {
2312123203 * @return This|float|null
2312223204 */
2312323205 public static function sampleTopLevelThis(): This|float|null {
23124- return This::sample(); /*321:topLevelThis*/
23206+ return This::sample(); /*322:topLevelThis*/
2312523207 }
2312623208
2312723209 /**
@@ -23197,7 +23279,7 @@ class TopLevel {
2319723279 * @return ThreadLocal|float|null
2319823280 */
2319923281 public static function sampleThreadLocal(): ThreadLocal|float|null {
23200- return ThreadLocal::sample(); /*322:threadLocal*/
23282+ return ThreadLocal::sample(); /*323:threadLocal*/
2320123283 }
2320223284
2320323285 /**
@@ -23273,7 +23355,7 @@ class TopLevel {
2327323355 * @return ThrowClass|float|null
2327423356 */
2327523357 public static function sampleThrow(): ThrowClass|float|null {
23276- return ThrowClass::sample(); /*323:throw*/
23358+ return ThrowClass::sample(); /*324:throw*/
2327723359 }
2327823360
2327923361 /**
@@ -23349,7 +23431,7 @@ class TopLevel {
2334923431 * @return Throws|float|null
2335023432 */
2335123433 public static function sampleThrows(): Throws|float|null {
23352- return Throws::sample(); /*324:throws*/
23434+ return Throws::sample(); /*325:throws*/
2335323435 }
2335423436
2335523437 /**
@@ -23425,7 +23507,7 @@ class TopLevel {
2342523507 * @return TimeOnly|float|null
2342623508 */
2342723509 public static function sampleTimeOnly(): TimeOnly|float|null {
23428- return TimeOnly::sample(); /*325:timeOnly*/
23510+ return TimeOnly::sample(); /*326:timeOnly*/
2342923511 }
2343023512
2343123513 /**
@@ -23501,7 +23583,7 @@ class TopLevel {
2350123583 * @return TimeOnlyConverter|float|null
2350223584 */
2350323585 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23504- return TimeOnlyConverter::sample(); /*326:timeOnlyConverter*/
23586+ return TimeOnlyConverter::sample(); /*327:timeOnlyConverter*/
2350523587 }
2350623588
2350723589 /**
@@ -23577,7 +23659,83 @@ class TopLevel {
2357723659 * @return TimeZone|float|null
2357823660 */
2357923661 public static function sampleTimeZone(): TimeZone|float|null {
23580- return TimeZone::sample(); /*327:timeZone*/
23662+ return TimeZone::sample(); /*328:timeZone*/
23663+ }
23664+
23665+ /**
23666+ * @param stdClass|float|null $value
23667+ * @throws Exception
23668+ * @return ToDict|float|null
23669+ */
23670+ public static function fromToDict(stdClass|float|null $value): ToDict|float|null {
23671+ if (is_null($value)) {
23672+ return $value; /*null*/
23673+ } elseif (is_object($value)) {
23674+ return ToDict::from($value); /*class*/
23675+ } elseif (is_float($value) || is_int($value)) {
23676+ return $value; /*float*/
23677+ } else {
23678+ throw new Exception('Cannot deserialize union value in TopLevel');
23679+ }
23680+ }
23681+
23682+ /**
23683+ * @throws Exception
23684+ * @return stdClass|float|null
23685+ */
23686+ public function toToDict(): stdClass|float|null {
23687+ if (TopLevel::validateToDict($this->toDict)) {
23688+ if (is_null($this->toDict)) {
23689+ return $this->toDict; /*null*/
23690+ } elseif ($this->toDict instanceof ToDict) {
23691+ return $this->toDict->to(); /*class*/
23692+ } elseif (is_float($this->toDict) || is_int($this->toDict)) {
23693+ return $this->toDict; /*float*/
23694+ } else {
23695+ throw new Exception('Union value has no matching member in TopLevel');
23696+ }
23697+ }
23698+ throw new Exception('never get to this TopLevel::toDict');
23699+ }
23700+
23701+ /**
23702+ * @param ToDict|float|null
23703+ * @return bool
23704+ * @throws Exception
23705+ */
23706+ public static function validateToDict(ToDict|float|null $value): bool {
23707+ if (is_null($value)) {
23708+ if (!is_null($value)) {
23709+ throw new Exception("Attribute Error:TopLevel::toDict");
23710+ }
23711+ } elseif ($value instanceof ToDict) {
23712+ $value->validate();
23713+ } elseif (is_float($value) || is_int($value)) {
23714+ if (!is_float($value) && !is_int($value)) {
23715+ throw new Exception("Attribute Error:TopLevel::toDict");
23716+ }
23717+ } else {
23718+ throw new Exception("Attribute Error:TopLevel::toDict");
23719+ }
23720+ return true;
23721+ }
23722+
23723+ /**
23724+ * @throws Exception
23725+ * @return ToDict|float|null
23726+ */
23727+ public function getToDict(): ToDict|float|null {
23728+ if (TopLevel::validateToDict($this->toDict)) {
23729+ return $this->toDict;
23730+ }
23731+ throw new Exception('never get to getToDict TopLevel::toDict');
23732+ }
23733+
23734+ /**
23735+ * @return ToDict|float|null
23736+ */
23737+ public static function sampleToDict(): ToDict|float|null {
23738+ return ToDict::sample(); /*329:toDict*/
2358123739 }
2358223740
2358323741 /**
@@ -23653,7 +23811,7 @@ class TopLevel {
2365323811 * @return ToJSON|float|null
2365423812 */
2365523813 public static function sampleToJSON(): ToJSON|float|null {
23656- return ToJSON::sample(); /*328:toJSON*/
23814+ return ToJSON::sample(); /*330:toJSON*/
2365723815 }
2365823816
2365923817 /**
@@ -23729,7 +23887,7 @@ class TopLevel {
2372923887 * @return TopLevelClass|float|null
2373023888 */
2373123889 public static function sampleTopLevel(): TopLevelClass|float|null {
23732- return TopLevelClass::sample(); /*329:topLevel*/
23890+ return TopLevelClass::sample(); /*331:topLevel*/
2373323891 }
2373423892
2373523893 /**
@@ -23805,7 +23963,7 @@ class TopLevel {
2380523963 * @return ToString|float|null
2380623964 */
2380723965 public static function sampleToString(): ToString|float|null {
23808- return ToString::sample(); /*330:toString*/
23966+ return ToString::sample(); /*332:toString*/
2380923967 }
2381023968
2381123969 /**
@@ -23881,7 +24039,7 @@ class TopLevel {
2388124039 * @return Transient|float|null
2388224040 */
2388324041 public static function sampleTransient(): Transient|float|null {
23884- return Transient::sample(); /*331:transient*/
24042+ return Transient::sample(); /*333:transient*/
2388524043 }
2388624044
2388724045 /**
@@ -23957,7 +24115,7 @@ class TopLevel {
2395724115 * @return TrueClass|float|null
2395824116 */
2395924117 public static function sampleTrue(): TrueClass|float|null {
23960- return TrueClass::sample(); /*332:true*/
24118+ return TrueClass::sample(); /*334:true*/
2396124119 }
2396224120
2396324121 /**
@@ -24033,7 +24191,7 @@ class TopLevel {
2403324191 * @return UnionTrueTrue|float|null
2403424192 */
2403524193 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
24036- return UnionTrueTrue::sample(); /*333:topLevelTrue*/
24194+ return UnionTrueTrue::sample(); /*335:topLevelTrue*/
2403724195 }
2403824196
2403924197 /**
@@ -24109,7 +24267,7 @@ class TopLevel {
2410924267 * @return TryClass|float|null
2411024268 */
2411124269 public static function sampleTry(): TryClass|float|null {
24112- return TryClass::sample(); /*334:try*/
24270+ return TryClass::sample(); /*336:try*/
2411324271 }
2411424272
2411524273 /**
@@ -24185,7 +24343,7 @@ class TopLevel {
2418524343 * @return Type|float|null
2418624344 */
2418724345 public static function sampleType(): Type|float|null {
24188- return Type::sample(); /*335:type*/
24346+ return Type::sample(); /*337:type*/
2418924347 }
2419024348
2419124349 /**
@@ -24261,7 +24419,7 @@ class TopLevel {
2426124419 * @return TypeClass|float|null
2426224420 */
2426324421 public static function sampleTopLevelType(): TypeClass|float|null {
24264- return TypeClass::sample(); /*336:topLevelType*/
24422+ return TypeClass::sample(); /*338:topLevelType*/
2426524423 }
2426624424
2426724425 /**
@@ -24337,7 +24495,7 @@ class TopLevel {
2433724495 * @return Typealias|float|null
2433824496 */
2433924497 public static function sampleTypealias(): Typealias|float|null {
24340- return Typealias::sample(); /*337:typealias*/
24498+ return Typealias::sample(); /*339:typealias*/
2434124499 }
2434224500
2434324501 /**
@@ -24413,7 +24571,7 @@ class TopLevel {
2441324571 * @return Typedef|float|null
2441424572 */
2441524573 public static function sampleTypedef(): Typedef|float|null {
24416- return Typedef::sample(); /*338:typedef*/
24574+ return Typedef::sample(); /*340:typedef*/
2441724575 }
2441824576
2441924577 /**
@@ -24489,7 +24647,7 @@ class TopLevel {
2448924647 * @return Typeid|float|null
2449024648 */
2449124649 public static function sampleTypeid(): Typeid|float|null {
24492- return Typeid::sample(); /*339:typeid*/
24650+ return Typeid::sample(); /*341:typeid*/
2449324651 }
2449424652
2449524653 /**
@@ -24565,7 +24723,7 @@ class TopLevel {
2456524723 * @return Typename|float|null
2456624724 */
2456724725 public static function sampleTypename(): Typename|float|null {
24568- return Typename::sample(); /*340:typename*/
24726+ return Typename::sample(); /*342:typename*/
2456924727 }
2457024728
2457124729 /**
@@ -24641,7 +24799,7 @@ class TopLevel {
2464124799 * @return Typeof|float|null
2464224800 */
2464324801 public static function sampleTypeof(): Typeof|float|null {
24644- return Typeof::sample(); /*341:typeof*/
24802+ return Typeof::sample(); /*343:typeof*/
2464524803 }
2464624804
2464724805 /**
@@ -24717,7 +24875,7 @@ class TopLevel {
2471724875 * @return Uint|float|null
2471824876 */
2471924877 public static function sampleUint(): Uint|float|null {
24720- return Uint::sample(); /*342:uint*/
24878+ return Uint::sample(); /*344:uint*/
2472124879 }
2472224880
2472324881 /**
@@ -24793,7 +24951,7 @@ class TopLevel {
2479324951 * @return Ulong|float|null
2479424952 */
2479524953 public static function sampleUlong(): Ulong|float|null {
24796- return Ulong::sample(); /*343:ulong*/
24954+ return Ulong::sample(); /*345:ulong*/
2479724955 }
2479824956
2479924957 /**
@@ -24869,7 +25027,7 @@ class TopLevel {
2486925027 * @return Unchecked|float|null
2487025028 */
2487125029 public static function sampleUnchecked(): Unchecked|float|null {
24872- return Unchecked::sample(); /*344:unchecked*/
25030+ return Unchecked::sample(); /*346:unchecked*/
2487325031 }
2487425032
2487525033 /**
@@ -24945,7 +25103,7 @@ class TopLevel {
2494525103 * @return Undefined|float|null
2494625104 */
2494725105 public static function sampleUndefined(): Undefined|float|null {
24948- return Undefined::sample(); /*345:undefined*/
25106+ return Undefined::sample(); /*347:undefined*/
2494925107 }
2495025108
2495125109 /**
@@ -25021,7 +25179,7 @@ class TopLevel {
2502125179 * @return UnionClass|float|null
2502225180 */
2502325181 public static function sampleUnion(): UnionClass|float|null {
25024- return UnionClass::sample(); /*346:union*/
25182+ return UnionClass::sample(); /*348:union*/
2502525183 }
2502625184
2502725185 /**
@@ -25097,7 +25255,7 @@ class TopLevel {
2509725255 * @return Unowned|float|null
2509825256 */
2509925257 public static function sampleUnowned(): Unowned|float|null {
25100- return Unowned::sample(); /*347:unowned*/
25258+ return Unowned::sample(); /*349:unowned*/
2510125259 }
2510225260
2510325261 /**
@@ -25173,7 +25331,7 @@ class TopLevel {
2517325331 * @return Unsafe|float|null
2517425332 */
2517525333 public static function sampleUnsafe(): Unsafe|float|null {
25176- return Unsafe::sample(); /*348:unsafe*/
25334+ return Unsafe::sample(); /*350:unsafe*/
2517725335 }
2517825336
2517925337 /**
@@ -25249,7 +25407,7 @@ class TopLevel {
2524925407 * @return Unsigned|float|null
2525025408 */
2525125409 public static function sampleUnsigned(): Unsigned|float|null {
25252- return Unsigned::sample(); /*349:unsigned*/
25410+ return Unsigned::sample(); /*351:unsigned*/
2525325411 }
2525425412
2525525413 /**
@@ -25325,7 +25483,7 @@ class TopLevel {
2532525483 * @return UseSerializers|float|null
2532625484 */
2532725485 public static function sampleUseSerializers(): UseSerializers|float|null {
25328- return UseSerializers::sample(); /*350:useSerializers*/
25486+ return UseSerializers::sample(); /*352:useSerializers*/
2532925487 }
2533025488
2533125489 /**
@@ -25401,7 +25559,7 @@ class TopLevel {
2540125559 * @return Ushort|float|null
2540225560 */
2540325561 public static function sampleUshort(): Ushort|float|null {
25404- return Ushort::sample(); /*351:ushort*/
25562+ return Ushort::sample(); /*353:ushort*/
2540525563 }
2540625564
2540725565 /**
@@ -25477,7 +25635,7 @@ class TopLevel {
2547725635 * @return Using|float|null
2547825636 */
2547925637 public static function sampleUsing(): Using|float|null {
25480- return Using::sample(); /*352:using*/
25638+ return Using::sample(); /*354:using*/
2548125639 }
2548225640
2548325641 /**
@@ -25553,7 +25711,7 @@ class TopLevel {
2555325711 * @return Utf8JSONReader|float|null
2555425712 */
2555525713 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25556- return Utf8JSONReader::sample(); /*353:utf8JSONReader*/
25714+ return Utf8JSONReader::sample(); /*355:utf8JSONReader*/
2555725715 }
2555825716
2555925717 /**
@@ -25629,7 +25787,7 @@ class TopLevel {
2562925787 * @return Utf8JSONWriter|float|null
2563025788 */
2563125789 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25632- return Utf8JSONWriter::sample(); /*354:utf8JSONWriter*/
25790+ return Utf8JSONWriter::sample(); /*356:utf8JSONWriter*/
2563325791 }
2563425792
2563525793 /**
@@ -25705,7 +25863,7 @@ class TopLevel {
2570525863 * @return UUID|float|null
2570625864 */
2570725865 public static function sampleUUID(): UUID|float|null {
25708- return UUID::sample(); /*355:uuid*/
25866+ return UUID::sample(); /*357:uuid*/
2570925867 }
2571025868
2571125869 /**
@@ -25781,7 +25939,7 @@ class TopLevel {
2578125939 * @return VarClass|float|null
2578225940 */
2578325941 public static function sampleVar(): VarClass|float|null {
25784- return VarClass::sample(); /*356:var*/
25942+ return VarClass::sample(); /*358:var*/
2578525943 }
2578625944
2578725945 /**
@@ -25857,7 +26015,7 @@ class TopLevel {
2585726015 * @return Virtual|float|null
2585826016 */
2585926017 public static function sampleVirtual(): Virtual|float|null {
25860- return Virtual::sample(); /*357:virtual*/
26018+ return Virtual::sample(); /*359:virtual*/
2586126019 }
2586226020
2586326021 /**
@@ -25933,7 +26091,7 @@ class TopLevel {
2593326091 * @return VoidClass|float|null
2593426092 */
2593526093 public static function sampleVoid(): VoidClass|float|null {
25936- return VoidClass::sample(); /*358:void*/
26094+ return VoidClass::sample(); /*360:void*/
2593726095 }
2593826096
2593926097 /**
@@ -26009,7 +26167,7 @@ class TopLevel {
2600926167 * @return Volatile|float|null
2601026168 */
2601126169 public static function sampleVolatile(): Volatile|float|null {
26012- return Volatile::sample(); /*359:volatile*/
26170+ return Volatile::sample(); /*361:volatile*/
2601326171 }
2601426172
2601526173 /**
@@ -26085,7 +26243,7 @@ class TopLevel {
2608526243 * @return WcharT|float|null
2608626244 */
2608726245 public static function sampleWcharT(): WcharT|float|null {
26088- return WcharT::sample(); /*360:wcharT*/
26246+ return WcharT::sample(); /*362:wcharT*/
2608926247 }
2609026248
2609126249 /**
@@ -26161,7 +26319,7 @@ class TopLevel {
2616126319 * @return Weak|float|null
2616226320 */
2616326321 public static function sampleWeak(): Weak|float|null {
26164- return Weak::sample(); /*361:weak*/
26322+ return Weak::sample(); /*363:weak*/
2616526323 }
2616626324
2616726325 /**
@@ -26237,7 +26395,7 @@ class TopLevel {
2623726395 * @return Where|float|null
2623826396 */
2623926397 public static function sampleWhere(): Where|float|null {
26240- return Where::sample(); /*362:where*/
26398+ return Where::sample(); /*364:where*/
2624126399 }
2624226400
2624326401 /**
@@ -26313,7 +26471,7 @@ class TopLevel {
2631326471 * @return WhileClass|float|null
2631426472 */
2631526473 public static function sampleWhile(): WhileClass|float|null {
26316- return WhileClass::sample(); /*363:while*/
26474+ return WhileClass::sample(); /*365:while*/
2631726475 }
2631826476
2631926477 /**
@@ -26389,7 +26547,7 @@ class TopLevel {
2638926547 * @return WillSet|float|null
2639026548 */
2639126549 public static function sampleWillSet(): WillSet|float|null {
26392- return WillSet::sample(); /*364:willSet*/
26550+ return WillSet::sample(); /*366:willSet*/
2639326551 }
2639426552
2639526553 /**
@@ -26465,7 +26623,7 @@ class TopLevel {
2646526623 * @return With|float|null
2646626624 */
2646726625 public static function sampleWith(): With|float|null {
26468- return With::sample(); /*365:with*/
26626+ return With::sample(); /*367:with*/
2646926627 }
2647026628
2647126629 /**
@@ -26541,7 +26699,7 @@ class TopLevel {
2654126699 * @return XorClass|float|null
2654226700 */
2654326701 public static function sampleXor(): XorClass|float|null {
26544- return XorClass::sample(); /*366:xor*/
26702+ return XorClass::sample(); /*368:xor*/
2654526703 }
2654626704
2654726705 /**
@@ -26617,7 +26775,7 @@ class TopLevel {
2661726775 * @return XorEq|float|null
2661826776 */
2661926777 public static function sampleXorEq(): XorEq|float|null {
26620- return XorEq::sample(); /*367:xorEq*/
26778+ return XorEq::sample(); /*369:xorEq*/
2662126779 }
2662226780
2662326781 /**
@@ -26693,7 +26851,7 @@ class TopLevel {
2669326851 * @return Yes|float|null
2669426852 */
2669526853 public static function sampleYes(): Yes|float|null {
26696- return Yes::sample(); /*368:yes*/
26854+ return Yes::sample(); /*370:yes*/
2669726855 }
2669826856
2669926857 /**
@@ -26769,7 +26927,7 @@ class TopLevel {
2676926927 * @return YieldClass|float|null
2677026928 */
2677126929 public static function sampleYield(): YieldClass|float|null {
26772- return YieldClass::sample(); /*369:yield*/
26930+ return YieldClass::sample(); /*371:yield*/
2677326931 }
2677426932
2677526933 /**
@@ -26899,6 +27057,7 @@ class TopLevel {
2689927057 || TopLevel::validateFormatException($this->formatException)
2690027058 || TopLevel::validateFriend($this->friend)
2690127059 || TopLevel::validateFrom($this->from)
27060+ || TopLevel::validateFromDict($this->fromDict)
2690227061 || TopLevel::validateFromJSON($this->fromJSON)
2690327062 || TopLevel::validateFunc($this->func)
2690427063 || TopLevel::validateFunction($this->function)
@@ -27074,6 +27233,7 @@ class TopLevel {
2707427233 || TopLevel::validateTimeOnly($this->timeOnly)
2707527234 || TopLevel::validateTimeOnlyConverter($this->timeOnlyConverter)
2707627235 || TopLevel::validateTimeZone($this->timeZone)
27236+ || TopLevel::validateToDict($this->toDict)
2707727237 || TopLevel::validateToJSON($this->toJSON)
2707827238 || TopLevel::validateTopLevel($this->topLevel)
2707927239 || TopLevel::validateToString($this->toString)
@@ -27208,7 +27368,7 @@ class TopLevel {
2720827368 $out->{'del'} = $this->toDel();
2720927369 $out->{'delegate'} = $this->toDelegate();
2721027370 $out->{'delete'} = $this->toDelete();
27211- $out->{'dict'} = $this->toDict();
27371+ $out->{'dict'} = $this->purpleToDict();
2721227372 $out->{'dictionary'} = $this->toDictionary();
2721327373 $out->{'didSet'} = $this->toDidSet();
2721427374 $out->{'do'} = $this->toDo();
@@ -27246,6 +27406,7 @@ class TopLevel {
2724627406 $out->{'FormatException'} = $this->toFormatException();
2724727407 $out->{'friend'} = $this->toFriend();
2724827408 $out->{'from'} = $this->toFrom();
27409+ $out->{'from_dict'} = $this->toFromDict();
2724927410 $out->{'from_json'} = $this->toFromJSON();
2725027411 $out->{'func'} = $this->toFunc();
2725127412 $out->{'function'} = $this->toFunction();
@@ -27421,6 +27582,7 @@ class TopLevel {
2742127582 $out->{'TimeOnly'} = $this->toTimeOnly();
2742227583 $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
2742327584 $out->{'TimeZone'} = $this->toTimeZone();
27585+ $out->{'to_dict'} = $this->toToDict();
2742427586 $out->{'to_json'} = $this->toToJSON();
2742527587 $out->{'top_level'} = $this->toTopLevel();
2742627588 $out->{'toString'} = $this->toToString();
@@ -27557,7 +27719,7 @@ class TopLevel {
2755727719 ,TopLevel::fromDel($obj->{'del'})
2755827720 ,TopLevel::fromDelegate($obj->{'delegate'})
2755927721 ,TopLevel::fromDelete($obj->{'delete'})
27560- ,TopLevel::fromDict($obj->{'dict'})
27722+ ,TopLevel::purpleFromDict($obj->{'dict'})
2756127723 ,TopLevel::fromDictionary($obj->{'dictionary'})
2756227724 ,TopLevel::fromDidSet($obj->{'didSet'})
2756327725 ,TopLevel::fromDo($obj->{'do'})
@@ -27595,6 +27757,7 @@ class TopLevel {
2759527757 ,TopLevel::fromFormatException($obj->{'FormatException'})
2759627758 ,TopLevel::fromFriend($obj->{'friend'})
2759727759 ,TopLevel::fromFrom($obj->{'from'})
27760+ ,TopLevel::fromFromDict($obj->{'from_dict'})
2759827761 ,TopLevel::fromFromJSON($obj->{'from_json'})
2759927762 ,TopLevel::fromFunc($obj->{'func'})
2760027763 ,TopLevel::fromFunction($obj->{'function'})
@@ -27770,6 +27933,7 @@ class TopLevel {
2777027933 ,TopLevel::fromTimeOnly($obj->{'TimeOnly'})
2777127934 ,TopLevel::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
2777227935 ,TopLevel::fromTimeZone($obj->{'TimeZone'})
27936+ ,TopLevel::fromToDict($obj->{'to_dict'})
2777327937 ,TopLevel::fromToJSON($obj->{'to_json'})
2777427938 ,TopLevel::fromTopLevel($obj->{'top_level'})
2777527939 ,TopLevel::fromToString($obj->{'toString'})
@@ -27942,6 +28106,7 @@ class TopLevel {
2794228106 ,TopLevel::sampleFormatException()
2794328107 ,TopLevel::sampleFriend()
2794428108 ,TopLevel::sampleFrom()
28109+ ,TopLevel::sampleFromDict()
2794528110 ,TopLevel::sampleFromJSON()
2794628111 ,TopLevel::sampleFunc()
2794728112 ,TopLevel::sampleFunction()
@@ -28117,6 +28282,7 @@ class TopLevel {
2811728282 ,TopLevel::sampleTimeOnly()
2811828283 ,TopLevel::sampleTimeOnlyConverter()
2811928284 ,TopLevel::sampleTimeZone()
28285+ ,TopLevel::sampleToDict()
2812028286 ,TopLevel::sampleToJSON()
2812128287 ,TopLevel::sampleTopLevel()
2812228288 ,TopLevel::sampleToString()
@@ -33338,6 +33504,51 @@ class From {
3333833504 }
3333933505 }
3334033506
33507+// This is an autogenerated file:FromDict
33508+
33509+class FromDict {
33510+
33511+ /**
33512+ */
33513+ public function __construct() {
33514+ }
33515+
33516+ /**
33517+ * @throws Exception
33518+ * @return bool
33519+ */
33520+ public function validate(): bool {
33521+ return true;
33522+ }
33523+
33524+ /**
33525+ * @return stdClass
33526+ * @throws Exception
33527+ */
33528+ public function to(): stdClass {
33529+ $out = new stdClass();
33530+ return $out;
33531+ }
33532+
33533+ /**
33534+ * @param stdClass $obj
33535+ * @return FromDict
33536+ * @throws Exception
33537+ */
33538+ public static function from(stdClass $obj): FromDict {
33539+ return new FromDict(
33540+ );
33541+ }
33542+
33543+ /**
33544+ * @return FromDict
33545+ */
33546+ public static function sample(): FromDict {
33547+ return new FromDict(
33548+ );
33549+ }
33550+}
33551+
3334133552 // This is an autogenerated file:FromJSON
3334233553
3334333554 class FromJSON {
@@ -41078,6 +41289,51 @@ class TimeZone {
4107841289 }
4107941290 }
4108041291
41292+// This is an autogenerated file:ToDict
41293+
41294+class ToDict {
41295+
41296+ /**
41297+ */
41298+ public function __construct() {
41299+ }
41300+
41301+ /**
41302+ * @throws Exception
41303+ * @return bool
41304+ */
41305+ public function validate(): bool {
41306+ return true;
41307+ }
41308+
41309+ /**
41310+ * @return stdClass
41311+ * @throws Exception
41312+ */
41313+ public function to(): stdClass {
41314+ $out = new stdClass();
41315+ return $out;
41316+ }
41317+
41318+ /**
41319+ * @param stdClass $obj
41320+ * @return ToDict
41321+ * @throws Exception
41322+ */
41323+ public static function from(stdClass $obj): ToDict {
41324+ return new ToDict(
41325+ );
41326+ }
41327+
41328+ /**
41329+ * @return ToDict
41330+ */
41331+ public static function sample(): ToDict {
41332+ return new ToDict(
41333+ );
41334+ }
41335+}
41336+
4108141337 // This is an autogenerated file:ToJSON
4108241338
4108341339 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"
@@ -310,6 +311,7 @@ class TopLevel {
310311 UnionTimeOnly time_only; // json: "TimeOnly"
311312 UnionTimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter"
312313 UnionTimeZone time_zone; // json: "TimeZone"
314+ UnionToDict to_dict; // json: "to_dict"
313315 UnionToJson to_json; // json: "to_json"
314316 UnionTopLevel top_level; // json: "top_level"
315317 UnionToString to_string; // json: "toString"
@@ -477,6 +479,7 @@ class TopLevel {
477479 "FormatException" : format_exception,
478480 "friend" : friend,
479481 "from" : from,
482+ "from_dict" : from_dict,
480483 "from_json" : from_json,
481484 "func" : func,
482485 "function" : top_level_function,
@@ -652,6 +655,7 @@ class TopLevel {
652655 "TimeOnly" : time_only,
653656 "TimeOnlyConverter" : time_only_converter,
654657 "TimeZone" : time_zone,
658+ "to_dict" : to_dict,
655659 "to_json" : to_json,
656660 "top_level" : top_level,
657661 "toString" : to_string,
@@ -946,6 +950,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
946950 retval.friend = json["friend"];
947951 if (arrayp(json["from"])) error("Unexpected array");
948952 retval.from = json["from"];
953+ if (arrayp(json["from_dict"])) error("Unexpected array");
954+ retval.from_dict = json["from_dict"];
949955 if (arrayp(json["from_json"])) error("Unexpected array");
950956 retval.from_json = json["from_json"];
951957 if (arrayp(json["func"])) error("Unexpected array");
@@ -1296,6 +1302,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
12961302 retval.time_only_converter = json["TimeOnlyConverter"];
12971303 if (arrayp(json["TimeZone"])) error("Unexpected array");
12981304 retval.time_zone = json["TimeZone"];
1305+ if (arrayp(json["to_dict"])) error("Unexpected array");
1306+ retval.to_dict = json["to_dict"];
12991307 if (arrayp(json["to_json"])) error("Unexpected array");
13001308 retval.to_json = json["to_json"];
13011309 if (arrayp(json["top_level"])) error("Unexpected array");
@@ -3540,6 +3548,28 @@ From From_from_JSON(mixed json) {
35403548 return retval;
35413549 }
35423550
3551+typedef float|FromDict UnionFromDict;
3552+
3553+UnionFromDict UnionFromDict_from_JSON(mixed json) {
3554+ return json;
3555+}
3556+
3557+class FromDict {
3558+
3559+ string encode_json() {
3560+ mapping(string:mixed) json = ([
3561+ ]);
3562+
3563+ return Standards.JSON.encode(json);
3564+ }
3565+}
3566+
3567+FromDict FromDict_from_JSON(mixed json) {
3568+ FromDict retval = FromDict();
3569+
3570+ return retval;
3571+}
3572+
35433573 typedef float|FromJson UnionFromJson;
35443574
35453575 UnionFromJson UnionFromJson_from_JSON(mixed json) {
@@ -7016,6 +7046,28 @@ TimeZone TimeZone_from_JSON(mixed json) {
70167046 return retval;
70177047 }
70187048
7049+typedef float|ToDict UnionToDict;
7050+
7051+UnionToDict UnionToDict_from_JSON(mixed json) {
7052+ return json;
7053+}
7054+
7055+class ToDict {
7056+
7057+ string encode_json() {
7058+ mapping(string:mixed) json = ([
7059+ ]);
7060+
7061+ return Standards.JSON.encode(json);
7062+ }
7063+}
7064+
7065+ToDict ToDict_from_JSON(mixed json) {
7066+ ToDict retval = ToDict();
7067+
7068+ return retval;
7069+}
7070+
70197071 typedef float|ToJson UnionToJson;
70207072
70217073 UnionToJson UnionToJson_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+37 −1
@@ -3968,6 +3968,20 @@ class From:
39683968 return result
39693969
39703970
3971+@dataclass
3972+class FromDict:
3973+ pass
3974+
3975+ @staticmethod
3976+ def from_dict(obj: Any) -> 'FromDict':
3977+ assert isinstance(obj, dict)
3978+ return FromDict()
3979+
3980+ def to_dict(self) -> dict:
3981+ result: dict = {}
3982+ return result
3983+
3984+
39713985 @dataclass
39723986 class Global:
39733987 pass
@@ -4220,6 +4234,20 @@ class Self:
42204234 return result
42214235
42224236
4237+@dataclass
4238+class ToDict:
4239+ pass
4240+
4241+ @staticmethod
4242+ def from_dict(obj: Any) -> 'ToDict':
4243+ assert isinstance(obj, dict)
4244+ return ToDict()
4245+
4246+ def to_dict(self) -> dict:
4247+ result: dict = {}
4248+ return result
4249+
4250+
42234251 @dataclass
42244252 class UnionTrueTrue:
42254253 pass
@@ -4890,6 +4918,7 @@ class TopLevel:
48904918 format_exception: float | FormatException | None = None
48914919 friend: float | Friend | None = None
48924920 top_level_from: float | From | None = None
4921+ top_level_from_dict: float | FromDict | None = None
48934922 from_json: float | FromJSON | None = None
48944923 func: float | Func | None = None
48954924 function: float | Function | None = None
@@ -5065,6 +5094,7 @@ class TopLevel:
50655094 time_only: float | TimeOnly | None = None
50665095 time_only_converter: float | TimeOnlyConverter | None = None
50675096 time_zone: float | TimeZone | None = None
5097+ top_level_to_dict: float | ToDict | None = None
50685098 to_json: float | ToJSON | None = None
50695099 top_level: float | TopLevelClass | None = None
50705100 to_string: float | ToString | None = None
@@ -5233,6 +5263,7 @@ class TopLevel:
52335263 format_exception = from_union([from_float, FormatException.from_dict, from_none], obj.get("FormatException"))
52345264 friend = from_union([from_float, Friend.from_dict, from_none], obj.get("friend"))
52355265 top_level_from = from_union([from_float, From.from_dict, from_none], obj.get("from"))
5266+ top_level_from_dict = from_union([from_float, FromDict.from_dict, from_none], obj.get("from_dict"))
52365267 from_json = from_union([from_float, FromJSON.from_dict, from_none], obj.get("from_json"))
52375268 func = from_union([from_float, Func.from_dict, from_none], obj.get("func"))
52385269 function = from_union([from_float, Function.from_dict, from_none], obj.get("function"))
@@ -5408,6 +5439,7 @@ class TopLevel:
54085439 time_only = from_union([from_float, TimeOnly.from_dict, from_none], obj.get("TimeOnly"))
54095440 time_only_converter = from_union([from_float, TimeOnlyConverter.from_dict, from_none], obj.get("TimeOnlyConverter"))
54105441 time_zone = from_union([from_float, TimeZone.from_dict, from_none], obj.get("TimeZone"))
5442+ top_level_to_dict = from_union([from_float, ToDict.from_dict, from_none], obj.get("to_dict"))
54115443 to_json = from_union([from_float, ToJSON.from_dict, from_none], obj.get("to_json"))
54125444 top_level = from_union([from_float, TopLevelClass.from_dict, from_none], obj.get("top_level"))
54135445 to_string = from_union([from_float, ToString.from_dict, from_none], obj.get("toString"))
@@ -5450,7 +5482,7 @@ class TopLevel:
54505482 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
54515483 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
54525484 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5453- 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, k_serializer, 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, primitive_kind, 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, serial_descriptor, serializable, serialize, serializer_provider, serial_name, 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, use_serializers, 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)
5485+ 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, k_serializer, 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, primitive_kind, 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, serial_descriptor, serializable, serialize, serializer_provider, serial_name, 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, use_serializers, 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)
54545486
54555487 def to_dict(self) -> dict:
54565488 result: dict = {}
@@ -5698,6 +5730,8 @@ class TopLevel:
56985730 result["friend"] = from_union([to_float, lambda x: to_class(Friend, x), from_none], self.friend)
56995731 if self.top_level_from is not None:
57005732 result["from"] = from_union([to_float, lambda x: to_class(From, x), from_none], self.top_level_from)
5733+ if self.top_level_from_dict is not None:
5734+ result["from_dict"] = from_union([to_float, lambda x: to_class(FromDict, x), from_none], self.top_level_from_dict)
57015735 if self.from_json is not None:
57025736 result["from_json"] = from_union([to_float, lambda x: to_class(FromJSON, x), from_none], self.from_json)
57035737 if self.func is not None:
@@ -6048,6 +6082,8 @@ class TopLevel:
60486082 result["TimeOnlyConverter"] = from_union([to_float, lambda x: to_class(TimeOnlyConverter, x), from_none], self.time_only_converter)
60496083 if self.time_zone is not None:
60506084 result["TimeZone"] = from_union([to_float, lambda x: to_class(TimeZone, x), from_none], self.time_zone)
6085+ if self.top_level_to_dict is not None:
6086+ result["to_dict"] = from_union([to_float, lambda x: to_class(ToDict, x), from_none], self.top_level_to_dict)
60516087 if self.to_json is not None:
60526088 result["to_json"] = from_union([to_float, lambda x: to_class(ToJSON, x), from_none], self.to_json)
60536089 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)
@@ -14611,6 +14668,63 @@ class UnionTimeZone < Dry::Struct
1461114668 end
1461214669 end
1461314670
14671+class ToDict < Dry::Struct
14672+
14673+ def self.from_dynamic!(d)
14674+ d = Types::Hash[d]
14675+ new(
14676+ )
14677+ end
14678+
14679+ def self.from_json!(json)
14680+ from_dynamic!(JSON.parse(json))
14681+ end
14682+
14683+ def to_dynamic
14684+ {
14685+ }
14686+ end
14687+
14688+ def to_json(options = nil)
14689+ JSON.generate(to_dynamic, options)
14690+ end
14691+end
14692+
14693+class UnionToDict < Dry::Struct
14694+ attribute :double, Types::Double.optional
14695+ attribute :to_dict, ToDict.optional
14696+
14697+ def self.from_dynamic!(d)
14698+ if schema.key(:double).type.right.valid? d
14699+ return new(double: d, to_dict: nil)
14700+ end
14701+ begin
14702+ value = ToDict.from_dynamic!(d)
14703+ if schema.key(:to_dict).type.right.valid? value
14704+ return new(to_dict: value, double: nil)
14705+ end
14706+ rescue
14707+ end
14708+ raise "Invalid union"
14709+ end
14710+
14711+ def self.from_json!(json)
14712+ from_dynamic!(JSON.parse(json))
14713+ end
14714+
14715+ def to_dynamic
14716+ if double != nil
14717+ double
14718+ elsif to_dict != nil
14719+ to_dict.to_dynamic
14720+ end
14721+ end
14722+
14723+ def to_json(options = nil)
14724+ JSON.generate(to_dynamic, options)
14725+ end
14726+end
14727+
1461414728 class ToString < Dry::Struct
1461514729
1461614730 def self.from_dynamic!(d)
@@ -19408,6 +19522,7 @@ class TopLevel < Dry::Struct
1940819522 attribute :format_exception, Types.Instance(UnionFormatException).optional
1940919523 attribute :friend, Types.Instance(UnionFriend).optional
1941019524 attribute :from, Types.Instance(UnionFrom).optional
19525+ attribute :from_dict, Types.Instance(UnionFromDict).optional
1941119526 attribute :from_json, Types.Instance(UnionFromJSON).optional
1941219527 attribute :func, Types.Instance(UnionFunc).optional
1941319528 attribute :function, Types.Instance(UnionFunction).optional
@@ -19583,6 +19698,7 @@ class TopLevel < Dry::Struct
1958319698 attribute :time_only, Types.Instance(UnionTimeOnly).optional
1958419699 attribute :time_only_converter, Types.Instance(UnionTimeOnlyConverter).optional
1958519700 attribute :time_zone, Types.Instance(UnionTimeZone).optional
19701+ attribute :to_dict, Types.Instance(UnionToDict).optional
1958619702 attribute :top_level_to_json, Types.Instance(UnionToJSON).optional
1958719703 attribute :top_level, Types.Instance(UnionTopLevel).optional
1958819704 attribute :to_string, Types.Instance(UnionToString).optional
@@ -19751,6 +19867,7 @@ class TopLevel < Dry::Struct
1975119867 format_exception: d.key?("FormatException") ? UnionFormatException.from_dynamic!(d["FormatException"]) : nil,
1975219868 friend: d.key?("friend") ? UnionFriend.from_dynamic!(d["friend"]) : nil,
1975319869 from: d.key?("from") ? UnionFrom.from_dynamic!(d["from"]) : nil,
19870+ from_dict: d.key?("from_dict") ? UnionFromDict.from_dynamic!(d["from_dict"]) : nil,
1975419871 from_json: d.key?("from_json") ? UnionFromJSON.from_dynamic!(d["from_json"]) : nil,
1975519872 func: d.key?("func") ? UnionFunc.from_dynamic!(d["func"]) : nil,
1975619873 function: d.key?("function") ? UnionFunction.from_dynamic!(d["function"]) : nil,
@@ -19926,6 +20043,7 @@ class TopLevel < Dry::Struct
1992620043 time_only: d.key?("TimeOnly") ? UnionTimeOnly.from_dynamic!(d["TimeOnly"]) : nil,
1992720044 time_only_converter: d.key?("TimeOnlyConverter") ? UnionTimeOnlyConverter.from_dynamic!(d["TimeOnlyConverter"]) : nil,
1992820045 time_zone: d.key?("TimeZone") ? UnionTimeZone.from_dynamic!(d["TimeZone"]) : nil,
20046+ to_dict: d.key?("to_dict") ? UnionToDict.from_dynamic!(d["to_dict"]) : nil,
1992920047 top_level_to_json: d.key?("to_json") ? UnionToJSON.from_dynamic!(d["to_json"]) : nil,
1993020048 top_level: d.key?("top_level") ? UnionTopLevel.from_dynamic!(d["top_level"]) : nil,
1993120049 to_string: d.key?("toString") ? UnionToString.from_dynamic!(d["toString"]) : nil,
@@ -20099,6 +20217,7 @@ class TopLevel < Dry::Struct
2009920217 "FormatException" => format_exception&.to_dynamic,
2010020218 "friend" => friend&.to_dynamic,
2010120219 "from" => from&.to_dynamic,
20220+ "from_dict" => from_dict&.to_dynamic,
2010220221 "from_json" => from_json&.to_dynamic,
2010320222 "func" => func&.to_dynamic,
2010420223 "function" => function&.to_dynamic,
@@ -20274,6 +20393,7 @@ class TopLevel < Dry::Struct
2027420393 "TimeOnly" => time_only&.to_dynamic,
2027520394 "TimeOnlyConverter" => time_only_converter&.to_dynamic,
2027620395 "TimeZone" => time_zone&.to_dynamic,
20396+ "to_dict" => to_dict&.to_dynamic,
2027720397 "to_json" => top_level_to_json&.to_dynamic,
2027820398 "top_level" => top_level&.to_dynamic,
2027920399 "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)
@@ -14611,6 +14668,63 @@ class UnionTimeZone < Dry::Struct
1461114668 end
1461214669 end
1461314670
14671+class ToDict < Dry::Struct
14672+
14673+ def self.from_dynamic!(d)
14674+ d = Types::Hash[d]
14675+ new(
14676+ )
14677+ end
14678+
14679+ def self.from_json!(json)
14680+ from_dynamic!(JSON.parse(json))
14681+ end
14682+
14683+ def to_dynamic
14684+ {
14685+ }
14686+ end
14687+
14688+ def to_json(options = nil)
14689+ JSON.generate(to_dynamic, options)
14690+ end
14691+end
14692+
14693+class UnionToDict < Dry::Struct
14694+ attribute :double, Types::Double.optional
14695+ attribute :to_dict, ToDict.optional
14696+
14697+ def self.from_dynamic!(d)
14698+ if schema.key(:double).type.right.valid? d
14699+ return new(double: d, to_dict: nil)
14700+ end
14701+ begin
14702+ value = ToDict.from_dynamic!(d)
14703+ if schema.key(:to_dict).type.right.valid? value
14704+ return new(to_dict: value, double: nil)
14705+ end
14706+ rescue
14707+ end
14708+ raise "Invalid union"
14709+ end
14710+
14711+ def self.from_json!(json)
14712+ from_dynamic!(JSON.parse(json))
14713+ end
14714+
14715+ def to_dynamic
14716+ if double != nil
14717+ double
14718+ elsif to_dict != nil
14719+ to_dict.to_dynamic
14720+ end
14721+ end
14722+
14723+ def to_json(options = nil)
14724+ JSON.generate(to_dynamic, options)
14725+ end
14726+end
14727+
1461414728 class ToString < Dry::Struct
1461514729
1461614730 def self.from_dynamic!(d)
@@ -19408,6 +19522,7 @@ class TopLevel < Dry::Struct
1940819522 attribute :format_exception, Types.Instance(UnionFormatException).optional
1940919523 attribute :friend, Types.Instance(UnionFriend).optional
1941019524 attribute :from, Types.Instance(UnionFrom).optional
19525+ attribute :from_dict, Types.Instance(UnionFromDict).optional
1941119526 attribute :from_json, Types.Instance(UnionFromJSON).optional
1941219527 attribute :func, Types.Instance(UnionFunc).optional
1941319528 attribute :function, Types.Instance(UnionFunction).optional
@@ -19583,6 +19698,7 @@ class TopLevel < Dry::Struct
1958319698 attribute :time_only, Types.Instance(UnionTimeOnly).optional
1958419699 attribute :time_only_converter, Types.Instance(UnionTimeOnlyConverter).optional
1958519700 attribute :time_zone, Types.Instance(UnionTimeZone).optional
19701+ attribute :to_dict, Types.Instance(UnionToDict).optional
1958619702 attribute :top_level_to_json, Types.Instance(UnionToJSON).optional
1958719703 attribute :top_level, Types.Instance(UnionTopLevel).optional
1958819704 attribute :to_string, Types.Instance(UnionToString).optional
@@ -19751,6 +19867,7 @@ class TopLevel < Dry::Struct
1975119867 format_exception: d.key?("FormatException") ? UnionFormatException.from_dynamic!(d["FormatException"]) : nil,
1975219868 friend: d.key?("friend") ? UnionFriend.from_dynamic!(d["friend"]) : nil,
1975319869 from: d.key?("from") ? UnionFrom.from_dynamic!(d["from"]) : nil,
19870+ from_dict: d.key?("from_dict") ? UnionFromDict.from_dynamic!(d["from_dict"]) : nil,
1975419871 from_json: d.key?("from_json") ? UnionFromJSON.from_dynamic!(d["from_json"]) : nil,
1975519872 func: d.key?("func") ? UnionFunc.from_dynamic!(d["func"]) : nil,
1975619873 function: d.key?("function") ? UnionFunction.from_dynamic!(d["function"]) : nil,
@@ -19926,6 +20043,7 @@ class TopLevel < Dry::Struct
1992620043 time_only: d.key?("TimeOnly") ? UnionTimeOnly.from_dynamic!(d["TimeOnly"]) : nil,
1992720044 time_only_converter: d.key?("TimeOnlyConverter") ? UnionTimeOnlyConverter.from_dynamic!(d["TimeOnlyConverter"]) : nil,
1992820045 time_zone: d.key?("TimeZone") ? UnionTimeZone.from_dynamic!(d["TimeZone"]) : nil,
20046+ to_dict: d.key?("to_dict") ? UnionToDict.from_dynamic!(d["to_dict"]) : nil,
1992920047 top_level_to_json: d.key?("to_json") ? UnionToJSON.from_dynamic!(d["to_json"]) : nil,
1993020048 top_level: d.key?("top_level") ? UnionTopLevel.from_dynamic!(d["top_level"]) : nil,
1993120049 to_string: d.key?("toString") ? UnionToString.from_dynamic!(d["toString"]) : nil,
@@ -20099,6 +20217,7 @@ class TopLevel < Dry::Struct
2009920217 "FormatException" => format_exception&.to_dynamic,
2010020218 "friend" => friend&.to_dynamic,
2010120219 "from" => from&.to_dynamic,
20220+ "from_dict" => from_dict&.to_dynamic,
2010220221 "from_json" => from_json&.to_dynamic,
2010320222 "func" => func&.to_dynamic,
2010420223 "function" => function&.to_dynamic,
@@ -20274,6 +20393,7 @@ class TopLevel < Dry::Struct
2027420393 "TimeOnly" => time_only&.to_dynamic,
2027520394 "TimeOnlyConverter" => time_only_converter&.to_dynamic,
2027620395 "TimeZone" => time_zone&.to_dynamic,
20396+ "to_dict" => to_dict&.to_dynamic,
2027720397 "to_json" => top_level_to_json&.to_dynamic,
2027820398 "top_level" => top_level&.to_dynamic,
2027920399 "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>,
@@ -715,6 +717,8 @@ pub struct TopLevel {
715717 #[serde(rename = "TimeZone")]
716718 pub time_zone: Option<UnionTimeZone>,
717719
720+ pub to_dict: Option<UnionToDict>,
721+
718722 pub to_json: Option<UnionToJson>,
719723
720724 pub top_level: Option<UnionTopLevel>,
@@ -2006,6 +2010,18 @@ pub enum UnionFrom {
20062010 pub struct From {
20072011 }
20082012
2013+#[derive(Debug, Clone, Serialize, Deserialize)]
2014+#[serde(untagged)]
2015+pub enum UnionFromDict {
2016+ Double(f64),
2017+
2018+ FromDict(FromDict),
2019+}
2020+
2021+#[derive(Debug, Clone, Serialize, Deserialize)]
2022+pub struct FromDict {
2023+}
2024+
20092025 #[derive(Debug, Clone, Serialize, Deserialize)]
20102026 #[serde(untagged)]
20112027 pub enum UnionFromJson {
@@ -3998,6 +4014,18 @@ pub enum UnionTimeZone {
39984014 pub struct TimeZone {
39994015 }
40004016
4017+#[derive(Debug, Clone, Serialize, Deserialize)]
4018+#[serde(untagged)]
4019+pub enum UnionToDict {
4020+ Double(f64),
4021+
4022+ ToDict(ToDict),
4023+}
4024+
4025+#[derive(Debug, Clone, Serialize, Deserialize)]
4026+pub struct ToDict {
4027+}
4028+
40014029 #[derive(Debug, Clone, Serialize, Deserialize)]
40024030 #[serde(untagged)]
40034031 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 },
@@ -897,6 +900,9 @@
897900 "TimeZone": {
898901 "$ref": "#/definitions/UnionTimeZone"
899902 },
903+ "to_dict": {
904+ "$ref": "#/definitions/UnionToDict"
905+ },
900906 "to_json": {
901907 "$ref": "#/definitions/UnionToJSON"
902908 },
@@ -1877,6 +1883,11 @@
18771883 "additionalProperties": false,
18781884 "title": "From"
18791885 },
1886+ "FromDict": {
1887+ "type": "object",
1888+ "additionalProperties": false,
1889+ "title": "FromDict"
1890+ },
18801891 "FromJSON": {
18811892 "type": "object",
18821893 "additionalProperties": false,
@@ -2547,6 +2558,11 @@
25472558 "additionalProperties": false,
25482559 "title": "ToString"
25492560 },
2561+ "ToDict": {
2562+ "type": "object",
2563+ "additionalProperties": false,
2564+ "title": "ToDict"
2565+ },
25502566 "ToJSON": {
25512567 "type": "object",
25522568 "additionalProperties": false,
@@ -4587,6 +4603,17 @@
45874603 ],
45884604 "title": "UnionFrom"
45894605 },
4606+ "UnionFromDict": {
4607+ "anyOf": [
4608+ {
4609+ "$ref": "#/definitions/FromDict"
4610+ },
4611+ {
4612+ "type": "number"
4613+ }
4614+ ],
4615+ "title": "UnionFromDict"
4616+ },
45904617 "UnionFromJSON": {
45914618 "anyOf": [
45924619 {
@@ -6061,6 +6088,17 @@
60616088 ],
60626089 "title": "UnionToString"
60636090 },
6091+ "UnionToDict": {
6092+ "anyOf": [
6093+ {
6094+ "$ref": "#/definitions/ToDict"
6095+ },
6096+ {
6097+ "type": "number"
6098+ }
6099+ ],
6100+ "title": "UnionToDict"
6101+ },
60646102 "UnionToJSON": {
60656103 "anyOf": [
60666104 {
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?
@@ -304,6 +305,7 @@ struct TopLevel: Codable {
304305 let timeOnly: UnionTimeOnly?
305306 let timeOnlyConverter: UnionTimeOnlyConverter?
306307 let timeZone: UnionTimeZone?
308+ let toDict: UnionToDict?
307309 let toJSON: UnionToJSON?
308310 let topLevel: UnionTopLevel?
309311 let toString: UnionToString?
@@ -470,6 +472,7 @@ struct TopLevel: Codable {
470472 case formatException = "FormatException"
471473 case friend = "friend"
472474 case from = "from"
475+ case fromDict = "from_dict"
473476 case fromJSON = "from_json"
474477 case topLevelFunc = "func"
475478 case function = "function"
@@ -645,6 +648,7 @@ struct TopLevel: Codable {
645648 case timeOnly = "TimeOnly"
646649 case timeOnlyConverter = "TimeOnlyConverter"
647650 case timeZone = "TimeZone"
651+ case toDict = "to_dict"
648652 case toJSON = "to_json"
649653 case topLevel = "top_level"
650654 case toString = "toString"
@@ -831,6 +835,7 @@ extension TopLevel {
831835 formatException: UnionFormatException?? = nil,
832836 friend: UnionFriend?? = nil,
833837 from: UnionFrom?? = nil,
838+ fromDict: UnionFromDict?? = nil,
834839 fromJSON: UnionFromJSON?? = nil,
835840 topLevelFunc: UnionFunc?? = nil,
836841 function: UnionFunction?? = nil,
@@ -1006,6 +1011,7 @@ extension TopLevel {
10061011 timeOnly: UnionTimeOnly?? = nil,
10071012 timeOnlyConverter: UnionTimeOnlyConverter?? = nil,
10081013 timeZone: UnionTimeZone?? = nil,
1014+ toDict: UnionToDict?? = nil,
10091015 toJSON: UnionToJSON?? = nil,
10101016 topLevel: UnionTopLevel?? = nil,
10111017 toString: UnionToString?? = nil,
@@ -1172,6 +1178,7 @@ extension TopLevel {
11721178 formatException: formatException ?? self.formatException,
11731179 friend: friend ?? self.friend,
11741180 from: from ?? self.from,
1181+ fromDict: fromDict ?? self.fromDict,
11751182 fromJSON: fromJSON ?? self.fromJSON,
11761183 topLevelFunc: topLevelFunc ?? self.topLevelFunc,
11771184 function: function ?? self.function,
@@ -1347,6 +1354,7 @@ extension TopLevel {
13471354 timeOnly: timeOnly ?? self.timeOnly,
13481355 timeOnlyConverter: timeOnlyConverter ?? self.timeOnlyConverter,
13491356 timeZone: timeZone ?? self.timeZone,
1357+ toDict: toDict ?? self.toDict,
13501358 toJSON: toJSON ?? self.toJSON,
13511359 topLevel: topLevel ?? self.topLevel,
13521360 toString: toString ?? self.toString,
@@ -7862,6 +7870,77 @@ extension From {
78627870 }
78637871 }
78647872
7873+enum UnionFromDict: Codable {
7874+ case double(Double)
7875+ case fromDict(FromDict)
7876+
7877+ init(from decoder: Decoder) throws {
7878+ let container = try decoder.singleValueContainer()
7879+ if let x = try? container.decode(Double.self) {
7880+ self = .double(x)
7881+ return
7882+ }
7883+ if let x = try? container.decode(FromDict.self) {
7884+ self = .fromDict(x)
7885+ return
7886+ }
7887+ throw DecodingError.typeMismatch(UnionFromDict.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionFromDict"))
7888+ }
7889+
7890+ func encode(to encoder: Encoder) throws {
7891+ var container = encoder.singleValueContainer()
7892+ switch self {
7893+ case .double(let x):
7894+ try container.encode(x)
7895+ case .fromDict(let x):
7896+ try container.encode(x)
7897+ }
7898+ }
7899+}
7900+
7901+// MARK: - FromDict
7902+struct FromDict: Codable {
7903+ private enum K: String, CodingKey { case unused }
7904+ init(from decoder: Decoder) throws {
7905+ _ = try decoder.container(keyedBy: K.self)
7906+ }
7907+ init() {
7908+ }
7909+}
7910+
7911+// MARK: FromDict convenience initializers and mutators
7912+
7913+extension FromDict {
7914+ init(data: Data) throws {
7915+ self = try newJSONDecoder().decode(FromDict.self, from: data)
7916+ }
7917+
7918+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
7919+ guard let data = json.data(using: encoding) else {
7920+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
7921+ }
7922+ try self.init(data: data)
7923+ }
7924+
7925+ init(fromURL url: URL) throws {
7926+ try self.init(data: try Data(contentsOf: url))
7927+ }
7928+
7929+ func with(
7930+ ) -> FromDict {
7931+ return FromDict(
7932+ )
7933+ }
7934+
7935+ func jsonData() throws -> Data {
7936+ return try newJSONEncoder().encode(self)
7937+ }
7938+
7939+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
7940+ return String(data: try self.jsonData(), encoding: encoding)
7941+ }
7942+}
7943+
78657944 enum UnionFromJSON: Codable {
78667945 case double(Double)
78677946 case fromJSON(FromJSON)
@@ -17447,6 +17526,77 @@ extension TimeZoneClass {
1744717526 }
1744817527 }
1744917528
17529+enum UnionToDict: Codable {
17530+ case double(Double)
17531+ case toDict(ToDict)
17532+
17533+ init(from decoder: Decoder) throws {
17534+ let container = try decoder.singleValueContainer()
17535+ if let x = try? container.decode(Double.self) {
17536+ self = .double(x)
17537+ return
17538+ }
17539+ if let x = try? container.decode(ToDict.self) {
17540+ self = .toDict(x)
17541+ return
17542+ }
17543+ throw DecodingError.typeMismatch(UnionToDict.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionToDict"))
17544+ }
17545+
17546+ func encode(to encoder: Encoder) throws {
17547+ var container = encoder.singleValueContainer()
17548+ switch self {
17549+ case .double(let x):
17550+ try container.encode(x)
17551+ case .toDict(let x):
17552+ try container.encode(x)
17553+ }
17554+ }
17555+}
17556+
17557+// MARK: - ToDict
17558+struct ToDict: Codable {
17559+ private enum K: String, CodingKey { case unused }
17560+ init(from decoder: Decoder) throws {
17561+ _ = try decoder.container(keyedBy: K.self)
17562+ }
17563+ init() {
17564+ }
17565+}
17566+
17567+// MARK: ToDict convenience initializers and mutators
17568+
17569+extension ToDict {
17570+ init(data: Data) throws {
17571+ self = try newJSONDecoder().decode(ToDict.self, from: data)
17572+ }
17573+
17574+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17575+ guard let data = json.data(using: encoding) else {
17576+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17577+ }
17578+ try self.init(data: data)
17579+ }
17580+
17581+ init(fromURL url: URL) throws {
17582+ try self.init(data: try Data(contentsOf: url))
17583+ }
17584+
17585+ func with(
17586+ ) -> ToDict {
17587+ return ToDict(
17588+ )
17589+ }
17590+
17591+ func jsonData() throws -> Data {
17592+ return try newJSONEncoder().encode(self)
17593+ }
17594+
17595+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17596+ return String(data: try self.jsonData(), encoding: encoding)
17597+ }
17598+}
17599+
1745017600 enum UnionToJSON: Codable {
1745117601 case double(Double)
1745217602 case toJSON(ToJSON)
Mschema-typescript-effect-schemadefault / TopLevel.ts+8 −0
@@ -151,6 +151,9 @@ export class ToString extends S.Class<ToString>("ToString")(S.Struct({}).pipe(S.
151151 export class ToJson extends S.Class<ToJson>("ToJson")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
152152 ) {}
153153
154+export class ToDict extends S.Class<ToDict>("ToDict")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
155+) {}
156+
154157 export class TimeZone extends S.Class<TimeZone>("TimeZone")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
155158 ) {}
156159
@@ -670,6 +673,9 @@ export class Func extends S.Class<Func>("Func")(S.Struct({}).pipe(S.filter(value
670673 export class FromJson extends S.Class<FromJson>("FromJson")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
671674 ) {}
672675
676+export class FromDict extends S.Class<FromDict>("FromDict")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
677+) {}
678+
673679 export class From extends S.Class<From>("From")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
674680 ) {}
675681
@@ -1138,6 +1144,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
11381144 "FormatException": S.optional(S.Union(S.Number, FormatException)),
11391145 "friend": S.optional(S.Union(S.Number, Friend)),
11401146 "from": S.optional(S.Union(S.Number, From)),
1147+ "from_dict": S.optional(S.Union(S.Number, FromDict)),
11411148 "from_json": S.optional(S.Union(S.Number, FromJson)),
11421149 "func": S.optional(S.Union(S.Number, Func)),
11431150 "function": S.optional(S.Union(S.Number, Function)),
@@ -1313,6 +1320,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
13131320 "TimeOnly": S.optional(S.Union(S.Number, TimeOnly)),
13141321 "TimeOnlyConverter": S.optional(S.Union(S.Number, TimeOnlyConverter)),
13151322 "TimeZone": S.optional(S.Union(S.Number, TimeZone)),
1323+ "to_dict": S.optional(S.Union(S.Number, ToDict)),
13161324 "to_json": S.optional(S.Union(S.Number, ToJson)),
13171325 "top_level": S.optional(S.Union(S.Number, TopLevelClass)),
13181326 "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>;
@@ -1153,6 +1157,10 @@ export const TimeZoneSchema = z.object({
11531157 });
11541158 export type TimeZone = z.infer<typeof TimeZoneSchema>;
11551159
1160+export const ToDictSchema = z.object({
1161+});
1162+export type ToDict = z.infer<typeof ToDictSchema>;
1163+
11561164 export const ToJsonSchema = z.object({
11571165 });
11581166 export type ToJson = z.infer<typeof ToJsonSchema>;
@@ -1476,6 +1484,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
14761484 "FormatException": z.union([FormatExceptionSchema, z.number()]).optional(),
14771485 "friend": z.union([FriendSchema, z.number()]).optional(),
14781486 "from": z.union([FromSchema, z.number()]).optional(),
1487+ "from_dict": z.union([FromDictSchema, z.number()]).optional(),
14791488 "from_json": z.union([FromJsonSchema, z.number()]).optional(),
14801489 "func": z.union([FuncSchema, z.number()]).optional(),
14811490 "function": z.union([FunctionSchema, z.number()]).optional(),
@@ -1651,6 +1660,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
16511660 "TimeOnly": z.union([TimeOnlySchema, z.number()]).optional(),
16521661 "TimeOnlyConverter": z.union([TimeOnlyConverterSchema, z.number()]).optional(),
16531662 "TimeZone": z.union([TimeZoneSchema, z.number()]).optional(),
1663+ "to_dict": z.union([ToDictSchema, z.number()]).optional(),
16541664 "to_json": z.union([ToJsonSchema, z.number()]).optional(),
16551665 "top_level": z.union([TopLevelClassSchema, z.number()]).optional(),
16561666 "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;
@@ -305,6 +306,7 @@ export interface TopLevel {
305306 TimeOnly?: UnionTimeOnly;
306307 TimeOnlyConverter?: UnionTimeOnlyConverter;
307308 TimeZone?: UnionTimeZone;
309+ to_dict?: UnionToDict;
308310 to_json?: UnionToJSON;
309311 top_level?: UnionTopLevel;
310312 toString?: UnionToString;
@@ -690,6 +692,8 @@ export type UnionFriend = object | number;
690692
691693 export type UnionFrom = object | number;
692694
695+export type UnionFromDict = object | number;
696+
693697 export type UnionFromJSON = object | number;
694698
695699 export type UnionFunc = object | number;
@@ -958,6 +962,8 @@ export type UnionThrows = object | number;
958962
959963 export type UnionToString = object | number;
960964
965+export type UnionToDict = object | number;
966+
961967 export type UnionToJSON = object | number;
962968
963969 export type UnionTopLevel = object | number;
@@ -1336,6 +1342,7 @@ const typeMap: any = {
13361342 { json: "FormatException", js: "FormatException", typ: u(undefined, u(m("any"), 3.14)) },
13371343 { json: "friend", js: "friend", typ: u(undefined, u(m("any"), 3.14)) },
13381344 { json: "from", js: "from", typ: u(undefined, u(m("any"), 3.14)) },
1345+ { json: "from_dict", js: "from_dict", typ: u(undefined, u(m("any"), 3.14)) },
13391346 { json: "from_json", js: "from_json", typ: u(undefined, u(m("any"), 3.14)) },
13401347 { json: "func", js: "func", typ: u(undefined, u(m("any"), 3.14)) },
13411348 { json: "function", js: "function", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1511,6 +1518,7 @@ const typeMap: any = {
15111518 { json: "TimeOnly", js: "TimeOnly", typ: u(undefined, u(m("any"), 3.14)) },
15121519 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: u(undefined, u(m("any"), 3.14)) },
15131520 { json: "TimeZone", js: "TimeZone", typ: u(undefined, u(m("any"), 3.14)) },
1521+ { json: "to_dict", js: "to_dict", typ: u(undefined, u(m("any"), 3.14)) },
15141522 { json: "to_json", js: "to_json", typ: u(undefined, u(m("any"), 3.14)) },
15151523 { json: "top_level", js: "top_level", typ: u(undefined, u(m("any"), 3.14)) },
15161524 { json: "toString", js: "toString", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.