Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
4test cases
184files differ
148modified
36new
0deleted
34,638changed lines
+21,425 −13,213insertions / deletions
Base a351095e6e837e8d6f49beb16c72cac7d3d9a5a1 · PR merge 5969100d9d13d0fd5283dc121d5b29cebb08edd0 · Head 4980a790b0b9ee86e21dfef4b604b278b7742072 · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +15,690 −12,976
Mcjsondefault / TopLevel.c+965 −770
@@ -10921,6 +10921,61 @@ void cJSON_DeleteList(struct List * x) {
1092110921 }
1092210922 }
1092310923
10924+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
10925+ struct LocalDate * x = NULL;
10926+ if (NULL != s) {
10927+ cJSON * j = cJSON_Parse(s);
10928+ if (NULL != j) {
10929+ x = cJSON_GetLocalDateValue(j);
10930+ cJSON_Delete(j);
10931+ }
10932+ }
10933+ return x;
10934+}
10935+
10936+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
10937+ struct LocalDate * x = NULL;
10938+ if (NULL != j) {
10939+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
10940+ memset(x, 0, sizeof(struct LocalDate));
10941+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteLocalDate(x); return NULL; }
10942+ if (cJSON_HasObjectItem(j, "LocalDate")) {
10943+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteLocalDate(x); return NULL; }
10944+ x->local_date = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
10945+ }
10946+ }
10947+ }
10948+ return x;
10949+}
10950+
10951+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
10952+ cJSON * j = NULL;
10953+ if (NULL != x) {
10954+ if (NULL != (j = cJSON_CreateObject())) {
10955+ cJSON_AddNumberToObject(j, "LocalDate", x->local_date);
10956+ }
10957+ }
10958+ return j;
10959+}
10960+
10961+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
10962+ char * s = NULL;
10963+ if (NULL != x) {
10964+ cJSON * j = cJSON_CreateLocalDate(x);
10965+ if (NULL != j) {
10966+ s = cJSON_Print(j);
10967+ cJSON_Delete(j);
10968+ }
10969+ }
10970+ return s;
10971+}
10972+
10973+void cJSON_DeleteLocalDate(struct LocalDate * x) {
10974+ if (NULL != x) {
10975+ cJSON_free(x);
10976+ }
10977+}
10978+
1092410979 struct Locale * cJSON_ParseLocale(const char * s) {
1092510980 struct Locale * x = NULL;
1092610981 if (NULL != s) {
@@ -11416,116 +11471,6 @@ void cJSON_DeleteNewtonsoft(struct Newtonsoft * x) {
1141611471 }
1141711472 }
1141811473
11419-struct Nil * cJSON_ParseNil(const char * s) {
11420- struct Nil * x = NULL;
11421- if (NULL != s) {
11422- cJSON * j = cJSON_Parse(s);
11423- if (NULL != j) {
11424- x = cJSON_GetNilValue(j);
11425- cJSON_Delete(j);
11426- }
11427- }
11428- return x;
11429-}
11430-
11431-struct Nil * cJSON_GetNilValue(const cJSON * j) {
11432- struct Nil * x = NULL;
11433- if (NULL != j) {
11434- if (NULL != (x = cJSON_malloc(sizeof(struct Nil)))) {
11435- memset(x, 0, sizeof(struct Nil));
11436- if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteNil(x); return NULL; }
11437- if (cJSON_HasObjectItem(j, "nil")) {
11438- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteNil(x); return NULL; }
11439- x->nil = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nil"));
11440- }
11441- }
11442- }
11443- return x;
11444-}
11445-
11446-cJSON * cJSON_CreateNil(const struct Nil * x) {
11447- cJSON * j = NULL;
11448- if (NULL != x) {
11449- if (NULL != (j = cJSON_CreateObject())) {
11450- cJSON_AddNumberToObject(j, "nil", x->nil);
11451- }
11452- }
11453- return j;
11454-}
11455-
11456-char * cJSON_PrintNil(const struct Nil * x) {
11457- char * s = NULL;
11458- if (NULL != x) {
11459- cJSON * j = cJSON_CreateNil(x);
11460- if (NULL != j) {
11461- s = cJSON_Print(j);
11462- cJSON_Delete(j);
11463- }
11464- }
11465- return s;
11466-}
11467-
11468-void cJSON_DeleteNil(struct Nil * x) {
11469- if (NULL != x) {
11470- cJSON_free(x);
11471- }
11472-}
11473-
11474-struct No * cJSON_ParseNo(const char * s) {
11475- struct No * x = NULL;
11476- if (NULL != s) {
11477- cJSON * j = cJSON_Parse(s);
11478- if (NULL != j) {
11479- x = cJSON_GetNoValue(j);
11480- cJSON_Delete(j);
11481- }
11482- }
11483- return x;
11484-}
11485-
11486-struct No * cJSON_GetNoValue(const cJSON * j) {
11487- struct No * x = NULL;
11488- if (NULL != j) {
11489- if (NULL != (x = cJSON_malloc(sizeof(struct No)))) {
11490- memset(x, 0, sizeof(struct No));
11491- if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteNo(x); return NULL; }
11492- if (cJSON_HasObjectItem(j, "NO")) {
11493- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteNo(x); return NULL; }
11494- x->no = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
11495- }
11496- }
11497- }
11498- return x;
11499-}
11500-
11501-cJSON * cJSON_CreateNo(const struct No * x) {
11502- cJSON * j = NULL;
11503- if (NULL != x) {
11504- if (NULL != (j = cJSON_CreateObject())) {
11505- cJSON_AddNumberToObject(j, "NO", x->no);
11506- }
11507- }
11508- return j;
11509-}
11510-
11511-char * cJSON_PrintNo(const struct No * x) {
11512- char * s = NULL;
11513- if (NULL != x) {
11514- cJSON * j = cJSON_CreateNo(x);
11515- if (NULL != j) {
11516- s = cJSON_Print(j);
11517- cJSON_Delete(j);
11518- }
11519- }
11520- return s;
11521-}
11522-
11523-void cJSON_DeleteNo(struct No * x) {
11524- if (NULL != x) {
11525- cJSON_free(x);
11526- }
11527-}
11528-
1152911474 struct Goto * cJSON_ParseGoto(const char * s) {
1153011475 struct Goto * x = NULL;
1153111476 if (NULL != s) {
@@ -12362,6 +12307,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1236212307 x->list = cJSON_GetListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
1236312308 if (NULL == x->list) { cJSON_DeleteObj3(x); return NULL; }
1236412309 }
12310+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteObj3(x); return NULL; }
12311+ if (cJSON_HasObjectItem(j, "LocalDate")) {
12312+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteObj3(x); return NULL; }
12313+ x->local_date = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
12314+ if (NULL == x->local_date) { cJSON_DeleteObj3(x); return NULL; }
12315+ }
1236512316 if (!cJSON_HasObjectItem(j, "Locale")) { cJSON_DeleteObj3(x); return NULL; }
1236612317 if (cJSON_HasObjectItem(j, "Locale")) {
1236712318 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12416,18 +12367,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1241612367 x->newtonsoft = cJSON_GetNewtonsoftValue(cJSON_GetObjectItemCaseSensitive(j, "newtonsoft"));
1241712368 if (NULL == x->newtonsoft) { cJSON_DeleteObj3(x); return NULL; }
1241812369 }
12419- if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteObj3(x); return NULL; }
12420- if (cJSON_HasObjectItem(j, "nil")) {
12421- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteObj3(x); return NULL; }
12422- x->nil = cJSON_GetNilValue(cJSON_GetObjectItemCaseSensitive(j, "nil"));
12423- if (NULL == x->nil) { cJSON_DeleteObj3(x); return NULL; }
12424- }
12425- if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteObj3(x); return NULL; }
12426- if (cJSON_HasObjectItem(j, "NO")) {
12427- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteObj3(x); return NULL; }
12428- x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
12429- if (NULL == x->no) { cJSON_DeleteObj3(x); return NULL; }
12430- }
1243112370 if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj3(x); return NULL; }
1243212371 if (cJSON_HasObjectItem(j, "goto")) {
1243312372 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12542,6 +12481,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1254212481 cJSON_AddItemToObject(j, "left", cJSON_CreateLeft(x->left));
1254312482 cJSON_AddItemToObject(j, "let", cJSON_CreateLet(x->let));
1254412483 cJSON_AddItemToObject(j, "list", cJSON_CreateList(x->list));
12484+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateLocalDate(x->local_date));
1254512485 cJSON_AddItemToObject(j, "Locale", cJSON_CreateLocale(x->locale));
1254612486 cJSON_AddItemToObject(j, "lock", cJSON_CreateLock(x->lock));
1254712487 cJSON_AddItemToObject(j, "map", cJSON_CreateMap(x->map));
@@ -12551,8 +12491,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1255112491 cJSON_AddItemToObject(j, "mutating", cJSON_CreateMutating(x->mutating));
1255212492 cJSON_AddItemToObject(j, "native", cJSON_CreateNative(x->native));
1255312493 cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft));
12554- cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil));
12555- cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no));
1255612494 cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj3_goto));
1255712495 cJSON_AddItemToObject(j, "if", cJSON_CreateIf(x->obj3_if));
1255812496 cJSON_AddItemToObject(j, "import", cJSON_CreateImport(x->obj3_import));
@@ -12714,6 +12652,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1271412652 if (NULL != x->list) {
1271512653 cJSON_DeleteList(x->list);
1271612654 }
12655+ if (NULL != x->local_date) {
12656+ cJSON_DeleteLocalDate(x->local_date);
12657+ }
1271712658 if (NULL != x->locale) {
1271812659 cJSON_DeleteLocale(x->locale);
1271912660 }
@@ -12741,12 +12682,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1274112682 if (NULL != x->newtonsoft) {
1274212683 cJSON_DeleteNewtonsoft(x->newtonsoft);
1274312684 }
12744- if (NULL != x->nil) {
12745- cJSON_DeleteNil(x->nil);
12746- }
12747- if (NULL != x->no) {
12748- cJSON_DeleteNo(x->no);
12749- }
1275012685 if (NULL != x->obj3_goto) {
1275112686 cJSON_DeleteGoto(x->obj3_goto);
1275212687 }
@@ -12781,47 +12716,47 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1278112716 }
1278212717 }
1278312718
12784-struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s) {
12785- struct NoSuchMethod * x = NULL;
12719+struct Nil * cJSON_ParseNil(const char * s) {
12720+ struct Nil * x = NULL;
1278612721 if (NULL != s) {
1278712722 cJSON * j = cJSON_Parse(s);
1278812723 if (NULL != j) {
12789- x = cJSON_GetNoSuchMethodValue(j);
12724+ x = cJSON_GetNilValue(j);
1279012725 cJSON_Delete(j);
1279112726 }
1279212727 }
1279312728 return x;
1279412729 }
1279512730
12796-struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j) {
12797- struct NoSuchMethod * x = NULL;
12731+struct Nil * cJSON_GetNilValue(const cJSON * j) {
12732+ struct Nil * x = NULL;
1279812733 if (NULL != j) {
12799- if (NULL != (x = cJSON_malloc(sizeof(struct NoSuchMethod)))) {
12800- memset(x, 0, sizeof(struct NoSuchMethod));
12801- if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteNoSuchMethod(x); return NULL; }
12802- if (cJSON_HasObjectItem(j, "noSuchMethod")) {
12803- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteNoSuchMethod(x); return NULL; }
12804- x->no_such_method = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"));
12734+ if (NULL != (x = cJSON_malloc(sizeof(struct Nil)))) {
12735+ memset(x, 0, sizeof(struct Nil));
12736+ if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteNil(x); return NULL; }
12737+ if (cJSON_HasObjectItem(j, "nil")) {
12738+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteNil(x); return NULL; }
12739+ x->nil = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nil"));
1280512740 }
1280612741 }
1280712742 }
1280812743 return x;
1280912744 }
1281012745
12811-cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x) {
12746+cJSON * cJSON_CreateNil(const struct Nil * x) {
1281212747 cJSON * j = NULL;
1281312748 if (NULL != x) {
1281412749 if (NULL != (j = cJSON_CreateObject())) {
12815- cJSON_AddNumberToObject(j, "noSuchMethod", x->no_such_method);
12750+ cJSON_AddNumberToObject(j, "nil", x->nil);
1281612751 }
1281712752 }
1281812753 return j;
1281912754 }
1282012755
12821-char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) {
12756+char * cJSON_PrintNil(const struct Nil * x) {
1282212757 char * s = NULL;
1282312758 if (NULL != x) {
12824- cJSON * j = cJSON_CreateNoSuchMethod(x);
12759+ cJSON * j = cJSON_CreateNil(x);
1282512760 if (NULL != j) {
1282612761 s = cJSON_Print(j);
1282712762 cJSON_Delete(j);
@@ -12830,53 +12765,53 @@ char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) {
1283012765 return s;
1283112766 }
1283212767
12833-void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x) {
12768+void cJSON_DeleteNil(struct Nil * x) {
1283412769 if (NULL != x) {
1283512770 cJSON_free(x);
1283612771 }
1283712772 }
1283812773
12839-struct Nonatomic * cJSON_ParseNonatomic(const char * s) {
12840- struct Nonatomic * x = NULL;
12774+struct No * cJSON_ParseNo(const char * s) {
12775+ struct No * x = NULL;
1284112776 if (NULL != s) {
1284212777 cJSON * j = cJSON_Parse(s);
1284312778 if (NULL != j) {
12844- x = cJSON_GetNonatomicValue(j);
12779+ x = cJSON_GetNoValue(j);
1284512780 cJSON_Delete(j);
1284612781 }
1284712782 }
1284812783 return x;
1284912784 }
1285012785
12851-struct Nonatomic * cJSON_GetNonatomicValue(const cJSON * j) {
12852- struct Nonatomic * x = NULL;
12786+struct No * cJSON_GetNoValue(const cJSON * j) {
12787+ struct No * x = NULL;
1285312788 if (NULL != j) {
12854- if (NULL != (x = cJSON_malloc(sizeof(struct Nonatomic)))) {
12855- memset(x, 0, sizeof(struct Nonatomic));
12856- if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteNonatomic(x); return NULL; }
12857- if (cJSON_HasObjectItem(j, "nonatomic")) {
12858- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"))) { cJSON_DeleteNonatomic(x); return NULL; }
12859- x->nonatomic = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"));
12789+ if (NULL != (x = cJSON_malloc(sizeof(struct No)))) {
12790+ memset(x, 0, sizeof(struct No));
12791+ if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteNo(x); return NULL; }
12792+ if (cJSON_HasObjectItem(j, "NO")) {
12793+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteNo(x); return NULL; }
12794+ x->no = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
1286012795 }
1286112796 }
1286212797 }
1286312798 return x;
1286412799 }
1286512800
12866-cJSON * cJSON_CreateNonatomic(const struct Nonatomic * x) {
12801+cJSON * cJSON_CreateNo(const struct No * x) {
1286712802 cJSON * j = NULL;
1286812803 if (NULL != x) {
1286912804 if (NULL != (j = cJSON_CreateObject())) {
12870- cJSON_AddNumberToObject(j, "nonatomic", x->nonatomic);
12805+ cJSON_AddNumberToObject(j, "NO", x->no);
1287112806 }
1287212807 }
1287312808 return j;
1287412809 }
1287512810
12876-char * cJSON_PrintNonatomic(const struct Nonatomic * x) {
12811+char * cJSON_PrintNo(const struct No * x) {
1287712812 char * s = NULL;
1287812813 if (NULL != x) {
12879- cJSON * j = cJSON_CreateNonatomic(x);
12814+ cJSON * j = cJSON_CreateNo(x);
1288012815 if (NULL != j) {
1288112816 s = cJSON_Print(j);
1288212817 cJSON_Delete(j);
@@ -12885,50 +12820,160 @@ char * cJSON_PrintNonatomic(const struct Nonatomic * x) {
1288512820 return s;
1288612821 }
1288712822
12888-void cJSON_DeleteNonatomic(struct Nonatomic * x) {
12823+void cJSON_DeleteNo(struct No * x) {
1288912824 if (NULL != x) {
1289012825 cJSON_free(x);
1289112826 }
1289212827 }
1289312828
12894-struct None * cJSON_ParseNone(const char * s) {
12895- struct None * x = NULL;
12829+struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s) {
12830+ struct NoSuchMethod * x = NULL;
1289612831 if (NULL != s) {
1289712832 cJSON * j = cJSON_Parse(s);
1289812833 if (NULL != j) {
12899- x = cJSON_GetNoneValue(j);
12834+ x = cJSON_GetNoSuchMethodValue(j);
1290012835 cJSON_Delete(j);
1290112836 }
1290212837 }
1290312838 return x;
1290412839 }
1290512840
12906-struct None * cJSON_GetNoneValue(const cJSON * j) {
12907- struct None * x = NULL;
12841+struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j) {
12842+ struct NoSuchMethod * x = NULL;
1290812843 if (NULL != j) {
12909- if (NULL != (x = cJSON_malloc(sizeof(struct None)))) {
12910- memset(x, 0, sizeof(struct None));
12911- if (!cJSON_HasObjectItem(j, "None")) { cJSON_DeleteNone(x); return NULL; }
12912- if (cJSON_HasObjectItem(j, "None")) {
12913- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "None"))) { cJSON_DeleteNone(x); return NULL; }
12914- x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "None"));
12844+ if (NULL != (x = cJSON_malloc(sizeof(struct NoSuchMethod)))) {
12845+ memset(x, 0, sizeof(struct NoSuchMethod));
12846+ if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteNoSuchMethod(x); return NULL; }
12847+ if (cJSON_HasObjectItem(j, "noSuchMethod")) {
12848+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteNoSuchMethod(x); return NULL; }
12849+ x->no_such_method = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"));
1291512850 }
1291612851 }
1291712852 }
1291812853 return x;
1291912854 }
1292012855
12921-cJSON * cJSON_CreateNone(const struct None * x) {
12856+cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x) {
1292212857 cJSON * j = NULL;
1292312858 if (NULL != x) {
1292412859 if (NULL != (j = cJSON_CreateObject())) {
12925- cJSON_AddNumberToObject(j, "None", x->none);
12860+ cJSON_AddNumberToObject(j, "noSuchMethod", x->no_such_method);
1292612861 }
1292712862 }
1292812863 return j;
1292912864 }
1293012865
12931-char * cJSON_PrintNone(const struct None * x) {
12866+char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) {
12867+ char * s = NULL;
12868+ if (NULL != x) {
12869+ cJSON * j = cJSON_CreateNoSuchMethod(x);
12870+ if (NULL != j) {
12871+ s = cJSON_Print(j);
12872+ cJSON_Delete(j);
12873+ }
12874+ }
12875+ return s;
12876+}
12877+
12878+void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x) {
12879+ if (NULL != x) {
12880+ cJSON_free(x);
12881+ }
12882+}
12883+
12884+struct Nonatomic * cJSON_ParseNonatomic(const char * s) {
12885+ struct Nonatomic * x = NULL;
12886+ if (NULL != s) {
12887+ cJSON * j = cJSON_Parse(s);
12888+ if (NULL != j) {
12889+ x = cJSON_GetNonatomicValue(j);
12890+ cJSON_Delete(j);
12891+ }
12892+ }
12893+ return x;
12894+}
12895+
12896+struct Nonatomic * cJSON_GetNonatomicValue(const cJSON * j) {
12897+ struct Nonatomic * x = NULL;
12898+ if (NULL != j) {
12899+ if (NULL != (x = cJSON_malloc(sizeof(struct Nonatomic)))) {
12900+ memset(x, 0, sizeof(struct Nonatomic));
12901+ if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteNonatomic(x); return NULL; }
12902+ if (cJSON_HasObjectItem(j, "nonatomic")) {
12903+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"))) { cJSON_DeleteNonatomic(x); return NULL; }
12904+ x->nonatomic = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"));
12905+ }
12906+ }
12907+ }
12908+ return x;
12909+}
12910+
12911+cJSON * cJSON_CreateNonatomic(const struct Nonatomic * x) {
12912+ cJSON * j = NULL;
12913+ if (NULL != x) {
12914+ if (NULL != (j = cJSON_CreateObject())) {
12915+ cJSON_AddNumberToObject(j, "nonatomic", x->nonatomic);
12916+ }
12917+ }
12918+ return j;
12919+}
12920+
12921+char * cJSON_PrintNonatomic(const struct Nonatomic * x) {
12922+ char * s = NULL;
12923+ if (NULL != x) {
12924+ cJSON * j = cJSON_CreateNonatomic(x);
12925+ if (NULL != j) {
12926+ s = cJSON_Print(j);
12927+ cJSON_Delete(j);
12928+ }
12929+ }
12930+ return s;
12931+}
12932+
12933+void cJSON_DeleteNonatomic(struct Nonatomic * x) {
12934+ if (NULL != x) {
12935+ cJSON_free(x);
12936+ }
12937+}
12938+
12939+struct None * cJSON_ParseNone(const char * s) {
12940+ struct None * x = NULL;
12941+ if (NULL != s) {
12942+ cJSON * j = cJSON_Parse(s);
12943+ if (NULL != j) {
12944+ x = cJSON_GetNoneValue(j);
12945+ cJSON_Delete(j);
12946+ }
12947+ }
12948+ return x;
12949+}
12950+
12951+struct None * cJSON_GetNoneValue(const cJSON * j) {
12952+ struct None * x = NULL;
12953+ if (NULL != j) {
12954+ if (NULL != (x = cJSON_malloc(sizeof(struct None)))) {
12955+ memset(x, 0, sizeof(struct None));
12956+ if (!cJSON_HasObjectItem(j, "None")) { cJSON_DeleteNone(x); return NULL; }
12957+ if (cJSON_HasObjectItem(j, "None")) {
12958+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "None"))) { cJSON_DeleteNone(x); return NULL; }
12959+ x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "None"));
12960+ }
12961+ }
12962+ }
12963+ return x;
12964+}
12965+
12966+cJSON * cJSON_CreateNone(const struct None * x) {
12967+ cJSON * j = NULL;
12968+ if (NULL != x) {
12969+ if (NULL != (j = cJSON_CreateObject())) {
12970+ cJSON_AddNumberToObject(j, "None", x->none);
12971+ }
12972+ }
12973+ return j;
12974+}
12975+
12976+char * cJSON_PrintNone(const struct None * x) {
1293212977 char * s = NULL;
1293312978 if (NULL != x) {
1293412979 cJSON * j = cJSON_CreateNone(x);
@@ -14541,6 +14586,116 @@ void cJSON_DeleteOf(struct Of * x) {
1454114586 }
1454214587 }
1454314588
14589+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
14590+ struct OffsetDateTime * x = NULL;
14591+ if (NULL != s) {
14592+ cJSON * j = cJSON_Parse(s);
14593+ if (NULL != j) {
14594+ x = cJSON_GetOffsetDateTimeValue(j);
14595+ cJSON_Delete(j);
14596+ }
14597+ }
14598+ return x;
14599+}
14600+
14601+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
14602+ struct OffsetDateTime * x = NULL;
14603+ if (NULL != j) {
14604+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
14605+ memset(x, 0, sizeof(struct OffsetDateTime));
14606+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14607+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
14608+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14609+ x->offset_date_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
14610+ }
14611+ }
14612+ }
14613+ return x;
14614+}
14615+
14616+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
14617+ cJSON * j = NULL;
14618+ if (NULL != x) {
14619+ if (NULL != (j = cJSON_CreateObject())) {
14620+ cJSON_AddNumberToObject(j, "OffsetDateTime", x->offset_date_time);
14621+ }
14622+ }
14623+ return j;
14624+}
14625+
14626+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
14627+ char * s = NULL;
14628+ if (NULL != x) {
14629+ cJSON * j = cJSON_CreateOffsetDateTime(x);
14630+ if (NULL != j) {
14631+ s = cJSON_Print(j);
14632+ cJSON_Delete(j);
14633+ }
14634+ }
14635+ return s;
14636+}
14637+
14638+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
14639+ if (NULL != x) {
14640+ cJSON_free(x);
14641+ }
14642+}
14643+
14644+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
14645+ struct OffsetTime * x = NULL;
14646+ if (NULL != s) {
14647+ cJSON * j = cJSON_Parse(s);
14648+ if (NULL != j) {
14649+ x = cJSON_GetOffsetTimeValue(j);
14650+ cJSON_Delete(j);
14651+ }
14652+ }
14653+ return x;
14654+}
14655+
14656+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
14657+ struct OffsetTime * x = NULL;
14658+ if (NULL != j) {
14659+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
14660+ memset(x, 0, sizeof(struct OffsetTime));
14661+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteOffsetTime(x); return NULL; }
14662+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
14663+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteOffsetTime(x); return NULL; }
14664+ x->offset_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
14665+ }
14666+ }
14667+ }
14668+ return x;
14669+}
14670+
14671+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
14672+ cJSON * j = NULL;
14673+ if (NULL != x) {
14674+ if (NULL != (j = cJSON_CreateObject())) {
14675+ cJSON_AddNumberToObject(j, "OffsetTime", x->offset_time);
14676+ }
14677+ }
14678+ return j;
14679+}
14680+
14681+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
14682+ char * s = NULL;
14683+ if (NULL != x) {
14684+ cJSON * j = cJSON_CreateOffsetTime(x);
14685+ if (NULL != j) {
14686+ s = cJSON_Print(j);
14687+ cJSON_Delete(j);
14688+ }
14689+ }
14690+ return s;
14691+}
14692+
14693+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
14694+ if (NULL != x) {
14695+ cJSON_free(x);
14696+ }
14697+}
14698+
1454414699 struct Oneway * cJSON_ParseOneway(const char * s) {
1454514700 struct Oneway * x = NULL;
1454614701 if (NULL != s) {
@@ -16094,247 +16249,39 @@ void cJSON_DeleteRuntimeType(struct RuntimeType * x) {
1609416249 }
1609516250 }
1609616251
16097-struct S * cJSON_ParseS(const char * s) {
16098- struct S * x = NULL;
16252+struct Obj4 * cJSON_ParseObj4(const char * s) {
16253+ struct Obj4 * x = NULL;
1609916254 if (NULL != s) {
1610016255 cJSON * j = cJSON_Parse(s);
1610116256 if (NULL != j) {
16102- x = cJSON_GetSValue(j);
16257+ x = cJSON_GetObj4Value(j);
1610316258 cJSON_Delete(j);
1610416259 }
1610516260 }
1610616261 return x;
1610716262 }
1610816263
16109-struct S * cJSON_GetSValue(const cJSON * j) {
16110- struct S * x = NULL;
16264+struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
16265+ struct Obj4 * x = NULL;
1611116266 if (NULL != j) {
16112- if (NULL != (x = cJSON_malloc(sizeof(struct S)))) {
16113- memset(x, 0, sizeof(struct S));
16114- if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteS(x); return NULL; }
16115- if (cJSON_HasObjectItem(j, "s")) {
16116- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteS(x); return NULL; }
16117- x->s = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "s"));
16267+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) {
16268+ memset(x, 0, sizeof(struct Obj4));
16269+ if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; }
16270+ if (cJSON_HasObjectItem(j, "dummy")) {
16271+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; }
16272+ x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
1611816273 }
16119- }
16120- }
16121- return x;
16122-}
16123-
16124-cJSON * cJSON_CreateS(const struct S * x) {
16125- cJSON * j = NULL;
16126- if (NULL != x) {
16127- if (NULL != (j = cJSON_CreateObject())) {
16128- cJSON_AddNumberToObject(j, "s", x->s);
16129- }
16130- }
16131- return j;
16132-}
16133-
16134-char * cJSON_PrintS(const struct S * x) {
16135- char * s = NULL;
16136- if (NULL != x) {
16137- cJSON * j = cJSON_CreateS(x);
16138- if (NULL != j) {
16139- s = cJSON_Print(j);
16140- cJSON_Delete(j);
16141- }
16142- }
16143- return s;
16144-}
16145-
16146-void cJSON_DeleteS(struct S * x) {
16147- if (NULL != x) {
16148- cJSON_free(x);
16149- }
16150-}
16151-
16152-struct Sbyte * cJSON_ParseSbyte(const char * s) {
16153- struct Sbyte * x = NULL;
16154- if (NULL != s) {
16155- cJSON * j = cJSON_Parse(s);
16156- if (NULL != j) {
16157- x = cJSON_GetSbyteValue(j);
16158- cJSON_Delete(j);
16159- }
16160- }
16161- return x;
16162-}
16163-
16164-struct Sbyte * cJSON_GetSbyteValue(const cJSON * j) {
16165- struct Sbyte * x = NULL;
16166- if (NULL != j) {
16167- if (NULL != (x = cJSON_malloc(sizeof(struct Sbyte)))) {
16168- memset(x, 0, sizeof(struct Sbyte));
16169- if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteSbyte(x); return NULL; }
16170- if (cJSON_HasObjectItem(j, "sbyte")) {
16171- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteSbyte(x); return NULL; }
16172- x->sbyte = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte"));
16173- }
16174- }
16175- }
16176- return x;
16177-}
16178-
16179-cJSON * cJSON_CreateSbyte(const struct Sbyte * x) {
16180- cJSON * j = NULL;
16181- if (NULL != x) {
16182- if (NULL != (j = cJSON_CreateObject())) {
16183- cJSON_AddNumberToObject(j, "sbyte", x->sbyte);
16184- }
16185- }
16186- return j;
16187-}
16188-
16189-char * cJSON_PrintSbyte(const struct Sbyte * x) {
16190- char * s = NULL;
16191- if (NULL != x) {
16192- cJSON * j = cJSON_CreateSbyte(x);
16193- if (NULL != j) {
16194- s = cJSON_Print(j);
16195- cJSON_Delete(j);
16196- }
16197- }
16198- return s;
16199-}
16200-
16201-void cJSON_DeleteSbyte(struct Sbyte * x) {
16202- if (NULL != x) {
16203- cJSON_free(x);
16204- }
16205-}
16206-
16207-struct Sealed * cJSON_ParseSealed(const char * s) {
16208- struct Sealed * x = NULL;
16209- if (NULL != s) {
16210- cJSON * j = cJSON_Parse(s);
16211- if (NULL != j) {
16212- x = cJSON_GetSealedValue(j);
16213- cJSON_Delete(j);
16214- }
16215- }
16216- return x;
16217-}
16218-
16219-struct Sealed * cJSON_GetSealedValue(const cJSON * j) {
16220- struct Sealed * x = NULL;
16221- if (NULL != j) {
16222- if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) {
16223- memset(x, 0, sizeof(struct Sealed));
16224- if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; }
16225- if (cJSON_HasObjectItem(j, "sealed")) {
16226- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; }
16227- x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
16228- }
16229- }
16230- }
16231- return x;
16232-}
16233-
16234-cJSON * cJSON_CreateSealed(const struct Sealed * x) {
16235- cJSON * j = NULL;
16236- if (NULL != x) {
16237- if (NULL != (j = cJSON_CreateObject())) {
16238- cJSON_AddNumberToObject(j, "sealed", x->sealed);
16239- }
16240- }
16241- return j;
16242-}
16243-
16244-char * cJSON_PrintSealed(const struct Sealed * x) {
16245- char * s = NULL;
16246- if (NULL != x) {
16247- cJSON * j = cJSON_CreateSealed(x);
16248- if (NULL != j) {
16249- s = cJSON_Print(j);
16250- cJSON_Delete(j);
16251- }
16252- }
16253- return s;
16254-}
16255-
16256-void cJSON_DeleteSealed(struct Sealed * x) {
16257- if (NULL != x) {
16258- cJSON_free(x);
16259- }
16260-}
16261-
16262-struct Sel * cJSON_ParseSel(const char * s) {
16263- struct Sel * x = NULL;
16264- if (NULL != s) {
16265- cJSON * j = cJSON_Parse(s);
16266- if (NULL != j) {
16267- x = cJSON_GetSelValue(j);
16268- cJSON_Delete(j);
16269- }
16270- }
16271- return x;
16272-}
16273-
16274-struct Sel * cJSON_GetSelValue(const cJSON * j) {
16275- struct Sel * x = NULL;
16276- if (NULL != j) {
16277- if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) {
16278- memset(x, 0, sizeof(struct Sel));
16279- if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; }
16280- if (cJSON_HasObjectItem(j, "SEL")) {
16281- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; }
16282- x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
16274+ if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteObj4(x); return NULL; }
16275+ if (cJSON_HasObjectItem(j, "nil")) {
16276+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteObj4(x); return NULL; }
16277+ x->nil = cJSON_GetNilValue(cJSON_GetObjectItemCaseSensitive(j, "nil"));
16278+ if (NULL == x->nil) { cJSON_DeleteObj4(x); return NULL; }
1628316279 }
16284- }
16285- }
16286- return x;
16287-}
16288-
16289-cJSON * cJSON_CreateSel(const struct Sel * x) {
16290- cJSON * j = NULL;
16291- if (NULL != x) {
16292- if (NULL != (j = cJSON_CreateObject())) {
16293- cJSON_AddNumberToObject(j, "SEL", x->sel);
16294- }
16295- }
16296- return j;
16297-}
16298-
16299-char * cJSON_PrintSel(const struct Sel * x) {
16300- char * s = NULL;
16301- if (NULL != x) {
16302- cJSON * j = cJSON_CreateSel(x);
16303- if (NULL != j) {
16304- s = cJSON_Print(j);
16305- cJSON_Delete(j);
16306- }
16307- }
16308- return s;
16309-}
16310-
16311-void cJSON_DeleteSel(struct Sel * x) {
16312- if (NULL != x) {
16313- cJSON_free(x);
16314- }
16315-}
16316-
16317-struct Obj4 * cJSON_ParseObj4(const char * s) {
16318- struct Obj4 * x = NULL;
16319- if (NULL != s) {
16320- cJSON * j = cJSON_Parse(s);
16321- if (NULL != j) {
16322- x = cJSON_GetObj4Value(j);
16323- cJSON_Delete(j);
16324- }
16325- }
16326- return x;
16327-}
16328-
16329-struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
16330- struct Obj4 * x = NULL;
16331- if (NULL != j) {
16332- if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) {
16333- memset(x, 0, sizeof(struct Obj4));
16334- if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; }
16335- if (cJSON_HasObjectItem(j, "dummy")) {
16336- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; }
16337- x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
16280+ if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteObj4(x); return NULL; }
16281+ if (cJSON_HasObjectItem(j, "NO")) {
16282+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteObj4(x); return NULL; }
16283+ x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
16284+ if (NULL == x->no) { cJSON_DeleteObj4(x); return NULL; }
1633816285 }
1633916286 if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; }
1634016287 if (cJSON_HasObjectItem(j, "noSuchMethod")) {
@@ -16528,6 +16475,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1652816475 x->of = cJSON_GetOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
1652916476 if (NULL == x->of) { cJSON_DeleteObj4(x); return NULL; }
1653016477 }
16478+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteObj4(x); return NULL; }
16479+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
16480+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteObj4(x); return NULL; }
16481+ x->offset_date_time = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
16482+ if (NULL == x->offset_date_time) { cJSON_DeleteObj4(x); return NULL; }
16483+ }
16484+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteObj4(x); return NULL; }
16485+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
16486+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteObj4(x); return NULL; }
16487+ x->offset_time = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
16488+ if (NULL == x->offset_time) { cJSON_DeleteObj4(x); return NULL; }
16489+ }
1653116490 if (!cJSON_HasObjectItem(j, "oneway")) { cJSON_DeleteObj4(x); return NULL; }
1653216491 if (cJSON_HasObjectItem(j, "oneway")) {
1653316492 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16696,30 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1669616655 x->runtime_type = cJSON_GetRuntimeTypeValue(cJSON_GetObjectItemCaseSensitive(j, "runtimeType"));
1669716656 if (NULL == x->runtime_type) { cJSON_DeleteObj4(x); return NULL; }
1669816657 }
16699- if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj4(x); return NULL; }
16700- if (cJSON_HasObjectItem(j, "s")) {
16701- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj4(x); return NULL; }
16702- x->s = cJSON_GetSValue(cJSON_GetObjectItemCaseSensitive(j, "s"));
16703- if (NULL == x->s) { cJSON_DeleteObj4(x); return NULL; }
16704- }
16705- if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteObj4(x); return NULL; }
16706- if (cJSON_HasObjectItem(j, "sbyte")) {
16707- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteObj4(x); return NULL; }
16708- x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte"));
16709- if (NULL == x->sbyte) { cJSON_DeleteObj4(x); return NULL; }
16710- }
16711- if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj4(x); return NULL; }
16712- if (cJSON_HasObjectItem(j, "sealed")) {
16713- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj4(x); return NULL; }
16714- x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
16715- if (NULL == x->sealed) { cJSON_DeleteObj4(x); return NULL; }
16716- }
16717- if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj4(x); return NULL; }
16718- if (cJSON_HasObjectItem(j, "SEL")) {
16719- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj4(x); return NULL; }
16720- x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
16721- if (NULL == x->sel) { cJSON_DeleteObj4(x); return NULL; }
16722- }
1672316658 }
1672416659 }
1672516660 return x;
@@ -16730,6 +16665,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1673016665 if (NULL != x) {
1673116666 if (NULL != (j = cJSON_CreateObject())) {
1673216667 cJSON_AddNumberToObject(j, "dummy", x->dummy);
16668+ cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil));
16669+ cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no));
1673316670 cJSON_AddItemToObject(j, "noSuchMethod", cJSON_CreateNoSuchMethod(x->no_such_method));
1673416671 cJSON_AddItemToObject(j, "nonatomic", cJSON_CreateNonatomic(x->nonatomic));
1673516672 cJSON_AddItemToObject(j, "None", cJSON_CreateNone(x->none));
@@ -16762,6 +16699,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1676216699 cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object));
1676316700 cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper));
1676416701 cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of));
16702+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateOffsetDateTime(x->offset_date_time));
16703+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateOffsetTime(x->offset_time));
1676516704 cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway));
1676616705 cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open));
1676716706 cJSON_AddItemToObject(j, "optional", cJSON_CreateOptional(x->optional));
@@ -16790,10 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1679016729 cJSON_AddItemToObject(j, "rethrows", cJSON_CreateRethrows(x->rethrows));
1679116730 cJSON_AddItemToObject(j, "right", cJSON_CreateRight(x->right));
1679216731 cJSON_AddItemToObject(j, "runtimeType", cJSON_CreateRuntimeType(x->runtime_type));
16793- cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s));
16794- cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte));
16795- cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
16796- cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel));
1679716732 }
1679816733 }
1679916734 return j;
@@ -16813,6 +16748,12 @@ char * cJSON_PrintObj4(const struct Obj4 * x) {
1681316748
1681416749 void cJSON_DeleteObj4(struct Obj4 * x) {
1681516750 if (NULL != x) {
16751+ if (NULL != x->nil) {
16752+ cJSON_DeleteNil(x->nil);
16753+ }
16754+ if (NULL != x->no) {
16755+ cJSON_DeleteNo(x->no);
16756+ }
1681616757 if (NULL != x->no_such_method) {
1681716758 cJSON_DeleteNoSuchMethod(x->no_such_method);
1681816759 }
@@ -16909,6 +16850,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1690916850 if (NULL != x->of) {
1691016851 cJSON_DeleteOf(x->of);
1691116852 }
16853+ if (NULL != x->offset_date_time) {
16854+ cJSON_DeleteOffsetDateTime(x->offset_date_time);
16855+ }
16856+ if (NULL != x->offset_time) {
16857+ cJSON_DeleteOffsetTime(x->offset_time);
16858+ }
1691216859 if (NULL != x->oneway) {
1691316860 cJSON_DeleteOneway(x->oneway);
1691416861 }
@@ -16993,18 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1699316940 if (NULL != x->runtime_type) {
1699416941 cJSON_DeleteRuntimeType(x->runtime_type);
1699516942 }
16996- if (NULL != x->s) {
16997- cJSON_DeleteS(x->s);
16998- }
16999- if (NULL != x->sbyte) {
17000- cJSON_DeleteSbyte(x->sbyte);
17001- }
17002- if (NULL != x->sealed) {
17003- cJSON_DeleteSealed(x->sealed);
17004- }
17005- if (NULL != x->sel) {
17006- cJSON_DeleteSel(x->sel);
17007- }
1700816943 cJSON_free(x);
1700916944 }
1701016945 }
@@ -18219,47 +18154,47 @@ void cJSON_DeleteTypeof(struct Typeof * x) {
1821918154 }
1822018155 }
1822118156
18222-struct Union * cJSON_ParseUnion(const char * s) {
18223- struct Union * x = NULL;
18157+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18158+ struct PrimitiveKind * x = NULL;
1822418159 if (NULL != s) {
1822518160 cJSON * j = cJSON_Parse(s);
1822618161 if (NULL != j) {
18227- x = cJSON_GetUnionValue(j);
18162+ x = cJSON_GetPrimitiveKindValue(j);
1822818163 cJSON_Delete(j);
1822918164 }
1823018165 }
1823118166 return x;
1823218167 }
1823318168
18234-struct Union * cJSON_GetUnionValue(const cJSON * j) {
18235- struct Union * x = NULL;
18169+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18170+ struct PrimitiveKind * x = NULL;
1823618171 if (NULL != j) {
18237- if (NULL != (x = cJSON_malloc(sizeof(struct Union)))) {
18238- memset(x, 0, sizeof(struct Union));
18239- if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteUnion(x); return NULL; }
18240- if (cJSON_HasObjectItem(j, "union")) {
18241- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteUnion(x); return NULL; }
18242- x->union_union = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
18172+ if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18173+ memset(x, 0, sizeof(struct PrimitiveKind));
18174+ if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18175+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18176+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18177+ x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
1824318178 }
1824418179 }
1824518180 }
1824618181 return x;
1824718182 }
1824818183
18249-cJSON * cJSON_CreateUnion(const struct Union * x) {
18184+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
1825018185 cJSON * j = NULL;
1825118186 if (NULL != x) {
1825218187 if (NULL != (j = cJSON_CreateObject())) {
18253- cJSON_AddNumberToObject(j, "union", x->union_union);
18188+ cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
1825418189 }
1825518190 }
1825618191 return j;
1825718192 }
1825818193
18259-char * cJSON_PrintUnion(const struct Union * x) {
18194+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1826018195 char * s = NULL;
1826118196 if (NULL != x) {
18262- cJSON * j = cJSON_CreateUnion(x);
18197+ cJSON * j = cJSON_CreatePrimitiveKind(x);
1826318198 if (NULL != j) {
1826418199 s = cJSON_Print(j);
1826518200 cJSON_Delete(j);
@@ -18268,53 +18203,53 @@ char * cJSON_PrintUnion(const struct Union * x) {
1826818203 return s;
1826918204 }
1827018205
18271-void cJSON_DeleteUnion(struct Union * x) {
18206+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
1827218207 if (NULL != x) {
1827318208 cJSON_free(x);
1827418209 }
1827518210 }
1827618211
18277-struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18278- struct PrimitiveKind * x = NULL;
18212+struct Obj5True * cJSON_ParseObj5True(const char * s) {
18213+ struct Obj5True * x = NULL;
1827918214 if (NULL != s) {
1828018215 cJSON * j = cJSON_Parse(s);
1828118216 if (NULL != j) {
18282- x = cJSON_GetPrimitiveKindValue(j);
18217+ x = cJSON_GetObj5TrueValue(j);
1828318218 cJSON_Delete(j);
1828418219 }
1828518220 }
1828618221 return x;
1828718222 }
1828818223
18289-struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18290- struct PrimitiveKind * x = NULL;
18224+struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18225+ struct Obj5True * x = NULL;
1829118226 if (NULL != j) {
18292- if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18293- memset(x, 0, sizeof(struct PrimitiveKind));
18294- if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18295- if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18296- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18297- x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
18227+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18228+ memset(x, 0, sizeof(struct Obj5True));
18229+ if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18230+ if (cJSON_HasObjectItem(j, "true")) {
18231+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18232+ x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
1829818233 }
1829918234 }
1830018235 }
1830118236 return x;
1830218237 }
1830318238
18304-cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
18239+cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
1830518240 cJSON * j = NULL;
1830618241 if (NULL != x) {
1830718242 if (NULL != (j = cJSON_CreateObject())) {
18308- cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
18243+ cJSON_AddNumberToObject(j, "true", x->true_true);
1830918244 }
1831018245 }
1831118246 return j;
1831218247 }
1831318248
18314-char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
18249+char * cJSON_PrintObj5True(const struct Obj5True * x) {
1831518250 char * s = NULL;
1831618251 if (NULL != x) {
18317- cJSON * j = cJSON_CreatePrimitiveKind(x);
18252+ cJSON * j = cJSON_CreateObj5True(x);
1831818253 if (NULL != j) {
1831918254 s = cJSON_Print(j);
1832018255 cJSON_Delete(j);
@@ -18323,53 +18258,53 @@ char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1832318258 return s;
1832418259 }
1832518260
18326-void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
18261+void cJSON_DeleteObj5True(struct Obj5True * x) {
1832718262 if (NULL != x) {
1832818263 cJSON_free(x);
1832918264 }
1833018265 }
1833118266
18332-struct Obj5True * cJSON_ParseObj5True(const char * s) {
18333- struct Obj5True * x = NULL;
18267+struct S * cJSON_ParseS(const char * s) {
18268+ struct S * x = NULL;
1833418269 if (NULL != s) {
1833518270 cJSON * j = cJSON_Parse(s);
1833618271 if (NULL != j) {
18337- x = cJSON_GetObj5TrueValue(j);
18272+ x = cJSON_GetSValue(j);
1833818273 cJSON_Delete(j);
1833918274 }
1834018275 }
1834118276 return x;
1834218277 }
1834318278
18344-struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18345- struct Obj5True * x = NULL;
18279+struct S * cJSON_GetSValue(const cJSON * j) {
18280+ struct S * x = NULL;
1834618281 if (NULL != j) {
18347- if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18348- memset(x, 0, sizeof(struct Obj5True));
18349- if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18350- if (cJSON_HasObjectItem(j, "true")) {
18351- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18352- x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
18282+ if (NULL != (x = cJSON_malloc(sizeof(struct S)))) {
18283+ memset(x, 0, sizeof(struct S));
18284+ if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteS(x); return NULL; }
18285+ if (cJSON_HasObjectItem(j, "s")) {
18286+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteS(x); return NULL; }
18287+ x->s = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "s"));
1835318288 }
1835418289 }
1835518290 }
1835618291 return x;
1835718292 }
1835818293
18359-cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
18294+cJSON * cJSON_CreateS(const struct S * x) {
1836018295 cJSON * j = NULL;
1836118296 if (NULL != x) {
1836218297 if (NULL != (j = cJSON_CreateObject())) {
18363- cJSON_AddNumberToObject(j, "true", x->true_true);
18298+ cJSON_AddNumberToObject(j, "s", x->s);
1836418299 }
1836518300 }
1836618301 return j;
1836718302 }
1836818303
18369-char * cJSON_PrintObj5True(const struct Obj5True * x) {
18304+char * cJSON_PrintS(const struct S * x) {
1837018305 char * s = NULL;
1837118306 if (NULL != x) {
18372- cJSON * j = cJSON_CreateObj5True(x);
18307+ cJSON * j = cJSON_CreateS(x);
1837318308 if (NULL != j) {
1837418309 s = cJSON_Print(j);
1837518310 cJSON_Delete(j);
@@ -18378,7 +18313,172 @@ char * cJSON_PrintObj5True(const struct Obj5True * x) {
1837818313 return s;
1837918314 }
1838018315
18381-void cJSON_DeleteObj5True(struct Obj5True * x) {
18316+void cJSON_DeleteS(struct S * x) {
18317+ if (NULL != x) {
18318+ cJSON_free(x);
18319+ }
18320+}
18321+
18322+struct Sbyte * cJSON_ParseSbyte(const char * s) {
18323+ struct Sbyte * x = NULL;
18324+ if (NULL != s) {
18325+ cJSON * j = cJSON_Parse(s);
18326+ if (NULL != j) {
18327+ x = cJSON_GetSbyteValue(j);
18328+ cJSON_Delete(j);
18329+ }
18330+ }
18331+ return x;
18332+}
18333+
18334+struct Sbyte * cJSON_GetSbyteValue(const cJSON * j) {
18335+ struct Sbyte * x = NULL;
18336+ if (NULL != j) {
18337+ if (NULL != (x = cJSON_malloc(sizeof(struct Sbyte)))) {
18338+ memset(x, 0, sizeof(struct Sbyte));
18339+ if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteSbyte(x); return NULL; }
18340+ if (cJSON_HasObjectItem(j, "sbyte")) {
18341+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteSbyte(x); return NULL; }
18342+ x->sbyte = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte"));
18343+ }
18344+ }
18345+ }
18346+ return x;
18347+}
18348+
18349+cJSON * cJSON_CreateSbyte(const struct Sbyte * x) {
18350+ cJSON * j = NULL;
18351+ if (NULL != x) {
18352+ if (NULL != (j = cJSON_CreateObject())) {
18353+ cJSON_AddNumberToObject(j, "sbyte", x->sbyte);
18354+ }
18355+ }
18356+ return j;
18357+}
18358+
18359+char * cJSON_PrintSbyte(const struct Sbyte * x) {
18360+ char * s = NULL;
18361+ if (NULL != x) {
18362+ cJSON * j = cJSON_CreateSbyte(x);
18363+ if (NULL != j) {
18364+ s = cJSON_Print(j);
18365+ cJSON_Delete(j);
18366+ }
18367+ }
18368+ return s;
18369+}
18370+
18371+void cJSON_DeleteSbyte(struct Sbyte * x) {
18372+ if (NULL != x) {
18373+ cJSON_free(x);
18374+ }
18375+}
18376+
18377+struct Sealed * cJSON_ParseSealed(const char * s) {
18378+ struct Sealed * x = NULL;
18379+ if (NULL != s) {
18380+ cJSON * j = cJSON_Parse(s);
18381+ if (NULL != j) {
18382+ x = cJSON_GetSealedValue(j);
18383+ cJSON_Delete(j);
18384+ }
18385+ }
18386+ return x;
18387+}
18388+
18389+struct Sealed * cJSON_GetSealedValue(const cJSON * j) {
18390+ struct Sealed * x = NULL;
18391+ if (NULL != j) {
18392+ if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) {
18393+ memset(x, 0, sizeof(struct Sealed));
18394+ if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; }
18395+ if (cJSON_HasObjectItem(j, "sealed")) {
18396+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; }
18397+ x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
18398+ }
18399+ }
18400+ }
18401+ return x;
18402+}
18403+
18404+cJSON * cJSON_CreateSealed(const struct Sealed * x) {
18405+ cJSON * j = NULL;
18406+ if (NULL != x) {
18407+ if (NULL != (j = cJSON_CreateObject())) {
18408+ cJSON_AddNumberToObject(j, "sealed", x->sealed);
18409+ }
18410+ }
18411+ return j;
18412+}
18413+
18414+char * cJSON_PrintSealed(const struct Sealed * x) {
18415+ char * s = NULL;
18416+ if (NULL != x) {
18417+ cJSON * j = cJSON_CreateSealed(x);
18418+ if (NULL != j) {
18419+ s = cJSON_Print(j);
18420+ cJSON_Delete(j);
18421+ }
18422+ }
18423+ return s;
18424+}
18425+
18426+void cJSON_DeleteSealed(struct Sealed * x) {
18427+ if (NULL != x) {
18428+ cJSON_free(x);
18429+ }
18430+}
18431+
18432+struct Sel * cJSON_ParseSel(const char * s) {
18433+ struct Sel * x = NULL;
18434+ if (NULL != s) {
18435+ cJSON * j = cJSON_Parse(s);
18436+ if (NULL != j) {
18437+ x = cJSON_GetSelValue(j);
18438+ cJSON_Delete(j);
18439+ }
18440+ }
18441+ return x;
18442+}
18443+
18444+struct Sel * cJSON_GetSelValue(const cJSON * j) {
18445+ struct Sel * x = NULL;
18446+ if (NULL != j) {
18447+ if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) {
18448+ memset(x, 0, sizeof(struct Sel));
18449+ if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; }
18450+ if (cJSON_HasObjectItem(j, "SEL")) {
18451+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; }
18452+ x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
18453+ }
18454+ }
18455+ }
18456+ return x;
18457+}
18458+
18459+cJSON * cJSON_CreateSel(const struct Sel * x) {
18460+ cJSON * j = NULL;
18461+ if (NULL != x) {
18462+ if (NULL != (j = cJSON_CreateObject())) {
18463+ cJSON_AddNumberToObject(j, "SEL", x->sel);
18464+ }
18465+ }
18466+ return j;
18467+}
18468+
18469+char * cJSON_PrintSel(const struct Sel * x) {
18470+ char * s = NULL;
18471+ if (NULL != x) {
18472+ cJSON * j = cJSON_CreateSel(x);
18473+ if (NULL != j) {
18474+ s = cJSON_Print(j);
18475+ cJSON_Delete(j);
18476+ }
18477+ }
18478+ return s;
18479+}
18480+
18481+void cJSON_DeleteSel(struct Sel * x) {
1838218482 if (NULL != x) {
1838318483 cJSON_free(x);
1838418484 }
@@ -20364,247 +20464,27 @@ void cJSON_DeleteUndefined(struct Undefined * x) {
2036420464 }
2036520465 }
2036620466
20367-struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s) {
20368- struct UnmarshalJson * x = NULL;
20467+struct Obj5 * cJSON_ParseObj5(const char * s) {
20468+ struct Obj5 * x = NULL;
2036920469 if (NULL != s) {
2037020470 cJSON * j = cJSON_Parse(s);
2037120471 if (NULL != j) {
20372- x = cJSON_GetUnmarshalJsonValue(j);
20472+ x = cJSON_GetObj5Value(j);
2037320473 cJSON_Delete(j);
2037420474 }
2037520475 }
2037620476 return x;
2037720477 }
2037820478
20379-struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j) {
20380- struct UnmarshalJson * x = NULL;
20479+struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
20480+ struct Obj5 * x = NULL;
2038120481 if (NULL != j) {
20382- if (NULL != (x = cJSON_malloc(sizeof(struct UnmarshalJson)))) {
20383- memset(x, 0, sizeof(struct UnmarshalJson));
20384- if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteUnmarshalJson(x); return NULL; }
20385- if (cJSON_HasObjectItem(j, "UnmarshalJSON")) {
20386- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteUnmarshalJson(x); return NULL; }
20387- x->unmarshal_json = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"));
20388- }
20389- }
20390- }
20391- return x;
20392-}
20393-
20394-cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x) {
20395- cJSON * j = NULL;
20396- if (NULL != x) {
20397- if (NULL != (j = cJSON_CreateObject())) {
20398- cJSON_AddNumberToObject(j, "UnmarshalJSON", x->unmarshal_json);
20399- }
20400- }
20401- return j;
20402-}
20403-
20404-char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x) {
20405- char * s = NULL;
20406- if (NULL != x) {
20407- cJSON * j = cJSON_CreateUnmarshalJson(x);
20408- if (NULL != j) {
20409- s = cJSON_Print(j);
20410- cJSON_Delete(j);
20411- }
20412- }
20413- return s;
20414-}
20415-
20416-void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x) {
20417- if (NULL != x) {
20418- cJSON_free(x);
20419- }
20420-}
20421-
20422-struct Unowned * cJSON_ParseUnowned(const char * s) {
20423- struct Unowned * x = NULL;
20424- if (NULL != s) {
20425- cJSON * j = cJSON_Parse(s);
20426- if (NULL != j) {
20427- x = cJSON_GetUnownedValue(j);
20428- cJSON_Delete(j);
20429- }
20430- }
20431- return x;
20432-}
20433-
20434-struct Unowned * cJSON_GetUnownedValue(const cJSON * j) {
20435- struct Unowned * x = NULL;
20436- if (NULL != j) {
20437- if (NULL != (x = cJSON_malloc(sizeof(struct Unowned)))) {
20438- memset(x, 0, sizeof(struct Unowned));
20439- if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteUnowned(x); return NULL; }
20440- if (cJSON_HasObjectItem(j, "unowned")) {
20441- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteUnowned(x); return NULL; }
20442- x->unowned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unowned"));
20443- }
20444- }
20445- }
20446- return x;
20447-}
20448-
20449-cJSON * cJSON_CreateUnowned(const struct Unowned * x) {
20450- cJSON * j = NULL;
20451- if (NULL != x) {
20452- if (NULL != (j = cJSON_CreateObject())) {
20453- cJSON_AddNumberToObject(j, "unowned", x->unowned);
20454- }
20455- }
20456- return j;
20457-}
20458-
20459-char * cJSON_PrintUnowned(const struct Unowned * x) {
20460- char * s = NULL;
20461- if (NULL != x) {
20462- cJSON * j = cJSON_CreateUnowned(x);
20463- if (NULL != j) {
20464- s = cJSON_Print(j);
20465- cJSON_Delete(j);
20466- }
20467- }
20468- return s;
20469-}
20470-
20471-void cJSON_DeleteUnowned(struct Unowned * x) {
20472- if (NULL != x) {
20473- cJSON_free(x);
20474- }
20475-}
20476-
20477-struct Unsafe * cJSON_ParseUnsafe(const char * s) {
20478- struct Unsafe * x = NULL;
20479- if (NULL != s) {
20480- cJSON * j = cJSON_Parse(s);
20481- if (NULL != j) {
20482- x = cJSON_GetUnsafeValue(j);
20483- cJSON_Delete(j);
20484- }
20485- }
20486- return x;
20487-}
20488-
20489-struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) {
20490- struct Unsafe * x = NULL;
20491- if (NULL != j) {
20492- if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) {
20493- memset(x, 0, sizeof(struct Unsafe));
20494- if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; }
20495- if (cJSON_HasObjectItem(j, "unsafe")) {
20496- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; }
20497- x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
20498- }
20499- }
20500- }
20501- return x;
20502-}
20503-
20504-cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) {
20505- cJSON * j = NULL;
20506- if (NULL != x) {
20507- if (NULL != (j = cJSON_CreateObject())) {
20508- cJSON_AddNumberToObject(j, "unsafe", x->unsafe);
20509- }
20510- }
20511- return j;
20512-}
20513-
20514-char * cJSON_PrintUnsafe(const struct Unsafe * x) {
20515- char * s = NULL;
20516- if (NULL != x) {
20517- cJSON * j = cJSON_CreateUnsafe(x);
20518- if (NULL != j) {
20519- s = cJSON_Print(j);
20520- cJSON_Delete(j);
20521- }
20522- }
20523- return s;
20524-}
20525-
20526-void cJSON_DeleteUnsafe(struct Unsafe * x) {
20527- if (NULL != x) {
20528- cJSON_free(x);
20529- }
20530-}
20531-
20532-struct UseSerializers * cJSON_ParseUseSerializers(const char * s) {
20533- struct UseSerializers * x = NULL;
20534- if (NULL != s) {
20535- cJSON * j = cJSON_Parse(s);
20536- if (NULL != j) {
20537- x = cJSON_GetUseSerializersValue(j);
20538- cJSON_Delete(j);
20539- }
20540- }
20541- return x;
20542-}
20543-
20544-struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) {
20545- struct UseSerializers * x = NULL;
20546- if (NULL != j) {
20547- if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) {
20548- memset(x, 0, sizeof(struct UseSerializers));
20549- if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteUseSerializers(x); return NULL; }
20550- if (cJSON_HasObjectItem(j, "UseSerializers")) {
20551- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteUseSerializers(x); return NULL; }
20552- x->use_serializers = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
20553- }
20554- }
20555- }
20556- return x;
20557-}
20558-
20559-cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) {
20560- cJSON * j = NULL;
20561- if (NULL != x) {
20562- if (NULL != (j = cJSON_CreateObject())) {
20563- cJSON_AddNumberToObject(j, "UseSerializers", x->use_serializers);
20564- }
20565- }
20566- return j;
20567-}
20568-
20569-char * cJSON_PrintUseSerializers(const struct UseSerializers * x) {
20570- char * s = NULL;
20571- if (NULL != x) {
20572- cJSON * j = cJSON_CreateUseSerializers(x);
20573- if (NULL != j) {
20574- s = cJSON_Print(j);
20575- cJSON_Delete(j);
20576- }
20577- }
20578- return s;
20579-}
20580-
20581-void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
20582- if (NULL != x) {
20583- cJSON_free(x);
20584- }
20585-}
20586-
20587-struct Obj5 * cJSON_ParseObj5(const char * s) {
20588- struct Obj5 * x = NULL;
20589- if (NULL != s) {
20590- cJSON * j = cJSON_Parse(s);
20591- if (NULL != j) {
20592- x = cJSON_GetObj5Value(j);
20593- cJSON_Delete(j);
20594- }
20595- }
20596- return x;
20597-}
20598-
20599-struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
20600- struct Obj5 * x = NULL;
20601- if (NULL != j) {
20602- if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) {
20603- memset(x, 0, sizeof(struct Obj5));
20604- if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; }
20605- if (cJSON_HasObjectItem(j, "dummy")) {
20606- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; }
20607- x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
20482+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) {
20483+ memset(x, 0, sizeof(struct Obj5));
20484+ if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; }
20485+ if (cJSON_HasObjectItem(j, "dummy")) {
20486+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; }
20487+ x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2060820488 }
2060920489 if (!cJSON_HasObjectItem(j, "KSerializer")) { cJSON_DeleteObj5(x); return NULL; }
2061020490 if (cJSON_HasObjectItem(j, "KSerializer")) {
@@ -20738,12 +20618,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2073820618 x->obj5_typeof = cJSON_GetTypeofValue(cJSON_GetObjectItemCaseSensitive(j, "typeof"));
2073920619 if (NULL == x->obj5_typeof) { cJSON_DeleteObj5(x); return NULL; }
2074020620 }
20741- if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteObj5(x); return NULL; }
20742- if (cJSON_HasObjectItem(j, "union")) {
20743- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteObj5(x); return NULL; }
20744- x->obj5_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
20745- if (NULL == x->obj5_union) { cJSON_DeleteObj5(x); return NULL; }
20746- }
2074720621 if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; }
2074820622 if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
2074920623 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20756,6 +20630,30 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2075620630 x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
2075720631 if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; }
2075820632 }
20633+ if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj5(x); return NULL; }
20634+ if (cJSON_HasObjectItem(j, "s")) {
20635+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj5(x); return NULL; }
20636+ x->s = cJSON_GetSValue(cJSON_GetObjectItemCaseSensitive(j, "s"));
20637+ if (NULL == x->s) { cJSON_DeleteObj5(x); return NULL; }
20638+ }
20639+ if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteObj5(x); return NULL; }
20640+ if (cJSON_HasObjectItem(j, "sbyte")) {
20641+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteObj5(x); return NULL; }
20642+ x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte"));
20643+ if (NULL == x->sbyte) { cJSON_DeleteObj5(x); return NULL; }
20644+ }
20645+ if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj5(x); return NULL; }
20646+ if (cJSON_HasObjectItem(j, "sealed")) {
20647+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj5(x); return NULL; }
20648+ x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
20649+ if (NULL == x->sealed) { cJSON_DeleteObj5(x); return NULL; }
20650+ }
20651+ if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj5(x); return NULL; }
20652+ if (cJSON_HasObjectItem(j, "SEL")) {
20653+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj5(x); return NULL; }
20654+ x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
20655+ if (NULL == x->sel) { cJSON_DeleteObj5(x); return NULL; }
20656+ }
2075920657 if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj5(x); return NULL; }
2076020658 if (cJSON_HasObjectItem(j, "select")) {
2076120659 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20972,30 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2097220870 x->undefined = cJSON_GetUndefinedValue(cJSON_GetObjectItemCaseSensitive(j, "undefined"));
2097320871 if (NULL == x->undefined) { cJSON_DeleteObj5(x); return NULL; }
2097420872 }
20975- if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteObj5(x); return NULL; }
20976- if (cJSON_HasObjectItem(j, "UnmarshalJSON")) {
20977- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteObj5(x); return NULL; }
20978- x->unmarshal_json = cJSON_GetUnmarshalJsonValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"));
20979- if (NULL == x->unmarshal_json) { cJSON_DeleteObj5(x); return NULL; }
20980- }
20981- if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteObj5(x); return NULL; }
20982- if (cJSON_HasObjectItem(j, "unowned")) {
20983- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteObj5(x); return NULL; }
20984- x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned"));
20985- if (NULL == x->unowned) { cJSON_DeleteObj5(x); return NULL; }
20986- }
20987- if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj5(x); return NULL; }
20988- if (cJSON_HasObjectItem(j, "unsafe")) {
20989- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj5(x); return NULL; }
20990- x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
20991- if (NULL == x->unsafe) { cJSON_DeleteObj5(x); return NULL; }
20992- }
20993- if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj5(x); return NULL; }
20994- if (cJSON_HasObjectItem(j, "UseSerializers")) {
20995- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj5(x); return NULL; }
20996- x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
20997- if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; }
20998- }
2099920873 }
2100020874 }
2100120875 return x;
@@ -21028,9 +20902,12 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2102820902 cJSON_AddItemToObject(j, "typeid", cJSON_CreateTypeid(x->obj5_typeid));
2102920903 cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj5_typename));
2103020904 cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof));
21031- cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
2103220905 cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind));
2103320906 cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true));
20907+ cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s));
20908+ cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte));
20909+ cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
20910+ cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel));
2103420911 cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select));
2103520912 cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self));
2103620913 cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable));
@@ -21067,10 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2106720944 cJSON_AddItemToObject(j, "ulong", cJSON_CreateUlong(x->ulong));
2106820945 cJSON_AddItemToObject(j, "unchecked", cJSON_CreateUnchecked(x->unchecked));
2106920946 cJSON_AddItemToObject(j, "undefined", cJSON_CreateUndefined(x->undefined));
21070- cJSON_AddItemToObject(j, "UnmarshalJSON", cJSON_CreateUnmarshalJson(x->unmarshal_json));
21071- cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned));
21072- cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
21073- cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers));
2107420947 }
2107520948 }
2107620949 return j;
@@ -21156,15 +21029,24 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2115621029 if (NULL != x->obj5_typeof) {
2115721030 cJSON_DeleteTypeof(x->obj5_typeof);
2115821031 }
21159- if (NULL != x->obj5_union) {
21160- cJSON_DeleteUnion(x->obj5_union);
21161- }
2116221032 if (NULL != x->primitive_kind) {
2116321033 cJSON_DeletePrimitiveKind(x->primitive_kind);
2116421034 }
2116521035 if (NULL != x->purple_true) {
2116621036 cJSON_DeleteObj5True(x->purple_true);
2116721037 }
21038+ if (NULL != x->s) {
21039+ cJSON_DeleteS(x->s);
21040+ }
21041+ if (NULL != x->sbyte) {
21042+ cJSON_DeleteSbyte(x->sbyte);
21043+ }
21044+ if (NULL != x->sealed) {
21045+ cJSON_DeleteSealed(x->sealed);
21046+ }
21047+ if (NULL != x->sel) {
21048+ cJSON_DeleteSel(x->sel);
21049+ }
2116821050 if (NULL != x->select) {
2116921051 cJSON_DeleteSelect(x->select);
2117021052 }
@@ -21273,18 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2127321155 if (NULL != x->undefined) {
2127421156 cJSON_DeleteUndefined(x->undefined);
2127521157 }
21276- if (NULL != x->unmarshal_json) {
21277- cJSON_DeleteUnmarshalJson(x->unmarshal_json);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Union * cJSON_ParseUnion(const char * s) {
21163+ struct Union * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetUnionValue(j);
21168+ cJSON_Delete(j);
2127821169 }
21279- if (NULL != x->unowned) {
21280- cJSON_DeleteUnowned(x->unowned);
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Union * cJSON_GetUnionValue(const cJSON * j) {
21175+ struct Union * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Union)))) {
21178+ memset(x, 0, sizeof(struct Union));
21179+ if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteUnion(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "union")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteUnion(x); return NULL; }
21182+ x->union_union = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
21183+ }
2128121184 }
21282- if (NULL != x->unsafe) {
21283- cJSON_DeleteUnsafe(x->unsafe);
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateUnion(const struct Union * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "union", x->union_union);
2128421194 }
21285- if (NULL != x->use_serializers) {
21286- cJSON_DeleteUseSerializers(x->use_serializers);
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintUnion(const struct Union * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateUnion(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
2128721206 }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteUnion(struct Union * x) {
21212+ if (NULL != x) {
2128821213 cJSON_free(x);
2128921214 }
2129021215 }
@@ -21784,6 +21709,226 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2178421709 }
2178521710 }
2178621711
21712+struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s) {
21713+ struct UnmarshalJson * x = NULL;
21714+ if (NULL != s) {
21715+ cJSON * j = cJSON_Parse(s);
21716+ if (NULL != j) {
21717+ x = cJSON_GetUnmarshalJsonValue(j);
21718+ cJSON_Delete(j);
21719+ }
21720+ }
21721+ return x;
21722+}
21723+
21724+struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j) {
21725+ struct UnmarshalJson * x = NULL;
21726+ if (NULL != j) {
21727+ if (NULL != (x = cJSON_malloc(sizeof(struct UnmarshalJson)))) {
21728+ memset(x, 0, sizeof(struct UnmarshalJson));
21729+ if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteUnmarshalJson(x); return NULL; }
21730+ if (cJSON_HasObjectItem(j, "UnmarshalJSON")) {
21731+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteUnmarshalJson(x); return NULL; }
21732+ x->unmarshal_json = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"));
21733+ }
21734+ }
21735+ }
21736+ return x;
21737+}
21738+
21739+cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x) {
21740+ cJSON * j = NULL;
21741+ if (NULL != x) {
21742+ if (NULL != (j = cJSON_CreateObject())) {
21743+ cJSON_AddNumberToObject(j, "UnmarshalJSON", x->unmarshal_json);
21744+ }
21745+ }
21746+ return j;
21747+}
21748+
21749+char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x) {
21750+ char * s = NULL;
21751+ if (NULL != x) {
21752+ cJSON * j = cJSON_CreateUnmarshalJson(x);
21753+ if (NULL != j) {
21754+ s = cJSON_Print(j);
21755+ cJSON_Delete(j);
21756+ }
21757+ }
21758+ return s;
21759+}
21760+
21761+void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x) {
21762+ if (NULL != x) {
21763+ cJSON_free(x);
21764+ }
21765+}
21766+
21767+struct Unowned * cJSON_ParseUnowned(const char * s) {
21768+ struct Unowned * x = NULL;
21769+ if (NULL != s) {
21770+ cJSON * j = cJSON_Parse(s);
21771+ if (NULL != j) {
21772+ x = cJSON_GetUnownedValue(j);
21773+ cJSON_Delete(j);
21774+ }
21775+ }
21776+ return x;
21777+}
21778+
21779+struct Unowned * cJSON_GetUnownedValue(const cJSON * j) {
21780+ struct Unowned * x = NULL;
21781+ if (NULL != j) {
21782+ if (NULL != (x = cJSON_malloc(sizeof(struct Unowned)))) {
21783+ memset(x, 0, sizeof(struct Unowned));
21784+ if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteUnowned(x); return NULL; }
21785+ if (cJSON_HasObjectItem(j, "unowned")) {
21786+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteUnowned(x); return NULL; }
21787+ x->unowned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unowned"));
21788+ }
21789+ }
21790+ }
21791+ return x;
21792+}
21793+
21794+cJSON * cJSON_CreateUnowned(const struct Unowned * x) {
21795+ cJSON * j = NULL;
21796+ if (NULL != x) {
21797+ if (NULL != (j = cJSON_CreateObject())) {
21798+ cJSON_AddNumberToObject(j, "unowned", x->unowned);
21799+ }
21800+ }
21801+ return j;
21802+}
21803+
21804+char * cJSON_PrintUnowned(const struct Unowned * x) {
21805+ char * s = NULL;
21806+ if (NULL != x) {
21807+ cJSON * j = cJSON_CreateUnowned(x);
21808+ if (NULL != j) {
21809+ s = cJSON_Print(j);
21810+ cJSON_Delete(j);
21811+ }
21812+ }
21813+ return s;
21814+}
21815+
21816+void cJSON_DeleteUnowned(struct Unowned * x) {
21817+ if (NULL != x) {
21818+ cJSON_free(x);
21819+ }
21820+}
21821+
21822+struct Unsafe * cJSON_ParseUnsafe(const char * s) {
21823+ struct Unsafe * x = NULL;
21824+ if (NULL != s) {
21825+ cJSON * j = cJSON_Parse(s);
21826+ if (NULL != j) {
21827+ x = cJSON_GetUnsafeValue(j);
21828+ cJSON_Delete(j);
21829+ }
21830+ }
21831+ return x;
21832+}
21833+
21834+struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) {
21835+ struct Unsafe * x = NULL;
21836+ if (NULL != j) {
21837+ if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) {
21838+ memset(x, 0, sizeof(struct Unsafe));
21839+ if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; }
21840+ if (cJSON_HasObjectItem(j, "unsafe")) {
21841+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; }
21842+ x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
21843+ }
21844+ }
21845+ }
21846+ return x;
21847+}
21848+
21849+cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) {
21850+ cJSON * j = NULL;
21851+ if (NULL != x) {
21852+ if (NULL != (j = cJSON_CreateObject())) {
21853+ cJSON_AddNumberToObject(j, "unsafe", x->unsafe);
21854+ }
21855+ }
21856+ return j;
21857+}
21858+
21859+char * cJSON_PrintUnsafe(const struct Unsafe * x) {
21860+ char * s = NULL;
21861+ if (NULL != x) {
21862+ cJSON * j = cJSON_CreateUnsafe(x);
21863+ if (NULL != j) {
21864+ s = cJSON_Print(j);
21865+ cJSON_Delete(j);
21866+ }
21867+ }
21868+ return s;
21869+}
21870+
21871+void cJSON_DeleteUnsafe(struct Unsafe * x) {
21872+ if (NULL != x) {
21873+ cJSON_free(x);
21874+ }
21875+}
21876+
21877+struct UseSerializers * cJSON_ParseUseSerializers(const char * s) {
21878+ struct UseSerializers * x = NULL;
21879+ if (NULL != s) {
21880+ cJSON * j = cJSON_Parse(s);
21881+ if (NULL != j) {
21882+ x = cJSON_GetUseSerializersValue(j);
21883+ cJSON_Delete(j);
21884+ }
21885+ }
21886+ return x;
21887+}
21888+
21889+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) {
21890+ struct UseSerializers * x = NULL;
21891+ if (NULL != j) {
21892+ if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) {
21893+ memset(x, 0, sizeof(struct UseSerializers));
21894+ if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteUseSerializers(x); return NULL; }
21895+ if (cJSON_HasObjectItem(j, "UseSerializers")) {
21896+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteUseSerializers(x); return NULL; }
21897+ x->use_serializers = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
21898+ }
21899+ }
21900+ }
21901+ return x;
21902+}
21903+
21904+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) {
21905+ cJSON * j = NULL;
21906+ if (NULL != x) {
21907+ if (NULL != (j = cJSON_CreateObject())) {
21908+ cJSON_AddNumberToObject(j, "UseSerializers", x->use_serializers);
21909+ }
21910+ }
21911+ return j;
21912+}
21913+
21914+char * cJSON_PrintUseSerializers(const struct UseSerializers * x) {
21915+ char * s = NULL;
21916+ if (NULL != x) {
21917+ cJSON * j = cJSON_CreateUseSerializers(x);
21918+ if (NULL != j) {
21919+ s = cJSON_Print(j);
21920+ cJSON_Delete(j);
21921+ }
21922+ }
21923+ return s;
21924+}
21925+
21926+void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
21927+ if (NULL != x) {
21928+ cJSON_free(x);
21929+ }
21930+}
21931+
2178721932 struct Ushort * cJSON_ParseUshort(const char * s) {
2178821933 struct Ushort * x = NULL;
2178921934 if (NULL != s) {
@@ -22411,6 +22556,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2241122556 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2241222557 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2241322558 }
22559+ if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteObj6(x); return NULL; }
22560+ if (cJSON_HasObjectItem(j, "union")) {
22561+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteObj6(x); return NULL; }
22562+ x->obj6_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
22563+ if (NULL == x->obj6_union) { cJSON_DeleteObj6(x); return NULL; }
22564+ }
2241422565 if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj6(x); return NULL; }
2241522566 if (cJSON_HasObjectItem(j, "unsigned")) {
2241622567 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22465,6 +22616,30 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2246522616 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2246622617 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2246722618 }
22619+ if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteObj6(x); return NULL; }
22620+ if (cJSON_HasObjectItem(j, "UnmarshalJSON")) {
22621+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteObj6(x); return NULL; }
22622+ x->unmarshal_json = cJSON_GetUnmarshalJsonValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"));
22623+ if (NULL == x->unmarshal_json) { cJSON_DeleteObj6(x); return NULL; }
22624+ }
22625+ if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteObj6(x); return NULL; }
22626+ if (cJSON_HasObjectItem(j, "unowned")) {
22627+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteObj6(x); return NULL; }
22628+ x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned"));
22629+ if (NULL == x->unowned) { cJSON_DeleteObj6(x); return NULL; }
22630+ }
22631+ if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj6(x); return NULL; }
22632+ if (cJSON_HasObjectItem(j, "unsafe")) {
22633+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj6(x); return NULL; }
22634+ x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
22635+ if (NULL == x->unsafe) { cJSON_DeleteObj6(x); return NULL; }
22636+ }
22637+ if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj6(x); return NULL; }
22638+ if (cJSON_HasObjectItem(j, "UseSerializers")) {
22639+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj6(x); return NULL; }
22640+ x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
22641+ if (NULL == x->use_serializers) { cJSON_DeleteObj6(x); return NULL; }
22642+ }
2246822643 if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj6(x); return NULL; }
2246922644 if (cJSON_HasObjectItem(j, "ushort")) {
2247022645 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22541,6 +22716,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2254122716 if (NULL != x) {
2254222717 if (NULL != (j = cJSON_CreateObject())) {
2254322718 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22719+ cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj6_union));
2254422720 cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj6_unsigned));
2254522721 cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using));
2254622722 cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
@@ -22550,6 +22726,10 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2255022726 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2255122727 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2255222728 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22729+ cJSON_AddItemToObject(j, "UnmarshalJSON", cJSON_CreateUnmarshalJson(x->unmarshal_json));
22730+ cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned));
22731+ cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
22732+ cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers));
2255322733 cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2255422734 cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
2255522735 cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
@@ -22580,6 +22760,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2258022760
2258122761 void cJSON_DeleteObj6(struct Obj6 * x) {
2258222762 if (NULL != x) {
22763+ if (NULL != x->obj6_union) {
22764+ cJSON_DeleteUnion(x->obj6_union);
22765+ }
2258322766 if (NULL != x->obj6_unsigned) {
2258422767 cJSON_DeleteUnsigned(x->obj6_unsigned);
2258522768 }
@@ -22607,6 +22790,18 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2260722790 if (NULL != x->obj6_xor_eq) {
2260822791 cJSON_DeleteXorEq(x->obj6_xor_eq);
2260922792 }
22793+ if (NULL != x->unmarshal_json) {
22794+ cJSON_DeleteUnmarshalJson(x->unmarshal_json);
22795+ }
22796+ if (NULL != x->unowned) {
22797+ cJSON_DeleteUnowned(x->unowned);
22798+ }
22799+ if (NULL != x->unsafe) {
22800+ cJSON_DeleteUnsafe(x->unsafe);
22801+ }
22802+ if (NULL != x->use_serializers) {
22803+ cJSON_DeleteUseSerializers(x->use_serializers);
22804+ }
2261022805 if (NULL != x->ushort) {
2261122806 cJSON_DeleteUshort(x->ushort);
2261222807 }
Mcjsondefault / TopLevel.h+154 −121
@@ -877,6 +877,10 @@ struct List {
877877 int64_t list;
878878 };
879879
880+struct LocalDate {
881+ int64_t local_date;
882+};
883+
880884 struct Locale {
881885 int64_t locale;
882886 };
@@ -913,14 +917,6 @@ struct Newtonsoft {
913917 int64_t newtonsoft;
914918 };
915919
916-struct Nil {
917- int64_t nil;
918-};
919-
920-struct No {
921- int64_t no;
922-};
923-
924920 struct Goto {
925921 int64_t goto_goto;
926922 };
@@ -1007,6 +1003,7 @@ struct Obj3 {
10071003 struct Left * left;
10081004 struct Let * let;
10091005 struct List * list;
1006+ struct LocalDate * local_date;
10101007 struct Locale * locale;
10111008 struct Lock * lock;
10121009 struct Map * map;
@@ -1016,8 +1013,6 @@ struct Obj3 {
10161013 struct Mutating * mutating;
10171014 struct Native * native;
10181015 struct Newtonsoft * newtonsoft;
1019- struct Nil * nil;
1020- struct No * no;
10211016 struct Goto * obj3_goto;
10221017 struct If * obj3_if;
10231018 struct Import * obj3_import;
@@ -1030,6 +1025,14 @@ struct Obj3 {
10301025 struct New * obj3_new;
10311026 };
10321027
1028+struct Nil {
1029+ int64_t nil;
1030+};
1031+
1032+struct No {
1033+ int64_t no;
1034+};
1035+
10331036 struct NoSuchMethod {
10341037 int64_t no_such_method;
10351038 };
@@ -1158,6 +1161,14 @@ struct Of {
11581161 int64_t of;
11591162 };
11601163
1164+struct OffsetDateTime {
1165+ int64_t offset_date_time;
1166+};
1167+
1168+struct OffsetTime {
1169+ int64_t offset_time;
1170+};
1171+
11611172 struct Oneway {
11621173 int64_t oneway;
11631174 };
@@ -1270,24 +1281,10 @@ struct RuntimeType {
12701281 int64_t runtime_type;
12711282 };
12721283
1273-struct S {
1274- int64_t s;
1275-};
1276-
1277-struct Sbyte {
1278- int64_t sbyte;
1279-};
1280-
1281-struct Sealed {
1282- int64_t sealed;
1283-};
1284-
1285-struct Sel {
1286- int64_t sel;
1287-};
1288-
12891284 struct Obj4 {
12901285 int64_t dummy;
1286+ struct Nil * nil;
1287+ struct No * no;
12911288 struct NoSuchMethod * no_such_method;
12921289 struct Nonatomic * nonatomic;
12931290 struct None * none;
@@ -1320,6 +1317,8 @@ struct Obj4 {
13201317 struct ObjectClass * object;
13211318 struct ObjectMapper * object_mapper;
13221319 struct Of * of;
1320+ struct OffsetDateTime * offset_date_time;
1321+ struct OffsetTime * offset_time;
13231322 struct Oneway * oneway;
13241323 struct Open * open;
13251324 struct Optional * optional;
@@ -1348,10 +1347,6 @@ struct Obj4 {
13481347 struct Rethrows * rethrows;
13491348 struct Right * right;
13501349 struct RuntimeType * runtime_type;
1351- struct S * s;
1352- struct Sbyte * sbyte;
1353- struct Sealed * sealed;
1354- struct Sel * sel;
13551350 };
13561351
13571352 struct KSerializer {
@@ -1442,10 +1437,6 @@ struct Typeof {
14421437 int64_t typeof_typeof;
14431438 };
14441439
1445-struct Union {
1446- int64_t union_union;
1447-};
1448-
14491440 struct PrimitiveKind {
14501441 int64_t primitive_kind;
14511442 };
@@ -1454,6 +1445,22 @@ struct Obj5True {
14541445 int64_t true_true;
14551446 };
14561447
1448+struct S {
1449+ int64_t s;
1450+};
1451+
1452+struct Sbyte {
1453+ int64_t sbyte;
1454+};
1455+
1456+struct Sealed {
1457+ int64_t sealed;
1458+};
1459+
1460+struct Sel {
1461+ int64_t sel;
1462+};
1463+
14571464 struct Select {
14581465 int64_t select;
14591466 };
@@ -1598,22 +1605,6 @@ struct Undefined {
15981605 int64_t undefined;
15991606 };
16001607
1601-struct UnmarshalJson {
1602- int64_t unmarshal_json;
1603-};
1604-
1605-struct Unowned {
1606- int64_t unowned;
1607-};
1608-
1609-struct Unsafe {
1610- int64_t unsafe;
1611-};
1612-
1613-struct UseSerializers {
1614- int64_t use_serializers;
1615-};
1616-
16171608 struct Obj5 {
16181609 int64_t dummy;
16191610 struct KSerializer * k_serializer;
@@ -1638,9 +1629,12 @@ struct Obj5 {
16381629 struct Typeid * obj5_typeid;
16391630 struct Typename * obj5_typename;
16401631 struct Typeof * obj5_typeof;
1641- struct Union * obj5_union;
16421632 struct PrimitiveKind * primitive_kind;
16431633 struct Obj5True * purple_true;
1634+ struct S * s;
1635+ struct Sbyte * sbyte;
1636+ struct Sealed * sealed;
1637+ struct Sel * sel;
16441638 struct Select * select;
16451639 struct Self * self;
16461640 struct Sendable * sendable;
@@ -1677,10 +1671,10 @@ struct Obj5 {
16771671 struct Ulong * ulong;
16781672 struct Unchecked * unchecked;
16791673 struct Undefined * undefined;
1680- struct UnmarshalJson * unmarshal_json;
1681- struct Unowned * unowned;
1682- struct Unsafe * unsafe;
1683- struct UseSerializers * use_serializers;
1674+};
1675+
1676+struct Union {
1677+ int64_t union_union;
16841678 };
16851679
16861680 struct Unsigned {
@@ -1719,6 +1713,22 @@ struct XorEq {
17191713 int64_t xor_eq_xor_eq;
17201714 };
17211715
1716+struct UnmarshalJson {
1717+ int64_t unmarshal_json;
1718+};
1719+
1720+struct Unowned {
1721+ int64_t unowned;
1722+};
1723+
1724+struct Unsafe {
1725+ int64_t unsafe;
1726+};
1727+
1728+struct UseSerializers {
1729+ int64_t use_serializers;
1730+};
1731+
17221732 struct Ushort {
17231733 int64_t ushort;
17241734 };
@@ -1765,6 +1775,7 @@ struct Yield {
17651775
17661776 struct Obj6 {
17671777 int64_t dummy;
1778+ struct Union * obj6_union;
17681779 struct Unsigned * obj6_unsigned;
17691780 struct Using * obj6_using;
17701781 struct Virtual * obj6_virtual;
@@ -1774,6 +1785,10 @@ struct Obj6 {
17741785 struct While * obj6_while;
17751786 struct Xor * obj6_xor;
17761787 struct XorEq * obj6_xor_eq;
1788+ struct UnmarshalJson * unmarshal_json;
1789+ struct Unowned * unowned;
1790+ struct Unsafe * unsafe;
1791+ struct UseSerializers * use_serializers;
17771792 struct Ushort * ushort;
17781793 struct Utf8JsonReader * utf8_json_reader;
17791794 struct Utf8JsonWriter * utf8_json_writer;
@@ -2844,6 +2859,12 @@ cJSON * cJSON_CreateList(const struct List * x);
28442859 char * cJSON_PrintList(const struct List * x);
28452860 void cJSON_DeleteList(struct List * x);
28462861
2862+struct LocalDate * cJSON_ParseLocalDate(const char * s);
2863+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
2864+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
2865+char * cJSON_PrintLocalDate(const struct LocalDate * x);
2866+void cJSON_DeleteLocalDate(struct LocalDate * x);
2867+
28472868 struct Locale * cJSON_ParseLocale(const char * s);
28482869 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
28492870 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -2898,18 +2919,6 @@ cJSON * cJSON_CreateNewtonsoft(const struct Newtonsoft * x);
28982919 char * cJSON_PrintNewtonsoft(const struct Newtonsoft * x);
28992920 void cJSON_DeleteNewtonsoft(struct Newtonsoft * x);
29002921
2901-struct Nil * cJSON_ParseNil(const char * s);
2902-struct Nil * cJSON_GetNilValue(const cJSON * j);
2903-cJSON * cJSON_CreateNil(const struct Nil * x);
2904-char * cJSON_PrintNil(const struct Nil * x);
2905-void cJSON_DeleteNil(struct Nil * x);
2906-
2907-struct No * cJSON_ParseNo(const char * s);
2908-struct No * cJSON_GetNoValue(const cJSON * j);
2909-cJSON * cJSON_CreateNo(const struct No * x);
2910-char * cJSON_PrintNo(const struct No * x);
2911-void cJSON_DeleteNo(struct No * x);
2912-
29132922 struct Goto * cJSON_ParseGoto(const char * s);
29142923 struct Goto * cJSON_GetGotoValue(const cJSON * j);
29152924 cJSON * cJSON_CreateGoto(const struct Goto * x);
@@ -2976,6 +2985,18 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x);
29762985 char * cJSON_PrintObj3(const struct Obj3 * x);
29772986 void cJSON_DeleteObj3(struct Obj3 * x);
29782987
2988+struct Nil * cJSON_ParseNil(const char * s);
2989+struct Nil * cJSON_GetNilValue(const cJSON * j);
2990+cJSON * cJSON_CreateNil(const struct Nil * x);
2991+char * cJSON_PrintNil(const struct Nil * x);
2992+void cJSON_DeleteNil(struct Nil * x);
2993+
2994+struct No * cJSON_ParseNo(const char * s);
2995+struct No * cJSON_GetNoValue(const cJSON * j);
2996+cJSON * cJSON_CreateNo(const struct No * x);
2997+char * cJSON_PrintNo(const struct No * x);
2998+void cJSON_DeleteNo(struct No * x);
2999+
29793000 struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s);
29803001 struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j);
29813002 cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x);
@@ -3168,6 +3189,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
31683189 char * cJSON_PrintOf(const struct Of * x);
31693190 void cJSON_DeleteOf(struct Of * x);
31703191
3192+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
3193+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
3194+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
3195+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
3196+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
3197+
3198+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
3199+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
3200+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
3201+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
3202+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
3203+
31713204 struct Oneway * cJSON_ParseOneway(const char * s);
31723205 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
31733206 cJSON * cJSON_CreateOneway(const struct Oneway * x);
@@ -3336,30 +3369,6 @@ cJSON * cJSON_CreateRuntimeType(const struct RuntimeType * x);
33363369 char * cJSON_PrintRuntimeType(const struct RuntimeType * x);
33373370 void cJSON_DeleteRuntimeType(struct RuntimeType * x);
33383371
3339-struct S * cJSON_ParseS(const char * s);
3340-struct S * cJSON_GetSValue(const cJSON * j);
3341-cJSON * cJSON_CreateS(const struct S * x);
3342-char * cJSON_PrintS(const struct S * x);
3343-void cJSON_DeleteS(struct S * x);
3344-
3345-struct Sbyte * cJSON_ParseSbyte(const char * s);
3346-struct Sbyte * cJSON_GetSbyteValue(const cJSON * j);
3347-cJSON * cJSON_CreateSbyte(const struct Sbyte * x);
3348-char * cJSON_PrintSbyte(const struct Sbyte * x);
3349-void cJSON_DeleteSbyte(struct Sbyte * x);
3350-
3351-struct Sealed * cJSON_ParseSealed(const char * s);
3352-struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3353-cJSON * cJSON_CreateSealed(const struct Sealed * x);
3354-char * cJSON_PrintSealed(const struct Sealed * x);
3355-void cJSON_DeleteSealed(struct Sealed * x);
3356-
3357-struct Sel * cJSON_ParseSel(const char * s);
3358-struct Sel * cJSON_GetSelValue(const cJSON * j);
3359-cJSON * cJSON_CreateSel(const struct Sel * x);
3360-char * cJSON_PrintSel(const struct Sel * x);
3361-void cJSON_DeleteSel(struct Sel * x);
3362-
33633372 struct Obj4 * cJSON_ParseObj4(const char * s);
33643373 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
33653374 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3498,12 +3507,6 @@ cJSON * cJSON_CreateTypeof(const struct Typeof * x);
34983507 char * cJSON_PrintTypeof(const struct Typeof * x);
34993508 void cJSON_DeleteTypeof(struct Typeof * x);
35003509
3501-struct Union * cJSON_ParseUnion(const char * s);
3502-struct Union * cJSON_GetUnionValue(const cJSON * j);
3503-cJSON * cJSON_CreateUnion(const struct Union * x);
3504-char * cJSON_PrintUnion(const struct Union * x);
3505-void cJSON_DeleteUnion(struct Union * x);
3506-
35073510 struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
35083511 struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
35093512 cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
@@ -3516,6 +3519,30 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
35163519 char * cJSON_PrintObj5True(const struct Obj5True * x);
35173520 void cJSON_DeleteObj5True(struct Obj5True * x);
35183521
3522+struct S * cJSON_ParseS(const char * s);
3523+struct S * cJSON_GetSValue(const cJSON * j);
3524+cJSON * cJSON_CreateS(const struct S * x);
3525+char * cJSON_PrintS(const struct S * x);
3526+void cJSON_DeleteS(struct S * x);
3527+
3528+struct Sbyte * cJSON_ParseSbyte(const char * s);
3529+struct Sbyte * cJSON_GetSbyteValue(const cJSON * j);
3530+cJSON * cJSON_CreateSbyte(const struct Sbyte * x);
3531+char * cJSON_PrintSbyte(const struct Sbyte * x);
3532+void cJSON_DeleteSbyte(struct Sbyte * x);
3533+
3534+struct Sealed * cJSON_ParseSealed(const char * s);
3535+struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3536+cJSON * cJSON_CreateSealed(const struct Sealed * x);
3537+char * cJSON_PrintSealed(const struct Sealed * x);
3538+void cJSON_DeleteSealed(struct Sealed * x);
3539+
3540+struct Sel * cJSON_ParseSel(const char * s);
3541+struct Sel * cJSON_GetSelValue(const cJSON * j);
3542+cJSON * cJSON_CreateSel(const struct Sel * x);
3543+char * cJSON_PrintSel(const struct Sel * x);
3544+void cJSON_DeleteSel(struct Sel * x);
3545+
35193546 struct Select * cJSON_ParseSelect(const char * s);
35203547 struct Select * cJSON_GetSelectValue(const cJSON * j);
35213548 cJSON * cJSON_CreateSelect(const struct Select * x);
@@ -3732,36 +3759,18 @@ cJSON * cJSON_CreateUndefined(const struct Undefined * x);
37323759 char * cJSON_PrintUndefined(const struct Undefined * x);
37333760 void cJSON_DeleteUndefined(struct Undefined * x);
37343761
3735-struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s);
3736-struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j);
3737-cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x);
3738-char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x);
3739-void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x);
3740-
3741-struct Unowned * cJSON_ParseUnowned(const char * s);
3742-struct Unowned * cJSON_GetUnownedValue(const cJSON * j);
3743-cJSON * cJSON_CreateUnowned(const struct Unowned * x);
3744-char * cJSON_PrintUnowned(const struct Unowned * x);
3745-void cJSON_DeleteUnowned(struct Unowned * x);
3746-
3747-struct Unsafe * cJSON_ParseUnsafe(const char * s);
3748-struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j);
3749-cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
3750-char * cJSON_PrintUnsafe(const struct Unsafe * x);
3751-void cJSON_DeleteUnsafe(struct Unsafe * x);
3752-
3753-struct UseSerializers * cJSON_ParseUseSerializers(const char * s);
3754-struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j);
3755-cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
3756-char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
3757-void cJSON_DeleteUseSerializers(struct UseSerializers * x);
3758-
37593762 struct Obj5 * cJSON_ParseObj5(const char * s);
37603763 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
37613764 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37623765 char * cJSON_PrintObj5(const struct Obj5 * x);
37633766 void cJSON_DeleteObj5(struct Obj5 * x);
37643767
3768+struct Union * cJSON_ParseUnion(const char * s);
3769+struct Union * cJSON_GetUnionValue(const cJSON * j);
3770+cJSON * cJSON_CreateUnion(const struct Union * x);
3771+char * cJSON_PrintUnion(const struct Union * x);
3772+void cJSON_DeleteUnion(struct Union * x);
3773+
37653774 struct Unsigned * cJSON_ParseUnsigned(const char * s);
37663775 struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j);
37673776 cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
@@ -3816,6 +3825,30 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
38163825 char * cJSON_PrintXorEq(const struct XorEq * x);
38173826 void cJSON_DeleteXorEq(struct XorEq * x);
38183827
3828+struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s);
3829+struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j);
3830+cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x);
3831+char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x);
3832+void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x);
3833+
3834+struct Unowned * cJSON_ParseUnowned(const char * s);
3835+struct Unowned * cJSON_GetUnownedValue(const cJSON * j);
3836+cJSON * cJSON_CreateUnowned(const struct Unowned * x);
3837+char * cJSON_PrintUnowned(const struct Unowned * x);
3838+void cJSON_DeleteUnowned(struct Unowned * x);
3839+
3840+struct Unsafe * cJSON_ParseUnsafe(const char * s);
3841+struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j);
3842+cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
3843+char * cJSON_PrintUnsafe(const struct Unsafe * x);
3844+void cJSON_DeleteUnsafe(struct Unsafe * x);
3845+
3846+struct UseSerializers * cJSON_ParseUseSerializers(const char * s);
3847+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j);
3848+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
3849+char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
3850+void cJSON_DeleteUseSerializers(struct UseSerializers * x);
3851+
38193852 struct Ushort * cJSON_ParseUshort(const char * s);
38203853 struct Ushort * cJSON_GetUshortValue(const cJSON * j);
38213854 cJSON * cJSON_CreateUshort(const struct Ushort * x);
Mcplusplusdefault / quicktype.hpp+491 −386
@@ -3109,6 +3109,20 @@ namespace quicktype {
31093109 void set_list(const int64_t & value) { this->list = value; }
31103110 };
31113111
3112+ class LocalDate {
3113+ public:
3114+ LocalDate() = default;
3115+ virtual ~LocalDate() = default;
3116+
3117+ private:
3118+ int64_t local_date;
3119+
3120+ public:
3121+ const int64_t & get_local_date() const { return local_date; }
3122+ int64_t & get_mutable_local_date() { return local_date; }
3123+ void set_local_date(const int64_t & value) { this->local_date = value; }
3124+ };
3125+
31123126 class Locale {
31133127 public:
31143128 Locale() = default;
@@ -3235,34 +3249,6 @@ namespace quicktype {
32353249 void set_newtonsoft(const int64_t & value) { this->newtonsoft = value; }
32363250 };
32373251
3238- class Nil {
3239- public:
3240- Nil() = default;
3241- virtual ~Nil() = default;
3242-
3243- private:
3244- int64_t nil;
3245-
3246- public:
3247- const int64_t & get_nil() const { return nil; }
3248- int64_t & get_mutable_nil() { return nil; }
3249- void set_nil(const int64_t & value) { this->nil = value; }
3250- };
3251-
3252- class No {
3253- public:
3254- No() = default;
3255- virtual ~No() = default;
3256-
3257- private:
3258- int64_t no;
3259-
3260- public:
3261- const int64_t & get_no() const { return no; }
3262- int64_t & get_mutable_no() { return no; }
3263- void set_no(const int64_t & value) { this->no = value; }
3264- };
3265-
32663252 class Goto {
32673253 public:
32683254 Goto() = default;
@@ -3454,6 +3440,7 @@ namespace quicktype {
34543440 Left left;
34553441 Let let;
34563442 List list;
3443+ LocalDate local_date;
34573444 Locale locale;
34583445 Lock lock;
34593446 Map map;
@@ -3463,8 +3450,6 @@ namespace quicktype {
34633450 Mutating mutating;
34643451 Native native;
34653452 Newtonsoft newtonsoft;
3466- Nil nil;
3467- No no;
34683453 Goto obj3_goto;
34693454 If obj3_if;
34703455 Import obj3_import;
@@ -3657,6 +3642,10 @@ namespace quicktype {
36573642 List & get_mutable_list() { return list; }
36583643 void set_list(const List & value) { this->list = value; }
36593644
3645+ const LocalDate & get_local_date() const { return local_date; }
3646+ LocalDate & get_mutable_local_date() { return local_date; }
3647+ void set_local_date(const LocalDate & value) { this->local_date = value; }
3648+
36603649 const Locale & get_locale() const { return locale; }
36613650 Locale & get_mutable_locale() { return locale; }
36623651 void set_locale(const Locale & value) { this->locale = value; }
@@ -3693,14 +3682,6 @@ namespace quicktype {
36933682 Newtonsoft & get_mutable_newtonsoft() { return newtonsoft; }
36943683 void set_newtonsoft(const Newtonsoft & value) { this->newtonsoft = value; }
36953684
3696- const Nil & get_nil() const { return nil; }
3697- Nil & get_mutable_nil() { return nil; }
3698- void set_nil(const Nil & value) { this->nil = value; }
3699-
3700- const No & get_no() const { return no; }
3701- No & get_mutable_no() { return no; }
3702- void set_no(const No & value) { this->no = value; }
3703-
37043685 const Goto & get_obj3_goto() const { return obj3_goto; }
37053686 Goto & get_mutable_obj3_goto() { return obj3_goto; }
37063687 void set_obj3_goto(const Goto & value) { this->obj3_goto = value; }
@@ -3742,6 +3723,34 @@ namespace quicktype {
37423723 void set_obj3_new(const New & value) { this->obj3_new = value; }
37433724 };
37443725
3726+ class Nil {
3727+ public:
3728+ Nil() = default;
3729+ virtual ~Nil() = default;
3730+
3731+ private:
3732+ int64_t nil;
3733+
3734+ public:
3735+ const int64_t & get_nil() const { return nil; }
3736+ int64_t & get_mutable_nil() { return nil; }
3737+ void set_nil(const int64_t & value) { this->nil = value; }
3738+ };
3739+
3740+ class No {
3741+ public:
3742+ No() = default;
3743+ virtual ~No() = default;
3744+
3745+ private:
3746+ int64_t no;
3747+
3748+ public:
3749+ const int64_t & get_no() const { return no; }
3750+ int64_t & get_mutable_no() { return no; }
3751+ void set_no(const int64_t & value) { this->no = value; }
3752+ };
3753+
37453754 class NoSuchMethod {
37463755 public:
37473756 NoSuchMethod() = default;
@@ -4176,6 +4185,34 @@ namespace quicktype {
41764185 void set_of(const int64_t & value) { this->of = value; }
41774186 };
41784187
4188+ class OffsetDateTime {
4189+ public:
4190+ OffsetDateTime() = default;
4191+ virtual ~OffsetDateTime() = default;
4192+
4193+ private:
4194+ int64_t offset_date_time;
4195+
4196+ public:
4197+ const int64_t & get_offset_date_time() const { return offset_date_time; }
4198+ int64_t & get_mutable_offset_date_time() { return offset_date_time; }
4199+ void set_offset_date_time(const int64_t & value) { this->offset_date_time = value; }
4200+ };
4201+
4202+ class OffsetTime {
4203+ public:
4204+ OffsetTime() = default;
4205+ virtual ~OffsetTime() = default;
4206+
4207+ private:
4208+ int64_t offset_time;
4209+
4210+ public:
4211+ const int64_t & get_offset_time() const { return offset_time; }
4212+ int64_t & get_mutable_offset_time() { return offset_time; }
4213+ void set_offset_time(const int64_t & value) { this->offset_time = value; }
4214+ };
4215+
41794216 class Oneway {
41804217 public:
41814218 Oneway() = default;
@@ -4582,62 +4619,6 @@ namespace quicktype {
45824619 void set_runtime_type(const int64_t & value) { this->runtime_type = value; }
45834620 };
45844621
4585- class S {
4586- public:
4587- S() = default;
4588- virtual ~S() = default;
4589-
4590- private:
4591- int64_t s;
4592-
4593- public:
4594- const int64_t & get_s() const { return s; }
4595- int64_t & get_mutable_s() { return s; }
4596- void set_s(const int64_t & value) { this->s = value; }
4597- };
4598-
4599- class Sbyte {
4600- public:
4601- Sbyte() = default;
4602- virtual ~Sbyte() = default;
4603-
4604- private:
4605- int64_t sbyte;
4606-
4607- public:
4608- const int64_t & get_sbyte() const { return sbyte; }
4609- int64_t & get_mutable_sbyte() { return sbyte; }
4610- void set_sbyte(const int64_t & value) { this->sbyte = value; }
4611- };
4612-
4613- class Sealed {
4614- public:
4615- Sealed() = default;
4616- virtual ~Sealed() = default;
4617-
4618- private:
4619- int64_t sealed;
4620-
4621- public:
4622- const int64_t & get_sealed() const { return sealed; }
4623- int64_t & get_mutable_sealed() { return sealed; }
4624- void set_sealed(const int64_t & value) { this->sealed = value; }
4625- };
4626-
4627- class Sel {
4628- public:
4629- Sel() = default;
4630- virtual ~Sel() = default;
4631-
4632- private:
4633- int64_t sel;
4634-
4635- public:
4636- const int64_t & get_sel() const { return sel; }
4637- int64_t & get_mutable_sel() { return sel; }
4638- void set_sel(const int64_t & value) { this->sel = value; }
4639- };
4640-
46414622 class Obj4 {
46424623 public:
46434624 Obj4() = default;
@@ -4645,6 +4626,8 @@ namespace quicktype {
46454626
46464627 private:
46474628 int64_t dummy;
4629+ Nil nil;
4630+ No no;
46484631 NoSuchMethod no_such_method;
46494632 Nonatomic nonatomic;
46504633 None none;
@@ -4676,6 +4659,8 @@ namespace quicktype {
46764659 Object object;
46774660 ObjectMapper object_mapper;
46784661 Of of;
4662+ OffsetDateTime offset_date_time;
4663+ OffsetTime offset_time;
46794664 Oneway oneway;
46804665 Open open;
46814666 Optional optional;
@@ -4705,16 +4690,20 @@ namespace quicktype {
47054690 Rethrows rethrows;
47064691 Right right;
47074692 RuntimeType runtime_type;
4708- S s;
4709- Sbyte sbyte;
4710- Sealed sealed;
4711- Sel sel;
47124693
47134694 public:
47144695 const int64_t & get_dummy() const { return dummy; }
47154696 int64_t & get_mutable_dummy() { return dummy; }
47164697 void set_dummy(const int64_t & value) { this->dummy = value; }
47174698
4699+ const Nil & get_nil() const { return nil; }
4700+ Nil & get_mutable_nil() { return nil; }
4701+ void set_nil(const Nil & value) { this->nil = value; }
4702+
4703+ const No & get_no() const { return no; }
4704+ No & get_mutable_no() { return no; }
4705+ void set_no(const No & value) { this->no = value; }
4706+
47184707 const NoSuchMethod & get_no_such_method() const { return no_such_method; }
47194708 NoSuchMethod & get_mutable_no_such_method() { return no_such_method; }
47204709 void set_no_such_method(const NoSuchMethod & value) { this->no_such_method = value; }
@@ -4839,6 +4828,14 @@ namespace quicktype {
48394828 Of & get_mutable_of() { return of; }
48404829 void set_of(const Of & value) { this->of = value; }
48414830
4831+ const OffsetDateTime & get_offset_date_time() const { return offset_date_time; }
4832+ OffsetDateTime & get_mutable_offset_date_time() { return offset_date_time; }
4833+ void set_offset_date_time(const OffsetDateTime & value) { this->offset_date_time = value; }
4834+
4835+ const OffsetTime & get_offset_time() const { return offset_time; }
4836+ OffsetTime & get_mutable_offset_time() { return offset_time; }
4837+ void set_offset_time(const OffsetTime & value) { this->offset_time = value; }
4838+
48424839 const Oneway & get_oneway() const { return oneway; }
48434840 Oneway & get_mutable_oneway() { return oneway; }
48444841 void set_oneway(const Oneway & value) { this->oneway = value; }
@@ -4954,22 +4951,6 @@ namespace quicktype {
49544951 const RuntimeType & get_runtime_type() const { return runtime_type; }
49554952 RuntimeType & get_mutable_runtime_type() { return runtime_type; }
49564953 void set_runtime_type(const RuntimeType & value) { this->runtime_type = value; }
4957-
4958- const S & get_s() const { return s; }
4959- S & get_mutable_s() { return s; }
4960- void set_s(const S & value) { this->s = value; }
4961-
4962- const Sbyte & get_sbyte() const { return sbyte; }
4963- Sbyte & get_mutable_sbyte() { return sbyte; }
4964- void set_sbyte(const Sbyte & value) { this->sbyte = value; }
4965-
4966- const Sealed & get_sealed() const { return sealed; }
4967- Sealed & get_mutable_sealed() { return sealed; }
4968- void set_sealed(const Sealed & value) { this->sealed = value; }
4969-
4970- const Sel & get_sel() const { return sel; }
4971- Sel & get_mutable_sel() { return sel; }
4972- void set_sel(const Sel & value) { this->sel = value; }
49734954 };
49744955
49754956 class KSerializer {
@@ -5266,20 +5247,6 @@ namespace quicktype {
52665247 void set_typename_typename(const int64_t & value) { this->typename_typename = value; }
52675248 };
52685249
5269- class Union {
5270- public:
5271- Union() = default;
5272- virtual ~Union() = default;
5273-
5274- private:
5275- int64_t union_union;
5276-
5277- public:
5278- const int64_t & get_union_union() const { return union_union; }
5279- int64_t & get_mutable_union_union() { return union_union; }
5280- void set_union_union(const int64_t & value) { this->union_union = value; }
5281- };
5282-
52835250 class PrimitiveKind {
52845251 public:
52855252 PrimitiveKind() = default;
@@ -5308,6 +5275,62 @@ namespace quicktype {
53085275 void set_true_true(const int64_t & value) { this->true_true = value; }
53095276 };
53105277
5278+ class S {
5279+ public:
5280+ S() = default;
5281+ virtual ~S() = default;
5282+
5283+ private:
5284+ int64_t s;
5285+
5286+ public:
5287+ const int64_t & get_s() const { return s; }
5288+ int64_t & get_mutable_s() { return s; }
5289+ void set_s(const int64_t & value) { this->s = value; }
5290+ };
5291+
5292+ class Sbyte {
5293+ public:
5294+ Sbyte() = default;
5295+ virtual ~Sbyte() = default;
5296+
5297+ private:
5298+ int64_t sbyte;
5299+
5300+ public:
5301+ const int64_t & get_sbyte() const { return sbyte; }
5302+ int64_t & get_mutable_sbyte() { return sbyte; }
5303+ void set_sbyte(const int64_t & value) { this->sbyte = value; }
5304+ };
5305+
5306+ class Sealed {
5307+ public:
5308+ Sealed() = default;
5309+ virtual ~Sealed() = default;
5310+
5311+ private:
5312+ int64_t sealed;
5313+
5314+ public:
5315+ const int64_t & get_sealed() const { return sealed; }
5316+ int64_t & get_mutable_sealed() { return sealed; }
5317+ void set_sealed(const int64_t & value) { this->sealed = value; }
5318+ };
5319+
5320+ class Sel {
5321+ public:
5322+ Sel() = default;
5323+ virtual ~Sel() = default;
5324+
5325+ private:
5326+ int64_t sel;
5327+
5328+ public:
5329+ const int64_t & get_sel() const { return sel; }
5330+ int64_t & get_mutable_sel() { return sel; }
5331+ void set_sel(const int64_t & value) { this->sel = value; }
5332+ };
5333+
53115334 class Select {
53125335 public:
53135336 Select() = default;
@@ -5826,66 +5849,10 @@ namespace quicktype {
58265849 void set_undefined(const int64_t & value) { this->undefined = value; }
58275850 };
58285851
5829- class UnmarshalJson {
5852+ class Obj5 {
58305853 public:
5831- UnmarshalJson() = default;
5832- virtual ~UnmarshalJson() = default;
5833-
5834- private:
5835- int64_t unmarshal_json;
5836-
5837- public:
5838- const int64_t & get_unmarshal_json() const { return unmarshal_json; }
5839- int64_t & get_mutable_unmarshal_json() { return unmarshal_json; }
5840- void set_unmarshal_json(const int64_t & value) { this->unmarshal_json = value; }
5841- };
5842-
5843- class Unowned {
5844- public:
5845- Unowned() = default;
5846- virtual ~Unowned() = default;
5847-
5848- private:
5849- int64_t unowned;
5850-
5851- public:
5852- const int64_t & get_unowned() const { return unowned; }
5853- int64_t & get_mutable_unowned() { return unowned; }
5854- void set_unowned(const int64_t & value) { this->unowned = value; }
5855- };
5856-
5857- class Unsafe {
5858- public:
5859- Unsafe() = default;
5860- virtual ~Unsafe() = default;
5861-
5862- private:
5863- int64_t unsafe;
5864-
5865- public:
5866- const int64_t & get_unsafe() const { return unsafe; }
5867- int64_t & get_mutable_unsafe() { return unsafe; }
5868- void set_unsafe(const int64_t & value) { this->unsafe = value; }
5869- };
5870-
5871- class UseSerializers {
5872- public:
5873- UseSerializers() = default;
5874- virtual ~UseSerializers() = default;
5875-
5876- private:
5877- int64_t use_serializers;
5878-
5879- public:
5880- const int64_t & get_use_serializers() const { return use_serializers; }
5881- int64_t & get_mutable_use_serializers() { return use_serializers; }
5882- void set_use_serializers(const int64_t & value) { this->use_serializers = value; }
5883- };
5884-
5885- class Obj5 {
5886- public:
5887- Obj5() = default;
5888- virtual ~Obj5() = default;
5854+ Obj5() = default;
5855+ virtual ~Obj5() = default;
58895856
58905857 private:
58915858 int64_t dummy;
@@ -5910,9 +5877,12 @@ namespace quicktype {
59105877 Typedef obj5_typedef;
59115878 Typeid obj5_typeid;
59125879 Typename obj5_typename;
5913- Union obj5_union;
59145880 PrimitiveKind primitive_kind;
59155881 TrueClass purple_true;
5882+ S s;
5883+ Sbyte sbyte;
5884+ Sealed sealed;
5885+ Sel sel;
59165886 Select select;
59175887 Self self;
59185888 Sendable sendable;
@@ -5950,10 +5920,6 @@ namespace quicktype {
59505920 Ulong ulong;
59515921 Unchecked unchecked;
59525922 Undefined undefined;
5953- UnmarshalJson unmarshal_json;
5954- Unowned unowned;
5955- Unsafe unsafe;
5956- UseSerializers use_serializers;
59575923
59585924 public:
59595925 const int64_t & get_dummy() const { return dummy; }
@@ -6044,10 +6010,6 @@ namespace quicktype {
60446010 Typename & get_mutable_obj5_typename() { return obj5_typename; }
60456011 void set_obj5_typename(const Typename & value) { this->obj5_typename = value; }
60466012
6047- const Union & get_obj5_union() const { return obj5_union; }
6048- Union & get_mutable_obj5_union() { return obj5_union; }
6049- void set_obj5_union(const Union & value) { this->obj5_union = value; }
6050-
60516013 const PrimitiveKind & get_primitive_kind() const { return primitive_kind; }
60526014 PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; }
60536015 void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; }
@@ -6056,6 +6018,22 @@ namespace quicktype {
60566018 TrueClass & get_mutable_purple_true() { return purple_true; }
60576019 void set_purple_true(const TrueClass & value) { this->purple_true = value; }
60586020
6021+ const S & get_s() const { return s; }
6022+ S & get_mutable_s() { return s; }
6023+ void set_s(const S & value) { this->s = value; }
6024+
6025+ const Sbyte & get_sbyte() const { return sbyte; }
6026+ Sbyte & get_mutable_sbyte() { return sbyte; }
6027+ void set_sbyte(const Sbyte & value) { this->sbyte = value; }
6028+
6029+ const Sealed & get_sealed() const { return sealed; }
6030+ Sealed & get_mutable_sealed() { return sealed; }
6031+ void set_sealed(const Sealed & value) { this->sealed = value; }
6032+
6033+ const Sel & get_sel() const { return sel; }
6034+ Sel & get_mutable_sel() { return sel; }
6035+ void set_sel(const Sel & value) { this->sel = value; }
6036+
60596037 const Select & get_select() const { return select; }
60606038 Select & get_mutable_select() { return select; }
60616039 void set_select(const Select & value) { this->select = value; }
@@ -6203,22 +6181,20 @@ namespace quicktype {
62036181 const Undefined & get_undefined() const { return undefined; }
62046182 Undefined & get_mutable_undefined() { return undefined; }
62056183 void set_undefined(const Undefined & value) { this->undefined = value; }
6184+ };
62066185
6207- const UnmarshalJson & get_unmarshal_json() const { return unmarshal_json; }
6208- UnmarshalJson & get_mutable_unmarshal_json() { return unmarshal_json; }
6209- void set_unmarshal_json(const UnmarshalJson & value) { this->unmarshal_json = value; }
6210-
6211- const Unowned & get_unowned() const { return unowned; }
6212- Unowned & get_mutable_unowned() { return unowned; }
6213- void set_unowned(const Unowned & value) { this->unowned = value; }
6186+ class Union {
6187+ public:
6188+ Union() = default;
6189+ virtual ~Union() = default;
62146190
6215- const Unsafe & get_unsafe() const { return unsafe; }
6216- Unsafe & get_mutable_unsafe() { return unsafe; }
6217- void set_unsafe(const Unsafe & value) { this->unsafe = value; }
6191+ private:
6192+ int64_t union_union;
62186193
6219- const UseSerializers & get_use_serializers() const { return use_serializers; }
6220- UseSerializers & get_mutable_use_serializers() { return use_serializers; }
6221- void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; }
6194+ public:
6195+ const int64_t & get_union_union() const { return union_union; }
6196+ int64_t & get_mutable_union_union() { return union_union; }
6197+ void set_union_union(const int64_t & value) { this->union_union = value; }
62226198 };
62236199
62246200 class Unsigned {
@@ -6347,6 +6323,62 @@ namespace quicktype {
63476323 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
63486324 };
63496325
6326+ class UnmarshalJson {
6327+ public:
6328+ UnmarshalJson() = default;
6329+ virtual ~UnmarshalJson() = default;
6330+
6331+ private:
6332+ int64_t unmarshal_json;
6333+
6334+ public:
6335+ const int64_t & get_unmarshal_json() const { return unmarshal_json; }
6336+ int64_t & get_mutable_unmarshal_json() { return unmarshal_json; }
6337+ void set_unmarshal_json(const int64_t & value) { this->unmarshal_json = value; }
6338+ };
6339+
6340+ class Unowned {
6341+ public:
6342+ Unowned() = default;
6343+ virtual ~Unowned() = default;
6344+
6345+ private:
6346+ int64_t unowned;
6347+
6348+ public:
6349+ const int64_t & get_unowned() const { return unowned; }
6350+ int64_t & get_mutable_unowned() { return unowned; }
6351+ void set_unowned(const int64_t & value) { this->unowned = value; }
6352+ };
6353+
6354+ class Unsafe {
6355+ public:
6356+ Unsafe() = default;
6357+ virtual ~Unsafe() = default;
6358+
6359+ private:
6360+ int64_t unsafe;
6361+
6362+ public:
6363+ const int64_t & get_unsafe() const { return unsafe; }
6364+ int64_t & get_mutable_unsafe() { return unsafe; }
6365+ void set_unsafe(const int64_t & value) { this->unsafe = value; }
6366+ };
6367+
6368+ class UseSerializers {
6369+ public:
6370+ UseSerializers() = default;
6371+ virtual ~UseSerializers() = default;
6372+
6373+ private:
6374+ int64_t use_serializers;
6375+
6376+ public:
6377+ const int64_t & get_use_serializers() const { return use_serializers; }
6378+ int64_t & get_mutable_use_serializers() { return use_serializers; }
6379+ void set_use_serializers(const int64_t & value) { this->use_serializers = value; }
6380+ };
6381+
63506382 class Ushort {
63516383 public:
63526384 Ushort() = default;
@@ -6508,6 +6540,7 @@ namespace quicktype {
65086540
65096541 private:
65106542 int64_t dummy;
6543+ Union obj6_union;
65116544 Unsigned obj6_unsigned;
65126545 Using obj6_using;
65136546 Virtual obj6_virtual;
@@ -6517,6 +6550,10 @@ namespace quicktype {
65176550 While obj6_while;
65186551 Xor obj6_xor;
65196552 XorEq obj6_xor_eq;
6553+ UnmarshalJson unmarshal_json;
6554+ Unowned unowned;
6555+ Unsafe unsafe;
6556+ UseSerializers use_serializers;
65206557 Ushort ushort;
65216558 Utf8JsonReader utf8_json_reader;
65226559 Utf8JsonWriter utf8_json_writer;
@@ -6534,6 +6571,10 @@ namespace quicktype {
65346571 int64_t & get_mutable_dummy() { return dummy; }
65356572 void set_dummy(const int64_t & value) { this->dummy = value; }
65366573
6574+ const Union & get_obj6_union() const { return obj6_union; }
6575+ Union & get_mutable_obj6_union() { return obj6_union; }
6576+ void set_obj6_union(const Union & value) { this->obj6_union = value; }
6577+
65376578 const Unsigned & get_obj6_unsigned() const { return obj6_unsigned; }
65386579 Unsigned & get_mutable_obj6_unsigned() { return obj6_unsigned; }
65396580 void set_obj6_unsigned(const Unsigned & value) { this->obj6_unsigned = value; }
@@ -6570,6 +6611,22 @@ namespace quicktype {
65706611 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
65716612 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
65726613
6614+ const UnmarshalJson & get_unmarshal_json() const { return unmarshal_json; }
6615+ UnmarshalJson & get_mutable_unmarshal_json() { return unmarshal_json; }
6616+ void set_unmarshal_json(const UnmarshalJson & value) { this->unmarshal_json = value; }
6617+
6618+ const Unowned & get_unowned() const { return unowned; }
6619+ Unowned & get_mutable_unowned() { return unowned; }
6620+ void set_unowned(const Unowned & value) { this->unowned = value; }
6621+
6622+ const Unsafe & get_unsafe() const { return unsafe; }
6623+ Unsafe & get_mutable_unsafe() { return unsafe; }
6624+ void set_unsafe(const Unsafe & value) { this->unsafe = value; }
6625+
6626+ const UseSerializers & get_use_serializers() const { return use_serializers; }
6627+ UseSerializers & get_mutable_use_serializers() { return use_serializers; }
6628+ void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; }
6629+
65736630 const Ushort & get_ushort() const { return ushort; }
65746631 Ushort & get_mutable_ushort() { return ushort; }
65756632 void set_ushort(const Ushort & value) { this->ushort = value; }
@@ -7183,6 +7240,9 @@ namespace quicktype {
71837240 void from_json(const json & j, List & x);
71847241 void to_json(json & j, const List & x);
71857242
7243+ void from_json(const json & j, LocalDate & x);
7244+ void to_json(json & j, const LocalDate & x);
7245+
71867246 void from_json(const json & j, Locale & x);
71877247 void to_json(json & j, const Locale & x);
71887248
@@ -7210,12 +7270,6 @@ namespace quicktype {
72107270 void from_json(const json & j, Newtonsoft & x);
72117271 void to_json(json & j, const Newtonsoft & x);
72127272
7213- void from_json(const json & j, Nil & x);
7214- void to_json(json & j, const Nil & x);
7215-
7216- void from_json(const json & j, No & x);
7217- void to_json(json & j, const No & x);
7218-
72197273 void from_json(const json & j, Goto & x);
72207274 void to_json(json & j, const Goto & x);
72217275
@@ -7249,6 +7303,12 @@ namespace quicktype {
72497303 void from_json(const json & j, Obj3 & x);
72507304 void to_json(json & j, const Obj3 & x);
72517305
7306+ void from_json(const json & j, Nil & x);
7307+ void to_json(json & j, const Nil & x);
7308+
7309+ void from_json(const json & j, No & x);
7310+ void to_json(json & j, const No & x);
7311+
72527312 void from_json(const json & j, NoSuchMethod & x);
72537313 void to_json(json & j, const NoSuchMethod & x);
72547314
@@ -7342,6 +7402,12 @@ namespace quicktype {
73427402 void from_json(const json & j, Of & x);
73437403 void to_json(json & j, const Of & x);
73447404
7405+ void from_json(const json & j, OffsetDateTime & x);
7406+ void to_json(json & j, const OffsetDateTime & x);
7407+
7408+ void from_json(const json & j, OffsetTime & x);
7409+ void to_json(json & j, const OffsetTime & x);
7410+
73457411 void from_json(const json & j, Oneway & x);
73467412 void to_json(json & j, const Oneway & x);
73477413
@@ -7429,18 +7495,6 @@ namespace quicktype {
74297495 void from_json(const json & j, RuntimeType & x);
74307496 void to_json(json & j, const RuntimeType & x);
74317497
7432- void from_json(const json & j, S & x);
7433- void to_json(json & j, const S & x);
7434-
7435- void from_json(const json & j, Sbyte & x);
7436- void to_json(json & j, const Sbyte & x);
7437-
7438- void from_json(const json & j, Sealed & x);
7439- void to_json(json & j, const Sealed & x);
7440-
7441- void from_json(const json & j, Sel & x);
7442- void to_json(json & j, const Sel & x);
7443-
74447498 void from_json(const json & j, Obj4 & x);
74457499 void to_json(json & j, const Obj4 & x);
74467500
@@ -7507,15 +7561,24 @@ namespace quicktype {
75077561 void from_json(const json & j, Typename & x);
75087562 void to_json(json & j, const Typename & x);
75097563
7510- void from_json(const json & j, Union & x);
7511- void to_json(json & j, const Union & x);
7512-
75137564 void from_json(const json & j, PrimitiveKind & x);
75147565 void to_json(json & j, const PrimitiveKind & x);
75157566
75167567 void from_json(const json & j, TrueClass & x);
75177568 void to_json(json & j, const TrueClass & x);
75187569
7570+ void from_json(const json & j, S & x);
7571+ void to_json(json & j, const S & x);
7572+
7573+ void from_json(const json & j, Sbyte & x);
7574+ void to_json(json & j, const Sbyte & x);
7575+
7576+ void from_json(const json & j, Sealed & x);
7577+ void to_json(json & j, const Sealed & x);
7578+
7579+ void from_json(const json & j, Sel & x);
7580+ void to_json(json & j, const Sel & x);
7581+
75197582 void from_json(const json & j, Select & x);
75207583 void to_json(json & j, const Select & x);
75217584
@@ -7627,21 +7690,12 @@ namespace quicktype {
76277690 void from_json(const json & j, Undefined & x);
76287691 void to_json(json & j, const Undefined & x);
76297692
7630- void from_json(const json & j, UnmarshalJson & x);
7631- void to_json(json & j, const UnmarshalJson & x);
7632-
7633- void from_json(const json & j, Unowned & x);
7634- void to_json(json & j, const Unowned & x);
7635-
7636- void from_json(const json & j, Unsafe & x);
7637- void to_json(json & j, const Unsafe & x);
7638-
7639- void from_json(const json & j, UseSerializers & x);
7640- void to_json(json & j, const UseSerializers & x);
7641-
76427693 void from_json(const json & j, Obj5 & x);
76437694 void to_json(json & j, const Obj5 & x);
76447695
7696+ void from_json(const json & j, Union & x);
7697+ void to_json(json & j, const Union & x);
7698+
76457699 void from_json(const json & j, Unsigned & x);
76467700 void to_json(json & j, const Unsigned & x);
76477701
@@ -7669,6 +7723,18 @@ namespace quicktype {
76697723 void from_json(const json & j, XorEq & x);
76707724 void to_json(json & j, const XorEq & x);
76717725
7726+ void from_json(const json & j, UnmarshalJson & x);
7727+ void to_json(json & j, const UnmarshalJson & x);
7728+
7729+ void from_json(const json & j, Unowned & x);
7730+ void to_json(json & j, const Unowned & x);
7731+
7732+ void from_json(const json & j, Unsafe & x);
7733+ void to_json(json & j, const Unsafe & x);
7734+
7735+ void from_json(const json & j, UseSerializers & x);
7736+ void to_json(json & j, const UseSerializers & x);
7737+
76727738 void from_json(const json & j, Ushort & x);
76737739 void to_json(json & j, const Ushort & x);
76747740
@@ -9879,6 +9945,17 @@ namespace quicktype {
98799945 j["list"] = x.get_list();
98809946 }
98819947
9948+ inline void from_json(const json & j, LocalDate& x) {
9949+ if (!j.is_object()) throw std::runtime_error("Expected object");
9950+ if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer");
9951+ x.set_local_date(j.at("LocalDate").get<int64_t>());
9952+ }
9953+
9954+ inline void to_json(json & j, const LocalDate & x) {
9955+ j = json::object();
9956+ j["LocalDate"] = x.get_local_date();
9957+ }
9958+
98829959 inline void from_json(const json & j, Locale& x) {
98839960 if (!j.is_object()) throw std::runtime_error("Expected object");
98849961 if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9978,29 +10055,7 @@ namespace quicktype {
997810055 j["newtonsoft"] = x.get_newtonsoft();
997910056 }
998010057
9981- inline void from_json(const json & j, Nil& x) {
9982- if (!j.is_object()) throw std::runtime_error("Expected object");
9983- if (j.find("nil") != j.end() && !j.at("nil").is_number_integer()) throw std::runtime_error("Expected integer");
9984- x.set_nil(j.at("nil").get<int64_t>());
9985- }
9986-
9987- inline void to_json(json & j, const Nil & x) {
9988- j = json::object();
9989- j["nil"] = x.get_nil();
9990- }
9991-
9992- inline void from_json(const json & j, No& x) {
9993- if (!j.is_object()) throw std::runtime_error("Expected object");
9994- if (j.find("NO") != j.end() && !j.at("NO").is_number_integer()) throw std::runtime_error("Expected integer");
9995- x.set_no(j.at("NO").get<int64_t>());
9996- }
9997-
9998- inline void to_json(json & j, const No & x) {
9999- j = json::object();
10000- j["NO"] = x.get_no();
10001- }
10002-
10003- inline void from_json(const json & j, Goto& x) {
10058+ inline void from_json(const json & j, Goto& x) {
1000410059 if (!j.is_object()) throw std::runtime_error("Expected object");
1000510060 if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
1000610061 x.set_goto_goto(j.at("goto").get<int64_t>());
@@ -10158,6 +10213,7 @@ namespace quicktype {
1015810213 x.set_left(j.at("left").get<Left>());
1015910214 x.set_let(j.at("let").get<Let>());
1016010215 x.set_list(j.at("list").get<List>());
10216+ x.set_local_date(j.at("LocalDate").get<LocalDate>());
1016110217 x.set_locale(j.at("Locale").get<Locale>());
1016210218 x.set_lock(j.at("lock").get<Lock>());
1016310219 x.set_map(j.at("map").get<Map>());
@@ -10167,8 +10223,6 @@ namespace quicktype {
1016710223 x.set_mutating(j.at("mutating").get<Mutating>());
1016810224 x.set_native(j.at("native").get<Native>());
1016910225 x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>());
10170- x.set_nil(j.at("nil").get<Nil>());
10171- x.set_no(j.at("NO").get<No>());
1017210226 x.set_obj3_goto(j.at("goto").get<Goto>());
1017310227 x.set_obj3_if(j.at("if").get<If>());
1017410228 x.set_obj3_import(j.at("import").get<Import>());
@@ -10228,6 +10282,7 @@ namespace quicktype {
1022810282 j["left"] = x.get_left();
1022910283 j["let"] = x.get_let();
1023010284 j["list"] = x.get_list();
10285+ j["LocalDate"] = x.get_local_date();
1023110286 j["Locale"] = x.get_locale();
1023210287 j["lock"] = x.get_lock();
1023310288 j["map"] = x.get_map();
@@ -10237,8 +10292,6 @@ namespace quicktype {
1023710292 j["mutating"] = x.get_mutating();
1023810293 j["native"] = x.get_native();
1023910294 j["newtonsoft"] = x.get_newtonsoft();
10240- j["nil"] = x.get_nil();
10241- j["NO"] = x.get_no();
1024210295 j["goto"] = x.get_obj3_goto();
1024310296 j["if"] = x.get_obj3_if();
1024410297 j["import"] = x.get_obj3_import();
@@ -10251,6 +10304,28 @@ namespace quicktype {
1025110304 j["new"] = x.get_obj3_new();
1025210305 }
1025310306
10307+ inline void from_json(const json & j, Nil& x) {
10308+ if (!j.is_object()) throw std::runtime_error("Expected object");
10309+ if (j.find("nil") != j.end() && !j.at("nil").is_number_integer()) throw std::runtime_error("Expected integer");
10310+ x.set_nil(j.at("nil").get<int64_t>());
10311+ }
10312+
10313+ inline void to_json(json & j, const Nil & x) {
10314+ j = json::object();
10315+ j["nil"] = x.get_nil();
10316+ }
10317+
10318+ inline void from_json(const json & j, No& x) {
10319+ if (!j.is_object()) throw std::runtime_error("Expected object");
10320+ if (j.find("NO") != j.end() && !j.at("NO").is_number_integer()) throw std::runtime_error("Expected integer");
10321+ x.set_no(j.at("NO").get<int64_t>());
10322+ }
10323+
10324+ inline void to_json(json & j, const No & x) {
10325+ j = json::object();
10326+ j["NO"] = x.get_no();
10327+ }
10328+
1025410329 inline void from_json(const json & j, NoSuchMethod& x) {
1025510330 if (!j.is_object()) throw std::runtime_error("Expected object");
1025610331 if (j.find("noSuchMethod") != j.end() && !j.at("noSuchMethod").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10592,6 +10667,28 @@ namespace quicktype {
1059210667 j["of"] = x.get_of();
1059310668 }
1059410669
10670+ inline void from_json(const json & j, OffsetDateTime& x) {
10671+ if (!j.is_object()) throw std::runtime_error("Expected object");
10672+ if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer");
10673+ x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>());
10674+ }
10675+
10676+ inline void to_json(json & j, const OffsetDateTime & x) {
10677+ j = json::object();
10678+ j["OffsetDateTime"] = x.get_offset_date_time();
10679+ }
10680+
10681+ inline void from_json(const json & j, OffsetTime& x) {
10682+ if (!j.is_object()) throw std::runtime_error("Expected object");
10683+ if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer");
10684+ x.set_offset_time(j.at("OffsetTime").get<int64_t>());
10685+ }
10686+
10687+ inline void to_json(json & j, const OffsetTime & x) {
10688+ j = json::object();
10689+ j["OffsetTime"] = x.get_offset_time();
10690+ }
10691+
1059510692 inline void from_json(const json & j, Oneway& x) {
1059610693 if (!j.is_object()) throw std::runtime_error("Expected object");
1059710694 if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10911,54 +11008,12 @@ namespace quicktype {
1091111008 j["runtimeType"] = x.get_runtime_type();
1091211009 }
1091311010
10914- inline void from_json(const json & j, S& x) {
10915- if (!j.is_object()) throw std::runtime_error("Expected object");
10916- if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer");
10917- x.set_s(j.at("s").get<int64_t>());
10918- }
10919-
10920- inline void to_json(json & j, const S & x) {
10921- j = json::object();
10922- j["s"] = x.get_s();
10923- }
10924-
10925- inline void from_json(const json & j, Sbyte& x) {
10926- if (!j.is_object()) throw std::runtime_error("Expected object");
10927- if (j.find("sbyte") != j.end() && !j.at("sbyte").is_number_integer()) throw std::runtime_error("Expected integer");
10928- x.set_sbyte(j.at("sbyte").get<int64_t>());
10929- }
10930-
10931- inline void to_json(json & j, const Sbyte & x) {
10932- j = json::object();
10933- j["sbyte"] = x.get_sbyte();
10934- }
10935-
10936- inline void from_json(const json & j, Sealed& x) {
10937- if (!j.is_object()) throw std::runtime_error("Expected object");
10938- if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
10939- x.set_sealed(j.at("sealed").get<int64_t>());
10940- }
10941-
10942- inline void to_json(json & j, const Sealed & x) {
10943- j = json::object();
10944- j["sealed"] = x.get_sealed();
10945- }
10946-
10947- inline void from_json(const json & j, Sel& x) {
10948- if (!j.is_object()) throw std::runtime_error("Expected object");
10949- if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
10950- x.set_sel(j.at("SEL").get<int64_t>());
10951- }
10952-
10953- inline void to_json(json & j, const Sel & x) {
10954- j = json::object();
10955- j["SEL"] = x.get_sel();
10956- }
10957-
1095811011 inline void from_json(const json & j, Obj4& x) {
1095911012 if (!j.is_object()) throw std::runtime_error("Expected object");
1096011013 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1096111014 x.set_dummy(j.at("dummy").get<int64_t>());
11015+ x.set_nil(j.at("nil").get<Nil>());
11016+ x.set_no(j.at("NO").get<No>());
1096211017 x.set_no_such_method(j.at("noSuchMethod").get<NoSuchMethod>());
1096311018 x.set_nonatomic(j.at("nonatomic").get<Nonatomic>());
1096411019 x.set_none(j.at("None").get<None>());
@@ -10990,6 +11045,8 @@ namespace quicktype {
1099011045 x.set_object(j.at("object").get<Object>());
1099111046 x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>());
1099211047 x.set_of(j.at("of").get<Of>());
11048+ x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>());
11049+ x.set_offset_time(j.at("OffsetTime").get<OffsetTime>());
1099311050 x.set_oneway(j.at("oneway").get<Oneway>());
1099411051 x.set_open(j.at("open").get<Open>());
1099511052 x.set_optional(j.at("optional").get<Optional>());
@@ -11019,15 +11076,13 @@ namespace quicktype {
1101911076 x.set_rethrows(j.at("rethrows").get<Rethrows>());
1102011077 x.set_right(j.at("right").get<Right>());
1102111078 x.set_runtime_type(j.at("runtimeType").get<RuntimeType>());
11022- x.set_s(j.at("s").get<S>());
11023- x.set_sbyte(j.at("sbyte").get<Sbyte>());
11024- x.set_sealed(j.at("sealed").get<Sealed>());
11025- x.set_sel(j.at("SEL").get<Sel>());
1102611079 }
1102711080
1102811081 inline void to_json(json & j, const Obj4 & x) {
1102911082 j = json::object();
1103011083 j["dummy"] = x.get_dummy();
11084+ j["nil"] = x.get_nil();
11085+ j["NO"] = x.get_no();
1103111086 j["noSuchMethod"] = x.get_no_such_method();
1103211087 j["nonatomic"] = x.get_nonatomic();
1103311088 j["None"] = x.get_none();
@@ -11059,6 +11114,8 @@ namespace quicktype {
1105911114 j["object"] = x.get_object();
1106011115 j["ObjectMapper"] = x.get_object_mapper();
1106111116 j["of"] = x.get_of();
11117+ j["OffsetDateTime"] = x.get_offset_date_time();
11118+ j["OffsetTime"] = x.get_offset_time();
1106211119 j["oneway"] = x.get_oneway();
1106311120 j["open"] = x.get_open();
1106411121 j["optional"] = x.get_optional();
@@ -11088,10 +11145,6 @@ namespace quicktype {
1108811145 j["rethrows"] = x.get_rethrows();
1108911146 j["right"] = x.get_right();
1109011147 j["runtimeType"] = x.get_runtime_type();
11091- j["s"] = x.get_s();
11092- j["sbyte"] = x.get_sbyte();
11093- j["sealed"] = x.get_sealed();
11094- j["SEL"] = x.get_sel();
1109511148 }
1109611149
1109711150 inline void from_json(const json & j, KSerializer& x) {
@@ -11325,17 +11378,6 @@ namespace quicktype {
1132511378 j["typename"] = x.get_typename_typename();
1132611379 }
1132711380
11328- inline void from_json(const json & j, Union& x) {
11329- if (!j.is_object()) throw std::runtime_error("Expected object");
11330- if (j.find("union") != j.end() && !j.at("union").is_number_integer()) throw std::runtime_error("Expected integer");
11331- x.set_union_union(j.at("union").get<int64_t>());
11332- }
11333-
11334- inline void to_json(json & j, const Union & x) {
11335- j = json::object();
11336- j["union"] = x.get_union_union();
11337- }
11338-
1133911381 inline void from_json(const json & j, PrimitiveKind& x) {
1134011382 if (!j.is_object()) throw std::runtime_error("Expected object");
1134111383 if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11358,6 +11400,50 @@ namespace quicktype {
1135811400 j["true"] = x.get_true_true();
1135911401 }
1136011402
11403+ inline void from_json(const json & j, S& x) {
11404+ if (!j.is_object()) throw std::runtime_error("Expected object");
11405+ if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer");
11406+ x.set_s(j.at("s").get<int64_t>());
11407+ }
11408+
11409+ inline void to_json(json & j, const S & x) {
11410+ j = json::object();
11411+ j["s"] = x.get_s();
11412+ }
11413+
11414+ inline void from_json(const json & j, Sbyte& x) {
11415+ if (!j.is_object()) throw std::runtime_error("Expected object");
11416+ if (j.find("sbyte") != j.end() && !j.at("sbyte").is_number_integer()) throw std::runtime_error("Expected integer");
11417+ x.set_sbyte(j.at("sbyte").get<int64_t>());
11418+ }
11419+
11420+ inline void to_json(json & j, const Sbyte & x) {
11421+ j = json::object();
11422+ j["sbyte"] = x.get_sbyte();
11423+ }
11424+
11425+ inline void from_json(const json & j, Sealed& x) {
11426+ if (!j.is_object()) throw std::runtime_error("Expected object");
11427+ if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
11428+ x.set_sealed(j.at("sealed").get<int64_t>());
11429+ }
11430+
11431+ inline void to_json(json & j, const Sealed & x) {
11432+ j = json::object();
11433+ j["sealed"] = x.get_sealed();
11434+ }
11435+
11436+ inline void from_json(const json & j, Sel& x) {
11437+ if (!j.is_object()) throw std::runtime_error("Expected object");
11438+ if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
11439+ x.set_sel(j.at("SEL").get<int64_t>());
11440+ }
11441+
11442+ inline void to_json(json & j, const Sel & x) {
11443+ j = json::object();
11444+ j["SEL"] = x.get_sel();
11445+ }
11446+
1136111447 inline void from_json(const json & j, Select& x) {
1136211448 if (!j.is_object()) throw std::runtime_error("Expected object");
1136311449 if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11765,50 +11851,6 @@ namespace quicktype {
1176511851 j["undefined"] = x.get_undefined();
1176611852 }
1176711853
11768- inline void from_json(const json & j, UnmarshalJson& x) {
11769- if (!j.is_object()) throw std::runtime_error("Expected object");
11770- if (j.find("UnmarshalJSON") != j.end() && !j.at("UnmarshalJSON").is_number_integer()) throw std::runtime_error("Expected integer");
11771- x.set_unmarshal_json(j.at("UnmarshalJSON").get<int64_t>());
11772- }
11773-
11774- inline void to_json(json & j, const UnmarshalJson & x) {
11775- j = json::object();
11776- j["UnmarshalJSON"] = x.get_unmarshal_json();
11777- }
11778-
11779- inline void from_json(const json & j, Unowned& x) {
11780- if (!j.is_object()) throw std::runtime_error("Expected object");
11781- if (j.find("unowned") != j.end() && !j.at("unowned").is_number_integer()) throw std::runtime_error("Expected integer");
11782- x.set_unowned(j.at("unowned").get<int64_t>());
11783- }
11784-
11785- inline void to_json(json & j, const Unowned & x) {
11786- j = json::object();
11787- j["unowned"] = x.get_unowned();
11788- }
11789-
11790- inline void from_json(const json & j, Unsafe& x) {
11791- if (!j.is_object()) throw std::runtime_error("Expected object");
11792- if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer");
11793- x.set_unsafe(j.at("unsafe").get<int64_t>());
11794- }
11795-
11796- inline void to_json(json & j, const Unsafe & x) {
11797- j = json::object();
11798- j["unsafe"] = x.get_unsafe();
11799- }
11800-
11801- inline void from_json(const json & j, UseSerializers& x) {
11802- if (!j.is_object()) throw std::runtime_error("Expected object");
11803- if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer");
11804- x.set_use_serializers(j.at("UseSerializers").get<int64_t>());
11805- }
11806-
11807- inline void to_json(json & j, const UseSerializers & x) {
11808- j = json::object();
11809- j["UseSerializers"] = x.get_use_serializers();
11810- }
11811-
1181211854 inline void from_json(const json & j, Obj5& x) {
1181311855 if (!j.is_object()) throw std::runtime_error("Expected object");
1181411856 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11834,9 +11876,12 @@ namespace quicktype {
1183411876 x.set_obj5_typedef(j.at("typedef").get<Typedef>());
1183511877 x.set_obj5_typeid(j.at("typeid").get<Typeid>());
1183611878 x.set_obj5_typename(j.at("typename").get<Typename>());
11837- x.set_obj5_union(j.at("union").get<Union>());
1183811879 x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>());
1183911880 x.set_purple_true(j.at("true").get<TrueClass>());
11881+ x.set_s(j.at("s").get<S>());
11882+ x.set_sbyte(j.at("sbyte").get<Sbyte>());
11883+ x.set_sealed(j.at("sealed").get<Sealed>());
11884+ x.set_sel(j.at("SEL").get<Sel>());
1184011885 x.set_select(j.at("select").get<Select>());
1184111886 x.set_self(j.at("Self").get<Self>());
1184211887 x.set_sendable(j.at("Sendable").get<Sendable>());
@@ -11874,10 +11919,6 @@ namespace quicktype {
1187411919 x.set_ulong(j.at("ulong").get<Ulong>());
1187511920 x.set_unchecked(j.at("unchecked").get<Unchecked>());
1187611921 x.set_undefined(j.at("undefined").get<Undefined>());
11877- x.set_unmarshal_json(j.at("UnmarshalJSON").get<UnmarshalJson>());
11878- x.set_unowned(j.at("unowned").get<Unowned>());
11879- x.set_unsafe(j.at("unsafe").get<Unsafe>());
11880- x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>());
1188111922 }
1188211923
1188311924 inline void to_json(json & j, const Obj5 & x) {
@@ -11904,9 +11945,12 @@ namespace quicktype {
1190411945 j["typedef"] = x.get_obj5_typedef();
1190511946 j["typeid"] = x.get_obj5_typeid();
1190611947 j["typename"] = x.get_obj5_typename();
11907- j["union"] = x.get_obj5_union();
1190811948 j["PrimitiveKind"] = x.get_primitive_kind();
1190911949 j["true"] = x.get_purple_true();
11950+ j["s"] = x.get_s();
11951+ j["sbyte"] = x.get_sbyte();
11952+ j["sealed"] = x.get_sealed();
11953+ j["SEL"] = x.get_sel();
1191011954 j["select"] = x.get_select();
1191111955 j["Self"] = x.get_self();
1191211956 j["Sendable"] = x.get_sendable();
@@ -11944,10 +11988,17 @@ namespace quicktype {
1194411988 j["ulong"] = x.get_ulong();
1194511989 j["unchecked"] = x.get_unchecked();
1194611990 j["undefined"] = x.get_undefined();
11947- j["UnmarshalJSON"] = x.get_unmarshal_json();
11948- j["unowned"] = x.get_unowned();
11949- j["unsafe"] = x.get_unsafe();
11950- j["UseSerializers"] = x.get_use_serializers();
11991+ }
11992+
11993+ inline void from_json(const json & j, Union& x) {
11994+ if (!j.is_object()) throw std::runtime_error("Expected object");
11995+ if (j.find("union") != j.end() && !j.at("union").is_number_integer()) throw std::runtime_error("Expected integer");
11996+ x.set_union_union(j.at("union").get<int64_t>());
11997+ }
11998+
11999+ inline void to_json(json & j, const Union & x) {
12000+ j = json::object();
12001+ j["union"] = x.get_union_union();
1195112002 }
1195212003
1195312004 inline void from_json(const json & j, Unsigned& x) {
@@ -12049,6 +12100,50 @@ namespace quicktype {
1204912100 j["xor_eq"] = x.get_xor_eq_xor_eq();
1205012101 }
1205112102
12103+ inline void from_json(const json & j, UnmarshalJson& x) {
12104+ if (!j.is_object()) throw std::runtime_error("Expected object");
12105+ if (j.find("UnmarshalJSON") != j.end() && !j.at("UnmarshalJSON").is_number_integer()) throw std::runtime_error("Expected integer");
12106+ x.set_unmarshal_json(j.at("UnmarshalJSON").get<int64_t>());
12107+ }
12108+
12109+ inline void to_json(json & j, const UnmarshalJson & x) {
12110+ j = json::object();
12111+ j["UnmarshalJSON"] = x.get_unmarshal_json();
12112+ }
12113+
12114+ inline void from_json(const json & j, Unowned& x) {
12115+ if (!j.is_object()) throw std::runtime_error("Expected object");
12116+ if (j.find("unowned") != j.end() && !j.at("unowned").is_number_integer()) throw std::runtime_error("Expected integer");
12117+ x.set_unowned(j.at("unowned").get<int64_t>());
12118+ }
12119+
12120+ inline void to_json(json & j, const Unowned & x) {
12121+ j = json::object();
12122+ j["unowned"] = x.get_unowned();
12123+ }
12124+
12125+ inline void from_json(const json & j, Unsafe& x) {
12126+ if (!j.is_object()) throw std::runtime_error("Expected object");
12127+ if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer");
12128+ x.set_unsafe(j.at("unsafe").get<int64_t>());
12129+ }
12130+
12131+ inline void to_json(json & j, const Unsafe & x) {
12132+ j = json::object();
12133+ j["unsafe"] = x.get_unsafe();
12134+ }
12135+
12136+ inline void from_json(const json & j, UseSerializers& x) {
12137+ if (!j.is_object()) throw std::runtime_error("Expected object");
12138+ if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer");
12139+ x.set_use_serializers(j.at("UseSerializers").get<int64_t>());
12140+ }
12141+
12142+ inline void to_json(json & j, const UseSerializers & x) {
12143+ j = json::object();
12144+ j["UseSerializers"] = x.get_use_serializers();
12145+ }
12146+
1205212147 inline void from_json(const json & j, Ushort& x) {
1205312148 if (!j.is_object()) throw std::runtime_error("Expected object");
1205412149 if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -12174,6 +12269,7 @@ namespace quicktype {
1217412269 if (!j.is_object()) throw std::runtime_error("Expected object");
1217512270 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1217612271 x.set_dummy(j.at("dummy").get<int64_t>());
12272+ x.set_obj6_union(j.at("union").get<Union>());
1217712273 x.set_obj6_unsigned(j.at("unsigned").get<Unsigned>());
1217812274 x.set_obj6_using(j.at("using").get<Using>());
1217912275 x.set_obj6_virtual(j.at("virtual").get<Virtual>());
@@ -12183,6 +12279,10 @@ namespace quicktype {
1218312279 x.set_obj6_while(j.at("while").get<While>());
1218412280 x.set_obj6_xor(j.at("xor").get<Xor>());
1218512281 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
12282+ x.set_unmarshal_json(j.at("UnmarshalJSON").get<UnmarshalJson>());
12283+ x.set_unowned(j.at("unowned").get<Unowned>());
12284+ x.set_unsafe(j.at("unsafe").get<Unsafe>());
12285+ x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>());
1218612286 x.set_ushort(j.at("ushort").get<Ushort>());
1218712287 x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
1218812288 x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
@@ -12199,6 +12299,7 @@ namespace quicktype {
1219912299 inline void to_json(json & j, const Obj6 & x) {
1220012300 j = json::object();
1220112301 j["dummy"] = x.get_dummy();
12302+ j["union"] = x.get_obj6_union();
1220212303 j["unsigned"] = x.get_obj6_unsigned();
1220312304 j["using"] = x.get_obj6_using();
1220412305 j["virtual"] = x.get_obj6_virtual();
@@ -12208,6 +12309,10 @@ namespace quicktype {
1220812309 j["while"] = x.get_obj6_while();
1220912310 j["xor"] = x.get_obj6_xor();
1221012311 j["xor_eq"] = x.get_obj6_xor_eq();
12312+ j["UnmarshalJSON"] = x.get_unmarshal_json();
12313+ j["unowned"] = x.get_unowned();
12314+ j["unsafe"] = x.get_unsafe();
12315+ j["UseSerializers"] = x.get_use_serializers();
1221112316 j["ushort"] = x.get_ushort();
1221212317 j["Utf8JsonReader"] = x.get_utf8_json_reader();
1221312318 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
Mcrystaldefault / TopLevel.cr+128 −98
@@ -1248,6 +1248,9 @@ class Obj3
12481248
12491249 property list : List
12501250
1251+ @[JSON::Field(key: "LocalDate")]
1252+ property local_date : LocalDate
1253+
12511254 @[JSON::Field(key: "Locale")]
12521255 property locale : Locale
12531256
@@ -1277,9 +1280,6 @@ class Obj3
12771280
12781281 property newtonsoft : Newtonsoft
12791282
1280- @[JSON::Field(key: "NO")]
1281- property no : No
1282-
12831283 @[JSON::Field(key: "if")]
12841284 property obj3_if : If
12851285
@@ -1288,9 +1288,6 @@ class Obj3
12881288
12891289 @[JSON::Field(key: "module")]
12901290 property obj3_module : Module
1291-
1292- @[JSON::Field(key: "nil")]
1293- property obj3_nil : NilClass
12941291 end
12951292
12961293 class Goto
@@ -1592,6 +1589,13 @@ class List
15921589 property list : Int64
15931590 end
15941591
1592+class LocalDate
1593+ include JSON::Serializable
1594+
1595+ @[JSON::Field(key: "LocalDate")]
1596+ property local_date : Int64
1597+end
1598+
15951599 class Locale
15961600 include JSON::Serializable
15971601
@@ -1673,13 +1677,6 @@ class Newtonsoft
16731677 property newtonsoft : Int64
16741678 end
16751679
1676-class No
1677- include JSON::Serializable
1678-
1679- @[JSON::Field(key: "NO")]
1680- property no : Int64
1681-end
1682-
16831680 class If
16841681 include JSON::Serializable
16851682
@@ -1701,18 +1698,14 @@ class Module
17011698 property module_module : Int64
17021699 end
17031700
1704-class NilClass
1705- include JSON::Serializable
1706-
1707- @[JSON::Field(key: "nil")]
1708- property nil_nil : Int64
1709-end
1710-
17111701 class Obj4
17121702 include JSON::Serializable
17131703
17141704 property dummy : Int64
17151705
1706+ @[JSON::Field(key: "NO")]
1707+ property no : No
1708+
17161709 @[JSON::Field(key: "noSuchMethod")]
17171710 property no_such_method : NoSuchMethod
17181711
@@ -1747,6 +1740,9 @@ class Obj4
17471740
17481741 property number : NumberClass
17491742
1743+ @[JSON::Field(key: "nil")]
1744+ property obj4_nil : NilClass
1745+
17501746 @[JSON::Field(key: "none")]
17511747 property obj4_none : NoneClass
17521748
@@ -1779,6 +1775,12 @@ class Obj4
17791775 @[JSON::Field(key: "ObjectMapper")]
17801776 property object_mapper : ObjectMapper
17811777
1778+ @[JSON::Field(key: "OffsetDateTime")]
1779+ property offset_date_time : OffsetDateTime
1780+
1781+ @[JSON::Field(key: "OffsetTime")]
1782+ property offset_time : OffsetTime
1783+
17821784 property oneway : Oneway
17831785
17841786 property open : Open
@@ -1852,15 +1854,13 @@ class Obj4
18521854
18531855 @[JSON::Field(key: "runtimeType")]
18541856 property runtime_type : RuntimeType
1857+end
18551858
1856- property s : S
1857-
1858- property sbyte : Sbyte
1859-
1860- property sealed : Sealed
1859+class No
1860+ include JSON::Serializable
18611861
1862- @[JSON::Field(key: "SEL")]
1863- property sel : Sel
1862+ @[JSON::Field(key: "NO")]
1863+ property no : Int64
18641864 end
18651865
18661866 class NoSuchMethod
@@ -1953,6 +1953,13 @@ class NumberClass
19531953 property number : Int64
19541954 end
19551955
1956+class NilClass
1957+ include JSON::Serializable
1958+
1959+ @[JSON::Field(key: "nil")]
1960+ property nil_nil : Int64
1961+end
1962+
19561963 class NoneClass
19571964 include JSON::Serializable
19581965
@@ -2026,6 +2033,20 @@ class ObjectMapper
20262033 property object_mapper : Int64
20272034 end
20282035
2036+class OffsetDateTime
2037+ include JSON::Serializable
2038+
2039+ @[JSON::Field(key: "OffsetDateTime")]
2040+ property offset_date_time : Int64
2041+end
2042+
2043+class OffsetTime
2044+ include JSON::Serializable
2045+
2046+ @[JSON::Field(key: "OffsetTime")]
2047+ property offset_time : Int64
2048+end
2049+
20292050 class Oneway
20302051 include JSON::Serializable
20312052
@@ -2240,31 +2261,6 @@ class RuntimeType
22402261 property runtime_type : Int64
22412262 end
22422263
2243-class S
2244- include JSON::Serializable
2245-
2246- property s : Int64
2247-end
2248-
2249-class Sbyte
2250- include JSON::Serializable
2251-
2252- property sbyte : Int64
2253-end
2254-
2255-class Sealed
2256- include JSON::Serializable
2257-
2258- property sealed : Int64
2259-end
2260-
2261-class Sel
2262- include JSON::Serializable
2263-
2264- @[JSON::Field(key: "SEL")]
2265- property sel : Int64
2266-end
2267-
22682264 class Obj5
22692265 include JSON::Serializable
22702266
@@ -2303,9 +2299,6 @@ class Obj5
23032299 @[JSON::Field(key: "typeof")]
23042300 property obj5_typeof : Typeof
23052301
2306- @[JSON::Field(key: "union")]
2307- property obj5_union : UnionClass
2308-
23092302 @[JSON::Field(key: "PrimitiveKind")]
23102303 property primitive_kind : PrimitiveKind
23112304
@@ -2318,6 +2311,15 @@ class Obj5
23182311 @[JSON::Field(key: "type")]
23192312 property purple_type : TypeClass
23202313
2314+ property s : S
2315+
2316+ property sbyte : Sbyte
2317+
2318+ property sealed : Sealed
2319+
2320+ @[JSON::Field(key: "SEL")]
2321+ property sel : Sel
2322+
23212323 @[JSON::Field(key: "Sendable")]
23222324 property sendable : Sendable
23232325
@@ -2420,16 +2422,6 @@ class Obj5
24202422 property unchecked : Unchecked
24212423
24222424 property undefined : Undefined
2423-
2424- @[JSON::Field(key: "UnmarshalJSON")]
2425- property unmarshal_json : UnmarshalJson
2426-
2427- property unowned : Unowned
2428-
2429- property unsafe : Unsafe
2430-
2431- @[JSON::Field(key: "UseSerializers")]
2432- property use_serializers : UseSerializers
24332425 end
24342426
24352427 class KSerializer
@@ -2509,13 +2501,6 @@ class Typeof
25092501 property typeof_typeof : Int64
25102502 end
25112503
2512-class UnionClass
2513- include JSON::Serializable
2514-
2515- @[JSON::Field(key: "union")]
2516- property union_union : Int64
2517-end
2518-
25192504 class PrimitiveKind
25202505 include JSON::Serializable
25212506
@@ -2544,6 +2529,31 @@ class TypeClass
25442529 property type_type : Int64
25452530 end
25462531
2532+class S
2533+ include JSON::Serializable
2534+
2535+ property s : Int64
2536+end
2537+
2538+class Sbyte
2539+ include JSON::Serializable
2540+
2541+ property sbyte : Int64
2542+end
2543+
2544+class Sealed
2545+ include JSON::Serializable
2546+
2547+ property sealed : Int64
2548+end
2549+
2550+class Sel
2551+ include JSON::Serializable
2552+
2553+ @[JSON::Field(key: "SEL")]
2554+ property sel : Int64
2555+end
2556+
25472557 class Sendable
25482558 include JSON::Serializable
25492559
@@ -2827,37 +2837,14 @@ class Undefined
28272837 property undefined : Int64
28282838 end
28292839
2830-class UnmarshalJson
2831- include JSON::Serializable
2832-
2833- @[JSON::Field(key: "UnmarshalJSON")]
2834- property unmarshal_json : Int64
2835-end
2836-
2837-class Unowned
2838- include JSON::Serializable
2839-
2840- property unowned : Int64
2841-end
2842-
2843-class Unsafe
2844- include JSON::Serializable
2845-
2846- property unsafe : Int64
2847-end
2848-
2849-class UseSerializers
2850- include JSON::Serializable
2851-
2852- @[JSON::Field(key: "UseSerializers")]
2853- property use_serializers : Int64
2854-end
2855-
28562840 class Obj6
28572841 include JSON::Serializable
28582842
28592843 property dummy : Int64
28602844
2845+ @[JSON::Field(key: "union")]
2846+ property obj6_union : UnionClass
2847+
28612848 @[JSON::Field(key: "while")]
28622849 property obj6_while : While
28632850
@@ -2867,8 +2854,18 @@ class Obj6
28672854 @[JSON::Field(key: "yield")]
28682855 property obj6_yield : Yield
28692856
2857+ @[JSON::Field(key: "UnmarshalJSON")]
2858+ property unmarshal_json : UnmarshalJson
2859+
2860+ property unowned : Unowned
2861+
2862+ property unsafe : Unsafe
2863+
28702864 property unsigned : Unsigned
28712865
2866+ @[JSON::Field(key: "UseSerializers")]
2867+ property use_serializers : UseSerializers
2868+
28722869 property ushort : Ushort
28732870
28742871 property using : Using
@@ -2907,6 +2904,13 @@ class Obj6
29072904 property yes : Yes
29082905 end
29092906
2907+class UnionClass
2908+ include JSON::Serializable
2909+
2910+ @[JSON::Field(key: "union")]
2911+ property union_union : Int64
2912+end
2913+
29102914 class While
29112915 include JSON::Serializable
29122916
@@ -2928,12 +2932,38 @@ class Yield
29282932 property yield_yield : Int64
29292933 end
29302934
2935+class UnmarshalJson
2936+ include JSON::Serializable
2937+
2938+ @[JSON::Field(key: "UnmarshalJSON")]
2939+ property unmarshal_json : Int64
2940+end
2941+
2942+class Unowned
2943+ include JSON::Serializable
2944+
2945+ property unowned : Int64
2946+end
2947+
2948+class Unsafe
2949+ include JSON::Serializable
2950+
2951+ property unsafe : Int64
2952+end
2953+
29312954 class Unsigned
29322955 include JSON::Serializable
29332956
29342957 property unsigned : Int64
29352958 end
29362959
2960+class UseSerializers
2961+ include JSON::Serializable
2962+
2963+ @[JSON::Field(key: "UseSerializers")]
2964+ property use_serializers : Int64
2965+end
2966+
29372967 class Ushort
29382968 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+120 −93
@@ -1363,6 +1363,9 @@ namespace QuickType
13631363 [JsonProperty("list", Required = Required.Always)]
13641364 public List List { get; set; }
13651365
1366+ [JsonProperty("LocalDate", Required = Required.Always)]
1367+ public LocalDate LocalDate { get; set; }
1368+
13661369 [JsonProperty("Locale", Required = Required.Always)]
13671370 public Locale Locale { get; set; }
13681371
@@ -1404,12 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("newtonsoft", Required = Required.Always)]
14061409 public NewtonsoftClass Newtonsoft { get; set; }
1407-
1408- [JsonProperty("nil", Required = Required.Always)]
1409- public Nil Nil { get; set; }
1410-
1411- [JsonProperty("NO", Required = Required.Always)]
1412- public No No { get; set; }
14131410 }
14141411
14151412 public partial record Goto
@@ -1706,6 +1703,12 @@ namespace QuickType
17061703 public long ListList { get; set; }
17071704 }
17081705
1706+ public partial record LocalDate
1707+ {
1708+ [JsonProperty("LocalDate", Required = Required.Always)]
1709+ public long LocalDateLocalDate { get; set; }
1710+ }
1711+
17091712 public partial record Locale
17101713 {
17111714 [JsonProperty("Locale", Required = Required.Always)]
@@ -1790,23 +1793,17 @@ namespace QuickType
17901793 public long Newtonsoft { get; set; }
17911794 }
17921795
1793- public partial record Nil
1794- {
1795- [JsonProperty("nil", Required = Required.Always)]
1796- public long NilNil { get; set; }
1797- }
1798-
1799- public partial record No
1800- {
1801- [JsonProperty("NO", Required = Required.Always)]
1802- public long NoNo { get; set; }
1803- }
1804-
18051796 public partial record Obj4
18061797 {
18071798 [JsonProperty("dummy", Required = Required.Always)]
18081799 public long Dummy { get; set; }
18091800
1801+ [JsonProperty("nil", Required = Required.Always)]
1802+ public Nil Nil { get; set; }
1803+
1804+ [JsonProperty("NO", Required = Required.Always)]
1805+ public No No { get; set; }
1806+
18101807 [JsonProperty("noSuchMethod", Required = Required.Always)]
18111808 public NoSuchMethod NoSuchMethod { get; set; }
18121809
@@ -1873,6 +1870,12 @@ namespace QuickType
18731870 [JsonProperty("of", Required = Required.Always)]
18741871 public Of Of { get; set; }
18751872
1873+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1874+ public OffsetDateTime OffsetDateTime { get; set; }
1875+
1876+ [JsonProperty("OffsetTime", Required = Required.Always)]
1877+ public OffsetTime OffsetTime { get; set; }
1878+
18761879 [JsonProperty("oneway", Required = Required.Always)]
18771880 public Oneway Oneway { get; set; }
18781881
@@ -1986,18 +1989,18 @@ namespace QuickType
19861989
19871990 [JsonProperty("runtimeType", Required = Required.Always)]
19881991 public RuntimeType RuntimeType { get; set; }
1992+ }
19891993
1990- [JsonProperty("s", Required = Required.Always)]
1991- public S S { get; set; }
1992-
1993- [JsonProperty("sbyte", Required = Required.Always)]
1994- public Sbyte Sbyte { get; set; }
1995-
1996- [JsonProperty("sealed", Required = Required.Always)]
1997- public Sealed Sealed { get; set; }
1994+ public partial record Nil
1995+ {
1996+ [JsonProperty("nil", Required = Required.Always)]
1997+ public long NilNil { get; set; }
1998+ }
19981999
1999- [JsonProperty("SEL", Required = Required.Always)]
2000- public Sel Sel { get; set; }
2000+ public partial record No
2001+ {
2002+ [JsonProperty("NO", Required = Required.Always)]
2003+ public long NoNo { get; set; }
20012004 }
20022005
20032006 public partial record NoSuchMethod
@@ -2132,6 +2135,18 @@ namespace QuickType
21322135 public long OfOf { get; set; }
21332136 }
21342137
2138+ public partial record OffsetDateTime
2139+ {
2140+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2141+ public long OffsetDateTimeOffsetDateTime { get; set; }
2142+ }
2143+
2144+ public partial record OffsetTime
2145+ {
2146+ [JsonProperty("OffsetTime", Required = Required.Always)]
2147+ public long OffsetTimeOffsetTime { get; set; }
2148+ }
2149+
21352150 public partial record Oneway
21362151 {
21372152 [JsonProperty("oneway", Required = Required.Always)]
@@ -2360,30 +2375,6 @@ namespace QuickType
23602375 public long RuntimeTypeRuntimeType { get; set; }
23612376 }
23622377
2363- public partial record S
2364- {
2365- [JsonProperty("s", Required = Required.Always)]
2366- public long SS { get; set; }
2367- }
2368-
2369- public partial record Sbyte
2370- {
2371- [JsonProperty("sbyte", Required = Required.Always)]
2372- public long SbyteSbyte { get; set; }
2373- }
2374-
2375- public partial record Sealed
2376- {
2377- [JsonProperty("sealed", Required = Required.Always)]
2378- public long SealedSealed { get; set; }
2379- }
2380-
2381- public partial record Sel
2382- {
2383- [JsonProperty("SEL", Required = Required.Always)]
2384- public long SelSel { get; set; }
2385- }
2386-
23872378 public partial record Obj5
23882379 {
23892380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2410,6 +2401,18 @@ namespace QuickType
24102401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24112402 public PrimitiveKind PrimitiveKind { get; set; }
24122403
2404+ [JsonProperty("s", Required = Required.Always)]
2405+ public S S { get; set; }
2406+
2407+ [JsonProperty("sbyte", Required = Required.Always)]
2408+ public Sbyte Sbyte { get; set; }
2409+
2410+ [JsonProperty("sealed", Required = Required.Always)]
2411+ public Sealed Sealed { get; set; }
2412+
2413+ [JsonProperty("SEL", Required = Required.Always)]
2414+ public Sel Sel { get; set; }
2415+
24132416 [JsonProperty("select", Required = Required.Always)]
24142417 public Select Select { get; set; }
24152418
@@ -2568,21 +2571,6 @@ namespace QuickType
25682571
25692572 [JsonProperty("undefined", Required = Required.Always)]
25702573 public Undefined Undefined { get; set; }
2571-
2572- [JsonProperty("union", Required = Required.Always)]
2573- public Union Union { get; set; }
2574-
2575- [JsonProperty("UnmarshalJSON", Required = Required.Always)]
2576- public UnmarshalJson UnmarshalJson { get; set; }
2577-
2578- [JsonProperty("unowned", Required = Required.Always)]
2579- public Unowned Unowned { get; set; }
2580-
2581- [JsonProperty("unsafe", Required = Required.Always)]
2582- public Unsafe Unsafe { get; set; }
2583-
2584- [JsonProperty("UseSerializers", Required = Required.Always)]
2585- public UseSerializers UseSerializers { get; set; }
25862574 }
25872575
25882576 public partial record KSerializer
@@ -2627,6 +2615,30 @@ namespace QuickType
26272615 public long PrimitiveKindPrimitiveKind { get; set; }
26282616 }
26292617
2618+ public partial record S
2619+ {
2620+ [JsonProperty("s", Required = Required.Always)]
2621+ public long SS { get; set; }
2622+ }
2623+
2624+ public partial record Sbyte
2625+ {
2626+ [JsonProperty("sbyte", Required = Required.Always)]
2627+ public long SbyteSbyte { get; set; }
2628+ }
2629+
2630+ public partial record Sealed
2631+ {
2632+ [JsonProperty("sealed", Required = Required.Always)]
2633+ public long SealedSealed { get; set; }
2634+ }
2635+
2636+ public partial record Sel
2637+ {
2638+ [JsonProperty("SEL", Required = Required.Always)]
2639+ public long SelSel { get; set; }
2640+ }
2641+
26302642 public partial record Select
26312643 {
26322644 [JsonProperty("select", Required = Required.Always)]
@@ -2945,44 +2957,29 @@ namespace QuickType
29452957 public long UndefinedUndefined { get; set; }
29462958 }
29472959
2948- public partial record Union
2960+ public partial record Obj6
29492961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29502965 [JsonProperty("union", Required = Required.Always)]
2951- public long UnionUnion { get; set; }
2952- }
2966+ public Union Union { get; set; }
29532967
2954- public partial record UnmarshalJson
2955- {
29562968 [JsonProperty("UnmarshalJSON", Required = Required.Always)]
2957- public long UnmarshalJsonUnmarshalJson { get; set; }
2958- }
2969+ public UnmarshalJson UnmarshalJson { get; set; }
29592970
2960- public partial record Unowned
2961- {
29622971 [JsonProperty("unowned", Required = Required.Always)]
2963- public long UnownedUnowned { get; set; }
2964- }
2972+ public Unowned Unowned { get; set; }
29652973
2966- public partial record Unsafe
2967- {
29682974 [JsonProperty("unsafe", Required = Required.Always)]
2969- public long UnsafeUnsafe { get; set; }
2970- }
2971-
2972- public partial record UseSerializers
2973- {
2974- [JsonProperty("UseSerializers", Required = Required.Always)]
2975- public long UseSerializersUseSerializers { get; set; }
2976- }
2977-
2978- public partial record Obj6
2979- {
2980- [JsonProperty("dummy", Required = Required.Always)]
2981- public long Dummy { get; set; }
2975+ public Unsafe Unsafe { get; set; }
29822976
29832977 [JsonProperty("unsigned", Required = Required.Always)]
29842978 public Unsigned Unsigned { get; set; }
29852979
2980+ [JsonProperty("UseSerializers", Required = Required.Always)]
2981+ public UseSerializers UseSerializers { get; set; }
2982+
29862983 [JsonProperty("ushort", Required = Required.Always)]
29872984 public Ushort Ushort { get; set; }
29882985
@@ -3041,12 +3038,42 @@ namespace QuickType
30413038 public Yield Yield { get; set; }
30423039 }
30433040
3041+ public partial record Union
3042+ {
3043+ [JsonProperty("union", Required = Required.Always)]
3044+ public long UnionUnion { get; set; }
3045+ }
3046+
3047+ public partial record UnmarshalJson
3048+ {
3049+ [JsonProperty("UnmarshalJSON", Required = Required.Always)]
3050+ public long UnmarshalJsonUnmarshalJson { get; set; }
3051+ }
3052+
3053+ public partial record Unowned
3054+ {
3055+ [JsonProperty("unowned", Required = Required.Always)]
3056+ public long UnownedUnowned { get; set; }
3057+ }
3058+
3059+ public partial record Unsafe
3060+ {
3061+ [JsonProperty("unsafe", Required = Required.Always)]
3062+ public long UnsafeUnsafe { get; set; }
3063+ }
3064+
30443065 public partial record Unsigned
30453066 {
30463067 [JsonProperty("unsigned", Required = Required.Always)]
30473068 public long UnsignedUnsigned { get; set; }
30483069 }
30493070
3071+ public partial record UseSerializers
3072+ {
3073+ [JsonProperty("UseSerializers", Required = Required.Always)]
3074+ public long UseSerializersUseSerializers { get; set; }
3075+ }
3076+
30503077 public partial record Ushort
30513078 {
30523079 [JsonProperty("ushort", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+142 −109
@@ -1675,6 +1675,10 @@ namespace QuickType
16751675 [JsonPropertyName("list")]
16761676 public List List { get; set; }
16771677
1678+ [JsonRequired]
1679+ [JsonPropertyName("LocalDate")]
1680+ public LocalDate LocalDate { get; set; }
1681+
16781682 [JsonRequired]
16791683 [JsonPropertyName("Locale")]
16801684 public Locale Locale { get; set; }
@@ -1730,14 +1734,6 @@ namespace QuickType
17301734 [JsonRequired]
17311735 [JsonPropertyName("newtonsoft")]
17321736 public Newtonsoft Newtonsoft { get; set; }
1733-
1734- [JsonRequired]
1735- [JsonPropertyName("nil")]
1736- public Nil Nil { get; set; }
1737-
1738- [JsonRequired]
1739- [JsonPropertyName("NO")]
1740- public No No { get; set; }
17411737 }
17421738
17431739 public partial class Goto
@@ -2083,6 +2079,13 @@ namespace QuickType
20832079 public long ListList { get; set; }
20842080 }
20852081
2082+ public partial class LocalDate
2083+ {
2084+ [JsonRequired]
2085+ [JsonPropertyName("LocalDate")]
2086+ public long LocalDateLocalDate { get; set; }
2087+ }
2088+
20862089 public partial class Locale
20872090 {
20882091 [JsonRequired]
@@ -2181,25 +2184,19 @@ namespace QuickType
21812184 public long NewtonsoftNewtonsoft { get; set; }
21822185 }
21832186
2184- public partial class Nil
2187+ public partial class Obj4
21852188 {
21862189 [JsonRequired]
2187- [JsonPropertyName("nil")]
2188- public long NilNil { get; set; }
2189- }
2190+ [JsonPropertyName("dummy")]
2191+ public long Dummy { get; set; }
21902192
2191- public partial class No
2192- {
21932193 [JsonRequired]
2194- [JsonPropertyName("NO")]
2195- public long NoNo { get; set; }
2196- }
2194+ [JsonPropertyName("nil")]
2195+ public Nil Nil { get; set; }
21972196
2198- public partial class Obj4
2199- {
22002197 [JsonRequired]
2201- [JsonPropertyName("dummy")]
2202- public long Dummy { get; set; }
2198+ [JsonPropertyName("NO")]
2199+ public No No { get; set; }
22032200
22042201 [JsonRequired]
22052202 [JsonPropertyName("noSuchMethod")]
@@ -2285,6 +2282,14 @@ namespace QuickType
22852282 [JsonPropertyName("of")]
22862283 public Of Of { get; set; }
22872284
2285+ [JsonRequired]
2286+ [JsonPropertyName("OffsetDateTime")]
2287+ public OffsetDateTime OffsetDateTime { get; set; }
2288+
2289+ [JsonRequired]
2290+ [JsonPropertyName("OffsetTime")]
2291+ public OffsetTime OffsetTime { get; set; }
2292+
22882293 [JsonRequired]
22892294 [JsonPropertyName("oneway")]
22902295 public Oneway Oneway { get; set; }
@@ -2440,22 +2445,20 @@ namespace QuickType
24402445 [JsonRequired]
24412446 [JsonPropertyName("runtimeType")]
24422447 public RuntimeType RuntimeType { get; set; }
2448+ }
24432449
2450+ public partial class Nil
2451+ {
24442452 [JsonRequired]
2445- [JsonPropertyName("s")]
2446- public S S { get; set; }
2447-
2448- [JsonRequired]
2449- [JsonPropertyName("sbyte")]
2450- public Sbyte Sbyte { get; set; }
2451-
2452- [JsonRequired]
2453- [JsonPropertyName("sealed")]
2454- public Sealed Sealed { get; set; }
2453+ [JsonPropertyName("nil")]
2454+ public long NilNil { get; set; }
2455+ }
24552456
2457+ public partial class No
2458+ {
24562459 [JsonRequired]
2457- [JsonPropertyName("SEL")]
2458- public Sel Sel { get; set; }
2460+ [JsonPropertyName("NO")]
2461+ public long NoNo { get; set; }
24592462 }
24602463
24612464 public partial class NoSuchMethod
@@ -2605,6 +2608,20 @@ namespace QuickType
26052608 public long OfOf { get; set; }
26062609 }
26072610
2611+ public partial class OffsetDateTime
2612+ {
2613+ [JsonRequired]
2614+ [JsonPropertyName("OffsetDateTime")]
2615+ public long OffsetDateTimeOffsetDateTime { get; set; }
2616+ }
2617+
2618+ public partial class OffsetTime
2619+ {
2620+ [JsonRequired]
2621+ [JsonPropertyName("OffsetTime")]
2622+ public long OffsetTimeOffsetTime { get; set; }
2623+ }
2624+
26082625 public partial class Oneway
26092626 {
26102627 [JsonRequired]
@@ -2878,34 +2895,6 @@ namespace QuickType
28782895 public long RuntimeTypeRuntimeType { get; set; }
28792896 }
28802897
2881- public partial class S
2882- {
2883- [JsonRequired]
2884- [JsonPropertyName("s")]
2885- public long SS { get; set; }
2886- }
2887-
2888- public partial class Sbyte
2889- {
2890- [JsonRequired]
2891- [JsonPropertyName("sbyte")]
2892- public long SbyteSbyte { get; set; }
2893- }
2894-
2895- public partial class Sealed
2896- {
2897- [JsonRequired]
2898- [JsonPropertyName("sealed")]
2899- public long SealedSealed { get; set; }
2900- }
2901-
2902- public partial class Sel
2903- {
2904- [JsonRequired]
2905- [JsonPropertyName("SEL")]
2906- public long SelSel { get; set; }
2907- }
2908-
29092898 public partial class Obj5
29102899 {
29112900 [JsonRequired]
@@ -2940,6 +2929,22 @@ namespace QuickType
29402929 [JsonPropertyName("PrimitiveKind")]
29412930 public PrimitiveKind PrimitiveKind { get; set; }
29422931
2932+ [JsonRequired]
2933+ [JsonPropertyName("s")]
2934+ public S S { get; set; }
2935+
2936+ [JsonRequired]
2937+ [JsonPropertyName("sbyte")]
2938+ public Sbyte Sbyte { get; set; }
2939+
2940+ [JsonRequired]
2941+ [JsonPropertyName("sealed")]
2942+ public Sealed Sealed { get; set; }
2943+
2944+ [JsonRequired]
2945+ [JsonPropertyName("SEL")]
2946+ public Sel Sel { get; set; }
2947+
29432948 [JsonRequired]
29442949 [JsonPropertyName("select")]
29452950 public Select Select { get; set; }
@@ -3151,26 +3156,6 @@ namespace QuickType
31513156 [JsonRequired]
31523157 [JsonPropertyName("undefined")]
31533158 public Undefined Undefined { get; set; }
3154-
3155- [JsonRequired]
3156- [JsonPropertyName("union")]
3157- public Union Union { get; set; }
3158-
3159- [JsonRequired]
3160- [JsonPropertyName("UnmarshalJSON")]
3161- public UnmarshalJson UnmarshalJson { get; set; }
3162-
3163- [JsonRequired]
3164- [JsonPropertyName("unowned")]
3165- public Unowned Unowned { get; set; }
3166-
3167- [JsonRequired]
3168- [JsonPropertyName("unsafe")]
3169- public Unsafe Unsafe { get; set; }
3170-
3171- [JsonRequired]
3172- [JsonPropertyName("UseSerializers")]
3173- public UseSerializers UseSerializers { get; set; }
31743159 }
31753160
31763161 public partial class KSerializer
@@ -3222,6 +3207,34 @@ namespace QuickType
32223207 public long PrimitiveKindPrimitiveKind { get; set; }
32233208 }
32243209
3210+ public partial class S
3211+ {
3212+ [JsonRequired]
3213+ [JsonPropertyName("s")]
3214+ public long SS { get; set; }
3215+ }
3216+
3217+ public partial class Sbyte
3218+ {
3219+ [JsonRequired]
3220+ [JsonPropertyName("sbyte")]
3221+ public long SbyteSbyte { get; set; }
3222+ }
3223+
3224+ public partial class Sealed
3225+ {
3226+ [JsonRequired]
3227+ [JsonPropertyName("sealed")]
3228+ public long SealedSealed { get; set; }
3229+ }
3230+
3231+ public partial class Sel
3232+ {
3233+ [JsonRequired]
3234+ [JsonPropertyName("SEL")]
3235+ public long SelSel { get; set; }
3236+ }
3237+
32253238 public partial class Select
32263239 {
32273240 [JsonRequired]
@@ -3593,51 +3606,36 @@ namespace QuickType
35933606 public long UndefinedUndefined { get; set; }
35943607 }
35953608
3596- public partial class Union
3609+ public partial class Obj6
35973610 {
3611+ [JsonRequired]
3612+ [JsonPropertyName("dummy")]
3613+ public long Dummy { get; set; }
3614+
35983615 [JsonRequired]
35993616 [JsonPropertyName("union")]
3600- public long UnionUnion { get; set; }
3601- }
3617+ public Union Union { get; set; }
36023618
3603- public partial class UnmarshalJson
3604- {
36053619 [JsonRequired]
36063620 [JsonPropertyName("UnmarshalJSON")]
3607- public long UnmarshalJsonUnmarshalJson { get; set; }
3608- }
3621+ public UnmarshalJson UnmarshalJson { get; set; }
36093622
3610- public partial class Unowned
3611- {
36123623 [JsonRequired]
36133624 [JsonPropertyName("unowned")]
3614- public long UnownedUnowned { get; set; }
3615- }
3625+ public Unowned Unowned { get; set; }
36163626
3617- public partial class Unsafe
3618- {
36193627 [JsonRequired]
36203628 [JsonPropertyName("unsafe")]
3621- public long UnsafeUnsafe { get; set; }
3622- }
3623-
3624- public partial class UseSerializers
3625- {
3626- [JsonRequired]
3627- [JsonPropertyName("UseSerializers")]
3628- public long UseSerializersUseSerializers { get; set; }
3629- }
3630-
3631- public partial class Obj6
3632- {
3633- [JsonRequired]
3634- [JsonPropertyName("dummy")]
3635- public long Dummy { get; set; }
3629+ public Unsafe Unsafe { get; set; }
36363630
36373631 [JsonRequired]
36383632 [JsonPropertyName("unsigned")]
36393633 public Unsigned Unsigned { get; set; }
36403634
3635+ [JsonRequired]
3636+ [JsonPropertyName("UseSerializers")]
3637+ public UseSerializers UseSerializers { get; set; }
3638+
36413639 [JsonRequired]
36423640 [JsonPropertyName("ushort")]
36433641 public Ushort Ushort { get; set; }
@@ -3715,6 +3713,34 @@ namespace QuickType
37153713 public Yield Yield { get; set; }
37163714 }
37173715
3716+ public partial class Union
3717+ {
3718+ [JsonRequired]
3719+ [JsonPropertyName("union")]
3720+ public long UnionUnion { get; set; }
3721+ }
3722+
3723+ public partial class UnmarshalJson
3724+ {
3725+ [JsonRequired]
3726+ [JsonPropertyName("UnmarshalJSON")]
3727+ public long UnmarshalJsonUnmarshalJson { get; set; }
3728+ }
3729+
3730+ public partial class Unowned
3731+ {
3732+ [JsonRequired]
3733+ [JsonPropertyName("unowned")]
3734+ public long UnownedUnowned { get; set; }
3735+ }
3736+
3737+ public partial class Unsafe
3738+ {
3739+ [JsonRequired]
3740+ [JsonPropertyName("unsafe")]
3741+ public long UnsafeUnsafe { get; set; }
3742+ }
3743+
37183744 public partial class Unsigned
37193745 {
37203746 [JsonRequired]
@@ -3722,6 +3748,13 @@ namespace QuickType
37223748 public long UnsignedUnsigned { get; set; }
37233749 }
37243750
3751+ public partial class UseSerializers
3752+ {
3753+ [JsonRequired]
3754+ [JsonPropertyName("UseSerializers")]
3755+ public long UseSerializersUseSerializers { get; set; }
3756+ }
3757+
37253758 public partial class Ushort
37263759 {
37273760 [JsonRequired]
Mcsharpdefault / QuickType.cs+120 −93
@@ -1363,6 +1363,9 @@ namespace QuickType
13631363 [JsonProperty("list", Required = Required.Always)]
13641364 public List List { get; set; }
13651365
1366+ [JsonProperty("LocalDate", Required = Required.Always)]
1367+ public LocalDate LocalDate { get; set; }
1368+
13661369 [JsonProperty("Locale", Required = Required.Always)]
13671370 public Locale Locale { get; set; }
13681371
@@ -1404,12 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("newtonsoft", Required = Required.Always)]
14061409 public NewtonsoftClass Newtonsoft { get; set; }
1407-
1408- [JsonProperty("nil", Required = Required.Always)]
1409- public Nil Nil { get; set; }
1410-
1411- [JsonProperty("NO", Required = Required.Always)]
1412- public No No { get; set; }
14131410 }
14141411
14151412 public partial class Goto
@@ -1706,6 +1703,12 @@ namespace QuickType
17061703 public long ListList { get; set; }
17071704 }
17081705
1706+ public partial class LocalDate
1707+ {
1708+ [JsonProperty("LocalDate", Required = Required.Always)]
1709+ public long LocalDateLocalDate { get; set; }
1710+ }
1711+
17091712 public partial class Locale
17101713 {
17111714 [JsonProperty("Locale", Required = Required.Always)]
@@ -1790,23 +1793,17 @@ namespace QuickType
17901793 public long Newtonsoft { get; set; }
17911794 }
17921795
1793- public partial class Nil
1794- {
1795- [JsonProperty("nil", Required = Required.Always)]
1796- public long NilNil { get; set; }
1797- }
1798-
1799- public partial class No
1800- {
1801- [JsonProperty("NO", Required = Required.Always)]
1802- public long NoNo { get; set; }
1803- }
1804-
18051796 public partial class Obj4
18061797 {
18071798 [JsonProperty("dummy", Required = Required.Always)]
18081799 public long Dummy { get; set; }
18091800
1801+ [JsonProperty("nil", Required = Required.Always)]
1802+ public Nil Nil { get; set; }
1803+
1804+ [JsonProperty("NO", Required = Required.Always)]
1805+ public No No { get; set; }
1806+
18101807 [JsonProperty("noSuchMethod", Required = Required.Always)]
18111808 public NoSuchMethod NoSuchMethod { get; set; }
18121809
@@ -1870,6 +1867,12 @@ namespace QuickType
18701867 [JsonProperty("of", Required = Required.Always)]
18711868 public Of Of { get; set; }
18721869
1870+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1871+ public OffsetDateTime OffsetDateTime { get; set; }
1872+
1873+ [JsonProperty("OffsetTime", Required = Required.Always)]
1874+ public OffsetTime OffsetTime { get; set; }
1875+
18731876 [JsonProperty("oneway", Required = Required.Always)]
18741877 public Oneway Oneway { get; set; }
18751878
@@ -1986,18 +1989,18 @@ namespace QuickType
19861989
19871990 [JsonProperty("runtimeType", Required = Required.Always)]
19881991 public RuntimeType RuntimeType { get; set; }
1992+ }
19891993
1990- [JsonProperty("s", Required = Required.Always)]
1991- public S S { get; set; }
1992-
1993- [JsonProperty("sbyte", Required = Required.Always)]
1994- public Sbyte Sbyte { get; set; }
1995-
1996- [JsonProperty("sealed", Required = Required.Always)]
1997- public Sealed Sealed { get; set; }
1994+ public partial class Nil
1995+ {
1996+ [JsonProperty("nil", Required = Required.Always)]
1997+ public long NilNil { get; set; }
1998+ }
19981999
1999- [JsonProperty("SEL", Required = Required.Always)]
2000- public Sel Sel { get; set; }
2000+ public partial class No
2001+ {
2002+ [JsonProperty("NO", Required = Required.Always)]
2003+ public long NoNo { get; set; }
20012004 }
20022005
20032006 public partial class NoSuchMethod
@@ -2126,6 +2129,18 @@ namespace QuickType
21262129 public long OfOf { get; set; }
21272130 }
21282131
2132+ public partial class OffsetDateTime
2133+ {
2134+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2135+ public long OffsetDateTimeOffsetDateTime { get; set; }
2136+ }
2137+
2138+ public partial class OffsetTime
2139+ {
2140+ [JsonProperty("OffsetTime", Required = Required.Always)]
2141+ public long OffsetTimeOffsetTime { get; set; }
2142+ }
2143+
21292144 public partial class Oneway
21302145 {
21312146 [JsonProperty("oneway", Required = Required.Always)]
@@ -2360,30 +2375,6 @@ namespace QuickType
23602375 public long RuntimeTypeRuntimeType { get; set; }
23612376 }
23622377
2363- public partial class S
2364- {
2365- [JsonProperty("s", Required = Required.Always)]
2366- public long SS { get; set; }
2367- }
2368-
2369- public partial class Sbyte
2370- {
2371- [JsonProperty("sbyte", Required = Required.Always)]
2372- public long SbyteSbyte { get; set; }
2373- }
2374-
2375- public partial class Sealed
2376- {
2377- [JsonProperty("sealed", Required = Required.Always)]
2378- public long SealedSealed { get; set; }
2379- }
2380-
2381- public partial class Sel
2382- {
2383- [JsonProperty("SEL", Required = Required.Always)]
2384- public long SelSel { get; set; }
2385- }
2386-
23872378 public partial class Obj5
23882379 {
23892380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2410,6 +2401,18 @@ namespace QuickType
24102401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24112402 public PrimitiveKind PrimitiveKind { get; set; }
24122403
2404+ [JsonProperty("s", Required = Required.Always)]
2405+ public S S { get; set; }
2406+
2407+ [JsonProperty("sbyte", Required = Required.Always)]
2408+ public Sbyte Sbyte { get; set; }
2409+
2410+ [JsonProperty("sealed", Required = Required.Always)]
2411+ public Sealed Sealed { get; set; }
2412+
2413+ [JsonProperty("SEL", Required = Required.Always)]
2414+ public Sel Sel { get; set; }
2415+
24132416 [JsonProperty("select", Required = Required.Always)]
24142417 public Select Select { get; set; }
24152418
@@ -2568,21 +2571,6 @@ namespace QuickType
25682571
25692572 [JsonProperty("undefined", Required = Required.Always)]
25702573 public Undefined Undefined { get; set; }
2571-
2572- [JsonProperty("union", Required = Required.Always)]
2573- public Union Union { get; set; }
2574-
2575- [JsonProperty("UnmarshalJSON", Required = Required.Always)]
2576- public UnmarshalJson UnmarshalJson { get; set; }
2577-
2578- [JsonProperty("unowned", Required = Required.Always)]
2579- public Unowned Unowned { get; set; }
2580-
2581- [JsonProperty("unsafe", Required = Required.Always)]
2582- public Unsafe Unsafe { get; set; }
2583-
2584- [JsonProperty("UseSerializers", Required = Required.Always)]
2585- public UseSerializers UseSerializers { get; set; }
25862574 }
25872575
25882576 public partial class KSerializer
@@ -2627,6 +2615,30 @@ namespace QuickType
26272615 public long PrimitiveKindPrimitiveKind { get; set; }
26282616 }
26292617
2618+ public partial class S
2619+ {
2620+ [JsonProperty("s", Required = Required.Always)]
2621+ public long SS { get; set; }
2622+ }
2623+
2624+ public partial class Sbyte
2625+ {
2626+ [JsonProperty("sbyte", Required = Required.Always)]
2627+ public long SbyteSbyte { get; set; }
2628+ }
2629+
2630+ public partial class Sealed
2631+ {
2632+ [JsonProperty("sealed", Required = Required.Always)]
2633+ public long SealedSealed { get; set; }
2634+ }
2635+
2636+ public partial class Sel
2637+ {
2638+ [JsonProperty("SEL", Required = Required.Always)]
2639+ public long SelSel { get; set; }
2640+ }
2641+
26302642 public partial class Select
26312643 {
26322644 [JsonProperty("select", Required = Required.Always)]
@@ -2945,44 +2957,29 @@ namespace QuickType
29452957 public long UndefinedUndefined { get; set; }
29462958 }
29472959
2948- public partial class Union
2960+ public partial class Obj6
29492961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29502965 [JsonProperty("union", Required = Required.Always)]
2951- public long UnionUnion { get; set; }
2952- }
2966+ public Union Union { get; set; }
29532967
2954- public partial class UnmarshalJson
2955- {
29562968 [JsonProperty("UnmarshalJSON", Required = Required.Always)]
2957- public long UnmarshalJsonUnmarshalJson { get; set; }
2958- }
2969+ public UnmarshalJson UnmarshalJson { get; set; }
29592970
2960- public partial class Unowned
2961- {
29622971 [JsonProperty("unowned", Required = Required.Always)]
2963- public long UnownedUnowned { get; set; }
2964- }
2972+ public Unowned Unowned { get; set; }
29652973
2966- public partial class Unsafe
2967- {
29682974 [JsonProperty("unsafe", Required = Required.Always)]
2969- public long UnsafeUnsafe { get; set; }
2970- }
2971-
2972- public partial class UseSerializers
2973- {
2974- [JsonProperty("UseSerializers", Required = Required.Always)]
2975- public long UseSerializersUseSerializers { get; set; }
2976- }
2977-
2978- public partial class Obj6
2979- {
2980- [JsonProperty("dummy", Required = Required.Always)]
2981- public long Dummy { get; set; }
2975+ public Unsafe Unsafe { get; set; }
29822976
29832977 [JsonProperty("unsigned", Required = Required.Always)]
29842978 public Unsigned Unsigned { get; set; }
29852979
2980+ [JsonProperty("UseSerializers", Required = Required.Always)]
2981+ public UseSerializers UseSerializers { get; set; }
2982+
29862983 [JsonProperty("ushort", Required = Required.Always)]
29872984 public Ushort Ushort { get; set; }
29882985
@@ -3041,12 +3038,42 @@ namespace QuickType
30413038 public Yield Yield { get; set; }
30423039 }
30433040
3041+ public partial class Union
3042+ {
3043+ [JsonProperty("union", Required = Required.Always)]
3044+ public long UnionUnion { get; set; }
3045+ }
3046+
3047+ public partial class UnmarshalJson
3048+ {
3049+ [JsonProperty("UnmarshalJSON", Required = Required.Always)]
3050+ public long UnmarshalJsonUnmarshalJson { get; set; }
3051+ }
3052+
3053+ public partial class Unowned
3054+ {
3055+ [JsonProperty("unowned", Required = Required.Always)]
3056+ public long UnownedUnowned { get; set; }
3057+ }
3058+
3059+ public partial class Unsafe
3060+ {
3061+ [JsonProperty("unsafe", Required = Required.Always)]
3062+ public long UnsafeUnsafe { get; set; }
3063+ }
3064+
30443065 public partial class Unsigned
30453066 {
30463067 [JsonProperty("unsigned", Required = Required.Always)]
30473068 public long UnsignedUnsigned { get; set; }
30483069 }
30493070
3071+ public partial class UseSerializers
3072+ {
3073+ [JsonProperty("UseSerializers", Required = Required.Always)]
3074+ public long UseSerializersUseSerializers { get; set; }
3075+ }
3076+
30503077 public partial class Ushort
30513078 {
30523079 [JsonProperty("ushort", Required = Required.Always)]
Mdartdefault / TopLevel.dart+280 −220
@@ -2693,6 +2693,7 @@ class Obj3 {
26932693 final Left left;
26942694 final Let let;
26952695 final ListClass list;
2696+ final LocalDate localDate;
26962697 final Locale locale;
26972698 final Lock lock;
26982699 final Long long;
@@ -2706,8 +2707,6 @@ class Obj3 {
27062707 final Namespace namespace;
27072708 final Native native;
27082709 final Newtonsoft newtonsoft;
2709- final Nil nil;
2710- final No no;
27112710 final HashCode obj3HashCode;
27122711 final If obj3If;
27132712 final Implements obj3Implements;
@@ -2761,6 +2760,7 @@ class Obj3 {
27612760 required this.left,
27622761 required this.let,
27632762 required this.list,
2763+ required this.localDate,
27642764 required this.locale,
27652765 required this.lock,
27662766 required this.long,
@@ -2774,8 +2774,6 @@ class Obj3 {
27742774 required this.namespace,
27752775 required this.native,
27762776 required this.newtonsoft,
2777- required this.nil,
2778- required this.no,
27792777 required this.obj3HashCode,
27802778 required this.obj3If,
27812779 required this.obj3Implements,
@@ -2830,6 +2828,7 @@ class Obj3 {
28302828 left: Left.fromJson(json["left"]),
28312829 let: Let.fromJson(json["let"]),
28322830 list: ListClass.fromJson(json["list"]),
2831+ localDate: LocalDate.fromJson(json["LocalDate"]),
28332832 locale: Locale.fromJson(json["Locale"]),
28342833 lock: Lock.fromJson(json["lock"]),
28352834 long: Long.fromJson(json["long"]),
@@ -2843,8 +2842,6 @@ class Obj3 {
28432842 namespace: Namespace.fromJson(json["namespace"]),
28442843 native: Native.fromJson(json["native"]),
28452844 newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]),
2846- nil: Nil.fromJson(json["nil"]),
2847- no: No.fromJson(json["NO"]),
28482845 obj3HashCode: HashCode.fromJson(json["hashCode"]),
28492846 obj3If: If.fromJson(json["if"]),
28502847 obj3Implements: Implements.fromJson(json["implements"]),
@@ -2899,6 +2896,7 @@ class Obj3 {
28992896 "left": left.toJson(),
29002897 "let": let.toJson(),
29012898 "list": list.toJson(),
2899+ "LocalDate": localDate.toJson(),
29022900 "Locale": locale.toJson(),
29032901 "lock": lock.toJson(),
29042902 "long": long.toJson(),
@@ -2912,8 +2910,6 @@ class Obj3 {
29122910 "namespace": namespace.toJson(),
29132911 "native": native.toJson(),
29142912 "newtonsoft": newtonsoft.toJson(),
2915- "nil": nil.toJson(),
2916- "NO": no.toJson(),
29172913 "hashCode": obj3HashCode.toJson(),
29182914 "if": obj3If.toJson(),
29192915 "implements": obj3Implements.toJson(),
@@ -3582,6 +3578,22 @@ class ListClass {
35823578 };
35833579 }
35843580
3581+class LocalDate {
3582+ final int localDate;
3583+
3584+ LocalDate({
3585+ required this.localDate,
3586+ });
3587+
3588+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
3589+ localDate: json["LocalDate"],
3590+ );
3591+
3592+ Map<String, dynamic> toJson() => {
3593+ "LocalDate": localDate,
3594+ };
3595+}
3596+
35853597 class Locale {
35863598 final int locale;
35873599
@@ -3790,38 +3802,6 @@ class Newtonsoft {
37903802 };
37913803 }
37923804
3793-class Nil {
3794- final int nil;
3795-
3796- Nil({
3797- required this.nil,
3798- });
3799-
3800- factory Nil.fromJson(Map<String, dynamic> json) => Nil(
3801- nil: json["nil"],
3802- );
3803-
3804- Map<String, dynamic> toJson() => {
3805- "nil": nil,
3806- };
3807-}
3808-
3809-class No {
3810- final int no;
3811-
3812- No({
3813- required this.no,
3814- });
3815-
3816- factory No.fromJson(Map<String, dynamic> json) => No(
3817- no: json["NO"],
3818- );
3819-
3820- Map<String, dynamic> toJson() => {
3821- "NO": no,
3822- };
3823-}
3824-
38253805 class HashCode {
38263806 final int hashCodeHashCode;
38273807
@@ -3968,6 +3948,8 @@ class New {
39683948
39693949 class Obj4 {
39703950 final int dummy;
3951+ final Nil nil;
3952+ final No no;
39713953 final Noexcept noexcept;
39723954 final Nonatomic nonatomic;
39733955 final None none;
@@ -3990,6 +3972,8 @@ class Obj4 {
39903972 final Object object;
39913973 final ObjectMapper objectMapper;
39923974 final Of of;
3975+ final OffsetDateTime offsetDateTime;
3976+ final OffsetTime offsetTime;
39933977 final Oneway oneway;
39943978 final Open open;
39953979 final Optional optional;
@@ -4028,13 +4012,11 @@ class Obj4 {
40284012 final Retain retain;
40294013 final Rethrows rethrows;
40304014 final Right right;
4031- final S s;
4032- final Sbyte sbyte;
4033- final Sealed sealed;
4034- final Sel sel;
40354015
40364016 Obj4({
40374017 required this.dummy,
4018+ required this.nil,
4019+ required this.no,
40384020 required this.noexcept,
40394021 required this.nonatomic,
40404022 required this.none,
@@ -4057,6 +4039,8 @@ class Obj4 {
40574039 required this.object,
40584040 required this.objectMapper,
40594041 required this.of,
4042+ required this.offsetDateTime,
4043+ required this.offsetTime,
40604044 required this.oneway,
40614045 required this.open,
40624046 required this.optional,
@@ -4095,14 +4079,12 @@ class Obj4 {
40954079 required this.retain,
40964080 required this.rethrows,
40974081 required this.right,
4098- required this.s,
4099- required this.sbyte,
4100- required this.sealed,
4101- required this.sel,
41024082 });
41034083
41044084 factory Obj4.fromJson(Map<String, dynamic> json) => Obj4(
41054085 dummy: json["dummy"],
4086+ nil: Nil.fromJson(json["nil"]),
4087+ no: No.fromJson(json["NO"]),
41064088 noexcept: Noexcept.fromJson(json["noexcept"]),
41074089 nonatomic: Nonatomic.fromJson(json["nonatomic"]),
41084090 none: None.fromJson(json["None"]),
@@ -4125,6 +4107,8 @@ class Obj4 {
41254107 object: Object.fromJson(json["object"]),
41264108 objectMapper: ObjectMapper.fromJson(json["ObjectMapper"]),
41274109 of: Of.fromJson(json["of"]),
4110+ offsetDateTime: OffsetDateTime.fromJson(json["OffsetDateTime"]),
4111+ offsetTime: OffsetTime.fromJson(json["OffsetTime"]),
41284112 oneway: Oneway.fromJson(json["oneway"]),
41294113 open: Open.fromJson(json["open"]),
41304114 optional: Optional.fromJson(json["optional"]),
@@ -4163,14 +4147,12 @@ class Obj4 {
41634147 retain: Retain.fromJson(json["retain"]),
41644148 rethrows: Rethrows.fromJson(json["rethrows"]),
41654149 right: Right.fromJson(json["right"]),
4166- s: S.fromJson(json["s"]),
4167- sbyte: Sbyte.fromJson(json["sbyte"]),
4168- sealed: Sealed.fromJson(json["sealed"]),
4169- sel: Sel.fromJson(json["SEL"]),
41704150 );
41714151
41724152 Map<String, dynamic> toJson() => {
41734153 "dummy": dummy,
4154+ "nil": nil.toJson(),
4155+ "NO": no.toJson(),
41744156 "noexcept": noexcept.toJson(),
41754157 "nonatomic": nonatomic.toJson(),
41764158 "None": none.toJson(),
@@ -4193,6 +4175,8 @@ class Obj4 {
41934175 "object": object.toJson(),
41944176 "ObjectMapper": objectMapper.toJson(),
41954177 "of": of.toJson(),
4178+ "OffsetDateTime": offsetDateTime.toJson(),
4179+ "OffsetTime": offsetTime.toJson(),
41964180 "oneway": oneway.toJson(),
41974181 "open": open.toJson(),
41984182 "optional": optional.toJson(),
@@ -4231,10 +4215,38 @@ class Obj4 {
42314215 "retain": retain.toJson(),
42324216 "rethrows": rethrows.toJson(),
42334217 "right": right.toJson(),
4234- "s": s.toJson(),
4235- "sbyte": sbyte.toJson(),
4236- "sealed": sealed.toJson(),
4237- "SEL": sel.toJson(),
4218+ };
4219+}
4220+
4221+class Nil {
4222+ final int nil;
4223+
4224+ Nil({
4225+ required this.nil,
4226+ });
4227+
4228+ factory Nil.fromJson(Map<String, dynamic> json) => Nil(
4229+ nil: json["nil"],
4230+ );
4231+
4232+ Map<String, dynamic> toJson() => {
4233+ "nil": nil,
4234+ };
4235+}
4236+
4237+class No {
4238+ final int no;
4239+
4240+ No({
4241+ required this.no,
4242+ });
4243+
4244+ factory No.fromJson(Map<String, dynamic> json) => No(
4245+ no: json["NO"],
4246+ );
4247+
4248+ Map<String, dynamic> toJson() => {
4249+ "NO": no,
42384250 };
42394251 }
42404252
@@ -4590,6 +4602,38 @@ class Of {
45904602 };
45914603 }
45924604
4605+class OffsetDateTime {
4606+ final int offsetDateTime;
4607+
4608+ OffsetDateTime({
4609+ required this.offsetDateTime,
4610+ });
4611+
4612+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
4613+ offsetDateTime: json["OffsetDateTime"],
4614+ );
4615+
4616+ Map<String, dynamic> toJson() => {
4617+ "OffsetDateTime": offsetDateTime,
4618+ };
4619+}
4620+
4621+class OffsetTime {
4622+ final int offsetTime;
4623+
4624+ OffsetTime({
4625+ required this.offsetTime,
4626+ });
4627+
4628+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
4629+ offsetTime: json["OffsetTime"],
4630+ );
4631+
4632+ Map<String, dynamic> toJson() => {
4633+ "OffsetTime": offsetTime,
4634+ };
4635+}
4636+
45934637 class Oneway {
45944638 final int oneway;
45954639
@@ -5198,70 +5242,6 @@ class Right {
51985242 };
51995243 }
52005244
5201-class S {
5202- final int s;
5203-
5204- S({
5205- required this.s,
5206- });
5207-
5208- factory S.fromJson(Map<String, dynamic> json) => S(
5209- s: json["s"],
5210- );
5211-
5212- Map<String, dynamic> toJson() => {
5213- "s": s,
5214- };
5215-}
5216-
5217-class Sbyte {
5218- final int sbyte;
5219-
5220- Sbyte({
5221- required this.sbyte,
5222- });
5223-
5224- factory Sbyte.fromJson(Map<String, dynamic> json) => Sbyte(
5225- sbyte: json["sbyte"],
5226- );
5227-
5228- Map<String, dynamic> toJson() => {
5229- "sbyte": sbyte,
5230- };
5231-}
5232-
5233-class Sealed {
5234- final int sealed;
5235-
5236- Sealed({
5237- required this.sealed,
5238- });
5239-
5240- factory Sealed.fromJson(Map<String, dynamic> json) => Sealed(
5241- sealed: json["sealed"],
5242- );
5243-
5244- Map<String, dynamic> toJson() => {
5245- "sealed": sealed,
5246- };
5247-}
5248-
5249-class Sel {
5250- final int sel;
5251-
5252- Sel({
5253- required this.sel,
5254- });
5255-
5256- factory Sel.fromJson(Map<String, dynamic> json) => Sel(
5257- sel: json["SEL"],
5258- );
5259-
5260- Map<String, dynamic> toJson() => {
5261- "SEL": sel,
5262- };
5263-}
5264-
52655245 class Obj5 {
52665246 final int dummy;
52675247 final KSerializer kSerializer;
@@ -5280,6 +5260,10 @@ class Obj5 {
52805260 final Typedef obj5Typedef;
52815261 final PrimitiveKind primitiveKind;
52825262 final TrueClass purpleTrue;
5263+ final S s;
5264+ final Sbyte sbyte;
5265+ final Sealed sealed;
5266+ final Sel sel;
52835267 final Select select;
52845268 final Self self;
52855269 final Sendable sendable;
@@ -5324,11 +5308,6 @@ class Obj5 {
53245308 final Ulong ulong;
53255309 final Unchecked unchecked;
53265310 final Undefined undefined;
5327- final Union union;
5328- final UnmarshalJson unmarshalJson;
5329- final Unowned unowned;
5330- final Unsafe unsafe;
5331- final UseSerializers useSerializers;
53325311
53335312 Obj5({
53345313 required this.dummy,
@@ -5348,6 +5327,10 @@ class Obj5 {
53485327 required this.obj5Typedef,
53495328 required this.primitiveKind,
53505329 required this.purpleTrue,
5330+ required this.s,
5331+ required this.sbyte,
5332+ required this.sealed,
5333+ required this.sel,
53515334 required this.select,
53525335 required this.self,
53535336 required this.sendable,
@@ -5392,11 +5375,6 @@ class Obj5 {
53925375 required this.ulong,
53935376 required this.unchecked,
53945377 required this.undefined,
5395- required this.union,
5396- required this.unmarshalJson,
5397- required this.unowned,
5398- required this.unsafe,
5399- required this.useSerializers,
54005378 });
54015379
54025380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5417,6 +5395,10 @@ class Obj5 {
54175395 obj5Typedef: Typedef.fromJson(json["typedef"]),
54185396 primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]),
54195397 purpleTrue: TrueClass.fromJson(json["true"]),
5398+ s: S.fromJson(json["s"]),
5399+ sbyte: Sbyte.fromJson(json["sbyte"]),
5400+ sealed: Sealed.fromJson(json["sealed"]),
5401+ sel: Sel.fromJson(json["SEL"]),
54205402 select: Select.fromJson(json["select"]),
54215403 self: Self.fromJson(json["Self"]),
54225404 sendable: Sendable.fromJson(json["Sendable"]),
@@ -5461,11 +5443,6 @@ class Obj5 {
54615443 ulong: Ulong.fromJson(json["ulong"]),
54625444 unchecked: Unchecked.fromJson(json["unchecked"]),
54635445 undefined: Undefined.fromJson(json["undefined"]),
5464- union: Union.fromJson(json["union"]),
5465- unmarshalJson: UnmarshalJson.fromJson(json["UnmarshalJSON"]),
5466- unowned: Unowned.fromJson(json["unowned"]),
5467- unsafe: Unsafe.fromJson(json["unsafe"]),
5468- useSerializers: UseSerializers.fromJson(json["UseSerializers"]),
54695446 );
54705447
54715448 Map<String, dynamic> toJson() => {
@@ -5486,6 +5463,10 @@ class Obj5 {
54865463 "typedef": obj5Typedef.toJson(),
54875464 "PrimitiveKind": primitiveKind.toJson(),
54885465 "true": purpleTrue.toJson(),
5466+ "s": s.toJson(),
5467+ "sbyte": sbyte.toJson(),
5468+ "sealed": sealed.toJson(),
5469+ "SEL": sel.toJson(),
54895470 "select": select.toJson(),
54905471 "Self": self.toJson(),
54915472 "Sendable": sendable.toJson(),
@@ -5530,11 +5511,6 @@ class Obj5 {
55305511 "ulong": ulong.toJson(),
55315512 "unchecked": unchecked.toJson(),
55325513 "undefined": undefined.toJson(),
5533- "union": union.toJson(),
5534- "UnmarshalJSON": unmarshalJson.toJson(),
5535- "unowned": unowned.toJson(),
5536- "unsafe": unsafe.toJson(),
5537- "UseSerializers": useSerializers.toJson(),
55385514 };
55395515 }
55405516
@@ -5794,6 +5770,70 @@ class TrueClass {
57945770 };
57955771 }
57965772
5773+class S {
5774+ final int s;
5775+
5776+ S({
5777+ required this.s,
5778+ });
5779+
5780+ factory S.fromJson(Map<String, dynamic> json) => S(
5781+ s: json["s"],
5782+ );
5783+
5784+ Map<String, dynamic> toJson() => {
5785+ "s": s,
5786+ };
5787+}
5788+
5789+class Sbyte {
5790+ final int sbyte;
5791+
5792+ Sbyte({
5793+ required this.sbyte,
5794+ });
5795+
5796+ factory Sbyte.fromJson(Map<String, dynamic> json) => Sbyte(
5797+ sbyte: json["sbyte"],
5798+ );
5799+
5800+ Map<String, dynamic> toJson() => {
5801+ "sbyte": sbyte,
5802+ };
5803+}
5804+
5805+class Sealed {
5806+ final int sealed;
5807+
5808+ Sealed({
5809+ required this.sealed,
5810+ });
5811+
5812+ factory Sealed.fromJson(Map<String, dynamic> json) => Sealed(
5813+ sealed: json["sealed"],
5814+ );
5815+
5816+ Map<String, dynamic> toJson() => {
5817+ "sealed": sealed,
5818+ };
5819+}
5820+
5821+class Sel {
5822+ final int sel;
5823+
5824+ Sel({
5825+ required this.sel,
5826+ });
5827+
5828+ factory Sel.fromJson(Map<String, dynamic> json) => Sel(
5829+ sel: json["SEL"],
5830+ );
5831+
5832+ Map<String, dynamic> toJson() => {
5833+ "SEL": sel,
5834+ };
5835+}
5836+
57975837 class Select {
57985838 final int select;
57995839
@@ -6498,86 +6538,6 @@ class Undefined {
64986538 };
64996539 }
65006540
6501-class Union {
6502- final int union;
6503-
6504- Union({
6505- required this.union,
6506- });
6507-
6508- factory Union.fromJson(Map<String, dynamic> json) => Union(
6509- union: json["union"],
6510- );
6511-
6512- Map<String, dynamic> toJson() => {
6513- "union": union,
6514- };
6515-}
6516-
6517-class UnmarshalJson {
6518- final int unmarshalJson;
6519-
6520- UnmarshalJson({
6521- required this.unmarshalJson,
6522- });
6523-
6524- factory UnmarshalJson.fromJson(Map<String, dynamic> json) => UnmarshalJson(
6525- unmarshalJson: json["UnmarshalJSON"],
6526- );
6527-
6528- Map<String, dynamic> toJson() => {
6529- "UnmarshalJSON": unmarshalJson,
6530- };
6531-}
6532-
6533-class Unowned {
6534- final int unowned;
6535-
6536- Unowned({
6537- required this.unowned,
6538- });
6539-
6540- factory Unowned.fromJson(Map<String, dynamic> json) => Unowned(
6541- unowned: json["unowned"],
6542- );
6543-
6544- Map<String, dynamic> toJson() => {
6545- "unowned": unowned,
6546- };
6547-}
6548-
6549-class Unsafe {
6550- final int unsafe;
6551-
6552- Unsafe({
6553- required this.unsafe,
6554- });
6555-
6556- factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe(
6557- unsafe: json["unsafe"],
6558- );
6559-
6560- Map<String, dynamic> toJson() => {
6561- "unsafe": unsafe,
6562- };
6563-}
6564-
6565-class UseSerializers {
6566- final int useSerializers;
6567-
6568- UseSerializers({
6569- required this.useSerializers,
6570- });
6571-
6572- factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers(
6573- useSerializers: json["UseSerializers"],
6574- );
6575-
6576- Map<String, dynamic> toJson() => {
6577- "UseSerializers": useSerializers,
6578- };
6579-}
6580-
65816541 class Obj6 {
65826542 final int dummy;
65836543 final Var obj6Var;
@@ -6585,7 +6545,12 @@ class Obj6 {
65856545 final While obj6While;
65866546 final With obj6With;
65876547 final Yield obj6Yield;
6548+ final Union union;
6549+ final UnmarshalJson unmarshalJson;
6550+ final Unowned unowned;
6551+ final Unsafe unsafe;
65886552 final Unsigned unsigned;
6553+ final UseSerializers useSerializers;
65896554 final Ushort ushort;
65906555 final Using using;
65916556 final Utf8JsonReader utf8JsonReader;
@@ -6608,7 +6573,12 @@ class Obj6 {
66086573 required this.obj6While,
66096574 required this.obj6With,
66106575 required this.obj6Yield,
6576+ required this.union,
6577+ required this.unmarshalJson,
6578+ required this.unowned,
6579+ required this.unsafe,
66116580 required this.unsigned,
6581+ required this.useSerializers,
66126582 required this.ushort,
66136583 required this.using,
66146584 required this.utf8JsonReader,
@@ -6632,7 +6602,12 @@ class Obj6 {
66326602 obj6While: While.fromJson(json["while"]),
66336603 obj6With: With.fromJson(json["with"]),
66346604 obj6Yield: Yield.fromJson(json["yield"]),
6605+ union: Union.fromJson(json["union"]),
6606+ unmarshalJson: UnmarshalJson.fromJson(json["UnmarshalJSON"]),
6607+ unowned: Unowned.fromJson(json["unowned"]),
6608+ unsafe: Unsafe.fromJson(json["unsafe"]),
66356609 unsigned: Unsigned.fromJson(json["unsigned"]),
6610+ useSerializers: UseSerializers.fromJson(json["UseSerializers"]),
66366611 ushort: Ushort.fromJson(json["ushort"]),
66376612 using: Using.fromJson(json["using"]),
66386613 utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
@@ -6656,7 +6631,12 @@ class Obj6 {
66566631 "while": obj6While.toJson(),
66576632 "with": obj6With.toJson(),
66586633 "yield": obj6Yield.toJson(),
6634+ "union": union.toJson(),
6635+ "UnmarshalJSON": unmarshalJson.toJson(),
6636+ "unowned": unowned.toJson(),
6637+ "unsafe": unsafe.toJson(),
66596638 "unsigned": unsigned.toJson(),
6639+ "UseSerializers": useSerializers.toJson(),
66606640 "ushort": ushort.toJson(),
66616641 "using": using.toJson(),
66626642 "Utf8JsonReader": utf8JsonReader.toJson(),
@@ -6754,6 +6734,70 @@ class Yield {
67546734 };
67556735 }
67566736
6737+class Union {
6738+ final int union;
6739+
6740+ Union({
6741+ required this.union,
6742+ });
6743+
6744+ factory Union.fromJson(Map<String, dynamic> json) => Union(
6745+ union: json["union"],
6746+ );
6747+
6748+ Map<String, dynamic> toJson() => {
6749+ "union": union,
6750+ };
6751+}
6752+
6753+class UnmarshalJson {
6754+ final int unmarshalJson;
6755+
6756+ UnmarshalJson({
6757+ required this.unmarshalJson,
6758+ });
6759+
6760+ factory UnmarshalJson.fromJson(Map<String, dynamic> json) => UnmarshalJson(
6761+ unmarshalJson: json["UnmarshalJSON"],
6762+ );
6763+
6764+ Map<String, dynamic> toJson() => {
6765+ "UnmarshalJSON": unmarshalJson,
6766+ };
6767+}
6768+
6769+class Unowned {
6770+ final int unowned;
6771+
6772+ Unowned({
6773+ required this.unowned,
6774+ });
6775+
6776+ factory Unowned.fromJson(Map<String, dynamic> json) => Unowned(
6777+ unowned: json["unowned"],
6778+ );
6779+
6780+ Map<String, dynamic> toJson() => {
6781+ "unowned": unowned,
6782+ };
6783+}
6784+
6785+class Unsafe {
6786+ final int unsafe;
6787+
6788+ Unsafe({
6789+ required this.unsafe,
6790+ });
6791+
6792+ factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe(
6793+ unsafe: json["unsafe"],
6794+ );
6795+
6796+ Map<String, dynamic> toJson() => {
6797+ "unsafe": unsafe,
6798+ };
6799+}
6800+
67576801 class Unsigned {
67586802 final int unsigned;
67596803
@@ -6770,6 +6814,22 @@ class Unsigned {
67706814 };
67716815 }
67726816
6817+class UseSerializers {
6818+ final int useSerializers;
6819+
6820+ UseSerializers({
6821+ required this.useSerializers,
6822+ });
6823+
6824+ factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers(
6825+ useSerializers: json["UseSerializers"],
6826+ );
6827+
6828+ Map<String, dynamic> toJson() => {
6829+ "UseSerializers": useSerializers,
6830+ };
6831+}
6832+
67736833 class Ushort {
67746834 final int ushort;
Melixirdefault / QuickType.ex+611 −485
@@ -7338,6 +7338,45 @@ defmodule ListClass do
73387338 end
73397339 end
73407340
7341+defmodule LocalDate do
7342+ @enforce_keys [:local_date]
7343+ defstruct [:local_date]
7344+
7345+ @type t :: %__MODULE__{
7346+ local_date: integer()
7347+ }
7348+
7349+ def decode_local_date(value) when is_integer(value), do: value
7350+ def decode_local_date(_), do: {:error, "Unexpected type when decoding LocalDate.local_date"}
7351+
7352+ def encode_local_date(value) when is_integer(value), do: value
7353+ def encode_local_date(_), do: {:error, "Unexpected type when encoding LocalDate.local_date"}
7354+
7355+ def from_map(m) do
7356+ %LocalDate{
7357+ local_date: decode_local_date(m["LocalDate"]),
7358+ }
7359+ end
7360+
7361+ def from_json(json) do
7362+ json
7363+ |> Jason.decode!()
7364+ |> from_map()
7365+ end
7366+
7367+ def to_map(struct) do
7368+ %{
7369+ "LocalDate" => struct.local_date,
7370+ }
7371+ end
7372+
7373+ def to_json(struct) do
7374+ struct
7375+ |> to_map()
7376+ |> Jason.encode!()
7377+ end
7378+end
7379+
73417380 defmodule Locale do
73427381 @enforce_keys [:locale]
73437382 defstruct [:locale]
@@ -7884,45 +7923,6 @@ defmodule Newtonsoft do
78847923 end
78857924 end
78867925
7887-defmodule No do
7888- @enforce_keys [:no]
7889- defstruct [:no]
7890-
7891- @type t :: %__MODULE__{
7892- no: integer()
7893- }
7894-
7895- def decode_no(value) when is_integer(value), do: value
7896- def decode_no(_), do: {:error, "Unexpected type when decoding No.no"}
7897-
7898- def encode_no(value) when is_integer(value), do: value
7899- def encode_no(_), do: {:error, "Unexpected type when encoding No.no"}
7900-
7901- def from_map(m) do
7902- %No{
7903- no: decode_no(m["NO"]),
7904- }
7905- end
7906-
7907- def from_json(json) do
7908- json
7909- |> Jason.decode!()
7910- |> from_map()
7911- end
7912-
7913- def to_map(struct) do
7914- %{
7915- "NO" => struct.no,
7916- }
7917- end
7918-
7919- def to_json(struct) do
7920- struct
7921- |> to_map()
7922- |> Jason.encode!()
7923- end
7924-end
7925-
79267926 defmodule ImportClass do
79277927 @enforce_keys [:import_import]
79287928 defstruct [:import_import]
@@ -8001,48 +8001,9 @@ defmodule InClass do
80018001 end
80028002 end
80038003
8004-defmodule NilClass do
8005- @enforce_keys [:nil_nil]
8006- defstruct [:nil_nil]
8007-
8008- @type t :: %__MODULE__{
8009- nil_nil: integer()
8010- }
8011-
8012- def decode_nil_nil(value) when is_integer(value), do: value
8013- def decode_nil_nil(_), do: {:error, "Unexpected type when decoding NilClass.nil_nil"}
8014-
8015- def encode_nil_nil(value) when is_integer(value), do: value
8016- def encode_nil_nil(_), do: {:error, "Unexpected type when encoding NilClass.nil_nil"}
8017-
8018- def from_map(m) do
8019- %NilClass{
8020- nil_nil: decode_nil_nil(m["nil"]),
8021- }
8022- end
8023-
8024- def from_json(json) do
8025- json
8026- |> Jason.decode!()
8027- |> from_map()
8028- end
8029-
8030- def to_map(struct) do
8031- %{
8032- "nil" => struct.nil_nil,
8033- }
8034- end
8035-
8036- def to_json(struct) do
8037- struct
8038- |> to_map()
8039- |> Jason.encode!()
8040- end
8041-end
8042-
80438004 defmodule Obj3 do
8044- @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, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil]
8045- 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, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :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, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :obj3_import, :obj3_in]
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, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :obj3_import, :obj3_in]
80468007
80478008 @type t :: %__MODULE__{
80488009 dummy: integer(),
@@ -8093,6 +8054,7 @@ defmodule Obj3 do
80938054 left: Left.t(),
80948055 let: Let.t(),
80958056 list: ListClass.t(),
8057+ local_date: LocalDate.t(),
80968058 locale: Locale.t(),
80978059 lock: Lock.t(),
80988060 long: Long.t(),
@@ -8107,10 +8069,8 @@ defmodule Obj3 do
81078069 native: Native.t(),
81088070 new: New.t(),
81098071 newtonsoft: Newtonsoft.t(),
8110- no: No.t(),
81118072 obj3_import: ImportClass.t(),
8112- obj3_in: InClass.t(),
8113- obj3_nil: NilClass.t()
8073+ obj3_in: InClass.t()
81148074 }
81158075
81168076 def decode_dummy(value) when is_integer(value), do: value
@@ -8169,6 +8129,7 @@ defmodule Obj3 do
81698129 left: Left.from_map(m["left"]),
81708130 let: Let.from_map(m["let"]),
81718131 list: ListClass.from_map(m["list"]),
8132+ local_date: LocalDate.from_map(m["LocalDate"]),
81728133 locale: Locale.from_map(m["Locale"]),
81738134 lock: Lock.from_map(m["lock"]),
81748135 long: Long.from_map(m["long"]),
@@ -8183,10 +8144,8 @@ defmodule Obj3 do
81838144 native: Native.from_map(m["native"]),
81848145 new: New.from_map(m["new"]),
81858146 newtonsoft: Newtonsoft.from_map(m["newtonsoft"]),
8186- no: No.from_map(m["NO"]),
81878147 obj3_import: ImportClass.from_map(m["import"]),
81888148 obj3_in: InClass.from_map(m["in"]),
8189- obj3_nil: NilClass.from_map(m["nil"]),
81908149 }
81918150 end
81928151
@@ -8246,6 +8205,7 @@ defmodule Obj3 do
82468205 "left" => Left.to_map(struct.left),
82478206 "let" => Let.to_map(struct.let),
82488207 "list" => ListClass.to_map(struct.list),
8208+ "LocalDate" => LocalDate.to_map(struct.local_date),
82498209 "Locale" => Locale.to_map(struct.locale),
82508210 "lock" => Lock.to_map(struct.lock),
82518211 "long" => Long.to_map(struct.long),
@@ -8260,10 +8220,47 @@ defmodule Obj3 do
82608220 "native" => Native.to_map(struct.native),
82618221 "new" => New.to_map(struct.new),
82628222 "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft),
8263- "NO" => No.to_map(struct.no),
82648223 "import" => ImportClass.to_map(struct.obj3_import),
82658224 "in" => InClass.to_map(struct.obj3_in),
8266- "nil" => NilClass.to_map(struct.obj3_nil),
8225+ }
8226+ end
8227+
8228+ def to_json(struct) do
8229+ struct
8230+ |> to_map()
8231+ |> Jason.encode!()
8232+ end
8233+end
8234+
8235+defmodule No do
8236+ @enforce_keys [:no]
8237+ defstruct [:no]
8238+
8239+ @type t :: %__MODULE__{
8240+ no: integer()
8241+ }
8242+
8243+ def decode_no(value) when is_integer(value), do: value
8244+ def decode_no(_), do: {:error, "Unexpected type when decoding No.no"}
8245+
8246+ def encode_no(value) when is_integer(value), do: value
8247+ def encode_no(_), do: {:error, "Unexpected type when encoding No.no"}
8248+
8249+ def from_map(m) do
8250+ %No{
8251+ no: decode_no(m["NO"]),
8252+ }
8253+ end
8254+
8255+ def from_json(json) do
8256+ json
8257+ |> Jason.decode!()
8258+ |> from_map()
8259+ end
8260+
8261+ def to_map(struct) do
8262+ %{
8263+ "NO" => struct.no,
82678264 }
82688265 end
82698266
@@ -8781,6 +8778,45 @@ defmodule Number do
87818778 end
87828779 end
87838780
8781+defmodule NilClass do
8782+ @enforce_keys [:nil_nil]
8783+ defstruct [:nil_nil]
8784+
8785+ @type t :: %__MODULE__{
8786+ nil_nil: integer()
8787+ }
8788+
8789+ def decode_nil_nil(value) when is_integer(value), do: value
8790+ def decode_nil_nil(_), do: {:error, "Unexpected type when decoding NilClass.nil_nil"}
8791+
8792+ def encode_nil_nil(value) when is_integer(value), do: value
8793+ def encode_nil_nil(_), do: {:error, "Unexpected type when encoding NilClass.nil_nil"}
8794+
8795+ def from_map(m) do
8796+ %NilClass{
8797+ nil_nil: decode_nil_nil(m["nil"]),
8798+ }
8799+ end
8800+
8801+ def from_json(json) do
8802+ json
8803+ |> Jason.decode!()
8804+ |> from_map()
8805+ end
8806+
8807+ def to_map(struct) do
8808+ %{
8809+ "nil" => struct.nil_nil,
8810+ }
8811+ end
8812+
8813+ def to_json(struct) do
8814+ struct
8815+ |> to_map()
8816+ |> Jason.encode!()
8817+ end
8818+end
8819+
87848820 defmodule NoneClass do
87858821 @enforce_keys [:none]
87868822 defstruct [:none]
@@ -9093,6 +9129,84 @@ defmodule Of do
90939129 end
90949130 end
90959131
9132+defmodule OffsetDateTime do
9133+ @enforce_keys [:offset_date_time]
9134+ defstruct [:offset_date_time]
9135+
9136+ @type t :: %__MODULE__{
9137+ offset_date_time: integer()
9138+ }
9139+
9140+ def decode_offset_date_time(value) when is_integer(value), do: value
9141+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding OffsetDateTime.offset_date_time"}
9142+
9143+ def encode_offset_date_time(value) when is_integer(value), do: value
9144+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding OffsetDateTime.offset_date_time"}
9145+
9146+ def from_map(m) do
9147+ %OffsetDateTime{
9148+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
9149+ }
9150+ end
9151+
9152+ def from_json(json) do
9153+ json
9154+ |> Jason.decode!()
9155+ |> from_map()
9156+ end
9157+
9158+ def to_map(struct) do
9159+ %{
9160+ "OffsetDateTime" => struct.offset_date_time,
9161+ }
9162+ end
9163+
9164+ def to_json(struct) do
9165+ struct
9166+ |> to_map()
9167+ |> Jason.encode!()
9168+ end
9169+end
9170+
9171+defmodule OffsetTime do
9172+ @enforce_keys [:offset_time]
9173+ defstruct [:offset_time]
9174+
9175+ @type t :: %__MODULE__{
9176+ offset_time: integer()
9177+ }
9178+
9179+ def decode_offset_time(value) when is_integer(value), do: value
9180+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding OffsetTime.offset_time"}
9181+
9182+ def encode_offset_time(value) when is_integer(value), do: value
9183+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding OffsetTime.offset_time"}
9184+
9185+ def from_map(m) do
9186+ %OffsetTime{
9187+ offset_time: decode_offset_time(m["OffsetTime"]),
9188+ }
9189+ end
9190+
9191+ def from_json(json) do
9192+ json
9193+ |> Jason.decode!()
9194+ |> from_map()
9195+ end
9196+
9197+ def to_map(struct) do
9198+ %{
9199+ "OffsetTime" => struct.offset_time,
9200+ }
9201+ end
9202+
9203+ def to_json(struct) do
9204+ struct
9205+ |> to_map()
9206+ |> Jason.encode!()
9207+ end
9208+end
9209+
90969210 defmodule Oneway do
90979211 @enforce_keys [:oneway]
90989212 defstruct [:oneway]
@@ -10614,168 +10728,13 @@ defmodule RuntimeType do
1061410728 end
1061510729 end
1061610730
10617-defmodule S do
10618- @enforce_keys [:s]
10619- defstruct [:s]
10620-
10621- @type t :: %__MODULE__{
10622- s: integer()
10623- }
10624-
10625- def decode_s(value) when is_integer(value), do: value
10626- def decode_s(_), do: {:error, "Unexpected type when decoding S.s"}
10627-
10628- def encode_s(value) when is_integer(value), do: value
10629- def encode_s(_), do: {:error, "Unexpected type when encoding S.s"}
10630-
10631- def from_map(m) do
10632- %S{
10633- s: decode_s(m["s"]),
10634- }
10635- end
10636-
10637- def from_json(json) do
10638- json
10639- |> Jason.decode!()
10640- |> from_map()
10641- end
10642-
10643- def to_map(struct) do
10644- %{
10645- "s" => struct.s,
10646- }
10647- end
10648-
10649- def to_json(struct) do
10650- struct
10651- |> to_map()
10652- |> Jason.encode!()
10653- end
10654-end
10655-
10656-defmodule Sbyte do
10657- @enforce_keys [:sbyte]
10658- defstruct [:sbyte]
10659-
10660- @type t :: %__MODULE__{
10661- sbyte: integer()
10662- }
10663-
10664- def decode_sbyte(value) when is_integer(value), do: value
10665- def decode_sbyte(_), do: {:error, "Unexpected type when decoding Sbyte.sbyte"}
10666-
10667- def encode_sbyte(value) when is_integer(value), do: value
10668- def encode_sbyte(_), do: {:error, "Unexpected type when encoding Sbyte.sbyte"}
10669-
10670- def from_map(m) do
10671- %Sbyte{
10672- sbyte: decode_sbyte(m["sbyte"]),
10673- }
10674- end
10675-
10676- def from_json(json) do
10677- json
10678- |> Jason.decode!()
10679- |> from_map()
10680- end
10681-
10682- def to_map(struct) do
10683- %{
10684- "sbyte" => struct.sbyte,
10685- }
10686- end
10687-
10688- def to_json(struct) do
10689- struct
10690- |> to_map()
10691- |> Jason.encode!()
10692- end
10693-end
10694-
10695-defmodule Sealed do
10696- @enforce_keys [:sealed]
10697- defstruct [:sealed]
10698-
10699- @type t :: %__MODULE__{
10700- sealed: integer()
10701- }
10702-
10703- def decode_sealed(value) when is_integer(value), do: value
10704- def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"}
10705-
10706- def encode_sealed(value) when is_integer(value), do: value
10707- def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"}
10708-
10709- def from_map(m) do
10710- %Sealed{
10711- sealed: decode_sealed(m["sealed"]),
10712- }
10713- end
10714-
10715- def from_json(json) do
10716- json
10717- |> Jason.decode!()
10718- |> from_map()
10719- end
10720-
10721- def to_map(struct) do
10722- %{
10723- "sealed" => struct.sealed,
10724- }
10725- end
10726-
10727- def to_json(struct) do
10728- struct
10729- |> to_map()
10730- |> Jason.encode!()
10731- end
10732-end
10733-
10734-defmodule Sel do
10735- @enforce_keys [:sel]
10736- defstruct [:sel]
10737-
10738- @type t :: %__MODULE__{
10739- sel: integer()
10740- }
10741-
10742- def decode_sel(value) when is_integer(value), do: value
10743- def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"}
10744-
10745- def encode_sel(value) when is_integer(value), do: value
10746- def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"}
10747-
10748- def from_map(m) do
10749- %Sel{
10750- sel: decode_sel(m["SEL"]),
10751- }
10752- end
10753-
10754- def from_json(json) do
10755- json
10756- |> Jason.decode!()
10757- |> from_map()
10758- end
10759-
10760- def to_map(struct) do
10761- %{
10762- "SEL" => struct.sel,
10763- }
10764- end
10765-
10766- def to_json(struct) do
10767- struct
10768- |> to_map()
10769- |> Jason.encode!()
10770- end
10771-end
10772-
10773-defmodule Obj4 do
10774- @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]
10775- 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]
10731+defmodule Obj4 do
10732+ @enforce_keys [:dummy, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :offset_date_time, :offset_time, :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]
10733+ defstruct [:dummy, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :offset_date_time, :offset_time, :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]
1077610734
1077710735 @type t :: %__MODULE__{
1077810736 dummy: integer(),
10737+ no: No.t(),
1077910738 no_such_method: NoSuchMethod.t(),
1078010739 noexcept: Noexcept.t(),
1078110740 nonatomic: Nonatomic.t(),
@@ -10789,6 +10748,7 @@ defmodule Obj4 do
1078910748 null: Null.t(),
1079010749 nullptr: Nullptr.t(),
1079110750 number: Number.t(),
10751+ obj4_nil: NilClass.t(),
1079210752 obj4_none: NoneClass.t(),
1079310753 obj4_not: NotClass.t(),
1079410754 obj4_null: NullClass.t(),
@@ -10797,6 +10757,8 @@ defmodule Obj4 do
1079710757 object: Object.t(),
1079810758 object_mapper: ObjectMapper.t(),
1079910759 of: Of.t(),
10760+ offset_date_time: OffsetDateTime.t(),
10761+ offset_time: OffsetTime.t(),
1080010762 oneway: Oneway.t(),
1080110763 open: Open.t(),
1080210764 operator: Operator.t(),
@@ -10835,11 +10797,7 @@ defmodule Obj4 do
1083510797 rethrows: Rethrows.t(),
1083610798 return: Return.t(),
1083710799 right: Right.t(),
10838- runtime_type: RuntimeType.t(),
10839- s: S.t(),
10840- sbyte: Sbyte.t(),
10841- sealed: Sealed.t(),
10842- sel: Sel.t()
10800+ runtime_type: RuntimeType.t()
1084310801 }
1084410802
1084510803 def decode_dummy(value) when is_integer(value), do: value
@@ -10851,6 +10809,7 @@ defmodule Obj4 do
1085110809 def from_map(m) do
1085210810 %Obj4{
1085310811 dummy: decode_dummy(m["dummy"]),
10812+ no: No.from_map(m["NO"]),
1085410813 no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]),
1085510814 noexcept: Noexcept.from_map(m["noexcept"]),
1085610815 nonatomic: Nonatomic.from_map(m["nonatomic"]),
@@ -10864,6 +10823,7 @@ defmodule Obj4 do
1086410823 null: Null.from_map(m["NULL"]),
1086510824 nullptr: Nullptr.from_map(m["nullptr"]),
1086610825 number: Number.from_map(m["number"]),
10826+ obj4_nil: NilClass.from_map(m["nil"]),
1086710827 obj4_none: NoneClass.from_map(m["none"]),
1086810828 obj4_not: NotClass.from_map(m["not"]),
1086910829 obj4_null: NullClass.from_map(m["null"]),
@@ -10872,6 +10832,8 @@ defmodule Obj4 do
1087210832 object: Object.from_map(m["object"]),
1087310833 object_mapper: ObjectMapper.from_map(m["ObjectMapper"]),
1087410834 of: Of.from_map(m["of"]),
10835+ offset_date_time: OffsetDateTime.from_map(m["OffsetDateTime"]),
10836+ offset_time: OffsetTime.from_map(m["OffsetTime"]),
1087510837 oneway: Oneway.from_map(m["oneway"]),
1087610838 open: Open.from_map(m["open"]),
1087710839 operator: Operator.from_map(m["operator"]),
@@ -10911,10 +10873,6 @@ defmodule Obj4 do
1091110873 return: Return.from_map(m["return"]),
1091210874 right: Right.from_map(m["right"]),
1091310875 runtime_type: RuntimeType.from_map(m["runtimeType"]),
10914- s: S.from_map(m["s"]),
10915- sbyte: Sbyte.from_map(m["sbyte"]),
10916- sealed: Sealed.from_map(m["sealed"]),
10917- sel: Sel.from_map(m["SEL"]),
1091810876 }
1091910877 end
1092010878
@@ -10927,6 +10885,7 @@ defmodule Obj4 do
1092710885 def to_map(struct) do
1092810886 %{
1092910887 "dummy" => struct.dummy,
10888+ "NO" => No.to_map(struct.no),
1093010889 "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method),
1093110890 "noexcept" => Noexcept.to_map(struct.noexcept),
1093210891 "nonatomic" => Nonatomic.to_map(struct.nonatomic),
@@ -10940,6 +10899,7 @@ defmodule Obj4 do
1094010899 "NULL" => Null.to_map(struct.null),
1094110900 "nullptr" => Nullptr.to_map(struct.nullptr),
1094210901 "number" => Number.to_map(struct.number),
10902+ "nil" => NilClass.to_map(struct.obj4_nil),
1094310903 "none" => NoneClass.to_map(struct.obj4_none),
1094410904 "not" => NotClass.to_map(struct.obj4_not),
1094510905 "null" => NullClass.to_map(struct.obj4_null),
@@ -10948,6 +10908,8 @@ defmodule Obj4 do
1094810908 "object" => Object.to_map(struct.object),
1094910909 "ObjectMapper" => ObjectMapper.to_map(struct.object_mapper),
1095010910 "of" => Of.to_map(struct.of),
10911+ "OffsetDateTime" => OffsetDateTime.to_map(struct.offset_date_time),
10912+ "OffsetTime" => OffsetTime.to_map(struct.offset_time),
1095110913 "oneway" => Oneway.to_map(struct.oneway),
1095210914 "open" => Open.to_map(struct.open),
1095310915 "operator" => Operator.to_map(struct.operator),
@@ -10987,10 +10949,6 @@ defmodule Obj4 do
1098710949 "return" => Return.to_map(struct.return),
1098810950 "right" => Right.to_map(struct.right),
1098910951 "runtimeType" => RuntimeType.to_map(struct.runtime_type),
10990- "s" => S.to_map(struct.s),
10991- "sbyte" => Sbyte.to_map(struct.sbyte),
10992- "sealed" => Sealed.to_map(struct.sealed),
10993- "SEL" => Sel.to_map(struct.sel),
1099410952 }
1099510953 end
1099610954
@@ -11196,6 +11154,162 @@ defmodule PrimitiveKind do
1119611154 end
1119711155 end
1119811156
11157+defmodule S do
11158+ @enforce_keys [:s]
11159+ defstruct [:s]
11160+
11161+ @type t :: %__MODULE__{
11162+ s: integer()
11163+ }
11164+
11165+ def decode_s(value) when is_integer(value), do: value
11166+ def decode_s(_), do: {:error, "Unexpected type when decoding S.s"}
11167+
11168+ def encode_s(value) when is_integer(value), do: value
11169+ def encode_s(_), do: {:error, "Unexpected type when encoding S.s"}
11170+
11171+ def from_map(m) do
11172+ %S{
11173+ s: decode_s(m["s"]),
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+ "s" => struct.s,
11186+ }
11187+ end
11188+
11189+ def to_json(struct) do
11190+ struct
11191+ |> to_map()
11192+ |> Jason.encode!()
11193+ end
11194+end
11195+
11196+defmodule Sbyte do
11197+ @enforce_keys [:sbyte]
11198+ defstruct [:sbyte]
11199+
11200+ @type t :: %__MODULE__{
11201+ sbyte: integer()
11202+ }
11203+
11204+ def decode_sbyte(value) when is_integer(value), do: value
11205+ def decode_sbyte(_), do: {:error, "Unexpected type when decoding Sbyte.sbyte"}
11206+
11207+ def encode_sbyte(value) when is_integer(value), do: value
11208+ def encode_sbyte(_), do: {:error, "Unexpected type when encoding Sbyte.sbyte"}
11209+
11210+ def from_map(m) do
11211+ %Sbyte{
11212+ sbyte: decode_sbyte(m["sbyte"]),
11213+ }
11214+ end
11215+
11216+ def from_json(json) do
11217+ json
11218+ |> Jason.decode!()
11219+ |> from_map()
11220+ end
11221+
11222+ def to_map(struct) do
11223+ %{
11224+ "sbyte" => struct.sbyte,
11225+ }
11226+ end
11227+
11228+ def to_json(struct) do
11229+ struct
11230+ |> to_map()
11231+ |> Jason.encode!()
11232+ end
11233+end
11234+
11235+defmodule Sealed do
11236+ @enforce_keys [:sealed]
11237+ defstruct [:sealed]
11238+
11239+ @type t :: %__MODULE__{
11240+ sealed: integer()
11241+ }
11242+
11243+ def decode_sealed(value) when is_integer(value), do: value
11244+ def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"}
11245+
11246+ def encode_sealed(value) when is_integer(value), do: value
11247+ def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"}
11248+
11249+ def from_map(m) do
11250+ %Sealed{
11251+ sealed: decode_sealed(m["sealed"]),
11252+ }
11253+ end
11254+
11255+ def from_json(json) do
11256+ json
11257+ |> Jason.decode!()
11258+ |> from_map()
11259+ end
11260+
11261+ def to_map(struct) do
11262+ %{
11263+ "sealed" => struct.sealed,
11264+ }
11265+ end
11266+
11267+ def to_json(struct) do
11268+ struct
11269+ |> to_map()
11270+ |> Jason.encode!()
11271+ end
11272+end
11273+
11274+defmodule Sel do
11275+ @enforce_keys [:sel]
11276+ defstruct [:sel]
11277+
11278+ @type t :: %__MODULE__{
11279+ sel: integer()
11280+ }
11281+
11282+ def decode_sel(value) when is_integer(value), do: value
11283+ def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"}
11284+
11285+ def encode_sel(value) when is_integer(value), do: value
11286+ def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"}
11287+
11288+ def from_map(m) do
11289+ %Sel{
11290+ sel: decode_sel(m["SEL"]),
11291+ }
11292+ end
11293+
11294+ def from_json(json) do
11295+ json
11296+ |> Jason.decode!()
11297+ |> from_map()
11298+ end
11299+
11300+ def to_map(struct) do
11301+ %{
11302+ "SEL" => struct.sel,
11303+ }
11304+ end
11305+
11306+ def to_json(struct) do
11307+ struct
11308+ |> to_map()
11309+ |> Jason.encode!()
11310+ end
11311+end
11312+
1119911313 defmodule Select do
1120011314 @enforce_keys [:select]
1120111315 defstruct [:select]
@@ -13302,218 +13416,23 @@ defmodule Unchecked do
1330213416 end
1330313417 end
1330413418
13305-defmodule Undefined do
13306- @enforce_keys [:undefined]
13307- defstruct [:undefined]
13308-
13309- @type t :: %__MODULE__{
13310- undefined: integer()
13311- }
13312-
13313- def decode_undefined(value) when is_integer(value), do: value
13314- def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"}
13315-
13316- def encode_undefined(value) when is_integer(value), do: value
13317- def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"}
13318-
13319- def from_map(m) do
13320- %Undefined{
13321- undefined: decode_undefined(m["undefined"]),
13322- }
13323- end
13324-
13325- def from_json(json) do
13326- json
13327- |> Jason.decode!()
13328- |> from_map()
13329- end
13330-
13331- def to_map(struct) do
13332- %{
13333- "undefined" => struct.undefined,
13334- }
13335- end
13336-
13337- def to_json(struct) do
13338- struct
13339- |> to_map()
13340- |> Jason.encode!()
13341- end
13342-end
13343-
13344-defmodule Union do
13345- @enforce_keys [:union]
13346- defstruct [:union]
13347-
13348- @type t :: %__MODULE__{
13349- union: integer()
13350- }
13351-
13352- def decode_union(value) when is_integer(value), do: value
13353- def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"}
13354-
13355- def encode_union(value) when is_integer(value), do: value
13356- def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"}
13357-
13358- def from_map(m) do
13359- %Union{
13360- union: decode_union(m["union"]),
13361- }
13362- end
13363-
13364- def from_json(json) do
13365- json
13366- |> Jason.decode!()
13367- |> from_map()
13368- end
13369-
13370- def to_map(struct) do
13371- %{
13372- "union" => struct.union,
13373- }
13374- end
13375-
13376- def to_json(struct) do
13377- struct
13378- |> to_map()
13379- |> Jason.encode!()
13380- end
13381-end
13382-
13383-defmodule UnmarshalJSON do
13384- @enforce_keys [:unmarshal_json]
13385- defstruct [:unmarshal_json]
13386-
13387- @type t :: %__MODULE__{
13388- unmarshal_json: integer()
13389- }
13390-
13391- def decode_unmarshal_json(value) when is_integer(value), do: value
13392- def decode_unmarshal_json(_), do: {:error, "Unexpected type when decoding UnmarshalJSON.unmarshal_json"}
13393-
13394- def encode_unmarshal_json(value) when is_integer(value), do: value
13395- def encode_unmarshal_json(_), do: {:error, "Unexpected type when encoding UnmarshalJSON.unmarshal_json"}
13396-
13397- def from_map(m) do
13398- %UnmarshalJSON{
13399- unmarshal_json: decode_unmarshal_json(m["UnmarshalJSON"]),
13400- }
13401- end
13402-
13403- def from_json(json) do
13404- json
13405- |> Jason.decode!()
13406- |> from_map()
13407- end
13408-
13409- def to_map(struct) do
13410- %{
13411- "UnmarshalJSON" => struct.unmarshal_json,
13412- }
13413- end
13414-
13415- def to_json(struct) do
13416- struct
13417- |> to_map()
13418- |> Jason.encode!()
13419- end
13420-end
13421-
13422-defmodule Unowned do
13423- @enforce_keys [:unowned]
13424- defstruct [:unowned]
13425-
13426- @type t :: %__MODULE__{
13427- unowned: integer()
13428- }
13429-
13430- def decode_unowned(value) when is_integer(value), do: value
13431- def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"}
13432-
13433- def encode_unowned(value) when is_integer(value), do: value
13434- def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"}
13435-
13436- def from_map(m) do
13437- %Unowned{
13438- unowned: decode_unowned(m["unowned"]),
13439- }
13440- end
13441-
13442- def from_json(json) do
13443- json
13444- |> Jason.decode!()
13445- |> from_map()
13446- end
13447-
13448- def to_map(struct) do
13449- %{
13450- "unowned" => struct.unowned,
13451- }
13452- end
13453-
13454- def to_json(struct) do
13455- struct
13456- |> to_map()
13457- |> Jason.encode!()
13458- end
13459-end
13460-
13461-defmodule Unsafe do
13462- @enforce_keys [:unsafe]
13463- defstruct [:unsafe]
13464-
13465- @type t :: %__MODULE__{
13466- unsafe: integer()
13467- }
13468-
13469- def decode_unsafe(value) when is_integer(value), do: value
13470- def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"}
13471-
13472- def encode_unsafe(value) when is_integer(value), do: value
13473- def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"}
13474-
13475- def from_map(m) do
13476- %Unsafe{
13477- unsafe: decode_unsafe(m["unsafe"]),
13478- }
13479- end
13480-
13481- def from_json(json) do
13482- json
13483- |> Jason.decode!()
13484- |> from_map()
13485- end
13486-
13487- def to_map(struct) do
13488- %{
13489- "unsafe" => struct.unsafe,
13490- }
13491- end
13492-
13493- def to_json(struct) do
13494- struct
13495- |> to_map()
13496- |> Jason.encode!()
13497- end
13498-end
13499-
13500-defmodule UseSerializers do
13501- @enforce_keys [:use_serializers]
13502- defstruct [:use_serializers]
13419+defmodule Undefined do
13420+ @enforce_keys [:undefined]
13421+ defstruct [:undefined]
1350313422
1350413423 @type t :: %__MODULE__{
13505- use_serializers: integer()
13424+ undefined: integer()
1350613425 }
1350713426
13508- def decode_use_serializers(value) when is_integer(value), do: value
13509- def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"}
13427+ def decode_undefined(value) when is_integer(value), do: value
13428+ def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"}
1351013429
13511- def encode_use_serializers(value) when is_integer(value), do: value
13512- def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"}
13430+ def encode_undefined(value) when is_integer(value), do: value
13431+ def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"}
1351313432
1351413433 def from_map(m) do
13515- %UseSerializers{
13516- use_serializers: decode_use_serializers(m["UseSerializers"]),
13434+ %Undefined{
13435+ undefined: decode_undefined(m["undefined"]),
1351713436 }
1351813437 end
1351913438
@@ -13525,7 +13444,7 @@ defmodule UseSerializers do
1352513444
1352613445 def to_map(struct) do
1352713446 %{
13528- "UseSerializers" => struct.use_serializers,
13447+ "undefined" => struct.undefined,
1352913448 }
1353013449 end
1353113450
@@ -13537,8 +13456,8 @@ defmodule UseSerializers do
1353713456 end
1353813457
1353913458 defmodule Obj5 do
13540- @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, :unmarshal_json, :unowned, :unsafe, :use_serializers]
13541- 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, :unmarshal_json, :unowned, :unsafe, :use_serializers]
13459+ @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :s, :sbyte, :sealed, :sel, :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]
13460+ defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :s, :sbyte, :sealed, :sel, :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]
1354213461
1354313462 @type t :: %__MODULE__{
1354413463 dummy: integer(),
@@ -13547,6 +13466,10 @@ defmodule Obj5 do
1354713466 obj5_true: TrueClass.t(),
1354813467 obj5_type: TypeClass.t(),
1354913468 primitive_kind: PrimitiveKind.t(),
13469+ s: S.t(),
13470+ sbyte: Sbyte.t(),
13471+ sealed: Sealed.t(),
13472+ sel: Sel.t(),
1355013473 select: Select.t(),
1355113474 self: Self.t(),
1355213475 sendable: Sendable.t(),
@@ -13601,12 +13524,7 @@ defmodule Obj5 do
1360113524 uint: Uint.t(),
1360213525 ulong: Ulong.t(),
1360313526 unchecked: Unchecked.t(),
13604- undefined: Undefined.t(),
13605- union: Union.t(),
13606- unmarshal_json: UnmarshalJSON.t(),
13607- unowned: Unowned.t(),
13608- unsafe: Unsafe.t(),
13609- use_serializers: UseSerializers.t()
13527+ undefined: Undefined.t()
1361013528 }
1361113529
1361213530 def decode_dummy(value) when is_integer(value), do: value
@@ -13623,6 +13541,10 @@ defmodule Obj5 do
1362313541 obj5_true: TrueClass.from_map(m["True"]),
1362413542 obj5_type: TypeClass.from_map(m["type"]),
1362513543 primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]),
13544+ s: S.from_map(m["s"]),
13545+ sbyte: Sbyte.from_map(m["sbyte"]),
13546+ sealed: Sealed.from_map(m["sealed"]),
13547+ sel: Sel.from_map(m["SEL"]),
1362613548 select: Select.from_map(m["select"]),
1362713549 self: Self.from_map(m["Self"]),
1362813550 sendable: Sendable.from_map(m["Sendable"]),
@@ -13678,11 +13600,6 @@ defmodule Obj5 do
1367813600 ulong: Ulong.from_map(m["ulong"]),
1367913601 unchecked: Unchecked.from_map(m["unchecked"]),
1368013602 undefined: Undefined.from_map(m["undefined"]),
13681- union: Union.from_map(m["union"]),
13682- unmarshal_json: UnmarshalJSON.from_map(m["UnmarshalJSON"]),
13683- unowned: Unowned.from_map(m["unowned"]),
13684- unsafe: Unsafe.from_map(m["unsafe"]),
13685- use_serializers: UseSerializers.from_map(m["UseSerializers"]),
1368613603 }
1368713604 end
1368813605
@@ -13700,6 +13617,10 @@ defmodule Obj5 do
1370013617 "True" => TrueClass.to_map(struct.obj5_true),
1370113618 "type" => TypeClass.to_map(struct.obj5_type),
1370213619 "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind),
13620+ "s" => S.to_map(struct.s),
13621+ "sbyte" => Sbyte.to_map(struct.sbyte),
13622+ "sealed" => Sealed.to_map(struct.sealed),
13623+ "SEL" => Sel.to_map(struct.sel),
1370313624 "select" => Select.to_map(struct.select),
1370413625 "Self" => Self.to_map(struct.self),
1370513626 "Sendable" => Sendable.to_map(struct.sendable),
@@ -13755,11 +13676,162 @@ defmodule Obj5 do
1375513676 "ulong" => Ulong.to_map(struct.ulong),
1375613677 "unchecked" => Unchecked.to_map(struct.unchecked),
1375713678 "undefined" => Undefined.to_map(struct.undefined),
13758- "union" => Union.to_map(struct.union),
13759- "UnmarshalJSON" => UnmarshalJSON.to_map(struct.unmarshal_json),
13760- "unowned" => Unowned.to_map(struct.unowned),
13761- "unsafe" => Unsafe.to_map(struct.unsafe),
13762- "UseSerializers" => UseSerializers.to_map(struct.use_serializers),
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 Union do
13690+ @enforce_keys [:union]
13691+ defstruct [:union]
13692+
13693+ @type t :: %__MODULE__{
13694+ union: integer()
13695+ }
13696+
13697+ def decode_union(value) when is_integer(value), do: value
13698+ def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"}
13699+
13700+ def encode_union(value) when is_integer(value), do: value
13701+ def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"}
13702+
13703+ def from_map(m) do
13704+ %Union{
13705+ union: decode_union(m["union"]),
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+ "union" => struct.union,
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 UnmarshalJSON do
13729+ @enforce_keys [:unmarshal_json]
13730+ defstruct [:unmarshal_json]
13731+
13732+ @type t :: %__MODULE__{
13733+ unmarshal_json: integer()
13734+ }
13735+
13736+ def decode_unmarshal_json(value) when is_integer(value), do: value
13737+ def decode_unmarshal_json(_), do: {:error, "Unexpected type when decoding UnmarshalJSON.unmarshal_json"}
13738+
13739+ def encode_unmarshal_json(value) when is_integer(value), do: value
13740+ def encode_unmarshal_json(_), do: {:error, "Unexpected type when encoding UnmarshalJSON.unmarshal_json"}
13741+
13742+ def from_map(m) do
13743+ %UnmarshalJSON{
13744+ unmarshal_json: decode_unmarshal_json(m["UnmarshalJSON"]),
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+ "UnmarshalJSON" => struct.unmarshal_json,
13757+ }
13758+ end
13759+
13760+ def to_json(struct) do
13761+ struct
13762+ |> to_map()
13763+ |> Jason.encode!()
13764+ end
13765+end
13766+
13767+defmodule Unowned do
13768+ @enforce_keys [:unowned]
13769+ defstruct [:unowned]
13770+
13771+ @type t :: %__MODULE__{
13772+ unowned: integer()
13773+ }
13774+
13775+ def decode_unowned(value) when is_integer(value), do: value
13776+ def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"}
13777+
13778+ def encode_unowned(value) when is_integer(value), do: value
13779+ def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"}
13780+
13781+ def from_map(m) do
13782+ %Unowned{
13783+ unowned: decode_unowned(m["unowned"]),
13784+ }
13785+ end
13786+
13787+ def from_json(json) do
13788+ json
13789+ |> Jason.decode!()
13790+ |> from_map()
13791+ end
13792+
13793+ def to_map(struct) do
13794+ %{
13795+ "unowned" => struct.unowned,
13796+ }
13797+ end
13798+
13799+ def to_json(struct) do
13800+ struct
13801+ |> to_map()
13802+ |> Jason.encode!()
13803+ end
13804+end
13805+
13806+defmodule Unsafe do
13807+ @enforce_keys [:unsafe]
13808+ defstruct [:unsafe]
13809+
13810+ @type t :: %__MODULE__{
13811+ unsafe: integer()
13812+ }
13813+
13814+ def decode_unsafe(value) when is_integer(value), do: value
13815+ def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"}
13816+
13817+ def encode_unsafe(value) when is_integer(value), do: value
13818+ def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"}
13819+
13820+ def from_map(m) do
13821+ %Unsafe{
13822+ unsafe: decode_unsafe(m["unsafe"]),
13823+ }
13824+ end
13825+
13826+ def from_json(json) do
13827+ json
13828+ |> Jason.decode!()
13829+ |> from_map()
13830+ end
13831+
13832+ def to_map(struct) do
13833+ %{
13834+ "unsafe" => struct.unsafe,
1376313835 }
1376413836 end
1376513837
@@ -13809,6 +13881,45 @@ defmodule Unsigned do
1380913881 end
1381013882 end
1381113883
13884+defmodule UseSerializers do
13885+ @enforce_keys [:use_serializers]
13886+ defstruct [:use_serializers]
13887+
13888+ @type t :: %__MODULE__{
13889+ use_serializers: integer()
13890+ }
13891+
13892+ def decode_use_serializers(value) when is_integer(value), do: value
13893+ def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"}
13894+
13895+ def encode_use_serializers(value) when is_integer(value), do: value
13896+ def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"}
13897+
13898+ def from_map(m) do
13899+ %UseSerializers{
13900+ use_serializers: decode_use_serializers(m["UseSerializers"]),
13901+ }
13902+ end
13903+
13904+ def from_json(json) do
13905+ json
13906+ |> Jason.decode!()
13907+ |> from_map()
13908+ end
13909+
13910+ def to_map(struct) do
13911+ %{
13912+ "UseSerializers" => struct.use_serializers,
13913+ }
13914+ end
13915+
13916+ def to_json(struct) do
13917+ struct
13918+ |> to_map()
13919+ |> Jason.encode!()
13920+ end
13921+end
13922+
1381213923 defmodule Ushort do
1381313924 @enforce_keys [:ushort]
1381413925 defstruct [:ushort]
@@ -14551,12 +14662,17 @@ defmodule Yield do
1455114662 end
1455214663
1455314664 defmodule Obj6 do
14554- @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]
14555- 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]
14665+ @enforce_keys [:dummy, :union, :unmarshal_json, :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]
14666+ defstruct [:dummy, :union, :unmarshal_json, :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]
1455614667
1455714668 @type t :: %__MODULE__{
1455814669 dummy: integer(),
14670+ union: Union.t(),
14671+ unmarshal_json: UnmarshalJSON.t(),
14672+ unowned: Unowned.t(),
14673+ unsafe: Unsafe.t(),
1455914674 unsigned: Unsigned.t(),
14675+ use_serializers: UseSerializers.t(),
1456014676 ushort: Ushort.t(),
1456114677 using: Using.t(),
1456214678 utf8_json_reader: Utf8JSONReader.t(),
@@ -14587,7 +14703,12 @@ defmodule Obj6 do
1458714703 def from_map(m) do
1458814704 %Obj6{
1458914705 dummy: decode_dummy(m["dummy"]),
14706+ union: Union.from_map(m["union"]),
14707+ unmarshal_json: UnmarshalJSON.from_map(m["UnmarshalJSON"]),
14708+ unowned: Unowned.from_map(m["unowned"]),
14709+ unsafe: Unsafe.from_map(m["unsafe"]),
1459014710 unsigned: Unsigned.from_map(m["unsigned"]),
14711+ use_serializers: UseSerializers.from_map(m["UseSerializers"]),
1459114712 ushort: Ushort.from_map(m["ushort"]),
1459214713 using: Using.from_map(m["using"]),
1459314714 utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
@@ -14619,7 +14740,12 @@ defmodule Obj6 do
1461914740 def to_map(struct) do
1462014741 %{
1462114742 "dummy" => struct.dummy,
14743+ "union" => Union.to_map(struct.union),
14744+ "UnmarshalJSON" => UnmarshalJSON.to_map(struct.unmarshal_json),
14745+ "unowned" => Unowned.to_map(struct.unowned),
14746+ "unsafe" => Unsafe.to_map(struct.unsafe),
1462214747 "unsigned" => Unsigned.to_map(struct.unsigned),
14748+ "UseSerializers" => UseSerializers.to_map(struct.use_serializers),
1462314749 "ushort" => Ushort.to_map(struct.ushort),
1462414750 "using" => Using.to_map(struct.using),
1462514751 "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
Melmdefault / QuickType.elm+264 −207
@@ -189,6 +189,7 @@ module QuickType exposing
189189 , Lazy
190190 , Left
191191 , ListClass
192+ , LocalDate
192193 , Locale
193194 , Lock
194195 , Long
@@ -202,8 +203,6 @@ module QuickType exposing
202203 , Native
203204 , New
204205 , Newtonsoft
205- , Nil
206- , No
207206 , If
208207 , Import
209208 , In
@@ -212,6 +211,8 @@ module QuickType exposing
212211 , Let
213212 , Module
214213 , Obj4
214+ , Nil
215+ , No
215216 , NoSuchMethod
216217 , Noexcept
217218 , Nonatomic
@@ -233,6 +234,8 @@ module QuickType exposing
233234 , ProtocolClass
234235 , Object
235236 , ObjectMapper
237+ , OffsetDateTime
238+ , OffsetTime
236239 , Oneway
237240 , Open
238241 , Operator
@@ -272,10 +275,6 @@ module QuickType exposing
272275 , Return
273276 , Right
274277 , RuntimeType
275- , S
276- , Sbyte
277- , Sealed
278- , Sel
279278 , Obj5
280279 , KSerializer
281280 , SelfClass
@@ -285,6 +284,10 @@ module QuickType exposing
285284 , Type
286285 , PrimitiveKind
287286 , TypeClass
287+ , S
288+ , Sbyte
289+ , Sealed
290+ , Sel
288291 , Select
289292 , Self
290293 , Sendable
@@ -337,14 +340,14 @@ module QuickType exposing
337340 , Ulong
338341 , Unchecked
339342 , Undefined
343+ , Obj6
344+ , Where
340345 , Union
341346 , UnmarshalJSON
342347 , Unowned
343348 , Unsafe
344- , UseSerializers
345- , Obj6
346- , Where
347349 , Unsigned
350+ , UseSerializers
348351 , Ushort
349352 , Using
350353 , Utf8JSONReader
@@ -1078,6 +1081,7 @@ type alias Obj3 =
10781081 , lazy : Lazy
10791082 , left : Left
10801083 , list : ListClass
1084+ , localDate : LocalDate
10811085 , locale : Locale
10821086 , lock : Lock
10831087 , long : Long
@@ -1091,8 +1095,6 @@ type alias Obj3 =
10911095 , native : Native
10921096 , new : New
10931097 , newtonsoft : Newtonsoft
1094- , nil : Nil
1095- , no : No
10961098 , obj3If : If
10971099 , obj3Import : Import
10981100 , obj3In : In
@@ -1274,6 +1276,10 @@ type alias ListClass =
12741276 { list : Int
12751277 }
12761278
1279+type alias LocalDate =
1280+ { localDate : Int
1281+ }
1282+
12771283 type alias Locale =
12781284 { locale : Int
12791285 }
@@ -1326,14 +1332,6 @@ type alias Newtonsoft =
13261332 { newtonsoft : Int
13271333 }
13281334
1329-type alias Nil =
1330- { nil : Int
1331- }
1332-
1333-type alias No =
1334- { no : Int
1335- }
1336-
13371335 type alias If =
13381336 { ifIf : Int
13391337 }
@@ -1364,6 +1362,8 @@ type alias Module =
13641362
13651363 type alias Obj4 =
13661364 { dummy : Int
1365+ , nil : Nil
1366+ , no : No
13671367 , noSuchMethod : NoSuchMethod
13681368 , noexcept : Noexcept
13691369 , nonatomic : Nonatomic
@@ -1385,6 +1385,8 @@ type alias Obj4 =
13851385 , obj4Protocol : ProtocolClass
13861386 , object : Object
13871387 , objectMapper : ObjectMapper
1388+ , offsetDateTime : OffsetDateTime
1389+ , offsetTime : OffsetTime
13881390 , oneway : Oneway
13891391 , open : Open
13901392 , operator : Operator
@@ -1424,10 +1426,14 @@ type alias Obj4 =
14241426 , return : Return
14251427 , right : Right
14261428 , runtimeType : RuntimeType
1427- , s : S
1428- , sbyte : Sbyte
1429- , sealed : Sealed
1430- , sel : Sel
1429+ }
1430+
1431+type alias Nil =
1432+ { nil : Int
1433+ }
1434+
1435+type alias No =
1436+ { no : Int
14311437 }
14321438
14331439 type alias NoSuchMethod =
@@ -1514,6 +1520,14 @@ type alias ObjectMapper =
15141520 { objectMapper : Int
15151521 }
15161522
1523+type alias OffsetDateTime =
1524+ { offsetDateTime : Int
1525+ }
1526+
1527+type alias OffsetTime =
1528+ { offsetTime : Int
1529+ }
1530+
15171531 type alias Oneway =
15181532 { oneway : Int
15191533 }
@@ -1670,22 +1684,6 @@ type alias RuntimeType =
16701684 { runtimeType : Int
16711685 }
16721686
1673-type alias S =
1674- { s : Int
1675- }
1676-
1677-type alias Sbyte =
1678- { sbyte : Int
1679- }
1680-
1681-type alias Sealed =
1682- { sealed : Int
1683- }
1684-
1685-type alias Sel =
1686- { sel : Int
1687- }
1688-
16891687 type alias Obj5 =
16901688 { dummy : Int
16911689 , kSerializer : KSerializer
@@ -1696,6 +1694,10 @@ type alias Obj5 =
16961694 , obj5Type : Type
16971695 , primitiveKind : PrimitiveKind
16981696 , purpleType : TypeClass
1697+ , s : S
1698+ , sbyte : Sbyte
1699+ , sealed : Sealed
1700+ , sel : Sel
16991701 , select : Select
17001702 , self : Self
17011703 , sendable : Sendable
@@ -1748,11 +1750,6 @@ type alias Obj5 =
17481750 , ulong : Ulong
17491751 , unchecked : Unchecked
17501752 , undefined : Undefined
1751- , union : Union
1752- , unmarshalJSON : UnmarshalJSON
1753- , unowned : Unowned
1754- , unsafe : Unsafe
1755- , useSerializers : UseSerializers
17561753 }
17571754
17581755 type alias KSerializer =
@@ -1787,6 +1784,22 @@ type alias TypeClass =
17871784 { typeType : Int
17881785 }
17891786
1787+type alias S =
1788+ { s : Int
1789+ }
1790+
1791+type alias Sbyte =
1792+ { sbyte : Int
1793+ }
1794+
1795+type alias Sealed =
1796+ { sealed : Int
1797+ }
1798+
1799+type alias Sel =
1800+ { sel : Int
1801+ }
1802+
17901803 type alias Select =
17911804 { select : Int
17921805 }
@@ -1995,30 +2008,15 @@ type alias Undefined =
19952008 { undefined : Int
19962009 }
19972010
1998-type alias Union =
1999- { union : Int
2000- }
2001-
2002-type alias UnmarshalJSON =
2003- { unmarshalJSON : Int
2004- }
2005-
2006-type alias Unowned =
2007- { unowned : Int
2008- }
2009-
2010-type alias Unsafe =
2011- { unsafe : Int
2012- }
2013-
2014-type alias UseSerializers =
2015- { useSerializers : Int
2016- }
2017-
20182011 type alias Obj6 =
20192012 { dummy : Int
20202013 , obj6Where : Where
2014+ , union : Union
2015+ , unmarshalJSON : UnmarshalJSON
2016+ , unowned : Unowned
2017+ , unsafe : Unsafe
20212018 , unsigned : Unsigned
2019+ , useSerializers : UseSerializers
20222020 , ushort : Ushort
20232021 , using : Using
20242022 , utf8JSONReader : Utf8JSONReader
@@ -2043,10 +2041,30 @@ type alias Where =
20432041 { whereWhere : Int
20442042 }
20452043
2044+type alias Union =
2045+ { union : Int
2046+ }
2047+
2048+type alias UnmarshalJSON =
2049+ { unmarshalJSON : Int
2050+ }
2051+
2052+type alias Unowned =
2053+ { unowned : Int
2054+ }
2055+
2056+type alias Unsafe =
2057+ { unsafe : Int
2058+ }
2059+
20462060 type alias Unsigned =
20472061 { unsigned : Int
20482062 }
20492063
2064+type alias UseSerializers =
2065+ { useSerializers : Int
2066+ }
2067+
20502068 type alias Ushort =
20512069 { ushort : Int
20522070 }
@@ -3901,6 +3919,7 @@ obj3 =
39013919 |> Jpipe.required "lazy" lazy
39023920 |> Jpipe.required "left" left
39033921 |> Jpipe.required "list" listClass
3922+ |> Jpipe.required "LocalDate" localDate
39043923 |> Jpipe.required "Locale" locale
39053924 |> Jpipe.required "lock" lock
39063925 |> Jpipe.required "long" long
@@ -3914,8 +3933,6 @@ obj3 =
39143933 |> Jpipe.required "native" native
39153934 |> Jpipe.required "new" new
39163935 |> Jpipe.required "newtonsoft" newtonsoft
3917- |> Jpipe.required "nil" nil
3918- |> Jpipe.required "NO" no
39193936 |> Jpipe.required "if" purpleIf
39203937 |> Jpipe.required "import" purpleImport
39213938 |> Jpipe.required "in" purpleIn
@@ -3971,6 +3988,7 @@ encodeObj3 x =
39713988 , ("lazy", encodeLazy x.lazy)
39723989 , ("left", encodeLeft x.left)
39733990 , ("list", encodeListClass x.list)
3991+ , ("LocalDate", encodeLocalDate x.localDate)
39743992 , ("Locale", encodeLocale x.locale)
39753993 , ("lock", encodeLock x.lock)
39763994 , ("long", encodeLong x.long)
@@ -3984,8 +4002,6 @@ encodeObj3 x =
39844002 , ("native", encodeNative x.native)
39854003 , ("new", encodeNew x.new)
39864004 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
3987- , ("nil", encodeNil x.nil)
3988- , ("NO", encodeNo x.no)
39894005 , ("if", encodeIf x.obj3If)
39904006 , ("import", encodeImport x.obj3Import)
39914007 , ("in", encodeIn x.obj3In)
@@ -4468,6 +4484,17 @@ encodeListClass x =
44684484 [ ("list", Jenc.int x.list)
44694485 ]
44704486
4487+localDate : Jdec.Decoder LocalDate
4488+localDate =
4489+ Jdec.succeed LocalDate
4490+ |> Jpipe.required "LocalDate" Jdec.int
4491+
4492+encodeLocalDate : LocalDate -> Jenc.Value
4493+encodeLocalDate x =
4494+ Jenc.object
4495+ [ ("LocalDate", Jenc.int x.localDate)
4496+ ]
4497+
44714498 locale : Jdec.Decoder Locale
44724499 locale =
44734500 Jdec.succeed Locale
@@ -4611,28 +4638,6 @@ encodeNewtonsoft x =
46114638 [ ("newtonsoft", Jenc.int x.newtonsoft)
46124639 ]
46134640
4614-nil : Jdec.Decoder Nil
4615-nil =
4616- Jdec.succeed Nil
4617- |> Jpipe.required "nil" Jdec.int
4618-
4619-encodeNil : Nil -> Jenc.Value
4620-encodeNil x =
4621- Jenc.object
4622- [ ("nil", Jenc.int x.nil)
4623- ]
4624-
4625-no : Jdec.Decoder No
4626-no =
4627- Jdec.succeed No
4628- |> Jpipe.required "NO" Jdec.int
4629-
4630-encodeNo : No -> Jenc.Value
4631-encodeNo x =
4632- Jenc.object
4633- [ ("NO", Jenc.int x.no)
4634- ]
4635-
46364641 purpleIf : Jdec.Decoder If
46374642 purpleIf =
46384643 Jdec.succeed If
@@ -4714,6 +4719,8 @@ obj4 : Jdec.Decoder Obj4
47144719 obj4 =
47154720 Jdec.succeed Obj4
47164721 |> Jpipe.required "dummy" Jdec.int
4722+ |> Jpipe.required "nil" nil
4723+ |> Jpipe.required "NO" no
47174724 |> Jpipe.required "noSuchMethod" noSuchMethod
47184725 |> Jpipe.required "noexcept" noexcept
47194726 |> Jpipe.required "nonatomic" nonatomic
@@ -4735,6 +4742,8 @@ obj4 =
47354742 |> Jpipe.required "protocol" protocolClass
47364743 |> Jpipe.required "object" object
47374744 |> Jpipe.required "ObjectMapper" objectMapper
4745+ |> Jpipe.required "OffsetDateTime" offsetDateTime
4746+ |> Jpipe.required "OffsetTime" offsetTime
47384747 |> Jpipe.required "oneway" oneway
47394748 |> Jpipe.required "open" open
47404749 |> Jpipe.required "operator" operator
@@ -4774,15 +4783,13 @@ obj4 =
47744783 |> Jpipe.required "return" return
47754784 |> Jpipe.required "right" right
47764785 |> Jpipe.required "runtimeType" runtimeType
4777- |> Jpipe.required "s" s
4778- |> Jpipe.required "sbyte" sbyte
4779- |> Jpipe.required "sealed" sealed
4780- |> Jpipe.required "SEL" sel
47814786
47824787 encodeObj4 : Obj4 -> Jenc.Value
47834788 encodeObj4 x =
47844789 Jenc.object
47854790 [ ("dummy", Jenc.int x.dummy)
4791+ , ("nil", encodeNil x.nil)
4792+ , ("NO", encodeNo x.no)
47864793 , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
47874794 , ("noexcept", encodeNoexcept x.noexcept)
47884795 , ("nonatomic", encodeNonatomic x.nonatomic)
@@ -4804,6 +4811,8 @@ encodeObj4 x =
48044811 , ("protocol", encodeProtocolClass x.obj4Protocol)
48054812 , ("object", encodeObject x.object)
48064813 , ("ObjectMapper", encodeObjectMapper x.objectMapper)
4814+ , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime)
4815+ , ("OffsetTime", encodeOffsetTime x.offsetTime)
48074816 , ("oneway", encodeOneway x.oneway)
48084817 , ("open", encodeOpen x.open)
48094818 , ("operator", encodeOperator x.operator)
@@ -4843,10 +4852,28 @@ encodeObj4 x =
48434852 , ("return", encodeReturn x.return)
48444853 , ("right", encodeRight x.right)
48454854 , ("runtimeType", encodeRuntimeType x.runtimeType)
4846- , ("s", encodeS x.s)
4847- , ("sbyte", encodeSbyte x.sbyte)
4848- , ("sealed", encodeSealed x.sealed)
4849- , ("SEL", encodeSel x.sel)
4855+ ]
4856+
4857+nil : Jdec.Decoder Nil
4858+nil =
4859+ Jdec.succeed Nil
4860+ |> Jpipe.required "nil" Jdec.int
4861+
4862+encodeNil : Nil -> Jenc.Value
4863+encodeNil x =
4864+ Jenc.object
4865+ [ ("nil", Jenc.int x.nil)
4866+ ]
4867+
4868+no : Jdec.Decoder No
4869+no =
4870+ Jdec.succeed No
4871+ |> Jpipe.required "NO" Jdec.int
4872+
4873+encodeNo : No -> Jenc.Value
4874+encodeNo x =
4875+ Jenc.object
4876+ [ ("NO", Jenc.int x.no)
48504877 ]
48514878
48524879 noSuchMethod : Jdec.Decoder NoSuchMethod
@@ -5080,6 +5107,28 @@ encodeObjectMapper x =
50805107 [ ("ObjectMapper", Jenc.int x.objectMapper)
50815108 ]
50825109
5110+offsetDateTime : Jdec.Decoder OffsetDateTime
5111+offsetDateTime =
5112+ Jdec.succeed OffsetDateTime
5113+ |> Jpipe.required "OffsetDateTime" Jdec.int
5114+
5115+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
5116+encodeOffsetDateTime x =
5117+ Jenc.object
5118+ [ ("OffsetDateTime", Jenc.int x.offsetDateTime)
5119+ ]
5120+
5121+offsetTime : Jdec.Decoder OffsetTime
5122+offsetTime =
5123+ Jdec.succeed OffsetTime
5124+ |> Jpipe.required "OffsetTime" Jdec.int
5125+
5126+encodeOffsetTime : OffsetTime -> Jenc.Value
5127+encodeOffsetTime x =
5128+ Jenc.object
5129+ [ ("OffsetTime", Jenc.int x.offsetTime)
5130+ ]
5131+
50835132 oneway : Jdec.Decoder Oneway
50845133 oneway =
50855134 Jdec.succeed Oneway
@@ -5509,50 +5558,6 @@ encodeRuntimeType x =
55095558 [ ("runtimeType", Jenc.int x.runtimeType)
55105559 ]
55115560
5512-s : Jdec.Decoder S
5513-s =
5514- Jdec.succeed S
5515- |> Jpipe.required "s" Jdec.int
5516-
5517-encodeS : S -> Jenc.Value
5518-encodeS x =
5519- Jenc.object
5520- [ ("s", Jenc.int x.s)
5521- ]
5522-
5523-sbyte : Jdec.Decoder Sbyte
5524-sbyte =
5525- Jdec.succeed Sbyte
5526- |> Jpipe.required "sbyte" Jdec.int
5527-
5528-encodeSbyte : Sbyte -> Jenc.Value
5529-encodeSbyte x =
5530- Jenc.object
5531- [ ("sbyte", Jenc.int x.sbyte)
5532- ]
5533-
5534-sealed : Jdec.Decoder Sealed
5535-sealed =
5536- Jdec.succeed Sealed
5537- |> Jpipe.required "sealed" Jdec.int
5538-
5539-encodeSealed : Sealed -> Jenc.Value
5540-encodeSealed x =
5541- Jenc.object
5542- [ ("sealed", Jenc.int x.sealed)
5543- ]
5544-
5545-sel : Jdec.Decoder Sel
5546-sel =
5547- Jdec.succeed Sel
5548- |> Jpipe.required "SEL" Jdec.int
5549-
5550-encodeSel : Sel -> Jenc.Value
5551-encodeSel x =
5552- Jenc.object
5553- [ ("SEL", Jenc.int x.sel)
5554- ]
5555-
55565561 obj5 : Jdec.Decoder Obj5
55575562 obj5 =
55585563 Jdec.succeed Obj5
@@ -5565,6 +5570,10 @@ obj5 =
55655570 |> Jpipe.required "Type" purpleType
55665571 |> Jpipe.required "PrimitiveKind" primitiveKind
55675572 |> Jpipe.required "type" typeClass
5573+ |> Jpipe.required "s" s
5574+ |> Jpipe.required "sbyte" sbyte
5575+ |> Jpipe.required "sealed" sealed
5576+ |> Jpipe.required "SEL" sel
55685577 |> Jpipe.required "select" select
55695578 |> Jpipe.required "Self" self
55705579 |> Jpipe.required "Sendable" sendable
@@ -5617,11 +5626,6 @@ obj5 =
56175626 |> Jpipe.required "ulong" ulong
56185627 |> Jpipe.required "unchecked" unchecked
56195628 |> Jpipe.required "undefined" undefined
5620- |> Jpipe.required "union" union
5621- |> Jpipe.required "UnmarshalJSON" unmarshalJSON
5622- |> Jpipe.required "unowned" unowned
5623- |> Jpipe.required "unsafe" unsafe
5624- |> Jpipe.required "UseSerializers" useSerializers
56255629
56265630 encodeObj5 : Obj5 -> Jenc.Value
56275631 encodeObj5 x =
@@ -5635,6 +5639,10 @@ encodeObj5 x =
56355639 , ("Type", encodeType x.obj5Type)
56365640 , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind)
56375641 , ("type", encodeTypeClass x.purpleType)
5642+ , ("s", encodeS x.s)
5643+ , ("sbyte", encodeSbyte x.sbyte)
5644+ , ("sealed", encodeSealed x.sealed)
5645+ , ("SEL", encodeSel x.sel)
56385646 , ("select", encodeSelect x.select)
56395647 , ("Self", encodeSelf x.self)
56405648 , ("Sendable", encodeSendable x.sendable)
@@ -5687,11 +5695,6 @@ encodeObj5 x =
56875695 , ("ulong", encodeUlong x.ulong)
56885696 , ("unchecked", encodeUnchecked x.unchecked)
56895697 , ("undefined", encodeUndefined x.undefined)
5690- , ("union", encodeUnion x.union)
5691- , ("UnmarshalJSON", encodeUnmarshalJSON x.unmarshalJSON)
5692- , ("unowned", encodeUnowned x.unowned)
5693- , ("unsafe", encodeUnsafe x.unsafe)
5694- , ("UseSerializers", encodeUseSerializers x.useSerializers)
56955698 ]
56965699
56975700 kSerializer : Jdec.Decoder KSerializer
@@ -5782,6 +5785,50 @@ encodeTypeClass x =
57825785 [ ("type", Jenc.int x.typeType)
57835786 ]
57845787
5788+s : Jdec.Decoder S
5789+s =
5790+ Jdec.succeed S
5791+ |> Jpipe.required "s" Jdec.int
5792+
5793+encodeS : S -> Jenc.Value
5794+encodeS x =
5795+ Jenc.object
5796+ [ ("s", Jenc.int x.s)
5797+ ]
5798+
5799+sbyte : Jdec.Decoder Sbyte
5800+sbyte =
5801+ Jdec.succeed Sbyte
5802+ |> Jpipe.required "sbyte" Jdec.int
5803+
5804+encodeSbyte : Sbyte -> Jenc.Value
5805+encodeSbyte x =
5806+ Jenc.object
5807+ [ ("sbyte", Jenc.int x.sbyte)
5808+ ]
5809+
5810+sealed : Jdec.Decoder Sealed
5811+sealed =
5812+ Jdec.succeed Sealed
5813+ |> Jpipe.required "sealed" Jdec.int
5814+
5815+encodeSealed : Sealed -> Jenc.Value
5816+encodeSealed x =
5817+ Jenc.object
5818+ [ ("sealed", Jenc.int x.sealed)
5819+ ]
5820+
5821+sel : Jdec.Decoder Sel
5822+sel =
5823+ Jdec.succeed Sel
5824+ |> Jpipe.required "SEL" Jdec.int
5825+
5826+encodeSel : Sel -> Jenc.Value
5827+encodeSel x =
5828+ Jenc.object
5829+ [ ("SEL", Jenc.int x.sel)
5830+ ]
5831+
57855832 select : Jdec.Decoder Select
57865833 select =
57875834 Jdec.succeed Select
@@ -6354,67 +6401,17 @@ encodeUndefined x =
63546401 [ ("undefined", Jenc.int x.undefined)
63556402 ]
63566403
6357-union : Jdec.Decoder Union
6358-union =
6359- Jdec.succeed Union
6360- |> Jpipe.required "union" Jdec.int
6361-
6362-encodeUnion : Union -> Jenc.Value
6363-encodeUnion x =
6364- Jenc.object
6365- [ ("union", Jenc.int x.union)
6366- ]
6367-
6368-unmarshalJSON : Jdec.Decoder UnmarshalJSON
6369-unmarshalJSON =
6370- Jdec.succeed UnmarshalJSON
6371- |> Jpipe.required "UnmarshalJSON" Jdec.int
6372-
6373-encodeUnmarshalJSON : UnmarshalJSON -> Jenc.Value
6374-encodeUnmarshalJSON x =
6375- Jenc.object
6376- [ ("UnmarshalJSON", Jenc.int x.unmarshalJSON)
6377- ]
6378-
6379-unowned : Jdec.Decoder Unowned
6380-unowned =
6381- Jdec.succeed Unowned
6382- |> Jpipe.required "unowned" Jdec.int
6383-
6384-encodeUnowned : Unowned -> Jenc.Value
6385-encodeUnowned x =
6386- Jenc.object
6387- [ ("unowned", Jenc.int x.unowned)
6388- ]
6389-
6390-unsafe : Jdec.Decoder Unsafe
6391-unsafe =
6392- Jdec.succeed Unsafe
6393- |> Jpipe.required "unsafe" Jdec.int
6394-
6395-encodeUnsafe : Unsafe -> Jenc.Value
6396-encodeUnsafe x =
6397- Jenc.object
6398- [ ("unsafe", Jenc.int x.unsafe)
6399- ]
6400-
6401-useSerializers : Jdec.Decoder UseSerializers
6402-useSerializers =
6403- Jdec.succeed UseSerializers
6404- |> Jpipe.required "UseSerializers" Jdec.int
6405-
6406-encodeUseSerializers : UseSerializers -> Jenc.Value
6407-encodeUseSerializers x =
6408- Jenc.object
6409- [ ("UseSerializers", Jenc.int x.useSerializers)
6410- ]
6411-
64126404 obj6 : Jdec.Decoder Obj6
64136405 obj6 =
64146406 Jdec.succeed Obj6
64156407 |> Jpipe.required "dummy" Jdec.int
64166408 |> Jpipe.required "where" purpleWhere
6409+ |> Jpipe.required "union" union
6410+ |> Jpipe.required "UnmarshalJSON" unmarshalJSON
6411+ |> Jpipe.required "unowned" unowned
6412+ |> Jpipe.required "unsafe" unsafe
64176413 |> Jpipe.required "unsigned" unsigned
6414+ |> Jpipe.required "UseSerializers" useSerializers
64186415 |> Jpipe.required "ushort" ushort
64196416 |> Jpipe.required "using" using
64206417 |> Jpipe.required "Utf8JsonReader" utf8JSONReader
@@ -6439,7 +6436,12 @@ encodeObj6 x =
64396436 Jenc.object
64406437 [ ("dummy", Jenc.int x.dummy)
64416438 , ("where", encodeWhere x.obj6Where)
6439+ , ("union", encodeUnion x.union)
6440+ , ("UnmarshalJSON", encodeUnmarshalJSON x.unmarshalJSON)
6441+ , ("unowned", encodeUnowned x.unowned)
6442+ , ("unsafe", encodeUnsafe x.unsafe)
64426443 , ("unsigned", encodeUnsigned x.unsigned)
6444+ , ("UseSerializers", encodeUseSerializers x.useSerializers)
64436445 , ("ushort", encodeUshort x.ushort)
64446446 , ("using", encodeUsing x.using)
64456447 , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
@@ -6471,6 +6473,50 @@ encodeWhere x =
64716473 [ ("where", Jenc.int x.whereWhere)
64726474 ]
64736475
6476+union : Jdec.Decoder Union
6477+union =
6478+ Jdec.succeed Union
6479+ |> Jpipe.required "union" Jdec.int
6480+
6481+encodeUnion : Union -> Jenc.Value
6482+encodeUnion x =
6483+ Jenc.object
6484+ [ ("union", Jenc.int x.union)
6485+ ]
6486+
6487+unmarshalJSON : Jdec.Decoder UnmarshalJSON
6488+unmarshalJSON =
6489+ Jdec.succeed UnmarshalJSON
6490+ |> Jpipe.required "UnmarshalJSON" Jdec.int
6491+
6492+encodeUnmarshalJSON : UnmarshalJSON -> Jenc.Value
6493+encodeUnmarshalJSON x =
6494+ Jenc.object
6495+ [ ("UnmarshalJSON", Jenc.int x.unmarshalJSON)
6496+ ]
6497+
6498+unowned : Jdec.Decoder Unowned
6499+unowned =
6500+ Jdec.succeed Unowned
6501+ |> Jpipe.required "unowned" Jdec.int
6502+
6503+encodeUnowned : Unowned -> Jenc.Value
6504+encodeUnowned x =
6505+ Jenc.object
6506+ [ ("unowned", Jenc.int x.unowned)
6507+ ]
6508+
6509+unsafe : Jdec.Decoder Unsafe
6510+unsafe =
6511+ Jdec.succeed Unsafe
6512+ |> Jpipe.required "unsafe" Jdec.int
6513+
6514+encodeUnsafe : Unsafe -> Jenc.Value
6515+encodeUnsafe x =
6516+ Jenc.object
6517+ [ ("unsafe", Jenc.int x.unsafe)
6518+ ]
6519+
64746520 unsigned : Jdec.Decoder Unsigned
64756521 unsigned =
64766522 Jdec.succeed Unsigned
@@ -6482,6 +6528,17 @@ encodeUnsigned x =
64826528 [ ("unsigned", Jenc.int x.unsigned)
64836529 ]
64846530
6531+useSerializers : Jdec.Decoder UseSerializers
6532+useSerializers =
6533+ Jdec.succeed UseSerializers
6534+ |> Jpipe.required "UseSerializers" Jdec.int
6535+
6536+encodeUseSerializers : UseSerializers -> Jenc.Value
6537+encodeUseSerializers x =
6538+ Jenc.object
6539+ [ ("UseSerializers", Jenc.int x.useSerializers)
6540+ ]
6541+
64856542 ushort : Jdec.Decoder Ushort
64866543 ushort =
64876544 Jdec.succeed Ushort
Mflowdefault / TopLevel.js+117 −90
@@ -687,10 +687,10 @@ export type Obj3 = {
687687 JsonParser: JSONParser;
688688 JsonReader: JSONReader;
689689 JsonTokenType: JSONTokenType;
690+ LocalDate: LocalDate;
690691 Locale: Locale;
691692 MapEntry: MapEntry;
692693 MarshalJSON: MarshalJSON;
693- NO: No;
694694 dummy: number;
695695 goto: Goto;
696696 guard: Guard;
@@ -737,7 +737,6 @@ export type Obj3 = {
737737 native: Native;
738738 new: New;
739739 newtonsoft: Newtonsoft;
740- nil: Nil;
741740 };
742741
743742 export type Hashable = {
@@ -800,6 +799,10 @@ export type JSONTokenType = {
800799 JsonTokenType: number;
801800 };
802801
802+export type LocalDate = {
803+ LocalDate: number;
804+};
805+
803806 export type Locale = {
804807 Locale: number;
805808 };
@@ -812,10 +815,6 @@ export type MarshalJSON = {
812815 MarshalJSON: number;
813816 };
814817
815-export type No = {
816- NO: number;
817-};
818-
819818 export type Goto = {
820819 goto: number;
821820 };
@@ -996,21 +995,20 @@ export type Newtonsoft = {
996995 newtonsoft: number;
997996 };
998997
999-export type Nil = {
1000- nil: number;
1001-};
1002-
1003998 export type Obj4 = {
999+ NO: No;
10041000 NSError: NSError;
10051001 NSObject: NSObject;
10061002 NSString: NSString;
10071003 NULL: Null;
10081004 None: None;
10091005 ObjectMapper: ObjectMapper;
1006+ OffsetDateTime: OffsetDateTime;
1007+ OffsetTime: OffsetTime;
10101008 Protocol: Protocol;
10111009 RegExp: RegExpClass;
1012- SEL: Sel;
10131010 dummy: number;
1011+ nil: Nil;
10141012 noSuchMethod: NoSuchMethod;
10151013 noexcept: Noexcept;
10161014 nonatomic: Nonatomic;
@@ -1063,9 +1061,10 @@ export type Obj4 = {
10631061 return: Return;
10641062 right: Right;
10651063 runtimeType: RuntimeType;
1066- s: S;
1067- sbyte: Sbyte;
1068- sealed: Sealed;
1064+};
1065+
1066+export type No = {
1067+ NO: number;
10691068 };
10701069
10711070 export type NSError = {
@@ -1092,6 +1091,14 @@ export type ObjectMapper = {
10921091 ObjectMapper: number;
10931092 };
10941093
1094+export type OffsetDateTime = {
1095+ OffsetDateTime: number;
1096+};
1097+
1098+export type OffsetTime = {
1099+ OffsetTime: number;
1100+};
1101+
10951102 export type Protocol = {
10961103 Protocol: number;
10971104 };
@@ -1100,8 +1107,8 @@ export type RegExpClass = {
11001107 RegExp: string;
11011108 };
11021109
1103-export type Sel = {
1104- SEL: number;
1110+export type Nil = {
1111+ nil: number;
11051112 };
11061113
11071114 export type NoSuchMethod = {
@@ -1312,21 +1319,10 @@ export type RuntimeType = {
13121319 runtimeType: number;
13131320 };
13141321
1315-export type S = {
1316- s: number;
1317-};
1318-
1319-export type Sbyte = {
1320- sbyte: number;
1321-};
1322-
1323-export type Sealed = {
1324- sealed: number;
1325-};
1326-
13271322 export type Obj5 = {
13281323 KSerializer: KSerializer;
13291324 PrimitiveKind: PrimitiveKind;
1325+ SEL: Sel;
13301326 Self: Self;
13311327 Sendable: Sendable;
13321328 SerialDescriptor: SerialDescriptor;
@@ -1342,9 +1338,10 @@ export type Obj5 = {
13421338 TimeZone: TimeZone;
13431339 True: True;
13441340 Type: Type;
1345- UnmarshalJSON: UnmarshalJSON;
1346- UseSerializers: UseSerializers;
13471341 dummy: number;
1342+ s: S;
1343+ sbyte: Sbyte;
1344+ sealed: Sealed;
13481345 select: Select;
13491346 self: SelfClass;
13501347 serialize: Serialize;
@@ -1388,9 +1385,6 @@ export type Obj5 = {
13881385 ulong: Ulong;
13891386 unchecked: Unchecked;
13901387 undefined: Undefined;
1391- union: Union;
1392- unowned: Unowned;
1393- unsafe: Unsafe;
13941388 };
13951389
13961390 export type KSerializer = {
@@ -1401,6 +1395,10 @@ export type PrimitiveKind = {
14011395 PrimitiveKind: number;
14021396 };
14031397
1398+export type Sel = {
1399+ SEL: number;
1400+};
1401+
14041402 export type Self = {
14051403 Self: number;
14061404 };
@@ -1461,12 +1459,16 @@ export type Type = {
14611459 Type: number;
14621460 };
14631461
1464-export type UnmarshalJSON = {
1465- UnmarshalJSON: number;
1462+export type S = {
1463+ s: number;
14661464 };
14671465
1468-export type UseSerializers = {
1469- UseSerializers: number;
1466+export type Sbyte = {
1467+ sbyte: number;
1468+};
1469+
1470+export type Sealed = {
1471+ sealed: number;
14701472 };
14711473
14721474 export type Select = {
@@ -1641,24 +1643,17 @@ export type Undefined = {
16411643 undefined: number;
16421644 };
16431645
1644-export type Union = {
1645- union: number;
1646-};
1647-
1648-export type Unowned = {
1649- unowned: number;
1650-};
1651-
1652-export type Unsafe = {
1653- unsafe: number;
1654-};
1655-
16561646 export type Obj6 = {
16571647 UUID: UUID;
1648+ UnmarshalJSON: UnmarshalJSON;
1649+ UseSerializers: UseSerializers;
16581650 Utf8JsonReader: Utf8JSONReader;
16591651 Utf8JsonWriter: Utf8JSONWriter;
16601652 YES: Yes;
16611653 dummy: number;
1654+ union: Union;
1655+ unowned: Unowned;
1656+ unsafe: Unsafe;
16621657 unsigned: Unsigned;
16631658 ushort: Ushort;
16641659 using: Using;
@@ -1681,6 +1676,14 @@ export type UUID = {
16811676 UUID: number;
16821677 };
16831678
1679+export type UnmarshalJSON = {
1680+ UnmarshalJSON: number;
1681+};
1682+
1683+export type UseSerializers = {
1684+ UseSerializers: number;
1685+};
1686+
16841687 export type Utf8JSONReader = {
16851688 Utf8JsonReader: number;
16861689 };
@@ -1693,6 +1696,18 @@ export type Yes = {
16931696 YES: number;
16941697 };
16951698
1699+export type Union = {
1700+ union: number;
1701+};
1702+
1703+export type Unowned = {
1704+ unowned: number;
1705+};
1706+
1707+export type Unsafe = {
1708+ unsafe: number;
1709+};
1710+
16961711 export type Unsigned = {
16971712 unsigned: number;
16981713 };
@@ -2486,10 +2501,10 @@ const typeMap: any = {
24862501 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24872502 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24882503 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2504+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24892505 { json: "Locale", js: "Locale", typ: r("Locale") },
24902506 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24912507 { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") },
2492- { json: "NO", js: "NO", typ: r("No") },
24932508 { json: "dummy", js: "dummy", typ: i(0) },
24942509 { json: "goto", js: "goto", typ: r("Goto") },
24952510 { json: "guard", js: "guard", typ: r("Guard") },
@@ -2536,7 +2551,6 @@ const typeMap: any = {
25362551 { json: "native", js: "native", typ: r("Native") },
25372552 { json: "new", js: "new", typ: r("New") },
25382553 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
2539- { json: "nil", js: "nil", typ: r("Nil") },
25402554 ], false),
25412555 "Hashable": o([
25422556 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2583,6 +2597,9 @@ const typeMap: any = {
25832597 "JSONTokenType": o([
25842598 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25852599 ], false),
2600+ "LocalDate": o([
2601+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2602+ ], false),
25862603 "Locale": o([
25872604 { json: "Locale", js: "Locale", typ: i(0) },
25882605 ], false),
@@ -2592,9 +2609,6 @@ const typeMap: any = {
25922609 "MarshalJSON": o([
25932610 { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) },
25942611 ], false),
2595- "No": o([
2596- { json: "NO", js: "NO", typ: i(0) },
2597- ], false),
25982612 "Goto": o([
25992613 { json: "goto", js: "goto", typ: i(0) },
26002614 ], false),
@@ -2730,20 +2744,20 @@ const typeMap: any = {
27302744 "Newtonsoft": o([
27312745 { json: "newtonsoft", js: "newtonsoft", typ: i(0) },
27322746 ], false),
2733- "Nil": o([
2734- { json: "nil", js: "nil", typ: i(0) },
2735- ], false),
27362747 "Obj4": o([
2748+ { json: "NO", js: "NO", typ: r("No") },
27372749 { json: "NSError", js: "NSError", typ: r("NSError") },
27382750 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
27392751 { json: "NSString", js: "NSString", typ: r("NSString") },
27402752 { json: "NULL", js: "NULL", typ: r("Null") },
27412753 { json: "None", js: "None", typ: r("None") },
27422754 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2755+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2756+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27432757 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27442758 { json: "RegExp", js: "RegExp", typ: r("RegExpClass") },
2745- { json: "SEL", js: "SEL", typ: r("Sel") },
27462759 { json: "dummy", js: "dummy", typ: i(0) },
2760+ { json: "nil", js: "nil", typ: r("Nil") },
27472761 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
27482762 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27492763 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
@@ -2796,9 +2810,9 @@ const typeMap: any = {
27962810 { json: "return", js: "return", typ: r("Return") },
27972811 { json: "right", js: "right", typ: r("Right") },
27982812 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
2799- { json: "s", js: "s", typ: r("S") },
2800- { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2801- { json: "sealed", js: "sealed", typ: r("Sealed") },
2813+ ], false),
2814+ "No": o([
2815+ { json: "NO", js: "NO", typ: i(0) },
28022816 ], false),
28032817 "NSError": o([
28042818 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2818,14 +2832,20 @@ const typeMap: any = {
28182832 "ObjectMapper": o([
28192833 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
28202834 ], false),
2835+ "OffsetDateTime": o([
2836+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2837+ ], false),
2838+ "OffsetTime": o([
2839+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2840+ ], false),
28212841 "Protocol": o([
28222842 { json: "Protocol", js: "Protocol", typ: i(0) },
28232843 ], false),
28242844 "RegExpClass": o([
28252845 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28262846 ], false),
2827- "Sel": o([
2828- { json: "SEL", js: "SEL", typ: i(0) },
2847+ "Nil": o([
2848+ { json: "nil", js: "nil", typ: i(0) },
28292849 ], false),
28302850 "NoSuchMethod": o([
28312851 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
@@ -2983,18 +3003,10 @@ const typeMap: any = {
29833003 "RuntimeType": o([
29843004 { json: "runtimeType", js: "runtimeType", typ: i(0) },
29853005 ], false),
2986- "S": o([
2987- { json: "s", js: "s", typ: i(0) },
2988- ], false),
2989- "Sbyte": o([
2990- { json: "sbyte", js: "sbyte", typ: i(0) },
2991- ], false),
2992- "Sealed": o([
2993- { json: "sealed", js: "sealed", typ: i(0) },
2994- ], false),
29953006 "Obj5": o([
29963007 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29973008 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
3009+ { json: "SEL", js: "SEL", typ: r("Sel") },
29983010 { json: "Self", js: "Self", typ: r("Self") },
29993011 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
30003012 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -3010,9 +3022,10 @@ const typeMap: any = {
30103022 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30113023 { json: "True", js: "True", typ: r("True") },
30123024 { json: "Type", js: "Type", typ: r("Type") },
3013- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3014- { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
30153025 { json: "dummy", js: "dummy", typ: i(0) },
3026+ { json: "s", js: "s", typ: r("S") },
3027+ { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
3028+ { json: "sealed", js: "sealed", typ: r("Sealed") },
30163029 { json: "select", js: "select", typ: r("Select") },
30173030 { json: "self", js: "self", typ: r("SelfClass") },
30183031 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -3056,9 +3069,6 @@ const typeMap: any = {
30563069 { json: "ulong", js: "ulong", typ: r("Ulong") },
30573070 { json: "unchecked", js: "unchecked", typ: r("Unchecked") },
30583071 { json: "undefined", js: "undefined", typ: r("Undefined") },
3059- { json: "union", js: "union", typ: r("Union") },
3060- { json: "unowned", js: "unowned", typ: r("Unowned") },
3061- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30623072 ], false),
30633073 "KSerializer": o([
30643074 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3066,6 +3076,9 @@ const typeMap: any = {
30663076 "PrimitiveKind": o([
30673077 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30683078 ], false),
3079+ "Sel": o([
3080+ { json: "SEL", js: "SEL", typ: i(0) },
3081+ ], false),
30693082 "Self": o([
30703083 { json: "Self", js: "Self", typ: i(0) },
30713084 ], false),
@@ -3111,11 +3124,14 @@ const typeMap: any = {
31113124 "Type": o([
31123125 { json: "Type", js: "Type", typ: i(0) },
31133126 ], false),
3114- "UnmarshalJSON": o([
3115- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3127+ "S": o([
3128+ { json: "s", js: "s", typ: i(0) },
31163129 ], false),
3117- "UseSerializers": o([
3118- { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3130+ "Sbyte": o([
3131+ { json: "sbyte", js: "sbyte", typ: i(0) },
3132+ ], false),
3133+ "Sealed": o([
3134+ { json: "sealed", js: "sealed", typ: i(0) },
31193135 ], false),
31203136 "Select": o([
31213137 { json: "select", js: "select", typ: i(0) },
@@ -3246,21 +3262,17 @@ const typeMap: any = {
32463262 "Undefined": o([
32473263 { json: "undefined", js: "undefined", typ: i(0) },
32483264 ], false),
3249- "Union": o([
3250- { json: "union", js: "union", typ: i(0) },
3251- ], false),
3252- "Unowned": o([
3253- { json: "unowned", js: "unowned", typ: i(0) },
3254- ], false),
3255- "Unsafe": o([
3256- { json: "unsafe", js: "unsafe", typ: i(0) },
3257- ], false),
32583265 "Obj6": o([
32593266 { json: "UUID", js: "UUID", typ: r("UUID") },
3267+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3268+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
32603269 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32613270 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32623271 { json: "YES", js: "YES", typ: r("Yes") },
32633272 { json: "dummy", js: "dummy", typ: i(0) },
3273+ { json: "union", js: "union", typ: r("Union") },
3274+ { json: "unowned", js: "unowned", typ: r("Unowned") },
3275+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
32643276 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
32653277 { json: "ushort", js: "ushort", typ: r("Ushort") },
32663278 { json: "using", js: "using", typ: r("Using") },
@@ -3281,6 +3293,12 @@ const typeMap: any = {
32813293 "UUID": o([
32823294 { json: "UUID", js: "UUID", typ: i(0) },
32833295 ], false),
3296+ "UnmarshalJSON": o([
3297+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3298+ ], false),
3299+ "UseSerializers": o([
3300+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3301+ ], false),
32843302 "Utf8JSONReader": o([
32853303 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
32863304 ], false),
@@ -3290,6 +3308,15 @@ const typeMap: any = {
32903308 "Yes": o([
32913309 { json: "YES", js: "YES", typ: i(0) },
32923310 ], false),
3311+ "Union": o([
3312+ { json: "union", js: "union", typ: i(0) },
3313+ ], false),
3314+ "Unowned": o([
3315+ { json: "unowned", js: "unowned", typ: i(0) },
3316+ ], false),
3317+ "Unsafe": o([
3318+ { json: "unsafe", js: "unsafe", typ: i(0) },
3319+ ], false),
32933320 "Unsigned": o([
32943321 { json: "unsigned", js: "unsigned", typ: i(0) },
32953322 ], false),
Mgolangdefault / quicktype.go+70 −55
@@ -729,6 +729,7 @@ type Obj3 struct {
729729 Left Left `json:"left"`
730730 Let Let `json:"let"`
731731 List List `json:"list"`
732+ LocalDate LocalDate `json:"LocalDate"`
732733 Locale Locale `json:"Locale"`
733734 Lock Lock `json:"lock"`
734735 Long Long `json:"long"`
@@ -743,8 +744,6 @@ type Obj3 struct {
743744 Native Native `json:"native"`
744745 New New `json:"new"`
745746 Newtonsoft Newtonsoft `json:"newtonsoft"`
746- Nil Nil `json:"nil"`
747- No No `json:"NO"`
748747 }
749748
750749 type Goto struct {
@@ -943,6 +942,10 @@ type List struct {
943942 List int64 `json:"list"`
944943 }
945944
945+type LocalDate struct {
946+ LocalDate int64 `json:"LocalDate"`
947+}
948+
946949 type Locale struct {
947950 Locale int64 `json:"Locale"`
948951 }
@@ -999,19 +1002,13 @@ type Newtonsoft struct {
9991002 Newtonsoft int64 `json:"newtonsoft"`
10001003 }
10011004
1002-type Nil struct {
1003- Nil int64 `json:"nil"`
1004-}
1005-
1006-type No struct {
1007- No int64 `json:"NO"`
1008-}
1009-
10101005 type Obj4 struct {
10111006 Dummy int64 `json:"dummy"`
10121007 NSError NSError `json:"NSError"`
10131008 NSObject NSObject `json:"NSObject"`
10141009 NSString NSString `json:"NSString"`
1010+ Nil Nil `json:"nil"`
1011+ No No `json:"NO"`
10151012 NoSuchMethod NoSuchMethod `json:"noSuchMethod"`
10161013 Noexcept Noexcept `json:"noexcept"`
10171014 Nonatomic Nonatomic `json:"nonatomic"`
@@ -1029,6 +1026,8 @@ type Obj4 struct {
10291026 Object Object `json:"object"`
10301027 ObjectMapper ObjectMapper `json:"ObjectMapper"`
10311028 Of Of `json:"of"`
1029+ OffsetDateTime OffsetDateTime `json:"OffsetDateTime"`
1030+ OffsetTime OffsetTime `json:"OffsetTime"`
10321031 Oneway Oneway `json:"oneway"`
10331032 Open Open `json:"open"`
10341033 Operator Operator `json:"operator"`
@@ -1069,10 +1068,6 @@ type Obj4 struct {
10691068 Return Return `json:"return"`
10701069 Right Right `json:"right"`
10711070 RuntimeType RuntimeType `json:"runtimeType"`
1072- S S `json:"s"`
1073- Sbyte Sbyte `json:"sbyte"`
1074- Sealed Sealed `json:"sealed"`
1075- Sel Sel `json:"SEL"`
10761071 }
10771072
10781073 type NSError struct {
@@ -1087,6 +1082,14 @@ type NSString struct {
10871082 NSString int64 `json:"NSString"`
10881083 }
10891084
1085+type Nil struct {
1086+ Nil int64 `json:"nil"`
1087+}
1088+
1089+type No struct {
1090+ No int64 `json:"NO"`
1091+}
1092+
10901093 type NoSuchMethod struct {
10911094 NoSuchMethod int64 `json:"noSuchMethod"`
10921095 }
@@ -1155,6 +1158,14 @@ type Of struct {
11551158 Of int64 `json:"of"`
11561159 }
11571160
1161+type OffsetDateTime struct {
1162+ OffsetDateTime int64 `json:"OffsetDateTime"`
1163+}
1164+
1165+type OffsetTime struct {
1166+ OffsetTime int64 `json:"OffsetTime"`
1167+}
1168+
11581169 type Oneway struct {
11591170 Oneway int64 `json:"oneway"`
11601171 }
@@ -1315,22 +1326,6 @@ type RuntimeType struct {
13151326 RuntimeType int64 `json:"runtimeType"`
13161327 }
13171328
1318-type S struct {
1319- S int64 `json:"s"`
1320-}
1321-
1322-type Sbyte struct {
1323- Sbyte int64 `json:"sbyte"`
1324-}
1325-
1326-type Sealed struct {
1327- Sealed int64 `json:"sealed"`
1328-}
1329-
1330-type Sel struct {
1331- Sel int64 `json:"SEL"`
1332-}
1333-
13341329 type Obj5 struct {
13351330 Dummy int64 `json:"dummy"`
13361331 KSerializer KSerializer `json:"KSerializer"`
@@ -1338,6 +1333,10 @@ type Obj5 struct {
13381333 Obj5True TrueClass `json:"true"`
13391334 Obj5Type TypeClass `json:"type"`
13401335 PrimitiveKind PrimitiveKind `json:"PrimitiveKind"`
1336+ S S `json:"s"`
1337+ Sbyte Sbyte `json:"sbyte"`
1338+ Sealed Sealed `json:"sealed"`
1339+ Sel Sel `json:"SEL"`
13411340 Select Select `json:"select"`
13421341 Self Self `json:"Self"`
13431342 Sendable Sendable `json:"Sendable"`
@@ -1393,11 +1392,6 @@ type Obj5 struct {
13931392 Ulong Ulong `json:"ulong"`
13941393 Unchecked Unchecked `json:"unchecked"`
13951394 Undefined Undefined `json:"undefined"`
1396- Union Union `json:"union"`
1397- UnmarshalJSON UnmarshalJSON `json:"UnmarshalJSON"`
1398- Unowned Unowned `json:"unowned"`
1399- Unsafe Unsafe `json:"unsafe"`
1400- UseSerializers UseSerializers `json:"UseSerializers"`
14011395 }
14021396
14031397 type KSerializer struct {
@@ -1420,6 +1414,22 @@ type PrimitiveKind struct {
14201414 PrimitiveKind int64 `json:"PrimitiveKind"`
14211415 }
14221416
1417+type S struct {
1418+ S int64 `json:"s"`
1419+}
1420+
1421+type Sbyte struct {
1422+ Sbyte int64 `json:"sbyte"`
1423+}
1424+
1425+type Sealed struct {
1426+ Sealed int64 `json:"sealed"`
1427+}
1428+
1429+type Sel struct {
1430+ Sel int64 `json:"SEL"`
1431+}
1432+
14231433 type Select struct {
14241434 Select int64 `json:"select"`
14251435 }
@@ -1640,30 +1650,15 @@ type Undefined struct {
16401650 Undefined int64 `json:"undefined"`
16411651 }
16421652
1643-type Union struct {
1644- Union int64 `json:"union"`
1645-}
1646-
1647-type UnmarshalJSON struct {
1648- UnmarshalJSON int64 `json:"UnmarshalJSON"`
1649-}
1650-
1651-type Unowned struct {
1652- Unowned int64 `json:"unowned"`
1653-}
1654-
1655-type Unsafe struct {
1656- Unsafe int64 `json:"unsafe"`
1657-}
1658-
1659-type UseSerializers struct {
1660- UseSerializers int64 `json:"UseSerializers"`
1661-}
1662-
16631653 type Obj6 struct {
16641654 Dummy int64 `json:"dummy"`
16651655 UUID UUID `json:"UUID"`
1656+ Union Union `json:"union"`
1657+ UnmarshalJSON UnmarshalJSON `json:"UnmarshalJSON"`
1658+ Unowned Unowned `json:"unowned"`
1659+ Unsafe Unsafe `json:"unsafe"`
16661660 Unsigned Unsigned `json:"unsigned"`
1661+ UseSerializers UseSerializers `json:"UseSerializers"`
16671662 Ushort Ushort `json:"ushort"`
16681663 Using Using `json:"using"`
16691664 Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
@@ -1688,10 +1683,30 @@ type UUID struct {
16881683 UUID int64 `json:"UUID"`
16891684 }
16901685
1686+type Union struct {
1687+ Union int64 `json:"union"`
1688+}
1689+
1690+type UnmarshalJSON struct {
1691+ UnmarshalJSON int64 `json:"UnmarshalJSON"`
1692+}
1693+
1694+type Unowned struct {
1695+ Unowned int64 `json:"unowned"`
1696+}
1697+
1698+type Unsafe struct {
1699+ Unsafe int64 `json:"unsafe"`
1700+}
1701+
16911702 type Unsigned struct {
16921703 Unsigned int64 `json:"unsigned"`
16931704 }
16941705
1706+type UseSerializers struct {
1707+ UseSerializers int64 `json:"UseSerializers"`
1708+}
1709+
16951710 type Ushort struct {
16961711 Ushort int64 `json:"ushort"`
16971712 }
Mhaskelldefault / QuickType.hs+254 −200
@@ -177,6 +177,7 @@ module QuickType
177177 , Lazy (..)
178178 , LeftClass (..)
179179 , List (..)
180+ , LocalDate (..)
180181 , Locale (..)
181182 , Lock (..)
182183 , Long (..)
@@ -190,8 +191,6 @@ module QuickType
190191 , Native (..)
191192 , New (..)
192193 , Newtonsoft (..)
193- , Nil (..)
194- , No (..)
195194 , ID (..)
196195 , If (..)
197196 , Import (..)
@@ -200,6 +199,8 @@ module QuickType
200199 , Let (..)
201200 , Module (..)
202201 , Obj4 (..)
202+ , Nil (..)
203+ , No (..)
203204 , NoSuchMethod (..)
204205 , Noexcept (..)
205206 , Nonatomic (..)
@@ -220,6 +221,8 @@ module QuickType
220221 , ProtocolClass (..)
221222 , ObjectClass (..)
222223 , ObjectMapper (..)
224+ , OffsetDateTime (..)
225+ , OffsetTime (..)
223226 , Oneway (..)
224227 , Open (..)
225228 , Operator (..)
@@ -260,10 +263,6 @@ module QuickType
260263 , Return (..)
261264 , RightClass (..)
262265 , RuntimeType (..)
263- , S (..)
264- , Sbyte (..)
265- , Sealed (..)
266- , Sel (..)
267266 , Obj5 (..)
268267 , KSerializer (..)
269268 , SelfClass (..)
@@ -272,6 +271,10 @@ module QuickType
272271 , Type (..)
273272 , PrimitiveKind (..)
274273 , TypeClass (..)
274+ , S (..)
275+ , Sbyte (..)
276+ , Sealed (..)
277+ , Sel (..)
275278 , Select (..)
276279 , Self (..)
277280 , Sendable (..)
@@ -325,14 +328,14 @@ module QuickType
325328 , Ulong (..)
326329 , Unchecked (..)
327330 , Undefined (..)
331+ , Obj6 (..)
332+ , Where (..)
328333 , Union (..)
329334 , UnmarshalJSON (..)
330335 , Unowned (..)
331336 , Unsafe (..)
332- , UseSerializers (..)
333- , Obj6 (..)
334- , Where (..)
335337 , Unsigned (..)
338+ , UseSerializers (..)
336339 , Ushort (..)
337340 , Using (..)
338341 , Utf8JSONReader (..)
@@ -1069,6 +1072,7 @@ data Obj3 = Obj3
10691072 , lazyObj3 :: Lazy
10701073 , leftObj3 :: LeftClass
10711074 , listObj3 :: List
1075+ , localDateObj3 :: LocalDate
10721076 , localeObj3 :: Locale
10731077 , lockObj3 :: Lock
10741078 , longObj3 :: Long
@@ -1082,8 +1086,6 @@ data Obj3 = Obj3
10821086 , nativeObj3 :: Native
10831087 , newObj3 :: New
10841088 , newtonsoftObj3 :: Newtonsoft
1085- , nilObj3 :: Nil
1086- , noObj3 :: No
10871089 , obj3IDObj3 :: ID
10881090 , obj3IfObj3 :: If
10891091 , obj3ImportObj3 :: Import
@@ -1265,6 +1267,10 @@ data List = List
12651267 { listList :: Int
12661268 } deriving (Show)
12671269
1270+data LocalDate = LocalDate
1271+ { localDateLocalDate :: Int
1272+ } deriving (Show)
1273+
12681274 data Locale = Locale
12691275 { localeLocale :: Int
12701276 } deriving (Show)
@@ -1317,14 +1323,6 @@ data Newtonsoft = Newtonsoft
13171323 { newtonsoftNewtonsoft :: Int
13181324 } deriving (Show)
13191325
1320-data Nil = Nil
1321- { nilNil :: Int
1322- } deriving (Show)
1323-
1324-data No = No
1325- { noNo :: Int
1326- } deriving (Show)
1327-
13281326 data ID = ID
13291327 { idIDID :: Int
13301328 } deriving (Show)
@@ -1355,6 +1353,8 @@ data Module = Module
13551353
13561354 data Obj4 = Obj4
13571355 { dummyObj4 :: Int
1356+ , nilObj4 :: Nil
1357+ , noObj4 :: No
13581358 , noSuchMethodObj4 :: NoSuchMethod
13591359 , noexceptObj4 :: Noexcept
13601360 , nonatomicObj4 :: Nonatomic
@@ -1375,6 +1375,8 @@ data Obj4 = Obj4
13751375 , obj4ProtocolObj4 :: ProtocolClass
13761376 , objectObj4 :: ObjectClass
13771377 , objectMapperObj4 :: ObjectMapper
1378+ , offsetDateTimeObj4 :: OffsetDateTime
1379+ , offsetTimeObj4 :: OffsetTime
13781380 , onewayObj4 :: Oneway
13791381 , openObj4 :: Open
13801382 , operatorObj4 :: Operator
@@ -1415,10 +1417,14 @@ data Obj4 = Obj4
14151417 , returnObj4 :: Return
14161418 , rightObj4 :: RightClass
14171419 , runtimeTypeObj4 :: RuntimeType
1418- , sObj4 :: S
1419- , sbyteObj4 :: Sbyte
1420- , sealedObj4 :: Sealed
1421- , selObj4 :: Sel
1420+ } deriving (Show)
1421+
1422+data Nil = Nil
1423+ { nilNil :: Int
1424+ } deriving (Show)
1425+
1426+data No = No
1427+ { noNo :: Int
14221428 } deriving (Show)
14231429
14241430 data NoSuchMethod = NoSuchMethod
@@ -1501,6 +1507,14 @@ data ObjectMapper = ObjectMapper
15011507 { objectMapperObjectMapper :: Int
15021508 } deriving (Show)
15031509
1510+data OffsetDateTime = OffsetDateTime
1511+ { offsetDateTimeOffsetDateTime :: Int
1512+ } deriving (Show)
1513+
1514+data OffsetTime = OffsetTime
1515+ { offsetTimeOffsetTime :: Int
1516+ } deriving (Show)
1517+
15041518 data Oneway = Oneway
15051519 { onewayOneway :: Int
15061520 } deriving (Show)
@@ -1661,22 +1675,6 @@ data RuntimeType = RuntimeType
16611675 { runtimeTypeRuntimeType :: Int
16621676 } deriving (Show)
16631677
1664-data S = S
1665- { sS :: Int
1666- } deriving (Show)
1667-
1668-data Sbyte = Sbyte
1669- { sbyteSbyte :: Int
1670- } deriving (Show)
1671-
1672-data Sealed = Sealed
1673- { sealedSealed :: Int
1674- } deriving (Show)
1675-
1676-data Sel = Sel
1677- { selSel :: Int
1678- } deriving (Show)
1679-
16801678 data Obj5 = Obj5
16811679 { dummyObj5 :: Int
16821680 , kSerializerObj5 :: KSerializer
@@ -1686,6 +1684,10 @@ data Obj5 = Obj5
16861684 , obj5TypeObj5 :: Type
16871685 , primitiveKindObj5 :: PrimitiveKind
16881686 , purpleTypeObj5 :: TypeClass
1687+ , sObj5 :: S
1688+ , sbyteObj5 :: Sbyte
1689+ , sealedObj5 :: Sealed
1690+ , selObj5 :: Sel
16891691 , selectObj5 :: Select
16901692 , selfObj5 :: Self
16911693 , sendableObj5 :: Sendable
@@ -1739,11 +1741,6 @@ data Obj5 = Obj5
17391741 , ulongObj5 :: Ulong
17401742 , uncheckedObj5 :: Unchecked
17411743 , undefinedObj5 :: Undefined
1742- , unionObj5 :: Union
1743- , unmarshalJSONObj5 :: UnmarshalJSON
1744- , unownedObj5 :: Unowned
1745- , unsafeObj5 :: Unsafe
1746- , useSerializersObj5 :: UseSerializers
17471744 } deriving (Show)
17481745
17491746 data KSerializer = KSerializer
@@ -1774,6 +1771,22 @@ data TypeClass = TypeClass
17741771 { typeTypeTypeClass :: Int
17751772 } deriving (Show)
17761773
1774+data S = S
1775+ { sS :: Int
1776+ } deriving (Show)
1777+
1778+data Sbyte = Sbyte
1779+ { sbyteSbyte :: Int
1780+ } deriving (Show)
1781+
1782+data Sealed = Sealed
1783+ { sealedSealed :: Int
1784+ } deriving (Show)
1785+
1786+data Sel = Sel
1787+ { selSel :: Int
1788+ } deriving (Show)
1789+
17771790 data Select = Select
17781791 { selectSelect :: Int
17791792 } deriving (Show)
@@ -1986,30 +1999,15 @@ data Undefined = Undefined
19861999 { undefinedUndefined :: Int
19872000 } deriving (Show)
19882001
1989-data Union = Union
1990- { unionUnion :: Int
1991- } deriving (Show)
1992-
1993-data UnmarshalJSON = UnmarshalJSON
1994- { unmarshalJSONUnmarshalJSON :: Int
1995- } deriving (Show)
1996-
1997-data Unowned = Unowned
1998- { unownedUnowned :: Int
1999- } deriving (Show)
2000-
2001-data Unsafe = Unsafe
2002- { unsafeUnsafe :: Int
2003- } deriving (Show)
2004-
2005-data UseSerializers = UseSerializers
2006- { useSerializersUseSerializers :: Int
2007- } deriving (Show)
2008-
20092002 data Obj6 = Obj6
20102003 { dummyObj6 :: Int
20112004 , obj6WhereObj6 :: Where
2005+ , unionObj6 :: Union
2006+ , unmarshalJSONObj6 :: UnmarshalJSON
2007+ , unownedObj6 :: Unowned
2008+ , unsafeObj6 :: Unsafe
20122009 , unsignedObj6 :: Unsigned
2010+ , useSerializersObj6 :: UseSerializers
20132011 , ushortObj6 :: Ushort
20142012 , usingObj6 :: Using
20152013 , utf8JSONReaderObj6 :: Utf8JSONReader
@@ -2034,10 +2032,30 @@ data Where = Where
20342032 { whereWhereWhere :: Int
20352033 } deriving (Show)
20362034
2035+data Union = Union
2036+ { unionUnion :: Int
2037+ } deriving (Show)
2038+
2039+data UnmarshalJSON = UnmarshalJSON
2040+ { unmarshalJSONUnmarshalJSON :: Int
2041+ } deriving (Show)
2042+
2043+data Unowned = Unowned
2044+ { unownedUnowned :: Int
2045+ } deriving (Show)
2046+
2047+data Unsafe = Unsafe
2048+ { unsafeUnsafe :: Int
2049+ } deriving (Show)
2050+
20372051 data Unsigned = Unsigned
20382052 { unsignedUnsigned :: Int
20392053 } deriving (Show)
20402054
2055+data UseSerializers = UseSerializers
2056+ { useSerializersUseSerializers :: Int
2057+ } deriving (Show)
2058+
20412059 data Ushort = Ushort
20422060 { ushortUshort :: Int
20432061 } deriving (Show)
@@ -3702,7 +3720,7 @@ instance FromJSON Obj2False where
37023720 <$> v .: "false"
37033721
37043722 instance ToJSON Obj3 where
3705- 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 marshalJSONObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
3723+ 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 localDateObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 marshalJSONObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
37063724 object $ foldMap (maybe [] pure)
37073725 [ Just $ "dummy" .= dummyObj3
37083726 , Just $ "goto" .= gotoObj3
@@ -3748,6 +3766,7 @@ instance ToJSON Obj3 where
37483766 , Just $ "lazy" .= lazyObj3
37493767 , Just $ "left" .= leftObj3
37503768 , Just $ "list" .= listObj3
3769+ , Just $ "LocalDate" .= localDateObj3
37513770 , Just $ "Locale" .= localeObj3
37523771 , Just $ "lock" .= lockObj3
37533772 , Just $ "long" .= longObj3
@@ -3761,8 +3780,6 @@ instance ToJSON Obj3 where
37613780 , Just $ "native" .= nativeObj3
37623781 , Just $ "new" .= newObj3
37633782 , Just $ "newtonsoft" .= newtonsoftObj3
3764- , Just $ "nil" .= nilObj3
3765- , Just $ "NO" .= noObj3
37663783 , Just $ "id" .= obj3IDObj3
37673784 , Just $ "if" .= obj3IfObj3
37683785 , Just $ "import" .= obj3ImportObj3
@@ -3818,6 +3835,7 @@ instance FromJSON Obj3 where
38183835 <*> v .: "lazy"
38193836 <*> v .: "left"
38203837 <*> v .: "list"
3838+ <*> v .: "LocalDate"
38213839 <*> v .: "Locale"
38223840 <*> v .: "lock"
38233841 <*> v .: "long"
@@ -3831,8 +3849,6 @@ instance FromJSON Obj3 where
38313849 <*> v .: "native"
38323850 <*> v .: "new"
38333851 <*> v .: "newtonsoft"
3834- <*> v .: "nil"
3835- <*> v .: "NO"
38363852 <*> v .: "id"
38373853 <*> v .: "if"
38383854 <*> v .: "import"
@@ -4271,6 +4287,16 @@ instance FromJSON List where
42714287 parseJSON (Object v) = List
42724288 <$> v .: "list"
42734289
4290+instance ToJSON LocalDate where
4291+ toJSON (LocalDate localDateLocalDate) =
4292+ object $ foldMap (maybe [] pure)
4293+ [ Just $ "LocalDate" .= localDateLocalDate
4294+ ]
4295+
4296+instance FromJSON LocalDate where
4297+ parseJSON (Object v) = LocalDate
4298+ <$> v .: "LocalDate"
4299+
42744300 instance ToJSON Locale where
42754301 toJSON (Locale localeLocale) =
42764302 object $ foldMap (maybe [] pure)
@@ -4401,26 +4427,6 @@ instance FromJSON Newtonsoft where
44014427 parseJSON (Object v) = Newtonsoft
44024428 <$> v .: "newtonsoft"
44034429
4404-instance ToJSON Nil where
4405- toJSON (Nil nilNil) =
4406- object $ foldMap (maybe [] pure)
4407- [ Just $ "nil" .= nilNil
4408- ]
4409-
4410-instance FromJSON Nil where
4411- parseJSON (Object v) = Nil
4412- <$> v .: "nil"
4413-
4414-instance ToJSON No where
4415- toJSON (No noNo) =
4416- object $ foldMap (maybe [] pure)
4417- [ Just $ "NO" .= noNo
4418- ]
4419-
4420-instance FromJSON No where
4421- parseJSON (Object v) = No
4422- <$> v .: "NO"
4423-
44244430 instance ToJSON ID where
44254431 toJSON (ID idIDID) =
44264432 object $ foldMap (maybe [] pure)
@@ -4492,9 +4498,11 @@ instance FromJSON Module where
44924498 <$> v .: "module"
44934499
44944500 instance ToJSON Obj4 where
4495- 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) =
4501+ toJSON (Obj4 dummyObj4 nilObj4 noObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 offsetDateTimeObj4 offsetTimeObj4 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) =
44964502 object $ foldMap (maybe [] pure)
44974503 [ Just $ "dummy" .= dummyObj4
4504+ , Just $ "nil" .= nilObj4
4505+ , Just $ "NO" .= noObj4
44984506 , Just $ "noSuchMethod" .= noSuchMethodObj4
44994507 , Just $ "noexcept" .= noexceptObj4
45004508 , Just $ "nonatomic" .= nonatomicObj4
@@ -4515,6 +4523,8 @@ instance ToJSON Obj4 where
45154523 , Just $ "protocol" .= obj4ProtocolObj4
45164524 , Just $ "object" .= objectObj4
45174525 , Just $ "ObjectMapper" .= objectMapperObj4
4526+ , Just $ "OffsetDateTime" .= offsetDateTimeObj4
4527+ , Just $ "OffsetTime" .= offsetTimeObj4
45184528 , Just $ "oneway" .= onewayObj4
45194529 , Just $ "open" .= openObj4
45204530 , Just $ "operator" .= operatorObj4
@@ -4555,15 +4565,13 @@ instance ToJSON Obj4 where
45554565 , Just $ "return" .= returnObj4
45564566 , Just $ "right" .= rightObj4
45574567 , Just $ "runtimeType" .= runtimeTypeObj4
4558- , Just $ "s" .= sObj4
4559- , Just $ "sbyte" .= sbyteObj4
4560- , Just $ "sealed" .= sealedObj4
4561- , Just $ "SEL" .= selObj4
45624568 ]
45634569
45644570 instance FromJSON Obj4 where
45654571 parseJSON (Object v) = Obj4
45664572 <$> v .: "dummy"
4573+ <*> v .: "nil"
4574+ <*> v .: "NO"
45674575 <*> v .: "noSuchMethod"
45684576 <*> v .: "noexcept"
45694577 <*> v .: "nonatomic"
@@ -4584,6 +4592,8 @@ instance FromJSON Obj4 where
45844592 <*> v .: "protocol"
45854593 <*> v .: "object"
45864594 <*> v .: "ObjectMapper"
4595+ <*> v .: "OffsetDateTime"
4596+ <*> v .: "OffsetTime"
45874597 <*> v .: "oneway"
45884598 <*> v .: "open"
45894599 <*> v .: "operator"
@@ -4624,10 +4634,26 @@ instance FromJSON Obj4 where
46244634 <*> v .: "return"
46254635 <*> v .: "right"
46264636 <*> v .: "runtimeType"
4627- <*> v .: "s"
4628- <*> v .: "sbyte"
4629- <*> v .: "sealed"
4630- <*> v .: "SEL"
4637+
4638+instance ToJSON Nil where
4639+ toJSON (Nil nilNil) =
4640+ object $ foldMap (maybe [] pure)
4641+ [ Just $ "nil" .= nilNil
4642+ ]
4643+
4644+instance FromJSON Nil where
4645+ parseJSON (Object v) = Nil
4646+ <$> v .: "nil"
4647+
4648+instance ToJSON No where
4649+ toJSON (No noNo) =
4650+ object $ foldMap (maybe [] pure)
4651+ [ Just $ "NO" .= noNo
4652+ ]
4653+
4654+instance FromJSON No where
4655+ parseJSON (Object v) = No
4656+ <$> v .: "NO"
46314657
46324658 instance ToJSON NoSuchMethod where
46334659 toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
@@ -4829,6 +4855,26 @@ instance FromJSON ObjectMapper where
48294855 parseJSON (Object v) = ObjectMapper
48304856 <$> v .: "ObjectMapper"
48314857
4858+instance ToJSON OffsetDateTime where
4859+ toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) =
4860+ object $ foldMap (maybe [] pure)
4861+ [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime
4862+ ]
4863+
4864+instance FromJSON OffsetDateTime where
4865+ parseJSON (Object v) = OffsetDateTime
4866+ <$> v .: "OffsetDateTime"
4867+
4868+instance ToJSON OffsetTime where
4869+ toJSON (OffsetTime offsetTimeOffsetTime) =
4870+ object $ foldMap (maybe [] pure)
4871+ [ Just $ "OffsetTime" .= offsetTimeOffsetTime
4872+ ]
4873+
4874+instance FromJSON OffsetTime where
4875+ parseJSON (Object v) = OffsetTime
4876+ <$> v .: "OffsetTime"
4877+
48324878 instance ToJSON Oneway where
48334879 toJSON (Oneway onewayOneway) =
48344880 object $ foldMap (maybe [] pure)
@@ -5229,48 +5275,8 @@ instance FromJSON RuntimeType where
52295275 parseJSON (Object v) = RuntimeType
52305276 <$> v .: "runtimeType"
52315277
5232-instance ToJSON S where
5233- toJSON (S sS) =
5234- object $ foldMap (maybe [] pure)
5235- [ Just $ "s" .= sS
5236- ]
5237-
5238-instance FromJSON S where
5239- parseJSON (Object v) = S
5240- <$> v .: "s"
5241-
5242-instance ToJSON Sbyte where
5243- toJSON (Sbyte sbyteSbyte) =
5244- object $ foldMap (maybe [] pure)
5245- [ Just $ "sbyte" .= sbyteSbyte
5246- ]
5247-
5248-instance FromJSON Sbyte where
5249- parseJSON (Object v) = Sbyte
5250- <$> v .: "sbyte"
5251-
5252-instance ToJSON Sealed where
5253- toJSON (Sealed sealedSealed) =
5254- object $ foldMap (maybe [] pure)
5255- [ Just $ "sealed" .= sealedSealed
5256- ]
5257-
5258-instance FromJSON Sealed where
5259- parseJSON (Object v) = Sealed
5260- <$> v .: "sealed"
5261-
5262-instance ToJSON Sel where
5263- toJSON (Sel selSel) =
5264- object $ foldMap (maybe [] pure)
5265- [ Just $ "SEL" .= selSel
5266- ]
5267-
5268-instance FromJSON Sel where
5269- parseJSON (Object v) = Sel
5270- <$> v .: "SEL"
5271-
52725278 instance ToJSON Obj5 where
5273- 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 unmarshalJSONObj5 unownedObj5 unsafeObj5 useSerializersObj5) =
5279+ toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 sObj5 sbyteObj5 sealedObj5 selObj5 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) =
52745280 object $ foldMap (maybe [] pure)
52755281 [ Just $ "dummy" .= dummyObj5
52765282 , Just $ "KSerializer" .= kSerializerObj5
@@ -5280,6 +5286,10 @@ instance ToJSON Obj5 where
52805286 , Just $ "Type" .= obj5TypeObj5
52815287 , Just $ "PrimitiveKind" .= primitiveKindObj5
52825288 , Just $ "type" .= purpleTypeObj5
5289+ , Just $ "s" .= sObj5
5290+ , Just $ "sbyte" .= sbyteObj5
5291+ , Just $ "sealed" .= sealedObj5
5292+ , Just $ "SEL" .= selObj5
52835293 , Just $ "select" .= selectObj5
52845294 , Just $ "Self" .= selfObj5
52855295 , Just $ "Sendable" .= sendableObj5
@@ -5333,11 +5343,6 @@ instance ToJSON Obj5 where
53335343 , Just $ "ulong" .= ulongObj5
53345344 , Just $ "unchecked" .= uncheckedObj5
53355345 , Just $ "undefined" .= undefinedObj5
5336- , Just $ "union" .= unionObj5
5337- , Just $ "UnmarshalJSON" .= unmarshalJSONObj5
5338- , Just $ "unowned" .= unownedObj5
5339- , Just $ "unsafe" .= unsafeObj5
5340- , Just $ "UseSerializers" .= useSerializersObj5
53415346 ]
53425347
53435348 instance FromJSON Obj5 where
@@ -5350,6 +5355,10 @@ instance FromJSON Obj5 where
53505355 <*> v .: "Type"
53515356 <*> v .: "PrimitiveKind"
53525357 <*> v .: "type"
5358+ <*> v .: "s"
5359+ <*> v .: "sbyte"
5360+ <*> v .: "sealed"
5361+ <*> v .: "SEL"
53535362 <*> v .: "select"
53545363 <*> v .: "Self"
53555364 <*> v .: "Sendable"
@@ -5403,11 +5412,6 @@ instance FromJSON Obj5 where
54035412 <*> v .: "ulong"
54045413 <*> v .: "unchecked"
54055414 <*> v .: "undefined"
5406- <*> v .: "union"
5407- <*> v .: "UnmarshalJSON"
5408- <*> v .: "unowned"
5409- <*> v .: "unsafe"
5410- <*> v .: "UseSerializers"
54115415
54125416 instance ToJSON KSerializer where
54135417 toJSON (KSerializer kSerializerKSerializer) =
@@ -5479,6 +5483,46 @@ instance FromJSON TypeClass where
54795483 parseJSON (Object v) = TypeClass
54805484 <$> v .: "type"
54815485
5486+instance ToJSON S where
5487+ toJSON (S sS) =
5488+ object $ foldMap (maybe [] pure)
5489+ [ Just $ "s" .= sS
5490+ ]
5491+
5492+instance FromJSON S where
5493+ parseJSON (Object v) = S
5494+ <$> v .: "s"
5495+
5496+instance ToJSON Sbyte where
5497+ toJSON (Sbyte sbyteSbyte) =
5498+ object $ foldMap (maybe [] pure)
5499+ [ Just $ "sbyte" .= sbyteSbyte
5500+ ]
5501+
5502+instance FromJSON Sbyte where
5503+ parseJSON (Object v) = Sbyte
5504+ <$> v .: "sbyte"
5505+
5506+instance ToJSON Sealed where
5507+ toJSON (Sealed sealedSealed) =
5508+ object $ foldMap (maybe [] pure)
5509+ [ Just $ "sealed" .= sealedSealed
5510+ ]
5511+
5512+instance FromJSON Sealed where
5513+ parseJSON (Object v) = Sealed
5514+ <$> v .: "sealed"
5515+
5516+instance ToJSON Sel where
5517+ toJSON (Sel selSel) =
5518+ object $ foldMap (maybe [] pure)
5519+ [ Just $ "SEL" .= selSel
5520+ ]
5521+
5522+instance FromJSON Sel where
5523+ parseJSON (Object v) = Sel
5524+ <$> v .: "SEL"
5525+
54825526 instance ToJSON Select where
54835527 toJSON (Select selectSelect) =
54845528 object $ foldMap (maybe [] pure)
@@ -6009,62 +6053,17 @@ instance FromJSON Undefined where
60096053 parseJSON (Object v) = Undefined
60106054 <$> v .: "undefined"
60116055
6012-instance ToJSON Union where
6013- toJSON (Union unionUnion) =
6014- object $ foldMap (maybe [] pure)
6015- [ Just $ "union" .= unionUnion
6016- ]
6017-
6018-instance FromJSON Union where
6019- parseJSON (Object v) = Union
6020- <$> v .: "union"
6021-
6022-instance ToJSON UnmarshalJSON where
6023- toJSON (UnmarshalJSON unmarshalJSONUnmarshalJSON) =
6024- object $ foldMap (maybe [] pure)
6025- [ Just $ "UnmarshalJSON" .= unmarshalJSONUnmarshalJSON
6026- ]
6027-
6028-instance FromJSON UnmarshalJSON where
6029- parseJSON (Object v) = UnmarshalJSON
6030- <$> v .: "UnmarshalJSON"
6031-
6032-instance ToJSON Unowned where
6033- toJSON (Unowned unownedUnowned) =
6034- object $ foldMap (maybe [] pure)
6035- [ Just $ "unowned" .= unownedUnowned
6036- ]
6037-
6038-instance FromJSON Unowned where
6039- parseJSON (Object v) = Unowned
6040- <$> v .: "unowned"
6041-
6042-instance ToJSON Unsafe where
6043- toJSON (Unsafe unsafeUnsafe) =
6044- object $ foldMap (maybe [] pure)
6045- [ Just $ "unsafe" .= unsafeUnsafe
6046- ]
6047-
6048-instance FromJSON Unsafe where
6049- parseJSON (Object v) = Unsafe
6050- <$> v .: "unsafe"
6051-
6052-instance ToJSON UseSerializers where
6053- toJSON (UseSerializers useSerializersUseSerializers) =
6054- object $ foldMap (maybe [] pure)
6055- [ Just $ "UseSerializers" .= useSerializersUseSerializers
6056- ]
6057-
6058-instance FromJSON UseSerializers where
6059- parseJSON (Object v) = UseSerializers
6060- <$> v .: "UseSerializers"
6061-
60626056 instance ToJSON Obj6 where
6063- toJSON (Obj6 dummyObj6 obj6WhereObj6 unsignedObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
6057+ toJSON (Obj6 dummyObj6 obj6WhereObj6 unionObj6 unmarshalJSONObj6 unownedObj6 unsafeObj6 unsignedObj6 useSerializersObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
60646058 object $ foldMap (maybe [] pure)
60656059 [ Just $ "dummy" .= dummyObj6
60666060 , Just $ "where" .= obj6WhereObj6
6061+ , Just $ "union" .= unionObj6
6062+ , Just $ "UnmarshalJSON" .= unmarshalJSONObj6
6063+ , Just $ "unowned" .= unownedObj6
6064+ , Just $ "unsafe" .= unsafeObj6
60676065 , Just $ "unsigned" .= unsignedObj6
6066+ , Just $ "UseSerializers" .= useSerializersObj6
60686067 , Just $ "ushort" .= ushortObj6
60696068 , Just $ "using" .= usingObj6
60706069 , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6
@@ -6089,7 +6088,12 @@ instance FromJSON Obj6 where
60896088 parseJSON (Object v) = Obj6
60906089 <$> v .: "dummy"
60916090 <*> v .: "where"
6091+ <*> v .: "union"
6092+ <*> v .: "UnmarshalJSON"
6093+ <*> v .: "unowned"
6094+ <*> v .: "unsafe"
60926095 <*> v .: "unsigned"
6096+ <*> v .: "UseSerializers"
60936097 <*> v .: "ushort"
60946098 <*> v .: "using"
60956099 <*> v .: "Utf8JsonReader"
@@ -6119,6 +6123,46 @@ instance FromJSON Where where
61196123 parseJSON (Object v) = Where
61206124 <$> v .: "where"
61216125
6126+instance ToJSON Union where
6127+ toJSON (Union unionUnion) =
6128+ object $ foldMap (maybe [] pure)
6129+ [ Just $ "union" .= unionUnion
6130+ ]
6131+
6132+instance FromJSON Union where
6133+ parseJSON (Object v) = Union
6134+ <$> v .: "union"
6135+
6136+instance ToJSON UnmarshalJSON where
6137+ toJSON (UnmarshalJSON unmarshalJSONUnmarshalJSON) =
6138+ object $ foldMap (maybe [] pure)
6139+ [ Just $ "UnmarshalJSON" .= unmarshalJSONUnmarshalJSON
6140+ ]
6141+
6142+instance FromJSON UnmarshalJSON where
6143+ parseJSON (Object v) = UnmarshalJSON
6144+ <$> v .: "UnmarshalJSON"
6145+
6146+instance ToJSON Unowned where
6147+ toJSON (Unowned unownedUnowned) =
6148+ object $ foldMap (maybe [] pure)
6149+ [ Just $ "unowned" .= unownedUnowned
6150+ ]
6151+
6152+instance FromJSON Unowned where
6153+ parseJSON (Object v) = Unowned
6154+ <$> v .: "unowned"
6155+
6156+instance ToJSON Unsafe where
6157+ toJSON (Unsafe unsafeUnsafe) =
6158+ object $ foldMap (maybe [] pure)
6159+ [ Just $ "unsafe" .= unsafeUnsafe
6160+ ]
6161+
6162+instance FromJSON Unsafe where
6163+ parseJSON (Object v) = Unsafe
6164+ <$> v .: "unsafe"
6165+
61226166 instance ToJSON Unsigned where
61236167 toJSON (Unsigned unsignedUnsigned) =
61246168 object $ foldMap (maybe [] pure)
@@ -6129,6 +6173,16 @@ instance FromJSON Unsigned where
61296173 parseJSON (Object v) = Unsigned
61306174 <$> v .: "unsigned"
61316175
6176+instance ToJSON UseSerializers where
6177+ toJSON (UseSerializers useSerializersUseSerializers) =
6178+ object $ foldMap (maybe [] pure)
6179+ [ Just $ "UseSerializers" .= useSerializersUseSerializers
6180+ ]
6181+
6182+instance FromJSON UseSerializers where
6183+ parseJSON (Object v) = UseSerializers
6184+ <$> v .: "UseSerializers"
6185+
61326186 instance ToJSON Ushort where
61336187 toJSON (Ushort ushortUshort) =
61346188 object $ foldMap (maybe [] pure)
Ajava-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDate {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDate localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -57,8 +58,6 @@ public class Obj3 {
5758 private Mutating mutating;
5859 private Namespace namespace;
5960 private Newtonsoft newtonsoft;
60- private Nil nil;
61- private No no;
6261 private Goto obj3Goto;
6362 private If obj3If;
6463 private Implements obj3Implements;
@@ -285,6 +284,11 @@ public class Obj3 {
285284 @JsonProperty("list")
286285 public void setList(ListClass value) { this.list = value; }
287286
287+ @JsonProperty("LocalDate")
288+ public LocalDate getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDate value) { this.localDate = value; }
291+
288292 @JsonProperty("Locale")
289293 public Locale getLocale() { return locale; }
290294 @JsonProperty("Locale")
@@ -340,16 +344,6 @@ public class Obj3 {
340344 @JsonProperty("newtonsoft")
341345 public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; }
342346
343- @JsonProperty("nil")
344- public Nil getNil() { return nil; }
345- @JsonProperty("nil")
346- public void setNil(Nil value) { this.nil = value; }
347-
348- @JsonProperty("NO")
349- public No getNo() { return no; }
350- @JsonProperty("NO")
351- public void setNo(No value) { this.no = value; }
352-
353347 @JsonProperty("goto")
354348 public Goto getObj3Goto() { return obj3Goto; }
355349 @JsonProperty("goto")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Nil nil;
8+ private No no;
79 private NoSuchMethod noSuchMethod;
810 private Noexcept noexcept;
911 private Nonatomic nonatomic;
@@ -29,6 +31,8 @@ public class Obj4 {
2931 private ObjectClass object;
3032 private ObjectMapperClass objectMapper;
3133 private Of of;
34+ private OffsetDateTime offsetDateTime;
35+ private OffsetTime offsetTime;
3236 private Oneway oneway;
3337 private Open open;
3438 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private Rethrows rethrows;
6569 private Right right;
6670 private RuntimeType runtimeType;
67- private S s;
68- private Sbyte sbyte;
69- private Sealed sealed;
70- private Sel sel;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("nil")
78+ public Nil getNil() { return nil; }
79+ @JsonProperty("nil")
80+ public void setNil(Nil value) { this.nil = value; }
81+
82+ @JsonProperty("NO")
83+ public No getNo() { return no; }
84+ @JsonProperty("NO")
85+ public void setNo(No value) { this.no = value; }
86+
7787 @JsonProperty("noSuchMethod")
7888 public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
7989 @JsonProperty("noSuchMethod")
@@ -199,6 +209,16 @@ public class Obj4 {
199209 @JsonProperty("of")
200210 public void setOf(Of value) { this.of = value; }
201211
212+ @JsonProperty("OffsetDateTime")
213+ public OffsetDateTime getOffsetDateTime() { return offsetDateTime; }
214+ @JsonProperty("OffsetDateTime")
215+ public void setOffsetDateTime(OffsetDateTime value) { this.offsetDateTime = value; }
216+
217+ @JsonProperty("OffsetTime")
218+ public OffsetTime getOffsetTime() { return offsetTime; }
219+ @JsonProperty("OffsetTime")
220+ public void setOffsetTime(OffsetTime value) { this.offsetTime = value; }
221+
202222 @JsonProperty("oneway")
203223 public Oneway getOneway() { return oneway; }
204224 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public RuntimeType getRuntimeType() { return runtimeType; }
374394 @JsonProperty("runtimeType")
375395 public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
376-
377- @JsonProperty("s")
378- public S getS() { return s; }
379- @JsonProperty("s")
380- public void setS(S value) { this.s = value; }
381-
382- @JsonProperty("sbyte")
383- public Sbyte getSbyte() { return sbyte; }
384- @JsonProperty("sbyte")
385- public void setSbyte(Sbyte value) { this.sbyte = value; }
386-
387- @JsonProperty("sealed")
388- public Sealed getSealed() { return sealed; }
389- @JsonProperty("sealed")
390- public void setSealed(Sealed value) { this.sealed = value; }
391-
392- @JsonProperty("SEL")
393- public Sel getSel() { return sel; }
394- @JsonProperty("SEL")
395- public void setSel(Sel value) { this.sel = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+24 −30
@@ -21,6 +21,10 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private S s;
25+ private Sbyte sbyte;
26+ private Sealed sealed;
27+ private Sel sel;
2428 private Select select;
2529 private Self self;
2630 private Sendable sendable;
@@ -64,11 +68,6 @@ public class Obj5 {
6468 private Ulong ulong;
6569 private Unchecked unchecked;
6670 private Undefined undefined;
67- private Union union;
68- private UnmarshalJSON unmarshalJSON;
69- private Unowned unowned;
70- private Unsafe unsafe;
71- private UseSerializers useSerializers;
7271
7372 @JsonProperty("dummy")
7473 public long getDummy() { return dummy; }
@@ -160,6 +159,26 @@ public class Obj5 {
160159 @JsonProperty("true")
161160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
162161
162+ @JsonProperty("s")
163+ public S getS() { return s; }
164+ @JsonProperty("s")
165+ public void setS(S value) { this.s = value; }
166+
167+ @JsonProperty("sbyte")
168+ public Sbyte getSbyte() { return sbyte; }
169+ @JsonProperty("sbyte")
170+ public void setSbyte(Sbyte value) { this.sbyte = value; }
171+
172+ @JsonProperty("sealed")
173+ public Sealed getSealed() { return sealed; }
174+ @JsonProperty("sealed")
175+ public void setSealed(Sealed value) { this.sealed = value; }
176+
177+ @JsonProperty("SEL")
178+ public Sel getSel() { return sel; }
179+ @JsonProperty("SEL")
180+ public void setSel(Sel value) { this.sel = value; }
181+
163182 @JsonProperty("select")
164183 public Select getSelect() { return select; }
165184 @JsonProperty("select")
@@ -374,29 +393,4 @@ public class Obj5 {
374393 public Undefined getUndefined() { return undefined; }
375394 @JsonProperty("undefined")
376395 public void setUndefined(Undefined value) { this.undefined = value; }
377-
378- @JsonProperty("union")
379- public Union getUnion() { return union; }
380- @JsonProperty("union")
381- public void setUnion(Union value) { this.union = value; }
382-
383- @JsonProperty("UnmarshalJSON")
384- public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
385- @JsonProperty("UnmarshalJSON")
386- public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
387-
388- @JsonProperty("unowned")
389- public Unowned getUnowned() { return unowned; }
390- @JsonProperty("unowned")
391- public void setUnowned(Unowned value) { this.unowned = value; }
392-
393- @JsonProperty("unsafe")
394- public Unsafe getUnsafe() { return unsafe; }
395- @JsonProperty("unsafe")
396- public void setUnsafe(Unsafe value) { this.unsafe = value; }
397-
398- @JsonProperty("UseSerializers")
399- public UseSerializers getUseSerializers() { return useSerializers; }
400- @JsonProperty("UseSerializers")
401- public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
402396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+30 −0
@@ -7,7 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Union union;
11+ private UnmarshalJSON unmarshalJSON;
12+ private Unowned unowned;
13+ private Unsafe unsafe;
1014 private Unsigned unsigned;
15+ private UseSerializers useSerializers;
1116 private Ushort ushort;
1217 private Using using;
1318 private Utf8JSONReader utf8JSONReader;
@@ -45,11 +50,36 @@ public class Obj6 {
4550 @JsonProperty("while")
4651 public void setObj6While(While value) { this.obj6While = value; }
4752
53+ @JsonProperty("union")
54+ public Union getUnion() { return union; }
55+ @JsonProperty("union")
56+ public void setUnion(Union value) { this.union = value; }
57+
58+ @JsonProperty("UnmarshalJSON")
59+ public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
60+ @JsonProperty("UnmarshalJSON")
61+ public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
62+
63+ @JsonProperty("unowned")
64+ public Unowned getUnowned() { return unowned; }
65+ @JsonProperty("unowned")
66+ public void setUnowned(Unowned value) { this.unowned = value; }
67+
68+ @JsonProperty("unsafe")
69+ public Unsafe getUnsafe() { return unsafe; }
70+ @JsonProperty("unsafe")
71+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
72+
4873 @JsonProperty("unsigned")
4974 public Unsigned getUnsigned() { return unsigned; }
5075 @JsonProperty("unsigned")
5176 public void setUnsigned(Unsigned value) { this.unsigned = value; }
5277
78+ @JsonProperty("UseSerializers")
79+ public UseSerializers getUseSerializers() { return useSerializers; }
80+ @JsonProperty("UseSerializers")
81+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
82+
5383 @JsonProperty("ushort")
5484 public Ushort getUshort() { return ushort; }
5585 @JsonProperty("ushort")
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTime {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTime {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDateClass {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDateClass localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -57,8 +58,6 @@ public class Obj3 {
5758 private Mutating mutating;
5859 private Namespace namespace;
5960 private Newtonsoft newtonsoft;
60- private Nil nil;
61- private No no;
6261 private Goto obj3Goto;
6362 private If obj3If;
6463 private Implements obj3Implements;
@@ -285,6 +284,11 @@ public class Obj3 {
285284 @JsonProperty("list")
286285 public void setList(ListClass value) { this.list = value; }
287286
287+ @JsonProperty("LocalDate")
288+ public LocalDateClass getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
291+
288292 @JsonProperty("Locale")
289293 public Locale getLocale() { return locale; }
290294 @JsonProperty("Locale")
@@ -340,16 +344,6 @@ public class Obj3 {
340344 @JsonProperty("newtonsoft")
341345 public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; }
342346
343- @JsonProperty("nil")
344- public Nil getNil() { return nil; }
345- @JsonProperty("nil")
346- public void setNil(Nil value) { this.nil = value; }
347-
348- @JsonProperty("NO")
349- public No getNo() { return no; }
350- @JsonProperty("NO")
351- public void setNo(No value) { this.no = value; }
352-
353347 @JsonProperty("goto")
354348 public Goto getObj3Goto() { return obj3Goto; }
355349 @JsonProperty("goto")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Nil nil;
8+ private No no;
79 private NoSuchMethod noSuchMethod;
810 private Noexcept noexcept;
911 private Nonatomic nonatomic;
@@ -29,6 +31,8 @@ public class Obj4 {
2931 private ObjectClass object;
3032 private ObjectMapperClass objectMapper;
3133 private Of of;
34+ private OffsetDateTimeClass offsetDateTime;
35+ private OffsetTimeClass offsetTime;
3236 private Oneway oneway;
3337 private Open open;
3438 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private Rethrows rethrows;
6569 private Right right;
6670 private RuntimeType runtimeType;
67- private S s;
68- private Sbyte sbyte;
69- private Sealed sealed;
70- private Sel sel;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("nil")
78+ public Nil getNil() { return nil; }
79+ @JsonProperty("nil")
80+ public void setNil(Nil value) { this.nil = value; }
81+
82+ @JsonProperty("NO")
83+ public No getNo() { return no; }
84+ @JsonProperty("NO")
85+ public void setNo(No value) { this.no = value; }
86+
7787 @JsonProperty("noSuchMethod")
7888 public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
7989 @JsonProperty("noSuchMethod")
@@ -199,6 +209,16 @@ public class Obj4 {
199209 @JsonProperty("of")
200210 public void setOf(Of value) { this.of = value; }
201211
212+ @JsonProperty("OffsetDateTime")
213+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
214+ @JsonProperty("OffsetDateTime")
215+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
216+
217+ @JsonProperty("OffsetTime")
218+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
219+ @JsonProperty("OffsetTime")
220+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
221+
202222 @JsonProperty("oneway")
203223 public Oneway getOneway() { return oneway; }
204224 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public RuntimeType getRuntimeType() { return runtimeType; }
374394 @JsonProperty("runtimeType")
375395 public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
376-
377- @JsonProperty("s")
378- public S getS() { return s; }
379- @JsonProperty("s")
380- public void setS(S value) { this.s = value; }
381-
382- @JsonProperty("sbyte")
383- public Sbyte getSbyte() { return sbyte; }
384- @JsonProperty("sbyte")
385- public void setSbyte(Sbyte value) { this.sbyte = value; }
386-
387- @JsonProperty("sealed")
388- public Sealed getSealed() { return sealed; }
389- @JsonProperty("sealed")
390- public void setSealed(Sealed value) { this.sealed = value; }
391-
392- @JsonProperty("SEL")
393- public Sel getSel() { return sel; }
394- @JsonProperty("SEL")
395- public void setSel(Sel value) { this.sel = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+24 −30
@@ -21,6 +21,10 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private S s;
25+ private Sbyte sbyte;
26+ private Sealed sealed;
27+ private Sel sel;
2428 private Select select;
2529 private Self self;
2630 private Sendable sendable;
@@ -64,11 +68,6 @@ public class Obj5 {
6468 private Ulong ulong;
6569 private Unchecked unchecked;
6670 private Undefined undefined;
67- private Union union;
68- private UnmarshalJSON unmarshalJSON;
69- private Unowned unowned;
70- private Unsafe unsafe;
71- private UseSerializers useSerializers;
7271
7372 @JsonProperty("dummy")
7473 public long getDummy() { return dummy; }
@@ -160,6 +159,26 @@ public class Obj5 {
160159 @JsonProperty("true")
161160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
162161
162+ @JsonProperty("s")
163+ public S getS() { return s; }
164+ @JsonProperty("s")
165+ public void setS(S value) { this.s = value; }
166+
167+ @JsonProperty("sbyte")
168+ public Sbyte getSbyte() { return sbyte; }
169+ @JsonProperty("sbyte")
170+ public void setSbyte(Sbyte value) { this.sbyte = value; }
171+
172+ @JsonProperty("sealed")
173+ public Sealed getSealed() { return sealed; }
174+ @JsonProperty("sealed")
175+ public void setSealed(Sealed value) { this.sealed = value; }
176+
177+ @JsonProperty("SEL")
178+ public Sel getSel() { return sel; }
179+ @JsonProperty("SEL")
180+ public void setSel(Sel value) { this.sel = value; }
181+
163182 @JsonProperty("select")
164183 public Select getSelect() { return select; }
165184 @JsonProperty("select")
@@ -374,29 +393,4 @@ public class Obj5 {
374393 public Undefined getUndefined() { return undefined; }
375394 @JsonProperty("undefined")
376395 public void setUndefined(Undefined value) { this.undefined = value; }
377-
378- @JsonProperty("union")
379- public Union getUnion() { return union; }
380- @JsonProperty("union")
381- public void setUnion(Union value) { this.union = value; }
382-
383- @JsonProperty("UnmarshalJSON")
384- public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
385- @JsonProperty("UnmarshalJSON")
386- public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
387-
388- @JsonProperty("unowned")
389- public Unowned getUnowned() { return unowned; }
390- @JsonProperty("unowned")
391- public void setUnowned(Unowned value) { this.unowned = value; }
392-
393- @JsonProperty("unsafe")
394- public Unsafe getUnsafe() { return unsafe; }
395- @JsonProperty("unsafe")
396- public void setUnsafe(Unsafe value) { this.unsafe = value; }
397-
398- @JsonProperty("UseSerializers")
399- public UseSerializers getUseSerializers() { return useSerializers; }
400- @JsonProperty("UseSerializers")
401- public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
402396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+30 −0
@@ -7,7 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Union union;
11+ private UnmarshalJSON unmarshalJSON;
12+ private Unowned unowned;
13+ private Unsafe unsafe;
1014 private Unsigned unsigned;
15+ private UseSerializers useSerializers;
1116 private Ushort ushort;
1217 private Using using;
1318 private Utf8JSONReader utf8JSONReader;
@@ -45,11 +50,36 @@ public class Obj6 {
4550 @JsonProperty("while")
4651 public void setObj6While(While value) { this.obj6While = value; }
4752
53+ @JsonProperty("union")
54+ public Union getUnion() { return union; }
55+ @JsonProperty("union")
56+ public void setUnion(Union value) { this.union = value; }
57+
58+ @JsonProperty("UnmarshalJSON")
59+ public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
60+ @JsonProperty("UnmarshalJSON")
61+ public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
62+
63+ @JsonProperty("unowned")
64+ public Unowned getUnowned() { return unowned; }
65+ @JsonProperty("unowned")
66+ public void setUnowned(Unowned value) { this.unowned = value; }
67+
68+ @JsonProperty("unsafe")
69+ public Unsafe getUnsafe() { return unsafe; }
70+ @JsonProperty("unsafe")
71+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
72+
4873 @JsonProperty("unsigned")
4974 public Unsigned getUnsigned() { return unsigned; }
5075 @JsonProperty("unsigned")
5176 public void setUnsigned(Unsigned value) { this.unsigned = value; }
5277
78+ @JsonProperty("UseSerializers")
79+ public UseSerializers getUseSerializers() { return useSerializers; }
80+ @JsonProperty("UseSerializers")
81+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
82+
5383 @JsonProperty("ushort")
5484 public Ushort getUshort() { return ushort; }
5585 @JsonProperty("ushort")
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTimeClass {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTimeClass {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDateClass {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjavadefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDateClass localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -57,8 +58,6 @@ public class Obj3 {
5758 private Mutating mutating;
5859 private Namespace namespace;
5960 private Newtonsoft newtonsoft;
60- private Nil nil;
61- private No no;
6261 private Goto obj3Goto;
6362 private If obj3If;
6463 private Implements obj3Implements;
@@ -285,6 +284,11 @@ public class Obj3 {
285284 @JsonProperty("list")
286285 public void setList(ListClass value) { this.list = value; }
287286
287+ @JsonProperty("LocalDate")
288+ public LocalDateClass getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
291+
288292 @JsonProperty("Locale")
289293 public Locale getLocale() { return locale; }
290294 @JsonProperty("Locale")
@@ -340,16 +344,6 @@ public class Obj3 {
340344 @JsonProperty("newtonsoft")
341345 public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; }
342346
343- @JsonProperty("nil")
344- public Nil getNil() { return nil; }
345- @JsonProperty("nil")
346- public void setNil(Nil value) { this.nil = value; }
347-
348- @JsonProperty("NO")
349- public No getNo() { return no; }
350- @JsonProperty("NO")
351- public void setNo(No value) { this.no = value; }
352-
353347 @JsonProperty("goto")
354348 public Goto getObj3Goto() { return obj3Goto; }
355349 @JsonProperty("goto")
Mjavadefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Nil nil;
8+ private No no;
79 private NoSuchMethod noSuchMethod;
810 private Noexcept noexcept;
911 private Nonatomic nonatomic;
@@ -29,6 +31,8 @@ public class Obj4 {
2931 private ObjectClass object;
3032 private ObjectMapperClass objectMapper;
3133 private Of of;
34+ private OffsetDateTimeClass offsetDateTime;
35+ private OffsetTimeClass offsetTime;
3236 private Oneway oneway;
3337 private Open open;
3438 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private Rethrows rethrows;
6569 private Right right;
6670 private RuntimeType runtimeType;
67- private S s;
68- private Sbyte sbyte;
69- private Sealed sealed;
70- private Sel sel;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("nil")
78+ public Nil getNil() { return nil; }
79+ @JsonProperty("nil")
80+ public void setNil(Nil value) { this.nil = value; }
81+
82+ @JsonProperty("NO")
83+ public No getNo() { return no; }
84+ @JsonProperty("NO")
85+ public void setNo(No value) { this.no = value; }
86+
7787 @JsonProperty("noSuchMethod")
7888 public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
7989 @JsonProperty("noSuchMethod")
@@ -199,6 +209,16 @@ public class Obj4 {
199209 @JsonProperty("of")
200210 public void setOf(Of value) { this.of = value; }
201211
212+ @JsonProperty("OffsetDateTime")
213+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
214+ @JsonProperty("OffsetDateTime")
215+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
216+
217+ @JsonProperty("OffsetTime")
218+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
219+ @JsonProperty("OffsetTime")
220+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
221+
202222 @JsonProperty("oneway")
203223 public Oneway getOneway() { return oneway; }
204224 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public RuntimeType getRuntimeType() { return runtimeType; }
374394 @JsonProperty("runtimeType")
375395 public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
376-
377- @JsonProperty("s")
378- public S getS() { return s; }
379- @JsonProperty("s")
380- public void setS(S value) { this.s = value; }
381-
382- @JsonProperty("sbyte")
383- public Sbyte getSbyte() { return sbyte; }
384- @JsonProperty("sbyte")
385- public void setSbyte(Sbyte value) { this.sbyte = value; }
386-
387- @JsonProperty("sealed")
388- public Sealed getSealed() { return sealed; }
389- @JsonProperty("sealed")
390- public void setSealed(Sealed value) { this.sealed = value; }
391-
392- @JsonProperty("SEL")
393- public Sel getSel() { return sel; }
394- @JsonProperty("SEL")
395- public void setSel(Sel value) { this.sel = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj5.java+24 −30
@@ -21,6 +21,10 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private S s;
25+ private Sbyte sbyte;
26+ private Sealed sealed;
27+ private Sel sel;
2428 private Select select;
2529 private Self self;
2630 private Sendable sendable;
@@ -64,11 +68,6 @@ public class Obj5 {
6468 private Ulong ulong;
6569 private Unchecked unchecked;
6670 private Undefined undefined;
67- private Union union;
68- private UnmarshalJSON unmarshalJSON;
69- private Unowned unowned;
70- private Unsafe unsafe;
71- private UseSerializers useSerializers;
7271
7372 @JsonProperty("dummy")
7473 public long getDummy() { return dummy; }
@@ -160,6 +159,26 @@ public class Obj5 {
160159 @JsonProperty("true")
161160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
162161
162+ @JsonProperty("s")
163+ public S getS() { return s; }
164+ @JsonProperty("s")
165+ public void setS(S value) { this.s = value; }
166+
167+ @JsonProperty("sbyte")
168+ public Sbyte getSbyte() { return sbyte; }
169+ @JsonProperty("sbyte")
170+ public void setSbyte(Sbyte value) { this.sbyte = value; }
171+
172+ @JsonProperty("sealed")
173+ public Sealed getSealed() { return sealed; }
174+ @JsonProperty("sealed")
175+ public void setSealed(Sealed value) { this.sealed = value; }
176+
177+ @JsonProperty("SEL")
178+ public Sel getSel() { return sel; }
179+ @JsonProperty("SEL")
180+ public void setSel(Sel value) { this.sel = value; }
181+
163182 @JsonProperty("select")
164183 public Select getSelect() { return select; }
165184 @JsonProperty("select")
@@ -374,29 +393,4 @@ public class Obj5 {
374393 public Undefined getUndefined() { return undefined; }
375394 @JsonProperty("undefined")
376395 public void setUndefined(Undefined value) { this.undefined = value; }
377-
378- @JsonProperty("union")
379- public Union getUnion() { return union; }
380- @JsonProperty("union")
381- public void setUnion(Union value) { this.union = value; }
382-
383- @JsonProperty("UnmarshalJSON")
384- public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
385- @JsonProperty("UnmarshalJSON")
386- public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
387-
388- @JsonProperty("unowned")
389- public Unowned getUnowned() { return unowned; }
390- @JsonProperty("unowned")
391- public void setUnowned(Unowned value) { this.unowned = value; }
392-
393- @JsonProperty("unsafe")
394- public Unsafe getUnsafe() { return unsafe; }
395- @JsonProperty("unsafe")
396- public void setUnsafe(Unsafe value) { this.unsafe = value; }
397-
398- @JsonProperty("UseSerializers")
399- public UseSerializers getUseSerializers() { return useSerializers; }
400- @JsonProperty("UseSerializers")
401- public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
402396 }
Mjavadefault / src / main / java / io / quicktype / Obj6.java+30 −0
@@ -7,7 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Union union;
11+ private UnmarshalJSON unmarshalJSON;
12+ private Unowned unowned;
13+ private Unsafe unsafe;
1014 private Unsigned unsigned;
15+ private UseSerializers useSerializers;
1116 private Ushort ushort;
1217 private Using using;
1318 private Utf8JSONReader utf8JSONReader;
@@ -45,11 +50,36 @@ public class Obj6 {
4550 @JsonProperty("while")
4651 public void setObj6While(While value) { this.obj6While = value; }
4752
53+ @JsonProperty("union")
54+ public Union getUnion() { return union; }
55+ @JsonProperty("union")
56+ public void setUnion(Union value) { this.union = value; }
57+
58+ @JsonProperty("UnmarshalJSON")
59+ public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; }
60+ @JsonProperty("UnmarshalJSON")
61+ public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; }
62+
63+ @JsonProperty("unowned")
64+ public Unowned getUnowned() { return unowned; }
65+ @JsonProperty("unowned")
66+ public void setUnowned(Unowned value) { this.unowned = value; }
67+
68+ @JsonProperty("unsafe")
69+ public Unsafe getUnsafe() { return unsafe; }
70+ @JsonProperty("unsafe")
71+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
72+
4873 @JsonProperty("unsigned")
4974 public Unsigned getUnsigned() { return unsigned; }
5075 @JsonProperty("unsigned")
5176 public void setUnsigned(Unsigned value) { this.unsigned = value; }
5277
78+ @JsonProperty("UseSerializers")
79+ public UseSerializers getUseSerializers() { return useSerializers; }
80+ @JsonProperty("UseSerializers")
81+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
82+
5383 @JsonProperty("ushort")
5484 public Ushort getUshort() { return ushort; }
5585 @JsonProperty("ushort")
Ajavadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTimeClass {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTimeClass {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Mjavascript-prop-typesdefault / toplevel.js+67 −52
@@ -160,10 +160,10 @@ let _JSONNode;
160160 let _JSONParser;
161161 let _JSONReader;
162162 let _JSONTokenType;
163+let _LocalDate;
163164 let _Locale;
164165 let _MapEntry;
165166 let _MarshalJSON;
166-let _No;
167167 let _Goto;
168168 let _Guard;
169169 let _HasOwnProperty;
@@ -209,17 +209,19 @@ let _Namespace;
209209 let _Native;
210210 let _New;
211211 let _Newtonsoft;
212-let _Nil;
213212 let _Obj4;
213+let _No;
214214 let _NSError;
215215 let _NSObject;
216216 let _NSString;
217217 let _Null;
218218 let _None;
219219 let _ObjectMapper;
220+let _OffsetDateTime;
221+let _OffsetTime;
220222 let _Protocol;
221223 let _RegExp;
222-let _Sel;
224+let _Nil;
223225 let _NoSuchMethod;
224226 let _Noexcept;
225227 let _Nonatomic;
@@ -272,12 +274,10 @@ let _Rethrows;
272274 let _Return;
273275 let _Right;
274276 let _RuntimeType;
275-let _S;
276-let _Sbyte;
277-let _Sealed;
278277 let _Obj5;
279278 let _KSerializer;
280279 let _PrimitiveKind;
280+let _Sel;
281281 let _Self;
282282 let _Sendable;
283283 let _SerialDescriptor;
@@ -293,8 +293,9 @@ let _TimeOnlyConverter;
293293 let _TimeZone;
294294 let _True;
295295 let _Type;
296-let _UnmarshalJSON;
297-let _UseSerializers;
296+let _S;
297+let _Sbyte;
298+let _Sealed;
298299 let _Select;
299300 let _SelfClass;
300301 let _Serialize;
@@ -338,14 +339,16 @@ let _Uint;
338339 let _Ulong;
339340 let _Unchecked;
340341 let _Undefined;
341-let _Union;
342-let _Unowned;
343-let _Unsafe;
344342 let _Obj6;
345343 let _UUID;
344+let _UnmarshalJSON;
345+let _UseSerializers;
346346 let _Utf8JSONReader;
347347 let _Utf8JSONWriter;
348348 let _Yes;
349+let _Union;
350+let _Unowned;
351+let _Unsafe;
349352 let _Unsigned;
350353 let _Ushort;
351354 let _Using;
@@ -926,6 +929,9 @@ _JSONReader = PropTypes.shape({
926929 _JSONTokenType = PropTypes.shape({
927930 "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired,
928931 });
932+_LocalDate = PropTypes.shape({
933+ "LocalDate": PropTypes.oneOfType([Integer]).isRequired,
934+});
929935 _Locale = PropTypes.shape({
930936 "Locale": PropTypes.oneOfType([Integer]).isRequired,
931937 });
@@ -935,9 +941,6 @@ _MapEntry = PropTypes.shape({
935941 _MarshalJSON = PropTypes.shape({
936942 "MarshalJSON": PropTypes.oneOfType([Integer]).isRequired,
937943 });
938-_No = PropTypes.shape({
939- "NO": PropTypes.oneOfType([Integer]).isRequired,
940-});
941944 _Goto = PropTypes.shape({
942945 "goto": PropTypes.oneOfType([Integer]).isRequired,
943946 });
@@ -1073,9 +1076,6 @@ _New = PropTypes.shape({
10731076 _Newtonsoft = PropTypes.shape({
10741077 "newtonsoft": PropTypes.oneOfType([Integer]).isRequired,
10751078 });
1076-_Nil = PropTypes.shape({
1077- "nil": PropTypes.oneOfType([Integer]).isRequired,
1078-});
10791079 _Obj3 = PropTypes.shape({
10801080 "Hashable": _Hashable,
10811081 "Hasher": _Hasher,
@@ -1092,10 +1092,10 @@ _Obj3 = PropTypes.shape({
10921092 "JsonParser": _JSONParser,
10931093 "JsonReader": _JSONReader,
10941094 "JsonTokenType": _JSONTokenType,
1095+ "LocalDate": _LocalDate,
10951096 "Locale": _Locale,
10961097 "MapEntry": _MapEntry,
10971098 "MarshalJSON": _MarshalJSON,
1098- "NO": _No,
10991099 "dummy": PropTypes.oneOfType([Integer]).isRequired,
11001100 "goto": _Goto,
11011101 "guard": _Guard,
@@ -1142,7 +1142,9 @@ _Obj3 = PropTypes.shape({
11421142 "native": _Native,
11431143 "new": _New,
11441144 "newtonsoft": _Newtonsoft,
1145- "nil": _Nil,
1145+});
1146+_No = PropTypes.shape({
1147+ "NO": PropTypes.oneOfType([Integer]).isRequired,
11461148 });
11471149 _NSError = PropTypes.shape({
11481150 "NSError": PropTypes.oneOfType([Integer]).isRequired,
@@ -1162,14 +1164,20 @@ _None = PropTypes.shape({
11621164 _ObjectMapper = PropTypes.shape({
11631165 "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired,
11641166 });
1167+_OffsetDateTime = PropTypes.shape({
1168+ "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired,
1169+});
1170+_OffsetTime = PropTypes.shape({
1171+ "OffsetTime": PropTypes.oneOfType([Integer]).isRequired,
1172+});
11651173 _Protocol = PropTypes.shape({
11661174 "Protocol": PropTypes.oneOfType([Integer]).isRequired,
11671175 });
11681176 _RegExp = PropTypes.shape({
11691177 "RegExp": PropTypes.oneOfType([(props, name) => props[name] == null || /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(props[name]) ? null : new Error("Expected UUID")]).isRequired,
11701178 });
1171-_Sel = PropTypes.shape({
1172- "SEL": PropTypes.oneOfType([Integer]).isRequired,
1179+_Nil = PropTypes.shape({
1180+ "nil": PropTypes.oneOfType([Integer]).isRequired,
11731181 });
11741182 _NoSuchMethod = PropTypes.shape({
11751183 "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
@@ -1327,26 +1335,20 @@ _Right = PropTypes.shape({
13271335 _RuntimeType = PropTypes.shape({
13281336 "runtimeType": PropTypes.oneOfType([Integer]).isRequired,
13291337 });
1330-_S = PropTypes.shape({
1331- "s": PropTypes.oneOfType([Integer]).isRequired,
1332-});
1333-_Sbyte = PropTypes.shape({
1334- "sbyte": PropTypes.oneOfType([Integer]).isRequired,
1335-});
1336-_Sealed = PropTypes.shape({
1337- "sealed": PropTypes.oneOfType([Integer]).isRequired,
1338-});
13391338 _Obj4 = PropTypes.shape({
1339+ "NO": _No,
13401340 "NSError": _NSError,
13411341 "NSObject": _NSObject,
13421342 "NSString": _NSString,
13431343 "NULL": _Null,
13441344 "None": _None,
13451345 "ObjectMapper": _ObjectMapper,
1346+ "OffsetDateTime": _OffsetDateTime,
1347+ "OffsetTime": _OffsetTime,
13461348 "Protocol": _Protocol,
13471349 "RegExp": _RegExp,
1348- "SEL": _Sel,
13491350 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1351+ "nil": _Nil,
13501352 "noSuchMethod": _NoSuchMethod,
13511353 "noexcept": _Noexcept,
13521354 "nonatomic": _Nonatomic,
@@ -1399,9 +1401,6 @@ _Obj4 = PropTypes.shape({
13991401 "return": _Return,
14001402 "right": _Right,
14011403 "runtimeType": _RuntimeType,
1402- "s": _S,
1403- "sbyte": _Sbyte,
1404- "sealed": _Sealed,
14051404 });
14061405 _KSerializer = PropTypes.shape({
14071406 "KSerializer": PropTypes.oneOfType([Integer]).isRequired,
@@ -1409,6 +1408,9 @@ _KSerializer = PropTypes.shape({
14091408 _PrimitiveKind = PropTypes.shape({
14101409 "PrimitiveKind": PropTypes.oneOfType([Integer]).isRequired,
14111410 });
1411+_Sel = PropTypes.shape({
1412+ "SEL": PropTypes.oneOfType([Integer]).isRequired,
1413+});
14121414 _Self = PropTypes.shape({
14131415 "Self": PropTypes.oneOfType([Integer]).isRequired,
14141416 });
@@ -1454,11 +1456,14 @@ _True = PropTypes.shape({
14541456 _Type = PropTypes.shape({
14551457 "Type": PropTypes.oneOfType([Integer]).isRequired,
14561458 });
1457-_UnmarshalJSON = PropTypes.shape({
1458- "UnmarshalJSON": PropTypes.oneOfType([Integer]).isRequired,
1459+_S = PropTypes.shape({
1460+ "s": PropTypes.oneOfType([Integer]).isRequired,
14591461 });
1460-_UseSerializers = PropTypes.shape({
1461- "UseSerializers": PropTypes.oneOfType([Integer]).isRequired,
1462+_Sbyte = PropTypes.shape({
1463+ "sbyte": PropTypes.oneOfType([Integer]).isRequired,
1464+});
1465+_Sealed = PropTypes.shape({
1466+ "sealed": PropTypes.oneOfType([Integer]).isRequired,
14621467 });
14631468 _Select = PropTypes.shape({
14641469 "select": PropTypes.oneOfType([Integer]).isRequired,
@@ -1589,18 +1594,10 @@ _Unchecked = PropTypes.shape({
15891594 _Undefined = PropTypes.shape({
15901595 "undefined": PropTypes.oneOfType([Integer]).isRequired,
15911596 });
1592-_Union = PropTypes.shape({
1593- "union": PropTypes.oneOfType([Integer]).isRequired,
1594-});
1595-_Unowned = PropTypes.shape({
1596- "unowned": PropTypes.oneOfType([Integer]).isRequired,
1597-});
1598-_Unsafe = PropTypes.shape({
1599- "unsafe": PropTypes.oneOfType([Integer]).isRequired,
1600-});
16011597 _Obj5 = PropTypes.shape({
16021598 "KSerializer": _KSerializer,
16031599 "PrimitiveKind": _PrimitiveKind,
1600+ "SEL": _Sel,
16041601 "Self": _Self,
16051602 "Sendable": _Sendable,
16061603 "SerialDescriptor": _SerialDescriptor,
@@ -1616,9 +1613,10 @@ _Obj5 = PropTypes.shape({
16161613 "TimeZone": _TimeZone,
16171614 "True": _True,
16181615 "Type": _Type,
1619- "UnmarshalJSON": _UnmarshalJSON,
1620- "UseSerializers": _UseSerializers,
16211616 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1617+ "s": _S,
1618+ "sbyte": _Sbyte,
1619+ "sealed": _Sealed,
16221620 "select": _Select,
16231621 "self": _SelfClass,
16241622 "serialize": _Serialize,
@@ -1662,13 +1660,16 @@ _Obj5 = PropTypes.shape({
16621660 "ulong": _Ulong,
16631661 "unchecked": _Unchecked,
16641662 "undefined": _Undefined,
1665- "union": _Union,
1666- "unowned": _Unowned,
1667- "unsafe": _Unsafe,
16681663 });
16691664 _UUID = PropTypes.shape({
16701665 "UUID": PropTypes.oneOfType([Integer]).isRequired,
16711666 });
1667+_UnmarshalJSON = PropTypes.shape({
1668+ "UnmarshalJSON": PropTypes.oneOfType([Integer]).isRequired,
1669+});
1670+_UseSerializers = PropTypes.shape({
1671+ "UseSerializers": PropTypes.oneOfType([Integer]).isRequired,
1672+});
16721673 _Utf8JSONReader = PropTypes.shape({
16731674 "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired,
16741675 });
@@ -1678,6 +1679,15 @@ _Utf8JSONWriter = PropTypes.shape({
16781679 _Yes = PropTypes.shape({
16791680 "YES": PropTypes.oneOfType([Integer]).isRequired,
16801681 });
1682+_Union = PropTypes.shape({
1683+ "union": PropTypes.oneOfType([Integer]).isRequired,
1684+});
1685+_Unowned = PropTypes.shape({
1686+ "unowned": PropTypes.oneOfType([Integer]).isRequired,
1687+});
1688+_Unsafe = PropTypes.shape({
1689+ "unsafe": PropTypes.oneOfType([Integer]).isRequired,
1690+});
16811691 _Unsigned = PropTypes.shape({
16821692 "unsigned": PropTypes.oneOfType([Integer]).isRequired,
16831693 });
@@ -1728,10 +1738,15 @@ _Yield = PropTypes.shape({
17281738 });
17291739 _Obj6 = PropTypes.shape({
17301740 "UUID": _UUID,
1741+ "UnmarshalJSON": _UnmarshalJSON,
1742+ "UseSerializers": _UseSerializers,
17311743 "Utf8JsonReader": _Utf8JSONReader,
17321744 "Utf8JsonWriter": _Utf8JSONWriter,
17331745 "YES": _Yes,
17341746 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1747+ "union": _Union,
1748+ "unowned": _Unowned,
1749+ "unsafe": _Unsafe,
17351750 "unsigned": _Unsigned,
17361751 "ushort": _Ushort,
17371752 "using": _Using,
Mjavascriptdefault / TopLevel.js+53 −41
@@ -736,10 +736,10 @@ const typeMap = {
736736 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
737737 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
738738 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
739+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
739740 { json: "Locale", js: "Locale", typ: r("Locale") },
740741 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
741742 { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") },
742- { json: "NO", js: "NO", typ: r("No") },
743743 { json: "dummy", js: "dummy", typ: i(0) },
744744 { json: "goto", js: "goto", typ: r("Goto") },
745745 { json: "guard", js: "guard", typ: r("Guard") },
@@ -786,7 +786,6 @@ const typeMap = {
786786 { json: "native", js: "native", typ: r("Native") },
787787 { json: "new", js: "new", typ: r("New") },
788788 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
789- { json: "nil", js: "nil", typ: r("Nil") },
790789 ], false),
791790 "Hashable": o([
792791 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -833,6 +832,9 @@ const typeMap = {
833832 "JSONTokenType": o([
834833 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
835834 ], false),
835+ "LocalDate": o([
836+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
837+ ], false),
836838 "Locale": o([
837839 { json: "Locale", js: "Locale", typ: i(0) },
838840 ], false),
@@ -842,9 +844,6 @@ const typeMap = {
842844 "MarshalJSON": o([
843845 { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) },
844846 ], false),
845- "No": o([
846- { json: "NO", js: "NO", typ: i(0) },
847- ], false),
848847 "Goto": o([
849848 { json: "goto", js: "goto", typ: i(0) },
850849 ], false),
@@ -980,20 +979,20 @@ const typeMap = {
980979 "Newtonsoft": o([
981980 { json: "newtonsoft", js: "newtonsoft", typ: i(0) },
982981 ], false),
983- "Nil": o([
984- { json: "nil", js: "nil", typ: i(0) },
985- ], false),
986982 "Obj4": o([
983+ { json: "NO", js: "NO", typ: r("No") },
987984 { json: "NSError", js: "NSError", typ: r("NSError") },
988985 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
989986 { json: "NSString", js: "NSString", typ: r("NSString") },
990987 { json: "NULL", js: "NULL", typ: r("Null") },
991988 { json: "None", js: "None", typ: r("None") },
992989 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
990+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
991+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
993992 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
994993 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
995- { json: "SEL", js: "SEL", typ: r("Sel") },
996994 { json: "dummy", js: "dummy", typ: i(0) },
995+ { json: "nil", js: "nil", typ: r("Nil") },
997996 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
998997 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
999998 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
@@ -1046,9 +1045,9 @@ const typeMap = {
10461045 { json: "return", js: "return", typ: r("Return") },
10471046 { json: "right", js: "right", typ: r("Right") },
10481047 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
1049- { json: "s", js: "s", typ: r("S") },
1050- { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
1051- { json: "sealed", js: "sealed", typ: r("Sealed") },
1048+ ], false),
1049+ "No": o([
1050+ { json: "NO", js: "NO", typ: i(0) },
10521051 ], false),
10531052 "NSError": o([
10541053 { json: "NSError", js: "NSError", typ: i(0) },
@@ -1068,14 +1067,20 @@ const typeMap = {
10681067 "ObjectMapper": o([
10691068 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
10701069 ], false),
1070+ "OffsetDateTime": o([
1071+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
1072+ ], false),
1073+ "OffsetTime": o([
1074+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
1075+ ], false),
10711076 "Protocol": o([
10721077 { json: "Protocol", js: "Protocol", typ: i(0) },
10731078 ], false),
10741079 "RegExp": o([
10751080 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
10761081 ], false),
1077- "Sel": o([
1078- { json: "SEL", js: "SEL", typ: i(0) },
1082+ "Nil": o([
1083+ { json: "nil", js: "nil", typ: i(0) },
10791084 ], false),
10801085 "NoSuchMethod": o([
10811086 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
@@ -1233,18 +1238,10 @@ const typeMap = {
12331238 "RuntimeType": o([
12341239 { json: "runtimeType", js: "runtimeType", typ: i(0) },
12351240 ], false),
1236- "S": o([
1237- { json: "s", js: "s", typ: i(0) },
1238- ], false),
1239- "Sbyte": o([
1240- { json: "sbyte", js: "sbyte", typ: i(0) },
1241- ], false),
1242- "Sealed": o([
1243- { json: "sealed", js: "sealed", typ: i(0) },
1244- ], false),
12451241 "Obj5": o([
12461242 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
12471243 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
1244+ { json: "SEL", js: "SEL", typ: r("Sel") },
12481245 { json: "Self", js: "Self", typ: r("Self") },
12491246 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
12501247 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -1260,9 +1257,10 @@ const typeMap = {
12601257 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
12611258 { json: "True", js: "True", typ: r("True") },
12621259 { json: "Type", js: "Type", typ: r("Type") },
1263- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
1264- { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
12651260 { json: "dummy", js: "dummy", typ: i(0) },
1261+ { json: "s", js: "s", typ: r("S") },
1262+ { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
1263+ { json: "sealed", js: "sealed", typ: r("Sealed") },
12661264 { json: "select", js: "select", typ: r("Select") },
12671265 { json: "self", js: "self", typ: r("SelfClass") },
12681266 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -1306,9 +1304,6 @@ const typeMap = {
13061304 { json: "ulong", js: "ulong", typ: r("Ulong") },
13071305 { json: "unchecked", js: "unchecked", typ: r("Unchecked") },
13081306 { json: "undefined", js: "undefined", typ: r("Undefined") },
1309- { json: "union", js: "union", typ: r("Union") },
1310- { json: "unowned", js: "unowned", typ: r("Unowned") },
1311- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
13121307 ], false),
13131308 "KSerializer": o([
13141309 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -1316,6 +1311,9 @@ const typeMap = {
13161311 "PrimitiveKind": o([
13171312 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
13181313 ], false),
1314+ "Sel": o([
1315+ { json: "SEL", js: "SEL", typ: i(0) },
1316+ ], false),
13191317 "Self": o([
13201318 { json: "Self", js: "Self", typ: i(0) },
13211319 ], false),
@@ -1361,11 +1359,14 @@ const typeMap = {
13611359 "Type": o([
13621360 { json: "Type", js: "Type", typ: i(0) },
13631361 ], false),
1364- "UnmarshalJSON": o([
1365- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
1362+ "S": o([
1363+ { json: "s", js: "s", typ: i(0) },
13661364 ], false),
1367- "UseSerializers": o([
1368- { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
1365+ "Sbyte": o([
1366+ { json: "sbyte", js: "sbyte", typ: i(0) },
1367+ ], false),
1368+ "Sealed": o([
1369+ { json: "sealed", js: "sealed", typ: i(0) },
13691370 ], false),
13701371 "Select": o([
13711372 { json: "select", js: "select", typ: i(0) },
@@ -1496,21 +1497,17 @@ const typeMap = {
14961497 "Undefined": o([
14971498 { json: "undefined", js: "undefined", typ: i(0) },
14981499 ], false),
1499- "Union": o([
1500- { json: "union", js: "union", typ: i(0) },
1501- ], false),
1502- "Unowned": o([
1503- { json: "unowned", js: "unowned", typ: i(0) },
1504- ], false),
1505- "Unsafe": o([
1506- { json: "unsafe", js: "unsafe", typ: i(0) },
1507- ], false),
15081500 "Obj6": o([
15091501 { json: "UUID", js: "UUID", typ: r("UUID") },
1502+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
1503+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
15101504 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
15111505 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
15121506 { json: "YES", js: "YES", typ: r("Yes") },
15131507 { json: "dummy", js: "dummy", typ: i(0) },
1508+ { json: "union", js: "union", typ: r("Union") },
1509+ { json: "unowned", js: "unowned", typ: r("Unowned") },
1510+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
15141511 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
15151512 { json: "ushort", js: "ushort", typ: r("Ushort") },
15161513 { json: "using", js: "using", typ: r("Using") },
@@ -1531,6 +1528,12 @@ const typeMap = {
15311528 "UUID": o([
15321529 { json: "UUID", js: "UUID", typ: i(0) },
15331530 ], false),
1531+ "UnmarshalJSON": o([
1532+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
1533+ ], false),
1534+ "UseSerializers": o([
1535+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
1536+ ], false),
15341537 "Utf8JSONReader": o([
15351538 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
15361539 ], false),
@@ -1540,6 +1543,15 @@ const typeMap = {
15401543 "Yes": o([
15411544 { json: "YES", js: "YES", typ: i(0) },
15421545 ], false),
1546+ "Union": o([
1547+ { json: "union", js: "union", typ: i(0) },
1548+ ], false),
1549+ "Unowned": o([
1550+ { json: "unowned", js: "unowned", typ: i(0) },
1551+ ], false),
1552+ "Unsafe": o([
1553+ { json: "unsafe", js: "unsafe", typ: i(0) },
1554+ ], false),
15431555 "Unsigned": o([
15441556 { json: "unsigned", js: "unsigned", typ: i(0) },
15451557 ], false),
Mkotlin-jacksondefault / TopLevel.kt+111 −87
@@ -1249,6 +1249,9 @@ data class Obj3 (
12491249 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
12501250 val list: ListClass,
12511251
1252+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1253+ val localDate: LocalDate,
1254+
12521255 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
12531256 val locale: Locale,
12541257
@@ -1291,12 +1294,6 @@ data class Obj3 (
12911294 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
12921295 val newtonsoft: Newtonsoft,
12931296
1294- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1295- val nil: Nil,
1296-
1297- @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
1298- val no: No,
1299-
13001297 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
13011298 val obj3If: If,
13021299
@@ -1535,6 +1532,11 @@ data class ListClass (
15351532 val list: Long
15361533 )
15371534
1535+data class LocalDate (
1536+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1537+ val localDate: Long
1538+)
1539+
15381540 data class Locale (
15391541 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
15401542 val locale: Long
@@ -1605,16 +1607,6 @@ data class Newtonsoft (
16051607 val newtonsoft: Long
16061608 )
16071609
1608-data class Nil (
1609- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1610- val nil: Long
1611-)
1612-
1613-data class No (
1614- @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
1615- val no: Long
1616-)
1617-
16181610 data class If (
16191611 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
16201612 val ifIf: Long
@@ -1639,6 +1631,12 @@ data class Obj4 (
16391631 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16401632 val dummy: Long,
16411633
1634+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1635+ val nil: Nil,
1636+
1637+ @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
1638+ val no: No,
1639+
16421640 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16431641 val noSuchMethod: NoSuchMethod,
16441642
@@ -1705,6 +1703,12 @@ data class Obj4 (
17051703 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17061704 val of: Of,
17071705
1706+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1707+ val offsetDateTime: OffsetDateTimeClass,
1708+
1709+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1710+ val offsetTime: OffsetTime,
1711+
17081712 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17091713 val oneway: Oneway,
17101714
@@ -1817,19 +1821,17 @@ data class Obj4 (
18171821 val right: Right,
18181822
18191823 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1820- val runtimeType: RuntimeType,
1821-
1822- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1823- val s: S,
1824-
1825- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1826- val sbyte: Sbyte,
1824+ val runtimeType: RuntimeType
1825+)
18271826
1827+data class Nil (
18281828 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1829- val sealed: Sealed,
1829+ val nil: Long
1830+)
18301831
1831- @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
1832- val sel: Sel
1832+data class No (
1833+ @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
1834+ val no: Long
18331835 )
18341836
18351837 data class NoSuchMethod (
@@ -1942,6 +1944,16 @@ data class Of (
19421944 val of: Long
19431945 )
19441946
1947+data class OffsetDateTimeClass (
1948+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1949+ val offsetDateTime: Long
1950+)
1951+
1952+data class OffsetTime (
1953+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1954+ val offsetTime: Long
1955+)
1956+
19451957 data class Oneway (
19461958 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
19471959 val oneway: Long
@@ -2132,26 +2144,6 @@ data class RuntimeType (
21322144 val runtimeType: Long
21332145 )
21342146
2135-data class S (
2136- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2137- val s: Long
2138-)
2139-
2140-data class Sbyte (
2141- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2142- val sbyte: Long
2143-)
2144-
2145-data class Sealed (
2146- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2147- val sealed: Long
2148-)
2149-
2150-data class Sel (
2151- @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2152- val sel: Long
2153-)
2154-
21552147 data class Obj5 (
21562148 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21572149 val dummy: Long,
@@ -2192,6 +2184,18 @@ data class Obj5 (
21922184 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21932185 val purpleTrue: TrueClass,
21942186
2187+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2188+ val s: S,
2189+
2190+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2191+ val sbyte: Sbyte,
2192+
2193+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2194+ val sealed: Sealed,
2195+
2196+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2197+ val sel: Sel,
2198+
21952199 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21962200 val select: Select,
21972201
@@ -2334,22 +2338,7 @@ data class Obj5 (
23342338 val unchecked: Unchecked,
23352339
23362340 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2337- val undefined: Undefined,
2338-
2339- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2340- val union: Union,
2341-
2342- @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true)
2343- val unmarshalJSON: UnmarshalJSON,
2344-
2345- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2346- val unowned: Unowned,
2347-
2348- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2349- val unsafe: Unsafe,
2350-
2351- @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2352- val useSerializers: UseSerializers
2341+ val undefined: Undefined
23532342 )
23542343
23552344 data class KSerializer (
@@ -2412,6 +2401,26 @@ data class TrueClass (
24122401 val trueTrue: Long
24132402 )
24142403
2404+data class S (
2405+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2406+ val s: Long
2407+)
2408+
2409+data class Sbyte (
2410+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2411+ val sbyte: Long
2412+)
2413+
2414+data class Sealed (
2415+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2416+ val sealed: Long
2417+)
2418+
2419+data class Sel (
2420+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2421+ val sel: Long
2422+)
2423+
24152424 data class Select (
24162425 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
24172426 val select: Long
@@ -2652,31 +2661,6 @@ data class Undefined (
26522661 val undefined: Long
26532662 )
26542663
2655-data class Union (
2656- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2657- val union: Long
2658-)
2659-
2660-data class UnmarshalJSON (
2661- @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true)
2662- val unmarshalJSON: Long
2663-)
2664-
2665-data class Unowned (
2666- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2667- val unowned: Long
2668-)
2669-
2670-data class Unsafe (
2671- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2672- val unsafe: Long
2673-)
2674-
2675-data class UseSerializers (
2676- @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2677- val useSerializers: Long
2678-)
2679-
26802664 data class Obj6 (
26812665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26822666 val dummy: Long,
@@ -2687,9 +2671,24 @@ data class Obj6 (
26872671 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26882672 val obj6While: While,
26892673
2674+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2675+ val union: Union,
2676+
2677+ @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true)
2678+ val unmarshalJSON: UnmarshalJSON,
2679+
2680+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2681+ val unowned: Unowned,
2682+
2683+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2684+ val unsafe: Unsafe,
2685+
26902686 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26912687 val unsigned: Unsigned,
26922688
2689+ @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2690+ val useSerializers: UseSerializers,
2691+
26932692 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26942693 val ushort: Ushort,
26952694
@@ -2752,11 +2751,36 @@ data class While (
27522751 val whileWhile: Long
27532752 )
27542753
2754+data class Union (
2755+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2756+ val union: Long
2757+)
2758+
2759+data class UnmarshalJSON (
2760+ @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true)
2761+ val unmarshalJSON: Long
2762+)
2763+
2764+data class Unowned (
2765+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2766+ val unowned: Long
2767+)
2768+
2769+data class Unsafe (
2770+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2771+ val unsafe: Long
2772+)
2773+
27552774 data class Unsigned (
27562775 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27572776 val unsigned: Long
27582777 )
27592778
2779+data class UseSerializers (
2780+ @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2781+ val useSerializers: Long
2782+)
2783+
27602784 data class Ushort (
27612785 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27622786 val ushort: Long
Mkotlindefault / TopLevel.kt+97 −69
@@ -951,6 +951,9 @@ data class Obj3 (
951951 val let: Let,
952952 val list: ListClass,
953953
954+ @Json(name = "LocalDate")
955+ val localDate: LocalDate,
956+
954957 @Json(name = "Locale")
955958 val locale: Locale,
956959
@@ -974,10 +977,6 @@ data class Obj3 (
974977 val native: Native,
975978 val new: New,
976979 val newtonsoft: Newtonsoft,
977- val nil: Nil,
978-
979- @Json(name = "NO")
980- val no: No,
981980
982981 @Json(name = "if")
983982 val obj3If: If,
@@ -1191,6 +1190,11 @@ data class ListClass (
11911190 val list: Long
11921191 )
11931192
1193+data class LocalDate (
1194+ @Json(name = "LocalDate")
1195+ val localDate: Long
1196+)
1197+
11941198 data class Locale (
11951199 @Json(name = "Locale")
11961200 val locale: Long
@@ -1251,15 +1255,6 @@ data class Newtonsoft (
12511255 val newtonsoft: Long
12521256 )
12531257
1254-data class Nil (
1255- val nil: Long
1256-)
1257-
1258-data class No (
1259- @Json(name = "NO")
1260- val no: Long
1261-)
1262-
12631258 data class If (
12641259 @Json(name = "if")
12651260 val ifIf: Long
@@ -1282,6 +1277,11 @@ data class Is (
12821277
12831278 data class Obj4 (
12841279 val dummy: Long,
1280+ val nil: Nil,
1281+
1282+ @Json(name = "NO")
1283+ val no: No,
1284+
12851285 val noSuchMethod: NoSuchMethod,
12861286 val noexcept: Noexcept,
12871287 val nonatomic: Nonatomic,
@@ -1333,6 +1333,13 @@ data class Obj4 (
13331333 val objectMapper: ObjectMapper,
13341334
13351335 val of: Of,
1336+
1337+ @Json(name = "OffsetDateTime")
1338+ val offsetDateTime: OffsetDateTimeClass,
1339+
1340+ @Json(name = "OffsetTime")
1341+ val offsetTime: OffsetTime,
1342+
13361343 val oneway: Oneway,
13371344 val open: Open,
13381345 val operator: Operator,
@@ -1382,13 +1389,16 @@ data class Obj4 (
13821389 val retain: Retain,
13831390 val rethrows: Rethrows,
13841391 val right: Right,
1385- val runtimeType: RuntimeType,
1386- val s: S,
1387- val sbyte: Sbyte,
1388- val sealed: Sealed,
1392+ val runtimeType: RuntimeType
1393+)
13891394
1390- @Json(name = "SEL")
1391- val sel: Sel
1395+data class Nil (
1396+ val nil: Long
1397+)
1398+
1399+data class No (
1400+ @Json(name = "NO")
1401+ val no: Long
13921402 )
13931403
13941404 data class NoSuchMethod (
@@ -1490,6 +1500,16 @@ data class Of (
14901500 val of: Long
14911501 )
14921502
1503+data class OffsetDateTimeClass (
1504+ @Json(name = "OffsetDateTime")
1505+ val offsetDateTime: Long
1506+)
1507+
1508+data class OffsetTime (
1509+ @Json(name = "OffsetTime")
1510+ val offsetTime: Long
1511+)
1512+
14931513 data class Oneway (
14941514 val oneway: Long
14951515 )
@@ -1646,23 +1666,6 @@ data class RuntimeType (
16461666 val runtimeType: Long
16471667 )
16481668
1649-data class S (
1650- val s: Long
1651-)
1652-
1653-data class Sbyte (
1654- val sbyte: Long
1655-)
1656-
1657-data class Sealed (
1658- val sealed: Long
1659-)
1660-
1661-data class Sel (
1662- @Json(name = "SEL")
1663- val sel: Long
1664-)
1665-
16661669 data class Obj5 (
16671670 val dummy: Long,
16681671
@@ -1702,6 +1705,13 @@ data class Obj5 (
17021705 @Json(name = "true")
17031706 val purpleTrue: TrueClass,
17041707
1708+ val s: S,
1709+ val sbyte: Sbyte,
1710+ val sealed: Sealed,
1711+
1712+ @Json(name = "SEL")
1713+ val sel: Sel,
1714+
17051715 val select: Select,
17061716
17071717 @Json(name = "Self")
@@ -1798,17 +1808,7 @@ data class Obj5 (
17981808 val uint: Uint,
17991809 val ulong: Ulong,
18001810 val unchecked: Unchecked,
1801- val undefined: Undefined,
1802- val union: Union,
1803-
1804- @Json(name = "UnmarshalJSON")
1805- val unmarshalJSON: UnmarshalJSON,
1806-
1807- val unowned: Unowned,
1808- val unsafe: Unsafe,
1809-
1810- @Json(name = "UseSerializers")
1811- val useSerializers: UseSerializers
1811+ val undefined: Undefined
18121812 )
18131813
18141814 data class KSerializer (
@@ -1869,6 +1869,23 @@ data class TrueClass (
18691869 val trueTrue: Long
18701870 )
18711871
1872+data class S (
1873+ val s: Long
1874+)
1875+
1876+data class Sbyte (
1877+ val sbyte: Long
1878+)
1879+
1880+data class Sealed (
1881+ val sealed: Long
1882+)
1883+
1884+data class Sel (
1885+ @Json(name = "SEL")
1886+ val sel: Long
1887+)
1888+
18721889 data class Select (
18731890 val select: Long
18741891 )
@@ -2081,28 +2098,6 @@ data class Undefined (
20812098 val undefined: Long
20822099 )
20832100
2084-data class Union (
2085- val union: Long
2086-)
2087-
2088-data class UnmarshalJSON (
2089- @Json(name = "UnmarshalJSON")
2090- val unmarshalJSON: Long
2091-)
2092-
2093-data class Unowned (
2094- val unowned: Long
2095-)
2096-
2097-data class Unsafe (
2098- val unsafe: Long
2099-)
2100-
2101-data class UseSerializers (
2102- @Json(name = "UseSerializers")
2103- val useSerializers: Long
2104-)
2105-
21062101 data class Obj6 (
21072102 val dummy: Long,
21082103
@@ -2112,7 +2107,18 @@ data class Obj6 (
21122107 @Json(name = "while")
21132108 val obj6While: While,
21142109
2110+ val union: Union,
2111+
2112+ @Json(name = "UnmarshalJSON")
2113+ val unmarshalJSON: UnmarshalJSON,
2114+
2115+ val unowned: Unowned,
2116+ val unsafe: Unsafe,
21152117 val unsigned: Unsigned,
2118+
2119+ @Json(name = "UseSerializers")
2120+ val useSerializers: UseSerializers,
2121+
21162122 val ushort: Ushort,
21172123 val using: Using,
21182124
@@ -2157,10 +2163,32 @@ data class While (
21572163 val whileWhile: Long
21582164 )
21592165
2166+data class Union (
2167+ val union: Long
2168+)
2169+
2170+data class UnmarshalJSON (
2171+ @Json(name = "UnmarshalJSON")
2172+ val unmarshalJSON: Long
2173+)
2174+
2175+data class Unowned (
2176+ val unowned: Long
2177+)
2178+
2179+data class Unsafe (
2180+ val unsafe: Long
2181+)
2182+
21602183 data class Unsigned (
21612184 val unsigned: Long
21622185 )
21632186
2187+data class UseSerializers (
2188+ @Json(name = "UseSerializers")
2189+ val useSerializers: Long
2190+)
2191+
21642192 data class Ushort (
21652193 val ushort: Long
21662194 )
Mkotlinxdefault / TopLevel.kt+111 −80
@@ -1064,6 +1064,9 @@ data class Obj3 (
10641064 val let: Let,
10651065 val list: ListClass,
10661066
1067+ @SerialName("LocalDate")
1068+ val localDate: LocalDate,
1069+
10671070 @SerialName("Locale")
10681071 val locale: Locale,
10691072
@@ -1087,10 +1090,6 @@ data class Obj3 (
10871090 val native: Native,
10881091 val new: New,
10891092 val newtonsoft: Newtonsoft,
1090- val nil: Nil,
1091-
1092- @SerialName("NO")
1093- val no: No,
10941093
10951094 @SerialName("if")
10961095 val obj3If: If,
@@ -1349,6 +1348,12 @@ data class ListClass (
13491348 val list: Long
13501349 )
13511350
1351+@Serializable
1352+data class LocalDate (
1353+ @SerialName("LocalDate")
1354+ val localDate: Long
1355+)
1356+
13521357 @Serializable
13531358 data class Locale (
13541359 @SerialName("Locale")
@@ -1423,17 +1428,6 @@ data class Newtonsoft (
14231428 val newtonsoft: Long
14241429 )
14251430
1426-@Serializable
1427-data class Nil (
1428- val nil: Long
1429-)
1430-
1431-@Serializable
1432-data class No (
1433- @SerialName("NO")
1434- val no: Long
1435-)
1436-
14371431 @Serializable
14381432 data class If (
14391433 @SerialName("if")
@@ -1461,6 +1455,11 @@ data class Is (
14611455 @Serializable
14621456 data class Obj4 (
14631457 val dummy: Long,
1458+ val nil: Nil,
1459+
1460+ @SerialName("NO")
1461+ val no: No,
1462+
14641463 val noSuchMethod: NoSuchMethod,
14651464 val noexcept: Noexcept,
14661465 val nonatomic: Nonatomic,
@@ -1512,6 +1511,13 @@ data class Obj4 (
15121511 val objectMapper: ObjectMapper,
15131512
15141513 val of: Of,
1514+
1515+ @SerialName("OffsetDateTime")
1516+ val offsetDateTime: OffsetDateTimeClass,
1517+
1518+ @SerialName("OffsetTime")
1519+ val offsetTime: OffsetTime,
1520+
15151521 val oneway: Oneway,
15161522 val open: Open,
15171523 val operator: Operator,
@@ -1561,13 +1567,18 @@ data class Obj4 (
15611567 val retain: Retain,
15621568 val rethrows: Rethrows,
15631569 val right: Right,
1564- val runtimeType: RuntimeType,
1565- val s: S,
1566- val sbyte: Sbyte,
1567- val sealed: Sealed,
1570+ val runtimeType: RuntimeType
1571+)
15681572
1569- @SerialName("SEL")
1570- val sel: Sel
1573+@Serializable
1574+data class Nil (
1575+ val nil: Long
1576+)
1577+
1578+@Serializable
1579+data class No (
1580+ @SerialName("NO")
1581+ val no: Long
15711582 )
15721583
15731584 @Serializable
@@ -1691,6 +1702,18 @@ data class Of (
16911702 val of: Long
16921703 )
16931704
1705+@Serializable
1706+data class OffsetDateTimeClass (
1707+ @SerialName("OffsetDateTime")
1708+ val offsetDateTime: Long
1709+)
1710+
1711+@Serializable
1712+data class OffsetTime (
1713+ @SerialName("OffsetTime")
1714+ val offsetTime: Long
1715+)
1716+
16941717 @Serializable
16951718 data class Oneway (
16961719 val oneway: Long
@@ -1885,27 +1908,6 @@ data class RuntimeType (
18851908 val runtimeType: Long
18861909 )
18871910
1888-@Serializable
1889-data class S (
1890- val s: Long
1891-)
1892-
1893-@Serializable
1894-data class Sbyte (
1895- val sbyte: Long
1896-)
1897-
1898-@Serializable
1899-data class Sealed (
1900- val sealed: Long
1901-)
1902-
1903-@Serializable
1904-data class Sel (
1905- @SerialName("SEL")
1906- val sel: Long
1907-)
1908-
19091911 @Serializable
19101912 data class Obj5 (
19111913 val dummy: Long,
@@ -1946,6 +1948,13 @@ data class Obj5 (
19461948 @SerialName("true")
19471949 val purpleTrue: TrueClass,
19481950
1951+ val s: S,
1952+ val sbyte: Sbyte,
1953+ val sealed: Sealed,
1954+
1955+ @SerialName("SEL")
1956+ val sel: Sel,
1957+
19491958 val select: Select,
19501959
19511960 @SerialName("Self")
@@ -2042,17 +2051,7 @@ data class Obj5 (
20422051 val uint: Uint,
20432052 val ulong: Ulong,
20442053 val unchecked: Unchecked,
2045- val undefined: Undefined,
2046- val union: Union,
2047-
2048- @SerialName("UnmarshalJSON")
2049- val unmarshalJSON: UnmarshalJSON,
2050-
2051- val unowned: Unowned,
2052- val unsafe: Unsafe,
2053-
2054- @SerialName("UseSerializers")
2055- val useSerializers: UseSerializersClass
2054+ val undefined: Undefined
20562055 )
20572056
20582057 @Serializable
@@ -2125,6 +2124,27 @@ data class TrueClass (
21252124 val trueTrue: Long
21262125 )
21272126
2127+@Serializable
2128+data class S (
2129+ val s: Long
2130+)
2131+
2132+@Serializable
2133+data class Sbyte (
2134+ val sbyte: Long
2135+)
2136+
2137+@Serializable
2138+data class Sealed (
2139+ val sealed: Long
2140+)
2141+
2142+@Serializable
2143+data class Sel (
2144+ @SerialName("SEL")
2145+ val sel: Long
2146+)
2147+
21282148 @Serializable
21292149 data class Select (
21302150 val select: Long
@@ -2385,33 +2405,6 @@ data class Undefined (
23852405 val undefined: Long
23862406 )
23872407
2388-@Serializable
2389-data class Union (
2390- val union: Long
2391-)
2392-
2393-@Serializable
2394-data class UnmarshalJSON (
2395- @SerialName("UnmarshalJSON")
2396- val unmarshalJSON: Long
2397-)
2398-
2399-@Serializable
2400-data class Unowned (
2401- val unowned: Long
2402-)
2403-
2404-@Serializable
2405-data class Unsafe (
2406- val unsafe: Long
2407-)
2408-
2409-@Serializable
2410-data class UseSerializersClass (
2411- @SerialName("UseSerializers")
2412- val useSerializers: Long
2413-)
2414-
24152408 @Serializable
24162409 data class Obj6 (
24172410 val dummy: Long,
@@ -2422,7 +2415,18 @@ data class Obj6 (
24222415 @SerialName("while")
24232416 val obj6While: While,
24242417
2418+ val union: Union,
2419+
2420+ @SerialName("UnmarshalJSON")
2421+ val unmarshalJSON: UnmarshalJSON,
2422+
2423+ val unowned: Unowned,
2424+ val unsafe: Unsafe,
24252425 val unsigned: Unsigned,
2426+
2427+ @SerialName("UseSerializers")
2428+ val useSerializers: UseSerializersClass,
2429+
24262430 val ushort: Ushort,
24272431 val using: Using,
24282432
@@ -2469,11 +2473,38 @@ data class While (
24692473 val whileWhile: Long
24702474 )
24712475
2476+@Serializable
2477+data class Union (
2478+ val union: Long
2479+)
2480+
2481+@Serializable
2482+data class UnmarshalJSON (
2483+ @SerialName("UnmarshalJSON")
2484+ val unmarshalJSON: Long
2485+)
2486+
2487+@Serializable
2488+data class Unowned (
2489+ val unowned: Long
2490+)
2491+
2492+@Serializable
2493+data class Unsafe (
2494+ val unsafe: Long
2495+)
2496+
24722497 @Serializable
24732498 data class Unsigned (
24742499 val unsigned: Long
24752500 )
24762501
2502+@Serializable
2503+data class UseSerializersClass (
2504+ @SerialName("UseSerializers")
2505+ val useSerializers: Long
2506+)
2507+
24772508 @Serializable
24782509 data class Ushort (
24792510 val ushort: Long
Mobjective-cdefault / QTTopLevel.h+84 −66
@@ -181,6 +181,7 @@
181181 @class QTLeft;
182182 @class QTLet;
183183 @class QTList;
184+@class QTLocalDate;
184185 @class QTLocale;
185186 @class QTLock;
186187 @class QTMap;
@@ -193,17 +194,16 @@
193194 @class QTNamespace;
194195 @class QTNative;
195196 @class QTNewtonsoft;
196-@class QTNo;
197197 @class QTGoto;
198198 @class QTIf;
199199 @class QTInline;
200200 @class QTInt;
201201 @class QTLong;
202-@class QTNil;
203202 @class QTHashCode;
204203 @class QTInit;
205204 @class QTNew;
206205 @class QTObj4;
206+@class QTNo;
207207 @class QTNoSuchMethod;
208208 @class QTNoexcept;
209209 @class QTNone;
@@ -217,6 +217,7 @@
217217 @class QTNull;
218218 @class QTNullptr;
219219 @class QTNumber;
220+@class QTNil;
220221 @class QTNonatomic;
221222 @class QTNoneClass;
222223 @class QTNullClass;
@@ -228,6 +229,8 @@
228229 @class QTObject;
229230 @class QTObjectMapper;
230231 @class QTOf;
232+@class QTOffsetDateTime;
233+@class QTOffsetTime;
231234 @class QTOneway;
232235 @class QTOpen;
233236 @class QTOperator;
@@ -264,10 +267,6 @@
264267 @class QTRethrows;
265268 @class QTRight;
266269 @class QTRuntimeType;
267-@class QTS;
268-@class QTSbyte;
269-@class QTSealed;
270-@class QTSel;
271270 @class QTObj5;
272271 @class QTKSerializer;
273272 @class QTSelfClass;
@@ -281,8 +280,11 @@
281280 @class QTTypeClass;
282281 @class QTTypedef;
283282 @class QTTypeof;
284-@class QTUnion;
285283 @class QTPrimitiveKind;
284+@class QTS;
285+@class QTSbyte;
286+@class QTSealed;
287+@class QTSel;
286288 @class QTSelect;
287289 @class QTSelf;
288290 @class QTSendable;
@@ -330,15 +332,16 @@
330332 @class QTUlong;
331333 @class QTUnchecked;
332334 @class QTUndefined;
333-@class QTUnmarshalJSON;
334-@class QTUnowned;
335-@class QTUnsafe;
336-@class QTUseSerializers;
337335 @class QTObj6;
336+@class QTUnion;
338337 @class QTUnsigned;
339338 @class QTVoid;
340339 @class QTVolatile;
341340 @class QTWhile;
341+@class QTUnmarshalJSON;
342+@class QTUnowned;
343+@class QTUnsafe;
344+@class QTUseSerializers;
342345 @class QTUshort;
343346 @class QTUsing;
344347 @class QTUtf8JSONReader;
@@ -1084,6 +1087,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10841087 @property (nonatomic, strong) QTLeft *left;
10851088 @property (nonatomic, strong) QTLet *let;
10861089 @property (nonatomic, strong) QTList *list;
1090+@property (nonatomic, strong) QTLocalDate *localDate;
10871091 @property (nonatomic, strong) QTLocale *locale;
10881092 @property (nonatomic, strong) QTLock *lock;
10891093 @property (nonatomic, strong) QTMap *map;
@@ -1096,13 +1100,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10961100 @property (nonatomic, strong) QTNamespace *namespace;
10971101 @property (nonatomic, strong) QTNative *native;
10981102 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
1099-@property (nonatomic, strong) QTNo *no;
11001103 @property (nonatomic, strong) QTGoto *obj3Goto;
11011104 @property (nonatomic, strong) QTIf *obj3If;
11021105 @property (nonatomic, strong) QTInline *obj3Inline;
11031106 @property (nonatomic, strong) QTInt *obj3Int;
11041107 @property (nonatomic, strong) QTLong *obj3Long;
1105-@property (nonatomic, strong) QTNil *obj3Nil;
11061108 @property (nonatomic, strong) QTHashCode *theHashCode;
11071109 @property (nonatomic, strong) QTInit *theInit;
11081110 @property (nonatomic, strong) QTNew *theNew;
@@ -1280,6 +1282,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12801282 @property (nonatomic, assign) NSInteger list;
12811283 @end
12821284
1285+@interface QTLocalDate : NSObject
1286+@property (nonatomic, assign) NSInteger localDate;
1287+@end
1288+
12831289 @interface QTLocale : NSObject
12841290 @property (nonatomic, assign) NSInteger locale;
12851291 @end
@@ -1328,10 +1334,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13281334 @property (nonatomic, assign) NSInteger newtonsoft;
13291335 @end
13301336
1331-@interface QTNo : NSObject
1332-@property (nonatomic, assign) NSInteger no;
1333-@end
1334-
13351337 @interface QTGoto : NSObject
13361338 @property (nonatomic, assign) NSInteger gotoGoto;
13371339 @end
@@ -1352,10 +1354,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13521354 @property (nonatomic, assign) NSInteger longLong;
13531355 @end
13541356
1355-@interface QTNil : NSObject
1356-@property (nonatomic, assign) NSInteger nilNil;
1357-@end
1358-
13591357 @interface QTHashCode : NSObject
13601358 @property (nonatomic, assign) NSInteger theHashCode;
13611359 @end
@@ -1370,6 +1368,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13701368
13711369 @interface QTObj4 : NSObject
13721370 @property (nonatomic, assign) NSInteger dummy;
1371+@property (nonatomic, strong) QTNo *no;
13731372 @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
13741373 @property (nonatomic, strong) QTNoexcept *noexcept;
13751374 @property (nonatomic, strong) QTNone *none;
@@ -1383,6 +1382,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13831382 @property (nonatomic, strong) QTNull *null;
13841383 @property (nonatomic, strong) QTNullptr *nullptr;
13851384 @property (nonatomic, strong) QTNumber *number;
1385+@property (nonatomic, strong) QTNil *obj4Nil;
13861386 @property (nonatomic, strong) QTNonatomic *obj4Nonatomic;
13871387 @property (nonatomic, strong) QTNoneClass *obj4None;
13881388 @property (nonatomic, strong) QTNullClass *obj4Null;
@@ -1394,6 +1394,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13941394 @property (nonatomic, strong) QTObject *object;
13951395 @property (nonatomic, strong) QTObjectMapper *objectMapper;
13961396 @property (nonatomic, strong) QTOf *of;
1397+@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime;
1398+@property (nonatomic, strong) QTOffsetTime *offsetTime;
13971399 @property (nonatomic, strong) QTOneway *oneway;
13981400 @property (nonatomic, strong) QTOpen *open;
13991401 @property (nonatomic, strong) QTOperator *operator;
@@ -1430,10 +1432,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14301432 @property (nonatomic, strong) QTRethrows *rethrows;
14311433 @property (nonatomic, strong) QTRight *right;
14321434 @property (nonatomic, strong) QTRuntimeType *runtimeType;
1433-@property (nonatomic, strong) QTS *s;
1434-@property (nonatomic, strong) QTSbyte *sbyte;
1435-@property (nonatomic, strong) QTSealed *sealed;
1436-@property (nonatomic, strong) QTSel *sel;
1435+@end
1436+
1437+@interface QTNo : NSObject
1438+@property (nonatomic, assign) NSInteger no;
14371439 @end
14381440
14391441 @interface QTNoSuchMethod : NSObject
@@ -1488,6 +1490,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14881490 @property (nonatomic, assign) NSInteger number;
14891491 @end
14901492
1493+@interface QTNil : NSObject
1494+@property (nonatomic, assign) NSInteger nilNil;
1495+@end
1496+
14911497 @interface QTNonatomic : NSObject
14921498 @property (nonatomic, assign) NSInteger nonatomicNonatomic;
14931499 @end
@@ -1532,6 +1538,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15321538 @property (nonatomic, assign) NSInteger of;
15331539 @end
15341540
1541+@interface QTOffsetDateTime : NSObject
1542+@property (nonatomic, assign) NSInteger offsetDateTime;
1543+@end
1544+
1545+@interface QTOffsetTime : NSObject
1546+@property (nonatomic, assign) NSInteger offsetTime;
1547+@end
1548+
15351549 @interface QTOneway : NSObject
15361550 @property (nonatomic, assign) NSInteger oneway;
15371551 @end
@@ -1676,22 +1690,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16761690 @property (nonatomic, assign) NSInteger runtimeType;
16771691 @end
16781692
1679-@interface QTS : NSObject
1680-@property (nonatomic, assign) NSInteger s;
1681-@end
1682-
1683-@interface QTSbyte : NSObject
1684-@property (nonatomic, assign) NSInteger sbyte;
1685-@end
1686-
1687-@interface QTSealed : NSObject
1688-@property (nonatomic, assign) NSInteger sealed;
1689-@end
1690-
1691-@interface QTSel : NSObject
1692-@property (nonatomic, assign) NSInteger sel;
1693-@end
1694-
16951693 @interface QTObj5 : NSObject
16961694 @property (nonatomic, assign) NSInteger dummy;
16971695 @property (nonatomic, strong) QTKSerializer *kSerializer;
@@ -1706,8 +1704,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17061704 @property (nonatomic, strong) QTTypeClass *obj5Type;
17071705 @property (nonatomic, strong) QTTypedef *obj5Typedef;
17081706 @property (nonatomic, strong) QTTypeof *obj5Typeof;
1709-@property (nonatomic, strong) QTUnion *obj5Union;
17101707 @property (nonatomic, strong) QTPrimitiveKind *primitiveKind;
1708+@property (nonatomic, strong) QTS *s;
1709+@property (nonatomic, strong) QTSbyte *sbyte;
1710+@property (nonatomic, strong) QTSealed *sealed;
1711+@property (nonatomic, strong) QTSel *sel;
17111712 @property (nonatomic, strong) QTSelect *select;
17121713 @property (nonatomic, strong) QTSelf *self;
17131714 @property (nonatomic, strong) QTSendable *sendable;
@@ -1755,10 +1756,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17551756 @property (nonatomic, strong) QTUlong *ulong;
17561757 @property (nonatomic, strong) QTUnchecked *unchecked;
17571758 @property (nonatomic, strong) QTUndefined *undefined;
1758-@property (nonatomic, strong) QTUnmarshalJSON *unmarshalJSON;
1759-@property (nonatomic, strong) QTUnowned *unowned;
1760-@property (nonatomic, strong) QTUnsafe *unsafe;
1761-@property (nonatomic, strong) QTUseSerializers *useSerializers;
17621759 @end
17631760
17641761 @interface QTKSerializer : NSObject
@@ -1809,14 +1806,26 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
18091806 @property (nonatomic, assign) NSInteger typeofTypeof;
18101807 @end
18111808
1812-@interface QTUnion : NSObject
1813-@property (nonatomic, assign) NSInteger unionUnion;
1814-@end
1815-
18161809 @interface QTPrimitiveKind : NSObject
18171810 @property (nonatomic, assign) NSInteger primitiveKind;
18181811 @end
18191812
1813+@interface QTS : NSObject
1814+@property (nonatomic, assign) NSInteger s;
1815+@end
1816+
1817+@interface QTSbyte : NSObject
1818+@property (nonatomic, assign) NSInteger sbyte;
1819+@end
1820+
1821+@interface QTSealed : NSObject
1822+@property (nonatomic, assign) NSInteger sealed;
1823+@end
1824+
1825+@interface QTSel : NSObject
1826+@property (nonatomic, assign) NSInteger sel;
1827+@end
1828+
18201829 @interface QTSelect : NSObject
18211830 @property (nonatomic, assign) NSInteger select;
18221831 @end
@@ -2005,28 +2014,17 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20052014 @property (nonatomic, assign) NSInteger undefined;
20062015 @end
20072016
2008-@interface QTUnmarshalJSON : NSObject
2009-@property (nonatomic, assign) NSInteger unmarshalJSON;
2010-@end
2011-
2012-@interface QTUnowned : NSObject
2013-@property (nonatomic, assign) NSInteger unowned;
2014-@end
2015-
2016-@interface QTUnsafe : NSObject
2017-@property (nonatomic, assign) NSInteger unsafe;
2018-@end
2019-
2020-@interface QTUseSerializers : NSObject
2021-@property (nonatomic, assign) NSInteger useSerializers;
2022-@end
2023-
20242017 @interface QTObj6 : NSObject
20252018 @property (nonatomic, assign) NSInteger dummy;
2019+@property (nonatomic, strong) QTUnion *obj6Union;
20262020 @property (nonatomic, strong) QTUnsigned *obj6Unsigned;
20272021 @property (nonatomic, strong) QTVoid *obj6Void;
20282022 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20292023 @property (nonatomic, strong) QTWhile *obj6While;
2024+@property (nonatomic, strong) QTUnmarshalJSON *unmarshalJSON;
2025+@property (nonatomic, strong) QTUnowned *unowned;
2026+@property (nonatomic, strong) QTUnsafe *unsafe;
2027+@property (nonatomic, strong) QTUseSerializers *useSerializers;
20302028 @property (nonatomic, strong) QTUshort *ushort;
20312029 @property (nonatomic, strong) QTUsing *using;
20322030 @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
@@ -2045,6 +2043,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20452043 @property (nonatomic, strong) QTYield *yield;
20462044 @end
20472045
2046+@interface QTUnion : NSObject
2047+@property (nonatomic, assign) NSInteger unionUnion;
2048+@end
2049+
20482050 @interface QTUnsigned : NSObject
20492051 @property (nonatomic, assign) NSInteger unsignedUnsigned;
20502052 @end
@@ -2061,6 +2063,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20612063 @property (nonatomic, assign) NSInteger whileWhile;
20622064 @end
20632065
2066+@interface QTUnmarshalJSON : NSObject
2067+@property (nonatomic, assign) NSInteger unmarshalJSON;
2068+@end
2069+
2070+@interface QTUnowned : NSObject
2071+@property (nonatomic, assign) NSInteger unowned;
2072+@end
2073+
2074+@interface QTUnsafe : NSObject
2075+@property (nonatomic, assign) NSInteger unsafe;
2076+@end
2077+
2078+@interface QTUseSerializers : NSObject
2079+@property (nonatomic, assign) NSInteger useSerializers;
2080+@end
2081+
20642082 @interface QTUshort : NSObject
20652083 @property (nonatomic, assign) NSInteger ushort;
20662084 @end
Mobjective-cdefault / QTTopLevel.m+811 −625
@@ -883,6 +883,11 @@ NS_ASSUME_NONNULL_BEGIN
883883 - (NSDictionary *)JSONDictionary;
884884 @end
885885
886+@interface QTLocalDate (JSONConversion)
887++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
888+- (NSDictionary *)JSONDictionary;
889+@end
890+
886891 @interface QTLocale (JSONConversion)
887892 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
888893 - (NSDictionary *)JSONDictionary;
@@ -943,11 +948,6 @@ NS_ASSUME_NONNULL_BEGIN
943948 - (NSDictionary *)JSONDictionary;
944949 @end
945950
946-@interface QTNo (JSONConversion)
947-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
948-- (NSDictionary *)JSONDictionary;
949-@end
950-
951951 @interface QTGoto (JSONConversion)
952952 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
953953 - (NSDictionary *)JSONDictionary;
@@ -973,11 +973,6 @@ NS_ASSUME_NONNULL_BEGIN
973973 - (NSDictionary *)JSONDictionary;
974974 @end
975975
976-@interface QTNil (JSONConversion)
977-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
978-- (NSDictionary *)JSONDictionary;
979-@end
980-
981976 @interface QTHashCode (JSONConversion)
982977 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
983978 - (NSDictionary *)JSONDictionary;
@@ -998,6 +993,11 @@ NS_ASSUME_NONNULL_BEGIN
998993 - (NSDictionary *)JSONDictionary;
999994 @end
1000995
996+@interface QTNo (JSONConversion)
997++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
998+- (NSDictionary *)JSONDictionary;
999+@end
1000+
10011001 @interface QTNoSuchMethod (JSONConversion)
10021002 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
10031003 - (NSDictionary *)JSONDictionary;
@@ -1063,6 +1063,11 @@ NS_ASSUME_NONNULL_BEGIN
10631063 - (NSDictionary *)JSONDictionary;
10641064 @end
10651065
1066+@interface QTNil (JSONConversion)
1067++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1068+- (NSDictionary *)JSONDictionary;
1069+@end
1070+
10661071 @interface QTNonatomic (JSONConversion)
10671072 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
10681073 - (NSDictionary *)JSONDictionary;
@@ -1118,6 +1123,16 @@ NS_ASSUME_NONNULL_BEGIN
11181123 - (NSDictionary *)JSONDictionary;
11191124 @end
11201125
1126+@interface QTOffsetDateTime (JSONConversion)
1127++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1128+- (NSDictionary *)JSONDictionary;
1129+@end
1130+
1131+@interface QTOffsetTime (JSONConversion)
1132++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1133+- (NSDictionary *)JSONDictionary;
1134+@end
1135+
11211136 @interface QTOneway (JSONConversion)
11221137 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
11231138 - (NSDictionary *)JSONDictionary;
@@ -1298,26 +1313,6 @@ NS_ASSUME_NONNULL_BEGIN
12981313 - (NSDictionary *)JSONDictionary;
12991314 @end
13001315
1301-@interface QTS (JSONConversion)
1302-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1303-- (NSDictionary *)JSONDictionary;
1304-@end
1305-
1306-@interface QTSbyte (JSONConversion)
1307-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1308-- (NSDictionary *)JSONDictionary;
1309-@end
1310-
1311-@interface QTSealed (JSONConversion)
1312-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1313-- (NSDictionary *)JSONDictionary;
1314-@end
1315-
1316-@interface QTSel (JSONConversion)
1317-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1318-- (NSDictionary *)JSONDictionary;
1319-@end
1320-
13211316 @interface QTObj5 (JSONConversion)
13221317 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13231318 - (NSDictionary *)JSONDictionary;
@@ -1383,12 +1378,27 @@ NS_ASSUME_NONNULL_BEGIN
13831378 - (NSDictionary *)JSONDictionary;
13841379 @end
13851380
1386-@interface QTUnion (JSONConversion)
1381+@interface QTPrimitiveKind (JSONConversion)
13871382 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881383 - (NSDictionary *)JSONDictionary;
13891384 @end
13901385
1391-@interface QTPrimitiveKind (JSONConversion)
1386+@interface QTS (JSONConversion)
1387++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1388+- (NSDictionary *)JSONDictionary;
1389+@end
1390+
1391+@interface QTSbyte (JSONConversion)
1392++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1393+- (NSDictionary *)JSONDictionary;
1394+@end
1395+
1396+@interface QTSealed (JSONConversion)
1397++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1398+- (NSDictionary *)JSONDictionary;
1399+@end
1400+
1401+@interface QTSel (JSONConversion)
13921402 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13931403 - (NSDictionary *)JSONDictionary;
13941404 @end
@@ -1628,47 +1638,52 @@ NS_ASSUME_NONNULL_BEGIN
16281638 - (NSDictionary *)JSONDictionary;
16291639 @end
16301640
1631-@interface QTUnmarshalJSON (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16321642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331643 - (NSDictionary *)JSONDictionary;
16341644 @end
16351645
1636-@interface QTUnowned (JSONConversion)
1646+@interface QTUnion (JSONConversion)
16371647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381648 - (NSDictionary *)JSONDictionary;
16391649 @end
16401650
1641-@interface QTUnsafe (JSONConversion)
1651+@interface QTUnsigned (JSONConversion)
16421652 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431653 - (NSDictionary *)JSONDictionary;
16441654 @end
16451655
1646-@interface QTUseSerializers (JSONConversion)
1656+@interface QTVoid (JSONConversion)
16471657 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16481658 - (NSDictionary *)JSONDictionary;
16491659 @end
16501660
1651-@interface QTObj6 (JSONConversion)
1661+@interface QTVolatile (JSONConversion)
16521662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16531663 - (NSDictionary *)JSONDictionary;
16541664 @end
16551665
1656-@interface QTUnsigned (JSONConversion)
1666+@interface QTWhile (JSONConversion)
16571667 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16581668 - (NSDictionary *)JSONDictionary;
16591669 @end
16601670
1661-@interface QTVoid (JSONConversion)
1671+@interface QTUnmarshalJSON (JSONConversion)
16621672 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16631673 - (NSDictionary *)JSONDictionary;
16641674 @end
16651675
1666-@interface QTVolatile (JSONConversion)
1676+@interface QTUnowned (JSONConversion)
16671677 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16681678 - (NSDictionary *)JSONDictionary;
16691679 @end
16701680
1671-@interface QTWhile (JSONConversion)
1681+@interface QTUnsafe (JSONConversion)
1682++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1683+- (NSDictionary *)JSONDictionary;
1684+@end
1685+
1686+@interface QTUseSerializers (JSONConversion)
16721687 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16731688 - (NSDictionary *)JSONDictionary;
16741689 @end
@@ -8684,6 +8699,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86848699 @"left": @"left",
86858700 @"let": @"let",
86868701 @"list": @"list",
8702+ @"LocalDate": @"localDate",
86878703 @"Locale": @"locale",
86888704 @"lock": @"lock",
86898705 @"map": @"map",
@@ -8696,13 +8712,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86968712 @"namespace": @"namespace",
86978713 @"native": @"native",
86988714 @"newtonsoft": @"newtonsoft",
8699- @"NO": @"no",
87008715 @"goto": @"obj3Goto",
87018716 @"if": @"obj3If",
87028717 @"inline": @"obj3Inline",
87038718 @"int": @"obj3Int",
87048719 @"long": @"obj3Long",
8705- @"nil": @"obj3Nil",
87068720 @"hashCode": @"theHashCode",
87078721 @"init": @"theInit",
87088722 @"new": @"theNew",
@@ -8762,6 +8776,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87628776 if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil;
87638777 if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil;
87648778 if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil;
8779+ if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil;
87658780 if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil;
87668781 if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil;
87678782 if (![dict[@"map"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8774,13 +8789,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87748789 if (![dict[@"namespace"] isKindOfClass:NSDictionary.class]) return nil;
87758790 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
87768791 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
8777- if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
87788792 if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
87798793 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
87808794 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
87818795 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
87828796 if (![dict[@"long"] isKindOfClass:NSDictionary.class]) return nil;
8783- if (![dict[@"nil"] isKindOfClass:NSDictionary.class]) return nil;
87848797 if (![dict[@"hashCode"] isKindOfClass:NSDictionary.class]) return nil;
87858798 if (![dict[@"init"] isKindOfClass:NSDictionary.class]) return nil;
87868799 if (![dict[@"new"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8871,6 +8884,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88718884 if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil;
88728885 _list = [QTList fromJSONDictionary:(id)_list];
88738886 if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil;
8887+ _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate];
8888+ if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil;
88748889 _locale = [QTLocale fromJSONDictionary:(id)_locale];
88758890 if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil;
88768891 _lock = [QTLock fromJSONDictionary:(id)_lock];
@@ -8895,8 +8910,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88958910 if (!_native && dict[@"native"] && ![dict[@"native"] isKindOfClass:NSNull.class]) return nil;
88968911 _newtonsoft = [QTNewtonsoft fromJSONDictionary:(id)_newtonsoft];
88978912 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
8898- _no = [QTNo fromJSONDictionary:(id)_no];
8899- if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
89008913 _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto];
89018914 if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
89028915 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
@@ -8907,8 +8920,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89078920 if (!_obj3Int && dict[@"int"] && ![dict[@"int"] isKindOfClass:NSNull.class]) return nil;
89088921 _obj3Long = [QTLong fromJSONDictionary:(id)_obj3Long];
89098922 if (!_obj3Long && dict[@"long"] && ![dict[@"long"] isKindOfClass:NSNull.class]) return nil;
8910- _obj3Nil = [QTNil fromJSONDictionary:(id)_obj3Nil];
8911- if (!_obj3Nil && dict[@"nil"] && ![dict[@"nil"] isKindOfClass:NSNull.class]) return nil;
89128923 _theHashCode = [QTHashCode fromJSONDictionary:(id)_theHashCode];
89138924 if (!_theHashCode && dict[@"hashCode"] && ![dict[@"hashCode"] isKindOfClass:NSNull.class]) return nil;
89148925 _theInit = [QTInit fromJSONDictionary:(id)_theInit];
@@ -8987,6 +8998,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89878998 @"left": [_left JSONDictionary],
89888999 @"let": [_let JSONDictionary],
89899000 @"list": [_list JSONDictionary],
9001+ @"LocalDate": [_localDate JSONDictionary],
89909002 @"Locale": [_locale JSONDictionary],
89919003 @"lock": [_lock JSONDictionary],
89929004 @"map": [_map JSONDictionary],
@@ -8999,13 +9011,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89999011 @"namespace": [_namespace JSONDictionary],
90009012 @"native": [_native JSONDictionary],
90019013 @"newtonsoft": [_newtonsoft JSONDictionary],
9002- @"NO": [_no JSONDictionary],
90039014 @"goto": [_obj3Goto JSONDictionary],
90049015 @"if": [_obj3If JSONDictionary],
90059016 @"inline": [_obj3Inline JSONDictionary],
90069017 @"int": [_obj3Int JSONDictionary],
90079018 @"long": [_obj3Long JSONDictionary],
9008- @"nil": [_obj3Nil JSONDictionary],
90099019 @"hashCode": [_theHashCode JSONDictionary],
90109020 @"init": [_theInit JSONDictionary],
90119021 @"new": [_theNew JSONDictionary],
@@ -11020,6 +11030,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1102011030 }
1102111031 @end
1102211032
11033+@implementation QTLocalDate
11034++ (NSDictionary<NSString *, NSString *> *)properties
11035+{
11036+ static NSDictionary<NSString *, NSString *> *properties;
11037+ return properties = properties ? properties : @{
11038+ @"LocalDate": @"localDate",
11039+ };
11040+}
11041+
11042++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11043+{
11044+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
11045+}
11046+
11047+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11048+{
11049+ if (self = [super init]) {
11050+ if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil;
11051+ if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil;
11052+ [self setValuesForKeysWithDictionary:dict];
11053+ }
11054+ return self;
11055+}
11056+
11057+- (void)setValue:(nullable id)value forKey:(NSString *)key
11058+{
11059+ id resolved = QTLocalDate.properties[key];
11060+ if (resolved) [super setValue:value forKey:resolved];
11061+}
11062+
11063+- (void)setNilValueForKey:(NSString *)key
11064+{
11065+ id resolved = QTLocalDate.properties[key];
11066+ if (resolved) [super setValue:@(0) forKey:resolved];
11067+}
11068+
11069+- (NSDictionary *)JSONDictionary
11070+{
11071+ id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy];
11072+
11073+ for (id jsonName in QTLocalDate.properties) {
11074+ id propertyName = QTLocalDate.properties[jsonName];
11075+ if (![jsonName isEqualToString:propertyName]) {
11076+ dict[jsonName] = dict[propertyName];
11077+ [dict removeObjectForKey:propertyName];
11078+ }
11079+ }
11080+
11081+ return dict;
11082+}
11083+@end
11084+
1102311085 @implementation QTLocale
1102411086 + (NSDictionary<NSString *, NSString *> *)properties
1102511087 {
@@ -11564,58 +11626,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1156411626 }
1156511627 @end
1156611628
11567-@implementation QTNo
11568-+ (NSDictionary<NSString *, NSString *> *)properties
11569-{
11570- static NSDictionary<NSString *, NSString *> *properties;
11571- return properties = properties ? properties : @{
11572- @"NO": @"no",
11573- };
11574-}
11575-
11576-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11577-{
11578- return [dict isKindOfClass:NSDictionary.class] ? [[QTNo alloc] initWithJSONDictionary:dict] : nil;
11579-}
11580-
11581-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11582-{
11583- if (self = [super init]) {
11584- if (![dict[@"NO"] isKindOfClass:NSNumber.class]) return nil;
11585- if ([dict[@"NO"] doubleValue] != [dict[@"NO"] longLongValue]) return nil;
11586- [self setValuesForKeysWithDictionary:dict];
11587- }
11588- return self;
11589-}
11590-
11591-- (void)setValue:(nullable id)value forKey:(NSString *)key
11592-{
11593- id resolved = QTNo.properties[key];
11594- if (resolved) [super setValue:value forKey:resolved];
11595-}
11596-
11597-- (void)setNilValueForKey:(NSString *)key
11598-{
11599- id resolved = QTNo.properties[key];
11600- if (resolved) [super setValue:@(0) forKey:resolved];
11601-}
11602-
11603-- (NSDictionary *)JSONDictionary
11604-{
11605- id dict = [[self dictionaryWithValuesForKeys:QTNo.properties.allValues] mutableCopy];
11606-
11607- for (id jsonName in QTNo.properties) {
11608- id propertyName = QTNo.properties[jsonName];
11609- if (![jsonName isEqualToString:propertyName]) {
11610- dict[jsonName] = dict[propertyName];
11611- [dict removeObjectForKey:propertyName];
11612- }
11613- }
11614-
11615- return dict;
11616-}
11617-@end
11618-
1161911629 @implementation QTGoto
1162011630 + (NSDictionary<NSString *, NSString *> *)properties
1162111631 {
@@ -11876,58 +11886,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1187611886 }
1187711887 @end
1187811888
11879-@implementation QTNil
11880-+ (NSDictionary<NSString *, NSString *> *)properties
11881-{
11882- static NSDictionary<NSString *, NSString *> *properties;
11883- return properties = properties ? properties : @{
11884- @"nil": @"nilNil",
11885- };
11886-}
11887-
11888-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11889-{
11890- return [dict isKindOfClass:NSDictionary.class] ? [[QTNil alloc] initWithJSONDictionary:dict] : nil;
11891-}
11892-
11893-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11894-{
11895- if (self = [super init]) {
11896- if (![dict[@"nil"] isKindOfClass:NSNumber.class]) return nil;
11897- if ([dict[@"nil"] doubleValue] != [dict[@"nil"] longLongValue]) return nil;
11898- [self setValuesForKeysWithDictionary:dict];
11899- }
11900- return self;
11901-}
11902-
11903-- (void)setValue:(nullable id)value forKey:(NSString *)key
11904-{
11905- id resolved = QTNil.properties[key];
11906- if (resolved) [super setValue:value forKey:resolved];
11907-}
11908-
11909-- (void)setNilValueForKey:(NSString *)key
11910-{
11911- id resolved = QTNil.properties[key];
11912- if (resolved) [super setValue:@(0) forKey:resolved];
11913-}
11914-
11915-- (NSDictionary *)JSONDictionary
11916-{
11917- id dict = [[self dictionaryWithValuesForKeys:QTNil.properties.allValues] mutableCopy];
11918-
11919- for (id jsonName in QTNil.properties) {
11920- id propertyName = QTNil.properties[jsonName];
11921- if (![jsonName isEqualToString:propertyName]) {
11922- dict[jsonName] = dict[propertyName];
11923- [dict removeObjectForKey:propertyName];
11924- }
11925- }
11926-
11927- return dict;
11928-}
11929-@end
11930-
1193111889 @implementation QTHashCode
1193211890 + (NSDictionary<NSString *, NSString *> *)properties
1193311891 {
@@ -12090,6 +12048,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1209012048 static NSDictionary<NSString *, NSString *> *properties;
1209112049 return properties = properties ? properties : @{
1209212050 @"dummy": @"dummy",
12051+ @"NO": @"no",
1209312052 @"noSuchMethod": @"noSuchMethod",
1209412053 @"noexcept": @"noexcept",
1209512054 @"None": @"none",
@@ -12103,6 +12062,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1210312062 @"NULL": @"null",
1210412063 @"nullptr": @"nullptr",
1210512064 @"number": @"number",
12065+ @"nil": @"obj4Nil",
1210612066 @"nonatomic": @"obj4Nonatomic",
1210712067 @"none": @"obj4None",
1210812068 @"null": @"obj4Null",
@@ -12114,6 +12074,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1211412074 @"object": @"object",
1211512075 @"ObjectMapper": @"objectMapper",
1211612076 @"of": @"of",
12077+ @"OffsetDateTime": @"offsetDateTime",
12078+ @"OffsetTime": @"offsetTime",
1211712079 @"oneway": @"oneway",
1211812080 @"open": @"open",
1211912081 @"operator": @"operator",
@@ -12150,10 +12112,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1215012112 @"rethrows": @"rethrows",
1215112113 @"right": @"right",
1215212114 @"runtimeType": @"runtimeType",
12153- @"s": @"s",
12154- @"sbyte": @"sbyte",
12155- @"sealed": @"sealed",
12156- @"SEL": @"sel",
1215712115 };
1215812116 }
1215912117
@@ -12167,6 +12125,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1216712125 if (self = [super init]) {
1216812126 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1216912127 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
12128+ if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
1217012129 if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
1217112130 if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
1217212131 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12180,6 +12139,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1218012139 if (![dict[@"NULL"] isKindOfClass:NSDictionary.class]) return nil;
1218112140 if (![dict[@"nullptr"] isKindOfClass:NSDictionary.class]) return nil;
1218212141 if (![dict[@"number"] isKindOfClass:NSDictionary.class]) return nil;
12142+ if (![dict[@"nil"] isKindOfClass:NSDictionary.class]) return nil;
1218312143 if (![dict[@"nonatomic"] isKindOfClass:NSDictionary.class]) return nil;
1218412144 if (![dict[@"none"] isKindOfClass:NSDictionary.class]) return nil;
1218512145 if (![dict[@"null"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12191,6 +12151,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1219112151 if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil;
1219212152 if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil;
1219312153 if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil;
12154+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil;
12155+ if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil;
1219412156 if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil;
1219512157 if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil;
1219612158 if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12227,11 +12189,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1222712189 if (![dict[@"rethrows"] isKindOfClass:NSDictionary.class]) return nil;
1222812190 if (![dict[@"right"] isKindOfClass:NSDictionary.class]) return nil;
1222912191 if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil;
12230- if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil;
12231- if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
12232- if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
12233- if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
1223412192 [self setValuesForKeysWithDictionary:dict];
12193+ _no = [QTNo fromJSONDictionary:(id)_no];
12194+ if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
1223512195 _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
1223612196 if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
1223712197 _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
@@ -12258,6 +12218,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1225812218 if (!_nullptr && dict[@"nullptr"] && ![dict[@"nullptr"] isKindOfClass:NSNull.class]) return nil;
1225912219 _number = [QTNumber fromJSONDictionary:(id)_number];
1226012220 if (!_number && dict[@"number"] && ![dict[@"number"] isKindOfClass:NSNull.class]) return nil;
12221+ _obj4Nil = [QTNil fromJSONDictionary:(id)_obj4Nil];
12222+ if (!_obj4Nil && dict[@"nil"] && ![dict[@"nil"] isKindOfClass:NSNull.class]) return nil;
1226112223 _obj4Nonatomic = [QTNonatomic fromJSONDictionary:(id)_obj4Nonatomic];
1226212224 if (!_obj4Nonatomic && dict[@"nonatomic"] && ![dict[@"nonatomic"] isKindOfClass:NSNull.class]) return nil;
1226312225 _obj4None = [QTNoneClass fromJSONDictionary:(id)_obj4None];
@@ -12280,6 +12242,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1228012242 if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil;
1228112243 _of = [QTOf fromJSONDictionary:(id)_of];
1228212244 if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil;
12245+ _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime];
12246+ if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil;
12247+ _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime];
12248+ if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil;
1228312249 _oneway = [QTOneway fromJSONDictionary:(id)_oneway];
1228412250 if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil;
1228512251 _open = [QTOpen fromJSONDictionary:(id)_open];
@@ -12352,14 +12318,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1235212318 if (!_right && dict[@"right"] && ![dict[@"right"] isKindOfClass:NSNull.class]) return nil;
1235312319 _runtimeType = [QTRuntimeType fromJSONDictionary:(id)_runtimeType];
1235412320 if (!_runtimeType && dict[@"runtimeType"] && ![dict[@"runtimeType"] isKindOfClass:NSNull.class]) return nil;
12355- _s = [QTS fromJSONDictionary:(id)_s];
12356- if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil;
12357- _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte];
12358- if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil;
12359- _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
12360- if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
12361- _sel = [QTSel fromJSONDictionary:(id)_sel];
12362- if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
1236312321 }
1236412322 return self;
1236512323 }
@@ -12389,6 +12347,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1238912347 }
1239012348
1239112349 [dict addEntriesFromDictionary:@{
12350+ @"NO": [_no JSONDictionary],
1239212351 @"noSuchMethod": [_noSuchMethod JSONDictionary],
1239312352 @"noexcept": [_noexcept JSONDictionary],
1239412353 @"None": [_none JSONDictionary],
@@ -12402,6 +12361,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1240212361 @"NULL": [_null JSONDictionary],
1240312362 @"nullptr": [_nullptr JSONDictionary],
1240412363 @"number": [_number JSONDictionary],
12364+ @"nil": [_obj4Nil JSONDictionary],
1240512365 @"nonatomic": [_obj4Nonatomic JSONDictionary],
1240612366 @"none": [_obj4None JSONDictionary],
1240712367 @"null": [_obj4Null JSONDictionary],
@@ -12413,6 +12373,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1241312373 @"object": [_object JSONDictionary],
1241412374 @"ObjectMapper": [_objectMapper JSONDictionary],
1241512375 @"of": [_of JSONDictionary],
12376+ @"OffsetDateTime": [_offsetDateTime JSONDictionary],
12377+ @"OffsetTime": [_offsetTime JSONDictionary],
1241612378 @"oneway": [_oneway JSONDictionary],
1241712379 @"open": [_open JSONDictionary],
1241812380 @"operator": [_operator JSONDictionary],
@@ -12449,16 +12411,64 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1244912411 @"rethrows": [_rethrows JSONDictionary],
1245012412 @"right": [_right JSONDictionary],
1245112413 @"runtimeType": [_runtimeType JSONDictionary],
12452- @"s": [_s JSONDictionary],
12453- @"sbyte": [_sbyte JSONDictionary],
12454- @"sealed": [_sealed JSONDictionary],
12455- @"SEL": [_sel JSONDictionary],
1245612414 }];
1245712415
1245812416 return dict;
1245912417 }
1246012418 @end
1246112419
12420+@implementation QTNo
12421++ (NSDictionary<NSString *, NSString *> *)properties
12422+{
12423+ static NSDictionary<NSString *, NSString *> *properties;
12424+ return properties = properties ? properties : @{
12425+ @"NO": @"no",
12426+ };
12427+}
12428+
12429++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12430+{
12431+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNo alloc] initWithJSONDictionary:dict] : nil;
12432+}
12433+
12434+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12435+{
12436+ if (self = [super init]) {
12437+ if (![dict[@"NO"] isKindOfClass:NSNumber.class]) return nil;
12438+ if ([dict[@"NO"] doubleValue] != [dict[@"NO"] longLongValue]) return nil;
12439+ [self setValuesForKeysWithDictionary:dict];
12440+ }
12441+ return self;
12442+}
12443+
12444+- (void)setValue:(nullable id)value forKey:(NSString *)key
12445+{
12446+ id resolved = QTNo.properties[key];
12447+ if (resolved) [super setValue:value forKey:resolved];
12448+}
12449+
12450+- (void)setNilValueForKey:(NSString *)key
12451+{
12452+ id resolved = QTNo.properties[key];
12453+ if (resolved) [super setValue:@(0) forKey:resolved];
12454+}
12455+
12456+- (NSDictionary *)JSONDictionary
12457+{
12458+ id dict = [[self dictionaryWithValuesForKeys:QTNo.properties.allValues] mutableCopy];
12459+
12460+ for (id jsonName in QTNo.properties) {
12461+ id propertyName = QTNo.properties[jsonName];
12462+ if (![jsonName isEqualToString:propertyName]) {
12463+ dict[jsonName] = dict[propertyName];
12464+ [dict removeObjectForKey:propertyName];
12465+ }
12466+ }
12467+
12468+ return dict;
12469+}
12470+@end
12471+
1246212472 @implementation QTNoSuchMethod
1246312473 + (NSDictionary<NSString *, NSString *> *)properties
1246412474 {
@@ -13065,6 +13075,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1306513075 }
1306613076 @end
1306713077
13078+@implementation QTNil
13079++ (NSDictionary<NSString *, NSString *> *)properties
13080+{
13081+ static NSDictionary<NSString *, NSString *> *properties;
13082+ return properties = properties ? properties : @{
13083+ @"nil": @"nilNil",
13084+ };
13085+}
13086+
13087++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13088+{
13089+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNil alloc] initWithJSONDictionary:dict] : nil;
13090+}
13091+
13092+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13093+{
13094+ if (self = [super init]) {
13095+ if (![dict[@"nil"] isKindOfClass:NSNumber.class]) return nil;
13096+ if ([dict[@"nil"] doubleValue] != [dict[@"nil"] longLongValue]) return nil;
13097+ [self setValuesForKeysWithDictionary:dict];
13098+ }
13099+ return self;
13100+}
13101+
13102+- (void)setValue:(nullable id)value forKey:(NSString *)key
13103+{
13104+ id resolved = QTNil.properties[key];
13105+ if (resolved) [super setValue:value forKey:resolved];
13106+}
13107+
13108+- (void)setNilValueForKey:(NSString *)key
13109+{
13110+ id resolved = QTNil.properties[key];
13111+ if (resolved) [super setValue:@(0) forKey:resolved];
13112+}
13113+
13114+- (NSDictionary *)JSONDictionary
13115+{
13116+ id dict = [[self dictionaryWithValuesForKeys:QTNil.properties.allValues] mutableCopy];
13117+
13118+ for (id jsonName in QTNil.properties) {
13119+ id propertyName = QTNil.properties[jsonName];
13120+ if (![jsonName isEqualToString:propertyName]) {
13121+ dict[jsonName] = dict[propertyName];
13122+ [dict removeObjectForKey:propertyName];
13123+ }
13124+ }
13125+
13126+ return dict;
13127+}
13128+@end
13129+
1306813130 @implementation QTNonatomic
1306913131 + (NSDictionary<NSString *, NSString *> *)properties
1307013132 {
@@ -13587,6 +13649,110 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1358713649 }
1358813650 @end
1358913651
13652+@implementation QTOffsetDateTime
13653++ (NSDictionary<NSString *, NSString *> *)properties
13654+{
13655+ static NSDictionary<NSString *, NSString *> *properties;
13656+ return properties = properties ? properties : @{
13657+ @"OffsetDateTime": @"offsetDateTime",
13658+ };
13659+}
13660+
13661++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13662+{
13663+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
13664+}
13665+
13666+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13667+{
13668+ if (self = [super init]) {
13669+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil;
13670+ if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil;
13671+ [self setValuesForKeysWithDictionary:dict];
13672+ }
13673+ return self;
13674+}
13675+
13676+- (void)setValue:(nullable id)value forKey:(NSString *)key
13677+{
13678+ id resolved = QTOffsetDateTime.properties[key];
13679+ if (resolved) [super setValue:value forKey:resolved];
13680+}
13681+
13682+- (void)setNilValueForKey:(NSString *)key
13683+{
13684+ id resolved = QTOffsetDateTime.properties[key];
13685+ if (resolved) [super setValue:@(0) forKey:resolved];
13686+}
13687+
13688+- (NSDictionary *)JSONDictionary
13689+{
13690+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy];
13691+
13692+ for (id jsonName in QTOffsetDateTime.properties) {
13693+ id propertyName = QTOffsetDateTime.properties[jsonName];
13694+ if (![jsonName isEqualToString:propertyName]) {
13695+ dict[jsonName] = dict[propertyName];
13696+ [dict removeObjectForKey:propertyName];
13697+ }
13698+ }
13699+
13700+ return dict;
13701+}
13702+@end
13703+
13704+@implementation QTOffsetTime
13705++ (NSDictionary<NSString *, NSString *> *)properties
13706+{
13707+ static NSDictionary<NSString *, NSString *> *properties;
13708+ return properties = properties ? properties : @{
13709+ @"OffsetTime": @"offsetTime",
13710+ };
13711+}
13712+
13713++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13714+{
13715+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
13716+}
13717+
13718+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13719+{
13720+ if (self = [super init]) {
13721+ if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil;
13722+ if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil;
13723+ [self setValuesForKeysWithDictionary:dict];
13724+ }
13725+ return self;
13726+}
13727+
13728+- (void)setValue:(nullable id)value forKey:(NSString *)key
13729+{
13730+ id resolved = QTOffsetTime.properties[key];
13731+ if (resolved) [super setValue:value forKey:resolved];
13732+}
13733+
13734+- (void)setNilValueForKey:(NSString *)key
13735+{
13736+ id resolved = QTOffsetTime.properties[key];
13737+ if (resolved) [super setValue:@(0) forKey:resolved];
13738+}
13739+
13740+- (NSDictionary *)JSONDictionary
13741+{
13742+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy];
13743+
13744+ for (id jsonName in QTOffsetTime.properties) {
13745+ id propertyName = QTOffsetTime.properties[jsonName];
13746+ if (![jsonName isEqualToString:propertyName]) {
13747+ dict[jsonName] = dict[propertyName];
13748+ [dict removeObjectForKey:propertyName];
13749+ }
13750+ }
13751+
13752+ return dict;
13753+}
13754+@end
13755+
1359013756 @implementation QTOneway
1359113757 + (NSDictionary<NSString *, NSString *> *)properties
1359213758 {
@@ -15139,204 +15305,29 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1513915305 }
1514015306 @end
1514115307
15142-@implementation QTS
15308+@implementation QTObj5
1514315309 + (NSDictionary<NSString *, NSString *> *)properties
1514415310 {
1514515311 static NSDictionary<NSString *, NSString *> *properties;
1514615312 return properties = properties ? properties : @{
15313+ @"dummy": @"dummy",
15314+ @"KSerializer": @"kSerializer",
15315+ @"self": @"obj5Self",
15316+ @"short": @"obj5Short",
15317+ @"signed": @"obj5Signed",
15318+ @"sizeof": @"obj5Sizeof",
15319+ @"static": @"obj5Static",
15320+ @"struct": @"obj5Struct",
15321+ @"switch": @"obj5Switch",
15322+ @"True": @"obj5True",
15323+ @"type": @"obj5Type",
15324+ @"typedef": @"obj5Typedef",
15325+ @"typeof": @"obj5Typeof",
15326+ @"PrimitiveKind": @"primitiveKind",
1514715327 @"s": @"s",
15148- };
15149-}
15150-
15151-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15152-{
15153- return [dict isKindOfClass:NSDictionary.class] ? [[QTS alloc] initWithJSONDictionary:dict] : nil;
15154-}
15155-
15156-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15157-{
15158- if (self = [super init]) {
15159- if (![dict[@"s"] isKindOfClass:NSNumber.class]) return nil;
15160- if ([dict[@"s"] doubleValue] != [dict[@"s"] longLongValue]) return nil;
15161- [self setValuesForKeysWithDictionary:dict];
15162- }
15163- return self;
15164-}
15165-
15166-- (void)setValue:(nullable id)value forKey:(NSString *)key
15167-{
15168- id resolved = QTS.properties[key];
15169- if (resolved) [super setValue:value forKey:resolved];
15170-}
15171-
15172-- (void)setNilValueForKey:(NSString *)key
15173-{
15174- id resolved = QTS.properties[key];
15175- if (resolved) [super setValue:@(0) forKey:resolved];
15176-}
15177-
15178-- (NSDictionary *)JSONDictionary
15179-{
15180- return [self dictionaryWithValuesForKeys:QTS.properties.allValues];
15181-}
15182-@end
15183-
15184-@implementation QTSbyte
15185-+ (NSDictionary<NSString *, NSString *> *)properties
15186-{
15187- static NSDictionary<NSString *, NSString *> *properties;
15188- return properties = properties ? properties : @{
1518915328 @"sbyte": @"sbyte",
15190- };
15191-}
15192-
15193-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15194-{
15195- return [dict isKindOfClass:NSDictionary.class] ? [[QTSbyte alloc] initWithJSONDictionary:dict] : nil;
15196-}
15197-
15198-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15199-{
15200- if (self = [super init]) {
15201- if (![dict[@"sbyte"] isKindOfClass:NSNumber.class]) return nil;
15202- if ([dict[@"sbyte"] doubleValue] != [dict[@"sbyte"] longLongValue]) return nil;
15203- [self setValuesForKeysWithDictionary:dict];
15204- }
15205- return self;
15206-}
15207-
15208-- (void)setValue:(nullable id)value forKey:(NSString *)key
15209-{
15210- id resolved = QTSbyte.properties[key];
15211- if (resolved) [super setValue:value forKey:resolved];
15212-}
15213-
15214-- (void)setNilValueForKey:(NSString *)key
15215-{
15216- id resolved = QTSbyte.properties[key];
15217- if (resolved) [super setValue:@(0) forKey:resolved];
15218-}
15219-
15220-- (NSDictionary *)JSONDictionary
15221-{
15222- return [self dictionaryWithValuesForKeys:QTSbyte.properties.allValues];
15223-}
15224-@end
15225-
15226-@implementation QTSealed
15227-+ (NSDictionary<NSString *, NSString *> *)properties
15228-{
15229- static NSDictionary<NSString *, NSString *> *properties;
15230- return properties = properties ? properties : @{
1523115329 @"sealed": @"sealed",
15232- };
15233-}
15234-
15235-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15236-{
15237- return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
15238-}
15239-
15240-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15241-{
15242- if (self = [super init]) {
15243- if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
15244- if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
15245- [self setValuesForKeysWithDictionary:dict];
15246- }
15247- return self;
15248-}
15249-
15250-- (void)setValue:(nullable id)value forKey:(NSString *)key
15251-{
15252- id resolved = QTSealed.properties[key];
15253- if (resolved) [super setValue:value forKey:resolved];
15254-}
15255-
15256-- (void)setNilValueForKey:(NSString *)key
15257-{
15258- id resolved = QTSealed.properties[key];
15259- if (resolved) [super setValue:@(0) forKey:resolved];
15260-}
15261-
15262-- (NSDictionary *)JSONDictionary
15263-{
15264- return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
15265-}
15266-@end
15267-
15268-@implementation QTSel
15269-+ (NSDictionary<NSString *, NSString *> *)properties
15270-{
15271- static NSDictionary<NSString *, NSString *> *properties;
15272- return properties = properties ? properties : @{
1527315330 @"SEL": @"sel",
15274- };
15275-}
15276-
15277-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15278-{
15279- return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
15280-}
15281-
15282-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15283-{
15284- if (self = [super init]) {
15285- if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
15286- if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
15287- [self setValuesForKeysWithDictionary:dict];
15288- }
15289- return self;
15290-}
15291-
15292-- (void)setValue:(nullable id)value forKey:(NSString *)key
15293-{
15294- id resolved = QTSel.properties[key];
15295- if (resolved) [super setValue:value forKey:resolved];
15296-}
15297-
15298-- (void)setNilValueForKey:(NSString *)key
15299-{
15300- id resolved = QTSel.properties[key];
15301- if (resolved) [super setValue:@(0) forKey:resolved];
15302-}
15303-
15304-- (NSDictionary *)JSONDictionary
15305-{
15306- id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
15307-
15308- for (id jsonName in QTSel.properties) {
15309- id propertyName = QTSel.properties[jsonName];
15310- if (![jsonName isEqualToString:propertyName]) {
15311- dict[jsonName] = dict[propertyName];
15312- [dict removeObjectForKey:propertyName];
15313- }
15314- }
15315-
15316- return dict;
15317-}
15318-@end
15319-
15320-@implementation QTObj5
15321-+ (NSDictionary<NSString *, NSString *> *)properties
15322-{
15323- static NSDictionary<NSString *, NSString *> *properties;
15324- return properties = properties ? properties : @{
15325- @"dummy": @"dummy",
15326- @"KSerializer": @"kSerializer",
15327- @"self": @"obj5Self",
15328- @"short": @"obj5Short",
15329- @"signed": @"obj5Signed",
15330- @"sizeof": @"obj5Sizeof",
15331- @"static": @"obj5Static",
15332- @"struct": @"obj5Struct",
15333- @"switch": @"obj5Switch",
15334- @"True": @"obj5True",
15335- @"type": @"obj5Type",
15336- @"typedef": @"obj5Typedef",
15337- @"typeof": @"obj5Typeof",
15338- @"union": @"obj5Union",
15339- @"PrimitiveKind": @"primitiveKind",
1534015331 @"select": @"select",
1534115332 @"Self": @"self",
1534215333 @"Sendable": @"sendable",
@@ -15384,10 +15375,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1538415375 @"ulong": @"ulong",
1538515376 @"unchecked": @"unchecked",
1538615377 @"undefined": @"undefined",
15387- @"UnmarshalJSON": @"unmarshalJSON",
15388- @"unowned": @"unowned",
15389- @"unsafe": @"unsafe",
15390- @"UseSerializers": @"useSerializers",
1539115378 };
1539215379 }
1539315380
@@ -15413,8 +15400,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1541315400 if (![dict[@"type"] isKindOfClass:NSDictionary.class]) return nil;
1541415401 if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil;
1541515402 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
15416- if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
1541715403 if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil;
15404+ if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil;
15405+ if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
15406+ if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
15407+ if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
1541815408 if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1541915409 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1542015410 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15462,10 +15452,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1546215452 if (![dict[@"ulong"] isKindOfClass:NSDictionary.class]) return nil;
1546315453 if (![dict[@"unchecked"] isKindOfClass:NSDictionary.class]) return nil;
1546415454 if (![dict[@"undefined"] isKindOfClass:NSDictionary.class]) return nil;
15465- if (![dict[@"UnmarshalJSON"] isKindOfClass:NSDictionary.class]) return nil;
15466- if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil;
15467- if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
15468- if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil;
1546915455 [self setValuesForKeysWithDictionary:dict];
1547015456 _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer];
1547115457 if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil;
@@ -15491,10 +15477,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1549115477 if (!_obj5Typedef && dict[@"typedef"] && ![dict[@"typedef"] isKindOfClass:NSNull.class]) return nil;
1549215478 _obj5Typeof = [QTTypeof fromJSONDictionary:(id)_obj5Typeof];
1549315479 if (!_obj5Typeof && dict[@"typeof"] && ![dict[@"typeof"] isKindOfClass:NSNull.class]) return nil;
15494- _obj5Union = [QTUnion fromJSONDictionary:(id)_obj5Union];
15495- if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
1549615480 _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind];
1549715481 if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil;
15482+ _s = [QTS fromJSONDictionary:(id)_s];
15483+ if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil;
15484+ _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte];
15485+ if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil;
15486+ _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
15487+ if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
15488+ _sel = [QTSel fromJSONDictionary:(id)_sel];
15489+ if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
1549815490 _select = [QTSelect fromJSONDictionary:(id)_select];
1549915491 if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1550015492 _self = [QTSelf fromJSONDictionary:(id)_self];
@@ -15589,14 +15581,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1558915581 if (!_unchecked && dict[@"unchecked"] && ![dict[@"unchecked"] isKindOfClass:NSNull.class]) return nil;
1559015582 _undefined = [QTUndefined fromJSONDictionary:(id)_undefined];
1559115583 if (!_undefined && dict[@"undefined"] && ![dict[@"undefined"] isKindOfClass:NSNull.class]) return nil;
15592- _unmarshalJSON = [QTUnmarshalJSON fromJSONDictionary:(id)_unmarshalJSON];
15593- if (!_unmarshalJSON && dict[@"UnmarshalJSON"] && ![dict[@"UnmarshalJSON"] isKindOfClass:NSNull.class]) return nil;
15594- _unowned = [QTUnowned fromJSONDictionary:(id)_unowned];
15595- if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil;
15596- _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe];
15597- if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
15598- _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers];
15599- if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil;
1560015584 }
1560115585 return self;
1560215586 }
@@ -15638,8 +15622,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1563815622 @"type": [_obj5Type JSONDictionary],
1563915623 @"typedef": [_obj5Typedef JSONDictionary],
1564015624 @"typeof": [_obj5Typeof JSONDictionary],
15641- @"union": [_obj5Union JSONDictionary],
1564215625 @"PrimitiveKind": [_primitiveKind JSONDictionary],
15626+ @"s": [_s JSONDictionary],
15627+ @"sbyte": [_sbyte JSONDictionary],
15628+ @"sealed": [_sealed JSONDictionary],
15629+ @"SEL": [_sel JSONDictionary],
1564315630 @"select": [_select JSONDictionary],
1564415631 @"Self": [_self JSONDictionary],
1564515632 @"Sendable": [_sendable JSONDictionary],
@@ -15687,10 +15674,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1568715674 @"ulong": [_ulong JSONDictionary],
1568815675 @"unchecked": [_unchecked JSONDictionary],
1568915676 @"undefined": [_undefined JSONDictionary],
15690- @"UnmarshalJSON": [_unmarshalJSON JSONDictionary],
15691- @"unowned": [_unowned JSONDictionary],
15692- @"unsafe": [_unsafe JSONDictionary],
15693- @"UseSerializers": [_useSerializers JSONDictionary],
1569415677 }];
1569515678
1569615679 return dict;
@@ -16301,25 +16284,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1630116284 }
1630216285 @end
1630316286
16304-@implementation QTUnion
16287+@implementation QTPrimitiveKind
1630516288 + (NSDictionary<NSString *, NSString *> *)properties
1630616289 {
1630716290 static NSDictionary<NSString *, NSString *> *properties;
1630816291 return properties = properties ? properties : @{
16309- @"union": @"unionUnion",
16292+ @"PrimitiveKind": @"primitiveKind",
1631016293 };
1631116294 }
1631216295
1631316296 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1631416297 {
16315- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnion alloc] initWithJSONDictionary:dict] : nil;
16298+ return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
1631616299 }
1631716300
1631816301 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1631916302 {
1632016303 if (self = [super init]) {
16321- if (![dict[@"union"] isKindOfClass:NSNumber.class]) return nil;
16322- if ([dict[@"union"] doubleValue] != [dict[@"union"] longLongValue]) return nil;
16304+ if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16305+ if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
1632316306 [self setValuesForKeysWithDictionary:dict];
1632416307 }
1632516308 return self;
@@ -16327,22 +16310,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1632716310
1632816311 - (void)setValue:(nullable id)value forKey:(NSString *)key
1632916312 {
16330- id resolved = QTUnion.properties[key];
16313+ id resolved = QTPrimitiveKind.properties[key];
1633116314 if (resolved) [super setValue:value forKey:resolved];
1633216315 }
1633316316
1633416317 - (void)setNilValueForKey:(NSString *)key
1633516318 {
16336- id resolved = QTUnion.properties[key];
16319+ id resolved = QTPrimitiveKind.properties[key];
1633716320 if (resolved) [super setValue:@(0) forKey:resolved];
1633816321 }
1633916322
1634016323 - (NSDictionary *)JSONDictionary
1634116324 {
16342- id dict = [[self dictionaryWithValuesForKeys:QTUnion.properties.allValues] mutableCopy];
16325+ id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
1634316326
16344- for (id jsonName in QTUnion.properties) {
16345- id propertyName = QTUnion.properties[jsonName];
16327+ for (id jsonName in QTPrimitiveKind.properties) {
16328+ id propertyName = QTPrimitiveKind.properties[jsonName];
1634616329 if (![jsonName isEqualToString:propertyName]) {
1634716330 dict[jsonName] = dict[propertyName];
1634816331 [dict removeObjectForKey:propertyName];
@@ -16353,25 +16336,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1635316336 }
1635416337 @end
1635516338
16356-@implementation QTPrimitiveKind
16339+@implementation QTS
1635716340 + (NSDictionary<NSString *, NSString *> *)properties
1635816341 {
1635916342 static NSDictionary<NSString *, NSString *> *properties;
1636016343 return properties = properties ? properties : @{
16361- @"PrimitiveKind": @"primitiveKind",
16344+ @"s": @"s",
1636216345 };
1636316346 }
1636416347
1636516348 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1636616349 {
16367- return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
16350+ return [dict isKindOfClass:NSDictionary.class] ? [[QTS alloc] initWithJSONDictionary:dict] : nil;
1636816351 }
1636916352
1637016353 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1637116354 {
1637216355 if (self = [super init]) {
16373- if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16374- if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
16356+ if (![dict[@"s"] isKindOfClass:NSNumber.class]) return nil;
16357+ if ([dict[@"s"] doubleValue] != [dict[@"s"] longLongValue]) return nil;
1637516358 [self setValuesForKeysWithDictionary:dict];
1637616359 }
1637716360 return self;
@@ -16379,51 +16362,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1637916362
1638016363 - (void)setValue:(nullable id)value forKey:(NSString *)key
1638116364 {
16382- id resolved = QTPrimitiveKind.properties[key];
16365+ id resolved = QTS.properties[key];
1638316366 if (resolved) [super setValue:value forKey:resolved];
1638416367 }
1638516368
1638616369 - (void)setNilValueForKey:(NSString *)key
1638716370 {
16388- id resolved = QTPrimitiveKind.properties[key];
16371+ id resolved = QTS.properties[key];
1638916372 if (resolved) [super setValue:@(0) forKey:resolved];
1639016373 }
1639116374
1639216375 - (NSDictionary *)JSONDictionary
1639316376 {
16394- id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
16395-
16396- for (id jsonName in QTPrimitiveKind.properties) {
16397- id propertyName = QTPrimitiveKind.properties[jsonName];
16398- if (![jsonName isEqualToString:propertyName]) {
16399- dict[jsonName] = dict[propertyName];
16400- [dict removeObjectForKey:propertyName];
16401- }
16402- }
16403-
16404- return dict;
16377+ return [self dictionaryWithValuesForKeys:QTS.properties.allValues];
1640516378 }
1640616379 @end
1640716380
16408-@implementation QTSelect
16381+@implementation QTSbyte
1640916382 + (NSDictionary<NSString *, NSString *> *)properties
1641016383 {
1641116384 static NSDictionary<NSString *, NSString *> *properties;
1641216385 return properties = properties ? properties : @{
16413- @"select": @"select",
16386+ @"sbyte": @"sbyte",
1641416387 };
1641516388 }
1641616389
1641716390 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1641816391 {
16419- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
16392+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSbyte alloc] initWithJSONDictionary:dict] : nil;
1642016393 }
1642116394
1642216395 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1642316396 {
1642416397 if (self = [super init]) {
16425- if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16426- if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
16398+ if (![dict[@"sbyte"] isKindOfClass:NSNumber.class]) return nil;
16399+ if ([dict[@"sbyte"] doubleValue] != [dict[@"sbyte"] longLongValue]) return nil;
1642716400 [self setValuesForKeysWithDictionary:dict];
1642816401 }
1642916402 return self;
@@ -16431,34 +16404,170 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1643116404
1643216405 - (void)setValue:(nullable id)value forKey:(NSString *)key
1643316406 {
16434- id resolved = QTSelect.properties[key];
16407+ id resolved = QTSbyte.properties[key];
1643516408 if (resolved) [super setValue:value forKey:resolved];
1643616409 }
1643716410
1643816411 - (void)setNilValueForKey:(NSString *)key
1643916412 {
16440- id resolved = QTSelect.properties[key];
16413+ id resolved = QTSbyte.properties[key];
1644116414 if (resolved) [super setValue:@(0) forKey:resolved];
1644216415 }
1644316416
1644416417 - (NSDictionary *)JSONDictionary
1644516418 {
16446- return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
16419+ return [self dictionaryWithValuesForKeys:QTSbyte.properties.allValues];
1644716420 }
1644816421 @end
1644916422
16450-@implementation QTSelf
16423+@implementation QTSealed
1645116424 + (NSDictionary<NSString *, NSString *> *)properties
1645216425 {
1645316426 static NSDictionary<NSString *, NSString *> *properties;
1645416427 return properties = properties ? properties : @{
16455- @"Self": @"self",
16428+ @"sealed": @"sealed",
1645616429 };
1645716430 }
1645816431
1645916432 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1646016433 {
16461- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
16434+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
16435+}
16436+
16437+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16438+{
16439+ if (self = [super init]) {
16440+ if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
16441+ if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
16442+ [self setValuesForKeysWithDictionary:dict];
16443+ }
16444+ return self;
16445+}
16446+
16447+- (void)setValue:(nullable id)value forKey:(NSString *)key
16448+{
16449+ id resolved = QTSealed.properties[key];
16450+ if (resolved) [super setValue:value forKey:resolved];
16451+}
16452+
16453+- (void)setNilValueForKey:(NSString *)key
16454+{
16455+ id resolved = QTSealed.properties[key];
16456+ if (resolved) [super setValue:@(0) forKey:resolved];
16457+}
16458+
16459+- (NSDictionary *)JSONDictionary
16460+{
16461+ return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
16462+}
16463+@end
16464+
16465+@implementation QTSel
16466++ (NSDictionary<NSString *, NSString *> *)properties
16467+{
16468+ static NSDictionary<NSString *, NSString *> *properties;
16469+ return properties = properties ? properties : @{
16470+ @"SEL": @"sel",
16471+ };
16472+}
16473+
16474++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16475+{
16476+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
16477+}
16478+
16479+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16480+{
16481+ if (self = [super init]) {
16482+ if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
16483+ if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
16484+ [self setValuesForKeysWithDictionary:dict];
16485+ }
16486+ return self;
16487+}
16488+
16489+- (void)setValue:(nullable id)value forKey:(NSString *)key
16490+{
16491+ id resolved = QTSel.properties[key];
16492+ if (resolved) [super setValue:value forKey:resolved];
16493+}
16494+
16495+- (void)setNilValueForKey:(NSString *)key
16496+{
16497+ id resolved = QTSel.properties[key];
16498+ if (resolved) [super setValue:@(0) forKey:resolved];
16499+}
16500+
16501+- (NSDictionary *)JSONDictionary
16502+{
16503+ id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
16504+
16505+ for (id jsonName in QTSel.properties) {
16506+ id propertyName = QTSel.properties[jsonName];
16507+ if (![jsonName isEqualToString:propertyName]) {
16508+ dict[jsonName] = dict[propertyName];
16509+ [dict removeObjectForKey:propertyName];
16510+ }
16511+ }
16512+
16513+ return dict;
16514+}
16515+@end
16516+
16517+@implementation QTSelect
16518++ (NSDictionary<NSString *, NSString *> *)properties
16519+{
16520+ static NSDictionary<NSString *, NSString *> *properties;
16521+ return properties = properties ? properties : @{
16522+ @"select": @"select",
16523+ };
16524+}
16525+
16526++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16527+{
16528+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
16529+}
16530+
16531+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16532+{
16533+ if (self = [super init]) {
16534+ if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16535+ if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
16536+ [self setValuesForKeysWithDictionary:dict];
16537+ }
16538+ return self;
16539+}
16540+
16541+- (void)setValue:(nullable id)value forKey:(NSString *)key
16542+{
16543+ id resolved = QTSelect.properties[key];
16544+ if (resolved) [super setValue:value forKey:resolved];
16545+}
16546+
16547+- (void)setNilValueForKey:(NSString *)key
16548+{
16549+ id resolved = QTSelect.properties[key];
16550+ if (resolved) [super setValue:@(0) forKey:resolved];
16551+}
16552+
16553+- (NSDictionary *)JSONDictionary
16554+{
16555+ return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
16556+}
16557+@end
16558+
16559+@implementation QTSelf
16560++ (NSDictionary<NSString *, NSString *> *)properties
16561+{
16562+ static NSDictionary<NSString *, NSString *> *properties;
16563+ return properties = properties ? properties : @{
16564+ @"Self": @"self",
16565+ };
16566+}
16567+
16568++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16569+{
16570+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
1646216571 }
1646316572
1646416573 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
@@ -18589,77 +18698,205 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1858918698 }
1859018699 @end
1859118700
18592-@implementation QTUnmarshalJSON
18701+@implementation QTObj6
1859318702 + (NSDictionary<NSString *, NSString *> *)properties
1859418703 {
1859518704 static NSDictionary<NSString *, NSString *> *properties;
1859618705 return properties = properties ? properties : @{
18706+ @"dummy": @"dummy",
18707+ @"union": @"obj6Union",
18708+ @"unsigned": @"obj6Unsigned",
18709+ @"void": @"obj6Void",
18710+ @"volatile": @"obj6Volatile",
18711+ @"while": @"obj6While",
1859718712 @"UnmarshalJSON": @"unmarshalJSON",
18713+ @"unowned": @"unowned",
18714+ @"unsafe": @"unsafe",
18715+ @"UseSerializers": @"useSerializers",
18716+ @"ushort": @"ushort",
18717+ @"using": @"using",
18718+ @"Utf8JsonReader": @"utf8JSONReader",
18719+ @"Utf8JsonWriter": @"utf8JSONWriter",
18720+ @"UUID": @"uuid",
18721+ @"var": @"var",
18722+ @"virtual": @"virtual",
18723+ @"wchar_t": @"wcharT",
18724+ @"weak": @"weak",
18725+ @"where": @"where",
18726+ @"willSet": @"willSet",
18727+ @"with": @"with",
18728+ @"xor": @"xor",
18729+ @"xor_eq": @"xorEq",
18730+ @"YES": @"yes",
18731+ @"yield": @"yield",
1859818732 };
1859918733 }
1860018734
1860118735 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1860218736 {
18603- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnmarshalJSON alloc] initWithJSONDictionary:dict] : nil;
18737+ return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil;
1860418738 }
1860518739
1860618740 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1860718741 {
1860818742 if (self = [super init]) {
18609- if (![dict[@"UnmarshalJSON"] isKindOfClass:NSNumber.class]) return nil;
18610- if ([dict[@"UnmarshalJSON"] doubleValue] != [dict[@"UnmarshalJSON"] longLongValue]) return nil;
18743+ if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
18744+ if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18745+ if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
18746+ if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
18747+ if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
18748+ if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
18749+ if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18750+ if (![dict[@"UnmarshalJSON"] isKindOfClass:NSDictionary.class]) return nil;
18751+ if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil;
18752+ if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
18753+ if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil;
18754+ if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
18755+ if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
18756+ if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
18757+ if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
18758+ if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
18759+ if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
18760+ if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
18761+ if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
18762+ if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
18763+ if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
18764+ if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil;
18765+ if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil;
18766+ if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil;
18767+ if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil;
18768+ if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
18769+ if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
1861118770 [self setValuesForKeysWithDictionary:dict];
18771+ _obj6Union = [QTUnion fromJSONDictionary:(id)_obj6Union];
18772+ if (!_obj6Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
18773+ _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned];
18774+ if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
18775+ _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
18776+ if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
18777+ _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
18778+ if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
18779+ _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
18780+ if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18781+ _unmarshalJSON = [QTUnmarshalJSON fromJSONDictionary:(id)_unmarshalJSON];
18782+ if (!_unmarshalJSON && dict[@"UnmarshalJSON"] && ![dict[@"UnmarshalJSON"] isKindOfClass:NSNull.class]) return nil;
18783+ _unowned = [QTUnowned fromJSONDictionary:(id)_unowned];
18784+ if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil;
18785+ _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe];
18786+ if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
18787+ _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers];
18788+ if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil;
18789+ _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
18790+ if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
18791+ _using = [QTUsing fromJSONDictionary:(id)_using];
18792+ if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
18793+ _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
18794+ if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil;
18795+ _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter];
18796+ if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
18797+ _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
18798+ if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
18799+ _var = [QTVar fromJSONDictionary:(id)_var];
18800+ if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
18801+ _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
18802+ if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
18803+ _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
18804+ if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
18805+ _weak = [QTWeak fromJSONDictionary:(id)_weak];
18806+ if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil;
18807+ _where = [QTWhere fromJSONDictionary:(id)_where];
18808+ if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil;
18809+ _willSet = [QTWillSet fromJSONDictionary:(id)_willSet];
18810+ if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil;
18811+ _with = [QTWith fromJSONDictionary:(id)_with];
18812+ if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil;
18813+ _xor = [QTXor fromJSONDictionary:(id)_xor];
18814+ if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil;
18815+ _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq];
18816+ if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil;
18817+ _yes = [QTYes fromJSONDictionary:(id)_yes];
18818+ if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil;
18819+ _yield = [QTYield fromJSONDictionary:(id)_yield];
18820+ if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil;
1861218821 }
1861318822 return self;
1861418823 }
1861518824
1861618825 - (void)setValue:(nullable id)value forKey:(NSString *)key
1861718826 {
18618- id resolved = QTUnmarshalJSON.properties[key];
18827+ id resolved = QTObj6.properties[key];
1861918828 if (resolved) [super setValue:value forKey:resolved];
1862018829 }
1862118830
1862218831 - (void)setNilValueForKey:(NSString *)key
1862318832 {
18624- id resolved = QTUnmarshalJSON.properties[key];
18833+ id resolved = QTObj6.properties[key];
1862518834 if (resolved) [super setValue:@(0) forKey:resolved];
1862618835 }
1862718836
1862818837 - (NSDictionary *)JSONDictionary
1862918838 {
18630- id dict = [[self dictionaryWithValuesForKeys:QTUnmarshalJSON.properties.allValues] mutableCopy];
18839+ id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy];
1863118840
18632- for (id jsonName in QTUnmarshalJSON.properties) {
18633- id propertyName = QTUnmarshalJSON.properties[jsonName];
18841+ for (id jsonName in QTObj6.properties) {
18842+ id propertyName = QTObj6.properties[jsonName];
1863418843 if (![jsonName isEqualToString:propertyName]) {
1863518844 dict[jsonName] = dict[propertyName];
1863618845 [dict removeObjectForKey:propertyName];
1863718846 }
1863818847 }
1863918848
18640- return dict;
18641-}
18642-@end
18643-
18644-@implementation QTUnowned
18849+ [dict addEntriesFromDictionary:@{
18850+ @"union": [_obj6Union JSONDictionary],
18851+ @"unsigned": [_obj6Unsigned JSONDictionary],
18852+ @"void": [_obj6Void JSONDictionary],
18853+ @"volatile": [_obj6Volatile JSONDictionary],
18854+ @"while": [_obj6While JSONDictionary],
18855+ @"UnmarshalJSON": [_unmarshalJSON JSONDictionary],
18856+ @"unowned": [_unowned JSONDictionary],
18857+ @"unsafe": [_unsafe JSONDictionary],
18858+ @"UseSerializers": [_useSerializers JSONDictionary],
18859+ @"ushort": [_ushort JSONDictionary],
18860+ @"using": [_using JSONDictionary],
18861+ @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
18862+ @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
18863+ @"UUID": [_uuid JSONDictionary],
18864+ @"var": [_var JSONDictionary],
18865+ @"virtual": [_virtual JSONDictionary],
18866+ @"wchar_t": [_wcharT JSONDictionary],
18867+ @"weak": [_weak JSONDictionary],
18868+ @"where": [_where JSONDictionary],
18869+ @"willSet": [_willSet JSONDictionary],
18870+ @"with": [_with JSONDictionary],
18871+ @"xor": [_xor JSONDictionary],
18872+ @"xor_eq": [_xorEq JSONDictionary],
18873+ @"YES": [_yes JSONDictionary],
18874+ @"yield": [_yield JSONDictionary],
18875+ }];
18876+
18877+ return dict;
18878+}
18879+@end
18880+
18881+@implementation QTUnion
1864518882 + (NSDictionary<NSString *, NSString *> *)properties
1864618883 {
1864718884 static NSDictionary<NSString *, NSString *> *properties;
1864818885 return properties = properties ? properties : @{
18649- @"unowned": @"unowned",
18886+ @"union": @"unionUnion",
1865018887 };
1865118888 }
1865218889
1865318890 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1865418891 {
18655- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnowned alloc] initWithJSONDictionary:dict] : nil;
18892+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnion alloc] initWithJSONDictionary:dict] : nil;
1865618893 }
1865718894
1865818895 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1865918896 {
1866018897 if (self = [super init]) {
18661- if (![dict[@"unowned"] isKindOfClass:NSNumber.class]) return nil;
18662- if ([dict[@"unowned"] doubleValue] != [dict[@"unowned"] longLongValue]) return nil;
18898+ if (![dict[@"union"] isKindOfClass:NSNumber.class]) return nil;
18899+ if ([dict[@"union"] doubleValue] != [dict[@"union"] longLongValue]) return nil;
1866318900 [self setValuesForKeysWithDictionary:dict];
1866418901 }
1866518902 return self;
@@ -18667,41 +18904,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1866718904
1866818905 - (void)setValue:(nullable id)value forKey:(NSString *)key
1866918906 {
18670- id resolved = QTUnowned.properties[key];
18907+ id resolved = QTUnion.properties[key];
1867118908 if (resolved) [super setValue:value forKey:resolved];
1867218909 }
1867318910
1867418911 - (void)setNilValueForKey:(NSString *)key
1867518912 {
18676- id resolved = QTUnowned.properties[key];
18913+ id resolved = QTUnion.properties[key];
1867718914 if (resolved) [super setValue:@(0) forKey:resolved];
1867818915 }
1867918916
1868018917 - (NSDictionary *)JSONDictionary
1868118918 {
18682- return [self dictionaryWithValuesForKeys:QTUnowned.properties.allValues];
18919+ id dict = [[self dictionaryWithValuesForKeys:QTUnion.properties.allValues] mutableCopy];
18920+
18921+ for (id jsonName in QTUnion.properties) {
18922+ id propertyName = QTUnion.properties[jsonName];
18923+ if (![jsonName isEqualToString:propertyName]) {
18924+ dict[jsonName] = dict[propertyName];
18925+ [dict removeObjectForKey:propertyName];
18926+ }
18927+ }
18928+
18929+ return dict;
1868318930 }
1868418931 @end
1868518932
18686-@implementation QTUnsafe
18933+@implementation QTUnsigned
1868718934 + (NSDictionary<NSString *, NSString *> *)properties
1868818935 {
1868918936 static NSDictionary<NSString *, NSString *> *properties;
1869018937 return properties = properties ? properties : @{
18691- @"unsafe": @"unsafe",
18938+ @"unsigned": @"unsignedUnsigned",
1869218939 };
1869318940 }
1869418941
1869518942 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1869618943 {
18697- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil;
18944+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
1869818945 }
1869918946
1870018947 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1870118948 {
1870218949 if (self = [super init]) {
18703- if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil;
18704- if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil;
18950+ if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
18951+ if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
1870518952 [self setValuesForKeysWithDictionary:dict];
1870618953 }
1870718954 return self;
@@ -18709,41 +18956,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1870918956
1871018957 - (void)setValue:(nullable id)value forKey:(NSString *)key
1871118958 {
18712- id resolved = QTUnsafe.properties[key];
18959+ id resolved = QTUnsigned.properties[key];
1871318960 if (resolved) [super setValue:value forKey:resolved];
1871418961 }
1871518962
1871618963 - (void)setNilValueForKey:(NSString *)key
1871718964 {
18718- id resolved = QTUnsafe.properties[key];
18965+ id resolved = QTUnsigned.properties[key];
1871918966 if (resolved) [super setValue:@(0) forKey:resolved];
1872018967 }
1872118968
1872218969 - (NSDictionary *)JSONDictionary
1872318970 {
18724- return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues];
18971+ id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
18972+
18973+ for (id jsonName in QTUnsigned.properties) {
18974+ id propertyName = QTUnsigned.properties[jsonName];
18975+ if (![jsonName isEqualToString:propertyName]) {
18976+ dict[jsonName] = dict[propertyName];
18977+ [dict removeObjectForKey:propertyName];
18978+ }
18979+ }
18980+
18981+ return dict;
1872518982 }
1872618983 @end
1872718984
18728-@implementation QTUseSerializers
18985+@implementation QTVoid
1872918986 + (NSDictionary<NSString *, NSString *> *)properties
1873018987 {
1873118988 static NSDictionary<NSString *, NSString *> *properties;
1873218989 return properties = properties ? properties : @{
18733- @"UseSerializers": @"useSerializers",
18990+ @"void": @"voidVoid",
1873418991 };
1873518992 }
1873618993
1873718994 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1873818995 {
18739- return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil;
18996+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil;
1874018997 }
1874118998
1874218999 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1874319000 {
1874419001 if (self = [super init]) {
18745- if (![dict[@"UseSerializers"] isKindOfClass:NSNumber.class]) return nil;
18746- if ([dict[@"UseSerializers"] doubleValue] != [dict[@"UseSerializers"] longLongValue]) return nil;
19002+ if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil;
19003+ if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil;
1874719004 [self setValuesForKeysWithDictionary:dict];
1874819005 }
1874919006 return self;
@@ -18751,22 +19008,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1875119008
1875219009 - (void)setValue:(nullable id)value forKey:(NSString *)key
1875319010 {
18754- id resolved = QTUseSerializers.properties[key];
19011+ id resolved = QTVoid.properties[key];
1875519012 if (resolved) [super setValue:value forKey:resolved];
1875619013 }
1875719014
1875819015 - (void)setNilValueForKey:(NSString *)key
1875919016 {
18760- id resolved = QTUseSerializers.properties[key];
19017+ id resolved = QTVoid.properties[key];
1876119018 if (resolved) [super setValue:@(0) forKey:resolved];
1876219019 }
1876319020
1876419021 - (NSDictionary *)JSONDictionary
1876519022 {
18766- id dict = [[self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues] mutableCopy];
19023+ id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy];
1876719024
18768- for (id jsonName in QTUseSerializers.properties) {
18769- id propertyName = QTUseSerializers.properties[jsonName];
19025+ for (id jsonName in QTVoid.properties) {
19026+ id propertyName = QTVoid.properties[jsonName];
1877019027 if (![jsonName isEqualToString:propertyName]) {
1877119028 dict[jsonName] = dict[propertyName];
1877219029 [dict removeObjectForKey:propertyName];
@@ -18777,180 +19034,77 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1877719034 }
1877819035 @end
1877919036
18780-@implementation QTObj6
19037+@implementation QTVolatile
1878119038 + (NSDictionary<NSString *, NSString *> *)properties
1878219039 {
1878319040 static NSDictionary<NSString *, NSString *> *properties;
1878419041 return properties = properties ? properties : @{
18785- @"dummy": @"dummy",
18786- @"unsigned": @"obj6Unsigned",
18787- @"void": @"obj6Void",
18788- @"volatile": @"obj6Volatile",
18789- @"while": @"obj6While",
18790- @"ushort": @"ushort",
18791- @"using": @"using",
18792- @"Utf8JsonReader": @"utf8JSONReader",
18793- @"Utf8JsonWriter": @"utf8JSONWriter",
18794- @"UUID": @"uuid",
18795- @"var": @"var",
18796- @"virtual": @"virtual",
18797- @"wchar_t": @"wcharT",
18798- @"weak": @"weak",
18799- @"where": @"where",
18800- @"willSet": @"willSet",
18801- @"with": @"with",
18802- @"xor": @"xor",
18803- @"xor_eq": @"xorEq",
18804- @"YES": @"yes",
18805- @"yield": @"yield",
19042+ @"volatile": @"volatileVolatile",
1880619043 };
1880719044 }
1880819045
1880919046 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1881019047 {
18811- return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil;
19048+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil;
1881219049 }
1881319050
1881419051 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1881519052 {
1881619053 if (self = [super init]) {
18817- if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
18818- if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18819- if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
18820- if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
18821- if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
18822- if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18823- if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
18824- if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
18825- if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
18826- if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
18827- if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
18828- if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
18829- if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
18830- if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
18831- if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
18832- if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
18833- if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil;
18834- if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil;
18835- if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil;
18836- if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil;
18837- if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
18838- if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
19054+ if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil;
19055+ if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil;
1883919056 [self setValuesForKeysWithDictionary:dict];
18840- _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned];
18841- if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
18842- _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
18843- if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
18844- _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
18845- if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
18846- _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
18847- if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18848- _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
18849- if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
18850- _using = [QTUsing fromJSONDictionary:(id)_using];
18851- if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
18852- _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
18853- if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil;
18854- _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter];
18855- if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
18856- _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
18857- if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
18858- _var = [QTVar fromJSONDictionary:(id)_var];
18859- if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
18860- _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
18861- if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
18862- _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
18863- if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
18864- _weak = [QTWeak fromJSONDictionary:(id)_weak];
18865- if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil;
18866- _where = [QTWhere fromJSONDictionary:(id)_where];
18867- if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil;
18868- _willSet = [QTWillSet fromJSONDictionary:(id)_willSet];
18869- if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil;
18870- _with = [QTWith fromJSONDictionary:(id)_with];
18871- if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil;
18872- _xor = [QTXor fromJSONDictionary:(id)_xor];
18873- if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil;
18874- _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq];
18875- if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil;
18876- _yes = [QTYes fromJSONDictionary:(id)_yes];
18877- if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil;
18878- _yield = [QTYield fromJSONDictionary:(id)_yield];
18879- if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil;
1888019057 }
1888119058 return self;
1888219059 }
1888319060
1888419061 - (void)setValue:(nullable id)value forKey:(NSString *)key
1888519062 {
18886- id resolved = QTObj6.properties[key];
19063+ id resolved = QTVolatile.properties[key];
1888719064 if (resolved) [super setValue:value forKey:resolved];
1888819065 }
1888919066
1889019067 - (void)setNilValueForKey:(NSString *)key
1889119068 {
18892- id resolved = QTObj6.properties[key];
19069+ id resolved = QTVolatile.properties[key];
1889319070 if (resolved) [super setValue:@(0) forKey:resolved];
1889419071 }
1889519072
1889619073 - (NSDictionary *)JSONDictionary
1889719074 {
18898- id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy];
19075+ id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy];
1889919076
18900- for (id jsonName in QTObj6.properties) {
18901- id propertyName = QTObj6.properties[jsonName];
19077+ for (id jsonName in QTVolatile.properties) {
19078+ id propertyName = QTVolatile.properties[jsonName];
1890219079 if (![jsonName isEqualToString:propertyName]) {
1890319080 dict[jsonName] = dict[propertyName];
1890419081 [dict removeObjectForKey:propertyName];
1890519082 }
1890619083 }
1890719084
18908- [dict addEntriesFromDictionary:@{
18909- @"unsigned": [_obj6Unsigned JSONDictionary],
18910- @"void": [_obj6Void JSONDictionary],
18911- @"volatile": [_obj6Volatile JSONDictionary],
18912- @"while": [_obj6While JSONDictionary],
18913- @"ushort": [_ushort JSONDictionary],
18914- @"using": [_using JSONDictionary],
18915- @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
18916- @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
18917- @"UUID": [_uuid JSONDictionary],
18918- @"var": [_var JSONDictionary],
18919- @"virtual": [_virtual JSONDictionary],
18920- @"wchar_t": [_wcharT JSONDictionary],
18921- @"weak": [_weak JSONDictionary],
18922- @"where": [_where JSONDictionary],
18923- @"willSet": [_willSet JSONDictionary],
18924- @"with": [_with JSONDictionary],
18925- @"xor": [_xor JSONDictionary],
18926- @"xor_eq": [_xorEq JSONDictionary],
18927- @"YES": [_yes JSONDictionary],
18928- @"yield": [_yield JSONDictionary],
18929- }];
18930-
1893119085 return dict;
1893219086 }
1893319087 @end
1893419088
18935-@implementation QTUnsigned
19089+@implementation QTWhile
1893619090 + (NSDictionary<NSString *, NSString *> *)properties
1893719091 {
1893819092 static NSDictionary<NSString *, NSString *> *properties;
1893919093 return properties = properties ? properties : @{
18940- @"unsigned": @"unsignedUnsigned",
19094+ @"while": @"whileWhile",
1894119095 };
1894219096 }
1894319097
1894419098 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1894519099 {
18946- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
19100+ return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil;
1894719101 }
1894819102
1894919103 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1895019104 {
1895119105 if (self = [super init]) {
18952- if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
18953- if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
19106+ if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil;
19107+ if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil;
1895419108 [self setValuesForKeysWithDictionary:dict];
1895519109 }
1895619110 return self;
@@ -18958,22 +19112,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1895819112
1895919113 - (void)setValue:(nullable id)value forKey:(NSString *)key
1896019114 {
18961- id resolved = QTUnsigned.properties[key];
19115+ id resolved = QTWhile.properties[key];
1896219116 if (resolved) [super setValue:value forKey:resolved];
1896319117 }
1896419118
1896519119 - (void)setNilValueForKey:(NSString *)key
1896619120 {
18967- id resolved = QTUnsigned.properties[key];
19121+ id resolved = QTWhile.properties[key];
1896819122 if (resolved) [super setValue:@(0) forKey:resolved];
1896919123 }
1897019124
1897119125 - (NSDictionary *)JSONDictionary
1897219126 {
18973- id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
19127+ id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy];
1897419128
18975- for (id jsonName in QTUnsigned.properties) {
18976- id propertyName = QTUnsigned.properties[jsonName];
19129+ for (id jsonName in QTWhile.properties) {
19130+ id propertyName = QTWhile.properties[jsonName];
1897719131 if (![jsonName isEqualToString:propertyName]) {
1897819132 dict[jsonName] = dict[propertyName];
1897919133 [dict removeObjectForKey:propertyName];
@@ -18984,25 +19138,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1898419138 }
1898519139 @end
1898619140
18987-@implementation QTVoid
19141+@implementation QTUnmarshalJSON
1898819142 + (NSDictionary<NSString *, NSString *> *)properties
1898919143 {
1899019144 static NSDictionary<NSString *, NSString *> *properties;
1899119145 return properties = properties ? properties : @{
18992- @"void": @"voidVoid",
19146+ @"UnmarshalJSON": @"unmarshalJSON",
1899319147 };
1899419148 }
1899519149
1899619150 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1899719151 {
18998- return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil;
19152+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnmarshalJSON alloc] initWithJSONDictionary:dict] : nil;
1899919153 }
1900019154
1900119155 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1900219156 {
1900319157 if (self = [super init]) {
19004- if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil;
19005- if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil;
19158+ if (![dict[@"UnmarshalJSON"] isKindOfClass:NSNumber.class]) return nil;
19159+ if ([dict[@"UnmarshalJSON"] doubleValue] != [dict[@"UnmarshalJSON"] longLongValue]) return nil;
1900619160 [self setValuesForKeysWithDictionary:dict];
1900719161 }
1900819162 return self;
@@ -19010,22 +19164,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1901019164
1901119165 - (void)setValue:(nullable id)value forKey:(NSString *)key
1901219166 {
19013- id resolved = QTVoid.properties[key];
19167+ id resolved = QTUnmarshalJSON.properties[key];
1901419168 if (resolved) [super setValue:value forKey:resolved];
1901519169 }
1901619170
1901719171 - (void)setNilValueForKey:(NSString *)key
1901819172 {
19019- id resolved = QTVoid.properties[key];
19173+ id resolved = QTUnmarshalJSON.properties[key];
1902019174 if (resolved) [super setValue:@(0) forKey:resolved];
1902119175 }
1902219176
1902319177 - (NSDictionary *)JSONDictionary
1902419178 {
19025- id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy];
19179+ id dict = [[self dictionaryWithValuesForKeys:QTUnmarshalJSON.properties.allValues] mutableCopy];
1902619180
19027- for (id jsonName in QTVoid.properties) {
19028- id propertyName = QTVoid.properties[jsonName];
19181+ for (id jsonName in QTUnmarshalJSON.properties) {
19182+ id propertyName = QTUnmarshalJSON.properties[jsonName];
1902919183 if (![jsonName isEqualToString:propertyName]) {
1903019184 dict[jsonName] = dict[propertyName];
1903119185 [dict removeObjectForKey:propertyName];
@@ -19036,25 +19190,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1903619190 }
1903719191 @end
1903819192
19039-@implementation QTVolatile
19193+@implementation QTUnowned
1904019194 + (NSDictionary<NSString *, NSString *> *)properties
1904119195 {
1904219196 static NSDictionary<NSString *, NSString *> *properties;
1904319197 return properties = properties ? properties : @{
19044- @"volatile": @"volatileVolatile",
19198+ @"unowned": @"unowned",
1904519199 };
1904619200 }
1904719201
1904819202 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1904919203 {
19050- return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil;
19204+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnowned alloc] initWithJSONDictionary:dict] : nil;
1905119205 }
1905219206
1905319207 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1905419208 {
1905519209 if (self = [super init]) {
19056- if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil;
19057- if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil;
19210+ if (![dict[@"unowned"] isKindOfClass:NSNumber.class]) return nil;
19211+ if ([dict[@"unowned"] doubleValue] != [dict[@"unowned"] longLongValue]) return nil;
1905819212 [self setValuesForKeysWithDictionary:dict];
1905919213 }
1906019214 return self;
@@ -19062,51 +19216,83 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1906219216
1906319217 - (void)setValue:(nullable id)value forKey:(NSString *)key
1906419218 {
19065- id resolved = QTVolatile.properties[key];
19219+ id resolved = QTUnowned.properties[key];
1906619220 if (resolved) [super setValue:value forKey:resolved];
1906719221 }
1906819222
1906919223 - (void)setNilValueForKey:(NSString *)key
1907019224 {
19071- id resolved = QTVolatile.properties[key];
19225+ id resolved = QTUnowned.properties[key];
1907219226 if (resolved) [super setValue:@(0) forKey:resolved];
1907319227 }
1907419228
1907519229 - (NSDictionary *)JSONDictionary
1907619230 {
19077- id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy];
19231+ return [self dictionaryWithValuesForKeys:QTUnowned.properties.allValues];
19232+}
19233+@end
1907819234
19079- for (id jsonName in QTVolatile.properties) {
19080- id propertyName = QTVolatile.properties[jsonName];
19081- if (![jsonName isEqualToString:propertyName]) {
19082- dict[jsonName] = dict[propertyName];
19083- [dict removeObjectForKey:propertyName];
19084- }
19235+@implementation QTUnsafe
19236++ (NSDictionary<NSString *, NSString *> *)properties
19237+{
19238+ static NSDictionary<NSString *, NSString *> *properties;
19239+ return properties = properties ? properties : @{
19240+ @"unsafe": @"unsafe",
19241+ };
19242+}
19243+
19244++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19245+{
19246+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil;
19247+}
19248+
19249+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19250+{
19251+ if (self = [super init]) {
19252+ if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil;
19253+ if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil;
19254+ [self setValuesForKeysWithDictionary:dict];
1908519255 }
19256+ return self;
19257+}
1908619258
19087- return dict;
19259+- (void)setValue:(nullable id)value forKey:(NSString *)key
19260+{
19261+ id resolved = QTUnsafe.properties[key];
19262+ if (resolved) [super setValue:value forKey:resolved];
19263+}
19264+
19265+- (void)setNilValueForKey:(NSString *)key
19266+{
19267+ id resolved = QTUnsafe.properties[key];
19268+ if (resolved) [super setValue:@(0) forKey:resolved];
19269+}
19270+
19271+- (NSDictionary *)JSONDictionary
19272+{
19273+ return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues];
1908819274 }
1908919275 @end
1909019276
19091-@implementation QTWhile
19277+@implementation QTUseSerializers
1909219278 + (NSDictionary<NSString *, NSString *> *)properties
1909319279 {
1909419280 static NSDictionary<NSString *, NSString *> *properties;
1909519281 return properties = properties ? properties : @{
19096- @"while": @"whileWhile",
19282+ @"UseSerializers": @"useSerializers",
1909719283 };
1909819284 }
1909919285
1910019286 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1910119287 {
19102- return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil;
19288+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil;
1910319289 }
1910419290
1910519291 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1910619292 {
1910719293 if (self = [super init]) {
19108- if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil;
19109- if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil;
19294+ if (![dict[@"UseSerializers"] isKindOfClass:NSNumber.class]) return nil;
19295+ if ([dict[@"UseSerializers"] doubleValue] != [dict[@"UseSerializers"] longLongValue]) return nil;
1911019296 [self setValuesForKeysWithDictionary:dict];
1911119297 }
1911219298 return self;
@@ -19114,22 +19300,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1911419300
1911519301 - (void)setValue:(nullable id)value forKey:(NSString *)key
1911619302 {
19117- id resolved = QTWhile.properties[key];
19303+ id resolved = QTUseSerializers.properties[key];
1911819304 if (resolved) [super setValue:value forKey:resolved];
1911919305 }
1912019306
1912119307 - (void)setNilValueForKey:(NSString *)key
1912219308 {
19123- id resolved = QTWhile.properties[key];
19309+ id resolved = QTUseSerializers.properties[key];
1912419310 if (resolved) [super setValue:@(0) forKey:resolved];
1912519311 }
1912619312
1912719313 - (NSDictionary *)JSONDictionary
1912819314 {
19129- id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy];
19315+ id dict = [[self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues] mutableCopy];
1913019316
19131- for (id jsonName in QTWhile.properties) {
19132- id propertyName = QTWhile.properties[jsonName];
19317+ for (id jsonName in QTUseSerializers.properties) {
19318+ id propertyName = QTUseSerializers.properties[jsonName];
1913319319 if (![jsonName isEqualToString:propertyName]) {
1913419320 dict[jsonName] = dict[propertyName];
1913519321 [dict removeObjectForKey:propertyName];
Mphpdefault / TopLevel.php+5,133 −4,656
@@ -21125,6 +21125,7 @@ class Obj3 {
2112521125 private Left $left; // json:left Required
2112621126 private Let $let; // json:let Required
2112721127 private ListClass $list; // json:list Required
21128+ private LocalDate $localDate; // json:LocalDate Required
2112821129 private LocaleClass $locale; // json:Locale Required
2112921130 private Lock $lock; // json:lock Required
2113021131 private Long $long; // json:long Required
@@ -21139,8 +21140,6 @@ class Obj3 {
2113921140 private Native $native; // json:native Required
2114021141 private NewClass $new; // json:new Required
2114121142 private Newtonsoft $newtonsoft; // json:newtonsoft Required
21142- private Nil $nil; // json:nil Required
21143- private No $no; // json:NO Required
2114421143
2114521144 /**
2114621145 * @param int $dummy
@@ -21193,6 +21192,7 @@ class Obj3 {
2119321192 * @param Left $left
2119421193 * @param Let $let
2119521194 * @param ListClass $list
21195+ * @param LocalDate $localDate
2119621196 * @param LocaleClass $locale
2119721197 * @param Lock $lock
2119821198 * @param Long $long
@@ -21207,10 +21207,8 @@ class Obj3 {
2120721207 * @param Native $native
2120821208 * @param NewClass $new
2120921209 * @param Newtonsoft $newtonsoft
21210- * @param Nil $nil
21211- * @param No $no
2121221210 */
21213- 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, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no) {
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, LocalDate $localDate, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft) {
2121421212 $this->dummy = $dummy;
2121521213 $this->goto = $goto;
2121621214 $this->guard = $guard;
@@ -21261,6 +21259,7 @@ class Obj3 {
2126121259 $this->left = $left;
2126221260 $this->let = $let;
2126321261 $this->list = $list;
21262+ $this->localDate = $localDate;
2126421263 $this->locale = $locale;
2126521264 $this->lock = $lock;
2126621265 $this->long = $long;
@@ -21275,8 +21274,6 @@ class Obj3 {
2127521274 $this->native = $native;
2127621275 $this->new = $new;
2127721276 $this->newtonsoft = $newtonsoft;
21278- $this->nil = $nil;
21279- $this->no = $no;
2128021277 }
2128121278
2128221279 /**
@@ -23678,6 +23675,54 @@ class Obj3 {
2367823675 return ListClass::sample(); /*80:list*/
2367923676 }
2368023677
23678+ /**
23679+ * @param stdClass $value
23680+ * @throws Exception
23681+ * @return LocalDate
23682+ */
23683+ public static function fromLocalDate(stdClass $value): LocalDate {
23684+ return LocalDate::from($value); /*class*/
23685+ }
23686+
23687+ /**
23688+ * @throws Exception
23689+ * @return stdClass
23690+ */
23691+ public function toLocalDate(): stdClass {
23692+ if (Obj3::validateLocalDate($this->localDate)) {
23693+ return $this->localDate->to(); /*class*/
23694+ }
23695+ throw new Exception('never get to this Obj3::localDate');
23696+ }
23697+
23698+ /**
23699+ * @param LocalDate
23700+ * @return bool
23701+ * @throws Exception
23702+ */
23703+ public static function validateLocalDate(LocalDate $value): bool {
23704+ $value->validate();
23705+ return true;
23706+ }
23707+
23708+ /**
23709+ * @throws Exception
23710+ * @return LocalDate
23711+ */
23712+ public function getLocalDate(): LocalDate {
23713+ if (Obj3::validateLocalDate($this->localDate)) {
23714+ return $this->localDate;
23715+ }
23716+ throw new Exception('never get to getLocalDate Obj3::localDate');
23717+ }
23718+
23719+ /**
23720+ * @return LocalDate
23721+ */
23722+ public static function sampleLocalDate(): LocalDate {
23723+ return LocalDate::sample(); /*81:localDate*/
23724+ }
23725+
2368123726 /**
2368223727 * @param stdClass $value
2368323728 * @throws Exception
@@ -23723,7 +23768,7 @@ class Obj3 {
2372323768 * @return LocaleClass
2372423769 */
2372523770 public static function sampleLocale(): LocaleClass {
23726- return LocaleClass::sample(); /*81:locale*/
23771+ return LocaleClass::sample(); /*82:locale*/
2372723772 }
2372823773
2372923774 /**
@@ -23771,7 +23816,7 @@ class Obj3 {
2377123816 * @return Lock
2377223817 */
2377323818 public static function sampleLock(): Lock {
23774- return Lock::sample(); /*82:lock*/
23819+ return Lock::sample(); /*83:lock*/
2377523820 }
2377623821
2377723822 /**
@@ -23819,7 +23864,7 @@ class Obj3 {
2381923864 * @return Long
2382023865 */
2382123866 public static function sampleLong(): Long {
23822- return Long::sample(); /*83:long*/
23867+ return Long::sample(); /*84:long*/
2382323868 }
2382423869
2382523870 /**
@@ -23867,7 +23912,7 @@ class Obj3 {
2386723912 * @return Map
2386823913 */
2386923914 public static function sampleMap(): Map {
23870- return Map::sample(); /*84:map*/
23915+ return Map::sample(); /*85:map*/
2387123916 }
2387223917
2387323918 /**
@@ -23915,7 +23960,7 @@ class Obj3 {
2391523960 * @return MapEntry
2391623961 */
2391723962 public static function sampleMapEntry(): MapEntry {
23918- return MapEntry::sample(); /*85:mapEntry*/
23963+ return MapEntry::sample(); /*86:mapEntry*/
2391923964 }
2392023965
2392123966 /**
@@ -23963,7 +24008,7 @@ class Obj3 {
2396324008 * @return MarshalJSON
2396424009 */
2396524010 public static function sampleMarshalJSON(): MarshalJSON {
23966- return MarshalJSON::sample(); /*86:marshalJSON*/
24011+ return MarshalJSON::sample(); /*87:marshalJSON*/
2396724012 }
2396824013
2396924014 /**
@@ -24011,7 +24056,7 @@ class Obj3 {
2401124056 * @return MetadataPropertyHandling
2401224057 */
2401324058 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling {
24014- return MetadataPropertyHandling::sample(); /*87:metadataPropertyHandling*/
24059+ return MetadataPropertyHandling::sample(); /*88:metadataPropertyHandling*/
2401524060 }
2401624061
2401724062 /**
@@ -24059,7 +24104,7 @@ class Obj3 {
2405924104 * @return Module
2406024105 */
2406124106 public static function sampleModule(): Module {
24062- return Module::sample(); /*88:module*/
24107+ return Module::sample(); /*89:module*/
2406324108 }
2406424109
2406524110 /**
@@ -24107,7 +24152,7 @@ class Obj3 {
2410724152 * @return Mutable
2410824153 */
2410924154 public static function sampleMutable(): Mutable {
24110- return Mutable::sample(); /*89:mutable*/
24155+ return Mutable::sample(); /*90:mutable*/
2411124156 }
2411224157
2411324158 /**
@@ -24155,7 +24200,7 @@ class Obj3 {
2415524200 * @return Mutating
2415624201 */
2415724202 public static function sampleMutating(): Mutating {
24158- return Mutating::sample(); /*90:mutating*/
24203+ return Mutating::sample(); /*91:mutating*/
2415924204 }
2416024205
2416124206 /**
@@ -24203,7 +24248,7 @@ class Obj3 {
2420324248 * @return NamespaceClass
2420424249 */
2420524250 public static function sampleNamespace(): NamespaceClass {
24206- return NamespaceClass::sample(); /*91:namespace*/
24251+ return NamespaceClass::sample(); /*92:namespace*/
2420724252 }
2420824253
2420924254 /**
@@ -24251,7 +24296,7 @@ class Obj3 {
2425124296 * @return Native
2425224297 */
2425324298 public static function sampleNative(): Native {
24254- return Native::sample(); /*92:native*/
24299+ return Native::sample(); /*93:native*/
2425524300 }
2425624301
2425724302 /**
@@ -24299,7 +24344,7 @@ class Obj3 {
2429924344 * @return NewClass
2430024345 */
2430124346 public static function sampleNew(): NewClass {
24302- return NewClass::sample(); /*93:new*/
24347+ return NewClass::sample(); /*94:new*/
2430324348 }
2430424349
2430524350 /**
@@ -24347,103 +24392,7 @@ class Obj3 {
2434724392 * @return Newtonsoft
2434824393 */
2434924394 public static function sampleNewtonsoft(): Newtonsoft {
24350- return Newtonsoft::sample(); /*94:newtonsoft*/
24351- }
24352-
24353- /**
24354- * @param stdClass $value
24355- * @throws Exception
24356- * @return Nil
24357- */
24358- public static function fromNil(stdClass $value): Nil {
24359- return Nil::from($value); /*class*/
24360- }
24361-
24362- /**
24363- * @throws Exception
24364- * @return stdClass
24365- */
24366- public function toNil(): stdClass {
24367- if (Obj3::validateNil($this->nil)) {
24368- return $this->nil->to(); /*class*/
24369- }
24370- throw new Exception('never get to this Obj3::nil');
24371- }
24372-
24373- /**
24374- * @param Nil
24375- * @return bool
24376- * @throws Exception
24377- */
24378- public static function validateNil(Nil $value): bool {
24379- $value->validate();
24380- return true;
24381- }
24382-
24383- /**
24384- * @throws Exception
24385- * @return Nil
24386- */
24387- public function getNil(): Nil {
24388- if (Obj3::validateNil($this->nil)) {
24389- return $this->nil;
24390- }
24391- throw new Exception('never get to getNil Obj3::nil');
24392- }
24393-
24394- /**
24395- * @return Nil
24396- */
24397- public static function sampleNil(): Nil {
24398- return Nil::sample(); /*95:nil*/
24399- }
24400-
24401- /**
24402- * @param stdClass $value
24403- * @throws Exception
24404- * @return No
24405- */
24406- public static function fromNo(stdClass $value): No {
24407- return No::from($value); /*class*/
24408- }
24409-
24410- /**
24411- * @throws Exception
24412- * @return stdClass
24413- */
24414- public function toNo(): stdClass {
24415- if (Obj3::validateNo($this->no)) {
24416- return $this->no->to(); /*class*/
24417- }
24418- throw new Exception('never get to this Obj3::no');
24419- }
24420-
24421- /**
24422- * @param No
24423- * @return bool
24424- * @throws Exception
24425- */
24426- public static function validateNo(No $value): bool {
24427- $value->validate();
24428- return true;
24429- }
24430-
24431- /**
24432- * @throws Exception
24433- * @return No
24434- */
24435- public function getNo(): No {
24436- if (Obj3::validateNo($this->no)) {
24437- return $this->no;
24438- }
24439- throw new Exception('never get to getNo Obj3::no');
24440- }
24441-
24442- /**
24443- * @return No
24444- */
24445- public static function sampleNo(): No {
24446- return No::sample(); /*96:no*/
24395+ return Newtonsoft::sample(); /*95:newtonsoft*/
2444724396 }
2444824397
2444924398 /**
@@ -24501,6 +24450,7 @@ class Obj3 {
2450124450 || Obj3::validateLeft($this->left)
2450224451 || Obj3::validateLet($this->let)
2450324452 || Obj3::validateList($this->list)
24453+ || Obj3::validateLocalDate($this->localDate)
2450424454 || Obj3::validateLocale($this->locale)
2450524455 || Obj3::validateLock($this->lock)
2450624456 || Obj3::validateLong($this->long)
@@ -24514,9 +24464,7 @@ class Obj3 {
2451424464 || Obj3::validateNamespace($this->namespace)
2451524465 || Obj3::validateNative($this->native)
2451624466 || Obj3::validateNew($this->new)
24517- || Obj3::validateNewtonsoft($this->newtonsoft)
24518- || Obj3::validateNil($this->nil)
24519- || Obj3::validateNo($this->no);
24467+ || Obj3::validateNewtonsoft($this->newtonsoft);
2452024468 }
2452124469
2452224470 /**
@@ -24575,6 +24523,7 @@ class Obj3 {
2457524523 $out->{'left'} = $this->toLeft();
2457624524 $out->{'let'} = $this->toLet();
2457724525 $out->{'list'} = $this->toList();
24526+ $out->{'LocalDate'} = $this->toLocalDate();
2457824527 $out->{'Locale'} = $this->toLocale();
2457924528 $out->{'lock'} = $this->toLock();
2458024529 $out->{'long'} = $this->toLong();
@@ -24589,8 +24538,6 @@ class Obj3 {
2458924538 $out->{'native'} = $this->toNative();
2459024539 $out->{'new'} = $this->toNew();
2459124540 $out->{'newtonsoft'} = $this->toNewtonsoft();
24592- $out->{'nil'} = $this->toNil();
24593- $out->{'NO'} = $this->toNo();
2459424541 return $out;
2459524542 }
2459624543
@@ -24750,6 +24697,9 @@ class Obj3 {
2475024697 if (!property_exists($obj, 'list')) {
2475124698 throw new Exception("Missing required property");
2475224699 }
24700+ if (!property_exists($obj, 'LocalDate')) {
24701+ throw new Exception("Missing required property");
24702+ }
2475324703 if (!property_exists($obj, 'Locale')) {
2475424704 throw new Exception("Missing required property");
2475524705 }
@@ -24792,12 +24742,6 @@ class Obj3 {
2479224742 if (!property_exists($obj, 'newtonsoft')) {
2479324743 throw new Exception("Missing required property");
2479424744 }
24795- if (!property_exists($obj, 'nil')) {
24796- throw new Exception("Missing required property");
24797- }
24798- if (!property_exists($obj, 'NO')) {
24799- throw new Exception("Missing required property");
24800- }
2480124745 return new Obj3(
2480224746 Obj3::fromDummy($obj->{'dummy'})
2480324747 ,Obj3::fromGoto($obj->{'goto'})
@@ -24849,6 +24793,7 @@ class Obj3 {
2484924793 ,Obj3::fromLeft($obj->{'left'})
2485024794 ,Obj3::fromLet($obj->{'let'})
2485124795 ,Obj3::fromList($obj->{'list'})
24796+ ,Obj3::fromLocalDate($obj->{'LocalDate'})
2485224797 ,Obj3::fromLocale($obj->{'Locale'})
2485324798 ,Obj3::fromLock($obj->{'lock'})
2485424799 ,Obj3::fromLong($obj->{'long'})
@@ -24863,8 +24808,6 @@ class Obj3 {
2486324808 ,Obj3::fromNative($obj->{'native'})
2486424809 ,Obj3::fromNew($obj->{'new'})
2486524810 ,Obj3::fromNewtonsoft($obj->{'newtonsoft'})
24866- ,Obj3::fromNil($obj->{'nil'})
24867- ,Obj3::fromNo($obj->{'NO'})
2486824811 );
2486924812 }
2487024813
@@ -24923,6 +24866,7 @@ class Obj3 {
2492324866 ,Obj3::sampleLeft()
2492424867 ,Obj3::sampleLet()
2492524868 ,Obj3::sampleList()
24869+ ,Obj3::sampleLocalDate()
2492624870 ,Obj3::sampleLocale()
2492724871 ,Obj3::sampleLock()
2492824872 ,Obj3::sampleLong()
@@ -24937,8 +24881,6 @@ class Obj3 {
2493724881 ,Obj3::sampleNative()
2493824882 ,Obj3::sampleNew()
2493924883 ,Obj3::sampleNewtonsoft()
24940- ,Obj3::sampleNil()
24941- ,Obj3::sampleNo()
2494224884 );
2494324885 }
2494424886 }
@@ -29895,6 +29837,107 @@ class ListClass {
2989529837 }
2989629838 }
2989729839
29840+// This is an autogenerated file:LocalDate
29841+
29842+class LocalDate {
29843+ private int $localDate; // json:LocalDate Required
29844+
29845+ /**
29846+ * @param int $localDate
29847+ */
29848+ public function __construct(int $localDate) {
29849+ $this->localDate = $localDate;
29850+ }
29851+
29852+ /**
29853+ * @param int $value
29854+ * @throws Exception
29855+ * @return int
29856+ */
29857+ public static function fromLocalDate(int $value): int {
29858+ return $value; /*int*/
29859+ }
29860+
29861+ /**
29862+ * @throws Exception
29863+ * @return int
29864+ */
29865+ public function toLocalDate(): int {
29866+ if (LocalDate::validateLocalDate($this->localDate)) {
29867+ return $this->localDate; /*int*/
29868+ }
29869+ throw new Exception('never get to this LocalDate::localDate');
29870+ }
29871+
29872+ /**
29873+ * @param int
29874+ * @return bool
29875+ * @throws Exception
29876+ */
29877+ public static function validateLocalDate(int $value): bool {
29878+ return true;
29879+ }
29880+
29881+ /**
29882+ * @throws Exception
29883+ * @return int
29884+ */
29885+ public function getLocalDate(): int {
29886+ if (LocalDate::validateLocalDate($this->localDate)) {
29887+ return $this->localDate;
29888+ }
29889+ throw new Exception('never get to getLocalDate LocalDate::localDate');
29890+ }
29891+
29892+ /**
29893+ * @return int
29894+ */
29895+ public static function sampleLocalDate(): int {
29896+ return 31; /*31:localDate*/
29897+ }
29898+
29899+ /**
29900+ * @throws Exception
29901+ * @return bool
29902+ */
29903+ public function validate(): bool {
29904+ return LocalDate::validateLocalDate($this->localDate);
29905+ }
29906+
29907+ /**
29908+ * @return stdClass
29909+ * @throws Exception
29910+ */
29911+ public function to(): stdClass {
29912+ $out = new stdClass();
29913+ $out->{'LocalDate'} = $this->toLocalDate();
29914+ return $out;
29915+ }
29916+
29917+ /**
29918+ * @param stdClass $obj
29919+ * @return LocalDate
29920+ * @throws Exception
29921+ */
29922+ public static function from(stdClass $obj): LocalDate {
29923+ if (!property_exists($obj, 'LocalDate')) {
29924+ throw new Exception("Missing required property");
29925+ }
29926+ return new LocalDate(
29927+ LocalDate::fromLocalDate($obj->{'LocalDate'})
29928+ );
29929+ }
29930+
29931+ /**
29932+ * @return LocalDate
29933+ */
29934+ public static function sample(): LocalDate {
29935+ return new LocalDate(
29936+ LocalDate::sampleLocalDate()
29937+ );
29938+ }
29939+}
29940+
2989829941 // This is an autogenerated file:LocaleClass
2989929942
2990029943 class LocaleClass {
@@ -31309,212 +31352,12 @@ class Newtonsoft {
3130931352 }
3131031353 }
3131131354
31312-// This is an autogenerated file:Nil
31313-
31314-class Nil {
31315- private int $nil; // json:nil Required
31316-
31317- /**
31318- * @param int $nil
31319- */
31320- public function __construct(int $nil) {
31321- $this->nil = $nil;
31322- }
31323-
31324- /**
31325- * @param int $value
31326- * @throws Exception
31327- * @return int
31328- */
31329- public static function fromNil(int $value): int {
31330- return $value; /*int*/
31331- }
31332-
31333- /**
31334- * @throws Exception
31335- * @return int
31336- */
31337- public function toNil(): int {
31338- if (Nil::validateNil($this->nil)) {
31339- return $this->nil; /*int*/
31340- }
31341- throw new Exception('never get to this Nil::nil');
31342- }
31343-
31344- /**
31345- * @param int
31346- * @return bool
31347- * @throws Exception
31348- */
31349- public static function validateNil(int $value): bool {
31350- return true;
31351- }
31352-
31353- /**
31354- * @throws Exception
31355- * @return int
31356- */
31357- public function getNil(): int {
31358- if (Nil::validateNil($this->nil)) {
31359- return $this->nil;
31360- }
31361- throw new Exception('never get to getNil Nil::nil');
31362- }
31363-
31364- /**
31365- * @return int
31366- */
31367- public static function sampleNil(): int {
31368- return 31; /*31:nil*/
31369- }
31370-
31371- /**
31372- * @throws Exception
31373- * @return bool
31374- */
31375- public function validate(): bool {
31376- return Nil::validateNil($this->nil);
31377- }
31378-
31379- /**
31380- * @return stdClass
31381- * @throws Exception
31382- */
31383- public function to(): stdClass {
31384- $out = new stdClass();
31385- $out->{'nil'} = $this->toNil();
31386- return $out;
31387- }
31388-
31389- /**
31390- * @param stdClass $obj
31391- * @return Nil
31392- * @throws Exception
31393- */
31394- public static function from(stdClass $obj): Nil {
31395- if (!property_exists($obj, 'nil')) {
31396- throw new Exception("Missing required property");
31397- }
31398- return new Nil(
31399- Nil::fromNil($obj->{'nil'})
31400- );
31401- }
31402-
31403- /**
31404- * @return Nil
31405- */
31406- public static function sample(): Nil {
31407- return new Nil(
31408- Nil::sampleNil()
31409- );
31410- }
31411-}
31412-
31413-// This is an autogenerated file:No
31414-
31415-class No {
31416- private int $no; // json:NO Required
31417-
31418- /**
31419- * @param int $no
31420- */
31421- public function __construct(int $no) {
31422- $this->no = $no;
31423- }
31424-
31425- /**
31426- * @param int $value
31427- * @throws Exception
31428- * @return int
31429- */
31430- public static function fromNo(int $value): int {
31431- return $value; /*int*/
31432- }
31433-
31434- /**
31435- * @throws Exception
31436- * @return int
31437- */
31438- public function toNo(): int {
31439- if (No::validateNo($this->no)) {
31440- return $this->no; /*int*/
31441- }
31442- throw new Exception('never get to this No::no');
31443- }
31444-
31445- /**
31446- * @param int
31447- * @return bool
31448- * @throws Exception
31449- */
31450- public static function validateNo(int $value): bool {
31451- return true;
31452- }
31453-
31454- /**
31455- * @throws Exception
31456- * @return int
31457- */
31458- public function getNo(): int {
31459- if (No::validateNo($this->no)) {
31460- return $this->no;
31461- }
31462- throw new Exception('never get to getNo No::no');
31463- }
31464-
31465- /**
31466- * @return int
31467- */
31468- public static function sampleNo(): int {
31469- return 31; /*31:no*/
31470- }
31471-
31472- /**
31473- * @throws Exception
31474- * @return bool
31475- */
31476- public function validate(): bool {
31477- return No::validateNo($this->no);
31478- }
31479-
31480- /**
31481- * @return stdClass
31482- * @throws Exception
31483- */
31484- public function to(): stdClass {
31485- $out = new stdClass();
31486- $out->{'NO'} = $this->toNo();
31487- return $out;
31488- }
31489-
31490- /**
31491- * @param stdClass $obj
31492- * @return No
31493- * @throws Exception
31494- */
31495- public static function from(stdClass $obj): No {
31496- if (!property_exists($obj, 'NO')) {
31497- throw new Exception("Missing required property");
31498- }
31499- return new No(
31500- No::fromNo($obj->{'NO'})
31501- );
31502- }
31503-
31504- /**
31505- * @return No
31506- */
31507- public static function sample(): No {
31508- return new No(
31509- No::sampleNo()
31510- );
31511- }
31512-}
31513-
31514-// This is an autogenerated file:Obj4
31355+// This is an autogenerated file:Obj4
3151531356
3151631357 class Obj4 {
3151731358 private int $dummy; // json:dummy Required
31359+ private Nil $nil; // json:nil Required
31360+ private No $no; // json:NO Required
3151831361 private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required
3151931362 private Noexcept $noexcept; // json:noexcept Required
3152031363 private Nonatomic $nonatomic; // json:nonatomic Required
@@ -31535,6 +31378,8 @@ class Obj4 {
3153531378 private ObjectClass $object; // json:object Required
3153631379 private ObjectMapper $objectMapper; // json:ObjectMapper Required
3153731380 private Of $of; // json:of Required
31381+ private OffsetDateTime $offsetDateTime; // json:OffsetDateTime Required
31382+ private OffsetTime $offsetTime; // json:OffsetTime Required
3153831383 private Oneway $oneway; // json:oneway Required
3153931384 private Open $open; // json:open Required
3154031385 private Operator $operator; // json:operator Required
@@ -31575,13 +31420,11 @@ class Obj4 {
3157531420 private ReturnClass $return; // json:return Required
3157631421 private Right $right; // json:right Required
3157731422 private RuntimeType $runtimeType; // json:runtimeType Required
31578- private S $s; // json:s Required
31579- private Sbyte $sbyte; // json:sbyte Required
31580- private Sealed $sealed; // json:sealed Required
31581- private Sel $sel; // json:SEL Required
3158231423
3158331424 /**
3158431425 * @param int $dummy
31426+ * @param Nil $nil
31427+ * @param No $no
3158531428 * @param NoSuchMethod $noSuchMethod
3158631429 * @param Noexcept $noexcept
3158731430 * @param Nonatomic $nonatomic
@@ -31602,6 +31445,8 @@ class Obj4 {
3160231445 * @param ObjectClass $object
3160331446 * @param ObjectMapper $objectMapper
3160431447 * @param Of $of
31448+ * @param OffsetDateTime $offsetDateTime
31449+ * @param OffsetTime $offsetTime
3160531450 * @param Oneway $oneway
3160631451 * @param Open $open
3160731452 * @param Operator $operator
@@ -31642,13 +31487,11 @@ class Obj4 {
3164231487 * @param ReturnClass $return
3164331488 * @param Right $right
3164431489 * @param RuntimeType $runtimeType
31645- * @param S $s
31646- * @param Sbyte $sbyte
31647- * @param Sealed $sealed
31648- * @param Sel $sel
3164931490 */
31650- 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) {
31491+ public function __construct(int $dummy, Nil $nil, No $no, 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, OffsetDateTime $offsetDateTime, OffsetTime $offsetTime, 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) {
3165131492 $this->dummy = $dummy;
31493+ $this->nil = $nil;
31494+ $this->no = $no;
3165231495 $this->noSuchMethod = $noSuchMethod;
3165331496 $this->noexcept = $noexcept;
3165431497 $this->nonatomic = $nonatomic;
@@ -31669,6 +31512,8 @@ class Obj4 {
3166931512 $this->object = $object;
3167031513 $this->objectMapper = $objectMapper;
3167131514 $this->of = $of;
31515+ $this->offsetDateTime = $offsetDateTime;
31516+ $this->offsetTime = $offsetTime;
3167231517 $this->oneway = $oneway;
3167331518 $this->open = $open;
3167431519 $this->operator = $operator;
@@ -31709,10 +31554,6 @@ class Obj4 {
3170931554 $this->return = $return;
3171031555 $this->right = $right;
3171131556 $this->runtimeType = $runtimeType;
31712- $this->s = $s;
31713- $this->sbyte = $sbyte;
31714- $this->sealed = $sealed;
31715- $this->sel = $sel;
3171631557 }
3171731558
3171831559 /**
@@ -31765,145 +31606,241 @@ class Obj4 {
3176531606 /**
3176631607 * @param stdClass $value
3176731608 * @throws Exception
31768- * @return NoSuchMethod
31609+ * @return Nil
3176931610 */
31770- public static function fromNoSuchMethod(stdClass $value): NoSuchMethod {
31771- return NoSuchMethod::from($value); /*class*/
31611+ public static function fromNil(stdClass $value): Nil {
31612+ return Nil::from($value); /*class*/
3177231613 }
3177331614
3177431615 /**
3177531616 * @throws Exception
3177631617 * @return stdClass
3177731618 */
31778- public function toNoSuchMethod(): stdClass {
31779- if (Obj4::validateNoSuchMethod($this->noSuchMethod)) {
31780- return $this->noSuchMethod->to(); /*class*/
31619+ public function toNil(): stdClass {
31620+ if (Obj4::validateNil($this->nil)) {
31621+ return $this->nil->to(); /*class*/
3178131622 }
31782- throw new Exception('never get to this Obj4::noSuchMethod');
31623+ throw new Exception('never get to this Obj4::nil');
3178331624 }
3178431625
3178531626 /**
31786- * @param NoSuchMethod
31627+ * @param Nil
3178731628 * @return bool
3178831629 * @throws Exception
3178931630 */
31790- public static function validateNoSuchMethod(NoSuchMethod $value): bool {
31631+ public static function validateNil(Nil $value): bool {
3179131632 $value->validate();
3179231633 return true;
3179331634 }
3179431635
3179531636 /**
3179631637 * @throws Exception
31797- * @return NoSuchMethod
31638+ * @return Nil
3179831639 */
31799- public function getNoSuchMethod(): NoSuchMethod {
31800- if (Obj4::validateNoSuchMethod($this->noSuchMethod)) {
31801- return $this->noSuchMethod;
31640+ public function getNil(): Nil {
31641+ if (Obj4::validateNil($this->nil)) {
31642+ return $this->nil;
3180231643 }
31803- throw new Exception('never get to getNoSuchMethod Obj4::noSuchMethod');
31644+ throw new Exception('never get to getNil Obj4::nil');
3180431645 }
3180531646
3180631647 /**
31807- * @return NoSuchMethod
31648+ * @return Nil
3180831649 */
31809- public static function sampleNoSuchMethod(): NoSuchMethod {
31810- return NoSuchMethod::sample(); /*32:noSuchMethod*/
31650+ public static function sampleNil(): Nil {
31651+ return Nil::sample(); /*32:nil*/
3181131652 }
3181231653
3181331654 /**
3181431655 * @param stdClass $value
3181531656 * @throws Exception
31816- * @return Noexcept
31657+ * @return No
3181731658 */
31818- public static function fromNoexcept(stdClass $value): Noexcept {
31819- return Noexcept::from($value); /*class*/
31659+ public static function fromNo(stdClass $value): No {
31660+ return No::from($value); /*class*/
3182031661 }
3182131662
3182231663 /**
3182331664 * @throws Exception
3182431665 * @return stdClass
3182531666 */
31826- public function toNoexcept(): stdClass {
31827- if (Obj4::validateNoexcept($this->noexcept)) {
31828- return $this->noexcept->to(); /*class*/
31667+ public function toNo(): stdClass {
31668+ if (Obj4::validateNo($this->no)) {
31669+ return $this->no->to(); /*class*/
3182931670 }
31830- throw new Exception('never get to this Obj4::noexcept');
31671+ throw new Exception('never get to this Obj4::no');
3183131672 }
3183231673
3183331674 /**
31834- * @param Noexcept
31675+ * @param No
3183531676 * @return bool
3183631677 * @throws Exception
3183731678 */
31838- public static function validateNoexcept(Noexcept $value): bool {
31679+ public static function validateNo(No $value): bool {
3183931680 $value->validate();
3184031681 return true;
3184131682 }
3184231683
3184331684 /**
3184431685 * @throws Exception
31845- * @return Noexcept
31686+ * @return No
3184631687 */
31847- public function getNoexcept(): Noexcept {
31848- if (Obj4::validateNoexcept($this->noexcept)) {
31849- return $this->noexcept;
31688+ public function getNo(): No {
31689+ if (Obj4::validateNo($this->no)) {
31690+ return $this->no;
3185031691 }
31851- throw new Exception('never get to getNoexcept Obj4::noexcept');
31692+ throw new Exception('never get to getNo Obj4::no');
3185231693 }
3185331694
3185431695 /**
31855- * @return Noexcept
31696+ * @return No
3185631697 */
31857- public static function sampleNoexcept(): Noexcept {
31858- return Noexcept::sample(); /*33:noexcept*/
31698+ public static function sampleNo(): No {
31699+ return No::sample(); /*33:no*/
3185931700 }
3186031701
3186131702 /**
3186231703 * @param stdClass $value
3186331704 * @throws Exception
31864- * @return Nonatomic
31705+ * @return NoSuchMethod
3186531706 */
31866- public static function fromNonatomic(stdClass $value): Nonatomic {
31867- return Nonatomic::from($value); /*class*/
31707+ public static function fromNoSuchMethod(stdClass $value): NoSuchMethod {
31708+ return NoSuchMethod::from($value); /*class*/
3186831709 }
3186931710
3187031711 /**
3187131712 * @throws Exception
3187231713 * @return stdClass
3187331714 */
31874- public function toNonatomic(): stdClass {
31875- if (Obj4::validateNonatomic($this->nonatomic)) {
31876- return $this->nonatomic->to(); /*class*/
31715+ public function toNoSuchMethod(): stdClass {
31716+ if (Obj4::validateNoSuchMethod($this->noSuchMethod)) {
31717+ return $this->noSuchMethod->to(); /*class*/
3187731718 }
31878- throw new Exception('never get to this Obj4::nonatomic');
31719+ throw new Exception('never get to this Obj4::noSuchMethod');
3187931720 }
3188031721
3188131722 /**
31882- * @param Nonatomic
31723+ * @param NoSuchMethod
3188331724 * @return bool
3188431725 * @throws Exception
3188531726 */
31886- public static function validateNonatomic(Nonatomic $value): bool {
31727+ public static function validateNoSuchMethod(NoSuchMethod $value): bool {
3188731728 $value->validate();
3188831729 return true;
3188931730 }
3189031731
3189131732 /**
3189231733 * @throws Exception
31893- * @return Nonatomic
31734+ * @return NoSuchMethod
3189431735 */
31895- public function getNonatomic(): Nonatomic {
31896- if (Obj4::validateNonatomic($this->nonatomic)) {
31897- return $this->nonatomic;
31736+ public function getNoSuchMethod(): NoSuchMethod {
31737+ if (Obj4::validateNoSuchMethod($this->noSuchMethod)) {
31738+ return $this->noSuchMethod;
3189831739 }
31899- throw new Exception('never get to getNonatomic Obj4::nonatomic');
31740+ throw new Exception('never get to getNoSuchMethod Obj4::noSuchMethod');
3190031741 }
3190131742
3190231743 /**
31903- * @return Nonatomic
31744+ * @return NoSuchMethod
31745+ */
31746+ public static function sampleNoSuchMethod(): NoSuchMethod {
31747+ return NoSuchMethod::sample(); /*34:noSuchMethod*/
31748+ }
31749+
31750+ /**
31751+ * @param stdClass $value
31752+ * @throws Exception
31753+ * @return Noexcept
31754+ */
31755+ public static function fromNoexcept(stdClass $value): Noexcept {
31756+ return Noexcept::from($value); /*class*/
31757+ }
31758+
31759+ /**
31760+ * @throws Exception
31761+ * @return stdClass
31762+ */
31763+ public function toNoexcept(): stdClass {
31764+ if (Obj4::validateNoexcept($this->noexcept)) {
31765+ return $this->noexcept->to(); /*class*/
31766+ }
31767+ throw new Exception('never get to this Obj4::noexcept');
31768+ }
31769+
31770+ /**
31771+ * @param Noexcept
31772+ * @return bool
31773+ * @throws Exception
31774+ */
31775+ public static function validateNoexcept(Noexcept $value): bool {
31776+ $value->validate();
31777+ return true;
31778+ }
31779+
31780+ /**
31781+ * @throws Exception
31782+ * @return Noexcept
31783+ */
31784+ public function getNoexcept(): Noexcept {
31785+ if (Obj4::validateNoexcept($this->noexcept)) {
31786+ return $this->noexcept;
31787+ }
31788+ throw new Exception('never get to getNoexcept Obj4::noexcept');
31789+ }
31790+
31791+ /**
31792+ * @return Noexcept
31793+ */
31794+ public static function sampleNoexcept(): Noexcept {
31795+ return Noexcept::sample(); /*35:noexcept*/
31796+ }
31797+
31798+ /**
31799+ * @param stdClass $value
31800+ * @throws Exception
31801+ * @return Nonatomic
31802+ */
31803+ public static function fromNonatomic(stdClass $value): Nonatomic {
31804+ return Nonatomic::from($value); /*class*/
31805+ }
31806+
31807+ /**
31808+ * @throws Exception
31809+ * @return stdClass
31810+ */
31811+ public function toNonatomic(): stdClass {
31812+ if (Obj4::validateNonatomic($this->nonatomic)) {
31813+ return $this->nonatomic->to(); /*class*/
31814+ }
31815+ throw new Exception('never get to this Obj4::nonatomic');
31816+ }
31817+
31818+ /**
31819+ * @param Nonatomic
31820+ * @return bool
31821+ * @throws Exception
31822+ */
31823+ public static function validateNonatomic(Nonatomic $value): bool {
31824+ $value->validate();
31825+ return true;
31826+ }
31827+
31828+ /**
31829+ * @throws Exception
31830+ * @return Nonatomic
31831+ */
31832+ public function getNonatomic(): Nonatomic {
31833+ if (Obj4::validateNonatomic($this->nonatomic)) {
31834+ return $this->nonatomic;
31835+ }
31836+ throw new Exception('never get to getNonatomic Obj4::nonatomic');
31837+ }
31838+
31839+ /**
31840+ * @return Nonatomic
3190431841 */
3190531842 public static function sampleNonatomic(): Nonatomic {
31906- return Nonatomic::sample(); /*34:nonatomic*/
31843+ return Nonatomic::sample(); /*36:nonatomic*/
3190731844 }
3190831845
3190931846 /**
@@ -31951,7 +31888,7 @@ class Obj4 {
3195131888 * @return None
3195231889 */
3195331890 public static function sampleNone(): None {
31954- return None::sample(); /*35:none*/
31891+ return None::sample(); /*37:none*/
3195531892 }
3195631893
3195731894 /**
@@ -31999,7 +31936,7 @@ class Obj4 {
3199931936 * @return Nonlocal
3200031937 */
3200131938 public static function sampleNonlocal(): Nonlocal {
32002- return Nonlocal::sample(); /*36:nonlocal*/
31939+ return Nonlocal::sample(); /*38:nonlocal*/
3200331940 }
3200431941
3200531942 /**
@@ -32047,7 +31984,7 @@ class Obj4 {
3204731984 * @return Nonmutating
3204831985 */
3204931986 public static function sampleNonmutating(): Nonmutating {
32050- return Nonmutating::sample(); /*37:nonmutating*/
31987+ return Nonmutating::sample(); /*39:nonmutating*/
3205131988 }
3205231989
3205331990 /**
@@ -32095,7 +32032,7 @@ class Obj4 {
3209532032 * @return Not
3209632033 */
3209732034 public static function sampleNot(): Not {
32098- return Not::sample(); /*38:not*/
32035+ return Not::sample(); /*40:not*/
3209932036 }
3210032037
3210132038 /**
@@ -32143,7 +32080,7 @@ class Obj4 {
3214332080 * @return NotEq
3214432081 */
3214532082 public static function sampleNotEq(): NotEq {
32146- return NotEq::sample(); /*39:notEq*/
32083+ return NotEq::sample(); /*41:notEq*/
3214732084 }
3214832085
3214932086 /**
@@ -32191,7 +32128,7 @@ class Obj4 {
3219132128 * @return NSError
3219232129 */
3219332130 public static function sampleNSError(): NSError {
32194- return NSError::sample(); /*40:nsError*/
32131+ return NSError::sample(); /*42:nsError*/
3219532132 }
3219632133
3219732134 /**
@@ -32239,7 +32176,7 @@ class Obj4 {
3223932176 * @return NSObject
3224032177 */
3224132178 public static function sampleNSObject(): NSObject {
32242- return NSObject::sample(); /*41:nsObject*/
32179+ return NSObject::sample(); /*43:nsObject*/
3224332180 }
3224432181
3224532182 /**
@@ -32287,7 +32224,7 @@ class Obj4 {
3228732224 * @return NSString
3228832225 */
3228932226 public static function sampleNSString(): NSString {
32290- return NSString::sample(); /*42:nsString*/
32227+ return NSString::sample(); /*44:nsString*/
3229132228 }
3229232229
3229332230 /**
@@ -32335,7 +32272,7 @@ class Obj4 {
3233532272 * @return NULLClass
3233632273 */
3233732274 public static function sampleNull(): NULLClass {
32338- return NULLClass::sample(); /*43:null*/
32275+ return NULLClass::sample(); /*45:null*/
3233932276 }
3234032277
3234132278 /**
@@ -32383,7 +32320,7 @@ class Obj4 {
3238332320 * @return Nullptr
3238432321 */
3238532322 public static function sampleNullptr(): Nullptr {
32386- return Nullptr::sample(); /*44:nullptr*/
32323+ return Nullptr::sample(); /*46:nullptr*/
3238732324 }
3238832325
3238932326 /**
@@ -32431,7 +32368,7 @@ class Obj4 {
3243132368 * @return Number
3243232369 */
3243332370 public static function sampleNumber(): Number {
32434- return Number::sample(); /*45:number*/
32371+ return Number::sample(); /*47:number*/
3243532372 }
3243632373
3243732374 /**
@@ -32479,7 +32416,7 @@ class Obj4 {
3247932416 * @return NoneClass
3248032417 */
3248132418 public static function sampleObj4None(): NoneClass {
32482- return NoneClass::sample(); /*46:obj4None*/
32419+ return NoneClass::sample(); /*48:obj4None*/
3248332420 }
3248432421
3248532422 /**
@@ -32527,7 +32464,7 @@ class Obj4 {
3252732464 * @return Obj4Null
3252832465 */
3252932466 public static function sampleObj4Null(): Obj4Null {
32530- return Obj4Null::sample(); /*47:obj4Null*/
32467+ return Obj4Null::sample(); /*49:obj4Null*/
3253132468 }
3253232469
3253332470 /**
@@ -32575,7 +32512,7 @@ class Obj4 {
3257532512 * @return ProtocolClass
3257632513 */
3257732514 public static function sampleObj4Protocol(): ProtocolClass {
32578- return ProtocolClass::sample(); /*48:obj4Protocol*/
32515+ return ProtocolClass::sample(); /*50:obj4Protocol*/
3257932516 }
3258032517
3258132518 /**
@@ -32623,7 +32560,7 @@ class Obj4 {
3262332560 * @return ObjectClass
3262432561 */
3262532562 public static function sampleObject(): ObjectClass {
32626- return ObjectClass::sample(); /*49:object*/
32563+ return ObjectClass::sample(); /*51:object*/
3262732564 }
3262832565
3262932566 /**
@@ -32671,7 +32608,7 @@ class Obj4 {
3267132608 * @return ObjectMapper
3267232609 */
3267332610 public static function sampleObjectMapper(): ObjectMapper {
32674- return ObjectMapper::sample(); /*50:objectMapper*/
32611+ return ObjectMapper::sample(); /*52:objectMapper*/
3267532612 }
3267632613
3267732614 /**
@@ -32719,7 +32656,103 @@ class Obj4 {
3271932656 * @return Of
3272032657 */
3272132658 public static function sampleOf(): Of {
32722- return Of::sample(); /*51:of*/
32659+ return Of::sample(); /*53:of*/
32660+ }
32661+
32662+ /**
32663+ * @param stdClass $value
32664+ * @throws Exception
32665+ * @return OffsetDateTime
32666+ */
32667+ public static function fromOffsetDateTime(stdClass $value): OffsetDateTime {
32668+ return OffsetDateTime::from($value); /*class*/
32669+ }
32670+
32671+ /**
32672+ * @throws Exception
32673+ * @return stdClass
32674+ */
32675+ public function toOffsetDateTime(): stdClass {
32676+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
32677+ return $this->offsetDateTime->to(); /*class*/
32678+ }
32679+ throw new Exception('never get to this Obj4::offsetDateTime');
32680+ }
32681+
32682+ /**
32683+ * @param OffsetDateTime
32684+ * @return bool
32685+ * @throws Exception
32686+ */
32687+ public static function validateOffsetDateTime(OffsetDateTime $value): bool {
32688+ $value->validate();
32689+ return true;
32690+ }
32691+
32692+ /**
32693+ * @throws Exception
32694+ * @return OffsetDateTime
32695+ */
32696+ public function getOffsetDateTime(): OffsetDateTime {
32697+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
32698+ return $this->offsetDateTime;
32699+ }
32700+ throw new Exception('never get to getOffsetDateTime Obj4::offsetDateTime');
32701+ }
32702+
32703+ /**
32704+ * @return OffsetDateTime
32705+ */
32706+ public static function sampleOffsetDateTime(): OffsetDateTime {
32707+ return OffsetDateTime::sample(); /*54:offsetDateTime*/
32708+ }
32709+
32710+ /**
32711+ * @param stdClass $value
32712+ * @throws Exception
32713+ * @return OffsetTime
32714+ */
32715+ public static function fromOffsetTime(stdClass $value): OffsetTime {
32716+ return OffsetTime::from($value); /*class*/
32717+ }
32718+
32719+ /**
32720+ * @throws Exception
32721+ * @return stdClass
32722+ */
32723+ public function toOffsetTime(): stdClass {
32724+ if (Obj4::validateOffsetTime($this->offsetTime)) {
32725+ return $this->offsetTime->to(); /*class*/
32726+ }
32727+ throw new Exception('never get to this Obj4::offsetTime');
32728+ }
32729+
32730+ /**
32731+ * @param OffsetTime
32732+ * @return bool
32733+ * @throws Exception
32734+ */
32735+ public static function validateOffsetTime(OffsetTime $value): bool {
32736+ $value->validate();
32737+ return true;
32738+ }
32739+
32740+ /**
32741+ * @throws Exception
32742+ * @return OffsetTime
32743+ */
32744+ public function getOffsetTime(): OffsetTime {
32745+ if (Obj4::validateOffsetTime($this->offsetTime)) {
32746+ return $this->offsetTime;
32747+ }
32748+ throw new Exception('never get to getOffsetTime Obj4::offsetTime');
32749+ }
32750+
32751+ /**
32752+ * @return OffsetTime
32753+ */
32754+ public static function sampleOffsetTime(): OffsetTime {
32755+ return OffsetTime::sample(); /*55:offsetTime*/
3272332756 }
3272432757
3272532758 /**
@@ -32767,7 +32800,7 @@ class Obj4 {
3276732800 * @return Oneway
3276832801 */
3276932802 public static function sampleOneway(): Oneway {
32770- return Oneway::sample(); /*52:oneway*/
32803+ return Oneway::sample(); /*56:oneway*/
3277132804 }
3277232805
3277332806 /**
@@ -32815,7 +32848,7 @@ class Obj4 {
3281532848 * @return Open
3281632849 */
3281732850 public static function sampleOpen(): Open {
32818- return Open::sample(); /*53:open*/
32851+ return Open::sample(); /*57:open*/
3281932852 }
3282032853
3282132854 /**
@@ -32863,7 +32896,7 @@ class Obj4 {
3286332896 * @return Operator
3286432897 */
3286532898 public static function sampleOperator(): Operator {
32866- return Operator::sample(); /*54:operator*/
32899+ return Operator::sample(); /*58:operator*/
3286732900 }
3286832901
3286932902 /**
@@ -32911,7 +32944,7 @@ class Obj4 {
3291132944 * @return Optional
3291232945 */
3291332946 public static function sampleOptional(): Optional {
32914- return Optional::sample(); /*55:optional*/
32947+ return Optional::sample(); /*59:optional*/
3291532948 }
3291632949
3291732950 /**
@@ -32959,7 +32992,7 @@ class Obj4 {
3295932992 * @return OrClass
3296032993 */
3296132994 public static function sampleOr(): OrClass {
32962- return OrClass::sample(); /*56:or*/
32995+ return OrClass::sample(); /*60:or*/
3296332996 }
3296432997
3296532998 /**
@@ -33007,7 +33040,7 @@ class Obj4 {
3300733040 * @return OrEq
3300833041 */
3300933042 public static function sampleOrEq(): OrEq {
33010- return OrEq::sample(); /*57:orEq*/
33043+ return OrEq::sample(); /*61:orEq*/
3301133044 }
3301233045
3301333046 /**
@@ -33055,7 +33088,7 @@ class Obj4 {
3305533088 * @return Out
3305633089 */
3305733090 public static function sampleOut(): Out {
33058- return Out::sample(); /*58:out*/
33091+ return Out::sample(); /*62:out*/
3305933092 }
3306033093
3306133094 /**
@@ -33103,7 +33136,7 @@ class Obj4 {
3310333136 * @return OverrideClass
3310433137 */
3310533138 public static function sampleOverride(): OverrideClass {
33106- return OverrideClass::sample(); /*59:override*/
33139+ return OverrideClass::sample(); /*63:override*/
3310733140 }
3310833141
3310933142 /**
@@ -33151,7 +33184,7 @@ class Obj4 {
3315133184 * @return Package
3315233185 */
3315333186 public static function samplePackage(): Package {
33154- return Package::sample(); /*60:package*/
33187+ return Package::sample(); /*64:package*/
3315533188 }
3315633189
3315733190 /**
@@ -33199,7 +33232,7 @@ class Obj4 {
3319933232 * @return Params
3320033233 */
3320133234 public static function sampleParams(): Params {
33202- return Params::sample(); /*61:params*/
33235+ return Params::sample(); /*65:params*/
3320333236 }
3320433237
3320533238 /**
@@ -33247,7 +33280,7 @@ class Obj4 {
3324733280 * @return Pass
3324833281 */
3324933282 public static function samplePass(): Pass {
33250- return Pass::sample(); /*62:pass*/
33283+ return Pass::sample(); /*66:pass*/
3325133284 }
3325233285
3325333286 /**
@@ -33295,7 +33328,7 @@ class Obj4 {
3329533328 * @return Port
3329633329 */
3329733330 public static function samplePort(): Port {
33298- return Port::sample(); /*63:port*/
33331+ return Port::sample(); /*67:port*/
3329933332 }
3330033333
3330133334 /**
@@ -33343,7 +33376,7 @@ class Obj4 {
3334333376 * @return Postfix
3334433377 */
3334533378 public static function samplePostfix(): Postfix {
33346- return Postfix::sample(); /*64:postfix*/
33379+ return Postfix::sample(); /*68:postfix*/
3334733380 }
3334833381
3334933382 /**
@@ -33391,7 +33424,7 @@ class Obj4 {
3339133424 * @return Precedence
3339233425 */
3339333426 public static function samplePrecedence(): Precedence {
33394- return Precedence::sample(); /*65:precedence*/
33427+ return Precedence::sample(); /*69:precedence*/
3339533428 }
3339633429
3339733430 /**
@@ -33439,7 +33472,7 @@ class Obj4 {
3343933472 * @return Prefix
3344033473 */
3344133474 public static function samplePrefix(): Prefix {
33442- return Prefix::sample(); /*66:prefix*/
33475+ return Prefix::sample(); /*70:prefix*/
3344333476 }
3344433477
3344533478 /**
@@ -33487,7 +33520,7 @@ class Obj4 {
3348733520 * @return PrintClass
3348833521 */
3348933522 public static function samplePrint(): PrintClass {
33490- return PrintClass::sample(); /*67:print*/
33523+ return PrintClass::sample(); /*71:print*/
3349133524 }
3349233525
3349333526 /**
@@ -33535,7 +33568,7 @@ class Obj4 {
3353533568 * @return PrintMembers
3353633569 */
3353733570 public static function samplePrintMembers(): PrintMembers {
33538- return PrintMembers::sample(); /*68:printMembers*/
33571+ return PrintMembers::sample(); /*72:printMembers*/
3353933572 }
3354033573
3354133574 /**
@@ -33583,7 +33616,7 @@ class Obj4 {
3358333616 * @return Printf
3358433617 */
3358533618 public static function samplePrintf(): Printf {
33586- return Printf::sample(); /*69:printf*/
33619+ return Printf::sample(); /*73:printf*/
3358733620 }
3358833621
3358933622 /**
@@ -33631,7 +33664,7 @@ class Obj4 {
3363133664 * @return PrivateClass
3363233665 */
3363333666 public static function samplePrivate(): PrivateClass {
33634- return PrivateClass::sample(); /*70:private*/
33667+ return PrivateClass::sample(); /*74:private*/
3363533668 }
3363633669
3363733670 /**
@@ -33679,7 +33712,7 @@ class Obj4 {
3367933712 * @return ProtectedClass
3368033713 */
3368133714 public static function sampleProtected(): ProtectedClass {
33682- return ProtectedClass::sample(); /*71:protected*/
33715+ return ProtectedClass::sample(); /*75:protected*/
3368333716 }
3368433717
3368533718 /**
@@ -33727,7 +33760,7 @@ class Obj4 {
3372733760 * @return Protocol
3372833761 */
3372933762 public static function sampleProtocol(): Protocol {
33730- return Protocol::sample(); /*72:protocol*/
33763+ return Protocol::sample(); /*76:protocol*/
3373133764 }
3373233765
3373333766 /**
@@ -33775,7 +33808,7 @@ class Obj4 {
3377533808 * @return PublicClass
3377633809 */
3377733810 public static function samplePublic(): PublicClass {
33778- return PublicClass::sample(); /*73:public*/
33811+ return PublicClass::sample(); /*77:public*/
3377933812 }
3378033813
3378133814 /**
@@ -33823,7 +33856,7 @@ class Obj4 {
3382333856 * @return Quicktype
3382433857 */
3382533858 public static function sampleQuicktype(): Quicktype {
33826- return Quicktype::sample(); /*74:quicktype*/
33859+ return Quicktype::sample(); /*78:quicktype*/
3382733860 }
3382833861
3382933862 /**
@@ -33871,7 +33904,7 @@ class Obj4 {
3387133904 * @return Raise
3387233905 */
3387333906 public static function sampleRaise(): Raise {
33874- return Raise::sample(); /*75:raise*/
33907+ return Raise::sample(); /*79:raise*/
3387533908 }
3387633909
3387733910 /**
@@ -33919,7 +33952,7 @@ class Obj4 {
3391933952 * @return Range
3392033953 */
3392133954 public static function sampleRange(): Range {
33922- return Range::sample(); /*76:range*/
33955+ return Range::sample(); /*80:range*/
3392333956 }
3392433957
3392533958 /**
@@ -33967,7 +34000,7 @@ class Obj4 {
3396734000 * @return ReadonlyClass
3396834001 */
3396934002 public static function sampleReadonly(): ReadonlyClass {
33970- return ReadonlyClass::sample(); /*77:readonly*/
34003+ return ReadonlyClass::sample(); /*81:readonly*/
3397134004 }
3397234005
3397334006 /**
@@ -34015,7 +34048,7 @@ class Obj4 {
3401534048 * @return Ref
3401634049 */
3401734050 public static function sampleRef(): Ref {
34018- return Ref::sample(); /*78:ref*/
34051+ return Ref::sample(); /*82:ref*/
3401934052 }
3402034053
3402134054 /**
@@ -34063,7 +34096,7 @@ class Obj4 {
3406334096 * @return RegExp
3406434097 */
3406534098 public static function sampleRegExp(): RegExp {
34066- return RegExp::sample(); /*79:regExp*/
34099+ return RegExp::sample(); /*83:regExp*/
3406734100 }
3406834101
3406934102 /**
@@ -34111,7 +34144,7 @@ class Obj4 {
3411134144 * @return Register
3411234145 */
3411334146 public static function sampleRegister(): Register {
34114- return Register::sample(); /*80:register*/
34147+ return Register::sample(); /*84:register*/
3411534148 }
3411634149
3411734150 /**
@@ -34159,7 +34192,7 @@ class Obj4 {
3415934192 * @return ReinterpretCast
3416034193 */
3416134194 public static function sampleReinterpretCast(): ReinterpretCast {
34162- return ReinterpretCast::sample(); /*81:reinterpretCast*/
34195+ return ReinterpretCast::sample(); /*85:reinterpretCast*/
3416334196 }
3416434197
3416534198 /**
@@ -34207,7 +34240,7 @@ class Obj4 {
3420734240 * @return Repeat
3420834241 */
3420934242 public static function sampleRepeat(): Repeat {
34210- return Repeat::sample(); /*82:repeat*/
34243+ return Repeat::sample(); /*86:repeat*/
3421134244 }
3421234245
3421334246 /**
@@ -34255,7 +34288,7 @@ class Obj4 {
3425534288 * @return RequireClass
3425634289 */
3425734290 public static function sampleRequire(): RequireClass {
34258- return RequireClass::sample(); /*83:require*/
34291+ return RequireClass::sample(); /*87:require*/
3425934292 }
3426034293
3426134294 /**
@@ -34303,7 +34336,7 @@ class Obj4 {
3430334336 * @return Required
3430434337 */
3430534338 public static function sampleRequired(): Required {
34306- return Required::sample(); /*84:required*/
34339+ return Required::sample(); /*88:required*/
3430734340 }
3430834341
3430934342 /**
@@ -34351,7 +34384,7 @@ class Obj4 {
3435134384 * @return Requires
3435234385 */
3435334386 public static function sampleRequires(): Requires {
34354- return Requires::sample(); /*85:requires*/
34387+ return Requires::sample(); /*89:requires*/
3435534388 }
3435634389
3435734390 /**
@@ -34399,7 +34432,7 @@ class Obj4 {
3439934432 * @return Restrict
3440034433 */
3440134434 public static function sampleRestrict(): Restrict {
34402- return Restrict::sample(); /*86:restrict*/
34435+ return Restrict::sample(); /*90:restrict*/
3440334436 }
3440434437
3440534438 /**
@@ -34447,7 +34480,7 @@ class Obj4 {
3444734480 * @return Retain
3444834481 */
3444934482 public static function sampleRetain(): Retain {
34450- return Retain::sample(); /*87:retain*/
34483+ return Retain::sample(); /*91:retain*/
3445134484 }
3445234485
3445334486 /**
@@ -34495,7 +34528,7 @@ class Obj4 {
3449534528 * @return Rethrows
3449634529 */
3449734530 public static function sampleRethrows(): Rethrows {
34498- return Rethrows::sample(); /*88:rethrows*/
34531+ return Rethrows::sample(); /*92:rethrows*/
3449934532 }
3450034533
3450134534 /**
@@ -34543,7 +34576,7 @@ class Obj4 {
3454334576 * @return ReturnClass
3454434577 */
3454534578 public static function sampleReturn(): ReturnClass {
34546- return ReturnClass::sample(); /*89:return*/
34579+ return ReturnClass::sample(); /*93:return*/
3454734580 }
3454834581
3454934582 /**
@@ -34591,7 +34624,7 @@ class Obj4 {
3459134624 * @return Right
3459234625 */
3459334626 public static function sampleRight(): Right {
34594- return Right::sample(); /*90:right*/
34627+ return Right::sample(); /*94:right*/
3459534628 }
3459634629
3459734630 /**
@@ -34639,280 +34672,90 @@ class Obj4 {
3463934672 * @return RuntimeType
3464034673 */
3464134674 public static function sampleRuntimeType(): RuntimeType {
34642- return RuntimeType::sample(); /*91:runtimeType*/
34643- }
34644-
34645- /**
34646- * @param stdClass $value
34647- * @throws Exception
34648- * @return S
34649- */
34650- public static function fromS(stdClass $value): S {
34651- return S::from($value); /*class*/
34675+ return RuntimeType::sample(); /*95:runtimeType*/
3465234676 }
3465334677
3465434678 /**
3465534679 * @throws Exception
34656- * @return stdClass
34657- */
34658- public function toS(): stdClass {
34659- if (Obj4::validateS($this->s)) {
34660- return $this->s->to(); /*class*/
34661- }
34662- throw new Exception('never get to this Obj4::s');
34663- }
34664-
34665- /**
34666- * @param S
3466734680 * @return bool
34668- * @throws Exception
3466934681 */
34670- public static function validateS(S $value): bool {
34671- $value->validate();
34672- return true;
34682+ public function validate(): bool {
34683+ return Obj4::validateDummy($this->dummy)
34684+ || Obj4::validateNil($this->nil)
34685+ || Obj4::validateNo($this->no)
34686+ || Obj4::validateNoSuchMethod($this->noSuchMethod)
34687+ || Obj4::validateNoexcept($this->noexcept)
34688+ || Obj4::validateNonatomic($this->nonatomic)
34689+ || Obj4::validateNone($this->none)
34690+ || Obj4::validateNonlocal($this->nonlocal)
34691+ || Obj4::validateNonmutating($this->nonmutating)
34692+ || Obj4::validateNot($this->not)
34693+ || Obj4::validateNotEq($this->notEq)
34694+ || Obj4::validateNSError($this->nsError)
34695+ || Obj4::validateNSObject($this->nsObject)
34696+ || Obj4::validateNSString($this->nsString)
34697+ || Obj4::validateNull($this->null)
34698+ || Obj4::validateNullptr($this->nullptr)
34699+ || Obj4::validateNumber($this->number)
34700+ || Obj4::validateObj4None($this->obj4None)
34701+ || Obj4::validateObj4Null($this->obj4Null)
34702+ || Obj4::validateObj4Protocol($this->obj4Protocol)
34703+ || Obj4::validateObject($this->object)
34704+ || Obj4::validateObjectMapper($this->objectMapper)
34705+ || Obj4::validateOf($this->of)
34706+ || Obj4::validateOffsetDateTime($this->offsetDateTime)
34707+ || Obj4::validateOffsetTime($this->offsetTime)
34708+ || Obj4::validateOneway($this->oneway)
34709+ || Obj4::validateOpen($this->open)
34710+ || Obj4::validateOperator($this->operator)
34711+ || Obj4::validateOptional($this->optional)
34712+ || Obj4::validateOr($this->or)
34713+ || Obj4::validateOrEq($this->orEq)
34714+ || Obj4::validateOut($this->out)
34715+ || Obj4::validateOverride($this->override)
34716+ || Obj4::validatePackage($this->package)
34717+ || Obj4::validateParams($this->params)
34718+ || Obj4::validatePass($this->pass)
34719+ || Obj4::validatePort($this->port)
34720+ || Obj4::validatePostfix($this->postfix)
34721+ || Obj4::validatePrecedence($this->precedence)
34722+ || Obj4::validatePrefix($this->prefix)
34723+ || Obj4::validatePrint($this->print)
34724+ || Obj4::validatePrintMembers($this->printMembers)
34725+ || Obj4::validatePrintf($this->printf)
34726+ || Obj4::validatePrivate($this->private)
34727+ || Obj4::validateProtected($this->protected)
34728+ || Obj4::validateProtocol($this->protocol)
34729+ || Obj4::validatePublic($this->public)
34730+ || Obj4::validateQuicktype($this->quicktype)
34731+ || Obj4::validateRaise($this->raise)
34732+ || Obj4::validateRange($this->range)
34733+ || Obj4::validateReadonly($this->readonly)
34734+ || Obj4::validateRef($this->ref)
34735+ || Obj4::validateRegExp($this->regExp)
34736+ || Obj4::validateRegister($this->register)
34737+ || Obj4::validateReinterpretCast($this->reinterpretCast)
34738+ || Obj4::validateRepeat($this->repeat)
34739+ || Obj4::validateRequire($this->require)
34740+ || Obj4::validateRequired($this->required)
34741+ || Obj4::validateRequires($this->requires)
34742+ || Obj4::validateRestrict($this->restrict)
34743+ || Obj4::validateRetain($this->retain)
34744+ || Obj4::validateRethrows($this->rethrows)
34745+ || Obj4::validateReturn($this->return)
34746+ || Obj4::validateRight($this->right)
34747+ || Obj4::validateRuntimeType($this->runtimeType);
3467334748 }
3467434749
3467534750 /**
34676- * @throws Exception
34677- * @return S
34678- */
34679- public function getS(): S {
34680- if (Obj4::validateS($this->s)) {
34681- return $this->s;
34682- }
34683- throw new Exception('never get to getS Obj4::s');
34684- }
34685-
34686- /**
34687- * @return S
34688- */
34689- public static function sampleS(): S {
34690- return S::sample(); /*92:s*/
34691- }
34692-
34693- /**
34694- * @param stdClass $value
34695- * @throws Exception
34696- * @return Sbyte
34697- */
34698- public static function fromSbyte(stdClass $value): Sbyte {
34699- return Sbyte::from($value); /*class*/
34700- }
34701-
34702- /**
34703- * @throws Exception
34704- * @return stdClass
34705- */
34706- public function toSbyte(): stdClass {
34707- if (Obj4::validateSbyte($this->sbyte)) {
34708- return $this->sbyte->to(); /*class*/
34709- }
34710- throw new Exception('never get to this Obj4::sbyte');
34711- }
34712-
34713- /**
34714- * @param Sbyte
34715- * @return bool
34716- * @throws Exception
34717- */
34718- public static function validateSbyte(Sbyte $value): bool {
34719- $value->validate();
34720- return true;
34721- }
34722-
34723- /**
34724- * @throws Exception
34725- * @return Sbyte
34726- */
34727- public function getSbyte(): Sbyte {
34728- if (Obj4::validateSbyte($this->sbyte)) {
34729- return $this->sbyte;
34730- }
34731- throw new Exception('never get to getSbyte Obj4::sbyte');
34732- }
34733-
34734- /**
34735- * @return Sbyte
34736- */
34737- public static function sampleSbyte(): Sbyte {
34738- return Sbyte::sample(); /*93:sbyte*/
34739- }
34740-
34741- /**
34742- * @param stdClass $value
34743- * @throws Exception
34744- * @return Sealed
34745- */
34746- public static function fromSealed(stdClass $value): Sealed {
34747- return Sealed::from($value); /*class*/
34748- }
34749-
34750- /**
34751- * @throws Exception
34752- * @return stdClass
34753- */
34754- public function toSealed(): stdClass {
34755- if (Obj4::validateSealed($this->sealed)) {
34756- return $this->sealed->to(); /*class*/
34757- }
34758- throw new Exception('never get to this Obj4::sealed');
34759- }
34760-
34761- /**
34762- * @param Sealed
34763- * @return bool
34764- * @throws Exception
34765- */
34766- public static function validateSealed(Sealed $value): bool {
34767- $value->validate();
34768- return true;
34769- }
34770-
34771- /**
34772- * @throws Exception
34773- * @return Sealed
34774- */
34775- public function getSealed(): Sealed {
34776- if (Obj4::validateSealed($this->sealed)) {
34777- return $this->sealed;
34778- }
34779- throw new Exception('never get to getSealed Obj4::sealed');
34780- }
34781-
34782- /**
34783- * @return Sealed
34784- */
34785- public static function sampleSealed(): Sealed {
34786- return Sealed::sample(); /*94:sealed*/
34787- }
34788-
34789- /**
34790- * @param stdClass $value
34791- * @throws Exception
34792- * @return Sel
34793- */
34794- public static function fromSel(stdClass $value): Sel {
34795- return Sel::from($value); /*class*/
34796- }
34797-
34798- /**
34799- * @throws Exception
34800- * @return stdClass
34801- */
34802- public function toSel(): stdClass {
34803- if (Obj4::validateSel($this->sel)) {
34804- return $this->sel->to(); /*class*/
34805- }
34806- throw new Exception('never get to this Obj4::sel');
34807- }
34808-
34809- /**
34810- * @param Sel
34811- * @return bool
34812- * @throws Exception
34813- */
34814- public static function validateSel(Sel $value): bool {
34815- $value->validate();
34816- return true;
34817- }
34818-
34819- /**
34820- * @throws Exception
34821- * @return Sel
34822- */
34823- public function getSel(): Sel {
34824- if (Obj4::validateSel($this->sel)) {
34825- return $this->sel;
34826- }
34827- throw new Exception('never get to getSel Obj4::sel');
34828- }
34829-
34830- /**
34831- * @return Sel
34832- */
34833- public static function sampleSel(): Sel {
34834- return Sel::sample(); /*95:sel*/
34835- }
34836-
34837- /**
34838- * @throws Exception
34839- * @return bool
34840- */
34841- public function validate(): bool {
34842- return Obj4::validateDummy($this->dummy)
34843- || Obj4::validateNoSuchMethod($this->noSuchMethod)
34844- || Obj4::validateNoexcept($this->noexcept)
34845- || Obj4::validateNonatomic($this->nonatomic)
34846- || Obj4::validateNone($this->none)
34847- || Obj4::validateNonlocal($this->nonlocal)
34848- || Obj4::validateNonmutating($this->nonmutating)
34849- || Obj4::validateNot($this->not)
34850- || Obj4::validateNotEq($this->notEq)
34851- || Obj4::validateNSError($this->nsError)
34852- || Obj4::validateNSObject($this->nsObject)
34853- || Obj4::validateNSString($this->nsString)
34854- || Obj4::validateNull($this->null)
34855- || Obj4::validateNullptr($this->nullptr)
34856- || Obj4::validateNumber($this->number)
34857- || Obj4::validateObj4None($this->obj4None)
34858- || Obj4::validateObj4Null($this->obj4Null)
34859- || Obj4::validateObj4Protocol($this->obj4Protocol)
34860- || Obj4::validateObject($this->object)
34861- || Obj4::validateObjectMapper($this->objectMapper)
34862- || Obj4::validateOf($this->of)
34863- || Obj4::validateOneway($this->oneway)
34864- || Obj4::validateOpen($this->open)
34865- || Obj4::validateOperator($this->operator)
34866- || Obj4::validateOptional($this->optional)
34867- || Obj4::validateOr($this->or)
34868- || Obj4::validateOrEq($this->orEq)
34869- || Obj4::validateOut($this->out)
34870- || Obj4::validateOverride($this->override)
34871- || Obj4::validatePackage($this->package)
34872- || Obj4::validateParams($this->params)
34873- || Obj4::validatePass($this->pass)
34874- || Obj4::validatePort($this->port)
34875- || Obj4::validatePostfix($this->postfix)
34876- || Obj4::validatePrecedence($this->precedence)
34877- || Obj4::validatePrefix($this->prefix)
34878- || Obj4::validatePrint($this->print)
34879- || Obj4::validatePrintMembers($this->printMembers)
34880- || Obj4::validatePrintf($this->printf)
34881- || Obj4::validatePrivate($this->private)
34882- || Obj4::validateProtected($this->protected)
34883- || Obj4::validateProtocol($this->protocol)
34884- || Obj4::validatePublic($this->public)
34885- || Obj4::validateQuicktype($this->quicktype)
34886- || Obj4::validateRaise($this->raise)
34887- || Obj4::validateRange($this->range)
34888- || Obj4::validateReadonly($this->readonly)
34889- || Obj4::validateRef($this->ref)
34890- || Obj4::validateRegExp($this->regExp)
34891- || Obj4::validateRegister($this->register)
34892- || Obj4::validateReinterpretCast($this->reinterpretCast)
34893- || Obj4::validateRepeat($this->repeat)
34894- || Obj4::validateRequire($this->require)
34895- || Obj4::validateRequired($this->required)
34896- || Obj4::validateRequires($this->requires)
34897- || Obj4::validateRestrict($this->restrict)
34898- || Obj4::validateRetain($this->retain)
34899- || Obj4::validateRethrows($this->rethrows)
34900- || Obj4::validateReturn($this->return)
34901- || Obj4::validateRight($this->right)
34902- || Obj4::validateRuntimeType($this->runtimeType)
34903- || Obj4::validateS($this->s)
34904- || Obj4::validateSbyte($this->sbyte)
34905- || Obj4::validateSealed($this->sealed)
34906- || Obj4::validateSel($this->sel);
34907- }
34908-
34909- /**
34910- * @return stdClass
34751+ * @return stdClass
3491134752 * @throws Exception
3491234753 */
3491334754 public function to(): stdClass {
3491434755 $out = new stdClass();
3491534756 $out->{'dummy'} = $this->toDummy();
34757+ $out->{'nil'} = $this->toNil();
34758+ $out->{'NO'} = $this->toNo();
3491634759 $out->{'noSuchMethod'} = $this->toNoSuchMethod();
3491734760 $out->{'noexcept'} = $this->toNoexcept();
3491834761 $out->{'nonatomic'} = $this->toNonatomic();
@@ -34933,6 +34776,8 @@ class Obj4 {
3493334776 $out->{'object'} = $this->toObject();
3493434777 $out->{'ObjectMapper'} = $this->toObjectMapper();
3493534778 $out->{'of'} = $this->toOf();
34779+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
34780+ $out->{'OffsetTime'} = $this->toOffsetTime();
3493634781 $out->{'oneway'} = $this->toOneway();
3493734782 $out->{'open'} = $this->toOpen();
3493834783 $out->{'operator'} = $this->toOperator();
@@ -34973,10 +34818,6 @@ class Obj4 {
3497334818 $out->{'return'} = $this->toReturn();
3497434819 $out->{'right'} = $this->toRight();
3497534820 $out->{'runtimeType'} = $this->toRuntimeType();
34976- $out->{'s'} = $this->toS();
34977- $out->{'sbyte'} = $this->toSbyte();
34978- $out->{'sealed'} = $this->toSealed();
34979- $out->{'SEL'} = $this->toSel();
3498034821 return $out;
3498134822 }
3498234823
@@ -34989,6 +34830,12 @@ class Obj4 {
3498934830 if (!property_exists($obj, 'dummy')) {
3499034831 throw new Exception("Missing required property");
3499134832 }
34833+ if (!property_exists($obj, 'nil')) {
34834+ throw new Exception("Missing required property");
34835+ }
34836+ if (!property_exists($obj, 'NO')) {
34837+ throw new Exception("Missing required property");
34838+ }
3499234839 if (!property_exists($obj, 'noSuchMethod')) {
3499334840 throw new Exception("Missing required property");
3499434841 }
@@ -35049,6 +34896,12 @@ class Obj4 {
3504934896 if (!property_exists($obj, 'of')) {
3505034897 throw new Exception("Missing required property");
3505134898 }
34899+ if (!property_exists($obj, 'OffsetDateTime')) {
34900+ throw new Exception("Missing required property");
34901+ }
34902+ if (!property_exists($obj, 'OffsetTime')) {
34903+ throw new Exception("Missing required property");
34904+ }
3505234905 if (!property_exists($obj, 'oneway')) {
3505334906 throw new Exception("Missing required property");
3505434907 }
@@ -35169,20 +35022,10 @@ class Obj4 {
3516935022 if (!property_exists($obj, 'runtimeType')) {
3517035023 throw new Exception("Missing required property");
3517135024 }
35172- if (!property_exists($obj, 's')) {
35173- throw new Exception("Missing required property");
35174- }
35175- if (!property_exists($obj, 'sbyte')) {
35176- throw new Exception("Missing required property");
35177- }
35178- if (!property_exists($obj, 'sealed')) {
35179- throw new Exception("Missing required property");
35180- }
35181- if (!property_exists($obj, 'SEL')) {
35182- throw new Exception("Missing required property");
35183- }
3518435025 return new Obj4(
3518535026 Obj4::fromDummy($obj->{'dummy'})
35027+ ,Obj4::fromNil($obj->{'nil'})
35028+ ,Obj4::fromNo($obj->{'NO'})
3518635029 ,Obj4::fromNoSuchMethod($obj->{'noSuchMethod'})
3518735030 ,Obj4::fromNoexcept($obj->{'noexcept'})
3518835031 ,Obj4::fromNonatomic($obj->{'nonatomic'})
@@ -35203,6 +35046,8 @@ class Obj4 {
3520335046 ,Obj4::fromObject($obj->{'object'})
3520435047 ,Obj4::fromObjectMapper($obj->{'ObjectMapper'})
3520535048 ,Obj4::fromOf($obj->{'of'})
35049+ ,Obj4::fromOffsetDateTime($obj->{'OffsetDateTime'})
35050+ ,Obj4::fromOffsetTime($obj->{'OffsetTime'})
3520635051 ,Obj4::fromOneway($obj->{'oneway'})
3520735052 ,Obj4::fromOpen($obj->{'open'})
3520835053 ,Obj4::fromOperator($obj->{'operator'})
@@ -35243,10 +35088,6 @@ class Obj4 {
3524335088 ,Obj4::fromReturn($obj->{'return'})
3524435089 ,Obj4::fromRight($obj->{'right'})
3524535090 ,Obj4::fromRuntimeType($obj->{'runtimeType'})
35246- ,Obj4::fromS($obj->{'s'})
35247- ,Obj4::fromSbyte($obj->{'sbyte'})
35248- ,Obj4::fromSealed($obj->{'sealed'})
35249- ,Obj4::fromSel($obj->{'SEL'})
3525035091 );
3525135092 }
3525235093
@@ -35256,6 +35097,8 @@ class Obj4 {
3525635097 public static function sample(): Obj4 {
3525735098 return new Obj4(
3525835099 Obj4::sampleDummy()
35100+ ,Obj4::sampleNil()
35101+ ,Obj4::sampleNo()
3525935102 ,Obj4::sampleNoSuchMethod()
3526035103 ,Obj4::sampleNoexcept()
3526135104 ,Obj4::sampleNonatomic()
@@ -35276,6 +35119,8 @@ class Obj4 {
3527635119 ,Obj4::sampleObject()
3527735120 ,Obj4::sampleObjectMapper()
3527835121 ,Obj4::sampleOf()
35122+ ,Obj4::sampleOffsetDateTime()
35123+ ,Obj4::sampleOffsetTime()
3527935124 ,Obj4::sampleOneway()
3528035125 ,Obj4::sampleOpen()
3528135126 ,Obj4::sampleOperator()
@@ -35316,24 +35161,20 @@ class Obj4 {
3531635161 ,Obj4::sampleReturn()
3531735162 ,Obj4::sampleRight()
3531835163 ,Obj4::sampleRuntimeType()
35319- ,Obj4::sampleS()
35320- ,Obj4::sampleSbyte()
35321- ,Obj4::sampleSealed()
35322- ,Obj4::sampleSel()
3532335164 );
3532435165 }
3532535166 }
3532635167
35327-// This is an autogenerated file:NoSuchMethod
35168+// This is an autogenerated file:Nil
3532835169
35329-class NoSuchMethod {
35330- private int $noSuchMethod; // json:noSuchMethod Required
35170+class Nil {
35171+ private int $nil; // json:nil Required
3533135172
3533235173 /**
35333- * @param int $noSuchMethod
35174+ * @param int $nil
3533435175 */
35335- public function __construct(int $noSuchMethod) {
35336- $this->noSuchMethod = $noSuchMethod;
35176+ public function __construct(int $nil) {
35177+ $this->nil = $nil;
3533735178 }
3533835179
3533935180 /**
@@ -35341,7 +35182,7 @@ class NoSuchMethod {
3534135182 * @throws Exception
3534235183 * @return int
3534335184 */
35344- public static function fromNoSuchMethod(int $value): int {
35185+ public static function fromNil(int $value): int {
3534535186 return $value; /*int*/
3534635187 }
3534735188
@@ -35349,11 +35190,11 @@ class NoSuchMethod {
3534935190 * @throws Exception
3535035191 * @return int
3535135192 */
35352- public function toNoSuchMethod(): int {
35353- if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
35354- return $this->noSuchMethod; /*int*/
35193+ public function toNil(): int {
35194+ if (Nil::validateNil($this->nil)) {
35195+ return $this->nil; /*int*/
3535535196 }
35356- throw new Exception('never get to this NoSuchMethod::noSuchMethod');
35197+ throw new Exception('never get to this Nil::nil');
3535735198 }
3535835199
3535935200 /**
@@ -35361,7 +35202,7 @@ class NoSuchMethod {
3536135202 * @return bool
3536235203 * @throws Exception
3536335204 */
35364- public static function validateNoSuchMethod(int $value): bool {
35205+ public static function validateNil(int $value): bool {
3536535206 return true;
3536635207 }
3536735208
@@ -35369,11 +35210,213 @@ class NoSuchMethod {
3536935210 * @throws Exception
3537035211 * @return int
3537135212 */
35372- public function getNoSuchMethod(): int {
35373- if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
35374- return $this->noSuchMethod;
35213+ public function getNil(): int {
35214+ if (Nil::validateNil($this->nil)) {
35215+ return $this->nil;
3537535216 }
35376- throw new Exception('never get to getNoSuchMethod NoSuchMethod::noSuchMethod');
35217+ throw new Exception('never get to getNil Nil::nil');
35218+ }
35219+
35220+ /**
35221+ * @return int
35222+ */
35223+ public static function sampleNil(): int {
35224+ return 31; /*31:nil*/
35225+ }
35226+
35227+ /**
35228+ * @throws Exception
35229+ * @return bool
35230+ */
35231+ public function validate(): bool {
35232+ return Nil::validateNil($this->nil);
35233+ }
35234+
35235+ /**
35236+ * @return stdClass
35237+ * @throws Exception
35238+ */
35239+ public function to(): stdClass {
35240+ $out = new stdClass();
35241+ $out->{'nil'} = $this->toNil();
35242+ return $out;
35243+ }
35244+
35245+ /**
35246+ * @param stdClass $obj
35247+ * @return Nil
35248+ * @throws Exception
35249+ */
35250+ public static function from(stdClass $obj): Nil {
35251+ if (!property_exists($obj, 'nil')) {
35252+ throw new Exception("Missing required property");
35253+ }
35254+ return new Nil(
35255+ Nil::fromNil($obj->{'nil'})
35256+ );
35257+ }
35258+
35259+ /**
35260+ * @return Nil
35261+ */
35262+ public static function sample(): Nil {
35263+ return new Nil(
35264+ Nil::sampleNil()
35265+ );
35266+ }
35267+}
35268+
35269+// This is an autogenerated file:No
35270+
35271+class No {
35272+ private int $no; // json:NO Required
35273+
35274+ /**
35275+ * @param int $no
35276+ */
35277+ public function __construct(int $no) {
35278+ $this->no = $no;
35279+ }
35280+
35281+ /**
35282+ * @param int $value
35283+ * @throws Exception
35284+ * @return int
35285+ */
35286+ public static function fromNo(int $value): int {
35287+ return $value; /*int*/
35288+ }
35289+
35290+ /**
35291+ * @throws Exception
35292+ * @return int
35293+ */
35294+ public function toNo(): int {
35295+ if (No::validateNo($this->no)) {
35296+ return $this->no; /*int*/
35297+ }
35298+ throw new Exception('never get to this No::no');
35299+ }
35300+
35301+ /**
35302+ * @param int
35303+ * @return bool
35304+ * @throws Exception
35305+ */
35306+ public static function validateNo(int $value): bool {
35307+ return true;
35308+ }
35309+
35310+ /**
35311+ * @throws Exception
35312+ * @return int
35313+ */
35314+ public function getNo(): int {
35315+ if (No::validateNo($this->no)) {
35316+ return $this->no;
35317+ }
35318+ throw new Exception('never get to getNo No::no');
35319+ }
35320+
35321+ /**
35322+ * @return int
35323+ */
35324+ public static function sampleNo(): int {
35325+ return 31; /*31:no*/
35326+ }
35327+
35328+ /**
35329+ * @throws Exception
35330+ * @return bool
35331+ */
35332+ public function validate(): bool {
35333+ return No::validateNo($this->no);
35334+ }
35335+
35336+ /**
35337+ * @return stdClass
35338+ * @throws Exception
35339+ */
35340+ public function to(): stdClass {
35341+ $out = new stdClass();
35342+ $out->{'NO'} = $this->toNo();
35343+ return $out;
35344+ }
35345+
35346+ /**
35347+ * @param stdClass $obj
35348+ * @return No
35349+ * @throws Exception
35350+ */
35351+ public static function from(stdClass $obj): No {
35352+ if (!property_exists($obj, 'NO')) {
35353+ throw new Exception("Missing required property");
35354+ }
35355+ return new No(
35356+ No::fromNo($obj->{'NO'})
35357+ );
35358+ }
35359+
35360+ /**
35361+ * @return No
35362+ */
35363+ public static function sample(): No {
35364+ return new No(
35365+ No::sampleNo()
35366+ );
35367+ }
35368+}
35369+
35370+// This is an autogenerated file:NoSuchMethod
35371+
35372+class NoSuchMethod {
35373+ private int $noSuchMethod; // json:noSuchMethod Required
35374+
35375+ /**
35376+ * @param int $noSuchMethod
35377+ */
35378+ public function __construct(int $noSuchMethod) {
35379+ $this->noSuchMethod = $noSuchMethod;
35380+ }
35381+
35382+ /**
35383+ * @param int $value
35384+ * @throws Exception
35385+ * @return int
35386+ */
35387+ public static function fromNoSuchMethod(int $value): int {
35388+ return $value; /*int*/
35389+ }
35390+
35391+ /**
35392+ * @throws Exception
35393+ * @return int
35394+ */
35395+ public function toNoSuchMethod(): int {
35396+ if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
35397+ return $this->noSuchMethod; /*int*/
35398+ }
35399+ throw new Exception('never get to this NoSuchMethod::noSuchMethod');
35400+ }
35401+
35402+ /**
35403+ * @param int
35404+ * @return bool
35405+ * @throws Exception
35406+ */
35407+ public static function validateNoSuchMethod(int $value): bool {
35408+ return true;
35409+ }
35410+
35411+ /**
35412+ * @throws Exception
35413+ * @return int
35414+ */
35415+ public function getNoSuchMethod(): int {
35416+ if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
35417+ return $this->noSuchMethod;
35418+ }
35419+ throw new Exception('never get to getNoSuchMethod NoSuchMethod::noSuchMethod');
3537735420 }
3537835421
3537935422 /**
@@ -37344,16 +37387,16 @@ class Of {
3734437387 }
3734537388 }
3734637389
37347-// This is an autogenerated file:Oneway
37390+// This is an autogenerated file:OffsetDateTime
3734837391
37349-class Oneway {
37350- private int $oneway; // json:oneway Required
37392+class OffsetDateTime {
37393+ private int $offsetDateTime; // json:OffsetDateTime Required
3735137394
3735237395 /**
37353- * @param int $oneway
37396+ * @param int $offsetDateTime
3735437397 */
37355- public function __construct(int $oneway) {
37356- $this->oneway = $oneway;
37398+ public function __construct(int $offsetDateTime) {
37399+ $this->offsetDateTime = $offsetDateTime;
3735737400 }
3735837401
3735937402 /**
@@ -37361,7 +37404,7 @@ class Oneway {
3736137404 * @throws Exception
3736237405 * @return int
3736337406 */
37364- public static function fromOneway(int $value): int {
37407+ public static function fromOffsetDateTime(int $value): int {
3736537408 return $value; /*int*/
3736637409 }
3736737410
@@ -37369,11 +37412,11 @@ class Oneway {
3736937412 * @throws Exception
3737037413 * @return int
3737137414 */
37372- public function toOneway(): int {
37373- if (Oneway::validateOneway($this->oneway)) {
37374- return $this->oneway; /*int*/
37415+ public function toOffsetDateTime(): int {
37416+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
37417+ return $this->offsetDateTime; /*int*/
3737537418 }
37376- throw new Exception('never get to this Oneway::oneway');
37419+ throw new Exception('never get to this OffsetDateTime::offsetDateTime');
3737737420 }
3737837421
3737937422 /**
@@ -37381,7 +37424,7 @@ class Oneway {
3738137424 * @return bool
3738237425 * @throws Exception
3738337426 */
37384- public static function validateOneway(int $value): bool {
37427+ public static function validateOffsetDateTime(int $value): bool {
3738537428 return true;
3738637429 }
3738737430
@@ -37389,18 +37432,18 @@ class Oneway {
3738937432 * @throws Exception
3739037433 * @return int
3739137434 */
37392- public function getOneway(): int {
37393- if (Oneway::validateOneway($this->oneway)) {
37394- return $this->oneway;
37435+ public function getOffsetDateTime(): int {
37436+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
37437+ return $this->offsetDateTime;
3739537438 }
37396- throw new Exception('never get to getOneway Oneway::oneway');
37439+ throw new Exception('never get to getOffsetDateTime OffsetDateTime::offsetDateTime');
3739737440 }
3739837441
3739937442 /**
3740037443 * @return int
3740137444 */
37402- public static function sampleOneway(): int {
37403- return 31; /*31:oneway*/
37445+ public static function sampleOffsetDateTime(): int {
37446+ return 31; /*31:offsetDateTime*/
3740437447 }
3740537448
3740637449 /**
@@ -37408,7 +37451,7 @@ class Oneway {
3740837451 * @return bool
3740937452 */
3741037453 public function validate(): bool {
37411- return Oneway::validateOneway($this->oneway);
37454+ return OffsetDateTime::validateOffsetDateTime($this->offsetDateTime);
3741237455 }
3741337456
3741437457 /**
@@ -37417,44 +37460,44 @@ class Oneway {
3741737460 */
3741837461 public function to(): stdClass {
3741937462 $out = new stdClass();
37420- $out->{'oneway'} = $this->toOneway();
37463+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
3742137464 return $out;
3742237465 }
3742337466
3742437467 /**
3742537468 * @param stdClass $obj
37426- * @return Oneway
37469+ * @return OffsetDateTime
3742737470 * @throws Exception
3742837471 */
37429- public static function from(stdClass $obj): Oneway {
37430- if (!property_exists($obj, 'oneway')) {
37472+ public static function from(stdClass $obj): OffsetDateTime {
37473+ if (!property_exists($obj, 'OffsetDateTime')) {
3743137474 throw new Exception("Missing required property");
3743237475 }
37433- return new Oneway(
37434- Oneway::fromOneway($obj->{'oneway'})
37476+ return new OffsetDateTime(
37477+ OffsetDateTime::fromOffsetDateTime($obj->{'OffsetDateTime'})
3743537478 );
3743637479 }
3743737480
3743837481 /**
37439- * @return Oneway
37482+ * @return OffsetDateTime
3744037483 */
37441- public static function sample(): Oneway {
37442- return new Oneway(
37443- Oneway::sampleOneway()
37484+ public static function sample(): OffsetDateTime {
37485+ return new OffsetDateTime(
37486+ OffsetDateTime::sampleOffsetDateTime()
3744437487 );
3744537488 }
3744637489 }
3744737490
37448-// This is an autogenerated file:Open
37491+// This is an autogenerated file:OffsetTime
3744937492
37450-class Open {
37451- private int $open; // json:open Required
37493+class OffsetTime {
37494+ private int $offsetTime; // json:OffsetTime Required
3745237495
3745337496 /**
37454- * @param int $open
37497+ * @param int $offsetTime
3745537498 */
37456- public function __construct(int $open) {
37457- $this->open = $open;
37499+ public function __construct(int $offsetTime) {
37500+ $this->offsetTime = $offsetTime;
3745837501 }
3745937502
3746037503 /**
@@ -37462,7 +37505,7 @@ class Open {
3746237505 * @throws Exception
3746337506 * @return int
3746437507 */
37465- public static function fromOpen(int $value): int {
37508+ public static function fromOffsetTime(int $value): int {
3746637509 return $value; /*int*/
3746737510 }
3746837511
@@ -37470,11 +37513,11 @@ class Open {
3747037513 * @throws Exception
3747137514 * @return int
3747237515 */
37473- public function toOpen(): int {
37474- if (Open::validateOpen($this->open)) {
37475- return $this->open; /*int*/
37516+ public function toOffsetTime(): int {
37517+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
37518+ return $this->offsetTime; /*int*/
3747637519 }
37477- throw new Exception('never get to this Open::open');
37520+ throw new Exception('never get to this OffsetTime::offsetTime');
3747837521 }
3747937522
3748037523 /**
@@ -37482,7 +37525,7 @@ class Open {
3748237525 * @return bool
3748337526 * @throws Exception
3748437527 */
37485- public static function validateOpen(int $value): bool {
37528+ public static function validateOffsetTime(int $value): bool {
3748637529 return true;
3748737530 }
3748837531
@@ -37490,18 +37533,18 @@ class Open {
3749037533 * @throws Exception
3749137534 * @return int
3749237535 */
37493- public function getOpen(): int {
37494- if (Open::validateOpen($this->open)) {
37495- return $this->open;
37536+ public function getOffsetTime(): int {
37537+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
37538+ return $this->offsetTime;
3749637539 }
37497- throw new Exception('never get to getOpen Open::open');
37540+ throw new Exception('never get to getOffsetTime OffsetTime::offsetTime');
3749837541 }
3749937542
3750037543 /**
3750137544 * @return int
3750237545 */
37503- public static function sampleOpen(): int {
37504- return 31; /*31:open*/
37546+ public static function sampleOffsetTime(): int {
37547+ return 31; /*31:offsetTime*/
3750537548 }
3750637549
3750737550 /**
@@ -37509,7 +37552,7 @@ class Open {
3750937552 * @return bool
3751037553 */
3751137554 public function validate(): bool {
37512- return Open::validateOpen($this->open);
37555+ return OffsetTime::validateOffsetTime($this->offsetTime);
3751337556 }
3751437557
3751537558 /**
@@ -37518,20 +37561,222 @@ class Open {
3751837561 */
3751937562 public function to(): stdClass {
3752037563 $out = new stdClass();
37521- $out->{'open'} = $this->toOpen();
37564+ $out->{'OffsetTime'} = $this->toOffsetTime();
3752237565 return $out;
3752337566 }
3752437567
3752537568 /**
3752637569 * @param stdClass $obj
37527- * @return Open
37570+ * @return OffsetTime
3752837571 * @throws Exception
3752937572 */
37530- public static function from(stdClass $obj): Open {
37531- if (!property_exists($obj, 'open')) {
37573+ public static function from(stdClass $obj): OffsetTime {
37574+ if (!property_exists($obj, 'OffsetTime')) {
3753237575 throw new Exception("Missing required property");
3753337576 }
37534- return new Open(
37577+ return new OffsetTime(
37578+ OffsetTime::fromOffsetTime($obj->{'OffsetTime'})
37579+ );
37580+ }
37581+
37582+ /**
37583+ * @return OffsetTime
37584+ */
37585+ public static function sample(): OffsetTime {
37586+ return new OffsetTime(
37587+ OffsetTime::sampleOffsetTime()
37588+ );
37589+ }
37590+}
37591+
37592+// This is an autogenerated file:Oneway
37593+
37594+class Oneway {
37595+ private int $oneway; // json:oneway Required
37596+
37597+ /**
37598+ * @param int $oneway
37599+ */
37600+ public function __construct(int $oneway) {
37601+ $this->oneway = $oneway;
37602+ }
37603+
37604+ /**
37605+ * @param int $value
37606+ * @throws Exception
37607+ * @return int
37608+ */
37609+ public static function fromOneway(int $value): int {
37610+ return $value; /*int*/
37611+ }
37612+
37613+ /**
37614+ * @throws Exception
37615+ * @return int
37616+ */
37617+ public function toOneway(): int {
37618+ if (Oneway::validateOneway($this->oneway)) {
37619+ return $this->oneway; /*int*/
37620+ }
37621+ throw new Exception('never get to this Oneway::oneway');
37622+ }
37623+
37624+ /**
37625+ * @param int
37626+ * @return bool
37627+ * @throws Exception
37628+ */
37629+ public static function validateOneway(int $value): bool {
37630+ return true;
37631+ }
37632+
37633+ /**
37634+ * @throws Exception
37635+ * @return int
37636+ */
37637+ public function getOneway(): int {
37638+ if (Oneway::validateOneway($this->oneway)) {
37639+ return $this->oneway;
37640+ }
37641+ throw new Exception('never get to getOneway Oneway::oneway');
37642+ }
37643+
37644+ /**
37645+ * @return int
37646+ */
37647+ public static function sampleOneway(): int {
37648+ return 31; /*31:oneway*/
37649+ }
37650+
37651+ /**
37652+ * @throws Exception
37653+ * @return bool
37654+ */
37655+ public function validate(): bool {
37656+ return Oneway::validateOneway($this->oneway);
37657+ }
37658+
37659+ /**
37660+ * @return stdClass
37661+ * @throws Exception
37662+ */
37663+ public function to(): stdClass {
37664+ $out = new stdClass();
37665+ $out->{'oneway'} = $this->toOneway();
37666+ return $out;
37667+ }
37668+
37669+ /**
37670+ * @param stdClass $obj
37671+ * @return Oneway
37672+ * @throws Exception
37673+ */
37674+ public static function from(stdClass $obj): Oneway {
37675+ if (!property_exists($obj, 'oneway')) {
37676+ throw new Exception("Missing required property");
37677+ }
37678+ return new Oneway(
37679+ Oneway::fromOneway($obj->{'oneway'})
37680+ );
37681+ }
37682+
37683+ /**
37684+ * @return Oneway
37685+ */
37686+ public static function sample(): Oneway {
37687+ return new Oneway(
37688+ Oneway::sampleOneway()
37689+ );
37690+ }
37691+}
37692+
37693+// This is an autogenerated file:Open
37694+
37695+class Open {
37696+ private int $open; // json:open Required
37697+
37698+ /**
37699+ * @param int $open
37700+ */
37701+ public function __construct(int $open) {
37702+ $this->open = $open;
37703+ }
37704+
37705+ /**
37706+ * @param int $value
37707+ * @throws Exception
37708+ * @return int
37709+ */
37710+ public static function fromOpen(int $value): int {
37711+ return $value; /*int*/
37712+ }
37713+
37714+ /**
37715+ * @throws Exception
37716+ * @return int
37717+ */
37718+ public function toOpen(): int {
37719+ if (Open::validateOpen($this->open)) {
37720+ return $this->open; /*int*/
37721+ }
37722+ throw new Exception('never get to this Open::open');
37723+ }
37724+
37725+ /**
37726+ * @param int
37727+ * @return bool
37728+ * @throws Exception
37729+ */
37730+ public static function validateOpen(int $value): bool {
37731+ return true;
37732+ }
37733+
37734+ /**
37735+ * @throws Exception
37736+ * @return int
37737+ */
37738+ public function getOpen(): int {
37739+ if (Open::validateOpen($this->open)) {
37740+ return $this->open;
37741+ }
37742+ throw new Exception('never get to getOpen Open::open');
37743+ }
37744+
37745+ /**
37746+ * @return int
37747+ */
37748+ public static function sampleOpen(): int {
37749+ return 31; /*31:open*/
37750+ }
37751+
37752+ /**
37753+ * @throws Exception
37754+ * @return bool
37755+ */
37756+ public function validate(): bool {
37757+ return Open::validateOpen($this->open);
37758+ }
37759+
37760+ /**
37761+ * @return stdClass
37762+ * @throws Exception
37763+ */
37764+ public function to(): stdClass {
37765+ $out = new stdClass();
37766+ $out->{'open'} = $this->toOpen();
37767+ return $out;
37768+ }
37769+
37770+ /**
37771+ * @param stdClass $obj
37772+ * @return Open
37773+ * @throws Exception
37774+ */
37775+ public static function from(stdClass $obj): Open {
37776+ if (!property_exists($obj, 'open')) {
37777+ throw new Exception("Missing required property");
37778+ }
37779+ return new Open(
3753537780 Open::fromOpen($obj->{'open'})
3753637781 );
3753737782 }
@@ -41387,117 +41632,208 @@ class RuntimeType {
4138741632 }
4138841633 }
4138941634
41390-// This is an autogenerated file:S
41391-
41392-class S {
41393- private int $s; // json:s Required
41394-
41395- /**
41396- * @param int $s
41397- */
41398- public function __construct(int $s) {
41399- $this->s = $s;
41400- }
41401-
41402- /**
41403- * @param int $value
41404- * @throws Exception
41405- * @return int
41406- */
41407- public static function fromS(int $value): int {
41408- return $value; /*int*/
41409- }
41410-
41411- /**
41412- * @throws Exception
41413- * @return int
41414- */
41415- public function toS(): int {
41416- if (S::validateS($this->s)) {
41417- return $this->s; /*int*/
41418- }
41419- throw new Exception('never get to this S::s');
41420- }
41421-
41422- /**
41423- * @param int
41424- * @return bool
41425- * @throws Exception
41426- */
41427- public static function validateS(int $value): bool {
41428- return true;
41429- }
41430-
41431- /**
41432- * @throws Exception
41433- * @return int
41434- */
41435- public function getS(): int {
41436- if (S::validateS($this->s)) {
41437- return $this->s;
41438- }
41439- throw new Exception('never get to getS S::s');
41440- }
41441-
41442- /**
41443- * @return int
41444- */
41445- public static function sampleS(): int {
41446- return 31; /*31:s*/
41447- }
41635+// This is an autogenerated file:Obj5
4144841636
41449- /**
41450- * @throws Exception
41451- * @return bool
41452- */
41453- public function validate(): bool {
41454- return S::validateS($this->s);
41455- }
41456-
41457- /**
41458- * @return stdClass
41459- * @throws Exception
41460- */
41461- public function to(): stdClass {
41462- $out = new stdClass();
41463- $out->{'s'} = $this->toS();
41464- return $out;
41465- }
41466-
41467- /**
41468- * @param stdClass $obj
41469- * @return S
41470- * @throws Exception
41471- */
41472- public static function from(stdClass $obj): S {
41473- if (!property_exists($obj, 's')) {
41474- throw new Exception("Missing required property");
41475- }
41476- return new S(
41477- S::fromS($obj->{'s'})
41478- );
41479- }
41480-
41481- /**
41482- * @return S
41483- */
41484- public static function sample(): S {
41485- return new S(
41486- S::sampleS()
41487- );
41488- }
41489-}
41490-
41491-// This is an autogenerated file:Sbyte
41492-
41493-class Sbyte {
41494- private int $sbyte; // json:sbyte Required
41637+class Obj5 {
41638+ private int $dummy; // json:dummy Required
41639+ private KSerializer $kSerializer; // json:KSerializer Required
41640+ private Obj5Self $obj5Self; // json:self Required
41641+ private This $obj5This; // json:this Required
41642+ private Obj5True $obj5True; // json:true Required
41643+ private TypeClass $obj5Type; // json:type Required
41644+ private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
41645+ private S $s; // json:s Required
41646+ private Sbyte $sbyte; // json:sbyte Required
41647+ private Sealed $sealed; // json:sealed Required
41648+ private Sel $sel; // json:SEL Required
41649+ private Select $select; // json:select Required
41650+ private SelfClass $self; // json:Self Required
41651+ private Sendable $sendable; // json:Sendable Required
41652+ private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required
41653+ private SerialName $serialName; // json:SerialName Required
41654+ private SerializableClass $serializable; // json:Serializable Required
41655+ private Serialize $serialize; // json:serialize Required
41656+ private SerializerProvider $serializerProvider; // json:SerializerProvider Required
41657+ private Set $set; // json:set Required
41658+ private Short $short; // json:short Required
41659+ private Signed $signed; // json:signed Required
41660+ private SimpleModule $simpleModule; // json:SimpleModule Required
41661+ private Sizeof $sizeof; // json:sizeof Required
41662+ private Stackalloc $stackalloc; // json:stackalloc Required
41663+ private Standards $standards; // json:Standards Required
41664+ private StaticClass $static; // json:static Required
41665+ private StaticAssert $staticAssert; // json:static_assert Required
41666+ private StaticCast $staticCast; // json:static_cast Required
41667+ private StdDeserializer $stdDeserializer; // json:StdDeserializer Required
41668+ private StdSerializer $stdSerializer; // json:StdSerializer Required
41669+ private Strictfp $strictfp; // json:strictfp Required
41670+ private StringClass $string; // json:string Required
41671+ private Struct $struct; // json:struct Required
41672+ private Subscript $subscript; // json:subscript Required
41673+ private Super $super; // json:super Required
41674+ private SwitchClass $switch; // json:switch Required
41675+ private Symbol $symbol; // json:symbol Required
41676+ private Synchronized $synchronized; // json:synchronized Required
41677+ private System $system; // json:system Required
41678+ private Template $template; // json:template Required
41679+ private Then $then; // json:then Required
41680+ private ThreadLocal $threadLocal; // json:thread_local Required
41681+ private ThrowClass $throw; // json:throw Required
41682+ private Throws $throws; // json:throws Required
41683+ private TimeOnly $timeOnly; // json:TimeOnly Required
41684+ private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required
41685+ private TimeZone $timeZone; // json:TimeZone Required
41686+ private ToDict $toDict; // json:to_dict Required
41687+ private ToJSON $toJSON; // json:to_json Required
41688+ private ToString $toString; // json:toString Required
41689+ private TopLevelClass $topLevel; // json:top_level Required
41690+ private Transient $transient; // json:transient Required
41691+ private TrueClass $true; // json:True Required
41692+ private TryClass $try; // json:try Required
41693+ private Type $type; // json:Type Required
41694+ private Typealias $typealias; // json:typealias Required
41695+ private Typedef $typedef; // json:typedef Required
41696+ private Typeid $typeid; // json:typeid Required
41697+ private Typename $typename; // json:typename Required
41698+ private Typeof $typeof; // json:typeof Required
41699+ private Uint $uint; // json:uint Required
41700+ private Ulong $ulong; // json:ulong Required
41701+ private Unchecked $unchecked; // json:unchecked Required
41702+ private Undefined $undefined; // json:undefined Required
4149541703
4149641704 /**
41497- * @param int $sbyte
41705+ * @param int $dummy
41706+ * @param KSerializer $kSerializer
41707+ * @param Obj5Self $obj5Self
41708+ * @param This $obj5This
41709+ * @param Obj5True $obj5True
41710+ * @param TypeClass $obj5Type
41711+ * @param PrimitiveKind $primitiveKind
41712+ * @param S $s
41713+ * @param Sbyte $sbyte
41714+ * @param Sealed $sealed
41715+ * @param Sel $sel
41716+ * @param Select $select
41717+ * @param SelfClass $self
41718+ * @param Sendable $sendable
41719+ * @param SerialDescriptor $serialDescriptor
41720+ * @param SerialName $serialName
41721+ * @param SerializableClass $serializable
41722+ * @param Serialize $serialize
41723+ * @param SerializerProvider $serializerProvider
41724+ * @param Set $set
41725+ * @param Short $short
41726+ * @param Signed $signed
41727+ * @param SimpleModule $simpleModule
41728+ * @param Sizeof $sizeof
41729+ * @param Stackalloc $stackalloc
41730+ * @param Standards $standards
41731+ * @param StaticClass $static
41732+ * @param StaticAssert $staticAssert
41733+ * @param StaticCast $staticCast
41734+ * @param StdDeserializer $stdDeserializer
41735+ * @param StdSerializer $stdSerializer
41736+ * @param Strictfp $strictfp
41737+ * @param StringClass $string
41738+ * @param Struct $struct
41739+ * @param Subscript $subscript
41740+ * @param Super $super
41741+ * @param SwitchClass $switch
41742+ * @param Symbol $symbol
41743+ * @param Synchronized $synchronized
41744+ * @param System $system
41745+ * @param Template $template
41746+ * @param Then $then
41747+ * @param ThreadLocal $threadLocal
41748+ * @param ThrowClass $throw
41749+ * @param Throws $throws
41750+ * @param TimeOnly $timeOnly
41751+ * @param TimeOnlyConverter $timeOnlyConverter
41752+ * @param TimeZone $timeZone
41753+ * @param ToDict $toDict
41754+ * @param ToJSON $toJSON
41755+ * @param ToString $toString
41756+ * @param TopLevelClass $topLevel
41757+ * @param Transient $transient
41758+ * @param TrueClass $true
41759+ * @param TryClass $try
41760+ * @param Type $type
41761+ * @param Typealias $typealias
41762+ * @param Typedef $typedef
41763+ * @param Typeid $typeid
41764+ * @param Typename $typename
41765+ * @param Typeof $typeof
41766+ * @param Uint $uint
41767+ * @param Ulong $ulong
41768+ * @param Unchecked $unchecked
41769+ * @param Undefined $undefined
4149841770 */
41499- public function __construct(int $sbyte) {
41771+ public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, 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) {
41772+ $this->dummy = $dummy;
41773+ $this->kSerializer = $kSerializer;
41774+ $this->obj5Self = $obj5Self;
41775+ $this->obj5This = $obj5This;
41776+ $this->obj5True = $obj5True;
41777+ $this->obj5Type = $obj5Type;
41778+ $this->primitiveKind = $primitiveKind;
41779+ $this->s = $s;
4150041780 $this->sbyte = $sbyte;
41781+ $this->sealed = $sealed;
41782+ $this->sel = $sel;
41783+ $this->select = $select;
41784+ $this->self = $self;
41785+ $this->sendable = $sendable;
41786+ $this->serialDescriptor = $serialDescriptor;
41787+ $this->serialName = $serialName;
41788+ $this->serializable = $serializable;
41789+ $this->serialize = $serialize;
41790+ $this->serializerProvider = $serializerProvider;
41791+ $this->set = $set;
41792+ $this->short = $short;
41793+ $this->signed = $signed;
41794+ $this->simpleModule = $simpleModule;
41795+ $this->sizeof = $sizeof;
41796+ $this->stackalloc = $stackalloc;
41797+ $this->standards = $standards;
41798+ $this->static = $static;
41799+ $this->staticAssert = $staticAssert;
41800+ $this->staticCast = $staticCast;
41801+ $this->stdDeserializer = $stdDeserializer;
41802+ $this->stdSerializer = $stdSerializer;
41803+ $this->strictfp = $strictfp;
41804+ $this->string = $string;
41805+ $this->struct = $struct;
41806+ $this->subscript = $subscript;
41807+ $this->super = $super;
41808+ $this->switch = $switch;
41809+ $this->symbol = $symbol;
41810+ $this->synchronized = $synchronized;
41811+ $this->system = $system;
41812+ $this->template = $template;
41813+ $this->then = $then;
41814+ $this->threadLocal = $threadLocal;
41815+ $this->throw = $throw;
41816+ $this->throws = $throws;
41817+ $this->timeOnly = $timeOnly;
41818+ $this->timeOnlyConverter = $timeOnlyConverter;
41819+ $this->timeZone = $timeZone;
41820+ $this->toDict = $toDict;
41821+ $this->toJSON = $toJSON;
41822+ $this->toString = $toString;
41823+ $this->topLevel = $topLevel;
41824+ $this->transient = $transient;
41825+ $this->true = $true;
41826+ $this->try = $try;
41827+ $this->type = $type;
41828+ $this->typealias = $typealias;
41829+ $this->typedef = $typedef;
41830+ $this->typeid = $typeid;
41831+ $this->typename = $typename;
41832+ $this->typeof = $typeof;
41833+ $this->uint = $uint;
41834+ $this->ulong = $ulong;
41835+ $this->unchecked = $unchecked;
41836+ $this->undefined = $undefined;
4150141837 }
4150241838
4150341839 /**
@@ -41505,7 +41841,7 @@ class Sbyte {
4150541841 * @throws Exception
4150641842 * @return int
4150741843 */
41508- public static function fromSbyte(int $value): int {
41844+ public static function fromDummy(int $value): int {
4150941845 return $value; /*int*/
4151041846 }
4151141847
@@ -41513,11 +41849,11 @@ class Sbyte {
4151341849 * @throws Exception
4151441850 * @return int
4151541851 */
41516- public function toSbyte(): int {
41517- if (Sbyte::validateSbyte($this->sbyte)) {
41518- return $this->sbyte; /*int*/
41852+ public function toDummy(): int {
41853+ if (Obj5::validateDummy($this->dummy)) {
41854+ return $this->dummy; /*int*/
4151941855 }
41520- throw new Exception('never get to this Sbyte::sbyte');
41856+ throw new Exception('never get to this Obj5::dummy');
4152141857 }
4152241858
4152341859 /**
@@ -41525,7 +41861,7 @@ class Sbyte {
4152541861 * @return bool
4152641862 * @throws Exception
4152741863 */
41528- public static function validateSbyte(int $value): bool {
41864+ public static function validateDummy(int $value): bool {
4152941865 return true;
4153041866 }
4153141867
@@ -41533,804 +41869,498 @@ class Sbyte {
4153341869 * @throws Exception
4153441870 * @return int
4153541871 */
41536- public function getSbyte(): int {
41537- if (Sbyte::validateSbyte($this->sbyte)) {
41538- return $this->sbyte;
41872+ public function getDummy(): int {
41873+ if (Obj5::validateDummy($this->dummy)) {
41874+ return $this->dummy;
4153941875 }
41540- throw new Exception('never get to getSbyte Sbyte::sbyte');
41876+ throw new Exception('never get to getDummy Obj5::dummy');
4154141877 }
4154241878
4154341879 /**
4154441880 * @return int
4154541881 */
41546- public static function sampleSbyte(): int {
41547- return 31; /*31:sbyte*/
41882+ public static function sampleDummy(): int {
41883+ return 31; /*31:dummy*/
4154841884 }
4154941885
4155041886 /**
41887+ * @param stdClass $value
4155141888 * @throws Exception
41552- * @return bool
41889+ * @return KSerializer
4155341890 */
41554- public function validate(): bool {
41555- return Sbyte::validateSbyte($this->sbyte);
41891+ public static function fromKSerializer(stdClass $value): KSerializer {
41892+ return KSerializer::from($value); /*class*/
4155641893 }
4155741894
4155841895 /**
41559- * @return stdClass
4156041896 * @throws Exception
41897+ * @return stdClass
4156141898 */
41562- public function to(): stdClass {
41563- $out = new stdClass();
41564- $out->{'sbyte'} = $this->toSbyte();
41565- return $out;
41899+ public function toKSerializer(): stdClass {
41900+ if (Obj5::validateKSerializer($this->kSerializer)) {
41901+ return $this->kSerializer->to(); /*class*/
41902+ }
41903+ throw new Exception('never get to this Obj5::kSerializer');
4156641904 }
4156741905
4156841906 /**
41569- * @param stdClass $obj
41570- * @return Sbyte
41907+ * @param KSerializer
41908+ * @return bool
4157141909 * @throws Exception
4157241910 */
41573- public static function from(stdClass $obj): Sbyte {
41574- if (!property_exists($obj, 'sbyte')) {
41575- throw new Exception("Missing required property");
41576- }
41577- return new Sbyte(
41578- Sbyte::fromSbyte($obj->{'sbyte'})
41579- );
41911+ public static function validateKSerializer(KSerializer $value): bool {
41912+ $value->validate();
41913+ return true;
4158041914 }
4158141915
4158241916 /**
41583- * @return Sbyte
41917+ * @throws Exception
41918+ * @return KSerializer
4158441919 */
41585- public static function sample(): Sbyte {
41586- return new Sbyte(
41587- Sbyte::sampleSbyte()
41588- );
41920+ public function getKSerializer(): KSerializer {
41921+ if (Obj5::validateKSerializer($this->kSerializer)) {
41922+ return $this->kSerializer;
41923+ }
41924+ throw new Exception('never get to getKSerializer Obj5::kSerializer');
4158941925 }
41590-}
41591-
41592-// This is an autogenerated file:Sealed
41593-
41594-class Sealed {
41595- private int $sealed; // json:sealed Required
4159641926
4159741927 /**
41598- * @param int $sealed
41928+ * @return KSerializer
4159941929 */
41600- public function __construct(int $sealed) {
41601- $this->sealed = $sealed;
41930+ public static function sampleKSerializer(): KSerializer {
41931+ return KSerializer::sample(); /*32:kSerializer*/
4160241932 }
4160341933
4160441934 /**
41605- * @param int $value
41935+ * @param stdClass $value
4160641936 * @throws Exception
41607- * @return int
41937+ * @return Obj5Self
4160841938 */
41609- public static function fromSealed(int $value): int {
41610- return $value; /*int*/
41939+ public static function fromObj5Self(stdClass $value): Obj5Self {
41940+ return Obj5Self::from($value); /*class*/
4161141941 }
4161241942
4161341943 /**
4161441944 * @throws Exception
41615- * @return int
41945+ * @return stdClass
4161641946 */
41617- public function toSealed(): int {
41618- if (Sealed::validateSealed($this->sealed)) {
41619- return $this->sealed; /*int*/
41947+ public function toObj5Self(): stdClass {
41948+ if (Obj5::validateObj5Self($this->obj5Self)) {
41949+ return $this->obj5Self->to(); /*class*/
4162041950 }
41621- throw new Exception('never get to this Sealed::sealed');
41951+ throw new Exception('never get to this Obj5::obj5Self');
4162241952 }
4162341953
4162441954 /**
41625- * @param int
41955+ * @param Obj5Self
4162641956 * @return bool
4162741957 * @throws Exception
4162841958 */
41629- public static function validateSealed(int $value): bool {
41959+ public static function validateObj5Self(Obj5Self $value): bool {
41960+ $value->validate();
4163041961 return true;
4163141962 }
4163241963
4163341964 /**
4163441965 * @throws Exception
41635- * @return int
41966+ * @return Obj5Self
4163641967 */
41637- public function getSealed(): int {
41638- if (Sealed::validateSealed($this->sealed)) {
41639- return $this->sealed;
41968+ public function getObj5Self(): Obj5Self {
41969+ if (Obj5::validateObj5Self($this->obj5Self)) {
41970+ return $this->obj5Self;
4164041971 }
41641- throw new Exception('never get to getSealed Sealed::sealed');
41972+ throw new Exception('never get to getObj5Self Obj5::obj5Self');
4164241973 }
4164341974
4164441975 /**
41645- * @return int
41976+ * @return Obj5Self
4164641977 */
41647- public static function sampleSealed(): int {
41648- return 31; /*31:sealed*/
41978+ public static function sampleObj5Self(): Obj5Self {
41979+ return Obj5Self::sample(); /*33:obj5Self*/
4164941980 }
4165041981
4165141982 /**
41983+ * @param stdClass $value
4165241984 * @throws Exception
41653- * @return bool
41985+ * @return This
4165441986 */
41655- public function validate(): bool {
41656- return Sealed::validateSealed($this->sealed);
41987+ public static function fromObj5This(stdClass $value): This {
41988+ return This::from($value); /*class*/
4165741989 }
4165841990
4165941991 /**
41660- * @return stdClass
4166141992 * @throws Exception
41993+ * @return stdClass
4166241994 */
41663- public function to(): stdClass {
41664- $out = new stdClass();
41665- $out->{'sealed'} = $this->toSealed();
41666- return $out;
41995+ public function toObj5This(): stdClass {
41996+ if (Obj5::validateObj5This($this->obj5This)) {
41997+ return $this->obj5This->to(); /*class*/
41998+ }
41999+ throw new Exception('never get to this Obj5::obj5This');
4166742000 }
4166842001
4166942002 /**
41670- * @param stdClass $obj
41671- * @return Sealed
42003+ * @param This
42004+ * @return bool
4167242005 * @throws Exception
4167342006 */
41674- public static function from(stdClass $obj): Sealed {
41675- if (!property_exists($obj, 'sealed')) {
41676- throw new Exception("Missing required property");
41677- }
41678- return new Sealed(
41679- Sealed::fromSealed($obj->{'sealed'})
41680- );
42007+ public static function validateObj5This(This $value): bool {
42008+ $value->validate();
42009+ return true;
4168142010 }
4168242011
4168342012 /**
41684- * @return Sealed
42013+ * @throws Exception
42014+ * @return This
4168542015 */
41686- public static function sample(): Sealed {
41687- return new Sealed(
41688- Sealed::sampleSealed()
41689- );
42016+ public function getObj5This(): This {
42017+ if (Obj5::validateObj5This($this->obj5This)) {
42018+ return $this->obj5This;
42019+ }
42020+ throw new Exception('never get to getObj5This Obj5::obj5This');
4169042021 }
41691-}
41692-
41693-// This is an autogenerated file:Sel
41694-
41695-class Sel {
41696- private int $sel; // json:SEL Required
4169742022
4169842023 /**
41699- * @param int $sel
42024+ * @return This
4170042025 */
41701- public function __construct(int $sel) {
41702- $this->sel = $sel;
42026+ public static function sampleObj5This(): This {
42027+ return This::sample(); /*34:obj5This*/
4170342028 }
4170442029
4170542030 /**
41706- * @param int $value
42031+ * @param stdClass $value
4170742032 * @throws Exception
41708- * @return int
42033+ * @return Obj5True
4170942034 */
41710- public static function fromSel(int $value): int {
41711- return $value; /*int*/
42035+ public static function fromObj5True(stdClass $value): Obj5True {
42036+ return Obj5True::from($value); /*class*/
4171242037 }
4171342038
4171442039 /**
4171542040 * @throws Exception
41716- * @return int
42041+ * @return stdClass
4171742042 */
41718- public function toSel(): int {
41719- if (Sel::validateSel($this->sel)) {
41720- return $this->sel; /*int*/
42043+ public function toObj5True(): stdClass {
42044+ if (Obj5::validateObj5True($this->obj5True)) {
42045+ return $this->obj5True->to(); /*class*/
4172142046 }
41722- throw new Exception('never get to this Sel::sel');
42047+ throw new Exception('never get to this Obj5::obj5True');
4172342048 }
4172442049
4172542050 /**
41726- * @param int
42051+ * @param Obj5True
4172742052 * @return bool
4172842053 * @throws Exception
4172942054 */
41730- public static function validateSel(int $value): bool {
42055+ public static function validateObj5True(Obj5True $value): bool {
42056+ $value->validate();
4173142057 return true;
4173242058 }
4173342059
4173442060 /**
4173542061 * @throws Exception
41736- * @return int
42062+ * @return Obj5True
4173742063 */
41738- public function getSel(): int {
41739- if (Sel::validateSel($this->sel)) {
41740- return $this->sel;
42064+ public function getObj5True(): Obj5True {
42065+ if (Obj5::validateObj5True($this->obj5True)) {
42066+ return $this->obj5True;
4174142067 }
41742- throw new Exception('never get to getSel Sel::sel');
42068+ throw new Exception('never get to getObj5True Obj5::obj5True');
4174342069 }
4174442070
4174542071 /**
41746- * @return int
42072+ * @return Obj5True
4174742073 */
41748- public static function sampleSel(): int {
41749- return 31; /*31:sel*/
42074+ public static function sampleObj5True(): Obj5True {
42075+ return Obj5True::sample(); /*35:obj5True*/
4175042076 }
4175142077
4175242078 /**
42079+ * @param stdClass $value
4175342080 * @throws Exception
41754- * @return bool
42081+ * @return TypeClass
4175542082 */
41756- public function validate(): bool {
41757- return Sel::validateSel($this->sel);
42083+ public static function fromObj5Type(stdClass $value): TypeClass {
42084+ return TypeClass::from($value); /*class*/
4175842085 }
4175942086
4176042087 /**
42088+ * @throws Exception
4176142089 * @return stdClass
42090+ */
42091+ public function toObj5Type(): stdClass {
42092+ if (Obj5::validateObj5Type($this->obj5Type)) {
42093+ return $this->obj5Type->to(); /*class*/
42094+ }
42095+ throw new Exception('never get to this Obj5::obj5Type');
42096+ }
42097+
42098+ /**
42099+ * @param TypeClass
42100+ * @return bool
4176242101 * @throws Exception
4176342102 */
41764- public function to(): stdClass {
41765- $out = new stdClass();
41766- $out->{'SEL'} = $this->toSel();
41767- return $out;
42103+ public static function validateObj5Type(TypeClass $value): bool {
42104+ $value->validate();
42105+ return true;
4176842106 }
4176942107
4177042108 /**
41771- * @param stdClass $obj
41772- * @return Sel
4177342109 * @throws Exception
42110+ * @return TypeClass
4177442111 */
41775- public static function from(stdClass $obj): Sel {
41776- if (!property_exists($obj, 'SEL')) {
41777- throw new Exception("Missing required property");
42112+ public function getObj5Type(): TypeClass {
42113+ if (Obj5::validateObj5Type($this->obj5Type)) {
42114+ return $this->obj5Type;
4177842115 }
41779- return new Sel(
41780- Sel::fromSel($obj->{'SEL'})
41781- );
42116+ throw new Exception('never get to getObj5Type Obj5::obj5Type');
4178242117 }
4178342118
4178442119 /**
41785- * @return Sel
42120+ * @return TypeClass
4178642121 */
41787- public static function sample(): Sel {
41788- return new Sel(
41789- Sel::sampleSel()
41790- );
41791- }
41792-}
41793-
41794-// This is an autogenerated file:Obj5
41795-
41796-class Obj5 {
41797- private int $dummy; // json:dummy Required
41798- private KSerializer $kSerializer; // json:KSerializer Required
41799- private Obj5Self $obj5Self; // json:self Required
41800- private This $obj5This; // json:this Required
41801- private Obj5True $obj5True; // json:true Required
41802- private TypeClass $obj5Type; // json:type Required
41803- private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
41804- private Select $select; // json:select Required
41805- private SelfClass $self; // json:Self Required
41806- private Sendable $sendable; // json:Sendable Required
41807- private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required
41808- private SerialName $serialName; // json:SerialName Required
41809- private SerializableClass $serializable; // json:Serializable Required
41810- private Serialize $serialize; // json:serialize Required
41811- private SerializerProvider $serializerProvider; // json:SerializerProvider Required
41812- private Set $set; // json:set Required
41813- private Short $short; // json:short Required
41814- private Signed $signed; // json:signed Required
41815- private SimpleModule $simpleModule; // json:SimpleModule Required
41816- private Sizeof $sizeof; // json:sizeof Required
41817- private Stackalloc $stackalloc; // json:stackalloc Required
41818- private Standards $standards; // json:Standards Required
41819- private StaticClass $static; // json:static Required
41820- private StaticAssert $staticAssert; // json:static_assert Required
41821- private StaticCast $staticCast; // json:static_cast Required
41822- private StdDeserializer $stdDeserializer; // json:StdDeserializer Required
41823- private StdSerializer $stdSerializer; // json:StdSerializer Required
41824- private Strictfp $strictfp; // json:strictfp Required
41825- private StringClass $string; // json:string Required
41826- private Struct $struct; // json:struct Required
41827- private Subscript $subscript; // json:subscript Required
41828- private Super $super; // json:super Required
41829- private SwitchClass $switch; // json:switch Required
41830- private Symbol $symbol; // json:symbol Required
41831- private Synchronized $synchronized; // json:synchronized Required
41832- private System $system; // json:system Required
41833- private Template $template; // json:template Required
41834- private Then $then; // json:then Required
41835- private ThreadLocal $threadLocal; // json:thread_local Required
41836- private ThrowClass $throw; // json:throw Required
41837- private Throws $throws; // json:throws Required
41838- private TimeOnly $timeOnly; // json:TimeOnly Required
41839- private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required
41840- private TimeZone $timeZone; // json:TimeZone Required
41841- private ToDict $toDict; // json:to_dict Required
41842- private ToJSON $toJSON; // json:to_json Required
41843- private ToString $toString; // json:toString Required
41844- private TopLevelClass $topLevel; // json:top_level Required
41845- private Transient $transient; // json:transient Required
41846- private TrueClass $true; // json:True Required
41847- private TryClass $try; // json:try Required
41848- private Type $type; // json:Type Required
41849- private Typealias $typealias; // json:typealias Required
41850- private Typedef $typedef; // json:typedef Required
41851- private Typeid $typeid; // json:typeid Required
41852- private Typename $typename; // json:typename Required
41853- private Typeof $typeof; // json:typeof Required
41854- private Uint $uint; // json:uint Required
41855- private Ulong $ulong; // json:ulong Required
41856- private Unchecked $unchecked; // json:unchecked Required
41857- private Undefined $undefined; // json:undefined Required
41858- private Union $union; // json:union Required
41859- private UnmarshalJSON $unmarshalJSON; // json:UnmarshalJSON Required
41860- private Unowned $unowned; // json:unowned Required
41861- private Unsafe $unsafe; // json:unsafe Required
41862- private UseSerializers $useSerializers; // json:UseSerializers Required
41863-
41864- /**
41865- * @param int $dummy
41866- * @param KSerializer $kSerializer
41867- * @param Obj5Self $obj5Self
41868- * @param This $obj5This
41869- * @param Obj5True $obj5True
41870- * @param TypeClass $obj5Type
41871- * @param PrimitiveKind $primitiveKind
41872- * @param Select $select
41873- * @param SelfClass $self
41874- * @param Sendable $sendable
41875- * @param SerialDescriptor $serialDescriptor
41876- * @param SerialName $serialName
41877- * @param SerializableClass $serializable
41878- * @param Serialize $serialize
41879- * @param SerializerProvider $serializerProvider
41880- * @param Set $set
41881- * @param Short $short
41882- * @param Signed $signed
41883- * @param SimpleModule $simpleModule
41884- * @param Sizeof $sizeof
41885- * @param Stackalloc $stackalloc
41886- * @param Standards $standards
41887- * @param StaticClass $static
41888- * @param StaticAssert $staticAssert
41889- * @param StaticCast $staticCast
41890- * @param StdDeserializer $stdDeserializer
41891- * @param StdSerializer $stdSerializer
41892- * @param Strictfp $strictfp
41893- * @param StringClass $string
41894- * @param Struct $struct
41895- * @param Subscript $subscript
41896- * @param Super $super
41897- * @param SwitchClass $switch
41898- * @param Symbol $symbol
41899- * @param Synchronized $synchronized
41900- * @param System $system
41901- * @param Template $template
41902- * @param Then $then
41903- * @param ThreadLocal $threadLocal
41904- * @param ThrowClass $throw
41905- * @param Throws $throws
41906- * @param TimeOnly $timeOnly
41907- * @param TimeOnlyConverter $timeOnlyConverter
41908- * @param TimeZone $timeZone
41909- * @param ToDict $toDict
41910- * @param ToJSON $toJSON
41911- * @param ToString $toString
41912- * @param TopLevelClass $topLevel
41913- * @param Transient $transient
41914- * @param TrueClass $true
41915- * @param TryClass $try
41916- * @param Type $type
41917- * @param Typealias $typealias
41918- * @param Typedef $typedef
41919- * @param Typeid $typeid
41920- * @param Typename $typename
41921- * @param Typeof $typeof
41922- * @param Uint $uint
41923- * @param Ulong $ulong
41924- * @param Unchecked $unchecked
41925- * @param Undefined $undefined
41926- * @param Union $union
41927- * @param UnmarshalJSON $unmarshalJSON
41928- * @param Unowned $unowned
41929- * @param Unsafe $unsafe
41930- * @param UseSerializers $useSerializers
41931- */
41932- 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, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, UseSerializers $useSerializers) {
41933- $this->dummy = $dummy;
41934- $this->kSerializer = $kSerializer;
41935- $this->obj5Self = $obj5Self;
41936- $this->obj5This = $obj5This;
41937- $this->obj5True = $obj5True;
41938- $this->obj5Type = $obj5Type;
41939- $this->primitiveKind = $primitiveKind;
41940- $this->select = $select;
41941- $this->self = $self;
41942- $this->sendable = $sendable;
41943- $this->serialDescriptor = $serialDescriptor;
41944- $this->serialName = $serialName;
41945- $this->serializable = $serializable;
41946- $this->serialize = $serialize;
41947- $this->serializerProvider = $serializerProvider;
41948- $this->set = $set;
41949- $this->short = $short;
41950- $this->signed = $signed;
41951- $this->simpleModule = $simpleModule;
41952- $this->sizeof = $sizeof;
41953- $this->stackalloc = $stackalloc;
41954- $this->standards = $standards;
41955- $this->static = $static;
41956- $this->staticAssert = $staticAssert;
41957- $this->staticCast = $staticCast;
41958- $this->stdDeserializer = $stdDeserializer;
41959- $this->stdSerializer = $stdSerializer;
41960- $this->strictfp = $strictfp;
41961- $this->string = $string;
41962- $this->struct = $struct;
41963- $this->subscript = $subscript;
41964- $this->super = $super;
41965- $this->switch = $switch;
41966- $this->symbol = $symbol;
41967- $this->synchronized = $synchronized;
41968- $this->system = $system;
41969- $this->template = $template;
41970- $this->then = $then;
41971- $this->threadLocal = $threadLocal;
41972- $this->throw = $throw;
41973- $this->throws = $throws;
41974- $this->timeOnly = $timeOnly;
41975- $this->timeOnlyConverter = $timeOnlyConverter;
41976- $this->timeZone = $timeZone;
41977- $this->toDict = $toDict;
41978- $this->toJSON = $toJSON;
41979- $this->toString = $toString;
41980- $this->topLevel = $topLevel;
41981- $this->transient = $transient;
41982- $this->true = $true;
41983- $this->try = $try;
41984- $this->type = $type;
41985- $this->typealias = $typealias;
41986- $this->typedef = $typedef;
41987- $this->typeid = $typeid;
41988- $this->typename = $typename;
41989- $this->typeof = $typeof;
41990- $this->uint = $uint;
41991- $this->ulong = $ulong;
41992- $this->unchecked = $unchecked;
41993- $this->undefined = $undefined;
41994- $this->union = $union;
41995- $this->unmarshalJSON = $unmarshalJSON;
41996- $this->unowned = $unowned;
41997- $this->unsafe = $unsafe;
41998- $this->useSerializers = $useSerializers;
42122+ public static function sampleObj5Type(): TypeClass {
42123+ return TypeClass::sample(); /*36:obj5Type*/
4199942124 }
4200042125
4200142126 /**
42002- * @param int $value
42127+ * @param stdClass $value
4200342128 * @throws Exception
42004- * @return int
42129+ * @return PrimitiveKind
4200542130 */
42006- public static function fromDummy(int $value): int {
42007- return $value; /*int*/
42131+ public static function fromPrimitiveKind(stdClass $value): PrimitiveKind {
42132+ return PrimitiveKind::from($value); /*class*/
4200842133 }
4200942134
4201042135 /**
4201142136 * @throws Exception
42012- * @return int
42137+ * @return stdClass
4201342138 */
42014- public function toDummy(): int {
42015- if (Obj5::validateDummy($this->dummy)) {
42016- return $this->dummy; /*int*/
42139+ public function toPrimitiveKind(): stdClass {
42140+ if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42141+ return $this->primitiveKind->to(); /*class*/
4201742142 }
42018- throw new Exception('never get to this Obj5::dummy');
42143+ throw new Exception('never get to this Obj5::primitiveKind');
4201942144 }
4202042145
4202142146 /**
42022- * @param int
42147+ * @param PrimitiveKind
4202342148 * @return bool
4202442149 * @throws Exception
4202542150 */
42026- public static function validateDummy(int $value): bool {
42151+ public static function validatePrimitiveKind(PrimitiveKind $value): bool {
42152+ $value->validate();
4202742153 return true;
4202842154 }
4202942155
4203042156 /**
4203142157 * @throws Exception
42032- * @return int
42158+ * @return PrimitiveKind
4203342159 */
42034- public function getDummy(): int {
42035- if (Obj5::validateDummy($this->dummy)) {
42036- return $this->dummy;
42160+ public function getPrimitiveKind(): PrimitiveKind {
42161+ if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42162+ return $this->primitiveKind;
4203742163 }
42038- throw new Exception('never get to getDummy Obj5::dummy');
42164+ throw new Exception('never get to getPrimitiveKind Obj5::primitiveKind');
4203942165 }
4204042166
4204142167 /**
42042- * @return int
42168+ * @return PrimitiveKind
4204342169 */
42044- public static function sampleDummy(): int {
42045- return 31; /*31:dummy*/
42170+ public static function samplePrimitiveKind(): PrimitiveKind {
42171+ return PrimitiveKind::sample(); /*37:primitiveKind*/
4204642172 }
4204742173
4204842174 /**
4204942175 * @param stdClass $value
4205042176 * @throws Exception
42051- * @return KSerializer
42177+ * @return S
4205242178 */
42053- public static function fromKSerializer(stdClass $value): KSerializer {
42054- return KSerializer::from($value); /*class*/
42179+ public static function fromS(stdClass $value): S {
42180+ return S::from($value); /*class*/
4205542181 }
4205642182
4205742183 /**
4205842184 * @throws Exception
4205942185 * @return stdClass
4206042186 */
42061- public function toKSerializer(): stdClass {
42062- if (Obj5::validateKSerializer($this->kSerializer)) {
42063- return $this->kSerializer->to(); /*class*/
42187+ public function toS(): stdClass {
42188+ if (Obj5::validateS($this->s)) {
42189+ return $this->s->to(); /*class*/
4206442190 }
42065- throw new Exception('never get to this Obj5::kSerializer');
42191+ throw new Exception('never get to this Obj5::s');
4206642192 }
4206742193
4206842194 /**
42069- * @param KSerializer
42195+ * @param S
4207042196 * @return bool
4207142197 * @throws Exception
4207242198 */
42073- public static function validateKSerializer(KSerializer $value): bool {
42199+ public static function validateS(S $value): bool {
4207442200 $value->validate();
4207542201 return true;
4207642202 }
4207742203
4207842204 /**
4207942205 * @throws Exception
42080- * @return KSerializer
42206+ * @return S
4208142207 */
42082- public function getKSerializer(): KSerializer {
42083- if (Obj5::validateKSerializer($this->kSerializer)) {
42084- return $this->kSerializer;
42085- }
42086- throw new Exception('never get to getKSerializer Obj5::kSerializer');
42087- }
42088-
42089- /**
42090- * @return KSerializer
42091- */
42092- public static function sampleKSerializer(): KSerializer {
42093- return KSerializer::sample(); /*32:kSerializer*/
42094- }
42095-
42096- /**
42097- * @param stdClass $value
42098- * @throws Exception
42099- * @return Obj5Self
42100- */
42101- public static function fromObj5Self(stdClass $value): Obj5Self {
42102- return Obj5Self::from($value); /*class*/
42103- }
42104-
42105- /**
42106- * @throws Exception
42107- * @return stdClass
42108- */
42109- public function toObj5Self(): stdClass {
42110- if (Obj5::validateObj5Self($this->obj5Self)) {
42111- return $this->obj5Self->to(); /*class*/
42112- }
42113- throw new Exception('never get to this Obj5::obj5Self');
42114- }
42115-
42116- /**
42117- * @param Obj5Self
42118- * @return bool
42119- * @throws Exception
42120- */
42121- public static function validateObj5Self(Obj5Self $value): bool {
42122- $value->validate();
42123- return true;
42124- }
42125-
42126- /**
42127- * @throws Exception
42128- * @return Obj5Self
42129- */
42130- public function getObj5Self(): Obj5Self {
42131- if (Obj5::validateObj5Self($this->obj5Self)) {
42132- return $this->obj5Self;
42133- }
42134- throw new Exception('never get to getObj5Self Obj5::obj5Self');
42135- }
42136-
42137- /**
42138- * @return Obj5Self
42139- */
42140- public static function sampleObj5Self(): Obj5Self {
42141- return Obj5Self::sample(); /*33:obj5Self*/
42142- }
42143-
42144- /**
42145- * @param stdClass $value
42146- * @throws Exception
42147- * @return This
42148- */
42149- public static function fromObj5This(stdClass $value): This {
42150- return This::from($value); /*class*/
42151- }
42152-
42153- /**
42154- * @throws Exception
42155- * @return stdClass
42156- */
42157- public function toObj5This(): stdClass {
42158- if (Obj5::validateObj5This($this->obj5This)) {
42159- return $this->obj5This->to(); /*class*/
42160- }
42161- throw new Exception('never get to this Obj5::obj5This');
42162- }
42163-
42164- /**
42165- * @param This
42166- * @return bool
42167- * @throws Exception
42168- */
42169- public static function validateObj5This(This $value): bool {
42170- $value->validate();
42171- return true;
42172- }
42173-
42174- /**
42175- * @throws Exception
42176- * @return This
42177- */
42178- public function getObj5This(): This {
42179- if (Obj5::validateObj5This($this->obj5This)) {
42180- return $this->obj5This;
42208+ public function getS(): S {
42209+ if (Obj5::validateS($this->s)) {
42210+ return $this->s;
4218142211 }
42182- throw new Exception('never get to getObj5This Obj5::obj5This');
42212+ throw new Exception('never get to getS Obj5::s');
4218342213 }
4218442214
4218542215 /**
42186- * @return This
42216+ * @return S
4218742217 */
42188- public static function sampleObj5This(): This {
42189- return This::sample(); /*34:obj5This*/
42218+ public static function sampleS(): S {
42219+ return S::sample(); /*38:s*/
4219042220 }
4219142221
4219242222 /**
4219342223 * @param stdClass $value
4219442224 * @throws Exception
42195- * @return Obj5True
42225+ * @return Sbyte
4219642226 */
42197- public static function fromObj5True(stdClass $value): Obj5True {
42198- return Obj5True::from($value); /*class*/
42227+ public static function fromSbyte(stdClass $value): Sbyte {
42228+ return Sbyte::from($value); /*class*/
4219942229 }
4220042230
4220142231 /**
4220242232 * @throws Exception
4220342233 * @return stdClass
4220442234 */
42205- public function toObj5True(): stdClass {
42206- if (Obj5::validateObj5True($this->obj5True)) {
42207- return $this->obj5True->to(); /*class*/
42235+ public function toSbyte(): stdClass {
42236+ if (Obj5::validateSbyte($this->sbyte)) {
42237+ return $this->sbyte->to(); /*class*/
4220842238 }
42209- throw new Exception('never get to this Obj5::obj5True');
42239+ throw new Exception('never get to this Obj5::sbyte');
4221042240 }
4221142241
4221242242 /**
42213- * @param Obj5True
42243+ * @param Sbyte
4221442244 * @return bool
4221542245 * @throws Exception
4221642246 */
42217- public static function validateObj5True(Obj5True $value): bool {
42247+ public static function validateSbyte(Sbyte $value): bool {
4221842248 $value->validate();
4221942249 return true;
4222042250 }
4222142251
4222242252 /**
4222342253 * @throws Exception
42224- * @return Obj5True
42254+ * @return Sbyte
4222542255 */
42226- public function getObj5True(): Obj5True {
42227- if (Obj5::validateObj5True($this->obj5True)) {
42228- return $this->obj5True;
42256+ public function getSbyte(): Sbyte {
42257+ if (Obj5::validateSbyte($this->sbyte)) {
42258+ return $this->sbyte;
4222942259 }
42230- throw new Exception('never get to getObj5True Obj5::obj5True');
42260+ throw new Exception('never get to getSbyte Obj5::sbyte');
4223142261 }
4223242262
4223342263 /**
42234- * @return Obj5True
42264+ * @return Sbyte
4223542265 */
42236- public static function sampleObj5True(): Obj5True {
42237- return Obj5True::sample(); /*35:obj5True*/
42266+ public static function sampleSbyte(): Sbyte {
42267+ return Sbyte::sample(); /*39:sbyte*/
4223842268 }
4223942269
4224042270 /**
4224142271 * @param stdClass $value
4224242272 * @throws Exception
42243- * @return TypeClass
42273+ * @return Sealed
4224442274 */
42245- public static function fromObj5Type(stdClass $value): TypeClass {
42246- return TypeClass::from($value); /*class*/
42275+ public static function fromSealed(stdClass $value): Sealed {
42276+ return Sealed::from($value); /*class*/
4224742277 }
4224842278
4224942279 /**
4225042280 * @throws Exception
4225142281 * @return stdClass
4225242282 */
42253- public function toObj5Type(): stdClass {
42254- if (Obj5::validateObj5Type($this->obj5Type)) {
42255- return $this->obj5Type->to(); /*class*/
42283+ public function toSealed(): stdClass {
42284+ if (Obj5::validateSealed($this->sealed)) {
42285+ return $this->sealed->to(); /*class*/
4225642286 }
42257- throw new Exception('never get to this Obj5::obj5Type');
42287+ throw new Exception('never get to this Obj5::sealed');
4225842288 }
4225942289
4226042290 /**
42261- * @param TypeClass
42291+ * @param Sealed
4226242292 * @return bool
4226342293 * @throws Exception
4226442294 */
42265- public static function validateObj5Type(TypeClass $value): bool {
42295+ public static function validateSealed(Sealed $value): bool {
4226642296 $value->validate();
4226742297 return true;
4226842298 }
4226942299
4227042300 /**
4227142301 * @throws Exception
42272- * @return TypeClass
42302+ * @return Sealed
4227342303 */
42274- public function getObj5Type(): TypeClass {
42275- if (Obj5::validateObj5Type($this->obj5Type)) {
42276- return $this->obj5Type;
42304+ public function getSealed(): Sealed {
42305+ if (Obj5::validateSealed($this->sealed)) {
42306+ return $this->sealed;
4227742307 }
42278- throw new Exception('never get to getObj5Type Obj5::obj5Type');
42308+ throw new Exception('never get to getSealed Obj5::sealed');
4227942309 }
4228042310
4228142311 /**
42282- * @return TypeClass
42312+ * @return Sealed
4228342313 */
42284- public static function sampleObj5Type(): TypeClass {
42285- return TypeClass::sample(); /*36:obj5Type*/
42314+ public static function sampleSealed(): Sealed {
42315+ return Sealed::sample(); /*40:sealed*/
4228642316 }
4228742317
4228842318 /**
4228942319 * @param stdClass $value
4229042320 * @throws Exception
42291- * @return PrimitiveKind
42321+ * @return Sel
4229242322 */
42293- public static function fromPrimitiveKind(stdClass $value): PrimitiveKind {
42294- return PrimitiveKind::from($value); /*class*/
42323+ public static function fromSel(stdClass $value): Sel {
42324+ return Sel::from($value); /*class*/
4229542325 }
4229642326
4229742327 /**
4229842328 * @throws Exception
4229942329 * @return stdClass
4230042330 */
42301- public function toPrimitiveKind(): stdClass {
42302- if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42303- return $this->primitiveKind->to(); /*class*/
42331+ public function toSel(): stdClass {
42332+ if (Obj5::validateSel($this->sel)) {
42333+ return $this->sel->to(); /*class*/
4230442334 }
42305- throw new Exception('never get to this Obj5::primitiveKind');
42335+ throw new Exception('never get to this Obj5::sel');
4230642336 }
4230742337
4230842338 /**
42309- * @param PrimitiveKind
42339+ * @param Sel
4231042340 * @return bool
4231142341 * @throws Exception
4231242342 */
42313- public static function validatePrimitiveKind(PrimitiveKind $value): bool {
42343+ public static function validateSel(Sel $value): bool {
4231442344 $value->validate();
4231542345 return true;
4231642346 }
4231742347
4231842348 /**
4231942349 * @throws Exception
42320- * @return PrimitiveKind
42350+ * @return Sel
4232142351 */
42322- public function getPrimitiveKind(): PrimitiveKind {
42323- if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42324- return $this->primitiveKind;
42352+ public function getSel(): Sel {
42353+ if (Obj5::validateSel($this->sel)) {
42354+ return $this->sel;
4232542355 }
42326- throw new Exception('never get to getPrimitiveKind Obj5::primitiveKind');
42356+ throw new Exception('never get to getSel Obj5::sel');
4232742357 }
4232842358
4232942359 /**
42330- * @return PrimitiveKind
42360+ * @return Sel
4233142361 */
42332- public static function samplePrimitiveKind(): PrimitiveKind {
42333- return PrimitiveKind::sample(); /*37:primitiveKind*/
42362+ public static function sampleSel(): Sel {
42363+ return Sel::sample(); /*41:sel*/
4233442364 }
4233542365
4233642366 /**
@@ -42378,7 +42408,7 @@ class Obj5 {
4237842408 * @return Select
4237942409 */
4238042410 public static function sampleSelect(): Select {
42381- return Select::sample(); /*38:select*/
42411+ return Select::sample(); /*42:select*/
4238242412 }
4238342413
4238442414 /**
@@ -42426,7 +42456,7 @@ class Obj5 {
4242642456 * @return SelfClass
4242742457 */
4242842458 public static function sampleSelf(): SelfClass {
42429- return SelfClass::sample(); /*39:self*/
42459+ return SelfClass::sample(); /*43:self*/
4243042460 }
4243142461
4243242462 /**
@@ -42474,7 +42504,7 @@ class Obj5 {
4247442504 * @return Sendable
4247542505 */
4247642506 public static function sampleSendable(): Sendable {
42477- return Sendable::sample(); /*40:sendable*/
42507+ return Sendable::sample(); /*44:sendable*/
4247842508 }
4247942509
4248042510 /**
@@ -42522,7 +42552,7 @@ class Obj5 {
4252242552 * @return SerialDescriptor
4252342553 */
4252442554 public static function sampleSerialDescriptor(): SerialDescriptor {
42525- return SerialDescriptor::sample(); /*41:serialDescriptor*/
42555+ return SerialDescriptor::sample(); /*45:serialDescriptor*/
4252642556 }
4252742557
4252842558 /**
@@ -42570,7 +42600,7 @@ class Obj5 {
4257042600 * @return SerialName
4257142601 */
4257242602 public static function sampleSerialName(): SerialName {
42573- return SerialName::sample(); /*42:serialName*/
42603+ return SerialName::sample(); /*46:serialName*/
4257442604 }
4257542605
4257642606 /**
@@ -42618,7 +42648,7 @@ class Obj5 {
4261842648 * @return SerializableClass
4261942649 */
4262042650 public static function sampleSerializable(): SerializableClass {
42621- return SerializableClass::sample(); /*43:serializable*/
42651+ return SerializableClass::sample(); /*47:serializable*/
4262242652 }
4262342653
4262442654 /**
@@ -42666,7 +42696,7 @@ class Obj5 {
4266642696 * @return Serialize
4266742697 */
4266842698 public static function sampleSerialize(): Serialize {
42669- return Serialize::sample(); /*44:serialize*/
42699+ return Serialize::sample(); /*48:serialize*/
4267042700 }
4267142701
4267242702 /**
@@ -42714,7 +42744,7 @@ class Obj5 {
4271442744 * @return SerializerProvider
4271542745 */
4271642746 public static function sampleSerializerProvider(): SerializerProvider {
42717- return SerializerProvider::sample(); /*45:serializerProvider*/
42747+ return SerializerProvider::sample(); /*49:serializerProvider*/
4271842748 }
4271942749
4272042750 /**
@@ -42762,7 +42792,7 @@ class Obj5 {
4276242792 * @return Set
4276342793 */
4276442794 public static function sampleSet(): Set {
42765- return Set::sample(); /*46:set*/
42795+ return Set::sample(); /*50:set*/
4276642796 }
4276742797
4276842798 /**
@@ -42810,7 +42840,7 @@ class Obj5 {
4281042840 * @return Short
4281142841 */
4281242842 public static function sampleShort(): Short {
42813- return Short::sample(); /*47:short*/
42843+ return Short::sample(); /*51:short*/
4281442844 }
4281542845
4281642846 /**
@@ -42858,7 +42888,7 @@ class Obj5 {
4285842888 * @return Signed
4285942889 */
4286042890 public static function sampleSigned(): Signed {
42861- return Signed::sample(); /*48:signed*/
42891+ return Signed::sample(); /*52:signed*/
4286242892 }
4286342893
4286442894 /**
@@ -42906,7 +42936,7 @@ class Obj5 {
4290642936 * @return SimpleModule
4290742937 */
4290842938 public static function sampleSimpleModule(): SimpleModule {
42909- return SimpleModule::sample(); /*49:simpleModule*/
42939+ return SimpleModule::sample(); /*53:simpleModule*/
4291042940 }
4291142941
4291242942 /**
@@ -42954,7 +42984,7 @@ class Obj5 {
4295442984 * @return Sizeof
4295542985 */
4295642986 public static function sampleSizeof(): Sizeof {
42957- return Sizeof::sample(); /*50:sizeof*/
42987+ return Sizeof::sample(); /*54:sizeof*/
4295842988 }
4295942989
4296042990 /**
@@ -43002,7 +43032,7 @@ class Obj5 {
4300243032 * @return Stackalloc
4300343033 */
4300443034 public static function sampleStackalloc(): Stackalloc {
43005- return Stackalloc::sample(); /*51:stackalloc*/
43035+ return Stackalloc::sample(); /*55:stackalloc*/
4300643036 }
4300743037
4300843038 /**
@@ -43050,7 +43080,7 @@ class Obj5 {
4305043080 * @return Standards
4305143081 */
4305243082 public static function sampleStandards(): Standards {
43053- return Standards::sample(); /*52:standards*/
43083+ return Standards::sample(); /*56:standards*/
4305443084 }
4305543085
4305643086 /**
@@ -43098,7 +43128,7 @@ class Obj5 {
4309843128 * @return StaticClass
4309943129 */
4310043130 public static function sampleStatic(): StaticClass {
43101- return StaticClass::sample(); /*53:static*/
43131+ return StaticClass::sample(); /*57:static*/
4310243132 }
4310343133
4310443134 /**
@@ -43146,7 +43176,7 @@ class Obj5 {
4314643176 * @return StaticAssert
4314743177 */
4314843178 public static function sampleStaticAssert(): StaticAssert {
43149- return StaticAssert::sample(); /*54:staticAssert*/
43179+ return StaticAssert::sample(); /*58:staticAssert*/
4315043180 }
4315143181
4315243182 /**
@@ -43194,7 +43224,7 @@ class Obj5 {
4319443224 * @return StaticCast
4319543225 */
4319643226 public static function sampleStaticCast(): StaticCast {
43197- return StaticCast::sample(); /*55:staticCast*/
43227+ return StaticCast::sample(); /*59:staticCast*/
4319843228 }
4319943229
4320043230 /**
@@ -43242,7 +43272,7 @@ class Obj5 {
4324243272 * @return StdDeserializer
4324343273 */
4324443274 public static function sampleStdDeserializer(): StdDeserializer {
43245- return StdDeserializer::sample(); /*56:stdDeserializer*/
43275+ return StdDeserializer::sample(); /*60:stdDeserializer*/
4324643276 }
4324743277
4324843278 /**
@@ -43290,7 +43320,7 @@ class Obj5 {
4329043320 * @return StdSerializer
4329143321 */
4329243322 public static function sampleStdSerializer(): StdSerializer {
43293- return StdSerializer::sample(); /*57:stdSerializer*/
43323+ return StdSerializer::sample(); /*61:stdSerializer*/
4329443324 }
4329543325
4329643326 /**
@@ -43338,7 +43368,7 @@ class Obj5 {
4333843368 * @return Strictfp
4333943369 */
4334043370 public static function sampleStrictfp(): Strictfp {
43341- return Strictfp::sample(); /*58:strictfp*/
43371+ return Strictfp::sample(); /*62:strictfp*/
4334243372 }
4334343373
4334443374 /**
@@ -43386,7 +43416,7 @@ class Obj5 {
4338643416 * @return StringClass
4338743417 */
4338843418 public static function sampleString(): StringClass {
43389- return StringClass::sample(); /*59:string*/
43419+ return StringClass::sample(); /*63:string*/
4339043420 }
4339143421
4339243422 /**
@@ -43434,7 +43464,7 @@ class Obj5 {
4343443464 * @return Struct
4343543465 */
4343643466 public static function sampleStruct(): Struct {
43437- return Struct::sample(); /*60:struct*/
43467+ return Struct::sample(); /*64:struct*/
4343843468 }
4343943469
4344043470 /**
@@ -43482,7 +43512,7 @@ class Obj5 {
4348243512 * @return Subscript
4348343513 */
4348443514 public static function sampleSubscript(): Subscript {
43485- return Subscript::sample(); /*61:subscript*/
43515+ return Subscript::sample(); /*65:subscript*/
4348643516 }
4348743517
4348843518 /**
@@ -43530,7 +43560,7 @@ class Obj5 {
4353043560 * @return Super
4353143561 */
4353243562 public static function sampleSuper(): Super {
43533- return Super::sample(); /*62:super*/
43563+ return Super::sample(); /*66:super*/
4353443564 }
4353543565
4353643566 /**
@@ -43578,7 +43608,7 @@ class Obj5 {
4357843608 * @return SwitchClass
4357943609 */
4358043610 public static function sampleSwitch(): SwitchClass {
43581- return SwitchClass::sample(); /*63:switch*/
43611+ return SwitchClass::sample(); /*67:switch*/
4358243612 }
4358343613
4358443614 /**
@@ -43626,7 +43656,7 @@ class Obj5 {
4362643656 * @return Symbol
4362743657 */
4362843658 public static function sampleSymbol(): Symbol {
43629- return Symbol::sample(); /*64:symbol*/
43659+ return Symbol::sample(); /*68:symbol*/
4363043660 }
4363143661
4363243662 /**
@@ -43674,7 +43704,7 @@ class Obj5 {
4367443704 * @return Synchronized
4367543705 */
4367643706 public static function sampleSynchronized(): Synchronized {
43677- return Synchronized::sample(); /*65:synchronized*/
43707+ return Synchronized::sample(); /*69:synchronized*/
4367843708 }
4367943709
4368043710 /**
@@ -43722,7 +43752,7 @@ class Obj5 {
4372243752 * @return System
4372343753 */
4372443754 public static function sampleSystem(): System {
43725- return System::sample(); /*66:system*/
43755+ return System::sample(); /*70:system*/
4372643756 }
4372743757
4372843758 /**
@@ -43770,7 +43800,7 @@ class Obj5 {
4377043800 * @return Template
4377143801 */
4377243802 public static function sampleTemplate(): Template {
43773- return Template::sample(); /*67:template*/
43803+ return Template::sample(); /*71:template*/
4377443804 }
4377543805
4377643806 /**
@@ -43818,7 +43848,7 @@ class Obj5 {
4381843848 * @return Then
4381943849 */
4382043850 public static function sampleThen(): Then {
43821- return Then::sample(); /*68:then*/
43851+ return Then::sample(); /*72:then*/
4382243852 }
4382343853
4382443854 /**
@@ -43866,7 +43896,7 @@ class Obj5 {
4386643896 * @return ThreadLocal
4386743897 */
4386843898 public static function sampleThreadLocal(): ThreadLocal {
43869- return ThreadLocal::sample(); /*69:threadLocal*/
43899+ return ThreadLocal::sample(); /*73:threadLocal*/
4387043900 }
4387143901
4387243902 /**
@@ -43914,7 +43944,7 @@ class Obj5 {
4391443944 * @return ThrowClass
4391543945 */
4391643946 public static function sampleThrow(): ThrowClass {
43917- return ThrowClass::sample(); /*70:throw*/
43947+ return ThrowClass::sample(); /*74:throw*/
4391843948 }
4391943949
4392043950 /**
@@ -43962,7 +43992,7 @@ class Obj5 {
4396243992 * @return Throws
4396343993 */
4396443994 public static function sampleThrows(): Throws {
43965- return Throws::sample(); /*71:throws*/
43995+ return Throws::sample(); /*75:throws*/
4396643996 }
4396743997
4396843998 /**
@@ -44010,7 +44040,7 @@ class Obj5 {
4401044040 * @return TimeOnly
4401144041 */
4401244042 public static function sampleTimeOnly(): TimeOnly {
44013- return TimeOnly::sample(); /*72:timeOnly*/
44043+ return TimeOnly::sample(); /*76:timeOnly*/
4401444044 }
4401544045
4401644046 /**
@@ -44058,7 +44088,7 @@ class Obj5 {
4405844088 * @return TimeOnlyConverter
4405944089 */
4406044090 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
44061- return TimeOnlyConverter::sample(); /*73:timeOnlyConverter*/
44091+ return TimeOnlyConverter::sample(); /*77:timeOnlyConverter*/
4406244092 }
4406344093
4406444094 /**
@@ -44106,7 +44136,7 @@ class Obj5 {
4410644136 * @return TimeZone
4410744137 */
4410844138 public static function sampleTimeZone(): TimeZone {
44109- return TimeZone::sample(); /*74:timeZone*/
44139+ return TimeZone::sample(); /*78:timeZone*/
4411044140 }
4411144141
4411244142 /**
@@ -44154,7 +44184,7 @@ class Obj5 {
4415444184 * @return ToDict
4415544185 */
4415644186 public static function sampleToDict(): ToDict {
44157- return ToDict::sample(); /*75:toDict*/
44187+ return ToDict::sample(); /*79:toDict*/
4415844188 }
4415944189
4416044190 /**
@@ -44202,7 +44232,7 @@ class Obj5 {
4420244232 * @return ToJSON
4420344233 */
4420444234 public static function sampleToJSON(): ToJSON {
44205- return ToJSON::sample(); /*76:toJSON*/
44235+ return ToJSON::sample(); /*80:toJSON*/
4420644236 }
4420744237
4420844238 /**
@@ -44250,7 +44280,7 @@ class Obj5 {
4425044280 * @return ToString
4425144281 */
4425244282 public static function sampleToString(): ToString {
44253- return ToString::sample(); /*77:toString*/
44283+ return ToString::sample(); /*81:toString*/
4425444284 }
4425544285
4425644286 /**
@@ -44298,7 +44328,7 @@ class Obj5 {
4429844328 * @return TopLevelClass
4429944329 */
4430044330 public static function sampleTopLevel(): TopLevelClass {
44301- return TopLevelClass::sample(); /*78:topLevel*/
44331+ return TopLevelClass::sample(); /*82:topLevel*/
4430244332 }
4430344333
4430444334 /**
@@ -44346,7 +44376,7 @@ class Obj5 {
4434644376 * @return Transient
4434744377 */
4434844378 public static function sampleTransient(): Transient {
44349- return Transient::sample(); /*79:transient*/
44379+ return Transient::sample(); /*83:transient*/
4435044380 }
4435144381
4435244382 /**
@@ -44394,7 +44424,7 @@ class Obj5 {
4439444424 * @return TrueClass
4439544425 */
4439644426 public static function sampleTrue(): TrueClass {
44397- return TrueClass::sample(); /*80:true*/
44427+ return TrueClass::sample(); /*84:true*/
4439844428 }
4439944429
4440044430 /**
@@ -44442,7 +44472,7 @@ class Obj5 {
4444244472 * @return TryClass
4444344473 */
4444444474 public static function sampleTry(): TryClass {
44445- return TryClass::sample(); /*81:try*/
44475+ return TryClass::sample(); /*85:try*/
4444644476 }
4444744477
4444844478 /**
@@ -44490,7 +44520,7 @@ class Obj5 {
4449044520 * @return Type
4449144521 */
4449244522 public static function sampleType(): Type {
44493- return Type::sample(); /*82:type*/
44523+ return Type::sample(); /*86:type*/
4449444524 }
4449544525
4449644526 /**
@@ -44538,7 +44568,7 @@ class Obj5 {
4453844568 * @return Typealias
4453944569 */
4454044570 public static function sampleTypealias(): Typealias {
44541- return Typealias::sample(); /*83:typealias*/
44571+ return Typealias::sample(); /*87:typealias*/
4454244572 }
4454344573
4454444574 /**
@@ -44586,7 +44616,7 @@ class Obj5 {
4458644616 * @return Typedef
4458744617 */
4458844618 public static function sampleTypedef(): Typedef {
44589- return Typedef::sample(); /*84:typedef*/
44619+ return Typedef::sample(); /*88:typedef*/
4459044620 }
4459144621
4459244622 /**
@@ -44634,7 +44664,7 @@ class Obj5 {
4463444664 * @return Typeid
4463544665 */
4463644666 public static function sampleTypeid(): Typeid {
44637- return Typeid::sample(); /*85:typeid*/
44667+ return Typeid::sample(); /*89:typeid*/
4463844668 }
4463944669
4464044670 /**
@@ -44682,7 +44712,7 @@ class Obj5 {
4468244712 * @return Typename
4468344713 */
4468444714 public static function sampleTypename(): Typename {
44685- return Typename::sample(); /*86:typename*/
44715+ return Typename::sample(); /*90:typename*/
4468644716 }
4468744717
4468844718 /**
@@ -44730,7 +44760,7 @@ class Obj5 {
4473044760 * @return Typeof
4473144761 */
4473244762 public static function sampleTypeof(): Typeof {
44733- return Typeof::sample(); /*87:typeof*/
44763+ return Typeof::sample(); /*91:typeof*/
4473444764 }
4473544765
4473644766 /**
@@ -44778,7 +44808,7 @@ class Obj5 {
4477844808 * @return Uint
4477944809 */
4478044810 public static function sampleUint(): Uint {
44781- return Uint::sample(); /*88:uint*/
44811+ return Uint::sample(); /*92:uint*/
4478244812 }
4478344813
4478444814 /**
@@ -44826,7 +44856,7 @@ class Obj5 {
4482644856 * @return Ulong
4482744857 */
4482844858 public static function sampleUlong(): Ulong {
44829- return Ulong::sample(); /*89:ulong*/
44859+ return Ulong::sample(); /*93:ulong*/
4483044860 }
4483144861
4483244862 /**
@@ -44874,7 +44904,7 @@ class Obj5 {
4487444904 * @return Unchecked
4487544905 */
4487644906 public static function sampleUnchecked(): Unchecked {
44877- return Unchecked::sample(); /*90:unchecked*/
44907+ return Unchecked::sample(); /*94:unchecked*/
4487844908 }
4487944909
4488044910 /**
@@ -44922,247 +44952,7 @@ class Obj5 {
4492244952 * @return Undefined
4492344953 */
4492444954 public static function sampleUndefined(): Undefined {
44925- return Undefined::sample(); /*91:undefined*/
44926- }
44927-
44928- /**
44929- * @param stdClass $value
44930- * @throws Exception
44931- * @return Union
44932- */
44933- public static function fromUnion(stdClass $value): Union {
44934- return Union::from($value); /*class*/
44935- }
44936-
44937- /**
44938- * @throws Exception
44939- * @return stdClass
44940- */
44941- public function toUnion(): stdClass {
44942- if (Obj5::validateUnion($this->union)) {
44943- return $this->union->to(); /*class*/
44944- }
44945- throw new Exception('never get to this Obj5::union');
44946- }
44947-
44948- /**
44949- * @param Union
44950- * @return bool
44951- * @throws Exception
44952- */
44953- public static function validateUnion(Union $value): bool {
44954- $value->validate();
44955- return true;
44956- }
44957-
44958- /**
44959- * @throws Exception
44960- * @return Union
44961- */
44962- public function getUnion(): Union {
44963- if (Obj5::validateUnion($this->union)) {
44964- return $this->union;
44965- }
44966- throw new Exception('never get to getUnion Obj5::union');
44967- }
44968-
44969- /**
44970- * @return Union
44971- */
44972- public static function sampleUnion(): Union {
44973- return Union::sample(); /*92:union*/
44974- }
44975-
44976- /**
44977- * @param stdClass $value
44978- * @throws Exception
44979- * @return UnmarshalJSON
44980- */
44981- public static function fromUnmarshalJSON(stdClass $value): UnmarshalJSON {
44982- return UnmarshalJSON::from($value); /*class*/
44983- }
44984-
44985- /**
44986- * @throws Exception
44987- * @return stdClass
44988- */
44989- public function toUnmarshalJSON(): stdClass {
44990- if (Obj5::validateUnmarshalJSON($this->unmarshalJSON)) {
44991- return $this->unmarshalJSON->to(); /*class*/
44992- }
44993- throw new Exception('never get to this Obj5::unmarshalJSON');
44994- }
44995-
44996- /**
44997- * @param UnmarshalJSON
44998- * @return bool
44999- * @throws Exception
45000- */
45001- public static function validateUnmarshalJSON(UnmarshalJSON $value): bool {
45002- $value->validate();
45003- return true;
45004- }
45005-
45006- /**
45007- * @throws Exception
45008- * @return UnmarshalJSON
45009- */
45010- public function getUnmarshalJSON(): UnmarshalJSON {
45011- if (Obj5::validateUnmarshalJSON($this->unmarshalJSON)) {
45012- return $this->unmarshalJSON;
45013- }
45014- throw new Exception('never get to getUnmarshalJSON Obj5::unmarshalJSON');
45015- }
45016-
45017- /**
45018- * @return UnmarshalJSON
45019- */
45020- public static function sampleUnmarshalJSON(): UnmarshalJSON {
45021- return UnmarshalJSON::sample(); /*93:unmarshalJSON*/
45022- }
45023-
45024- /**
45025- * @param stdClass $value
45026- * @throws Exception
45027- * @return Unowned
45028- */
45029- public static function fromUnowned(stdClass $value): Unowned {
45030- return Unowned::from($value); /*class*/
45031- }
45032-
45033- /**
45034- * @throws Exception
45035- * @return stdClass
45036- */
45037- public function toUnowned(): stdClass {
45038- if (Obj5::validateUnowned($this->unowned)) {
45039- return $this->unowned->to(); /*class*/
45040- }
45041- throw new Exception('never get to this Obj5::unowned');
45042- }
45043-
45044- /**
45045- * @param Unowned
45046- * @return bool
45047- * @throws Exception
45048- */
45049- public static function validateUnowned(Unowned $value): bool {
45050- $value->validate();
45051- return true;
45052- }
45053-
45054- /**
45055- * @throws Exception
45056- * @return Unowned
45057- */
45058- public function getUnowned(): Unowned {
45059- if (Obj5::validateUnowned($this->unowned)) {
45060- return $this->unowned;
45061- }
45062- throw new Exception('never get to getUnowned Obj5::unowned');
45063- }
45064-
45065- /**
45066- * @return Unowned
45067- */
45068- public static function sampleUnowned(): Unowned {
45069- return Unowned::sample(); /*94:unowned*/
45070- }
45071-
45072- /**
45073- * @param stdClass $value
45074- * @throws Exception
45075- * @return Unsafe
45076- */
45077- public static function fromUnsafe(stdClass $value): Unsafe {
45078- return Unsafe::from($value); /*class*/
45079- }
45080-
45081- /**
45082- * @throws Exception
45083- * @return stdClass
45084- */
45085- public function toUnsafe(): stdClass {
45086- if (Obj5::validateUnsafe($this->unsafe)) {
45087- return $this->unsafe->to(); /*class*/
45088- }
45089- throw new Exception('never get to this Obj5::unsafe');
45090- }
45091-
45092- /**
45093- * @param Unsafe
45094- * @return bool
45095- * @throws Exception
45096- */
45097- public static function validateUnsafe(Unsafe $value): bool {
45098- $value->validate();
45099- return true;
45100- }
45101-
45102- /**
45103- * @throws Exception
45104- * @return Unsafe
45105- */
45106- public function getUnsafe(): Unsafe {
45107- if (Obj5::validateUnsafe($this->unsafe)) {
45108- return $this->unsafe;
45109- }
45110- throw new Exception('never get to getUnsafe Obj5::unsafe');
45111- }
45112-
45113- /**
45114- * @return Unsafe
45115- */
45116- public static function sampleUnsafe(): Unsafe {
45117- return Unsafe::sample(); /*95:unsafe*/
45118- }
45119-
45120- /**
45121- * @param stdClass $value
45122- * @throws Exception
45123- * @return UseSerializers
45124- */
45125- public static function fromUseSerializers(stdClass $value): UseSerializers {
45126- return UseSerializers::from($value); /*class*/
45127- }
45128-
45129- /**
45130- * @throws Exception
45131- * @return stdClass
45132- */
45133- public function toUseSerializers(): stdClass {
45134- if (Obj5::validateUseSerializers($this->useSerializers)) {
45135- return $this->useSerializers->to(); /*class*/
45136- }
45137- throw new Exception('never get to this Obj5::useSerializers');
45138- }
45139-
45140- /**
45141- * @param UseSerializers
45142- * @return bool
45143- * @throws Exception
45144- */
45145- public static function validateUseSerializers(UseSerializers $value): bool {
45146- $value->validate();
45147- return true;
45148- }
45149-
45150- /**
45151- * @throws Exception
45152- * @return UseSerializers
45153- */
45154- public function getUseSerializers(): UseSerializers {
45155- if (Obj5::validateUseSerializers($this->useSerializers)) {
45156- return $this->useSerializers;
45157- }
45158- throw new Exception('never get to getUseSerializers Obj5::useSerializers');
45159- }
45160-
45161- /**
45162- * @return UseSerializers
45163- */
45164- public static function sampleUseSerializers(): UseSerializers {
45165- return UseSerializers::sample(); /*96:useSerializers*/
44955+ return Undefined::sample(); /*95:undefined*/
4516644956 }
4516744957
4516844958 /**
@@ -45177,6 +44967,10 @@ class Obj5 {
4517744967 || Obj5::validateObj5True($this->obj5True)
4517844968 || Obj5::validateObj5Type($this->obj5Type)
4517944969 || Obj5::validatePrimitiveKind($this->primitiveKind)
44970+ || Obj5::validateS($this->s)
44971+ || Obj5::validateSbyte($this->sbyte)
44972+ || Obj5::validateSealed($this->sealed)
44973+ || Obj5::validateSel($this->sel)
4518044974 || Obj5::validateSelect($this->select)
4518144975 || Obj5::validateSelf($this->self)
4518244976 || Obj5::validateSendable($this->sendable)
@@ -45230,12 +45024,7 @@ class Obj5 {
4523045024 || Obj5::validateUint($this->uint)
4523145025 || Obj5::validateUlong($this->ulong)
4523245026 || Obj5::validateUnchecked($this->unchecked)
45233- || Obj5::validateUndefined($this->undefined)
45234- || Obj5::validateUnion($this->union)
45235- || Obj5::validateUnmarshalJSON($this->unmarshalJSON)
45236- || Obj5::validateUnowned($this->unowned)
45237- || Obj5::validateUnsafe($this->unsafe)
45238- || Obj5::validateUseSerializers($this->useSerializers);
45027+ || Obj5::validateUndefined($this->undefined);
4523945028 }
4524045029
4524145030 /**
@@ -45251,6 +45040,10 @@ class Obj5 {
4525145040 $out->{'true'} = $this->toObj5True();
4525245041 $out->{'type'} = $this->toObj5Type();
4525345042 $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
45043+ $out->{'s'} = $this->toS();
45044+ $out->{'sbyte'} = $this->toSbyte();
45045+ $out->{'sealed'} = $this->toSealed();
45046+ $out->{'SEL'} = $this->toSel();
4525445047 $out->{'select'} = $this->toSelect();
4525545048 $out->{'Self'} = $this->toSelf();
4525645049 $out->{'Sendable'} = $this->toSendable();
@@ -45305,11 +45098,6 @@ class Obj5 {
4530545098 $out->{'ulong'} = $this->toUlong();
4530645099 $out->{'unchecked'} = $this->toUnchecked();
4530745100 $out->{'undefined'} = $this->toUndefined();
45308- $out->{'union'} = $this->toUnion();
45309- $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON();
45310- $out->{'unowned'} = $this->toUnowned();
45311- $out->{'unsafe'} = $this->toUnsafe();
45312- $out->{'UseSerializers'} = $this->toUseSerializers();
4531345101 return $out;
4531445102 }
4531545103
@@ -45340,6 +45128,18 @@ class Obj5 {
4534045128 if (!property_exists($obj, 'PrimitiveKind')) {
4534145129 throw new Exception("Missing required property");
4534245130 }
45131+ if (!property_exists($obj, 's')) {
45132+ throw new Exception("Missing required property");
45133+ }
45134+ if (!property_exists($obj, 'sbyte')) {
45135+ throw new Exception("Missing required property");
45136+ }
45137+ if (!property_exists($obj, 'sealed')) {
45138+ throw new Exception("Missing required property");
45139+ }
45140+ if (!property_exists($obj, 'SEL')) {
45141+ throw new Exception("Missing required property");
45142+ }
4534345143 if (!property_exists($obj, 'select')) {
4534445144 throw new Exception("Missing required property");
4534545145 }
@@ -45502,176 +45302,866 @@ class Obj5 {
4550245302 if (!property_exists($obj, 'undefined')) {
4550345303 throw new Exception("Missing required property");
4550445304 }
45505- if (!property_exists($obj, 'union')) {
45506- throw new Exception("Missing required property");
45507- }
45508- if (!property_exists($obj, 'UnmarshalJSON')) {
45509- throw new Exception("Missing required property");
45510- }
45511- if (!property_exists($obj, 'unowned')) {
45512- throw new Exception("Missing required property");
45305+ return new Obj5(
45306+ Obj5::fromDummy($obj->{'dummy'})
45307+ ,Obj5::fromKSerializer($obj->{'KSerializer'})
45308+ ,Obj5::fromObj5Self($obj->{'self'})
45309+ ,Obj5::fromObj5This($obj->{'this'})
45310+ ,Obj5::fromObj5True($obj->{'true'})
45311+ ,Obj5::fromObj5Type($obj->{'type'})
45312+ ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
45313+ ,Obj5::fromS($obj->{'s'})
45314+ ,Obj5::fromSbyte($obj->{'sbyte'})
45315+ ,Obj5::fromSealed($obj->{'sealed'})
45316+ ,Obj5::fromSel($obj->{'SEL'})
45317+ ,Obj5::fromSelect($obj->{'select'})
45318+ ,Obj5::fromSelf($obj->{'Self'})
45319+ ,Obj5::fromSendable($obj->{'Sendable'})
45320+ ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'})
45321+ ,Obj5::fromSerialName($obj->{'SerialName'})
45322+ ,Obj5::fromSerializable($obj->{'Serializable'})
45323+ ,Obj5::fromSerialize($obj->{'serialize'})
45324+ ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'})
45325+ ,Obj5::fromSet($obj->{'set'})
45326+ ,Obj5::fromShort($obj->{'short'})
45327+ ,Obj5::fromSigned($obj->{'signed'})
45328+ ,Obj5::fromSimpleModule($obj->{'SimpleModule'})
45329+ ,Obj5::fromSizeof($obj->{'sizeof'})
45330+ ,Obj5::fromStackalloc($obj->{'stackalloc'})
45331+ ,Obj5::fromStandards($obj->{'Standards'})
45332+ ,Obj5::fromStatic($obj->{'static'})
45333+ ,Obj5::fromStaticAssert($obj->{'static_assert'})
45334+ ,Obj5::fromStaticCast($obj->{'static_cast'})
45335+ ,Obj5::fromStdDeserializer($obj->{'StdDeserializer'})
45336+ ,Obj5::fromStdSerializer($obj->{'StdSerializer'})
45337+ ,Obj5::fromStrictfp($obj->{'strictfp'})
45338+ ,Obj5::fromString($obj->{'string'})
45339+ ,Obj5::fromStruct($obj->{'struct'})
45340+ ,Obj5::fromSubscript($obj->{'subscript'})
45341+ ,Obj5::fromSuper($obj->{'super'})
45342+ ,Obj5::fromSwitch($obj->{'switch'})
45343+ ,Obj5::fromSymbol($obj->{'symbol'})
45344+ ,Obj5::fromSynchronized($obj->{'synchronized'})
45345+ ,Obj5::fromSystem($obj->{'system'})
45346+ ,Obj5::fromTemplate($obj->{'template'})
45347+ ,Obj5::fromThen($obj->{'then'})
45348+ ,Obj5::fromThreadLocal($obj->{'thread_local'})
45349+ ,Obj5::fromThrow($obj->{'throw'})
45350+ ,Obj5::fromThrows($obj->{'throws'})
45351+ ,Obj5::fromTimeOnly($obj->{'TimeOnly'})
45352+ ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
45353+ ,Obj5::fromTimeZone($obj->{'TimeZone'})
45354+ ,Obj5::fromToDict($obj->{'to_dict'})
45355+ ,Obj5::fromToJSON($obj->{'to_json'})
45356+ ,Obj5::fromToString($obj->{'toString'})
45357+ ,Obj5::fromTopLevel($obj->{'top_level'})
45358+ ,Obj5::fromTransient($obj->{'transient'})
45359+ ,Obj5::fromTrue($obj->{'True'})
45360+ ,Obj5::fromTry($obj->{'try'})
45361+ ,Obj5::fromType($obj->{'Type'})
45362+ ,Obj5::fromTypealias($obj->{'typealias'})
45363+ ,Obj5::fromTypedef($obj->{'typedef'})
45364+ ,Obj5::fromTypeid($obj->{'typeid'})
45365+ ,Obj5::fromTypename($obj->{'typename'})
45366+ ,Obj5::fromTypeof($obj->{'typeof'})
45367+ ,Obj5::fromUint($obj->{'uint'})
45368+ ,Obj5::fromUlong($obj->{'ulong'})
45369+ ,Obj5::fromUnchecked($obj->{'unchecked'})
45370+ ,Obj5::fromUndefined($obj->{'undefined'})
45371+ );
45372+ }
45373+
45374+ /**
45375+ * @return Obj5
45376+ */
45377+ public static function sample(): Obj5 {
45378+ return new Obj5(
45379+ Obj5::sampleDummy()
45380+ ,Obj5::sampleKSerializer()
45381+ ,Obj5::sampleObj5Self()
45382+ ,Obj5::sampleObj5This()
45383+ ,Obj5::sampleObj5True()
45384+ ,Obj5::sampleObj5Type()
45385+ ,Obj5::samplePrimitiveKind()
45386+ ,Obj5::sampleS()
45387+ ,Obj5::sampleSbyte()
45388+ ,Obj5::sampleSealed()
45389+ ,Obj5::sampleSel()
45390+ ,Obj5::sampleSelect()
45391+ ,Obj5::sampleSelf()
45392+ ,Obj5::sampleSendable()
45393+ ,Obj5::sampleSerialDescriptor()
45394+ ,Obj5::sampleSerialName()
45395+ ,Obj5::sampleSerializable()
45396+ ,Obj5::sampleSerialize()
45397+ ,Obj5::sampleSerializerProvider()
45398+ ,Obj5::sampleSet()
45399+ ,Obj5::sampleShort()
45400+ ,Obj5::sampleSigned()
45401+ ,Obj5::sampleSimpleModule()
45402+ ,Obj5::sampleSizeof()
45403+ ,Obj5::sampleStackalloc()
45404+ ,Obj5::sampleStandards()
45405+ ,Obj5::sampleStatic()
45406+ ,Obj5::sampleStaticAssert()
45407+ ,Obj5::sampleStaticCast()
45408+ ,Obj5::sampleStdDeserializer()
45409+ ,Obj5::sampleStdSerializer()
45410+ ,Obj5::sampleStrictfp()
45411+ ,Obj5::sampleString()
45412+ ,Obj5::sampleStruct()
45413+ ,Obj5::sampleSubscript()
45414+ ,Obj5::sampleSuper()
45415+ ,Obj5::sampleSwitch()
45416+ ,Obj5::sampleSymbol()
45417+ ,Obj5::sampleSynchronized()
45418+ ,Obj5::sampleSystem()
45419+ ,Obj5::sampleTemplate()
45420+ ,Obj5::sampleThen()
45421+ ,Obj5::sampleThreadLocal()
45422+ ,Obj5::sampleThrow()
45423+ ,Obj5::sampleThrows()
45424+ ,Obj5::sampleTimeOnly()
45425+ ,Obj5::sampleTimeOnlyConverter()
45426+ ,Obj5::sampleTimeZone()
45427+ ,Obj5::sampleToDict()
45428+ ,Obj5::sampleToJSON()
45429+ ,Obj5::sampleToString()
45430+ ,Obj5::sampleTopLevel()
45431+ ,Obj5::sampleTransient()
45432+ ,Obj5::sampleTrue()
45433+ ,Obj5::sampleTry()
45434+ ,Obj5::sampleType()
45435+ ,Obj5::sampleTypealias()
45436+ ,Obj5::sampleTypedef()
45437+ ,Obj5::sampleTypeid()
45438+ ,Obj5::sampleTypename()
45439+ ,Obj5::sampleTypeof()
45440+ ,Obj5::sampleUint()
45441+ ,Obj5::sampleUlong()
45442+ ,Obj5::sampleUnchecked()
45443+ ,Obj5::sampleUndefined()
45444+ );
45445+ }
45446+}
45447+
45448+// This is an autogenerated file:KSerializer
45449+
45450+class KSerializer {
45451+ private int $kSerializer; // json:KSerializer Required
45452+
45453+ /**
45454+ * @param int $kSerializer
45455+ */
45456+ public function __construct(int $kSerializer) {
45457+ $this->kSerializer = $kSerializer;
45458+ }
45459+
45460+ /**
45461+ * @param int $value
45462+ * @throws Exception
45463+ * @return int
45464+ */
45465+ public static function fromKSerializer(int $value): int {
45466+ return $value; /*int*/
45467+ }
45468+
45469+ /**
45470+ * @throws Exception
45471+ * @return int
45472+ */
45473+ public function toKSerializer(): int {
45474+ if (KSerializer::validateKSerializer($this->kSerializer)) {
45475+ return $this->kSerializer; /*int*/
45476+ }
45477+ throw new Exception('never get to this KSerializer::kSerializer');
45478+ }
45479+
45480+ /**
45481+ * @param int
45482+ * @return bool
45483+ * @throws Exception
45484+ */
45485+ public static function validateKSerializer(int $value): bool {
45486+ return true;
45487+ }
45488+
45489+ /**
45490+ * @throws Exception
45491+ * @return int
45492+ */
45493+ public function getKSerializer(): int {
45494+ if (KSerializer::validateKSerializer($this->kSerializer)) {
45495+ return $this->kSerializer;
45496+ }
45497+ throw new Exception('never get to getKSerializer KSerializer::kSerializer');
45498+ }
45499+
45500+ /**
45501+ * @return int
45502+ */
45503+ public static function sampleKSerializer(): int {
45504+ return 31; /*31:kSerializer*/
45505+ }
45506+
45507+ /**
45508+ * @throws Exception
45509+ * @return bool
45510+ */
45511+ public function validate(): bool {
45512+ return KSerializer::validateKSerializer($this->kSerializer);
45513+ }
45514+
45515+ /**
45516+ * @return stdClass
45517+ * @throws Exception
45518+ */
45519+ public function to(): stdClass {
45520+ $out = new stdClass();
45521+ $out->{'KSerializer'} = $this->toKSerializer();
45522+ return $out;
45523+ }
45524+
45525+ /**
45526+ * @param stdClass $obj
45527+ * @return KSerializer
45528+ * @throws Exception
45529+ */
45530+ public static function from(stdClass $obj): KSerializer {
45531+ if (!property_exists($obj, 'KSerializer')) {
45532+ throw new Exception("Missing required property");
45533+ }
45534+ return new KSerializer(
45535+ KSerializer::fromKSerializer($obj->{'KSerializer'})
45536+ );
45537+ }
45538+
45539+ /**
45540+ * @return KSerializer
45541+ */
45542+ public static function sample(): KSerializer {
45543+ return new KSerializer(
45544+ KSerializer::sampleKSerializer()
45545+ );
45546+ }
45547+}
45548+
45549+// This is an autogenerated file:Obj5Self
45550+
45551+class Obj5Self {
45552+ private int $self; // json:self Required
45553+
45554+ /**
45555+ * @param int $self
45556+ */
45557+ public function __construct(int $self) {
45558+ $this->self = $self;
45559+ }
45560+
45561+ /**
45562+ * @param int $value
45563+ * @throws Exception
45564+ * @return int
45565+ */
45566+ public static function fromSelf(int $value): int {
45567+ return $value; /*int*/
45568+ }
45569+
45570+ /**
45571+ * @throws Exception
45572+ * @return int
45573+ */
45574+ public function toSelf(): int {
45575+ if (Obj5Self::validateSelf($this->self)) {
45576+ return $this->self; /*int*/
45577+ }
45578+ throw new Exception('never get to this Obj5Self::self');
45579+ }
45580+
45581+ /**
45582+ * @param int
45583+ * @return bool
45584+ * @throws Exception
45585+ */
45586+ public static function validateSelf(int $value): bool {
45587+ return true;
45588+ }
45589+
45590+ /**
45591+ * @throws Exception
45592+ * @return int
45593+ */
45594+ public function getSelf(): int {
45595+ if (Obj5Self::validateSelf($this->self)) {
45596+ return $this->self;
45597+ }
45598+ throw new Exception('never get to getSelf Obj5Self::self');
45599+ }
45600+
45601+ /**
45602+ * @return int
45603+ */
45604+ public static function sampleSelf(): int {
45605+ return 31; /*31:self*/
45606+ }
45607+
45608+ /**
45609+ * @throws Exception
45610+ * @return bool
45611+ */
45612+ public function validate(): bool {
45613+ return Obj5Self::validateSelf($this->self);
45614+ }
45615+
45616+ /**
45617+ * @return stdClass
45618+ * @throws Exception
45619+ */
45620+ public function to(): stdClass {
45621+ $out = new stdClass();
45622+ $out->{'self'} = $this->toSelf();
45623+ return $out;
45624+ }
45625+
45626+ /**
45627+ * @param stdClass $obj
45628+ * @return Obj5Self
45629+ * @throws Exception
45630+ */
45631+ public static function from(stdClass $obj): Obj5Self {
45632+ if (!property_exists($obj, 'self')) {
45633+ throw new Exception("Missing required property");
45634+ }
45635+ return new Obj5Self(
45636+ Obj5Self::fromSelf($obj->{'self'})
45637+ );
45638+ }
45639+
45640+ /**
45641+ * @return Obj5Self
45642+ */
45643+ public static function sample(): Obj5Self {
45644+ return new Obj5Self(
45645+ Obj5Self::sampleSelf()
45646+ );
45647+ }
45648+}
45649+
45650+// This is an autogenerated file:This
45651+
45652+class This {
45653+ private int $thisThis; // json:this Required
45654+
45655+ /**
45656+ * @param int $thisThis
45657+ */
45658+ public function __construct(int $thisThis) {
45659+ $this->thisThis = $thisThis;
45660+ }
45661+
45662+ /**
45663+ * @param int $value
45664+ * @throws Exception
45665+ * @return int
45666+ */
45667+ public static function fromThisThis(int $value): int {
45668+ return $value; /*int*/
45669+ }
45670+
45671+ /**
45672+ * @throws Exception
45673+ * @return int
45674+ */
45675+ public function toThisThis(): int {
45676+ if (This::validateThisThis($this->thisThis)) {
45677+ return $this->thisThis; /*int*/
45678+ }
45679+ throw new Exception('never get to this This::thisThis');
45680+ }
45681+
45682+ /**
45683+ * @param int
45684+ * @return bool
45685+ * @throws Exception
45686+ */
45687+ public static function validateThisThis(int $value): bool {
45688+ return true;
45689+ }
45690+
45691+ /**
45692+ * @throws Exception
45693+ * @return int
45694+ */
45695+ public function getThisThis(): int {
45696+ if (This::validateThisThis($this->thisThis)) {
45697+ return $this->thisThis;
45698+ }
45699+ throw new Exception('never get to getThisThis This::thisThis');
45700+ }
45701+
45702+ /**
45703+ * @return int
45704+ */
45705+ public static function sampleThisThis(): int {
45706+ return 31; /*31:thisThis*/
45707+ }
45708+
45709+ /**
45710+ * @throws Exception
45711+ * @return bool
45712+ */
45713+ public function validate(): bool {
45714+ return This::validateThisThis($this->thisThis);
45715+ }
45716+
45717+ /**
45718+ * @return stdClass
45719+ * @throws Exception
45720+ */
45721+ public function to(): stdClass {
45722+ $out = new stdClass();
45723+ $out->{'this'} = $this->toThisThis();
45724+ return $out;
45725+ }
45726+
45727+ /**
45728+ * @param stdClass $obj
45729+ * @return This
45730+ * @throws Exception
45731+ */
45732+ public static function from(stdClass $obj): This {
45733+ if (!property_exists($obj, 'this')) {
45734+ throw new Exception("Missing required property");
45735+ }
45736+ return new This(
45737+ This::fromThisThis($obj->{'this'})
45738+ );
45739+ }
45740+
45741+ /**
45742+ * @return This
45743+ */
45744+ public static function sample(): This {
45745+ return new This(
45746+ This::sampleThisThis()
45747+ );
45748+ }
45749+}
45750+
45751+// This is an autogenerated file:Obj5True
45752+
45753+class Obj5True {
45754+ private int $true; // json:true Required
45755+
45756+ /**
45757+ * @param int $true
45758+ */
45759+ public function __construct(int $true) {
45760+ $this->true = $true;
45761+ }
45762+
45763+ /**
45764+ * @param int $value
45765+ * @throws Exception
45766+ * @return int
45767+ */
45768+ public static function fromTrue(int $value): int {
45769+ return $value; /*int*/
45770+ }
45771+
45772+ /**
45773+ * @throws Exception
45774+ * @return int
45775+ */
45776+ public function toTrue(): int {
45777+ if (Obj5True::validateTrue($this->true)) {
45778+ return $this->true; /*int*/
45779+ }
45780+ throw new Exception('never get to this Obj5True::true');
45781+ }
45782+
45783+ /**
45784+ * @param int
45785+ * @return bool
45786+ * @throws Exception
45787+ */
45788+ public static function validateTrue(int $value): bool {
45789+ return true;
45790+ }
45791+
45792+ /**
45793+ * @throws Exception
45794+ * @return int
45795+ */
45796+ public function getTrue(): int {
45797+ if (Obj5True::validateTrue($this->true)) {
45798+ return $this->true;
45799+ }
45800+ throw new Exception('never get to getTrue Obj5True::true');
45801+ }
45802+
45803+ /**
45804+ * @return int
45805+ */
45806+ public static function sampleTrue(): int {
45807+ return 31; /*31:true*/
45808+ }
45809+
45810+ /**
45811+ * @throws Exception
45812+ * @return bool
45813+ */
45814+ public function validate(): bool {
45815+ return Obj5True::validateTrue($this->true);
45816+ }
45817+
45818+ /**
45819+ * @return stdClass
45820+ * @throws Exception
45821+ */
45822+ public function to(): stdClass {
45823+ $out = new stdClass();
45824+ $out->{'true'} = $this->toTrue();
45825+ return $out;
45826+ }
45827+
45828+ /**
45829+ * @param stdClass $obj
45830+ * @return Obj5True
45831+ * @throws Exception
45832+ */
45833+ public static function from(stdClass $obj): Obj5True {
45834+ if (!property_exists($obj, 'true')) {
45835+ throw new Exception("Missing required property");
45836+ }
45837+ return new Obj5True(
45838+ Obj5True::fromTrue($obj->{'true'})
45839+ );
45840+ }
45841+
45842+ /**
45843+ * @return Obj5True
45844+ */
45845+ public static function sample(): Obj5True {
45846+ return new Obj5True(
45847+ Obj5True::sampleTrue()
45848+ );
45849+ }
45850+}
45851+
45852+// This is an autogenerated file:TypeClass
45853+
45854+class TypeClass {
45855+ private int $type; // json:type Required
45856+
45857+ /**
45858+ * @param int $type
45859+ */
45860+ public function __construct(int $type) {
45861+ $this->type = $type;
45862+ }
45863+
45864+ /**
45865+ * @param int $value
45866+ * @throws Exception
45867+ * @return int
45868+ */
45869+ public static function fromType(int $value): int {
45870+ return $value; /*int*/
45871+ }
45872+
45873+ /**
45874+ * @throws Exception
45875+ * @return int
45876+ */
45877+ public function toType(): int {
45878+ if (TypeClass::validateType($this->type)) {
45879+ return $this->type; /*int*/
45880+ }
45881+ throw new Exception('never get to this TypeClass::type');
45882+ }
45883+
45884+ /**
45885+ * @param int
45886+ * @return bool
45887+ * @throws Exception
45888+ */
45889+ public static function validateType(int $value): bool {
45890+ return true;
45891+ }
45892+
45893+ /**
45894+ * @throws Exception
45895+ * @return int
45896+ */
45897+ public function getType(): int {
45898+ if (TypeClass::validateType($this->type)) {
45899+ return $this->type;
45900+ }
45901+ throw new Exception('never get to getType TypeClass::type');
45902+ }
45903+
45904+ /**
45905+ * @return int
45906+ */
45907+ public static function sampleType(): int {
45908+ return 31; /*31:type*/
45909+ }
45910+
45911+ /**
45912+ * @throws Exception
45913+ * @return bool
45914+ */
45915+ public function validate(): bool {
45916+ return TypeClass::validateType($this->type);
45917+ }
45918+
45919+ /**
45920+ * @return stdClass
45921+ * @throws Exception
45922+ */
45923+ public function to(): stdClass {
45924+ $out = new stdClass();
45925+ $out->{'type'} = $this->toType();
45926+ return $out;
45927+ }
45928+
45929+ /**
45930+ * @param stdClass $obj
45931+ * @return TypeClass
45932+ * @throws Exception
45933+ */
45934+ public static function from(stdClass $obj): TypeClass {
45935+ if (!property_exists($obj, 'type')) {
45936+ throw new Exception("Missing required property");
45937+ }
45938+ return new TypeClass(
45939+ TypeClass::fromType($obj->{'type'})
45940+ );
45941+ }
45942+
45943+ /**
45944+ * @return TypeClass
45945+ */
45946+ public static function sample(): TypeClass {
45947+ return new TypeClass(
45948+ TypeClass::sampleType()
45949+ );
45950+ }
45951+}
45952+
45953+// This is an autogenerated file:PrimitiveKind
45954+
45955+class PrimitiveKind {
45956+ private int $primitiveKind; // json:PrimitiveKind Required
45957+
45958+ /**
45959+ * @param int $primitiveKind
45960+ */
45961+ public function __construct(int $primitiveKind) {
45962+ $this->primitiveKind = $primitiveKind;
45963+ }
45964+
45965+ /**
45966+ * @param int $value
45967+ * @throws Exception
45968+ * @return int
45969+ */
45970+ public static function fromPrimitiveKind(int $value): int {
45971+ return $value; /*int*/
45972+ }
45973+
45974+ /**
45975+ * @throws Exception
45976+ * @return int
45977+ */
45978+ public function toPrimitiveKind(): int {
45979+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45980+ return $this->primitiveKind; /*int*/
45981+ }
45982+ throw new Exception('never get to this PrimitiveKind::primitiveKind');
45983+ }
45984+
45985+ /**
45986+ * @param int
45987+ * @return bool
45988+ * @throws Exception
45989+ */
45990+ public static function validatePrimitiveKind(int $value): bool {
45991+ return true;
45992+ }
45993+
45994+ /**
45995+ * @throws Exception
45996+ * @return int
45997+ */
45998+ public function getPrimitiveKind(): int {
45999+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46000+ return $this->primitiveKind;
46001+ }
46002+ throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
46003+ }
46004+
46005+ /**
46006+ * @return int
46007+ */
46008+ public static function samplePrimitiveKind(): int {
46009+ return 31; /*31:primitiveKind*/
46010+ }
46011+
46012+ /**
46013+ * @throws Exception
46014+ * @return bool
46015+ */
46016+ public function validate(): bool {
46017+ return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
46018+ }
46019+
46020+ /**
46021+ * @return stdClass
46022+ * @throws Exception
46023+ */
46024+ public function to(): stdClass {
46025+ $out = new stdClass();
46026+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
46027+ return $out;
46028+ }
46029+
46030+ /**
46031+ * @param stdClass $obj
46032+ * @return PrimitiveKind
46033+ * @throws Exception
46034+ */
46035+ public static function from(stdClass $obj): PrimitiveKind {
46036+ if (!property_exists($obj, 'PrimitiveKind')) {
46037+ throw new Exception("Missing required property");
46038+ }
46039+ return new PrimitiveKind(
46040+ PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
46041+ );
46042+ }
46043+
46044+ /**
46045+ * @return PrimitiveKind
46046+ */
46047+ public static function sample(): PrimitiveKind {
46048+ return new PrimitiveKind(
46049+ PrimitiveKind::samplePrimitiveKind()
46050+ );
46051+ }
46052+}
46053+
46054+// This is an autogenerated file:S
46055+
46056+class S {
46057+ private int $s; // json:s Required
46058+
46059+ /**
46060+ * @param int $s
46061+ */
46062+ public function __construct(int $s) {
46063+ $this->s = $s;
46064+ }
46065+
46066+ /**
46067+ * @param int $value
46068+ * @throws Exception
46069+ * @return int
46070+ */
46071+ public static function fromS(int $value): int {
46072+ return $value; /*int*/
46073+ }
46074+
46075+ /**
46076+ * @throws Exception
46077+ * @return int
46078+ */
46079+ public function toS(): int {
46080+ if (S::validateS($this->s)) {
46081+ return $this->s; /*int*/
4551346082 }
45514- if (!property_exists($obj, 'unsafe')) {
45515- throw new Exception("Missing required property");
46083+ throw new Exception('never get to this S::s');
46084+ }
46085+
46086+ /**
46087+ * @param int
46088+ * @return bool
46089+ * @throws Exception
46090+ */
46091+ public static function validateS(int $value): bool {
46092+ return true;
46093+ }
46094+
46095+ /**
46096+ * @throws Exception
46097+ * @return int
46098+ */
46099+ public function getS(): int {
46100+ if (S::validateS($this->s)) {
46101+ return $this->s;
4551646102 }
45517- if (!property_exists($obj, 'UseSerializers')) {
46103+ throw new Exception('never get to getS S::s');
46104+ }
46105+
46106+ /**
46107+ * @return int
46108+ */
46109+ public static function sampleS(): int {
46110+ return 31; /*31:s*/
46111+ }
46112+
46113+ /**
46114+ * @throws Exception
46115+ * @return bool
46116+ */
46117+ public function validate(): bool {
46118+ return S::validateS($this->s);
46119+ }
46120+
46121+ /**
46122+ * @return stdClass
46123+ * @throws Exception
46124+ */
46125+ public function to(): stdClass {
46126+ $out = new stdClass();
46127+ $out->{'s'} = $this->toS();
46128+ return $out;
46129+ }
46130+
46131+ /**
46132+ * @param stdClass $obj
46133+ * @return S
46134+ * @throws Exception
46135+ */
46136+ public static function from(stdClass $obj): S {
46137+ if (!property_exists($obj, 's')) {
4551846138 throw new Exception("Missing required property");
4551946139 }
45520- return new Obj5(
45521- Obj5::fromDummy($obj->{'dummy'})
45522- ,Obj5::fromKSerializer($obj->{'KSerializer'})
45523- ,Obj5::fromObj5Self($obj->{'self'})
45524- ,Obj5::fromObj5This($obj->{'this'})
45525- ,Obj5::fromObj5True($obj->{'true'})
45526- ,Obj5::fromObj5Type($obj->{'type'})
45527- ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
45528- ,Obj5::fromSelect($obj->{'select'})
45529- ,Obj5::fromSelf($obj->{'Self'})
45530- ,Obj5::fromSendable($obj->{'Sendable'})
45531- ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'})
45532- ,Obj5::fromSerialName($obj->{'SerialName'})
45533- ,Obj5::fromSerializable($obj->{'Serializable'})
45534- ,Obj5::fromSerialize($obj->{'serialize'})
45535- ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'})
45536- ,Obj5::fromSet($obj->{'set'})
45537- ,Obj5::fromShort($obj->{'short'})
45538- ,Obj5::fromSigned($obj->{'signed'})
45539- ,Obj5::fromSimpleModule($obj->{'SimpleModule'})
45540- ,Obj5::fromSizeof($obj->{'sizeof'})
45541- ,Obj5::fromStackalloc($obj->{'stackalloc'})
45542- ,Obj5::fromStandards($obj->{'Standards'})
45543- ,Obj5::fromStatic($obj->{'static'})
45544- ,Obj5::fromStaticAssert($obj->{'static_assert'})
45545- ,Obj5::fromStaticCast($obj->{'static_cast'})
45546- ,Obj5::fromStdDeserializer($obj->{'StdDeserializer'})
45547- ,Obj5::fromStdSerializer($obj->{'StdSerializer'})
45548- ,Obj5::fromStrictfp($obj->{'strictfp'})
45549- ,Obj5::fromString($obj->{'string'})
45550- ,Obj5::fromStruct($obj->{'struct'})
45551- ,Obj5::fromSubscript($obj->{'subscript'})
45552- ,Obj5::fromSuper($obj->{'super'})
45553- ,Obj5::fromSwitch($obj->{'switch'})
45554- ,Obj5::fromSymbol($obj->{'symbol'})
45555- ,Obj5::fromSynchronized($obj->{'synchronized'})
45556- ,Obj5::fromSystem($obj->{'system'})
45557- ,Obj5::fromTemplate($obj->{'template'})
45558- ,Obj5::fromThen($obj->{'then'})
45559- ,Obj5::fromThreadLocal($obj->{'thread_local'})
45560- ,Obj5::fromThrow($obj->{'throw'})
45561- ,Obj5::fromThrows($obj->{'throws'})
45562- ,Obj5::fromTimeOnly($obj->{'TimeOnly'})
45563- ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
45564- ,Obj5::fromTimeZone($obj->{'TimeZone'})
45565- ,Obj5::fromToDict($obj->{'to_dict'})
45566- ,Obj5::fromToJSON($obj->{'to_json'})
45567- ,Obj5::fromToString($obj->{'toString'})
45568- ,Obj5::fromTopLevel($obj->{'top_level'})
45569- ,Obj5::fromTransient($obj->{'transient'})
45570- ,Obj5::fromTrue($obj->{'True'})
45571- ,Obj5::fromTry($obj->{'try'})
45572- ,Obj5::fromType($obj->{'Type'})
45573- ,Obj5::fromTypealias($obj->{'typealias'})
45574- ,Obj5::fromTypedef($obj->{'typedef'})
45575- ,Obj5::fromTypeid($obj->{'typeid'})
45576- ,Obj5::fromTypename($obj->{'typename'})
45577- ,Obj5::fromTypeof($obj->{'typeof'})
45578- ,Obj5::fromUint($obj->{'uint'})
45579- ,Obj5::fromUlong($obj->{'ulong'})
45580- ,Obj5::fromUnchecked($obj->{'unchecked'})
45581- ,Obj5::fromUndefined($obj->{'undefined'})
45582- ,Obj5::fromUnion($obj->{'union'})
45583- ,Obj5::fromUnmarshalJSON($obj->{'UnmarshalJSON'})
45584- ,Obj5::fromUnowned($obj->{'unowned'})
45585- ,Obj5::fromUnsafe($obj->{'unsafe'})
45586- ,Obj5::fromUseSerializers($obj->{'UseSerializers'})
46140+ return new S(
46141+ S::fromS($obj->{'s'})
4558746142 );
4558846143 }
4558946144
4559046145 /**
45591- * @return Obj5
46146+ * @return S
4559246147 */
45593- public static function sample(): Obj5 {
45594- return new Obj5(
45595- Obj5::sampleDummy()
45596- ,Obj5::sampleKSerializer()
45597- ,Obj5::sampleObj5Self()
45598- ,Obj5::sampleObj5This()
45599- ,Obj5::sampleObj5True()
45600- ,Obj5::sampleObj5Type()
45601- ,Obj5::samplePrimitiveKind()
45602- ,Obj5::sampleSelect()
45603- ,Obj5::sampleSelf()
45604- ,Obj5::sampleSendable()
45605- ,Obj5::sampleSerialDescriptor()
45606- ,Obj5::sampleSerialName()
45607- ,Obj5::sampleSerializable()
45608- ,Obj5::sampleSerialize()
45609- ,Obj5::sampleSerializerProvider()
45610- ,Obj5::sampleSet()
45611- ,Obj5::sampleShort()
45612- ,Obj5::sampleSigned()
45613- ,Obj5::sampleSimpleModule()
45614- ,Obj5::sampleSizeof()
45615- ,Obj5::sampleStackalloc()
45616- ,Obj5::sampleStandards()
45617- ,Obj5::sampleStatic()
45618- ,Obj5::sampleStaticAssert()
45619- ,Obj5::sampleStaticCast()
45620- ,Obj5::sampleStdDeserializer()
45621- ,Obj5::sampleStdSerializer()
45622- ,Obj5::sampleStrictfp()
45623- ,Obj5::sampleString()
45624- ,Obj5::sampleStruct()
45625- ,Obj5::sampleSubscript()
45626- ,Obj5::sampleSuper()
45627- ,Obj5::sampleSwitch()
45628- ,Obj5::sampleSymbol()
45629- ,Obj5::sampleSynchronized()
45630- ,Obj5::sampleSystem()
45631- ,Obj5::sampleTemplate()
45632- ,Obj5::sampleThen()
45633- ,Obj5::sampleThreadLocal()
45634- ,Obj5::sampleThrow()
45635- ,Obj5::sampleThrows()
45636- ,Obj5::sampleTimeOnly()
45637- ,Obj5::sampleTimeOnlyConverter()
45638- ,Obj5::sampleTimeZone()
45639- ,Obj5::sampleToDict()
45640- ,Obj5::sampleToJSON()
45641- ,Obj5::sampleToString()
45642- ,Obj5::sampleTopLevel()
45643- ,Obj5::sampleTransient()
45644- ,Obj5::sampleTrue()
45645- ,Obj5::sampleTry()
45646- ,Obj5::sampleType()
45647- ,Obj5::sampleTypealias()
45648- ,Obj5::sampleTypedef()
45649- ,Obj5::sampleTypeid()
45650- ,Obj5::sampleTypename()
45651- ,Obj5::sampleTypeof()
45652- ,Obj5::sampleUint()
45653- ,Obj5::sampleUlong()
45654- ,Obj5::sampleUnchecked()
45655- ,Obj5::sampleUndefined()
45656- ,Obj5::sampleUnion()
45657- ,Obj5::sampleUnmarshalJSON()
45658- ,Obj5::sampleUnowned()
45659- ,Obj5::sampleUnsafe()
45660- ,Obj5::sampleUseSerializers()
46148+ public static function sample(): S {
46149+ return new S(
46150+ S::sampleS()
4566146151 );
4566246152 }
4566346153 }
4566446154
45665-// This is an autogenerated file:KSerializer
46155+// This is an autogenerated file:Sbyte
4566646156
45667-class KSerializer {
45668- private int $kSerializer; // json:KSerializer Required
46157+class Sbyte {
46158+ private int $sbyte; // json:sbyte Required
4566946159
4567046160 /**
45671- * @param int $kSerializer
46161+ * @param int $sbyte
4567246162 */
45673- public function __construct(int $kSerializer) {
45674- $this->kSerializer = $kSerializer;
46163+ public function __construct(int $sbyte) {
46164+ $this->sbyte = $sbyte;
4567546165 }
4567646166
4567746167 /**
@@ -45679,7 +46169,7 @@ class KSerializer {
4567946169 * @throws Exception
4568046170 * @return int
4568146171 */
45682- public static function fromKSerializer(int $value): int {
46172+ public static function fromSbyte(int $value): int {
4568346173 return $value; /*int*/
4568446174 }
4568546175
@@ -45687,11 +46177,11 @@ class KSerializer {
4568746177 * @throws Exception
4568846178 * @return int
4568946179 */
45690- public function toKSerializer(): int {
45691- if (KSerializer::validateKSerializer($this->kSerializer)) {
45692- return $this->kSerializer; /*int*/
46180+ public function toSbyte(): int {
46181+ if (Sbyte::validateSbyte($this->sbyte)) {
46182+ return $this->sbyte; /*int*/
4569346183 }
45694- throw new Exception('never get to this KSerializer::kSerializer');
46184+ throw new Exception('never get to this Sbyte::sbyte');
4569546185 }
4569646186
4569746187 /**
@@ -45699,7 +46189,7 @@ class KSerializer {
4569946189 * @return bool
4570046190 * @throws Exception
4570146191 */
45702- public static function validateKSerializer(int $value): bool {
46192+ public static function validateSbyte(int $value): bool {
4570346193 return true;
4570446194 }
4570546195
@@ -45707,18 +46197,18 @@ class KSerializer {
4570746197 * @throws Exception
4570846198 * @return int
4570946199 */
45710- public function getKSerializer(): int {
45711- if (KSerializer::validateKSerializer($this->kSerializer)) {
45712- return $this->kSerializer;
46200+ public function getSbyte(): int {
46201+ if (Sbyte::validateSbyte($this->sbyte)) {
46202+ return $this->sbyte;
4571346203 }
45714- throw new Exception('never get to getKSerializer KSerializer::kSerializer');
46204+ throw new Exception('never get to getSbyte Sbyte::sbyte');
4571546205 }
4571646206
4571746207 /**
4571846208 * @return int
4571946209 */
45720- public static function sampleKSerializer(): int {
45721- return 31; /*31:kSerializer*/
46210+ public static function sampleSbyte(): int {
46211+ return 31; /*31:sbyte*/
4572246212 }
4572346213
4572446214 /**
@@ -45726,7 +46216,7 @@ class KSerializer {
4572646216 * @return bool
4572746217 */
4572846218 public function validate(): bool {
45729- return KSerializer::validateKSerializer($this->kSerializer);
46219+ return Sbyte::validateSbyte($this->sbyte);
4573046220 }
4573146221
4573246222 /**
@@ -45735,44 +46225,44 @@ class KSerializer {
4573546225 */
4573646226 public function to(): stdClass {
4573746227 $out = new stdClass();
45738- $out->{'KSerializer'} = $this->toKSerializer();
46228+ $out->{'sbyte'} = $this->toSbyte();
4573946229 return $out;
4574046230 }
4574146231
4574246232 /**
4574346233 * @param stdClass $obj
45744- * @return KSerializer
46234+ * @return Sbyte
4574546235 * @throws Exception
4574646236 */
45747- public static function from(stdClass $obj): KSerializer {
45748- if (!property_exists($obj, 'KSerializer')) {
46237+ public static function from(stdClass $obj): Sbyte {
46238+ if (!property_exists($obj, 'sbyte')) {
4574946239 throw new Exception("Missing required property");
4575046240 }
45751- return new KSerializer(
45752- KSerializer::fromKSerializer($obj->{'KSerializer'})
46241+ return new Sbyte(
46242+ Sbyte::fromSbyte($obj->{'sbyte'})
4575346243 );
4575446244 }
4575546245
4575646246 /**
45757- * @return KSerializer
46247+ * @return Sbyte
4575846248 */
45759- public static function sample(): KSerializer {
45760- return new KSerializer(
45761- KSerializer::sampleKSerializer()
46249+ public static function sample(): Sbyte {
46250+ return new Sbyte(
46251+ Sbyte::sampleSbyte()
4576246252 );
4576346253 }
4576446254 }
4576546255
45766-// This is an autogenerated file:Obj5Self
46256+// This is an autogenerated file:Sealed
4576746257
45768-class Obj5Self {
45769- private int $self; // json:self Required
46258+class Sealed {
46259+ private int $sealed; // json:sealed Required
4577046260
4577146261 /**
45772- * @param int $self
46262+ * @param int $sealed
4577346263 */
45774- public function __construct(int $self) {
45775- $this->self = $self;
46264+ public function __construct(int $sealed) {
46265+ $this->sealed = $sealed;
4577646266 }
4577746267
4577846268 /**
@@ -45780,7 +46270,7 @@ class Obj5Self {
4578046270 * @throws Exception
4578146271 * @return int
4578246272 */
45783- public static function fromSelf(int $value): int {
46273+ public static function fromSealed(int $value): int {
4578446274 return $value; /*int*/
4578546275 }
4578646276
@@ -45788,11 +46278,11 @@ class Obj5Self {
4578846278 * @throws Exception
4578946279 * @return int
4579046280 */
45791- public function toSelf(): int {
45792- if (Obj5Self::validateSelf($this->self)) {
45793- return $this->self; /*int*/
46281+ public function toSealed(): int {
46282+ if (Sealed::validateSealed($this->sealed)) {
46283+ return $this->sealed; /*int*/
4579446284 }
45795- throw new Exception('never get to this Obj5Self::self');
46285+ throw new Exception('never get to this Sealed::sealed');
4579646286 }
4579746287
4579846288 /**
@@ -45800,7 +46290,7 @@ class Obj5Self {
4580046290 * @return bool
4580146291 * @throws Exception
4580246292 */
45803- public static function validateSelf(int $value): bool {
46293+ public static function validateSealed(int $value): bool {
4580446294 return true;
4580546295 }
4580646296
@@ -45808,18 +46298,18 @@ class Obj5Self {
4580846298 * @throws Exception
4580946299 * @return int
4581046300 */
45811- public function getSelf(): int {
45812- if (Obj5Self::validateSelf($this->self)) {
45813- return $this->self;
46301+ public function getSealed(): int {
46302+ if (Sealed::validateSealed($this->sealed)) {
46303+ return $this->sealed;
4581446304 }
45815- throw new Exception('never get to getSelf Obj5Self::self');
46305+ throw new Exception('never get to getSealed Sealed::sealed');
4581646306 }
4581746307
4581846308 /**
4581946309 * @return int
4582046310 */
45821- public static function sampleSelf(): int {
45822- return 31; /*31:self*/
46311+ public static function sampleSealed(): int {
46312+ return 31; /*31:sealed*/
4582346313 }
4582446314
4582546315 /**
@@ -45827,7 +46317,7 @@ class Obj5Self {
4582746317 * @return bool
4582846318 */
4582946319 public function validate(): bool {
45830- return Obj5Self::validateSelf($this->self);
46320+ return Sealed::validateSealed($this->sealed);
4583146321 }
4583246322
4583346323 /**
@@ -45836,44 +46326,44 @@ class Obj5Self {
4583646326 */
4583746327 public function to(): stdClass {
4583846328 $out = new stdClass();
45839- $out->{'self'} = $this->toSelf();
46329+ $out->{'sealed'} = $this->toSealed();
4584046330 return $out;
4584146331 }
4584246332
4584346333 /**
4584446334 * @param stdClass $obj
45845- * @return Obj5Self
46335+ * @return Sealed
4584646336 * @throws Exception
4584746337 */
45848- public static function from(stdClass $obj): Obj5Self {
45849- if (!property_exists($obj, 'self')) {
46338+ public static function from(stdClass $obj): Sealed {
46339+ if (!property_exists($obj, 'sealed')) {
4585046340 throw new Exception("Missing required property");
4585146341 }
45852- return new Obj5Self(
45853- Obj5Self::fromSelf($obj->{'self'})
46342+ return new Sealed(
46343+ Sealed::fromSealed($obj->{'sealed'})
4585446344 );
4585546345 }
4585646346
4585746347 /**
45858- * @return Obj5Self
46348+ * @return Sealed
4585946349 */
45860- public static function sample(): Obj5Self {
45861- return new Obj5Self(
45862- Obj5Self::sampleSelf()
46350+ public static function sample(): Sealed {
46351+ return new Sealed(
46352+ Sealed::sampleSealed()
4586346353 );
4586446354 }
4586546355 }
4586646356
45867-// This is an autogenerated file:This
46357+// This is an autogenerated file:Sel
4586846358
45869-class This {
45870- private int $thisThis; // json:this Required
46359+class Sel {
46360+ private int $sel; // json:SEL Required
4587146361
4587246362 /**
45873- * @param int $thisThis
46363+ * @param int $sel
4587446364 */
45875- public function __construct(int $thisThis) {
45876- $this->thisThis = $thisThis;
46365+ public function __construct(int $sel) {
46366+ $this->sel = $sel;
4587746367 }
4587846368
4587946369 /**
@@ -45881,7 +46371,7 @@ class This {
4588146371 * @throws Exception
4588246372 * @return int
4588346373 */
45884- public static function fromThisThis(int $value): int {
46374+ public static function fromSel(int $value): int {
4588546375 return $value; /*int*/
4588646376 }
4588746377
@@ -45889,11 +46379,11 @@ class This {
4588946379 * @throws Exception
4589046380 * @return int
4589146381 */
45892- public function toThisThis(): int {
45893- if (This::validateThisThis($this->thisThis)) {
45894- return $this->thisThis; /*int*/
46382+ public function toSel(): int {
46383+ if (Sel::validateSel($this->sel)) {
46384+ return $this->sel; /*int*/
4589546385 }
45896- throw new Exception('never get to this This::thisThis');
46386+ throw new Exception('never get to this Sel::sel');
4589746387 }
4589846388
4589946389 /**
@@ -45901,7 +46391,7 @@ class This {
4590146391 * @return bool
4590246392 * @throws Exception
4590346393 */
45904- public static function validateThisThis(int $value): bool {
46394+ public static function validateSel(int $value): bool {
4590546395 return true;
4590646396 }
4590746397
@@ -45909,18 +46399,18 @@ class This {
4590946399 * @throws Exception
4591046400 * @return int
4591146401 */
45912- public function getThisThis(): int {
45913- if (This::validateThisThis($this->thisThis)) {
45914- return $this->thisThis;
46402+ public function getSel(): int {
46403+ if (Sel::validateSel($this->sel)) {
46404+ return $this->sel;
4591546405 }
45916- throw new Exception('never get to getThisThis This::thisThis');
46406+ throw new Exception('never get to getSel Sel::sel');
4591746407 }
4591846408
4591946409 /**
4592046410 * @return int
4592146411 */
45922- public static function sampleThisThis(): int {
45923- return 31; /*31:thisThis*/
46412+ public static function sampleSel(): int {
46413+ return 31; /*31:sel*/
4592446414 }
4592546415
4592646416 /**
@@ -45928,7 +46418,7 @@ class This {
4592846418 * @return bool
4592946419 */
4593046420 public function validate(): bool {
45931- return This::validateThisThis($this->thisThis);
46421+ return Sel::validateSel($this->sel);
4593246422 }
4593346423
4593446424 /**
@@ -45937,44 +46427,44 @@ class This {
4593746427 */
4593846428 public function to(): stdClass {
4593946429 $out = new stdClass();
45940- $out->{'this'} = $this->toThisThis();
46430+ $out->{'SEL'} = $this->toSel();
4594146431 return $out;
4594246432 }
4594346433
4594446434 /**
4594546435 * @param stdClass $obj
45946- * @return This
46436+ * @return Sel
4594746437 * @throws Exception
4594846438 */
45949- public static function from(stdClass $obj): This {
45950- if (!property_exists($obj, 'this')) {
46439+ public static function from(stdClass $obj): Sel {
46440+ if (!property_exists($obj, 'SEL')) {
4595146441 throw new Exception("Missing required property");
4595246442 }
45953- return new This(
45954- This::fromThisThis($obj->{'this'})
46443+ return new Sel(
46444+ Sel::fromSel($obj->{'SEL'})
4595546445 );
4595646446 }
4595746447
4595846448 /**
45959- * @return This
46449+ * @return Sel
4596046450 */
45961- public static function sample(): This {
45962- return new This(
45963- This::sampleThisThis()
46451+ public static function sample(): Sel {
46452+ return new Sel(
46453+ Sel::sampleSel()
4596446454 );
4596546455 }
4596646456 }
4596746457
45968-// This is an autogenerated file:Obj5True
46458+// This is an autogenerated file:Select
4596946459
45970-class Obj5True {
45971- private int $true; // json:true Required
46460+class Select {
46461+ private int $select; // json:select Required
4597246462
4597346463 /**
45974- * @param int $true
46464+ * @param int $select
4597546465 */
45976- public function __construct(int $true) {
45977- $this->true = $true;
46466+ public function __construct(int $select) {
46467+ $this->select = $select;
4597846468 }
4597946469
4598046470 /**
@@ -45982,7 +46472,7 @@ class Obj5True {
4598246472 * @throws Exception
4598346473 * @return int
4598446474 */
45985- public static function fromTrue(int $value): int {
46475+ public static function fromSelect(int $value): int {
4598646476 return $value; /*int*/
4598746477 }
4598846478
@@ -45990,11 +46480,11 @@ class Obj5True {
4599046480 * @throws Exception
4599146481 * @return int
4599246482 */
45993- public function toTrue(): int {
45994- if (Obj5True::validateTrue($this->true)) {
45995- return $this->true; /*int*/
46483+ public function toSelect(): int {
46484+ if (Select::validateSelect($this->select)) {
46485+ return $this->select; /*int*/
4599646486 }
45997- throw new Exception('never get to this Obj5True::true');
46487+ throw new Exception('never get to this Select::select');
4599846488 }
4599946489
4600046490 /**
@@ -46002,7 +46492,7 @@ class Obj5True {
4600246492 * @return bool
4600346493 * @throws Exception
4600446494 */
46005- public static function validateTrue(int $value): bool {
46495+ public static function validateSelect(int $value): bool {
4600646496 return true;
4600746497 }
4600846498
@@ -46010,18 +46500,18 @@ class Obj5True {
4601046500 * @throws Exception
4601146501 * @return int
4601246502 */
46013- public function getTrue(): int {
46014- if (Obj5True::validateTrue($this->true)) {
46015- return $this->true;
46503+ public function getSelect(): int {
46504+ if (Select::validateSelect($this->select)) {
46505+ return $this->select;
4601646506 }
46017- throw new Exception('never get to getTrue Obj5True::true');
46507+ throw new Exception('never get to getSelect Select::select');
4601846508 }
4601946509
4602046510 /**
4602146511 * @return int
4602246512 */
46023- public static function sampleTrue(): int {
46024- return 31; /*31:true*/
46513+ public static function sampleSelect(): int {
46514+ return 31; /*31:select*/
4602546515 }
4602646516
4602746517 /**
@@ -46029,7 +46519,7 @@ class Obj5True {
4602946519 * @return bool
4603046520 */
4603146521 public function validate(): bool {
46032- return Obj5True::validateTrue($this->true);
46522+ return Select::validateSelect($this->select);
4603346523 }
4603446524
4603546525 /**
@@ -46038,44 +46528,44 @@ class Obj5True {
4603846528 */
4603946529 public function to(): stdClass {
4604046530 $out = new stdClass();
46041- $out->{'true'} = $this->toTrue();
46531+ $out->{'select'} = $this->toSelect();
4604246532 return $out;
4604346533 }
4604446534
4604546535 /**
4604646536 * @param stdClass $obj
46047- * @return Obj5True
46537+ * @return Select
4604846538 * @throws Exception
4604946539 */
46050- public static function from(stdClass $obj): Obj5True {
46051- if (!property_exists($obj, 'true')) {
46540+ public static function from(stdClass $obj): Select {
46541+ if (!property_exists($obj, 'select')) {
4605246542 throw new Exception("Missing required property");
4605346543 }
46054- return new Obj5True(
46055- Obj5True::fromTrue($obj->{'true'})
46544+ return new Select(
46545+ Select::fromSelect($obj->{'select'})
4605646546 );
4605746547 }
4605846548
4605946549 /**
46060- * @return Obj5True
46550+ * @return Select
4606146551 */
46062- public static function sample(): Obj5True {
46063- return new Obj5True(
46064- Obj5True::sampleTrue()
46552+ public static function sample(): Select {
46553+ return new Select(
46554+ Select::sampleSelect()
4606546555 );
4606646556 }
4606746557 }
4606846558
46069-// This is an autogenerated file:TypeClass
46559+// This is an autogenerated file:SelfClass
4607046560
46071-class TypeClass {
46072- private int $type; // json:type Required
46561+class SelfClass {
46562+ private int $self; // json:Self Required
4607346563
4607446564 /**
46075- * @param int $type
46565+ * @param int $self
4607646566 */
46077- public function __construct(int $type) {
46078- $this->type = $type;
46567+ public function __construct(int $self) {
46568+ $this->self = $self;
4607946569 }
4608046570
4608146571 /**
@@ -46083,7 +46573,7 @@ class TypeClass {
4608346573 * @throws Exception
4608446574 * @return int
4608546575 */
46086- public static function fromType(int $value): int {
46576+ public static function fromSelf(int $value): int {
4608746577 return $value; /*int*/
4608846578 }
4608946579
@@ -46091,11 +46581,11 @@ class TypeClass {
4609146581 * @throws Exception
4609246582 * @return int
4609346583 */
46094- public function toType(): int {
46095- if (TypeClass::validateType($this->type)) {
46096- return $this->type; /*int*/
46584+ public function toSelf(): int {
46585+ if (SelfClass::validateSelf($this->self)) {
46586+ return $this->self; /*int*/
4609746587 }
46098- throw new Exception('never get to this TypeClass::type');
46588+ throw new Exception('never get to this SelfClass::self');
4609946589 }
4610046590
4610146591 /**
@@ -46103,7 +46593,7 @@ class TypeClass {
4610346593 * @return bool
4610446594 * @throws Exception
4610546595 */
46106- public static function validateType(int $value): bool {
46596+ public static function validateSelf(int $value): bool {
4610746597 return true;
4610846598 }
4610946599
@@ -46111,18 +46601,18 @@ class TypeClass {
4611146601 * @throws Exception
4611246602 * @return int
4611346603 */
46114- public function getType(): int {
46115- if (TypeClass::validateType($this->type)) {
46116- return $this->type;
46604+ public function getSelf(): int {
46605+ if (SelfClass::validateSelf($this->self)) {
46606+ return $this->self;
4611746607 }
46118- throw new Exception('never get to getType TypeClass::type');
46608+ throw new Exception('never get to getSelf SelfClass::self');
4611946609 }
4612046610
4612146611 /**
4612246612 * @return int
4612346613 */
46124- public static function sampleType(): int {
46125- return 31; /*31:type*/
46614+ public static function sampleSelf(): int {
46615+ return 31; /*31:self*/
4612646616 }
4612746617
4612846618 /**
@@ -46130,7 +46620,7 @@ class TypeClass {
4613046620 * @return bool
4613146621 */
4613246622 public function validate(): bool {
46133- return TypeClass::validateType($this->type);
46623+ return SelfClass::validateSelf($this->self);
4613446624 }
4613546625
4613646626 /**
@@ -46139,44 +46629,44 @@ class TypeClass {
4613946629 */
4614046630 public function to(): stdClass {
4614146631 $out = new stdClass();
46142- $out->{'type'} = $this->toType();
46632+ $out->{'Self'} = $this->toSelf();
4614346633 return $out;
4614446634 }
4614546635
4614646636 /**
4614746637 * @param stdClass $obj
46148- * @return TypeClass
46638+ * @return SelfClass
4614946639 * @throws Exception
4615046640 */
46151- public static function from(stdClass $obj): TypeClass {
46152- if (!property_exists($obj, 'type')) {
46641+ public static function from(stdClass $obj): SelfClass {
46642+ if (!property_exists($obj, 'Self')) {
4615346643 throw new Exception("Missing required property");
4615446644 }
46155- return new TypeClass(
46156- TypeClass::fromType($obj->{'type'})
46645+ return new SelfClass(
46646+ SelfClass::fromSelf($obj->{'Self'})
4615746647 );
4615846648 }
4615946649
4616046650 /**
46161- * @return TypeClass
46651+ * @return SelfClass
4616246652 */
46163- public static function sample(): TypeClass {
46164- return new TypeClass(
46165- TypeClass::sampleType()
46653+ public static function sample(): SelfClass {
46654+ return new SelfClass(
46655+ SelfClass::sampleSelf()
4616646656 );
4616746657 }
4616846658 }
4616946659
46170-// This is an autogenerated file:PrimitiveKind
46660+// This is an autogenerated file:Sendable
4617146661
46172-class PrimitiveKind {
46173- private int $primitiveKind; // json:PrimitiveKind Required
46662+class Sendable {
46663+ private int $sendable; // json:Sendable Required
4617446664
4617546665 /**
46176- * @param int $primitiveKind
46666+ * @param int $sendable
4617746667 */
46178- public function __construct(int $primitiveKind) {
46179- $this->primitiveKind = $primitiveKind;
46668+ public function __construct(int $sendable) {
46669+ $this->sendable = $sendable;
4618046670 }
4618146671
4618246672 /**
@@ -46184,7 +46674,7 @@ class PrimitiveKind {
4618446674 * @throws Exception
4618546675 * @return int
4618646676 */
46187- public static function fromPrimitiveKind(int $value): int {
46677+ public static function fromSendable(int $value): int {
4618846678 return $value; /*int*/
4618946679 }
4619046680
@@ -46192,11 +46682,11 @@ class PrimitiveKind {
4619246682 * @throws Exception
4619346683 * @return int
4619446684 */
46195- public function toPrimitiveKind(): int {
46196- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46197- return $this->primitiveKind; /*int*/
46685+ public function toSendable(): int {
46686+ if (Sendable::validateSendable($this->sendable)) {
46687+ return $this->sendable; /*int*/
4619846688 }
46199- throw new Exception('never get to this PrimitiveKind::primitiveKind');
46689+ throw new Exception('never get to this Sendable::sendable');
4620046690 }
4620146691
4620246692 /**
@@ -46204,7 +46694,7 @@ class PrimitiveKind {
4620446694 * @return bool
4620546695 * @throws Exception
4620646696 */
46207- public static function validatePrimitiveKind(int $value): bool {
46697+ public static function validateSendable(int $value): bool {
4620846698 return true;
4620946699 }
4621046700
@@ -46212,18 +46702,18 @@ class PrimitiveKind {
4621246702 * @throws Exception
4621346703 * @return int
4621446704 */
46215- public function getPrimitiveKind(): int {
46216- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46217- return $this->primitiveKind;
46705+ public function getSendable(): int {
46706+ if (Sendable::validateSendable($this->sendable)) {
46707+ return $this->sendable;
4621846708 }
46219- throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
46709+ throw new Exception('never get to getSendable Sendable::sendable');
4622046710 }
4622146711
4622246712 /**
4622346713 * @return int
4622446714 */
46225- public static function samplePrimitiveKind(): int {
46226- return 31; /*31:primitiveKind*/
46715+ public static function sampleSendable(): int {
46716+ return 31; /*31:sendable*/
4622746717 }
4622846718
4622946719 /**
@@ -46231,7 +46721,7 @@ class PrimitiveKind {
4623146721 * @return bool
4623246722 */
4623346723 public function validate(): bool {
46234- return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
46724+ return Sendable::validateSendable($this->sendable);
4623546725 }
4623646726
4623746727 /**
@@ -46240,44 +46730,44 @@ class PrimitiveKind {
4624046730 */
4624146731 public function to(): stdClass {
4624246732 $out = new stdClass();
46243- $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
46733+ $out->{'Sendable'} = $this->toSendable();
4624446734 return $out;
4624546735 }
4624646736
4624746737 /**
4624846738 * @param stdClass $obj
46249- * @return PrimitiveKind
46739+ * @return Sendable
4625046740 * @throws Exception
4625146741 */
46252- public static function from(stdClass $obj): PrimitiveKind {
46253- if (!property_exists($obj, 'PrimitiveKind')) {
46742+ public static function from(stdClass $obj): Sendable {
46743+ if (!property_exists($obj, 'Sendable')) {
4625446744 throw new Exception("Missing required property");
4625546745 }
46256- return new PrimitiveKind(
46257- PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
46746+ return new Sendable(
46747+ Sendable::fromSendable($obj->{'Sendable'})
4625846748 );
4625946749 }
4626046750
4626146751 /**
46262- * @return PrimitiveKind
46752+ * @return Sendable
4626346753 */
46264- public static function sample(): PrimitiveKind {
46265- return new PrimitiveKind(
46266- PrimitiveKind::samplePrimitiveKind()
46754+ public static function sample(): Sendable {
46755+ return new Sendable(
46756+ Sendable::sampleSendable()
4626746757 );
4626846758 }
4626946759 }
4627046760
46271-// This is an autogenerated file:Select
46761+// This is an autogenerated file:SerialDescriptor
4627246762
46273-class Select {
46274- private int $select; // json:select Required
46763+class SerialDescriptor {
46764+ private int $serialDescriptor; // json:SerialDescriptor Required
4627546765
4627646766 /**
46277- * @param int $select
46767+ * @param int $serialDescriptor
4627846768 */
46279- public function __construct(int $select) {
46280- $this->select = $select;
46769+ public function __construct(int $serialDescriptor) {
46770+ $this->serialDescriptor = $serialDescriptor;
4628146771 }
4628246772
4628346773 /**
@@ -46285,7 +46775,7 @@ class Select {
4628546775 * @throws Exception
4628646776 * @return int
4628746777 */
46288- public static function fromSelect(int $value): int {
46778+ public static function fromSerialDescriptor(int $value): int {
4628946779 return $value; /*int*/
4629046780 }
4629146781
@@ -46293,11 +46783,11 @@ class Select {
4629346783 * @throws Exception
4629446784 * @return int
4629546785 */
46296- public function toSelect(): int {
46297- if (Select::validateSelect($this->select)) {
46298- return $this->select; /*int*/
46786+ public function toSerialDescriptor(): int {
46787+ if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46788+ return $this->serialDescriptor; /*int*/
4629946789 }
46300- throw new Exception('never get to this Select::select');
46790+ throw new Exception('never get to this SerialDescriptor::serialDescriptor');
4630146791 }
4630246792
4630346793 /**
@@ -46305,7 +46795,7 @@ class Select {
4630546795 * @return bool
4630646796 * @throws Exception
4630746797 */
46308- public static function validateSelect(int $value): bool {
46798+ public static function validateSerialDescriptor(int $value): bool {
4630946799 return true;
4631046800 }
4631146801
@@ -46313,18 +46803,18 @@ class Select {
4631346803 * @throws Exception
4631446804 * @return int
4631546805 */
46316- public function getSelect(): int {
46317- if (Select::validateSelect($this->select)) {
46318- return $this->select;
46806+ public function getSerialDescriptor(): int {
46807+ if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46808+ return $this->serialDescriptor;
4631946809 }
46320- throw new Exception('never get to getSelect Select::select');
46810+ throw new Exception('never get to getSerialDescriptor SerialDescriptor::serialDescriptor');
4632146811 }
4632246812
4632346813 /**
4632446814 * @return int
4632546815 */
46326- public static function sampleSelect(): int {
46327- return 31; /*31:select*/
46816+ public static function sampleSerialDescriptor(): int {
46817+ return 31; /*31:serialDescriptor*/
4632846818 }
4632946819
4633046820 /**
@@ -46332,7 +46822,7 @@ class Select {
4633246822 * @return bool
4633346823 */
4633446824 public function validate(): bool {
46335- return Select::validateSelect($this->select);
46825+ return SerialDescriptor::validateSerialDescriptor($this->serialDescriptor);
4633646826 }
4633746827
4633846828 /**
@@ -46341,44 +46831,44 @@ class Select {
4634146831 */
4634246832 public function to(): stdClass {
4634346833 $out = new stdClass();
46344- $out->{'select'} = $this->toSelect();
46834+ $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
4634546835 return $out;
4634646836 }
4634746837
4634846838 /**
4634946839 * @param stdClass $obj
46350- * @return Select
46840+ * @return SerialDescriptor
4635146841 * @throws Exception
4635246842 */
46353- public static function from(stdClass $obj): Select {
46354- if (!property_exists($obj, 'select')) {
46843+ public static function from(stdClass $obj): SerialDescriptor {
46844+ if (!property_exists($obj, 'SerialDescriptor')) {
4635546845 throw new Exception("Missing required property");
4635646846 }
46357- return new Select(
46358- Select::fromSelect($obj->{'select'})
46847+ return new SerialDescriptor(
46848+ SerialDescriptor::fromSerialDescriptor($obj->{'SerialDescriptor'})
4635946849 );
4636046850 }
4636146851
4636246852 /**
46363- * @return Select
46853+ * @return SerialDescriptor
4636446854 */
46365- public static function sample(): Select {
46366- return new Select(
46367- Select::sampleSelect()
46855+ public static function sample(): SerialDescriptor {
46856+ return new SerialDescriptor(
46857+ SerialDescriptor::sampleSerialDescriptor()
4636846858 );
4636946859 }
4637046860 }
4637146861
46372-// This is an autogenerated file:SelfClass
46862+// This is an autogenerated file:SerialName
4637346863
46374-class SelfClass {
46375- private int $self; // json:Self Required
46864+class SerialName {
46865+ private int $serialName; // json:SerialName Required
4637646866
4637746867 /**
46378- * @param int $self
46868+ * @param int $serialName
4637946869 */
46380- public function __construct(int $self) {
46381- $this->self = $self;
46870+ public function __construct(int $serialName) {
46871+ $this->serialName = $serialName;
4638246872 }
4638346873
4638446874 /**
@@ -46386,7 +46876,7 @@ class SelfClass {
4638646876 * @throws Exception
4638746877 * @return int
4638846878 */
46389- public static function fromSelf(int $value): int {
46879+ public static function fromSerialName(int $value): int {
4639046880 return $value; /*int*/
4639146881 }
4639246882
@@ -46394,11 +46884,11 @@ class SelfClass {
4639446884 * @throws Exception
4639546885 * @return int
4639646886 */
46397- public function toSelf(): int {
46398- if (SelfClass::validateSelf($this->self)) {
46399- return $this->self; /*int*/
46887+ public function toSerialName(): int {
46888+ if (SerialName::validateSerialName($this->serialName)) {
46889+ return $this->serialName; /*int*/
4640046890 }
46401- throw new Exception('never get to this SelfClass::self');
46891+ throw new Exception('never get to this SerialName::serialName');
4640246892 }
4640346893
4640446894 /**
@@ -46406,7 +46896,7 @@ class SelfClass {
4640646896 * @return bool
4640746897 * @throws Exception
4640846898 */
46409- public static function validateSelf(int $value): bool {
46899+ public static function validateSerialName(int $value): bool {
4641046900 return true;
4641146901 }
4641246902
@@ -46414,18 +46904,18 @@ class SelfClass {
4641446904 * @throws Exception
4641546905 * @return int
4641646906 */
46417- public function getSelf(): int {
46418- if (SelfClass::validateSelf($this->self)) {
46419- return $this->self;
46907+ public function getSerialName(): int {
46908+ if (SerialName::validateSerialName($this->serialName)) {
46909+ return $this->serialName;
4642046910 }
46421- throw new Exception('never get to getSelf SelfClass::self');
46911+ throw new Exception('never get to getSerialName SerialName::serialName');
4642246912 }
4642346913
4642446914 /**
4642546915 * @return int
4642646916 */
46427- public static function sampleSelf(): int {
46428- return 31; /*31:self*/
46917+ public static function sampleSerialName(): int {
46918+ return 31; /*31:serialName*/
4642946919 }
4643046920
4643146921 /**
@@ -46433,7 +46923,7 @@ class SelfClass {
4643346923 * @return bool
4643446924 */
4643546925 public function validate(): bool {
46436- return SelfClass::validateSelf($this->self);
46926+ return SerialName::validateSerialName($this->serialName);
4643746927 }
4643846928
4643946929 /**
@@ -46442,44 +46932,44 @@ class SelfClass {
4644246932 */
4644346933 public function to(): stdClass {
4644446934 $out = new stdClass();
46445- $out->{'Self'} = $this->toSelf();
46935+ $out->{'SerialName'} = $this->toSerialName();
4644646936 return $out;
4644746937 }
4644846938
4644946939 /**
4645046940 * @param stdClass $obj
46451- * @return SelfClass
46941+ * @return SerialName
4645246942 * @throws Exception
4645346943 */
46454- public static function from(stdClass $obj): SelfClass {
46455- if (!property_exists($obj, 'Self')) {
46944+ public static function from(stdClass $obj): SerialName {
46945+ if (!property_exists($obj, 'SerialName')) {
4645646946 throw new Exception("Missing required property");
4645746947 }
46458- return new SelfClass(
46459- SelfClass::fromSelf($obj->{'Self'})
46948+ return new SerialName(
46949+ SerialName::fromSerialName($obj->{'SerialName'})
4646046950 );
4646146951 }
4646246952
4646346953 /**
46464- * @return SelfClass
46954+ * @return SerialName
4646546955 */
46466- public static function sample(): SelfClass {
46467- return new SelfClass(
46468- SelfClass::sampleSelf()
46956+ public static function sample(): SerialName {
46957+ return new SerialName(
46958+ SerialName::sampleSerialName()
4646946959 );
4647046960 }
4647146961 }
4647246962
46473-// This is an autogenerated file:Sendable
46963+// This is an autogenerated file:SerializableClass
4647446964
46475-class Sendable {
46476- private int $sendable; // json:Sendable Required
46965+class SerializableClass {
46966+ private int $serializable; // json:Serializable Required
4647746967
4647846968 /**
46479- * @param int $sendable
46969+ * @param int $serializable
4648046970 */
46481- public function __construct(int $sendable) {
46482- $this->sendable = $sendable;
46971+ public function __construct(int $serializable) {
46972+ $this->serializable = $serializable;
4648346973 }
4648446974
4648546975 /**
@@ -46487,7 +46977,7 @@ class Sendable {
4648746977 * @throws Exception
4648846978 * @return int
4648946979 */
46490- public static function fromSendable(int $value): int {
46980+ public static function fromSerializable(int $value): int {
4649146981 return $value; /*int*/
4649246982 }
4649346983
@@ -46495,11 +46985,11 @@ class Sendable {
4649546985 * @throws Exception
4649646986 * @return int
4649746987 */
46498- public function toSendable(): int {
46499- if (Sendable::validateSendable($this->sendable)) {
46500- return $this->sendable; /*int*/
46988+ public function toSerializable(): int {
46989+ if (SerializableClass::validateSerializable($this->serializable)) {
46990+ return $this->serializable; /*int*/
4650146991 }
46502- throw new Exception('never get to this Sendable::sendable');
46992+ throw new Exception('never get to this SerializableClass::serializable');
4650346993 }
4650446994
4650546995 /**
@@ -46507,7 +46997,7 @@ class Sendable {
4650746997 * @return bool
4650846998 * @throws Exception
4650946999 */
46510- public static function validateSendable(int $value): bool {
47000+ public static function validateSerializable(int $value): bool {
4651147001 return true;
4651247002 }
4651347003
@@ -46515,18 +47005,18 @@ class Sendable {
4651547005 * @throws Exception
4651647006 * @return int
4651747007 */
46518- public function getSendable(): int {
46519- if (Sendable::validateSendable($this->sendable)) {
46520- return $this->sendable;
47008+ public function getSerializable(): int {
47009+ if (SerializableClass::validateSerializable($this->serializable)) {
47010+ return $this->serializable;
4652147011 }
46522- throw new Exception('never get to getSendable Sendable::sendable');
47012+ throw new Exception('never get to getSerializable SerializableClass::serializable');
4652347013 }
4652447014
4652547015 /**
4652647016 * @return int
4652747017 */
46528- public static function sampleSendable(): int {
46529- return 31; /*31:sendable*/
47018+ public static function sampleSerializable(): int {
47019+ return 31; /*31:serializable*/
4653047020 }
4653147021
4653247022 /**
@@ -46534,7 +47024,7 @@ class Sendable {
4653447024 * @return bool
4653547025 */
4653647026 public function validate(): bool {
46537- return Sendable::validateSendable($this->sendable);
47027+ return SerializableClass::validateSerializable($this->serializable);
4653847028 }
4653947029
4654047030 /**
@@ -46543,44 +47033,44 @@ class Sendable {
4654347033 */
4654447034 public function to(): stdClass {
4654547035 $out = new stdClass();
46546- $out->{'Sendable'} = $this->toSendable();
47036+ $out->{'Serializable'} = $this->toSerializable();
4654747037 return $out;
4654847038 }
4654947039
4655047040 /**
4655147041 * @param stdClass $obj
46552- * @return Sendable
47042+ * @return SerializableClass
4655347043 * @throws Exception
4655447044 */
46555- public static function from(stdClass $obj): Sendable {
46556- if (!property_exists($obj, 'Sendable')) {
47045+ public static function from(stdClass $obj): SerializableClass {
47046+ if (!property_exists($obj, 'Serializable')) {
4655747047 throw new Exception("Missing required property");
4655847048 }
46559- return new Sendable(
46560- Sendable::fromSendable($obj->{'Sendable'})
47049+ return new SerializableClass(
47050+ SerializableClass::fromSerializable($obj->{'Serializable'})
4656147051 );
4656247052 }
4656347053
4656447054 /**
46565- * @return Sendable
47055+ * @return SerializableClass
4656647056 */
46567- public static function sample(): Sendable {
46568- return new Sendable(
46569- Sendable::sampleSendable()
47057+ public static function sample(): SerializableClass {
47058+ return new SerializableClass(
47059+ SerializableClass::sampleSerializable()
4657047060 );
4657147061 }
4657247062 }
4657347063
46574-// This is an autogenerated file:SerialDescriptor
47064+// This is an autogenerated file:Serialize
4657547065
46576-class SerialDescriptor {
46577- private int $serialDescriptor; // json:SerialDescriptor Required
47066+class Serialize {
47067+ private int $serialize; // json:serialize Required
4657847068
4657947069 /**
46580- * @param int $serialDescriptor
47070+ * @param int $serialize
4658147071 */
46582- public function __construct(int $serialDescriptor) {
46583- $this->serialDescriptor = $serialDescriptor;
47072+ public function __construct(int $serialize) {
47073+ $this->serialize = $serialize;
4658447074 }
4658547075
4658647076 /**
@@ -46588,7 +47078,7 @@ class SerialDescriptor {
4658847078 * @throws Exception
4658947079 * @return int
4659047080 */
46591- public static function fromSerialDescriptor(int $value): int {
47081+ public static function fromSerialize(int $value): int {
4659247082 return $value; /*int*/
4659347083 }
4659447084
@@ -46596,11 +47086,11 @@ class SerialDescriptor {
4659647086 * @throws Exception
4659747087 * @return int
4659847088 */
46599- public function toSerialDescriptor(): int {
46600- if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46601- return $this->serialDescriptor; /*int*/
47089+ public function toSerialize(): int {
47090+ if (Serialize::validateSerialize($this->serialize)) {
47091+ return $this->serialize; /*int*/
4660247092 }
46603- throw new Exception('never get to this SerialDescriptor::serialDescriptor');
47093+ throw new Exception('never get to this Serialize::serialize');
4660447094 }
4660547095
4660647096 /**
@@ -46608,7 +47098,7 @@ class SerialDescriptor {
4660847098 * @return bool
4660947099 * @throws Exception
4661047100 */
46611- public static function validateSerialDescriptor(int $value): bool {
47101+ public static function validateSerialize(int $value): bool {
4661247102 return true;
4661347103 }
4661447104
@@ -46616,18 +47106,18 @@ class SerialDescriptor {
4661647106 * @throws Exception
4661747107 * @return int
4661847108 */
46619- public function getSerialDescriptor(): int {
46620- if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46621- return $this->serialDescriptor;
47109+ public function getSerialize(): int {
47110+ if (Serialize::validateSerialize($this->serialize)) {
47111+ return $this->serialize;
4662247112 }
46623- throw new Exception('never get to getSerialDescriptor SerialDescriptor::serialDescriptor');
47113+ throw new Exception('never get to getSerialize Serialize::serialize');
4662447114 }
4662547115
4662647116 /**
4662747117 * @return int
4662847118 */
46629- public static function sampleSerialDescriptor(): int {
46630- return 31; /*31:serialDescriptor*/
47119+ public static function sampleSerialize(): int {
47120+ return 31; /*31:serialize*/
4663147121 }
4663247122
4663347123 /**
@@ -46635,7 +47125,7 @@ class SerialDescriptor {
4663547125 * @return bool
4663647126 */
4663747127 public function validate(): bool {
46638- return SerialDescriptor::validateSerialDescriptor($this->serialDescriptor);
47128+ return Serialize::validateSerialize($this->serialize);
4663947129 }
4664047130
4664147131 /**
@@ -46644,44 +47134,44 @@ class SerialDescriptor {
4664447134 */
4664547135 public function to(): stdClass {
4664647136 $out = new stdClass();
46647- $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
47137+ $out->{'serialize'} = $this->toSerialize();
4664847138 return $out;
4664947139 }
4665047140
4665147141 /**
4665247142 * @param stdClass $obj
46653- * @return SerialDescriptor
47143+ * @return Serialize
4665447144 * @throws Exception
4665547145 */
46656- public static function from(stdClass $obj): SerialDescriptor {
46657- if (!property_exists($obj, 'SerialDescriptor')) {
47146+ public static function from(stdClass $obj): Serialize {
47147+ if (!property_exists($obj, 'serialize')) {
4665847148 throw new Exception("Missing required property");
4665947149 }
46660- return new SerialDescriptor(
46661- SerialDescriptor::fromSerialDescriptor($obj->{'SerialDescriptor'})
47150+ return new Serialize(
47151+ Serialize::fromSerialize($obj->{'serialize'})
4666247152 );
4666347153 }
4666447154
4666547155 /**
46666- * @return SerialDescriptor
46667- */
46668- public static function sample(): SerialDescriptor {
46669- return new SerialDescriptor(
46670- SerialDescriptor::sampleSerialDescriptor()
47156+ * @return Serialize
47157+ */
47158+ public static function sample(): Serialize {
47159+ return new Serialize(
47160+ Serialize::sampleSerialize()
4667147161 );
4667247162 }
4667347163 }
4667447164
46675-// This is an autogenerated file:SerialName
47165+// This is an autogenerated file:SerializerProvider
4667647166
46677-class SerialName {
46678- private int $serialName; // json:SerialName Required
47167+class SerializerProvider {
47168+ private int $serializerProvider; // json:SerializerProvider Required
4667947169
4668047170 /**
46681- * @param int $serialName
47171+ * @param int $serializerProvider
4668247172 */
46683- public function __construct(int $serialName) {
46684- $this->serialName = $serialName;
47173+ public function __construct(int $serializerProvider) {
47174+ $this->serializerProvider = $serializerProvider;
4668547175 }
4668647176
4668747177 /**
@@ -46689,7 +47179,7 @@ class SerialName {
4668947179 * @throws Exception
4669047180 * @return int
4669147181 */
46692- public static function fromSerialName(int $value): int {
47182+ public static function fromSerializerProvider(int $value): int {
4669347183 return $value; /*int*/
4669447184 }
4669547185
@@ -46697,11 +47187,11 @@ class SerialName {
4669747187 * @throws Exception
4669847188 * @return int
4669947189 */
46700- public function toSerialName(): int {
46701- if (SerialName::validateSerialName($this->serialName)) {
46702- return $this->serialName; /*int*/
47190+ public function toSerializerProvider(): int {
47191+ if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
47192+ return $this->serializerProvider; /*int*/
4670347193 }
46704- throw new Exception('never get to this SerialName::serialName');
47194+ throw new Exception('never get to this SerializerProvider::serializerProvider');
4670547195 }
4670647196
4670747197 /**
@@ -46709,7 +47199,7 @@ class SerialName {
4670947199 * @return bool
4671047200 * @throws Exception
4671147201 */
46712- public static function validateSerialName(int $value): bool {
47202+ public static function validateSerializerProvider(int $value): bool {
4671347203 return true;
4671447204 }
4671547205
@@ -46717,18 +47207,18 @@ class SerialName {
4671747207 * @throws Exception
4671847208 * @return int
4671947209 */
46720- public function getSerialName(): int {
46721- if (SerialName::validateSerialName($this->serialName)) {
46722- return $this->serialName;
47210+ public function getSerializerProvider(): int {
47211+ if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
47212+ return $this->serializerProvider;
4672347213 }
46724- throw new Exception('never get to getSerialName SerialName::serialName');
47214+ throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider');
4672547215 }
4672647216
4672747217 /**
4672847218 * @return int
4672947219 */
46730- public static function sampleSerialName(): int {
46731- return 31; /*31:serialName*/
47220+ public static function sampleSerializerProvider(): int {
47221+ return 31; /*31:serializerProvider*/
4673247222 }
4673347223
4673447224 /**
@@ -46736,7 +47226,7 @@ class SerialName {
4673647226 * @return bool
4673747227 */
4673847228 public function validate(): bool {
46739- return SerialName::validateSerialName($this->serialName);
47229+ return SerializerProvider::validateSerializerProvider($this->serializerProvider);
4674047230 }
4674147231
4674247232 /**
@@ -46745,44 +47235,44 @@ class SerialName {
4674547235 */
4674647236 public function to(): stdClass {
4674747237 $out = new stdClass();
46748- $out->{'SerialName'} = $this->toSerialName();
47238+ $out->{'SerializerProvider'} = $this->toSerializerProvider();
4674947239 return $out;
4675047240 }
4675147241
4675247242 /**
4675347243 * @param stdClass $obj
46754- * @return SerialName
47244+ * @return SerializerProvider
4675547245 * @throws Exception
4675647246 */
46757- public static function from(stdClass $obj): SerialName {
46758- if (!property_exists($obj, 'SerialName')) {
47247+ public static function from(stdClass $obj): SerializerProvider {
47248+ if (!property_exists($obj, 'SerializerProvider')) {
4675947249 throw new Exception("Missing required property");
4676047250 }
46761- return new SerialName(
46762- SerialName::fromSerialName($obj->{'SerialName'})
47251+ return new SerializerProvider(
47252+ SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'})
4676347253 );
4676447254 }
4676547255
4676647256 /**
46767- * @return SerialName
47257+ * @return SerializerProvider
4676847258 */
46769- public static function sample(): SerialName {
46770- return new SerialName(
46771- SerialName::sampleSerialName()
47259+ public static function sample(): SerializerProvider {
47260+ return new SerializerProvider(
47261+ SerializerProvider::sampleSerializerProvider()
4677247262 );
4677347263 }
4677447264 }
4677547265
46776-// This is an autogenerated file:SerializableClass
47266+// This is an autogenerated file:Set
4677747267
46778-class SerializableClass {
46779- private int $serializable; // json:Serializable Required
47268+class Set {
47269+ private int $set; // json:set Required
4678047270
4678147271 /**
46782- * @param int $serializable
47272+ * @param int $set
4678347273 */
46784- public function __construct(int $serializable) {
46785- $this->serializable = $serializable;
47274+ public function __construct(int $set) {
47275+ $this->set = $set;
4678647276 }
4678747277
4678847278 /**
@@ -46790,7 +47280,7 @@ class SerializableClass {
4679047280 * @throws Exception
4679147281 * @return int
4679247282 */
46793- public static function fromSerializable(int $value): int {
47283+ public static function fromSet(int $value): int {
4679447284 return $value; /*int*/
4679547285 }
4679647286
@@ -46798,11 +47288,11 @@ class SerializableClass {
4679847288 * @throws Exception
4679947289 * @return int
4680047290 */
46801- public function toSerializable(): int {
46802- if (SerializableClass::validateSerializable($this->serializable)) {
46803- return $this->serializable; /*int*/
47291+ public function toSet(): int {
47292+ if (Set::validateSet($this->set)) {
47293+ return $this->set; /*int*/
4680447294 }
46805- throw new Exception('never get to this SerializableClass::serializable');
47295+ throw new Exception('never get to this Set::set');
4680647296 }
4680747297
4680847298 /**
@@ -46810,7 +47300,7 @@ class SerializableClass {
4681047300 * @return bool
4681147301 * @throws Exception
4681247302 */
46813- public static function validateSerializable(int $value): bool {
47303+ public static function validateSet(int $value): bool {
4681447304 return true;
4681547305 }
4681647306
@@ -46818,18 +47308,18 @@ class SerializableClass {
4681847308 * @throws Exception
4681947309 * @return int
4682047310 */
46821- public function getSerializable(): int {
46822- if (SerializableClass::validateSerializable($this->serializable)) {
46823- return $this->serializable;
47311+ public function getSet(): int {
47312+ if (Set::validateSet($this->set)) {
47313+ return $this->set;
4682447314 }
46825- throw new Exception('never get to getSerializable SerializableClass::serializable');
47315+ throw new Exception('never get to getSet Set::set');
4682647316 }
4682747317
4682847318 /**
4682947319 * @return int
4683047320 */
46831- public static function sampleSerializable(): int {
46832- return 31; /*31:serializable*/
47321+ public static function sampleSet(): int {
47322+ return 31; /*31:set*/
4683347323 }
4683447324
4683547325 /**
@@ -46837,7 +47327,7 @@ class SerializableClass {
4683747327 * @return bool
4683847328 */
4683947329 public function validate(): bool {
46840- return SerializableClass::validateSerializable($this->serializable);
47330+ return Set::validateSet($this->set);
4684147331 }
4684247332
4684347333 /**
@@ -46846,44 +47336,44 @@ class SerializableClass {
4684647336 */
4684747337 public function to(): stdClass {
4684847338 $out = new stdClass();
46849- $out->{'Serializable'} = $this->toSerializable();
47339+ $out->{'set'} = $this->toSet();
4685047340 return $out;
4685147341 }
4685247342
4685347343 /**
4685447344 * @param stdClass $obj
46855- * @return SerializableClass
47345+ * @return Set
4685647346 * @throws Exception
4685747347 */
46858- public static function from(stdClass $obj): SerializableClass {
46859- if (!property_exists($obj, 'Serializable')) {
47348+ public static function from(stdClass $obj): Set {
47349+ if (!property_exists($obj, 'set')) {
4686047350 throw new Exception("Missing required property");
4686147351 }
46862- return new SerializableClass(
46863- SerializableClass::fromSerializable($obj->{'Serializable'})
47352+ return new Set(
47353+ Set::fromSet($obj->{'set'})
4686447354 );
4686547355 }
4686647356
4686747357 /**
46868- * @return SerializableClass
47358+ * @return Set
4686947359 */
46870- public static function sample(): SerializableClass {
46871- return new SerializableClass(
46872- SerializableClass::sampleSerializable()
47360+ public static function sample(): Set {
47361+ return new Set(
47362+ Set::sampleSet()
4687347363 );
4687447364 }
4687547365 }
4687647366
46877-// This is an autogenerated file:Serialize
47367+// This is an autogenerated file:Short
4687847368
46879-class Serialize {
46880- private int $serialize; // json:serialize Required
47369+class Short {
47370+ private int $short; // json:short Required
4688147371
4688247372 /**
46883- * @param int $serialize
47373+ * @param int $short
4688447374 */
46885- public function __construct(int $serialize) {
46886- $this->serialize = $serialize;
47375+ public function __construct(int $short) {
47376+ $this->short = $short;
4688747377 }
4688847378
4688947379 /**
@@ -46891,7 +47381,7 @@ class Serialize {
4689147381 * @throws Exception
4689247382 * @return int
4689347383 */
46894- public static function fromSerialize(int $value): int {
47384+ public static function fromShort(int $value): int {
4689547385 return $value; /*int*/
4689647386 }
4689747387
@@ -46899,11 +47389,11 @@ class Serialize {
4689947389 * @throws Exception
4690047390 * @return int
4690147391 */
46902- public function toSerialize(): int {
46903- if (Serialize::validateSerialize($this->serialize)) {
46904- return $this->serialize; /*int*/
47392+ public function toShort(): int {
47393+ if (Short::validateShort($this->short)) {
47394+ return $this->short; /*int*/
4690547395 }
46906- throw new Exception('never get to this Serialize::serialize');
47396+ throw new Exception('never get to this Short::short');
4690747397 }
4690847398
4690947399 /**
@@ -46911,7 +47401,7 @@ class Serialize {
4691147401 * @return bool
4691247402 * @throws Exception
4691347403 */
46914- public static function validateSerialize(int $value): bool {
47404+ public static function validateShort(int $value): bool {
4691547405 return true;
4691647406 }
4691747407
@@ -46919,18 +47409,18 @@ class Serialize {
4691947409 * @throws Exception
4692047410 * @return int
4692147411 */
46922- public function getSerialize(): int {
46923- if (Serialize::validateSerialize($this->serialize)) {
46924- return $this->serialize;
47412+ public function getShort(): int {
47413+ if (Short::validateShort($this->short)) {
47414+ return $this->short;
4692547415 }
46926- throw new Exception('never get to getSerialize Serialize::serialize');
47416+ throw new Exception('never get to getShort Short::short');
4692747417 }
4692847418
4692947419 /**
4693047420 * @return int
4693147421 */
46932- public static function sampleSerialize(): int {
46933- return 31; /*31:serialize*/
47422+ public static function sampleShort(): int {
47423+ return 31; /*31:short*/
4693447424 }
4693547425
4693647426 /**
@@ -46938,7 +47428,7 @@ class Serialize {
4693847428 * @return bool
4693947429 */
4694047430 public function validate(): bool {
46941- return Serialize::validateSerialize($this->serialize);
47431+ return Short::validateShort($this->short);
4694247432 }
4694347433
4694447434 /**
@@ -46947,44 +47437,44 @@ class Serialize {
4694747437 */
4694847438 public function to(): stdClass {
4694947439 $out = new stdClass();
46950- $out->{'serialize'} = $this->toSerialize();
47440+ $out->{'short'} = $this->toShort();
4695147441 return $out;
4695247442 }
4695347443
4695447444 /**
4695547445 * @param stdClass $obj
46956- * @return Serialize
47446+ * @return Short
4695747447 * @throws Exception
4695847448 */
46959- public static function from(stdClass $obj): Serialize {
46960- if (!property_exists($obj, 'serialize')) {
47449+ public static function from(stdClass $obj): Short {
47450+ if (!property_exists($obj, 'short')) {
4696147451 throw new Exception("Missing required property");
4696247452 }
46963- return new Serialize(
46964- Serialize::fromSerialize($obj->{'serialize'})
47453+ return new Short(
47454+ Short::fromShort($obj->{'short'})
4696547455 );
4696647456 }
4696747457
4696847458 /**
46969- * @return Serialize
47459+ * @return Short
4697047460 */
46971- public static function sample(): Serialize {
46972- return new Serialize(
46973- Serialize::sampleSerialize()
47461+ public static function sample(): Short {
47462+ return new Short(
47463+ Short::sampleShort()
4697447464 );
4697547465 }
4697647466 }
4697747467
46978-// This is an autogenerated file:SerializerProvider
47468+// This is an autogenerated file:Signed
4697947469
46980-class SerializerProvider {
46981- private int $serializerProvider; // json:SerializerProvider Required
47470+class Signed {
47471+ private int $signed; // json:signed Required
4698247472
4698347473 /**
46984- * @param int $serializerProvider
47474+ * @param int $signed
4698547475 */
46986- public function __construct(int $serializerProvider) {
46987- $this->serializerProvider = $serializerProvider;
47476+ public function __construct(int $signed) {
47477+ $this->signed = $signed;
4698847478 }
4698947479
4699047480 /**
@@ -46992,7 +47482,7 @@ class SerializerProvider {
4699247482 * @throws Exception
4699347483 * @return int
4699447484 */
46995- public static function fromSerializerProvider(int $value): int {
47485+ public static function fromSigned(int $value): int {
4699647486 return $value; /*int*/
4699747487 }
4699847488
@@ -47000,11 +47490,11 @@ class SerializerProvider {
4700047490 * @throws Exception
4700147491 * @return int
4700247492 */
47003- public function toSerializerProvider(): int {
47004- if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
47005- return $this->serializerProvider; /*int*/
47493+ public function toSigned(): int {
47494+ if (Signed::validateSigned($this->signed)) {
47495+ return $this->signed; /*int*/
4700647496 }
47007- throw new Exception('never get to this SerializerProvider::serializerProvider');
47497+ throw new Exception('never get to this Signed::signed');
4700847498 }
4700947499
4701047500 /**
@@ -47012,7 +47502,7 @@ class SerializerProvider {
4701247502 * @return bool
4701347503 * @throws Exception
4701447504 */
47015- public static function validateSerializerProvider(int $value): bool {
47505+ public static function validateSigned(int $value): bool {
4701647506 return true;
4701747507 }
4701847508
@@ -47020,18 +47510,18 @@ class SerializerProvider {
4702047510 * @throws Exception
4702147511 * @return int
4702247512 */
47023- public function getSerializerProvider(): int {
47024- if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
47025- return $this->serializerProvider;
47513+ public function getSigned(): int {
47514+ if (Signed::validateSigned($this->signed)) {
47515+ return $this->signed;
4702647516 }
47027- throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider');
47517+ throw new Exception('never get to getSigned Signed::signed');
4702847518 }
4702947519
4703047520 /**
4703147521 * @return int
4703247522 */
47033- public static function sampleSerializerProvider(): int {
47034- return 31; /*31:serializerProvider*/
47523+ public static function sampleSigned(): int {
47524+ return 31; /*31:signed*/
4703547525 }
4703647526
4703747527 /**
@@ -47039,7 +47529,7 @@ class SerializerProvider {
4703947529 * @return bool
4704047530 */
4704147531 public function validate(): bool {
47042- return SerializerProvider::validateSerializerProvider($this->serializerProvider);
47532+ return Signed::validateSigned($this->signed);
4704347533 }
4704447534
4704547535 /**
@@ -47048,44 +47538,44 @@ class SerializerProvider {
4704847538 */
4704947539 public function to(): stdClass {
4705047540 $out = new stdClass();
47051- $out->{'SerializerProvider'} = $this->toSerializerProvider();
47541+ $out->{'signed'} = $this->toSigned();
4705247542 return $out;
4705347543 }
4705447544
4705547545 /**
4705647546 * @param stdClass $obj
47057- * @return SerializerProvider
47547+ * @return Signed
4705847548 * @throws Exception
4705947549 */
47060- public static function from(stdClass $obj): SerializerProvider {
47061- if (!property_exists($obj, 'SerializerProvider')) {
47550+ public static function from(stdClass $obj): Signed {
47551+ if (!property_exists($obj, 'signed')) {
4706247552 throw new Exception("Missing required property");
4706347553 }
47064- return new SerializerProvider(
47065- SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'})
47554+ return new Signed(
47555+ Signed::fromSigned($obj->{'signed'})
4706647556 );
4706747557 }
4706847558
4706947559 /**
47070- * @return SerializerProvider
47560+ * @return Signed
4707147561 */
47072- public static function sample(): SerializerProvider {
47073- return new SerializerProvider(
47074- SerializerProvider::sampleSerializerProvider()
47562+ public static function sample(): Signed {
47563+ return new Signed(
47564+ Signed::sampleSigned()
4707547565 );
4707647566 }
4707747567 }
4707847568
47079-// This is an autogenerated file:Set
47569+// This is an autogenerated file:SimpleModule
4708047570
47081-class Set {
47082- private int $set; // json:set Required
47571+class SimpleModule {
47572+ private int $simpleModule; // json:SimpleModule Required
4708347573
4708447574 /**
47085- * @param int $set
47575+ * @param int $simpleModule
4708647576 */
47087- public function __construct(int $set) {
47088- $this->set = $set;
47577+ public function __construct(int $simpleModule) {
47578+ $this->simpleModule = $simpleModule;
4708947579 }
4709047580
4709147581 /**
@@ -47093,19 +47583,19 @@ class Set {
4709347583 * @throws Exception
4709447584 * @return int
4709547585 */
47096- public static function fromSet(int $value): int {
47586+ public static function fromSimpleModule(int $value): int {
4709747587 return $value; /*int*/
4709847588 }
4709947589
4710047590 /**
4710147591 * @throws Exception
47102- * @return int
47103- */
47104- public function toSet(): int {
47105- if (Set::validateSet($this->set)) {
47106- return $this->set; /*int*/
47592+ * @return int
47593+ */
47594+ public function toSimpleModule(): int {
47595+ if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47596+ return $this->simpleModule; /*int*/
4710747597 }
47108- throw new Exception('never get to this Set::set');
47598+ throw new Exception('never get to this SimpleModule::simpleModule');
4710947599 }
4711047600
4711147601 /**
@@ -47113,7 +47603,7 @@ class Set {
4711347603 * @return bool
4711447604 * @throws Exception
4711547605 */
47116- public static function validateSet(int $value): bool {
47606+ public static function validateSimpleModule(int $value): bool {
4711747607 return true;
4711847608 }
4711947609
@@ -47121,18 +47611,18 @@ class Set {
4712147611 * @throws Exception
4712247612 * @return int
4712347613 */
47124- public function getSet(): int {
47125- if (Set::validateSet($this->set)) {
47126- return $this->set;
47614+ public function getSimpleModule(): int {
47615+ if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47616+ return $this->simpleModule;
4712747617 }
47128- throw new Exception('never get to getSet Set::set');
47618+ throw new Exception('never get to getSimpleModule SimpleModule::simpleModule');
4712947619 }
4713047620
4713147621 /**
4713247622 * @return int
4713347623 */
47134- public static function sampleSet(): int {
47135- return 31; /*31:set*/
47624+ public static function sampleSimpleModule(): int {
47625+ return 31; /*31:simpleModule*/
4713647626 }
4713747627
4713847628 /**
@@ -47140,7 +47630,7 @@ class Set {
4714047630 * @return bool
4714147631 */
4714247632 public function validate(): bool {
47143- return Set::validateSet($this->set);
47633+ return SimpleModule::validateSimpleModule($this->simpleModule);
4714447634 }
4714547635
4714647636 /**
@@ -47149,44 +47639,44 @@ class Set {
4714947639 */
4715047640 public function to(): stdClass {
4715147641 $out = new stdClass();
47152- $out->{'set'} = $this->toSet();
47642+ $out->{'SimpleModule'} = $this->toSimpleModule();
4715347643 return $out;
4715447644 }
4715547645
4715647646 /**
4715747647 * @param stdClass $obj
47158- * @return Set
47648+ * @return SimpleModule
4715947649 * @throws Exception
4716047650 */
47161- public static function from(stdClass $obj): Set {
47162- if (!property_exists($obj, 'set')) {
47651+ public static function from(stdClass $obj): SimpleModule {
47652+ if (!property_exists($obj, 'SimpleModule')) {
4716347653 throw new Exception("Missing required property");
4716447654 }
47165- return new Set(
47166- Set::fromSet($obj->{'set'})
47655+ return new SimpleModule(
47656+ SimpleModule::fromSimpleModule($obj->{'SimpleModule'})
4716747657 );
4716847658 }
4716947659
4717047660 /**
47171- * @return Set
47661+ * @return SimpleModule
4717247662 */
47173- public static function sample(): Set {
47174- return new Set(
47175- Set::sampleSet()
47663+ public static function sample(): SimpleModule {
47664+ return new SimpleModule(
47665+ SimpleModule::sampleSimpleModule()
4717647666 );
4717747667 }
4717847668 }
4717947669
47180-// This is an autogenerated file:Short
47670+// This is an autogenerated file:Sizeof
4718147671
47182-class Short {
47183- private int $short; // json:short Required
47672+class Sizeof {
47673+ private int $sizeof; // json:sizeof Required
4718447674
4718547675 /**
47186- * @param int $short
47676+ * @param int $sizeof
4718747677 */
47188- public function __construct(int $short) {
47189- $this->short = $short;
47678+ public function __construct(int $sizeof) {
47679+ $this->sizeof = $sizeof;
4719047680 }
4719147681
4719247682 /**
@@ -47194,7 +47684,7 @@ class Short {
4719447684 * @throws Exception
4719547685 * @return int
4719647686 */
47197- public static function fromShort(int $value): int {
47687+ public static function fromSizeof(int $value): int {
4719847688 return $value; /*int*/
4719947689 }
4720047690
@@ -47202,11 +47692,11 @@ class Short {
4720247692 * @throws Exception
4720347693 * @return int
4720447694 */
47205- public function toShort(): int {
47206- if (Short::validateShort($this->short)) {
47207- return $this->short; /*int*/
47695+ public function toSizeof(): int {
47696+ if (Sizeof::validateSizeof($this->sizeof)) {
47697+ return $this->sizeof; /*int*/
4720847698 }
47209- throw new Exception('never get to this Short::short');
47699+ throw new Exception('never get to this Sizeof::sizeof');
4721047700 }
4721147701
4721247702 /**
@@ -47214,7 +47704,7 @@ class Short {
4721447704 * @return bool
4721547705 * @throws Exception
4721647706 */
47217- public static function validateShort(int $value): bool {
47707+ public static function validateSizeof(int $value): bool {
4721847708 return true;
4721947709 }
4722047710
@@ -47222,18 +47712,18 @@ class Short {
4722247712 * @throws Exception
4722347713 * @return int
4722447714 */
47225- public function getShort(): int {
47226- if (Short::validateShort($this->short)) {
47227- return $this->short;
47715+ public function getSizeof(): int {
47716+ if (Sizeof::validateSizeof($this->sizeof)) {
47717+ return $this->sizeof;
4722847718 }
47229- throw new Exception('never get to getShort Short::short');
47719+ throw new Exception('never get to getSizeof Sizeof::sizeof');
4723047720 }
4723147721
4723247722 /**
4723347723 * @return int
4723447724 */
47235- public static function sampleShort(): int {
47236- return 31; /*31:short*/
47725+ public static function sampleSizeof(): int {
47726+ return 31; /*31:sizeof*/
4723747727 }
4723847728
4723947729 /**
@@ -47241,7 +47731,7 @@ class Short {
4724147731 * @return bool
4724247732 */
4724347733 public function validate(): bool {
47244- return Short::validateShort($this->short);
47734+ return Sizeof::validateSizeof($this->sizeof);
4724547735 }
4724647736
4724747737 /**
@@ -47250,44 +47740,44 @@ class Short {
4725047740 */
4725147741 public function to(): stdClass {
4725247742 $out = new stdClass();
47253- $out->{'short'} = $this->toShort();
47743+ $out->{'sizeof'} = $this->toSizeof();
4725447744 return $out;
4725547745 }
4725647746
4725747747 /**
4725847748 * @param stdClass $obj
47259- * @return Short
47749+ * @return Sizeof
4726047750 * @throws Exception
4726147751 */
47262- public static function from(stdClass $obj): Short {
47263- if (!property_exists($obj, 'short')) {
47752+ public static function from(stdClass $obj): Sizeof {
47753+ if (!property_exists($obj, 'sizeof')) {
4726447754 throw new Exception("Missing required property");
4726547755 }
47266- return new Short(
47267- Short::fromShort($obj->{'short'})
47756+ return new Sizeof(
47757+ Sizeof::fromSizeof($obj->{'sizeof'})
4726847758 );
4726947759 }
4727047760
4727147761 /**
47272- * @return Short
47762+ * @return Sizeof
4727347763 */
47274- public static function sample(): Short {
47275- return new Short(
47276- Short::sampleShort()
47764+ public static function sample(): Sizeof {
47765+ return new Sizeof(
47766+ Sizeof::sampleSizeof()
4727747767 );
4727847768 }
4727947769 }
4728047770
47281-// This is an autogenerated file:Signed
47771+// This is an autogenerated file:Stackalloc
4728247772
47283-class Signed {
47284- private int $signed; // json:signed Required
47773+class Stackalloc {
47774+ private int $stackalloc; // json:stackalloc Required
4728547775
4728647776 /**
47287- * @param int $signed
47777+ * @param int $stackalloc
4728847778 */
47289- public function __construct(int $signed) {
47290- $this->signed = $signed;
47779+ public function __construct(int $stackalloc) {
47780+ $this->stackalloc = $stackalloc;
4729147781 }
4729247782
4729347783 /**
@@ -47295,7 +47785,7 @@ class Signed {
4729547785 * @throws Exception
4729647786 * @return int
4729747787 */
47298- public static function fromSigned(int $value): int {
47788+ public static function fromStackalloc(int $value): int {
4729947789 return $value; /*int*/
4730047790 }
4730147791
@@ -47303,11 +47793,11 @@ class Signed {
4730347793 * @throws Exception
4730447794 * @return int
4730547795 */
47306- public function toSigned(): int {
47307- if (Signed::validateSigned($this->signed)) {
47308- return $this->signed; /*int*/
47796+ public function toStackalloc(): int {
47797+ if (Stackalloc::validateStackalloc($this->stackalloc)) {
47798+ return $this->stackalloc; /*int*/
4730947799 }
47310- throw new Exception('never get to this Signed::signed');
47800+ throw new Exception('never get to this Stackalloc::stackalloc');
4731147801 }
4731247802
4731347803 /**
@@ -47315,7 +47805,7 @@ class Signed {
4731547805 * @return bool
4731647806 * @throws Exception
4731747807 */
47318- public static function validateSigned(int $value): bool {
47808+ public static function validateStackalloc(int $value): bool {
4731947809 return true;
4732047810 }
4732147811
@@ -47323,18 +47813,18 @@ class Signed {
4732347813 * @throws Exception
4732447814 * @return int
4732547815 */
47326- public function getSigned(): int {
47327- if (Signed::validateSigned($this->signed)) {
47328- return $this->signed;
47816+ public function getStackalloc(): int {
47817+ if (Stackalloc::validateStackalloc($this->stackalloc)) {
47818+ return $this->stackalloc;
4732947819 }
47330- throw new Exception('never get to getSigned Signed::signed');
47820+ throw new Exception('never get to getStackalloc Stackalloc::stackalloc');
4733147821 }
4733247822
4733347823 /**
4733447824 * @return int
4733547825 */
47336- public static function sampleSigned(): int {
47337- return 31; /*31:signed*/
47826+ public static function sampleStackalloc(): int {
47827+ return 31; /*31:stackalloc*/
4733847828 }
4733947829
4734047830 /**
@@ -47342,7 +47832,7 @@ class Signed {
4734247832 * @return bool
4734347833 */
4734447834 public function validate(): bool {
47345- return Signed::validateSigned($this->signed);
47835+ return Stackalloc::validateStackalloc($this->stackalloc);
4734647836 }
4734747837
4734847838 /**
@@ -47351,44 +47841,44 @@ class Signed {
4735147841 */
4735247842 public function to(): stdClass {
4735347843 $out = new stdClass();
47354- $out->{'signed'} = $this->toSigned();
47844+ $out->{'stackalloc'} = $this->toStackalloc();
4735547845 return $out;
4735647846 }
4735747847
4735847848 /**
4735947849 * @param stdClass $obj
47360- * @return Signed
47850+ * @return Stackalloc
4736147851 * @throws Exception
4736247852 */
47363- public static function from(stdClass $obj): Signed {
47364- if (!property_exists($obj, 'signed')) {
47853+ public static function from(stdClass $obj): Stackalloc {
47854+ if (!property_exists($obj, 'stackalloc')) {
4736547855 throw new Exception("Missing required property");
4736647856 }
47367- return new Signed(
47368- Signed::fromSigned($obj->{'signed'})
47857+ return new Stackalloc(
47858+ Stackalloc::fromStackalloc($obj->{'stackalloc'})
4736947859 );
4737047860 }
4737147861
4737247862 /**
47373- * @return Signed
47863+ * @return Stackalloc
4737447864 */
47375- public static function sample(): Signed {
47376- return new Signed(
47377- Signed::sampleSigned()
47865+ public static function sample(): Stackalloc {
47866+ return new Stackalloc(
47867+ Stackalloc::sampleStackalloc()
4737847868 );
4737947869 }
4738047870 }
4738147871
47382-// This is an autogenerated file:SimpleModule
47872+// This is an autogenerated file:Standards
4738347873
47384-class SimpleModule {
47385- private int $simpleModule; // json:SimpleModule Required
47874+class Standards {
47875+ private int $standards; // json:Standards Required
4738647876
4738747877 /**
47388- * @param int $simpleModule
47878+ * @param int $standards
4738947879 */
47390- public function __construct(int $simpleModule) {
47391- $this->simpleModule = $simpleModule;
47880+ public function __construct(int $standards) {
47881+ $this->standards = $standards;
4739247882 }
4739347883
4739447884 /**
@@ -47396,7 +47886,7 @@ class SimpleModule {
4739647886 * @throws Exception
4739747887 * @return int
4739847888 */
47399- public static function fromSimpleModule(int $value): int {
47889+ public static function fromStandards(int $value): int {
4740047890 return $value; /*int*/
4740147891 }
4740247892
@@ -47404,11 +47894,11 @@ class SimpleModule {
4740447894 * @throws Exception
4740547895 * @return int
4740647896 */
47407- public function toSimpleModule(): int {
47408- if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47409- return $this->simpleModule; /*int*/
47897+ public function toStandards(): int {
47898+ if (Standards::validateStandards($this->standards)) {
47899+ return $this->standards; /*int*/
4741047900 }
47411- throw new Exception('never get to this SimpleModule::simpleModule');
47901+ throw new Exception('never get to this Standards::standards');
4741247902 }
4741347903
4741447904 /**
@@ -47416,7 +47906,7 @@ class SimpleModule {
4741647906 * @return bool
4741747907 * @throws Exception
4741847908 */
47419- public static function validateSimpleModule(int $value): bool {
47909+ public static function validateStandards(int $value): bool {
4742047910 return true;
4742147911 }
4742247912
@@ -47424,18 +47914,18 @@ class SimpleModule {
4742447914 * @throws Exception
4742547915 * @return int
4742647916 */
47427- public function getSimpleModule(): int {
47428- if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47429- return $this->simpleModule;
47917+ public function getStandards(): int {
47918+ if (Standards::validateStandards($this->standards)) {
47919+ return $this->standards;
4743047920 }
47431- throw new Exception('never get to getSimpleModule SimpleModule::simpleModule');
47921+ throw new Exception('never get to getStandards Standards::standards');
4743247922 }
4743347923
4743447924 /**
4743547925 * @return int
4743647926 */
47437- public static function sampleSimpleModule(): int {
47438- return 31; /*31:simpleModule*/
47927+ public static function sampleStandards(): int {
47928+ return 31; /*31:standards*/
4743947929 }
4744047930
4744147931 /**
@@ -47443,7 +47933,7 @@ class SimpleModule {
4744347933 * @return bool
4744447934 */
4744547935 public function validate(): bool {
47446- return SimpleModule::validateSimpleModule($this->simpleModule);
47936+ return Standards::validateStandards($this->standards);
4744747937 }
4744847938
4744947939 /**
@@ -47452,44 +47942,44 @@ class SimpleModule {
4745247942 */
4745347943 public function to(): stdClass {
4745447944 $out = new stdClass();
47455- $out->{'SimpleModule'} = $this->toSimpleModule();
47945+ $out->{'Standards'} = $this->toStandards();
4745647946 return $out;
4745747947 }
4745847948
4745947949 /**
4746047950 * @param stdClass $obj
47461- * @return SimpleModule
47951+ * @return Standards
4746247952 * @throws Exception
4746347953 */
47464- public static function from(stdClass $obj): SimpleModule {
47465- if (!property_exists($obj, 'SimpleModule')) {
47954+ public static function from(stdClass $obj): Standards {
47955+ if (!property_exists($obj, 'Standards')) {
4746647956 throw new Exception("Missing required property");
4746747957 }
47468- return new SimpleModule(
47469- SimpleModule::fromSimpleModule($obj->{'SimpleModule'})
47958+ return new Standards(
47959+ Standards::fromStandards($obj->{'Standards'})
4747047960 );
4747147961 }
4747247962
4747347963 /**
47474- * @return SimpleModule
47964+ * @return Standards
4747547965 */
47476- public static function sample(): SimpleModule {
47477- return new SimpleModule(
47478- SimpleModule::sampleSimpleModule()
47966+ public static function sample(): Standards {
47967+ return new Standards(
47968+ Standards::sampleStandards()
4747947969 );
4748047970 }
4748147971 }
4748247972
47483-// This is an autogenerated file:Sizeof
47973+// This is an autogenerated file:StaticClass
4748447974
47485-class Sizeof {
47486- private int $sizeof; // json:sizeof Required
47975+class StaticClass {
47976+ private int $static; // json:static Required
4748747977
4748847978 /**
47489- * @param int $sizeof
47979+ * @param int $static
4749047980 */
47491- public function __construct(int $sizeof) {
47492- $this->sizeof = $sizeof;
47981+ public function __construct(int $static) {
47982+ $this->static = $static;
4749347983 }
4749447984
4749547985 /**
@@ -47497,7 +47987,7 @@ class Sizeof {
4749747987 * @throws Exception
4749847988 * @return int
4749947989 */
47500- public static function fromSizeof(int $value): int {
47990+ public static function fromStatic(int $value): int {
4750147991 return $value; /*int*/
4750247992 }
4750347993
@@ -47505,11 +47995,11 @@ class Sizeof {
4750547995 * @throws Exception
4750647996 * @return int
4750747997 */
47508- public function toSizeof(): int {
47509- if (Sizeof::validateSizeof($this->sizeof)) {
47510- return $this->sizeof; /*int*/
47998+ public function toStatic(): int {
47999+ if (StaticClass::validateStatic($this->static)) {
48000+ return $this->static; /*int*/
4751148001 }
47512- throw new Exception('never get to this Sizeof::sizeof');
48002+ throw new Exception('never get to this StaticClass::static');
4751348003 }
4751448004
4751548005 /**
@@ -47517,7 +48007,7 @@ class Sizeof {
4751748007 * @return bool
4751848008 * @throws Exception
4751948009 */
47520- public static function validateSizeof(int $value): bool {
48010+ public static function validateStatic(int $value): bool {
4752148011 return true;
4752248012 }
4752348013
@@ -47525,18 +48015,18 @@ class Sizeof {
4752548015 * @throws Exception
4752648016 * @return int
4752748017 */
47528- public function getSizeof(): int {
47529- if (Sizeof::validateSizeof($this->sizeof)) {
47530- return $this->sizeof;
48018+ public function getStatic(): int {
48019+ if (StaticClass::validateStatic($this->static)) {
48020+ return $this->static;
4753148021 }
47532- throw new Exception('never get to getSizeof Sizeof::sizeof');
48022+ throw new Exception('never get to getStatic StaticClass::static');
4753348023 }
4753448024
4753548025 /**
4753648026 * @return int
4753748027 */
47538- public static function sampleSizeof(): int {
47539- return 31; /*31:sizeof*/
48028+ public static function sampleStatic(): int {
48029+ return 31; /*31:static*/
4754048030 }
4754148031
4754248032 /**
@@ -47544,7 +48034,7 @@ class Sizeof {
4754448034 * @return bool
4754548035 */
4754648036 public function validate(): bool {
47547- return Sizeof::validateSizeof($this->sizeof);
48037+ return StaticClass::validateStatic($this->static);
4754848038 }
4754948039
4755048040 /**
@@ -47553,44 +48043,44 @@ class Sizeof {
4755348043 */
4755448044 public function to(): stdClass {
4755548045 $out = new stdClass();
47556- $out->{'sizeof'} = $this->toSizeof();
48046+ $out->{'static'} = $this->toStatic();
4755748047 return $out;
4755848048 }
4755948049
4756048050 /**
4756148051 * @param stdClass $obj
47562- * @return Sizeof
48052+ * @return StaticClass
4756348053 * @throws Exception
4756448054 */
47565- public static function from(stdClass $obj): Sizeof {
47566- if (!property_exists($obj, 'sizeof')) {
48055+ public static function from(stdClass $obj): StaticClass {
48056+ if (!property_exists($obj, 'static')) {
4756748057 throw new Exception("Missing required property");
4756848058 }
47569- return new Sizeof(
47570- Sizeof::fromSizeof($obj->{'sizeof'})
48059+ return new StaticClass(
48060+ StaticClass::fromStatic($obj->{'static'})
4757148061 );
4757248062 }
4757348063
4757448064 /**
47575- * @return Sizeof
48065+ * @return StaticClass
4757648066 */
47577- public static function sample(): Sizeof {
47578- return new Sizeof(
47579- Sizeof::sampleSizeof()
48067+ public static function sample(): StaticClass {
48068+ return new StaticClass(
48069+ StaticClass::sampleStatic()
4758048070 );
4758148071 }
4758248072 }
4758348073
47584-// This is an autogenerated file:Stackalloc
48074+// This is an autogenerated file:StaticAssert
4758548075
47586-class Stackalloc {
47587- private int $stackalloc; // json:stackalloc Required
48076+class StaticAssert {
48077+ private int $staticAssert; // json:static_assert Required
4758848078
4758948079 /**
47590- * @param int $stackalloc
48080+ * @param int $staticAssert
4759148081 */
47592- public function __construct(int $stackalloc) {
47593- $this->stackalloc = $stackalloc;
48082+ public function __construct(int $staticAssert) {
48083+ $this->staticAssert = $staticAssert;
4759448084 }
4759548085
4759648086 /**
@@ -47598,7 +48088,7 @@ class Stackalloc {
4759848088 * @throws Exception
4759948089 * @return int
4760048090 */
47601- public static function fromStackalloc(int $value): int {
48091+ public static function fromStaticAssert(int $value): int {
4760248092 return $value; /*int*/
4760348093 }
4760448094
@@ -47606,11 +48096,11 @@ class Stackalloc {
4760648096 * @throws Exception
4760748097 * @return int
4760848098 */
47609- public function toStackalloc(): int {
47610- if (Stackalloc::validateStackalloc($this->stackalloc)) {
47611- return $this->stackalloc; /*int*/
48099+ public function toStaticAssert(): int {
48100+ if (StaticAssert::validateStaticAssert($this->staticAssert)) {
48101+ return $this->staticAssert; /*int*/
4761248102 }
47613- throw new Exception('never get to this Stackalloc::stackalloc');
48103+ throw new Exception('never get to this StaticAssert::staticAssert');
4761448104 }
4761548105
4761648106 /**
@@ -47618,7 +48108,7 @@ class Stackalloc {
4761848108 * @return bool
4761948109 * @throws Exception
4762048110 */
47621- public static function validateStackalloc(int $value): bool {
48111+ public static function validateStaticAssert(int $value): bool {
4762248112 return true;
4762348113 }
4762448114
@@ -47626,18 +48116,18 @@ class Stackalloc {
4762648116 * @throws Exception
4762748117 * @return int
4762848118 */
47629- public function getStackalloc(): int {
47630- if (Stackalloc::validateStackalloc($this->stackalloc)) {
47631- return $this->stackalloc;
48119+ public function getStaticAssert(): int {
48120+ if (StaticAssert::validateStaticAssert($this->staticAssert)) {
48121+ return $this->staticAssert;
4763248122 }
47633- throw new Exception('never get to getStackalloc Stackalloc::stackalloc');
48123+ throw new Exception('never get to getStaticAssert StaticAssert::staticAssert');
4763448124 }
4763548125
4763648126 /**
4763748127 * @return int
4763848128 */
47639- public static function sampleStackalloc(): int {
47640- return 31; /*31:stackalloc*/
48129+ public static function sampleStaticAssert(): int {
48130+ return 31; /*31:staticAssert*/
4764148131 }
4764248132
4764348133 /**
@@ -47645,7 +48135,7 @@ class Stackalloc {
4764548135 * @return bool
4764648136 */
4764748137 public function validate(): bool {
47648- return Stackalloc::validateStackalloc($this->stackalloc);
48138+ return StaticAssert::validateStaticAssert($this->staticAssert);
4764948139 }
4765048140
4765148141 /**
@@ -47654,44 +48144,44 @@ class Stackalloc {
4765448144 */
4765548145 public function to(): stdClass {
4765648146 $out = new stdClass();
47657- $out->{'stackalloc'} = $this->toStackalloc();
48147+ $out->{'static_assert'} = $this->toStaticAssert();
4765848148 return $out;
4765948149 }
4766048150
4766148151 /**
4766248152 * @param stdClass $obj
47663- * @return Stackalloc
48153+ * @return StaticAssert
4766448154 * @throws Exception
4766548155 */
47666- public static function from(stdClass $obj): Stackalloc {
47667- if (!property_exists($obj, 'stackalloc')) {
48156+ public static function from(stdClass $obj): StaticAssert {
48157+ if (!property_exists($obj, 'static_assert')) {
4766848158 throw new Exception("Missing required property");
4766948159 }
47670- return new Stackalloc(
47671- Stackalloc::fromStackalloc($obj->{'stackalloc'})
48160+ return new StaticAssert(
48161+ StaticAssert::fromStaticAssert($obj->{'static_assert'})
4767248162 );
4767348163 }
4767448164
4767548165 /**
47676- * @return Stackalloc
48166+ * @return StaticAssert
4767748167 */
47678- public static function sample(): Stackalloc {
47679- return new Stackalloc(
47680- Stackalloc::sampleStackalloc()
48168+ public static function sample(): StaticAssert {
48169+ return new StaticAssert(
48170+ StaticAssert::sampleStaticAssert()
4768148171 );
4768248172 }
4768348173 }
4768448174
47685-// This is an autogenerated file:Standards
48175+// This is an autogenerated file:StaticCast
4768648176
47687-class Standards {
47688- private int $standards; // json:Standards Required
48177+class StaticCast {
48178+ private int $staticCast; // json:static_cast Required
4768948179
4769048180 /**
47691- * @param int $standards
48181+ * @param int $staticCast
4769248182 */
47693- public function __construct(int $standards) {
47694- $this->standards = $standards;
48183+ public function __construct(int $staticCast) {
48184+ $this->staticCast = $staticCast;
4769548185 }
4769648186
4769748187 /**
@@ -47699,7 +48189,7 @@ class Standards {
4769948189 * @throws Exception
4770048190 * @return int
4770148191 */
47702- public static function fromStandards(int $value): int {
48192+ public static function fromStaticCast(int $value): int {
4770348193 return $value; /*int*/
4770448194 }
4770548195
@@ -47707,11 +48197,11 @@ class Standards {
4770748197 * @throws Exception
4770848198 * @return int
4770948199 */
47710- public function toStandards(): int {
47711- if (Standards::validateStandards($this->standards)) {
47712- return $this->standards; /*int*/
48200+ public function toStaticCast(): int {
48201+ if (StaticCast::validateStaticCast($this->staticCast)) {
48202+ return $this->staticCast; /*int*/
4771348203 }
47714- throw new Exception('never get to this Standards::standards');
48204+ throw new Exception('never get to this StaticCast::staticCast');
4771548205 }
4771648206
4771748207 /**
@@ -47719,7 +48209,7 @@ class Standards {
4771948209 * @return bool
4772048210 * @throws Exception
4772148211 */
47722- public static function validateStandards(int $value): bool {
48212+ public static function validateStaticCast(int $value): bool {
4772348213 return true;
4772448214 }
4772548215
@@ -47727,18 +48217,18 @@ class Standards {
4772748217 * @throws Exception
4772848218 * @return int
4772948219 */
47730- public function getStandards(): int {
47731- if (Standards::validateStandards($this->standards)) {
47732- return $this->standards;
48220+ public function getStaticCast(): int {
48221+ if (StaticCast::validateStaticCast($this->staticCast)) {
48222+ return $this->staticCast;
4773348223 }
47734- throw new Exception('never get to getStandards Standards::standards');
48224+ throw new Exception('never get to getStaticCast StaticCast::staticCast');
4773548225 }
4773648226
4773748227 /**
4773848228 * @return int
4773948229 */
47740- public static function sampleStandards(): int {
47741- return 31; /*31:standards*/
48230+ public static function sampleStaticCast(): int {
48231+ return 31; /*31:staticCast*/
4774248232 }
4774348233
4774448234 /**
@@ -47746,7 +48236,7 @@ class Standards {
4774648236 * @return bool
4774748237 */
4774848238 public function validate(): bool {
47749- return Standards::validateStandards($this->standards);
48239+ return StaticCast::validateStaticCast($this->staticCast);
4775048240 }
4775148241
4775248242 /**
@@ -47755,44 +48245,44 @@ class Standards {
4775548245 */
4775648246 public function to(): stdClass {
4775748247 $out = new stdClass();
47758- $out->{'Standards'} = $this->toStandards();
48248+ $out->{'static_cast'} = $this->toStaticCast();
4775948249 return $out;
4776048250 }
4776148251
4776248252 /**
4776348253 * @param stdClass $obj
47764- * @return Standards
48254+ * @return StaticCast
4776548255 * @throws Exception
4776648256 */
47767- public static function from(stdClass $obj): Standards {
47768- if (!property_exists($obj, 'Standards')) {
48257+ public static function from(stdClass $obj): StaticCast {
48258+ if (!property_exists($obj, 'static_cast')) {
4776948259 throw new Exception("Missing required property");
4777048260 }
47771- return new Standards(
47772- Standards::fromStandards($obj->{'Standards'})
48261+ return new StaticCast(
48262+ StaticCast::fromStaticCast($obj->{'static_cast'})
4777348263 );
4777448264 }
4777548265
4777648266 /**
47777- * @return Standards
48267+ * @return StaticCast
4777848268 */
47779- public static function sample(): Standards {
47780- return new Standards(
47781- Standards::sampleStandards()
48269+ public static function sample(): StaticCast {
48270+ return new StaticCast(
48271+ StaticCast::sampleStaticCast()
4778248272 );
4778348273 }
4778448274 }
4778548275
47786-// This is an autogenerated file:StaticClass
48276+// This is an autogenerated file:StdDeserializer
4778748277
47788-class StaticClass {
47789- private int $static; // json:static Required
48278+class StdDeserializer {
48279+ private int $stdDeserializer; // json:StdDeserializer Required
4779048280
4779148281 /**
47792- * @param int $static
48282+ * @param int $stdDeserializer
4779348283 */
47794- public function __construct(int $static) {
47795- $this->static = $static;
48284+ public function __construct(int $stdDeserializer) {
48285+ $this->stdDeserializer = $stdDeserializer;
4779648286 }
4779748287
4779848288 /**
@@ -47800,7 +48290,7 @@ class StaticClass {
4780048290 * @throws Exception
4780148291 * @return int
4780248292 */
47803- public static function fromStatic(int $value): int {
48293+ public static function fromStdDeserializer(int $value): int {
4780448294 return $value; /*int*/
4780548295 }
4780648296
@@ -47808,11 +48298,11 @@ class StaticClass {
4780848298 * @throws Exception
4780948299 * @return int
4781048300 */
47811- public function toStatic(): int {
47812- if (StaticClass::validateStatic($this->static)) {
47813- return $this->static; /*int*/
48301+ public function toStdDeserializer(): int {
48302+ if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
48303+ return $this->stdDeserializer; /*int*/
4781448304 }
47815- throw new Exception('never get to this StaticClass::static');
48305+ throw new Exception('never get to this StdDeserializer::stdDeserializer');
4781648306 }
4781748307
4781848308 /**
@@ -47820,7 +48310,7 @@ class StaticClass {
4782048310 * @return bool
4782148311 * @throws Exception
4782248312 */
47823- public static function validateStatic(int $value): bool {
48313+ public static function validateStdDeserializer(int $value): bool {
4782448314 return true;
4782548315 }
4782648316
@@ -47828,18 +48318,18 @@ class StaticClass {
4782848318 * @throws Exception
4782948319 * @return int
4783048320 */
47831- public function getStatic(): int {
47832- if (StaticClass::validateStatic($this->static)) {
47833- return $this->static;
48321+ public function getStdDeserializer(): int {
48322+ if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
48323+ return $this->stdDeserializer;
4783448324 }
47835- throw new Exception('never get to getStatic StaticClass::static');
48325+ throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer');
4783648326 }
4783748327
4783848328 /**
4783948329 * @return int
4784048330 */
47841- public static function sampleStatic(): int {
47842- return 31; /*31:static*/
48331+ public static function sampleStdDeserializer(): int {
48332+ return 31; /*31:stdDeserializer*/
4784348333 }
4784448334
4784548335 /**
@@ -47847,7 +48337,7 @@ class StaticClass {
4784748337 * @return bool
4784848338 */
4784948339 public function validate(): bool {
47850- return StaticClass::validateStatic($this->static);
48340+ return StdDeserializer::validateStdDeserializer($this->stdDeserializer);
4785148341 }
4785248342
4785348343 /**
@@ -47856,44 +48346,44 @@ class StaticClass {
4785648346 */
4785748347 public function to(): stdClass {
4785848348 $out = new stdClass();
47859- $out->{'static'} = $this->toStatic();
48349+ $out->{'StdDeserializer'} = $this->toStdDeserializer();
4786048350 return $out;
4786148351 }
4786248352
4786348353 /**
4786448354 * @param stdClass $obj
47865- * @return StaticClass
48355+ * @return StdDeserializer
4786648356 * @throws Exception
4786748357 */
47868- public static function from(stdClass $obj): StaticClass {
47869- if (!property_exists($obj, 'static')) {
48358+ public static function from(stdClass $obj): StdDeserializer {
48359+ if (!property_exists($obj, 'StdDeserializer')) {
4787048360 throw new Exception("Missing required property");
4787148361 }
47872- return new StaticClass(
47873- StaticClass::fromStatic($obj->{'static'})
48362+ return new StdDeserializer(
48363+ StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'})
4787448364 );
4787548365 }
4787648366
4787748367 /**
47878- * @return StaticClass
48368+ * @return StdDeserializer
4787948369 */
47880- public static function sample(): StaticClass {
47881- return new StaticClass(
47882- StaticClass::sampleStatic()
48370+ public static function sample(): StdDeserializer {
48371+ return new StdDeserializer(
48372+ StdDeserializer::sampleStdDeserializer()
4788348373 );
4788448374 }
4788548375 }
4788648376
47887-// This is an autogenerated file:StaticAssert
48377+// This is an autogenerated file:StdSerializer
4788848378
47889-class StaticAssert {
47890- private int $staticAssert; // json:static_assert Required
48379+class StdSerializer {
48380+ private int $stdSerializer; // json:StdSerializer Required
4789148381
4789248382 /**
47893- * @param int $staticAssert
48383+ * @param int $stdSerializer
4789448384 */
47895- public function __construct(int $staticAssert) {
47896- $this->staticAssert = $staticAssert;
48385+ public function __construct(int $stdSerializer) {
48386+ $this->stdSerializer = $stdSerializer;
4789748387 }
4789848388
4789948389 /**
@@ -47901,7 +48391,7 @@ class StaticAssert {
4790148391 * @throws Exception
4790248392 * @return int
4790348393 */
47904- public static function fromStaticAssert(int $value): int {
48394+ public static function fromStdSerializer(int $value): int {
4790548395 return $value; /*int*/
4790648396 }
4790748397
@@ -47909,11 +48399,11 @@ class StaticAssert {
4790948399 * @throws Exception
4791048400 * @return int
4791148401 */
47912- public function toStaticAssert(): int {
47913- if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47914- return $this->staticAssert; /*int*/
48402+ public function toStdSerializer(): int {
48403+ if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
48404+ return $this->stdSerializer; /*int*/
4791548405 }
47916- throw new Exception('never get to this StaticAssert::staticAssert');
48406+ throw new Exception('never get to this StdSerializer::stdSerializer');
4791748407 }
4791848408
4791948409 /**
@@ -47921,7 +48411,7 @@ class StaticAssert {
4792148411 * @return bool
4792248412 * @throws Exception
4792348413 */
47924- public static function validateStaticAssert(int $value): bool {
48414+ public static function validateStdSerializer(int $value): bool {
4792548415 return true;
4792648416 }
4792748417
@@ -47929,18 +48419,18 @@ class StaticAssert {
4792948419 * @throws Exception
4793048420 * @return int
4793148421 */
47932- public function getStaticAssert(): int {
47933- if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47934- return $this->staticAssert;
48422+ public function getStdSerializer(): int {
48423+ if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
48424+ return $this->stdSerializer;
4793548425 }
47936- throw new Exception('never get to getStaticAssert StaticAssert::staticAssert');
48426+ throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer');
4793748427 }
4793848428
4793948429 /**
4794048430 * @return int
4794148431 */
47942- public static function sampleStaticAssert(): int {
47943- return 31; /*31:staticAssert*/
48432+ public static function sampleStdSerializer(): int {
48433+ return 31; /*31:stdSerializer*/
4794448434 }
4794548435
4794648436 /**
@@ -47948,7 +48438,7 @@ class StaticAssert {
4794848438 * @return bool
4794948439 */
4795048440 public function validate(): bool {
47951- return StaticAssert::validateStaticAssert($this->staticAssert);
48441+ return StdSerializer::validateStdSerializer($this->stdSerializer);
4795248442 }
4795348443
4795448444 /**
@@ -47957,44 +48447,44 @@ class StaticAssert {
4795748447 */
4795848448 public function to(): stdClass {
4795948449 $out = new stdClass();
47960- $out->{'static_assert'} = $this->toStaticAssert();
48450+ $out->{'StdSerializer'} = $this->toStdSerializer();
4796148451 return $out;
4796248452 }
4796348453
4796448454 /**
4796548455 * @param stdClass $obj
47966- * @return StaticAssert
48456+ * @return StdSerializer
4796748457 * @throws Exception
4796848458 */
47969- public static function from(stdClass $obj): StaticAssert {
47970- if (!property_exists($obj, 'static_assert')) {
48459+ public static function from(stdClass $obj): StdSerializer {
48460+ if (!property_exists($obj, 'StdSerializer')) {
4797148461 throw new Exception("Missing required property");
4797248462 }
47973- return new StaticAssert(
47974- StaticAssert::fromStaticAssert($obj->{'static_assert'})
48463+ return new StdSerializer(
48464+ StdSerializer::fromStdSerializer($obj->{'StdSerializer'})
4797548465 );
4797648466 }
4797748467
4797848468 /**
47979- * @return StaticAssert
48469+ * @return StdSerializer
4798048470 */
47981- public static function sample(): StaticAssert {
47982- return new StaticAssert(
47983- StaticAssert::sampleStaticAssert()
48471+ public static function sample(): StdSerializer {
48472+ return new StdSerializer(
48473+ StdSerializer::sampleStdSerializer()
4798448474 );
4798548475 }
4798648476 }
4798748477
47988-// This is an autogenerated file:StaticCast
47989-
47990-class StaticCast {
47991- private int $staticCast; // json:static_cast Required
48478+// This is an autogenerated file:Strictfp
48479+
48480+class Strictfp {
48481+ private int $strictfp; // json:strictfp Required
4799248482
4799348483 /**
47994- * @param int $staticCast
48484+ * @param int $strictfp
4799548485 */
47996- public function __construct(int $staticCast) {
47997- $this->staticCast = $staticCast;
48486+ public function __construct(int $strictfp) {
48487+ $this->strictfp = $strictfp;
4799848488 }
4799948489
4800048490 /**
@@ -48002,7 +48492,7 @@ class StaticCast {
4800248492 * @throws Exception
4800348493 * @return int
4800448494 */
48005- public static function fromStaticCast(int $value): int {
48495+ public static function fromStrictfp(int $value): int {
4800648496 return $value; /*int*/
4800748497 }
4800848498
@@ -48010,11 +48500,11 @@ class StaticCast {
4801048500 * @throws Exception
4801148501 * @return int
4801248502 */
48013- public function toStaticCast(): int {
48014- if (StaticCast::validateStaticCast($this->staticCast)) {
48015- return $this->staticCast; /*int*/
48503+ public function toStrictfp(): int {
48504+ if (Strictfp::validateStrictfp($this->strictfp)) {
48505+ return $this->strictfp; /*int*/
4801648506 }
48017- throw new Exception('never get to this StaticCast::staticCast');
48507+ throw new Exception('never get to this Strictfp::strictfp');
4801848508 }
4801948509
4802048510 /**
@@ -48022,7 +48512,7 @@ class StaticCast {
4802248512 * @return bool
4802348513 * @throws Exception
4802448514 */
48025- public static function validateStaticCast(int $value): bool {
48515+ public static function validateStrictfp(int $value): bool {
4802648516 return true;
4802748517 }
4802848518
@@ -48030,18 +48520,18 @@ class StaticCast {
4803048520 * @throws Exception
4803148521 * @return int
4803248522 */
48033- public function getStaticCast(): int {
48034- if (StaticCast::validateStaticCast($this->staticCast)) {
48035- return $this->staticCast;
48523+ public function getStrictfp(): int {
48524+ if (Strictfp::validateStrictfp($this->strictfp)) {
48525+ return $this->strictfp;
4803648526 }
48037- throw new Exception('never get to getStaticCast StaticCast::staticCast');
48527+ throw new Exception('never get to getStrictfp Strictfp::strictfp');
4803848528 }
4803948529
4804048530 /**
4804148531 * @return int
4804248532 */
48043- public static function sampleStaticCast(): int {
48044- return 31; /*31:staticCast*/
48533+ public static function sampleStrictfp(): int {
48534+ return 31; /*31:strictfp*/
4804548535 }
4804648536
4804748537 /**
@@ -48049,7 +48539,7 @@ class StaticCast {
4804948539 * @return bool
4805048540 */
4805148541 public function validate(): bool {
48052- return StaticCast::validateStaticCast($this->staticCast);
48542+ return Strictfp::validateStrictfp($this->strictfp);
4805348543 }
4805448544
4805548545 /**
@@ -48058,44 +48548,44 @@ class StaticCast {
4805848548 */
4805948549 public function to(): stdClass {
4806048550 $out = new stdClass();
48061- $out->{'static_cast'} = $this->toStaticCast();
48551+ $out->{'strictfp'} = $this->toStrictfp();
4806248552 return $out;
4806348553 }
4806448554
4806548555 /**
4806648556 * @param stdClass $obj
48067- * @return StaticCast
48557+ * @return Strictfp
4806848558 * @throws Exception
4806948559 */
48070- public static function from(stdClass $obj): StaticCast {
48071- if (!property_exists($obj, 'static_cast')) {
48560+ public static function from(stdClass $obj): Strictfp {
48561+ if (!property_exists($obj, 'strictfp')) {
4807248562 throw new Exception("Missing required property");
4807348563 }
48074- return new StaticCast(
48075- StaticCast::fromStaticCast($obj->{'static_cast'})
48564+ return new Strictfp(
48565+ Strictfp::fromStrictfp($obj->{'strictfp'})
4807648566 );
4807748567 }
4807848568
4807948569 /**
48080- * @return StaticCast
48570+ * @return Strictfp
4808148571 */
48082- public static function sample(): StaticCast {
48083- return new StaticCast(
48084- StaticCast::sampleStaticCast()
48572+ public static function sample(): Strictfp {
48573+ return new Strictfp(
48574+ Strictfp::sampleStrictfp()
4808548575 );
4808648576 }
4808748577 }
4808848578
48089-// This is an autogenerated file:StdDeserializer
48579+// This is an autogenerated file:StringClass
4809048580
48091-class StdDeserializer {
48092- private int $stdDeserializer; // json:StdDeserializer Required
48581+class StringClass {
48582+ private int $string; // json:string Required
4809348583
4809448584 /**
48095- * @param int $stdDeserializer
48585+ * @param int $string
4809648586 */
48097- public function __construct(int $stdDeserializer) {
48098- $this->stdDeserializer = $stdDeserializer;
48587+ public function __construct(int $string) {
48588+ $this->string = $string;
4809948589 }
4810048590
4810148591 /**
@@ -48103,7 +48593,7 @@ class StdDeserializer {
4810348593 * @throws Exception
4810448594 * @return int
4810548595 */
48106- public static function fromStdDeserializer(int $value): int {
48596+ public static function fromString(int $value): int {
4810748597 return $value; /*int*/
4810848598 }
4810948599
@@ -48111,11 +48601,11 @@ class StdDeserializer {
4811148601 * @throws Exception
4811248602 * @return int
4811348603 */
48114- public function toStdDeserializer(): int {
48115- if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
48116- return $this->stdDeserializer; /*int*/
48604+ public function toString(): int {
48605+ if (StringClass::validateString($this->string)) {
48606+ return $this->string; /*int*/
4811748607 }
48118- throw new Exception('never get to this StdDeserializer::stdDeserializer');
48608+ throw new Exception('never get to this StringClass::string');
4811948609 }
4812048610
4812148611 /**
@@ -48123,7 +48613,7 @@ class StdDeserializer {
4812348613 * @return bool
4812448614 * @throws Exception
4812548615 */
48126- public static function validateStdDeserializer(int $value): bool {
48616+ public static function validateString(int $value): bool {
4812748617 return true;
4812848618 }
4812948619
@@ -48131,18 +48621,18 @@ class StdDeserializer {
4813148621 * @throws Exception
4813248622 * @return int
4813348623 */
48134- public function getStdDeserializer(): int {
48135- if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
48136- return $this->stdDeserializer;
48624+ public function getString(): int {
48625+ if (StringClass::validateString($this->string)) {
48626+ return $this->string;
4813748627 }
48138- throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer');
48628+ throw new Exception('never get to getString StringClass::string');
4813948629 }
4814048630
4814148631 /**
4814248632 * @return int
4814348633 */
48144- public static function sampleStdDeserializer(): int {
48145- return 31; /*31:stdDeserializer*/
48634+ public static function sampleString(): int {
48635+ return 31; /*31:string*/
4814648636 }
4814748637
4814848638 /**
@@ -48150,7 +48640,7 @@ class StdDeserializer {
4815048640 * @return bool
4815148641 */
4815248642 public function validate(): bool {
48153- return StdDeserializer::validateStdDeserializer($this->stdDeserializer);
48643+ return StringClass::validateString($this->string);
4815448644 }
4815548645
4815648646 /**
@@ -48159,44 +48649,44 @@ class StdDeserializer {
4815948649 */
4816048650 public function to(): stdClass {
4816148651 $out = new stdClass();
48162- $out->{'StdDeserializer'} = $this->toStdDeserializer();
48652+ $out->{'string'} = $this->toString();
4816348653 return $out;
4816448654 }
4816548655
4816648656 /**
4816748657 * @param stdClass $obj
48168- * @return StdDeserializer
48658+ * @return StringClass
4816948659 * @throws Exception
4817048660 */
48171- public static function from(stdClass $obj): StdDeserializer {
48172- if (!property_exists($obj, 'StdDeserializer')) {
48661+ public static function from(stdClass $obj): StringClass {
48662+ if (!property_exists($obj, 'string')) {
4817348663 throw new Exception("Missing required property");
4817448664 }
48175- return new StdDeserializer(
48176- StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'})
48665+ return new StringClass(
48666+ StringClass::fromString($obj->{'string'})
4817748667 );
4817848668 }
4817948669
4818048670 /**
48181- * @return StdDeserializer
48671+ * @return StringClass
4818248672 */
48183- public static function sample(): StdDeserializer {
48184- return new StdDeserializer(
48185- StdDeserializer::sampleStdDeserializer()
48673+ public static function sample(): StringClass {
48674+ return new StringClass(
48675+ StringClass::sampleString()
4818648676 );
4818748677 }
4818848678 }
4818948679
48190-// This is an autogenerated file:StdSerializer
48680+// This is an autogenerated file:Struct
4819148681
48192-class StdSerializer {
48193- private int $stdSerializer; // json:StdSerializer Required
48682+class Struct {
48683+ private int $struct; // json:struct Required
4819448684
4819548685 /**
48196- * @param int $stdSerializer
48686+ * @param int $struct
4819748687 */
48198- public function __construct(int $stdSerializer) {
48199- $this->stdSerializer = $stdSerializer;
48688+ public function __construct(int $struct) {
48689+ $this->struct = $struct;
4820048690 }
4820148691
4820248692 /**
@@ -48204,7 +48694,7 @@ class StdSerializer {
4820448694 * @throws Exception
4820548695 * @return int
4820648696 */
48207- public static function fromStdSerializer(int $value): int {
48697+ public static function fromStruct(int $value): int {
4820848698 return $value; /*int*/
4820948699 }
4821048700
@@ -48212,11 +48702,11 @@ class StdSerializer {
4821248702 * @throws Exception
4821348703 * @return int
4821448704 */
48215- public function toStdSerializer(): int {
48216- if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
48217- return $this->stdSerializer; /*int*/
48705+ public function toStruct(): int {
48706+ if (Struct::validateStruct($this->struct)) {
48707+ return $this->struct; /*int*/
4821848708 }
48219- throw new Exception('never get to this StdSerializer::stdSerializer');
48709+ throw new Exception('never get to this Struct::struct');
4822048710 }
4822148711
4822248712 /**
@@ -48224,7 +48714,7 @@ class StdSerializer {
4822448714 * @return bool
4822548715 * @throws Exception
4822648716 */
48227- public static function validateStdSerializer(int $value): bool {
48717+ public static function validateStruct(int $value): bool {
4822848718 return true;
4822948719 }
4823048720
@@ -48232,18 +48722,18 @@ class StdSerializer {
4823248722 * @throws Exception
4823348723 * @return int
4823448724 */
48235- public function getStdSerializer(): int {
48236- if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
48237- return $this->stdSerializer;
48725+ public function getStruct(): int {
48726+ if (Struct::validateStruct($this->struct)) {
48727+ return $this->struct;
4823848728 }
48239- throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer');
48729+ throw new Exception('never get to getStruct Struct::struct');
4824048730 }
4824148731
4824248732 /**
4824348733 * @return int
4824448734 */
48245- public static function sampleStdSerializer(): int {
48246- return 31; /*31:stdSerializer*/
48735+ public static function sampleStruct(): int {
48736+ return 31; /*31:struct*/
4824748737 }
4824848738
4824948739 /**
@@ -48251,7 +48741,7 @@ class StdSerializer {
4825148741 * @return bool
4825248742 */
4825348743 public function validate(): bool {
48254- return StdSerializer::validateStdSerializer($this->stdSerializer);
48744+ return Struct::validateStruct($this->struct);
4825548745 }
4825648746
4825748747 /**
@@ -48260,44 +48750,44 @@ class StdSerializer {
4826048750 */
4826148751 public function to(): stdClass {
4826248752 $out = new stdClass();
48263- $out->{'StdSerializer'} = $this->toStdSerializer();
48753+ $out->{'struct'} = $this->toStruct();
4826448754 return $out;
4826548755 }
4826648756
4826748757 /**
4826848758 * @param stdClass $obj
48269- * @return StdSerializer
48759+ * @return Struct
4827048760 * @throws Exception
4827148761 */
48272- public static function from(stdClass $obj): StdSerializer {
48273- if (!property_exists($obj, 'StdSerializer')) {
48762+ public static function from(stdClass $obj): Struct {
48763+ if (!property_exists($obj, 'struct')) {
4827448764 throw new Exception("Missing required property");
4827548765 }
48276- return new StdSerializer(
48277- StdSerializer::fromStdSerializer($obj->{'StdSerializer'})
48766+ return new Struct(
48767+ Struct::fromStruct($obj->{'struct'})
4827848768 );
4827948769 }
4828048770
4828148771 /**
48282- * @return StdSerializer
48772+ * @return Struct
4828348773 */
48284- public static function sample(): StdSerializer {
48285- return new StdSerializer(
48286- StdSerializer::sampleStdSerializer()
48774+ public static function sample(): Struct {
48775+ return new Struct(
48776+ Struct::sampleStruct()
4828748777 );
4828848778 }
4828948779 }
4829048780
48291-// This is an autogenerated file:Strictfp
48781+// This is an autogenerated file:Subscript
4829248782
48293-class Strictfp {
48294- private int $strictfp; // json:strictfp Required
48783+class Subscript {
48784+ private int $subscript; // json:subscript Required
4829548785
4829648786 /**
48297- * @param int $strictfp
48787+ * @param int $subscript
4829848788 */
48299- public function __construct(int $strictfp) {
48300- $this->strictfp = $strictfp;
48789+ public function __construct(int $subscript) {
48790+ $this->subscript = $subscript;
4830148791 }
4830248792
4830348793 /**
@@ -48305,7 +48795,7 @@ class Strictfp {
4830548795 * @throws Exception
4830648796 * @return int
4830748797 */
48308- public static function fromStrictfp(int $value): int {
48798+ public static function fromSubscript(int $value): int {
4830948799 return $value; /*int*/
4831048800 }
4831148801
@@ -48313,11 +48803,11 @@ class Strictfp {
4831348803 * @throws Exception
4831448804 * @return int
4831548805 */
48316- public function toStrictfp(): int {
48317- if (Strictfp::validateStrictfp($this->strictfp)) {
48318- return $this->strictfp; /*int*/
48806+ public function toSubscript(): int {
48807+ if (Subscript::validateSubscript($this->subscript)) {
48808+ return $this->subscript; /*int*/
4831948809 }
48320- throw new Exception('never get to this Strictfp::strictfp');
48810+ throw new Exception('never get to this Subscript::subscript');
4832148811 }
4832248812
4832348813 /**
@@ -48325,7 +48815,7 @@ class Strictfp {
4832548815 * @return bool
4832648816 * @throws Exception
4832748817 */
48328- public static function validateStrictfp(int $value): bool {
48818+ public static function validateSubscript(int $value): bool {
4832948819 return true;
4833048820 }
4833148821
@@ -48333,18 +48823,18 @@ class Strictfp {
4833348823 * @throws Exception
4833448824 * @return int
4833548825 */
48336- public function getStrictfp(): int {
48337- if (Strictfp::validateStrictfp($this->strictfp)) {
48338- return $this->strictfp;
48826+ public function getSubscript(): int {
48827+ if (Subscript::validateSubscript($this->subscript)) {
48828+ return $this->subscript;
4833948829 }
48340- throw new Exception('never get to getStrictfp Strictfp::strictfp');
48830+ throw new Exception('never get to getSubscript Subscript::subscript');
4834148831 }
4834248832
4834348833 /**
4834448834 * @return int
4834548835 */
48346- public static function sampleStrictfp(): int {
48347- return 31; /*31:strictfp*/
48836+ public static function sampleSubscript(): int {
48837+ return 31; /*31:subscript*/
4834848838 }
4834948839
4835048840 /**
@@ -48352,7 +48842,7 @@ class Strictfp {
4835248842 * @return bool
4835348843 */
4835448844 public function validate(): bool {
48355- return Strictfp::validateStrictfp($this->strictfp);
48845+ return Subscript::validateSubscript($this->subscript);
4835648846 }
4835748847
4835848848 /**
@@ -48361,44 +48851,44 @@ class Strictfp {
4836148851 */
4836248852 public function to(): stdClass {
4836348853 $out = new stdClass();
48364- $out->{'strictfp'} = $this->toStrictfp();
48854+ $out->{'subscript'} = $this->toSubscript();
4836548855 return $out;
4836648856 }
4836748857
4836848858 /**
4836948859 * @param stdClass $obj
48370- * @return Strictfp
48860+ * @return Subscript
4837148861 * @throws Exception
4837248862 */
48373- public static function from(stdClass $obj): Strictfp {
48374- if (!property_exists($obj, 'strictfp')) {
48863+ public static function from(stdClass $obj): Subscript {
48864+ if (!property_exists($obj, 'subscript')) {
4837548865 throw new Exception("Missing required property");
4837648866 }
48377- return new Strictfp(
48378- Strictfp::fromStrictfp($obj->{'strictfp'})
48867+ return new Subscript(
48868+ Subscript::fromSubscript($obj->{'subscript'})
4837948869 );
4838048870 }
4838148871
4838248872 /**
48383- * @return Strictfp
48873+ * @return Subscript
4838448874 */
48385- public static function sample(): Strictfp {
48386- return new Strictfp(
48387- Strictfp::sampleStrictfp()
48875+ public static function sample(): Subscript {
48876+ return new Subscript(
48877+ Subscript::sampleSubscript()
4838848878 );
4838948879 }
4839048880 }
4839148881
48392-// This is an autogenerated file:StringClass
48882+// This is an autogenerated file:Super
4839348883
48394-class StringClass {
48395- private int $string; // json:string Required
48884+class Super {
48885+ private int $super; // json:super Required
4839648886
4839748887 /**
48398- * @param int $string
48888+ * @param int $super
4839948889 */
48400- public function __construct(int $string) {
48401- $this->string = $string;
48890+ public function __construct(int $super) {
48891+ $this->super = $super;
4840248892 }
4840348893
4840448894 /**
@@ -48406,7 +48896,7 @@ class StringClass {
4840648896 * @throws Exception
4840748897 * @return int
4840848898 */
48409- public static function fromString(int $value): int {
48899+ public static function fromSuper(int $value): int {
4841048900 return $value; /*int*/
4841148901 }
4841248902
@@ -48414,11 +48904,11 @@ class StringClass {
4841448904 * @throws Exception
4841548905 * @return int
4841648906 */
48417- public function toString(): int {
48418- if (StringClass::validateString($this->string)) {
48419- return $this->string; /*int*/
48907+ public function toSuper(): int {
48908+ if (Super::validateSuper($this->super)) {
48909+ return $this->super; /*int*/
4842048910 }
48421- throw new Exception('never get to this StringClass::string');
48911+ throw new Exception('never get to this Super::super');
4842248912 }
4842348913
4842448914 /**
@@ -48426,7 +48916,7 @@ class StringClass {
4842648916 * @return bool
4842748917 * @throws Exception
4842848918 */
48429- public static function validateString(int $value): bool {
48919+ public static function validateSuper(int $value): bool {
4843048920 return true;
4843148921 }
4843248922
@@ -48434,18 +48924,18 @@ class StringClass {
4843448924 * @throws Exception
4843548925 * @return int
4843648926 */
48437- public function getString(): int {
48438- if (StringClass::validateString($this->string)) {
48439- return $this->string;
48927+ public function getSuper(): int {
48928+ if (Super::validateSuper($this->super)) {
48929+ return $this->super;
4844048930 }
48441- throw new Exception('never get to getString StringClass::string');
48931+ throw new Exception('never get to getSuper Super::super');
4844248932 }
4844348933
4844448934 /**
4844548935 * @return int
4844648936 */
48447- public static function sampleString(): int {
48448- return 31; /*31:string*/
48937+ public static function sampleSuper(): int {
48938+ return 31; /*31:super*/
4844948939 }
4845048940
4845148941 /**
@@ -48453,7 +48943,7 @@ class StringClass {
4845348943 * @return bool
4845448944 */
4845548945 public function validate(): bool {
48456- return StringClass::validateString($this->string);
48946+ return Super::validateSuper($this->super);
4845748947 }
4845848948
4845948949 /**
@@ -48462,44 +48952,44 @@ class StringClass {
4846248952 */
4846348953 public function to(): stdClass {
4846448954 $out = new stdClass();
48465- $out->{'string'} = $this->toString();
48955+ $out->{'super'} = $this->toSuper();
4846648956 return $out;
4846748957 }
4846848958
4846948959 /**
4847048960 * @param stdClass $obj
48471- * @return StringClass
48961+ * @return Super
4847248962 * @throws Exception
4847348963 */
48474- public static function from(stdClass $obj): StringClass {
48475- if (!property_exists($obj, 'string')) {
48964+ public static function from(stdClass $obj): Super {
48965+ if (!property_exists($obj, 'super')) {
4847648966 throw new Exception("Missing required property");
4847748967 }
48478- return new StringClass(
48479- StringClass::fromString($obj->{'string'})
48968+ return new Super(
48969+ Super::fromSuper($obj->{'super'})
4848048970 );
4848148971 }
4848248972
4848348973 /**
48484- * @return StringClass
48974+ * @return Super
4848548975 */
48486- public static function sample(): StringClass {
48487- return new StringClass(
48488- StringClass::sampleString()
48976+ public static function sample(): Super {
48977+ return new Super(
48978+ Super::sampleSuper()
4848948979 );
4849048980 }
4849148981 }
4849248982
48493-// This is an autogenerated file:Struct
48983+// This is an autogenerated file:SwitchClass
4849448984
48495-class Struct {
48496- private int $struct; // json:struct Required
48985+class SwitchClass {
48986+ private int $switch; // json:switch Required
4849748987
4849848988 /**
48499- * @param int $struct
48989+ * @param int $switch
4850048990 */
48501- public function __construct(int $struct) {
48502- $this->struct = $struct;
48991+ public function __construct(int $switch) {
48992+ $this->switch = $switch;
4850348993 }
4850448994
4850548995 /**
@@ -48507,7 +48997,7 @@ class Struct {
4850748997 * @throws Exception
4850848998 * @return int
4850948999 */
48510- public static function fromStruct(int $value): int {
49000+ public static function fromSwitch(int $value): int {
4851149001 return $value; /*int*/
4851249002 }
4851349003
@@ -48515,11 +49005,11 @@ class Struct {
4851549005 * @throws Exception
4851649006 * @return int
4851749007 */
48518- public function toStruct(): int {
48519- if (Struct::validateStruct($this->struct)) {
48520- return $this->struct; /*int*/
49008+ public function toSwitch(): int {
49009+ if (SwitchClass::validateSwitch($this->switch)) {
49010+ return $this->switch; /*int*/
4852149011 }
48522- throw new Exception('never get to this Struct::struct');
49012+ throw new Exception('never get to this SwitchClass::switch');
4852349013 }
4852449014
4852549015 /**
@@ -48527,7 +49017,7 @@ class Struct {
4852749017 * @return bool
4852849018 * @throws Exception
4852949019 */
48530- public static function validateStruct(int $value): bool {
49020+ public static function validateSwitch(int $value): bool {
4853149021 return true;
4853249022 }
4853349023
@@ -48535,18 +49025,18 @@ class Struct {
4853549025 * @throws Exception
4853649026 * @return int
4853749027 */
48538- public function getStruct(): int {
48539- if (Struct::validateStruct($this->struct)) {
48540- return $this->struct;
49028+ public function getSwitch(): int {
49029+ if (SwitchClass::validateSwitch($this->switch)) {
49030+ return $this->switch;
4854149031 }
48542- throw new Exception('never get to getStruct Struct::struct');
49032+ throw new Exception('never get to getSwitch SwitchClass::switch');
4854349033 }
4854449034
4854549035 /**
4854649036 * @return int
4854749037 */
48548- public static function sampleStruct(): int {
48549- return 31; /*31:struct*/
49038+ public static function sampleSwitch(): int {
49039+ return 31; /*31:switch*/
4855049040 }
4855149041
4855249042 /**
@@ -48554,7 +49044,7 @@ class Struct {
4855449044 * @return bool
4855549045 */
4855649046 public function validate(): bool {
48557- return Struct::validateStruct($this->struct);
49047+ return SwitchClass::validateSwitch($this->switch);
4855849048 }
4855949049
4856049050 /**
@@ -48563,44 +49053,44 @@ class Struct {
4856349053 */
4856449054 public function to(): stdClass {
4856549055 $out = new stdClass();
48566- $out->{'struct'} = $this->toStruct();
49056+ $out->{'switch'} = $this->toSwitch();
4856749057 return $out;
4856849058 }
4856949059
4857049060 /**
4857149061 * @param stdClass $obj
48572- * @return Struct
49062+ * @return SwitchClass
4857349063 * @throws Exception
4857449064 */
48575- public static function from(stdClass $obj): Struct {
48576- if (!property_exists($obj, 'struct')) {
49065+ public static function from(stdClass $obj): SwitchClass {
49066+ if (!property_exists($obj, 'switch')) {
4857749067 throw new Exception("Missing required property");
4857849068 }
48579- return new Struct(
48580- Struct::fromStruct($obj->{'struct'})
49069+ return new SwitchClass(
49070+ SwitchClass::fromSwitch($obj->{'switch'})
4858149071 );
4858249072 }
4858349073
4858449074 /**
48585- * @return Struct
49075+ * @return SwitchClass
4858649076 */
48587- public static function sample(): Struct {
48588- return new Struct(
48589- Struct::sampleStruct()
49077+ public static function sample(): SwitchClass {
49078+ return new SwitchClass(
49079+ SwitchClass::sampleSwitch()
4859049080 );
4859149081 }
4859249082 }
4859349083
48594-// This is an autogenerated file:Subscript
49084+// This is an autogenerated file:Symbol
4859549085
48596-class Subscript {
48597- private int $subscript; // json:subscript Required
49086+class Symbol {
49087+ private int $symbol; // json:symbol Required
4859849088
4859949089 /**
48600- * @param int $subscript
49090+ * @param int $symbol
4860149091 */
48602- public function __construct(int $subscript) {
48603- $this->subscript = $subscript;
49092+ public function __construct(int $symbol) {
49093+ $this->symbol = $symbol;
4860449094 }
4860549095
4860649096 /**
@@ -48608,7 +49098,7 @@ class Subscript {
4860849098 * @throws Exception
4860949099 * @return int
4861049100 */
48611- public static function fromSubscript(int $value): int {
49101+ public static function fromSymbol(int $value): int {
4861249102 return $value; /*int*/
4861349103 }
4861449104
@@ -48616,11 +49106,11 @@ class Subscript {
4861649106 * @throws Exception
4861749107 * @return int
4861849108 */
48619- public function toSubscript(): int {
48620- if (Subscript::validateSubscript($this->subscript)) {
48621- return $this->subscript; /*int*/
49109+ public function toSymbol(): int {
49110+ if (Symbol::validateSymbol($this->symbol)) {
49111+ return $this->symbol; /*int*/
4862249112 }
48623- throw new Exception('never get to this Subscript::subscript');
49113+ throw new Exception('never get to this Symbol::symbol');
4862449114 }
4862549115
4862649116 /**
@@ -48628,7 +49118,7 @@ class Subscript {
4862849118 * @return bool
4862949119 * @throws Exception
4863049120 */
48631- public static function validateSubscript(int $value): bool {
49121+ public static function validateSymbol(int $value): bool {
4863249122 return true;
4863349123 }
4863449124
@@ -48636,18 +49126,18 @@ class Subscript {
4863649126 * @throws Exception
4863749127 * @return int
4863849128 */
48639- public function getSubscript(): int {
48640- if (Subscript::validateSubscript($this->subscript)) {
48641- return $this->subscript;
49129+ public function getSymbol(): int {
49130+ if (Symbol::validateSymbol($this->symbol)) {
49131+ return $this->symbol;
4864249132 }
48643- throw new Exception('never get to getSubscript Subscript::subscript');
49133+ throw new Exception('never get to getSymbol Symbol::symbol');
4864449134 }
4864549135
4864649136 /**
4864749137 * @return int
4864849138 */
48649- public static function sampleSubscript(): int {
48650- return 31; /*31:subscript*/
49139+ public static function sampleSymbol(): int {
49140+ return 31; /*31:symbol*/
4865149141 }
4865249142
4865349143 /**
@@ -48655,7 +49145,7 @@ class Subscript {
4865549145 * @return bool
4865649146 */
4865749147 public function validate(): bool {
48658- return Subscript::validateSubscript($this->subscript);
49148+ return Symbol::validateSymbol($this->symbol);
4865949149 }
4866049150
4866149151 /**
@@ -48664,44 +49154,44 @@ class Subscript {
4866449154 */
4866549155 public function to(): stdClass {
4866649156 $out = new stdClass();
48667- $out->{'subscript'} = $this->toSubscript();
49157+ $out->{'symbol'} = $this->toSymbol();
4866849158 return $out;
4866949159 }
4867049160
4867149161 /**
4867249162 * @param stdClass $obj
48673- * @return Subscript
49163+ * @return Symbol
4867449164 * @throws Exception
4867549165 */
48676- public static function from(stdClass $obj): Subscript {
48677- if (!property_exists($obj, 'subscript')) {
49166+ public static function from(stdClass $obj): Symbol {
49167+ if (!property_exists($obj, 'symbol')) {
4867849168 throw new Exception("Missing required property");
4867949169 }
48680- return new Subscript(
48681- Subscript::fromSubscript($obj->{'subscript'})
49170+ return new Symbol(
49171+ Symbol::fromSymbol($obj->{'symbol'})
4868249172 );
4868349173 }
4868449174
4868549175 /**
48686- * @return Subscript
49176+ * @return Symbol
4868749177 */
48688- public static function sample(): Subscript {
48689- return new Subscript(
48690- Subscript::sampleSubscript()
49178+ public static function sample(): Symbol {
49179+ return new Symbol(
49180+ Symbol::sampleSymbol()
4869149181 );
4869249182 }
4869349183 }
4869449184
48695-// This is an autogenerated file:Super
49185+// This is an autogenerated file:Synchronized
4869649186
48697-class Super {
48698- private int $super; // json:super Required
49187+class Synchronized {
49188+ private int $synchronized; // json:synchronized Required
4869949189
4870049190 /**
48701- * @param int $super
49191+ * @param int $synchronized
4870249192 */
48703- public function __construct(int $super) {
48704- $this->super = $super;
49193+ public function __construct(int $synchronized) {
49194+ $this->synchronized = $synchronized;
4870549195 }
4870649196
4870749197 /**
@@ -48709,7 +49199,7 @@ class Super {
4870949199 * @throws Exception
4871049200 * @return int
4871149201 */
48712- public static function fromSuper(int $value): int {
49202+ public static function fromSynchronized(int $value): int {
4871349203 return $value; /*int*/
4871449204 }
4871549205
@@ -48717,11 +49207,11 @@ class Super {
4871749207 * @throws Exception
4871849208 * @return int
4871949209 */
48720- public function toSuper(): int {
48721- if (Super::validateSuper($this->super)) {
48722- return $this->super; /*int*/
49210+ public function toSynchronized(): int {
49211+ if (Synchronized::validateSynchronized($this->synchronized)) {
49212+ return $this->synchronized; /*int*/
4872349213 }
48724- throw new Exception('never get to this Super::super');
49214+ throw new Exception('never get to this Synchronized::synchronized');
4872549215 }
4872649216
4872749217 /**
@@ -48729,7 +49219,7 @@ class Super {
4872949219 * @return bool
4873049220 * @throws Exception
4873149221 */
48732- public static function validateSuper(int $value): bool {
49222+ public static function validateSynchronized(int $value): bool {
4873349223 return true;
4873449224 }
4873549225
@@ -48737,18 +49227,18 @@ class Super {
4873749227 * @throws Exception
4873849228 * @return int
4873949229 */
48740- public function getSuper(): int {
48741- if (Super::validateSuper($this->super)) {
48742- return $this->super;
49230+ public function getSynchronized(): int {
49231+ if (Synchronized::validateSynchronized($this->synchronized)) {
49232+ return $this->synchronized;
4874349233 }
48744- throw new Exception('never get to getSuper Super::super');
49234+ throw new Exception('never get to getSynchronized Synchronized::synchronized');
4874549235 }
4874649236
4874749237 /**
4874849238 * @return int
4874949239 */
48750- public static function sampleSuper(): int {
48751- return 31; /*31:super*/
49240+ public static function sampleSynchronized(): int {
49241+ return 31; /*31:synchronized*/
4875249242 }
4875349243
4875449244 /**
@@ -48756,7 +49246,7 @@ class Super {
4875649246 * @return bool
4875749247 */
4875849248 public function validate(): bool {
48759- return Super::validateSuper($this->super);
49249+ return Synchronized::validateSynchronized($this->synchronized);
4876049250 }
4876149251
4876249252 /**
@@ -48765,44 +49255,44 @@ class Super {
4876549255 */
4876649256 public function to(): stdClass {
4876749257 $out = new stdClass();
48768- $out->{'super'} = $this->toSuper();
49258+ $out->{'synchronized'} = $this->toSynchronized();
4876949259 return $out;
4877049260 }
4877149261
4877249262 /**
4877349263 * @param stdClass $obj
48774- * @return Super
49264+ * @return Synchronized
4877549265 * @throws Exception
4877649266 */
48777- public static function from(stdClass $obj): Super {
48778- if (!property_exists($obj, 'super')) {
49267+ public static function from(stdClass $obj): Synchronized {
49268+ if (!property_exists($obj, 'synchronized')) {
4877949269 throw new Exception("Missing required property");
4878049270 }
48781- return new Super(
48782- Super::fromSuper($obj->{'super'})
49271+ return new Synchronized(
49272+ Synchronized::fromSynchronized($obj->{'synchronized'})
4878349273 );
4878449274 }
4878549275
4878649276 /**
48787- * @return Super
49277+ * @return Synchronized
4878849278 */
48789- public static function sample(): Super {
48790- return new Super(
48791- Super::sampleSuper()
49279+ public static function sample(): Synchronized {
49280+ return new Synchronized(
49281+ Synchronized::sampleSynchronized()
4879249282 );
4879349283 }
4879449284 }
4879549285
48796-// This is an autogenerated file:SwitchClass
49286+// This is an autogenerated file:System
4879749287
48798-class SwitchClass {
48799- private int $switch; // json:switch Required
49288+class System {
49289+ private int $system; // json:system Required
4880049290
4880149291 /**
48802- * @param int $switch
49292+ * @param int $system
4880349293 */
48804- public function __construct(int $switch) {
48805- $this->switch = $switch;
49294+ public function __construct(int $system) {
49295+ $this->system = $system;
4880649296 }
4880749297
4880849298 /**
@@ -48810,7 +49300,7 @@ class SwitchClass {
4881049300 * @throws Exception
4881149301 * @return int
4881249302 */
48813- public static function fromSwitch(int $value): int {
49303+ public static function fromSystem(int $value): int {
4881449304 return $value; /*int*/
4881549305 }
4881649306
@@ -48818,11 +49308,11 @@ class SwitchClass {
4881849308 * @throws Exception
4881949309 * @return int
4882049310 */
48821- public function toSwitch(): int {
48822- if (SwitchClass::validateSwitch($this->switch)) {
48823- return $this->switch; /*int*/
49311+ public function toSystem(): int {
49312+ if (System::validateSystem($this->system)) {
49313+ return $this->system; /*int*/
4882449314 }
48825- throw new Exception('never get to this SwitchClass::switch');
49315+ throw new Exception('never get to this System::system');
4882649316 }
4882749317
4882849318 /**
@@ -48830,7 +49320,7 @@ class SwitchClass {
4883049320 * @return bool
4883149321 * @throws Exception
4883249322 */
48833- public static function validateSwitch(int $value): bool {
49323+ public static function validateSystem(int $value): bool {
4883449324 return true;
4883549325 }
4883649326
@@ -48838,18 +49328,18 @@ class SwitchClass {
4883849328 * @throws Exception
4883949329 * @return int
4884049330 */
48841- public function getSwitch(): int {
48842- if (SwitchClass::validateSwitch($this->switch)) {
48843- return $this->switch;
49331+ public function getSystem(): int {
49332+ if (System::validateSystem($this->system)) {
49333+ return $this->system;
4884449334 }
48845- throw new Exception('never get to getSwitch SwitchClass::switch');
49335+ throw new Exception('never get to getSystem System::system');
4884649336 }
4884749337
4884849338 /**
4884949339 * @return int
4885049340 */
48851- public static function sampleSwitch(): int {
48852- return 31; /*31:switch*/
49341+ public static function sampleSystem(): int {
49342+ return 31; /*31:system*/
4885349343 }
4885449344
4885549345 /**
@@ -48857,7 +49347,7 @@ class SwitchClass {
4885749347 * @return bool
4885849348 */
4885949349 public function validate(): bool {
48860- return SwitchClass::validateSwitch($this->switch);
49350+ return System::validateSystem($this->system);
4886149351 }
4886249352
4886349353 /**
@@ -48866,44 +49356,44 @@ class SwitchClass {
4886649356 */
4886749357 public function to(): stdClass {
4886849358 $out = new stdClass();
48869- $out->{'switch'} = $this->toSwitch();
49359+ $out->{'system'} = $this->toSystem();
4887049360 return $out;
4887149361 }
4887249362
4887349363 /**
4887449364 * @param stdClass $obj
48875- * @return SwitchClass
49365+ * @return System
4887649366 * @throws Exception
4887749367 */
48878- public static function from(stdClass $obj): SwitchClass {
48879- if (!property_exists($obj, 'switch')) {
49368+ public static function from(stdClass $obj): System {
49369+ if (!property_exists($obj, 'system')) {
4888049370 throw new Exception("Missing required property");
4888149371 }
48882- return new SwitchClass(
48883- SwitchClass::fromSwitch($obj->{'switch'})
49372+ return new System(
49373+ System::fromSystem($obj->{'system'})
4888449374 );
4888549375 }
4888649376
4888749377 /**
48888- * @return SwitchClass
49378+ * @return System
4888949379 */
48890- public static function sample(): SwitchClass {
48891- return new SwitchClass(
48892- SwitchClass::sampleSwitch()
49380+ public static function sample(): System {
49381+ return new System(
49382+ System::sampleSystem()
4889349383 );
4889449384 }
4889549385 }
4889649386
48897-// This is an autogenerated file:Symbol
49387+// This is an autogenerated file:Template
4889849388
48899-class Symbol {
48900- private int $symbol; // json:symbol Required
49389+class Template {
49390+ private int $template; // json:template Required
4890149391
4890249392 /**
48903- * @param int $symbol
49393+ * @param int $template
4890449394 */
48905- public function __construct(int $symbol) {
48906- $this->symbol = $symbol;
49395+ public function __construct(int $template) {
49396+ $this->template = $template;
4890749397 }
4890849398
4890949399 /**
@@ -48911,7 +49401,7 @@ class Symbol {
4891149401 * @throws Exception
4891249402 * @return int
4891349403 */
48914- public static function fromSymbol(int $value): int {
49404+ public static function fromTemplate(int $value): int {
4891549405 return $value; /*int*/
4891649406 }
4891749407
@@ -48919,11 +49409,11 @@ class Symbol {
4891949409 * @throws Exception
4892049410 * @return int
4892149411 */
48922- public function toSymbol(): int {
48923- if (Symbol::validateSymbol($this->symbol)) {
48924- return $this->symbol; /*int*/
49412+ public function toTemplate(): int {
49413+ if (Template::validateTemplate($this->template)) {
49414+ return $this->template; /*int*/
4892549415 }
48926- throw new Exception('never get to this Symbol::symbol');
49416+ throw new Exception('never get to this Template::template');
4892749417 }
4892849418
4892949419 /**
@@ -48931,7 +49421,7 @@ class Symbol {
4893149421 * @return bool
4893249422 * @throws Exception
4893349423 */
48934- public static function validateSymbol(int $value): bool {
49424+ public static function validateTemplate(int $value): bool {
4893549425 return true;
4893649426 }
4893749427
@@ -48939,18 +49429,18 @@ class Symbol {
4893949429 * @throws Exception
4894049430 * @return int
4894149431 */
48942- public function getSymbol(): int {
48943- if (Symbol::validateSymbol($this->symbol)) {
48944- return $this->symbol;
49432+ public function getTemplate(): int {
49433+ if (Template::validateTemplate($this->template)) {
49434+ return $this->template;
4894549435 }
48946- throw new Exception('never get to getSymbol Symbol::symbol');
49436+ throw new Exception('never get to getTemplate Template::template');
4894749437 }
4894849438
4894949439 /**
4895049440 * @return int
4895149441 */
48952- public static function sampleSymbol(): int {
48953- return 31; /*31:symbol*/
49442+ public static function sampleTemplate(): int {
49443+ return 31; /*31:template*/
4895449444 }
4895549445
4895649446 /**
@@ -48958,7 +49448,7 @@ class Symbol {
4895849448 * @return bool
4895949449 */
4896049450 public function validate(): bool {
48961- return Symbol::validateSymbol($this->symbol);
49451+ return Template::validateTemplate($this->template);
4896249452 }
4896349453
4896449454 /**
@@ -48967,44 +49457,44 @@ class Symbol {
4896749457 */
4896849458 public function to(): stdClass {
4896949459 $out = new stdClass();
48970- $out->{'symbol'} = $this->toSymbol();
49460+ $out->{'template'} = $this->toTemplate();
4897149461 return $out;
4897249462 }
4897349463
4897449464 /**
4897549465 * @param stdClass $obj
48976- * @return Symbol
49466+ * @return Template
4897749467 * @throws Exception
4897849468 */
48979- public static function from(stdClass $obj): Symbol {
48980- if (!property_exists($obj, 'symbol')) {
49469+ public static function from(stdClass $obj): Template {
49470+ if (!property_exists($obj, 'template')) {
4898149471 throw new Exception("Missing required property");
4898249472 }
48983- return new Symbol(
48984- Symbol::fromSymbol($obj->{'symbol'})
49473+ return new Template(
49474+ Template::fromTemplate($obj->{'template'})
4898549475 );
4898649476 }
4898749477
4898849478 /**
48989- * @return Symbol
49479+ * @return Template
4899049480 */
48991- public static function sample(): Symbol {
48992- return new Symbol(
48993- Symbol::sampleSymbol()
49481+ public static function sample(): Template {
49482+ return new Template(
49483+ Template::sampleTemplate()
4899449484 );
4899549485 }
4899649486 }
4899749487
48998-// This is an autogenerated file:Synchronized
49488+// This is an autogenerated file:Then
4899949489
49000-class Synchronized {
49001- private int $synchronized; // json:synchronized Required
49490+class Then {
49491+ private int $then; // json:then Required
4900249492
4900349493 /**
49004- * @param int $synchronized
49494+ * @param int $then
4900549495 */
49006- public function __construct(int $synchronized) {
49007- $this->synchronized = $synchronized;
49496+ public function __construct(int $then) {
49497+ $this->then = $then;
4900849498 }
4900949499
4901049500 /**
@@ -49012,7 +49502,7 @@ class Synchronized {
4901249502 * @throws Exception
4901349503 * @return int
4901449504 */
49015- public static function fromSynchronized(int $value): int {
49505+ public static function fromThen(int $value): int {
4901649506 return $value; /*int*/
4901749507 }
4901849508
@@ -49020,11 +49510,11 @@ class Synchronized {
4902049510 * @throws Exception
4902149511 * @return int
4902249512 */
49023- public function toSynchronized(): int {
49024- if (Synchronized::validateSynchronized($this->synchronized)) {
49025- return $this->synchronized; /*int*/
49513+ public function toThen(): int {
49514+ if (Then::validateThen($this->then)) {
49515+ return $this->then; /*int*/
4902649516 }
49027- throw new Exception('never get to this Synchronized::synchronized');
49517+ throw new Exception('never get to this Then::then');
4902849518 }
4902949519
4903049520 /**
@@ -49032,7 +49522,7 @@ class Synchronized {
4903249522 * @return bool
4903349523 * @throws Exception
4903449524 */
49035- public static function validateSynchronized(int $value): bool {
49525+ public static function validateThen(int $value): bool {
4903649526 return true;
4903749527 }
4903849528
@@ -49040,18 +49530,18 @@ class Synchronized {
4904049530 * @throws Exception
4904149531 * @return int
4904249532 */
49043- public function getSynchronized(): int {
49044- if (Synchronized::validateSynchronized($this->synchronized)) {
49045- return $this->synchronized;
49533+ public function getThen(): int {
49534+ if (Then::validateThen($this->then)) {
49535+ return $this->then;
4904649536 }
49047- throw new Exception('never get to getSynchronized Synchronized::synchronized');
49537+ throw new Exception('never get to getThen Then::then');
4904849538 }
4904949539
4905049540 /**
4905149541 * @return int
4905249542 */
49053- public static function sampleSynchronized(): int {
49054- return 31; /*31:synchronized*/
49543+ public static function sampleThen(): int {
49544+ return 31; /*31:then*/
4905549545 }
4905649546
4905749547 /**
@@ -49059,7 +49549,7 @@ class Synchronized {
4905949549 * @return bool
4906049550 */
4906149551 public function validate(): bool {
49062- return Synchronized::validateSynchronized($this->synchronized);
49552+ return Then::validateThen($this->then);
4906349553 }
4906449554
4906549555 /**
@@ -49068,44 +49558,44 @@ class Synchronized {
4906849558 */
4906949559 public function to(): stdClass {
4907049560 $out = new stdClass();
49071- $out->{'synchronized'} = $this->toSynchronized();
49561+ $out->{'then'} = $this->toThen();
4907249562 return $out;
4907349563 }
4907449564
4907549565 /**
4907649566 * @param stdClass $obj
49077- * @return Synchronized
49567+ * @return Then
4907849568 * @throws Exception
4907949569 */
49080- public static function from(stdClass $obj): Synchronized {
49081- if (!property_exists($obj, 'synchronized')) {
49570+ public static function from(stdClass $obj): Then {
49571+ if (!property_exists($obj, 'then')) {
4908249572 throw new Exception("Missing required property");
4908349573 }
49084- return new Synchronized(
49085- Synchronized::fromSynchronized($obj->{'synchronized'})
49574+ return new Then(
49575+ Then::fromThen($obj->{'then'})
4908649576 );
4908749577 }
4908849578
4908949579 /**
49090- * @return Synchronized
49580+ * @return Then
4909149581 */
49092- public static function sample(): Synchronized {
49093- return new Synchronized(
49094- Synchronized::sampleSynchronized()
49582+ public static function sample(): Then {
49583+ return new Then(
49584+ Then::sampleThen()
4909549585 );
4909649586 }
4909749587 }
4909849588
49099-// This is an autogenerated file:System
49589+// This is an autogenerated file:ThreadLocal
4910049590
49101-class System {
49102- private int $system; // json:system Required
49591+class ThreadLocal {
49592+ private int $threadLocal; // json:thread_local Required
4910349593
4910449594 /**
49105- * @param int $system
49595+ * @param int $threadLocal
4910649596 */
49107- public function __construct(int $system) {
49108- $this->system = $system;
49597+ public function __construct(int $threadLocal) {
49598+ $this->threadLocal = $threadLocal;
4910949599 }
4911049600
4911149601 /**
@@ -49113,7 +49603,7 @@ class System {
4911349603 * @throws Exception
4911449604 * @return int
4911549605 */
49116- public static function fromSystem(int $value): int {
49606+ public static function fromThreadLocal(int $value): int {
4911749607 return $value; /*int*/
4911849608 }
4911949609
@@ -49121,11 +49611,11 @@ class System {
4912149611 * @throws Exception
4912249612 * @return int
4912349613 */
49124- public function toSystem(): int {
49125- if (System::validateSystem($this->system)) {
49126- return $this->system; /*int*/
49614+ public function toThreadLocal(): int {
49615+ if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49616+ return $this->threadLocal; /*int*/
4912749617 }
49128- throw new Exception('never get to this System::system');
49618+ throw new Exception('never get to this ThreadLocal::threadLocal');
4912949619 }
4913049620
4913149621 /**
@@ -49133,7 +49623,7 @@ class System {
4913349623 * @return bool
4913449624 * @throws Exception
4913549625 */
49136- public static function validateSystem(int $value): bool {
49626+ public static function validateThreadLocal(int $value): bool {
4913749627 return true;
4913849628 }
4913949629
@@ -49141,18 +49631,18 @@ class System {
4914149631 * @throws Exception
4914249632 * @return int
4914349633 */
49144- public function getSystem(): int {
49145- if (System::validateSystem($this->system)) {
49146- return $this->system;
49634+ public function getThreadLocal(): int {
49635+ if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49636+ return $this->threadLocal;
4914749637 }
49148- throw new Exception('never get to getSystem System::system');
49638+ throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal');
4914949639 }
4915049640
4915149641 /**
4915249642 * @return int
4915349643 */
49154- public static function sampleSystem(): int {
49155- return 31; /*31:system*/
49644+ public static function sampleThreadLocal(): int {
49645+ return 31; /*31:threadLocal*/
4915649646 }
4915749647
4915849648 /**
@@ -49160,7 +49650,7 @@ class System {
4916049650 * @return bool
4916149651 */
4916249652 public function validate(): bool {
49163- return System::validateSystem($this->system);
49653+ return ThreadLocal::validateThreadLocal($this->threadLocal);
4916449654 }
4916549655
4916649656 /**
@@ -49169,44 +49659,44 @@ class System {
4916949659 */
4917049660 public function to(): stdClass {
4917149661 $out = new stdClass();
49172- $out->{'system'} = $this->toSystem();
49662+ $out->{'thread_local'} = $this->toThreadLocal();
4917349663 return $out;
4917449664 }
4917549665
4917649666 /**
4917749667 * @param stdClass $obj
49178- * @return System
49668+ * @return ThreadLocal
4917949669 * @throws Exception
4918049670 */
49181- public static function from(stdClass $obj): System {
49182- if (!property_exists($obj, 'system')) {
49671+ public static function from(stdClass $obj): ThreadLocal {
49672+ if (!property_exists($obj, 'thread_local')) {
4918349673 throw new Exception("Missing required property");
4918449674 }
49185- return new System(
49186- System::fromSystem($obj->{'system'})
49675+ return new ThreadLocal(
49676+ ThreadLocal::fromThreadLocal($obj->{'thread_local'})
4918749677 );
4918849678 }
4918949679
4919049680 /**
49191- * @return System
49681+ * @return ThreadLocal
4919249682 */
49193- public static function sample(): System {
49194- return new System(
49195- System::sampleSystem()
49683+ public static function sample(): ThreadLocal {
49684+ return new ThreadLocal(
49685+ ThreadLocal::sampleThreadLocal()
4919649686 );
4919749687 }
4919849688 }
4919949689
49200-// This is an autogenerated file:Template
49690+// This is an autogenerated file:ThrowClass
4920149691
49202-class Template {
49203- private int $template; // json:template Required
49692+class ThrowClass {
49693+ private int $throw; // json:throw Required
4920449694
4920549695 /**
49206- * @param int $template
49696+ * @param int $throw
4920749697 */
49208- public function __construct(int $template) {
49209- $this->template = $template;
49698+ public function __construct(int $throw) {
49699+ $this->throw = $throw;
4921049700 }
4921149701
4921249702 /**
@@ -49214,7 +49704,7 @@ class Template {
4921449704 * @throws Exception
4921549705 * @return int
4921649706 */
49217- public static function fromTemplate(int $value): int {
49707+ public static function fromThrow(int $value): int {
4921849708 return $value; /*int*/
4921949709 }
4922049710
@@ -49222,11 +49712,11 @@ class Template {
4922249712 * @throws Exception
4922349713 * @return int
4922449714 */
49225- public function toTemplate(): int {
49226- if (Template::validateTemplate($this->template)) {
49227- return $this->template; /*int*/
49715+ public function toThrow(): int {
49716+ if (ThrowClass::validateThrow($this->throw)) {
49717+ return $this->throw; /*int*/
4922849718 }
49229- throw new Exception('never get to this Template::template');
49719+ throw new Exception('never get to this ThrowClass::throw');
4923049720 }
4923149721
4923249722 /**
@@ -49234,7 +49724,7 @@ class Template {
4923449724 * @return bool
4923549725 * @throws Exception
4923649726 */
49237- public static function validateTemplate(int $value): bool {
49727+ public static function validateThrow(int $value): bool {
4923849728 return true;
4923949729 }
4924049730
@@ -49242,18 +49732,18 @@ class Template {
4924249732 * @throws Exception
4924349733 * @return int
4924449734 */
49245- public function getTemplate(): int {
49246- if (Template::validateTemplate($this->template)) {
49247- return $this->template;
49735+ public function getThrow(): int {
49736+ if (ThrowClass::validateThrow($this->throw)) {
49737+ return $this->throw;
4924849738 }
49249- throw new Exception('never get to getTemplate Template::template');
49739+ throw new Exception('never get to getThrow ThrowClass::throw');
4925049740 }
4925149741
4925249742 /**
4925349743 * @return int
4925449744 */
49255- public static function sampleTemplate(): int {
49256- return 31; /*31:template*/
49745+ public static function sampleThrow(): int {
49746+ return 31; /*31:throw*/
4925749747 }
4925849748
4925949749 /**
@@ -49261,7 +49751,7 @@ class Template {
4926149751 * @return bool
4926249752 */
4926349753 public function validate(): bool {
49264- return Template::validateTemplate($this->template);
49754+ return ThrowClass::validateThrow($this->throw);
4926549755 }
4926649756
4926749757 /**
@@ -49270,44 +49760,44 @@ class Template {
4927049760 */
4927149761 public function to(): stdClass {
4927249762 $out = new stdClass();
49273- $out->{'template'} = $this->toTemplate();
49763+ $out->{'throw'} = $this->toThrow();
4927449764 return $out;
4927549765 }
4927649766
4927749767 /**
4927849768 * @param stdClass $obj
49279- * @return Template
49769+ * @return ThrowClass
4928049770 * @throws Exception
4928149771 */
49282- public static function from(stdClass $obj): Template {
49283- if (!property_exists($obj, 'template')) {
49772+ public static function from(stdClass $obj): ThrowClass {
49773+ if (!property_exists($obj, 'throw')) {
4928449774 throw new Exception("Missing required property");
4928549775 }
49286- return new Template(
49287- Template::fromTemplate($obj->{'template'})
49776+ return new ThrowClass(
49777+ ThrowClass::fromThrow($obj->{'throw'})
4928849778 );
4928949779 }
4929049780
4929149781 /**
49292- * @return Template
49782+ * @return ThrowClass
4929349783 */
49294- public static function sample(): Template {
49295- return new Template(
49296- Template::sampleTemplate()
49784+ public static function sample(): ThrowClass {
49785+ return new ThrowClass(
49786+ ThrowClass::sampleThrow()
4929749787 );
4929849788 }
4929949789 }
4930049790
49301-// This is an autogenerated file:Then
49791+// This is an autogenerated file:Throws
4930249792
49303-class Then {
49304- private int $then; // json:then Required
49793+class Throws {
49794+ private int $throws; // json:throws Required
4930549795
4930649796 /**
49307- * @param int $then
49797+ * @param int $throws
4930849798 */
49309- public function __construct(int $then) {
49310- $this->then = $then;
49799+ public function __construct(int $throws) {
49800+ $this->throws = $throws;
4931149801 }
4931249802
4931349803 /**
@@ -49315,7 +49805,7 @@ class Then {
4931549805 * @throws Exception
4931649806 * @return int
4931749807 */
49318- public static function fromThen(int $value): int {
49808+ public static function fromThrows(int $value): int {
4931949809 return $value; /*int*/
4932049810 }
4932149811
@@ -49323,11 +49813,11 @@ class Then {
4932349813 * @throws Exception
4932449814 * @return int
4932549815 */
49326- public function toThen(): int {
49327- if (Then::validateThen($this->then)) {
49328- return $this->then; /*int*/
49816+ public function toThrows(): int {
49817+ if (Throws::validateThrows($this->throws)) {
49818+ return $this->throws; /*int*/
4932949819 }
49330- throw new Exception('never get to this Then::then');
49820+ throw new Exception('never get to this Throws::throws');
4933149821 }
4933249822
4933349823 /**
@@ -49335,7 +49825,7 @@ class Then {
4933549825 * @return bool
4933649826 * @throws Exception
4933749827 */
49338- public static function validateThen(int $value): bool {
49828+ public static function validateThrows(int $value): bool {
4933949829 return true;
4934049830 }
4934149831
@@ -49343,18 +49833,18 @@ class Then {
4934349833 * @throws Exception
4934449834 * @return int
4934549835 */
49346- public function getThen(): int {
49347- if (Then::validateThen($this->then)) {
49348- return $this->then;
49836+ public function getThrows(): int {
49837+ if (Throws::validateThrows($this->throws)) {
49838+ return $this->throws;
4934949839 }
49350- throw new Exception('never get to getThen Then::then');
49840+ throw new Exception('never get to getThrows Throws::throws');
4935149841 }
4935249842
4935349843 /**
4935449844 * @return int
4935549845 */
49356- public static function sampleThen(): int {
49357- return 31; /*31:then*/
49846+ public static function sampleThrows(): int {
49847+ return 31; /*31:throws*/
4935849848 }
4935949849
4936049850 /**
@@ -49362,7 +49852,7 @@ class Then {
4936249852 * @return bool
4936349853 */
4936449854 public function validate(): bool {
49365- return Then::validateThen($this->then);
49855+ return Throws::validateThrows($this->throws);
4936649856 }
4936749857
4936849858 /**
@@ -49371,44 +49861,44 @@ class Then {
4937149861 */
4937249862 public function to(): stdClass {
4937349863 $out = new stdClass();
49374- $out->{'then'} = $this->toThen();
49864+ $out->{'throws'} = $this->toThrows();
4937549865 return $out;
4937649866 }
4937749867
4937849868 /**
4937949869 * @param stdClass $obj
49380- * @return Then
49870+ * @return Throws
4938149871 * @throws Exception
4938249872 */
49383- public static function from(stdClass $obj): Then {
49384- if (!property_exists($obj, 'then')) {
49873+ public static function from(stdClass $obj): Throws {
49874+ if (!property_exists($obj, 'throws')) {
4938549875 throw new Exception("Missing required property");
4938649876 }
49387- return new Then(
49388- Then::fromThen($obj->{'then'})
49877+ return new Throws(
49878+ Throws::fromThrows($obj->{'throws'})
4938949879 );
4939049880 }
4939149881
4939249882 /**
49393- * @return Then
49883+ * @return Throws
4939449884 */
49395- public static function sample(): Then {
49396- return new Then(
49397- Then::sampleThen()
49885+ public static function sample(): Throws {
49886+ return new Throws(
49887+ Throws::sampleThrows()
4939849888 );
4939949889 }
4940049890 }
4940149891
49402-// This is an autogenerated file:ThreadLocal
49892+// This is an autogenerated file:TimeOnly
4940349893
49404-class ThreadLocal {
49405- private int $threadLocal; // json:thread_local Required
49894+class TimeOnly {
49895+ private int $timeOnly; // json:TimeOnly Required
4940649896
4940749897 /**
49408- * @param int $threadLocal
49898+ * @param int $timeOnly
4940949899 */
49410- public function __construct(int $threadLocal) {
49411- $this->threadLocal = $threadLocal;
49900+ public function __construct(int $timeOnly) {
49901+ $this->timeOnly = $timeOnly;
4941249902 }
4941349903
4941449904 /**
@@ -49416,7 +49906,7 @@ class ThreadLocal {
4941649906 * @throws Exception
4941749907 * @return int
4941849908 */
49419- public static function fromThreadLocal(int $value): int {
49909+ public static function fromTimeOnly(int $value): int {
4942049910 return $value; /*int*/
4942149911 }
4942249912
@@ -49424,11 +49914,11 @@ class ThreadLocal {
4942449914 * @throws Exception
4942549915 * @return int
4942649916 */
49427- public function toThreadLocal(): int {
49428- if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49429- return $this->threadLocal; /*int*/
49917+ public function toTimeOnly(): int {
49918+ if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49919+ return $this->timeOnly; /*int*/
4943049920 }
49431- throw new Exception('never get to this ThreadLocal::threadLocal');
49921+ throw new Exception('never get to this TimeOnly::timeOnly');
4943249922 }
4943349923
4943449924 /**
@@ -49436,7 +49926,7 @@ class ThreadLocal {
4943649926 * @return bool
4943749927 * @throws Exception
4943849928 */
49439- public static function validateThreadLocal(int $value): bool {
49929+ public static function validateTimeOnly(int $value): bool {
4944049930 return true;
4944149931 }
4944249932
@@ -49444,18 +49934,18 @@ class ThreadLocal {
4944449934 * @throws Exception
4944549935 * @return int
4944649936 */
49447- public function getThreadLocal(): int {
49448- if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49449- return $this->threadLocal;
49937+ public function getTimeOnly(): int {
49938+ if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49939+ return $this->timeOnly;
4945049940 }
49451- throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal');
49941+ throw new Exception('never get to getTimeOnly TimeOnly::timeOnly');
4945249942 }
4945349943
4945449944 /**
4945549945 * @return int
4945649946 */
49457- public static function sampleThreadLocal(): int {
49458- return 31; /*31:threadLocal*/
49947+ public static function sampleTimeOnly(): int {
49948+ return 31; /*31:timeOnly*/
4945949949 }
4946049950
4946149951 /**
@@ -49463,7 +49953,7 @@ class ThreadLocal {
4946349953 * @return bool
4946449954 */
4946549955 public function validate(): bool {
49466- return ThreadLocal::validateThreadLocal($this->threadLocal);
49956+ return TimeOnly::validateTimeOnly($this->timeOnly);
4946749957 }
4946849958
4946949959 /**
@@ -49472,44 +49962,44 @@ class ThreadLocal {
4947249962 */
4947349963 public function to(): stdClass {
4947449964 $out = new stdClass();
49475- $out->{'thread_local'} = $this->toThreadLocal();
49965+ $out->{'TimeOnly'} = $this->toTimeOnly();
4947649966 return $out;
4947749967 }
4947849968
4947949969 /**
4948049970 * @param stdClass $obj
49481- * @return ThreadLocal
49971+ * @return TimeOnly
4948249972 * @throws Exception
4948349973 */
49484- public static function from(stdClass $obj): ThreadLocal {
49485- if (!property_exists($obj, 'thread_local')) {
49974+ public static function from(stdClass $obj): TimeOnly {
49975+ if (!property_exists($obj, 'TimeOnly')) {
4948649976 throw new Exception("Missing required property");
4948749977 }
49488- return new ThreadLocal(
49489- ThreadLocal::fromThreadLocal($obj->{'thread_local'})
49978+ return new TimeOnly(
49979+ TimeOnly::fromTimeOnly($obj->{'TimeOnly'})
4949049980 );
4949149981 }
4949249982
4949349983 /**
49494- * @return ThreadLocal
49984+ * @return TimeOnly
4949549985 */
49496- public static function sample(): ThreadLocal {
49497- return new ThreadLocal(
49498- ThreadLocal::sampleThreadLocal()
49986+ public static function sample(): TimeOnly {
49987+ return new TimeOnly(
49988+ TimeOnly::sampleTimeOnly()
4949949989 );
4950049990 }
4950149991 }
4950249992
49503-// This is an autogenerated file:ThrowClass
49993+// This is an autogenerated file:TimeOnlyConverter
4950449994
49505-class ThrowClass {
49506- private int $throw; // json:throw Required
49995+class TimeOnlyConverter {
49996+ private int $timeOnlyConverter; // json:TimeOnlyConverter Required
4950749997
4950849998 /**
49509- * @param int $throw
49999+ * @param int $timeOnlyConverter
4951050000 */
49511- public function __construct(int $throw) {
49512- $this->throw = $throw;
50001+ public function __construct(int $timeOnlyConverter) {
50002+ $this->timeOnlyConverter = $timeOnlyConverter;
4951350003 }
4951450004
4951550005 /**
@@ -49517,7 +50007,7 @@ class ThrowClass {
4951750007 * @throws Exception
4951850008 * @return int
4951950009 */
49520- public static function fromThrow(int $value): int {
50010+ public static function fromTimeOnlyConverter(int $value): int {
4952150011 return $value; /*int*/
4952250012 }
4952350013
@@ -49525,11 +50015,11 @@ class ThrowClass {
4952550015 * @throws Exception
4952650016 * @return int
4952750017 */
49528- public function toThrow(): int {
49529- if (ThrowClass::validateThrow($this->throw)) {
49530- return $this->throw; /*int*/
50018+ public function toTimeOnlyConverter(): int {
50019+ if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
50020+ return $this->timeOnlyConverter; /*int*/
4953150021 }
49532- throw new Exception('never get to this ThrowClass::throw');
50022+ throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter');
4953350023 }
4953450024
4953550025 /**
@@ -49537,7 +50027,7 @@ class ThrowClass {
4953750027 * @return bool
4953850028 * @throws Exception
4953950029 */
49540- public static function validateThrow(int $value): bool {
50030+ public static function validateTimeOnlyConverter(int $value): bool {
4954150031 return true;
4954250032 }
4954350033
@@ -49545,18 +50035,18 @@ class ThrowClass {
4954550035 * @throws Exception
4954650036 * @return int
4954750037 */
49548- public function getThrow(): int {
49549- if (ThrowClass::validateThrow($this->throw)) {
49550- return $this->throw;
50038+ public function getTimeOnlyConverter(): int {
50039+ if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
50040+ return $this->timeOnlyConverter;
4955150041 }
49552- throw new Exception('never get to getThrow ThrowClass::throw');
50042+ throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter');
4955350043 }
4955450044
4955550045 /**
4955650046 * @return int
4955750047 */
49558- public static function sampleThrow(): int {
49559- return 31; /*31:throw*/
50048+ public static function sampleTimeOnlyConverter(): int {
50049+ return 31; /*31:timeOnlyConverter*/
4956050050 }
4956150051
4956250052 /**
@@ -49564,7 +50054,7 @@ class ThrowClass {
4956450054 * @return bool
4956550055 */
4956650056 public function validate(): bool {
49567- return ThrowClass::validateThrow($this->throw);
50057+ return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter);
4956850058 }
4956950059
4957050060 /**
@@ -49573,44 +50063,44 @@ class ThrowClass {
4957350063 */
4957450064 public function to(): stdClass {
4957550065 $out = new stdClass();
49576- $out->{'throw'} = $this->toThrow();
50066+ $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
4957750067 return $out;
4957850068 }
4957950069
4958050070 /**
4958150071 * @param stdClass $obj
49582- * @return ThrowClass
50072+ * @return TimeOnlyConverter
4958350073 * @throws Exception
4958450074 */
49585- public static function from(stdClass $obj): ThrowClass {
49586- if (!property_exists($obj, 'throw')) {
50075+ public static function from(stdClass $obj): TimeOnlyConverter {
50076+ if (!property_exists($obj, 'TimeOnlyConverter')) {
4958750077 throw new Exception("Missing required property");
4958850078 }
49589- return new ThrowClass(
49590- ThrowClass::fromThrow($obj->{'throw'})
50079+ return new TimeOnlyConverter(
50080+ TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
4959150081 );
4959250082 }
4959350083
4959450084 /**
49595- * @return ThrowClass
50085+ * @return TimeOnlyConverter
4959650086 */
49597- public static function sample(): ThrowClass {
49598- return new ThrowClass(
49599- ThrowClass::sampleThrow()
50087+ public static function sample(): TimeOnlyConverter {
50088+ return new TimeOnlyConverter(
50089+ TimeOnlyConverter::sampleTimeOnlyConverter()
4960050090 );
4960150091 }
4960250092 }
4960350093
49604-// This is an autogenerated file:Throws
50094+// This is an autogenerated file:TimeZone
4960550095
49606-class Throws {
49607- private int $throws; // json:throws Required
50096+class TimeZone {
50097+ private int $timeZone; // json:TimeZone Required
4960850098
4960950099 /**
49610- * @param int $throws
50100+ * @param int $timeZone
4961150101 */
49612- public function __construct(int $throws) {
49613- $this->throws = $throws;
50102+ public function __construct(int $timeZone) {
50103+ $this->timeZone = $timeZone;
4961450104 }
4961550105
4961650106 /**
@@ -49618,7 +50108,7 @@ class Throws {
4961850108 * @throws Exception
4961950109 * @return int
4962050110 */
49621- public static function fromThrows(int $value): int {
50111+ public static function fromTimeZone(int $value): int {
4962250112 return $value; /*int*/
4962350113 }
4962450114
@@ -49626,11 +50116,11 @@ class Throws {
4962650116 * @throws Exception
4962750117 * @return int
4962850118 */
49629- public function toThrows(): int {
49630- if (Throws::validateThrows($this->throws)) {
49631- return $this->throws; /*int*/
50119+ public function toTimeZone(): int {
50120+ if (TimeZone::validateTimeZone($this->timeZone)) {
50121+ return $this->timeZone; /*int*/
4963250122 }
49633- throw new Exception('never get to this Throws::throws');
50123+ throw new Exception('never get to this TimeZone::timeZone');
4963450124 }
4963550125
4963650126 /**
@@ -49638,7 +50128,7 @@ class Throws {
4963850128 * @return bool
4963950129 * @throws Exception
4964050130 */
49641- public static function validateThrows(int $value): bool {
50131+ public static function validateTimeZone(int $value): bool {
4964250132 return true;
4964350133 }
4964450134
@@ -49646,18 +50136,18 @@ class Throws {
4964650136 * @throws Exception
4964750137 * @return int
4964850138 */
49649- public function getThrows(): int {
49650- if (Throws::validateThrows($this->throws)) {
49651- return $this->throws;
50139+ public function getTimeZone(): int {
50140+ if (TimeZone::validateTimeZone($this->timeZone)) {
50141+ return $this->timeZone;
4965250142 }
49653- throw new Exception('never get to getThrows Throws::throws');
50143+ throw new Exception('never get to getTimeZone TimeZone::timeZone');
4965450144 }
4965550145
4965650146 /**
4965750147 * @return int
4965850148 */
49659- public static function sampleThrows(): int {
49660- return 31; /*31:throws*/
50149+ public static function sampleTimeZone(): int {
50150+ return 31; /*31:timeZone*/
4966150151 }
4966250152
4966350153 /**
@@ -49665,7 +50155,7 @@ class Throws {
4966550155 * @return bool
4966650156 */
4966750157 public function validate(): bool {
49668- return Throws::validateThrows($this->throws);
50158+ return TimeZone::validateTimeZone($this->timeZone);
4966950159 }
4967050160
4967150161 /**
@@ -49674,44 +50164,44 @@ class Throws {
4967450164 */
4967550165 public function to(): stdClass {
4967650166 $out = new stdClass();
49677- $out->{'throws'} = $this->toThrows();
50167+ $out->{'TimeZone'} = $this->toTimeZone();
4967850168 return $out;
4967950169 }
4968050170
4968150171 /**
4968250172 * @param stdClass $obj
49683- * @return Throws
50173+ * @return TimeZone
4968450174 * @throws Exception
4968550175 */
49686- public static function from(stdClass $obj): Throws {
49687- if (!property_exists($obj, 'throws')) {
50176+ public static function from(stdClass $obj): TimeZone {
50177+ if (!property_exists($obj, 'TimeZone')) {
4968850178 throw new Exception("Missing required property");
4968950179 }
49690- return new Throws(
49691- Throws::fromThrows($obj->{'throws'})
50180+ return new TimeZone(
50181+ TimeZone::fromTimeZone($obj->{'TimeZone'})
4969250182 );
4969350183 }
4969450184
4969550185 /**
49696- * @return Throws
50186+ * @return TimeZone
4969750187 */
49698- public static function sample(): Throws {
49699- return new Throws(
49700- Throws::sampleThrows()
50188+ public static function sample(): TimeZone {
50189+ return new TimeZone(
50190+ TimeZone::sampleTimeZone()
4970150191 );
4970250192 }
4970350193 }
4970450194
49705-// This is an autogenerated file:TimeOnly
50195+// This is an autogenerated file:ToDict
4970650196
49707-class TimeOnly {
49708- private int $timeOnly; // json:TimeOnly Required
50197+class ToDict {
50198+ private int $toDict; // json:to_dict Required
4970950199
4971050200 /**
49711- * @param int $timeOnly
50201+ * @param int $toDict
4971250202 */
49713- public function __construct(int $timeOnly) {
49714- $this->timeOnly = $timeOnly;
50203+ public function __construct(int $toDict) {
50204+ $this->toDict = $toDict;
4971550205 }
4971650206
4971750207 /**
@@ -49719,7 +50209,7 @@ class TimeOnly {
4971950209 * @throws Exception
4972050210 * @return int
4972150211 */
49722- public static function fromTimeOnly(int $value): int {
50212+ public static function fromToDict(int $value): int {
4972350213 return $value; /*int*/
4972450214 }
4972550215
@@ -49727,11 +50217,11 @@ class TimeOnly {
4972750217 * @throws Exception
4972850218 * @return int
4972950219 */
49730- public function toTimeOnly(): int {
49731- if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49732- return $this->timeOnly; /*int*/
50220+ public function toToDict(): int {
50221+ if (ToDict::validateToDict($this->toDict)) {
50222+ return $this->toDict; /*int*/
4973350223 }
49734- throw new Exception('never get to this TimeOnly::timeOnly');
50224+ throw new Exception('never get to this ToDict::toDict');
4973550225 }
4973650226
4973750227 /**
@@ -49739,7 +50229,7 @@ class TimeOnly {
4973950229 * @return bool
4974050230 * @throws Exception
4974150231 */
49742- public static function validateTimeOnly(int $value): bool {
50232+ public static function validateToDict(int $value): bool {
4974350233 return true;
4974450234 }
4974550235
@@ -49747,18 +50237,18 @@ class TimeOnly {
4974750237 * @throws Exception
4974850238 * @return int
4974950239 */
49750- public function getTimeOnly(): int {
49751- if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49752- return $this->timeOnly;
50240+ public function getToDict(): int {
50241+ if (ToDict::validateToDict($this->toDict)) {
50242+ return $this->toDict;
4975350243 }
49754- throw new Exception('never get to getTimeOnly TimeOnly::timeOnly');
50244+ throw new Exception('never get to getToDict ToDict::toDict');
4975550245 }
4975650246
4975750247 /**
4975850248 * @return int
4975950249 */
49760- public static function sampleTimeOnly(): int {
49761- return 31; /*31:timeOnly*/
50250+ public static function sampleToDict(): int {
50251+ return 31; /*31:toDict*/
4976250252 }
4976350253
4976450254 /**
@@ -49766,7 +50256,7 @@ class TimeOnly {
4976650256 * @return bool
4976750257 */
4976850258 public function validate(): bool {
49769- return TimeOnly::validateTimeOnly($this->timeOnly);
50259+ return ToDict::validateToDict($this->toDict);
4977050260 }
4977150261
4977250262 /**
@@ -49775,44 +50265,44 @@ class TimeOnly {
4977550265 */
4977650266 public function to(): stdClass {
4977750267 $out = new stdClass();
49778- $out->{'TimeOnly'} = $this->toTimeOnly();
50268+ $out->{'to_dict'} = $this->toToDict();
4977950269 return $out;
4978050270 }
4978150271
4978250272 /**
4978350273 * @param stdClass $obj
49784- * @return TimeOnly
50274+ * @return ToDict
4978550275 * @throws Exception
4978650276 */
49787- public static function from(stdClass $obj): TimeOnly {
49788- if (!property_exists($obj, 'TimeOnly')) {
50277+ public static function from(stdClass $obj): ToDict {
50278+ if (!property_exists($obj, 'to_dict')) {
4978950279 throw new Exception("Missing required property");
4979050280 }
49791- return new TimeOnly(
49792- TimeOnly::fromTimeOnly($obj->{'TimeOnly'})
50281+ return new ToDict(
50282+ ToDict::fromToDict($obj->{'to_dict'})
4979350283 );
4979450284 }
4979550285
4979650286 /**
49797- * @return TimeOnly
50287+ * @return ToDict
4979850288 */
49799- public static function sample(): TimeOnly {
49800- return new TimeOnly(
49801- TimeOnly::sampleTimeOnly()
50289+ public static function sample(): ToDict {
50290+ return new ToDict(
50291+ ToDict::sampleToDict()
4980250292 );
4980350293 }
4980450294 }
4980550295
49806-// This is an autogenerated file:TimeOnlyConverter
50296+// This is an autogenerated file:ToJSON
4980750297
49808-class TimeOnlyConverter {
49809- private int $timeOnlyConverter; // json:TimeOnlyConverter Required
50298+class ToJSON {
50299+ private int $toJSON; // json:to_json Required
4981050300
4981150301 /**
49812- * @param int $timeOnlyConverter
50302+ * @param int $toJSON
4981350303 */
49814- public function __construct(int $timeOnlyConverter) {
49815- $this->timeOnlyConverter = $timeOnlyConverter;
50304+ public function __construct(int $toJSON) {
50305+ $this->toJSON = $toJSON;
4981650306 }
4981750307
4981850308 /**
@@ -49820,7 +50310,7 @@ class TimeOnlyConverter {
4982050310 * @throws Exception
4982150311 * @return int
4982250312 */
49823- public static function fromTimeOnlyConverter(int $value): int {
50313+ public static function fromToJSON(int $value): int {
4982450314 return $value; /*int*/
4982550315 }
4982650316
@@ -49828,11 +50318,11 @@ class TimeOnlyConverter {
4982850318 * @throws Exception
4982950319 * @return int
4983050320 */
49831- public function toTimeOnlyConverter(): int {
49832- if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49833- return $this->timeOnlyConverter; /*int*/
50321+ public function toToJSON(): int {
50322+ if (ToJSON::validateToJSON($this->toJSON)) {
50323+ return $this->toJSON; /*int*/
4983450324 }
49835- throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter');
50325+ throw new Exception('never get to this ToJSON::toJSON');
4983650326 }
4983750327
4983850328 /**
@@ -49840,7 +50330,7 @@ class TimeOnlyConverter {
4984050330 * @return bool
4984150331 * @throws Exception
4984250332 */
49843- public static function validateTimeOnlyConverter(int $value): bool {
50333+ public static function validateToJSON(int $value): bool {
4984450334 return true;
4984550335 }
4984650336
@@ -49848,18 +50338,18 @@ class TimeOnlyConverter {
4984850338 * @throws Exception
4984950339 * @return int
4985050340 */
49851- public function getTimeOnlyConverter(): int {
49852- if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49853- return $this->timeOnlyConverter;
50341+ public function getToJSON(): int {
50342+ if (ToJSON::validateToJSON($this->toJSON)) {
50343+ return $this->toJSON;
4985450344 }
49855- throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter');
50345+ throw new Exception('never get to getToJSON ToJSON::toJSON');
4985650346 }
4985750347
4985850348 /**
4985950349 * @return int
4986050350 */
49861- public static function sampleTimeOnlyConverter(): int {
49862- return 31; /*31:timeOnlyConverter*/
50351+ public static function sampleToJSON(): int {
50352+ return 31; /*31:toJSON*/
4986350353 }
4986450354
4986550355 /**
@@ -49867,7 +50357,7 @@ class TimeOnlyConverter {
4986750357 * @return bool
4986850358 */
4986950359 public function validate(): bool {
49870- return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter);
50360+ return ToJSON::validateToJSON($this->toJSON);
4987150361 }
4987250362
4987350363 /**
@@ -49876,44 +50366,44 @@ class TimeOnlyConverter {
4987650366 */
4987750367 public function to(): stdClass {
4987850368 $out = new stdClass();
49879- $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
50369+ $out->{'to_json'} = $this->toToJSON();
4988050370 return $out;
4988150371 }
4988250372
4988350373 /**
4988450374 * @param stdClass $obj
49885- * @return TimeOnlyConverter
50375+ * @return ToJSON
4988650376 * @throws Exception
4988750377 */
49888- public static function from(stdClass $obj): TimeOnlyConverter {
49889- if (!property_exists($obj, 'TimeOnlyConverter')) {
50378+ public static function from(stdClass $obj): ToJSON {
50379+ if (!property_exists($obj, 'to_json')) {
4989050380 throw new Exception("Missing required property");
4989150381 }
49892- return new TimeOnlyConverter(
49893- TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
50382+ return new ToJSON(
50383+ ToJSON::fromToJSON($obj->{'to_json'})
4989450384 );
4989550385 }
4989650386
4989750387 /**
49898- * @return TimeOnlyConverter
50388+ * @return ToJSON
4989950389 */
49900- public static function sample(): TimeOnlyConverter {
49901- return new TimeOnlyConverter(
49902- TimeOnlyConverter::sampleTimeOnlyConverter()
50390+ public static function sample(): ToJSON {
50391+ return new ToJSON(
50392+ ToJSON::sampleToJSON()
4990350393 );
4990450394 }
4990550395 }
4990650396
49907-// This is an autogenerated file:TimeZone
50397+// This is an autogenerated file:ToString
4990850398
49909-class TimeZone {
49910- private int $timeZone; // json:TimeZone Required
50399+class ToString {
50400+ private int $toString; // json:toString Required
4991150401
4991250402 /**
49913- * @param int $timeZone
50403+ * @param int $toString
4991450404 */
49915- public function __construct(int $timeZone) {
49916- $this->timeZone = $timeZone;
50405+ public function __construct(int $toString) {
50406+ $this->toString = $toString;
4991750407 }
4991850408
4991950409 /**
@@ -49921,7 +50411,7 @@ class TimeZone {
4992150411 * @throws Exception
4992250412 * @return int
4992350413 */
49924- public static function fromTimeZone(int $value): int {
50414+ public static function fromToString(int $value): int {
4992550415 return $value; /*int*/
4992650416 }
4992750417
@@ -49929,11 +50419,11 @@ class TimeZone {
4992950419 * @throws Exception
4993050420 * @return int
4993150421 */
49932- public function toTimeZone(): int {
49933- if (TimeZone::validateTimeZone($this->timeZone)) {
49934- return $this->timeZone; /*int*/
50422+ public function toToString(): int {
50423+ if (ToString::validateToString($this->toString)) {
50424+ return $this->toString; /*int*/
4993550425 }
49936- throw new Exception('never get to this TimeZone::timeZone');
50426+ throw new Exception('never get to this ToString::toString');
4993750427 }
4993850428
4993950429 /**
@@ -49941,7 +50431,7 @@ class TimeZone {
4994150431 * @return bool
4994250432 * @throws Exception
4994350433 */
49944- public static function validateTimeZone(int $value): bool {
50434+ public static function validateToString(int $value): bool {
4994550435 return true;
4994650436 }
4994750437
@@ -49949,18 +50439,18 @@ class TimeZone {
4994950439 * @throws Exception
4995050440 * @return int
4995150441 */
49952- public function getTimeZone(): int {
49953- if (TimeZone::validateTimeZone($this->timeZone)) {
49954- return $this->timeZone;
50442+ public function getToString(): int {
50443+ if (ToString::validateToString($this->toString)) {
50444+ return $this->toString;
4995550445 }
49956- throw new Exception('never get to getTimeZone TimeZone::timeZone');
50446+ throw new Exception('never get to getToString ToString::toString');
4995750447 }
4995850448
4995950449 /**
4996050450 * @return int
4996150451 */
49962- public static function sampleTimeZone(): int {
49963- return 31; /*31:timeZone*/
50452+ public static function sampleToString(): int {
50453+ return 31; /*31:toString*/
4996450454 }
4996550455
4996650456 /**
@@ -49968,7 +50458,7 @@ class TimeZone {
4996850458 * @return bool
4996950459 */
4997050460 public function validate(): bool {
49971- return TimeZone::validateTimeZone($this->timeZone);
50461+ return ToString::validateToString($this->toString);
4997250462 }
4997350463
4997450464 /**
@@ -49977,44 +50467,44 @@ class TimeZone {
4997750467 */
4997850468 public function to(): stdClass {
4997950469 $out = new stdClass();
49980- $out->{'TimeZone'} = $this->toTimeZone();
50470+ $out->{'toString'} = $this->toToString();
4998150471 return $out;
4998250472 }
4998350473
4998450474 /**
4998550475 * @param stdClass $obj
49986- * @return TimeZone
50476+ * @return ToString
4998750477 * @throws Exception
4998850478 */
49989- public static function from(stdClass $obj): TimeZone {
49990- if (!property_exists($obj, 'TimeZone')) {
50479+ public static function from(stdClass $obj): ToString {
50480+ if (!property_exists($obj, 'toString')) {
4999150481 throw new Exception("Missing required property");
4999250482 }
49993- return new TimeZone(
49994- TimeZone::fromTimeZone($obj->{'TimeZone'})
50483+ return new ToString(
50484+ ToString::fromToString($obj->{'toString'})
4999550485 );
4999650486 }
4999750487
4999850488 /**
49999- * @return TimeZone
50489+ * @return ToString
5000050490 */
50001- public static function sample(): TimeZone {
50002- return new TimeZone(
50003- TimeZone::sampleTimeZone()
50491+ public static function sample(): ToString {
50492+ return new ToString(
50493+ ToString::sampleToString()
5000450494 );
5000550495 }
5000650496 }
5000750497
50008-// This is an autogenerated file:ToDict
50498+// This is an autogenerated file:TopLevelClass
5000950499
50010-class ToDict {
50011- private int $toDict; // json:to_dict Required
50500+class TopLevelClass {
50501+ private int $topLevel; // json:top_level Required
5001250502
5001350503 /**
50014- * @param int $toDict
50504+ * @param int $topLevel
5001550505 */
50016- public function __construct(int $toDict) {
50017- $this->toDict = $toDict;
50506+ public function __construct(int $topLevel) {
50507+ $this->topLevel = $topLevel;
5001850508 }
5001950509
5002050510 /**
@@ -50022,7 +50512,7 @@ class ToDict {
5002250512 * @throws Exception
5002350513 * @return int
5002450514 */
50025- public static function fromToDict(int $value): int {
50515+ public static function fromTopLevel(int $value): int {
5002650516 return $value; /*int*/
5002750517 }
5002850518
@@ -50030,11 +50520,11 @@ class ToDict {
5003050520 * @throws Exception
5003150521 * @return int
5003250522 */
50033- public function toToDict(): int {
50034- if (ToDict::validateToDict($this->toDict)) {
50035- return $this->toDict; /*int*/
50523+ public function toTopLevel(): int {
50524+ if (TopLevelClass::validateTopLevel($this->topLevel)) {
50525+ return $this->topLevel; /*int*/
5003650526 }
50037- throw new Exception('never get to this ToDict::toDict');
50527+ throw new Exception('never get to this TopLevelClass::topLevel');
5003850528 }
5003950529
5004050530 /**
@@ -50042,7 +50532,7 @@ class ToDict {
5004250532 * @return bool
5004350533 * @throws Exception
5004450534 */
50045- public static function validateToDict(int $value): bool {
50535+ public static function validateTopLevel(int $value): bool {
5004650536 return true;
5004750537 }
5004850538
@@ -50050,18 +50540,18 @@ class ToDict {
5005050540 * @throws Exception
5005150541 * @return int
5005250542 */
50053- public function getToDict(): int {
50054- if (ToDict::validateToDict($this->toDict)) {
50055- return $this->toDict;
50543+ public function getTopLevel(): int {
50544+ if (TopLevelClass::validateTopLevel($this->topLevel)) {
50545+ return $this->topLevel;
5005650546 }
50057- throw new Exception('never get to getToDict ToDict::toDict');
50547+ throw new Exception('never get to getTopLevel TopLevelClass::topLevel');
5005850548 }
5005950549
5006050550 /**
5006150551 * @return int
5006250552 */
50063- public static function sampleToDict(): int {
50064- return 31; /*31:toDict*/
50553+ public static function sampleTopLevel(): int {
50554+ return 31; /*31:topLevel*/
5006550555 }
5006650556
5006750557 /**
@@ -50069,7 +50559,7 @@ class ToDict {
5006950559 * @return bool
5007050560 */
5007150561 public function validate(): bool {
50072- return ToDict::validateToDict($this->toDict);
50562+ return TopLevelClass::validateTopLevel($this->topLevel);
5007350563 }
5007450564
5007550565 /**
@@ -50078,44 +50568,44 @@ class ToDict {
5007850568 */
5007950569 public function to(): stdClass {
5008050570 $out = new stdClass();
50081- $out->{'to_dict'} = $this->toToDict();
50571+ $out->{'top_level'} = $this->toTopLevel();
5008250572 return $out;
5008350573 }
5008450574
5008550575 /**
5008650576 * @param stdClass $obj
50087- * @return ToDict
50577+ * @return TopLevelClass
5008850578 * @throws Exception
5008950579 */
50090- public static function from(stdClass $obj): ToDict {
50091- if (!property_exists($obj, 'to_dict')) {
50580+ public static function from(stdClass $obj): TopLevelClass {
50581+ if (!property_exists($obj, 'top_level')) {
5009250582 throw new Exception("Missing required property");
5009350583 }
50094- return new ToDict(
50095- ToDict::fromToDict($obj->{'to_dict'})
50584+ return new TopLevelClass(
50585+ TopLevelClass::fromTopLevel($obj->{'top_level'})
5009650586 );
5009750587 }
5009850588
5009950589 /**
50100- * @return ToDict
50590+ * @return TopLevelClass
5010150591 */
50102- public static function sample(): ToDict {
50103- return new ToDict(
50104- ToDict::sampleToDict()
50592+ public static function sample(): TopLevelClass {
50593+ return new TopLevelClass(
50594+ TopLevelClass::sampleTopLevel()
5010550595 );
5010650596 }
5010750597 }
5010850598
50109-// This is an autogenerated file:ToJSON
50599+// This is an autogenerated file:Transient
5011050600
50111-class ToJSON {
50112- private int $toJSON; // json:to_json Required
50601+class Transient {
50602+ private int $transient; // json:transient Required
5011350603
5011450604 /**
50115- * @param int $toJSON
50605+ * @param int $transient
5011650606 */
50117- public function __construct(int $toJSON) {
50118- $this->toJSON = $toJSON;
50607+ public function __construct(int $transient) {
50608+ $this->transient = $transient;
5011950609 }
5012050610
5012150611 /**
@@ -50123,7 +50613,7 @@ class ToJSON {
5012350613 * @throws Exception
5012450614 * @return int
5012550615 */
50126- public static function fromToJSON(int $value): int {
50616+ public static function fromTransient(int $value): int {
5012750617 return $value; /*int*/
5012850618 }
5012950619
@@ -50131,11 +50621,11 @@ class ToJSON {
5013150621 * @throws Exception
5013250622 * @return int
5013350623 */
50134- public function toToJSON(): int {
50135- if (ToJSON::validateToJSON($this->toJSON)) {
50136- return $this->toJSON; /*int*/
50624+ public function toTransient(): int {
50625+ if (Transient::validateTransient($this->transient)) {
50626+ return $this->transient; /*int*/
5013750627 }
50138- throw new Exception('never get to this ToJSON::toJSON');
50628+ throw new Exception('never get to this Transient::transient');
5013950629 }
5014050630
5014150631 /**
@@ -50143,7 +50633,7 @@ class ToJSON {
5014350633 * @return bool
5014450634 * @throws Exception
5014550635 */
50146- public static function validateToJSON(int $value): bool {
50636+ public static function validateTransient(int $value): bool {
5014750637 return true;
5014850638 }
5014950639
@@ -50151,18 +50641,18 @@ class ToJSON {
5015150641 * @throws Exception
5015250642 * @return int
5015350643 */
50154- public function getToJSON(): int {
50155- if (ToJSON::validateToJSON($this->toJSON)) {
50156- return $this->toJSON;
50644+ public function getTransient(): int {
50645+ if (Transient::validateTransient($this->transient)) {
50646+ return $this->transient;
5015750647 }
50158- throw new Exception('never get to getToJSON ToJSON::toJSON');
50648+ throw new Exception('never get to getTransient Transient::transient');
5015950649 }
5016050650
5016150651 /**
5016250652 * @return int
5016350653 */
50164- public static function sampleToJSON(): int {
50165- return 31; /*31:toJSON*/
50654+ public static function sampleTransient(): int {
50655+ return 31; /*31:transient*/
5016650656 }
5016750657
5016850658 /**
@@ -50170,7 +50660,7 @@ class ToJSON {
5017050660 * @return bool
5017150661 */
5017250662 public function validate(): bool {
50173- return ToJSON::validateToJSON($this->toJSON);
50663+ return Transient::validateTransient($this->transient);
5017450664 }
5017550665
5017650666 /**
@@ -50179,44 +50669,44 @@ class ToJSON {
5017950669 */
5018050670 public function to(): stdClass {
5018150671 $out = new stdClass();
50182- $out->{'to_json'} = $this->toToJSON();
50672+ $out->{'transient'} = $this->toTransient();
5018350673 return $out;
5018450674 }
5018550675
5018650676 /**
5018750677 * @param stdClass $obj
50188- * @return ToJSON
50678+ * @return Transient
5018950679 * @throws Exception
5019050680 */
50191- public static function from(stdClass $obj): ToJSON {
50192- if (!property_exists($obj, 'to_json')) {
50681+ public static function from(stdClass $obj): Transient {
50682+ if (!property_exists($obj, 'transient')) {
5019350683 throw new Exception("Missing required property");
5019450684 }
50195- return new ToJSON(
50196- ToJSON::fromToJSON($obj->{'to_json'})
50685+ return new Transient(
50686+ Transient::fromTransient($obj->{'transient'})
5019750687 );
5019850688 }
5019950689
5020050690 /**
50201- * @return ToJSON
50691+ * @return Transient
5020250692 */
50203- public static function sample(): ToJSON {
50204- return new ToJSON(
50205- ToJSON::sampleToJSON()
50693+ public static function sample(): Transient {
50694+ return new Transient(
50695+ Transient::sampleTransient()
5020650696 );
5020750697 }
5020850698 }
5020950699
50210-// This is an autogenerated file:ToString
50700+// This is an autogenerated file:TrueClass
5021150701
50212-class ToString {
50213- private int $toString; // json:toString Required
50702+class TrueClass {
50703+ private int $true; // json:True Required
5021450704
5021550705 /**
50216- * @param int $toString
50706+ * @param int $true
5021750707 */
50218- public function __construct(int $toString) {
50219- $this->toString = $toString;
50708+ public function __construct(int $true) {
50709+ $this->true = $true;
5022050710 }
5022150711
5022250712 /**
@@ -50224,7 +50714,7 @@ class ToString {
5022450714 * @throws Exception
5022550715 * @return int
5022650716 */
50227- public static function fromToString(int $value): int {
50717+ public static function fromTrue(int $value): int {
5022850718 return $value; /*int*/
5022950719 }
5023050720
@@ -50232,11 +50722,11 @@ class ToString {
5023250722 * @throws Exception
5023350723 * @return int
5023450724 */
50235- public function toToString(): int {
50236- if (ToString::validateToString($this->toString)) {
50237- return $this->toString; /*int*/
50725+ public function toTrue(): int {
50726+ if (TrueClass::validateTrue($this->true)) {
50727+ return $this->true; /*int*/
5023850728 }
50239- throw new Exception('never get to this ToString::toString');
50729+ throw new Exception('never get to this TrueClass::true');
5024050730 }
5024150731
5024250732 /**
@@ -50244,7 +50734,7 @@ class ToString {
5024450734 * @return bool
5024550735 * @throws Exception
5024650736 */
50247- public static function validateToString(int $value): bool {
50737+ public static function validateTrue(int $value): bool {
5024850738 return true;
5024950739 }
5025050740
@@ -50252,18 +50742,18 @@ class ToString {
5025250742 * @throws Exception
5025350743 * @return int
5025450744 */
50255- public function getToString(): int {
50256- if (ToString::validateToString($this->toString)) {
50257- return $this->toString;
50745+ public function getTrue(): int {
50746+ if (TrueClass::validateTrue($this->true)) {
50747+ return $this->true;
5025850748 }
50259- throw new Exception('never get to getToString ToString::toString');
50749+ throw new Exception('never get to getTrue TrueClass::true');
5026050750 }
5026150751
5026250752 /**
5026350753 * @return int
5026450754 */
50265- public static function sampleToString(): int {
50266- return 31; /*31:toString*/
50755+ public static function sampleTrue(): int {
50756+ return 31; /*31:true*/
5026750757 }
5026850758
5026950759 /**
@@ -50271,7 +50761,7 @@ class ToString {
5027150761 * @return bool
5027250762 */
5027350763 public function validate(): bool {
50274- return ToString::validateToString($this->toString);
50764+ return TrueClass::validateTrue($this->true);
5027550765 }
5027650766
5027750767 /**
@@ -50280,44 +50770,44 @@ class ToString {
5028050770 */
5028150771 public function to(): stdClass {
5028250772 $out = new stdClass();
50283- $out->{'toString'} = $this->toToString();
50773+ $out->{'True'} = $this->toTrue();
5028450774 return $out;
5028550775 }
5028650776
5028750777 /**
5028850778 * @param stdClass $obj
50289- * @return ToString
50779+ * @return TrueClass
5029050780 * @throws Exception
5029150781 */
50292- public static function from(stdClass $obj): ToString {
50293- if (!property_exists($obj, 'toString')) {
50782+ public static function from(stdClass $obj): TrueClass {
50783+ if (!property_exists($obj, 'True')) {
5029450784 throw new Exception("Missing required property");
5029550785 }
50296- return new ToString(
50297- ToString::fromToString($obj->{'toString'})
50786+ return new TrueClass(
50787+ TrueClass::fromTrue($obj->{'True'})
5029850788 );
5029950789 }
5030050790
5030150791 /**
50302- * @return ToString
50792+ * @return TrueClass
5030350793 */
50304- public static function sample(): ToString {
50305- return new ToString(
50306- ToString::sampleToString()
50794+ public static function sample(): TrueClass {
50795+ return new TrueClass(
50796+ TrueClass::sampleTrue()
5030750797 );
5030850798 }
5030950799 }
5031050800
50311-// This is an autogenerated file:TopLevelClass
50801+// This is an autogenerated file:TryClass
5031250802
50313-class TopLevelClass {
50314- private int $topLevel; // json:top_level Required
50803+class TryClass {
50804+ private int $try; // json:try Required
5031550805
5031650806 /**
50317- * @param int $topLevel
50807+ * @param int $try
5031850808 */
50319- public function __construct(int $topLevel) {
50320- $this->topLevel = $topLevel;
50809+ public function __construct(int $try) {
50810+ $this->try = $try;
5032150811 }
5032250812
5032350813 /**
@@ -50325,7 +50815,7 @@ class TopLevelClass {
5032550815 * @throws Exception
5032650816 * @return int
5032750817 */
50328- public static function fromTopLevel(int $value): int {
50818+ public static function fromTry(int $value): int {
5032950819 return $value; /*int*/
5033050820 }
5033150821
@@ -50333,11 +50823,11 @@ class TopLevelClass {
5033350823 * @throws Exception
5033450824 * @return int
5033550825 */
50336- public function toTopLevel(): int {
50337- if (TopLevelClass::validateTopLevel($this->topLevel)) {
50338- return $this->topLevel; /*int*/
50826+ public function toTry(): int {
50827+ if (TryClass::validateTry($this->try)) {
50828+ return $this->try; /*int*/
5033950829 }
50340- throw new Exception('never get to this TopLevelClass::topLevel');
50830+ throw new Exception('never get to this TryClass::try');
5034150831 }
5034250832
5034350833 /**
@@ -50345,7 +50835,7 @@ class TopLevelClass {
5034550835 * @return bool
5034650836 * @throws Exception
5034750837 */
50348- public static function validateTopLevel(int $value): bool {
50838+ public static function validateTry(int $value): bool {
5034950839 return true;
5035050840 }
5035150841
@@ -50353,18 +50843,18 @@ class TopLevelClass {
5035350843 * @throws Exception
5035450844 * @return int
5035550845 */
50356- public function getTopLevel(): int {
50357- if (TopLevelClass::validateTopLevel($this->topLevel)) {
50358- return $this->topLevel;
50846+ public function getTry(): int {
50847+ if (TryClass::validateTry($this->try)) {
50848+ return $this->try;
5035950849 }
50360- throw new Exception('never get to getTopLevel TopLevelClass::topLevel');
50850+ throw new Exception('never get to getTry TryClass::try');
5036150851 }
5036250852
5036350853 /**
5036450854 * @return int
5036550855 */
50366- public static function sampleTopLevel(): int {
50367- return 31; /*31:topLevel*/
50856+ public static function sampleTry(): int {
50857+ return 31; /*31:try*/
5036850858 }
5036950859
5037050860 /**
@@ -50372,7 +50862,7 @@ class TopLevelClass {
5037250862 * @return bool
5037350863 */
5037450864 public function validate(): bool {
50375- return TopLevelClass::validateTopLevel($this->topLevel);
50865+ return TryClass::validateTry($this->try);
5037650866 }
5037750867
5037850868 /**
@@ -50381,44 +50871,44 @@ class TopLevelClass {
5038150871 */
5038250872 public function to(): stdClass {
5038350873 $out = new stdClass();
50384- $out->{'top_level'} = $this->toTopLevel();
50874+ $out->{'try'} = $this->toTry();
5038550875 return $out;
5038650876 }
5038750877
5038850878 /**
5038950879 * @param stdClass $obj
50390- * @return TopLevelClass
50880+ * @return TryClass
5039150881 * @throws Exception
5039250882 */
50393- public static function from(stdClass $obj): TopLevelClass {
50394- if (!property_exists($obj, 'top_level')) {
50883+ public static function from(stdClass $obj): TryClass {
50884+ if (!property_exists($obj, 'try')) {
5039550885 throw new Exception("Missing required property");
5039650886 }
50397- return new TopLevelClass(
50398- TopLevelClass::fromTopLevel($obj->{'top_level'})
50887+ return new TryClass(
50888+ TryClass::fromTry($obj->{'try'})
5039950889 );
5040050890 }
5040150891
5040250892 /**
50403- * @return TopLevelClass
50893+ * @return TryClass
5040450894 */
50405- public static function sample(): TopLevelClass {
50406- return new TopLevelClass(
50407- TopLevelClass::sampleTopLevel()
50895+ public static function sample(): TryClass {
50896+ return new TryClass(
50897+ TryClass::sampleTry()
5040850898 );
5040950899 }
5041050900 }
5041150901
50412-// This is an autogenerated file:Transient
50902+// This is an autogenerated file:Type
5041350903
50414-class Transient {
50415- private int $transient; // json:transient Required
50904+class Type {
50905+ private int $type; // json:Type Required
5041650906
5041750907 /**
50418- * @param int $transient
50908+ * @param int $type
5041950909 */
50420- public function __construct(int $transient) {
50421- $this->transient = $transient;
50910+ public function __construct(int $type) {
50911+ $this->type = $type;
5042250912 }
5042350913
5042450914 /**
@@ -50426,7 +50916,7 @@ class Transient {
5042650916 * @throws Exception
5042750917 * @return int
5042850918 */
50429- public static function fromTransient(int $value): int {
50919+ public static function fromType(int $value): int {
5043050920 return $value; /*int*/
5043150921 }
5043250922
@@ -50434,11 +50924,11 @@ class Transient {
5043450924 * @throws Exception
5043550925 * @return int
5043650926 */
50437- public function toTransient(): int {
50438- if (Transient::validateTransient($this->transient)) {
50439- return $this->transient; /*int*/
50927+ public function toType(): int {
50928+ if (Type::validateType($this->type)) {
50929+ return $this->type; /*int*/
5044050930 }
50441- throw new Exception('never get to this Transient::transient');
50931+ throw new Exception('never get to this Type::type');
5044250932 }
5044350933
5044450934 /**
@@ -50446,7 +50936,7 @@ class Transient {
5044650936 * @return bool
5044750937 * @throws Exception
5044850938 */
50449- public static function validateTransient(int $value): bool {
50939+ public static function validateType(int $value): bool {
5045050940 return true;
5045150941 }
5045250942
@@ -50454,18 +50944,18 @@ class Transient {
5045450944 * @throws Exception
5045550945 * @return int
5045650946 */
50457- public function getTransient(): int {
50458- if (Transient::validateTransient($this->transient)) {
50459- return $this->transient;
50947+ public function getType(): int {
50948+ if (Type::validateType($this->type)) {
50949+ return $this->type;
5046050950 }
50461- throw new Exception('never get to getTransient Transient::transient');
50951+ throw new Exception('never get to getType Type::type');
5046250952 }
5046350953
5046450954 /**
5046550955 * @return int
5046650956 */
50467- public static function sampleTransient(): int {
50468- return 31; /*31:transient*/
50957+ public static function sampleType(): int {
50958+ return 31; /*31:type*/
5046950959 }
5047050960
5047150961 /**
@@ -50473,7 +50963,7 @@ class Transient {
5047350963 * @return bool
5047450964 */
5047550965 public function validate(): bool {
50476- return Transient::validateTransient($this->transient);
50966+ return Type::validateType($this->type);
5047750967 }
5047850968
5047950969 /**
@@ -50482,44 +50972,44 @@ class Transient {
5048250972 */
5048350973 public function to(): stdClass {
5048450974 $out = new stdClass();
50485- $out->{'transient'} = $this->toTransient();
50975+ $out->{'Type'} = $this->toType();
5048650976 return $out;
5048750977 }
5048850978
5048950979 /**
5049050980 * @param stdClass $obj
50491- * @return Transient
50981+ * @return Type
5049250982 * @throws Exception
5049350983 */
50494- public static function from(stdClass $obj): Transient {
50495- if (!property_exists($obj, 'transient')) {
50984+ public static function from(stdClass $obj): Type {
50985+ if (!property_exists($obj, 'Type')) {
5049650986 throw new Exception("Missing required property");
5049750987 }
50498- return new Transient(
50499- Transient::fromTransient($obj->{'transient'})
50988+ return new Type(
50989+ Type::fromType($obj->{'Type'})
5050050990 );
5050150991 }
5050250992
5050350993 /**
50504- * @return Transient
50994+ * @return Type
5050550995 */
50506- public static function sample(): Transient {
50507- return new Transient(
50508- Transient::sampleTransient()
50996+ public static function sample(): Type {
50997+ return new Type(
50998+ Type::sampleType()
5050950999 );
5051051000 }
5051151001 }
5051251002
50513-// This is an autogenerated file:TrueClass
51003+// This is an autogenerated file:Typealias
5051451004
50515-class TrueClass {
50516- private int $true; // json:True Required
51005+class Typealias {
51006+ private int $typealias; // json:typealias Required
5051751007
5051851008 /**
50519- * @param int $true
51009+ * @param int $typealias
5052051010 */
50521- public function __construct(int $true) {
50522- $this->true = $true;
51011+ public function __construct(int $typealias) {
51012+ $this->typealias = $typealias;
5052351013 }
5052451014
5052551015 /**
@@ -50527,7 +51017,7 @@ class TrueClass {
5052751017 * @throws Exception
5052851018 * @return int
5052951019 */
50530- public static function fromTrue(int $value): int {
51020+ public static function fromTypealias(int $value): int {
5053151021 return $value; /*int*/
5053251022 }
5053351023
@@ -50535,11 +51025,11 @@ class TrueClass {
5053551025 * @throws Exception
5053651026 * @return int
5053751027 */
50538- public function toTrue(): int {
50539- if (TrueClass::validateTrue($this->true)) {
50540- return $this->true; /*int*/
51028+ public function toTypealias(): int {
51029+ if (Typealias::validateTypealias($this->typealias)) {
51030+ return $this->typealias; /*int*/
5054151031 }
50542- throw new Exception('never get to this TrueClass::true');
51032+ throw new Exception('never get to this Typealias::typealias');
5054351033 }
5054451034
5054551035 /**
@@ -50547,7 +51037,7 @@ class TrueClass {
5054751037 * @return bool
5054851038 * @throws Exception
5054951039 */
50550- public static function validateTrue(int $value): bool {
51040+ public static function validateTypealias(int $value): bool {
5055151041 return true;
5055251042 }
5055351043
@@ -50555,18 +51045,18 @@ class TrueClass {
5055551045 * @throws Exception
5055651046 * @return int
5055751047 */
50558- public function getTrue(): int {
50559- if (TrueClass::validateTrue($this->true)) {
50560- return $this->true;
51048+ public function getTypealias(): int {
51049+ if (Typealias::validateTypealias($this->typealias)) {
51050+ return $this->typealias;
5056151051 }
50562- throw new Exception('never get to getTrue TrueClass::true');
51052+ throw new Exception('never get to getTypealias Typealias::typealias');
5056351053 }
5056451054
5056551055 /**
5056651056 * @return int
5056751057 */
50568- public static function sampleTrue(): int {
50569- return 31; /*31:true*/
51058+ public static function sampleTypealias(): int {
51059+ return 31; /*31:typealias*/
5057051060 }
5057151061
5057251062 /**
@@ -50574,7 +51064,7 @@ class TrueClass {
5057451064 * @return bool
5057551065 */
5057651066 public function validate(): bool {
50577- return TrueClass::validateTrue($this->true);
51067+ return Typealias::validateTypealias($this->typealias);
5057851068 }
5057951069
5058051070 /**
@@ -50583,44 +51073,44 @@ class TrueClass {
5058351073 */
5058451074 public function to(): stdClass {
5058551075 $out = new stdClass();
50586- $out->{'True'} = $this->toTrue();
51076+ $out->{'typealias'} = $this->toTypealias();
5058751077 return $out;
5058851078 }
5058951079
5059051080 /**
5059151081 * @param stdClass $obj
50592- * @return TrueClass
51082+ * @return Typealias
5059351083 * @throws Exception
5059451084 */
50595- public static function from(stdClass $obj): TrueClass {
50596- if (!property_exists($obj, 'True')) {
51085+ public static function from(stdClass $obj): Typealias {
51086+ if (!property_exists($obj, 'typealias')) {
5059751087 throw new Exception("Missing required property");
5059851088 }
50599- return new TrueClass(
50600- TrueClass::fromTrue($obj->{'True'})
51089+ return new Typealias(
51090+ Typealias::fromTypealias($obj->{'typealias'})
5060151091 );
5060251092 }
5060351093
5060451094 /**
50605- * @return TrueClass
51095+ * @return Typealias
5060651096 */
50607- public static function sample(): TrueClass {
50608- return new TrueClass(
50609- TrueClass::sampleTrue()
51097+ public static function sample(): Typealias {
51098+ return new Typealias(
51099+ Typealias::sampleTypealias()
5061051100 );
5061151101 }
5061251102 }
5061351103
50614-// This is an autogenerated file:TryClass
51104+// This is an autogenerated file:Typedef
5061551105
50616-class TryClass {
50617- private int $try; // json:try Required
51106+class Typedef {
51107+ private int $typedef; // json:typedef Required
5061851108
5061951109 /**
50620- * @param int $try
51110+ * @param int $typedef
5062151111 */
50622- public function __construct(int $try) {
50623- $this->try = $try;
51112+ public function __construct(int $typedef) {
51113+ $this->typedef = $typedef;
5062451114 }
5062551115
5062651116 /**
@@ -50628,7 +51118,7 @@ class TryClass {
5062851118 * @throws Exception
5062951119 * @return int
5063051120 */
50631- public static function fromTry(int $value): int {
51121+ public static function fromTypedef(int $value): int {
5063251122 return $value; /*int*/
5063351123 }
5063451124
@@ -50636,11 +51126,11 @@ class TryClass {
5063651126 * @throws Exception
5063751127 * @return int
5063851128 */
50639- public function toTry(): int {
50640- if (TryClass::validateTry($this->try)) {
50641- return $this->try; /*int*/
51129+ public function toTypedef(): int {
51130+ if (Typedef::validateTypedef($this->typedef)) {
51131+ return $this->typedef; /*int*/
5064251132 }
50643- throw new Exception('never get to this TryClass::try');
51133+ throw new Exception('never get to this Typedef::typedef');
5064451134 }
5064551135
5064651136 /**
@@ -50648,7 +51138,7 @@ class TryClass {
5064851138 * @return bool
5064951139 * @throws Exception
5065051140 */
50651- public static function validateTry(int $value): bool {
51141+ public static function validateTypedef(int $value): bool {
5065251142 return true;
5065351143 }
5065451144
@@ -50656,18 +51146,18 @@ class TryClass {
5065651146 * @throws Exception
5065751147 * @return int
5065851148 */
50659- public function getTry(): int {
50660- if (TryClass::validateTry($this->try)) {
50661- return $this->try;
51149+ public function getTypedef(): int {
51150+ if (Typedef::validateTypedef($this->typedef)) {
51151+ return $this->typedef;
5066251152 }
50663- throw new Exception('never get to getTry TryClass::try');
51153+ throw new Exception('never get to getTypedef Typedef::typedef');
5066451154 }
5066551155
5066651156 /**
5066751157 * @return int
5066851158 */
50669- public static function sampleTry(): int {
50670- return 31; /*31:try*/
51159+ public static function sampleTypedef(): int {
51160+ return 31; /*31:typedef*/
5067151161 }
5067251162
5067351163 /**
@@ -50675,7 +51165,7 @@ class TryClass {
5067551165 * @return bool
5067651166 */
5067751167 public function validate(): bool {
50678- return TryClass::validateTry($this->try);
51168+ return Typedef::validateTypedef($this->typedef);
5067951169 }
5068051170
5068151171 /**
@@ -50684,44 +51174,44 @@ class TryClass {
5068451174 */
5068551175 public function to(): stdClass {
5068651176 $out = new stdClass();
50687- $out->{'try'} = $this->toTry();
51177+ $out->{'typedef'} = $this->toTypedef();
5068851178 return $out;
5068951179 }
5069051180
5069151181 /**
5069251182 * @param stdClass $obj
50693- * @return TryClass
51183+ * @return Typedef
5069451184 * @throws Exception
5069551185 */
50696- public static function from(stdClass $obj): TryClass {
50697- if (!property_exists($obj, 'try')) {
51186+ public static function from(stdClass $obj): Typedef {
51187+ if (!property_exists($obj, 'typedef')) {
5069851188 throw new Exception("Missing required property");
5069951189 }
50700- return new TryClass(
50701- TryClass::fromTry($obj->{'try'})
51190+ return new Typedef(
51191+ Typedef::fromTypedef($obj->{'typedef'})
5070251192 );
5070351193 }
5070451194
5070551195 /**
50706- * @return TryClass
51196+ * @return Typedef
5070751197 */
50708- public static function sample(): TryClass {
50709- return new TryClass(
50710- TryClass::sampleTry()
51198+ public static function sample(): Typedef {
51199+ return new Typedef(
51200+ Typedef::sampleTypedef()
5071151201 );
5071251202 }
5071351203 }
5071451204
50715-// This is an autogenerated file:Type
51205+// This is an autogenerated file:Typeid
5071651206
50717-class Type {
50718- private int $type; // json:Type Required
51207+class Typeid {
51208+ private int $typeid; // json:typeid Required
5071951209
5072051210 /**
50721- * @param int $type
51211+ * @param int $typeid
5072251212 */
50723- public function __construct(int $type) {
50724- $this->type = $type;
51213+ public function __construct(int $typeid) {
51214+ $this->typeid = $typeid;
5072551215 }
5072651216
5072751217 /**
@@ -50729,7 +51219,7 @@ class Type {
5072951219 * @throws Exception
5073051220 * @return int
5073151221 */
50732- public static function fromType(int $value): int {
51222+ public static function fromTypeid(int $value): int {
5073351223 return $value; /*int*/
5073451224 }
5073551225
@@ -50737,11 +51227,11 @@ class Type {
5073751227 * @throws Exception
5073851228 * @return int
5073951229 */
50740- public function toType(): int {
50741- if (Type::validateType($this->type)) {
50742- return $this->type; /*int*/
51230+ public function toTypeid(): int {
51231+ if (Typeid::validateTypeid($this->typeid)) {
51232+ return $this->typeid; /*int*/
5074351233 }
50744- throw new Exception('never get to this Type::type');
51234+ throw new Exception('never get to this Typeid::typeid');
5074551235 }
5074651236
5074751237 /**
@@ -50749,7 +51239,7 @@ class Type {
5074951239 * @return bool
5075051240 * @throws Exception
5075151241 */
50752- public static function validateType(int $value): bool {
51242+ public static function validateTypeid(int $value): bool {
5075351243 return true;
5075451244 }
5075551245
@@ -50757,18 +51247,18 @@ class Type {
5075751247 * @throws Exception
5075851248 * @return int
5075951249 */
50760- public function getType(): int {
50761- if (Type::validateType($this->type)) {
50762- return $this->type;
51250+ public function getTypeid(): int {
51251+ if (Typeid::validateTypeid($this->typeid)) {
51252+ return $this->typeid;
5076351253 }
50764- throw new Exception('never get to getType Type::type');
51254+ throw new Exception('never get to getTypeid Typeid::typeid');
5076551255 }
5076651256
5076751257 /**
5076851258 * @return int
5076951259 */
50770- public static function sampleType(): int {
50771- return 31; /*31:type*/
51260+ public static function sampleTypeid(): int {
51261+ return 31; /*31:typeid*/
5077251262 }
5077351263
5077451264 /**
@@ -50776,7 +51266,7 @@ class Type {
5077651266 * @return bool
5077751267 */
5077851268 public function validate(): bool {
50779- return Type::validateType($this->type);
51269+ return Typeid::validateTypeid($this->typeid);
5078051270 }
5078151271
5078251272 /**
@@ -50785,44 +51275,44 @@ class Type {
5078551275 */
5078651276 public function to(): stdClass {
5078751277 $out = new stdClass();
50788- $out->{'Type'} = $this->toType();
51278+ $out->{'typeid'} = $this->toTypeid();
5078951279 return $out;
5079051280 }
5079151281
5079251282 /**
5079351283 * @param stdClass $obj
50794- * @return Type
51284+ * @return Typeid
5079551285 * @throws Exception
5079651286 */
50797- public static function from(stdClass $obj): Type {
50798- if (!property_exists($obj, 'Type')) {
51287+ public static function from(stdClass $obj): Typeid {
51288+ if (!property_exists($obj, 'typeid')) {
5079951289 throw new Exception("Missing required property");
5080051290 }
50801- return new Type(
50802- Type::fromType($obj->{'Type'})
51291+ return new Typeid(
51292+ Typeid::fromTypeid($obj->{'typeid'})
5080351293 );
5080451294 }
5080551295
5080651296 /**
50807- * @return Type
51297+ * @return Typeid
5080851298 */
50809- public static function sample(): Type {
50810- return new Type(
50811- Type::sampleType()
51299+ public static function sample(): Typeid {
51300+ return new Typeid(
51301+ Typeid::sampleTypeid()
5081251302 );
5081351303 }
5081451304 }
5081551305
50816-// This is an autogenerated file:Typealias
51306+// This is an autogenerated file:Typename
5081751307
50818-class Typealias {
50819- private int $typealias; // json:typealias Required
51308+class Typename {
51309+ private int $typename; // json:typename Required
5082051310
5082151311 /**
50822- * @param int $typealias
51312+ * @param int $typename
5082351313 */
50824- public function __construct(int $typealias) {
50825- $this->typealias = $typealias;
51314+ public function __construct(int $typename) {
51315+ $this->typename = $typename;
5082651316 }
5082751317
5082851318 /**
@@ -50830,7 +51320,7 @@ class Typealias {
5083051320 * @throws Exception
5083151321 * @return int
5083251322 */
50833- public static function fromTypealias(int $value): int {
51323+ public static function fromTypename(int $value): int {
5083451324 return $value; /*int*/
5083551325 }
5083651326
@@ -50838,11 +51328,11 @@ class Typealias {
5083851328 * @throws Exception
5083951329 * @return int
5084051330 */
50841- public function toTypealias(): int {
50842- if (Typealias::validateTypealias($this->typealias)) {
50843- return $this->typealias; /*int*/
51331+ public function toTypename(): int {
51332+ if (Typename::validateTypename($this->typename)) {
51333+ return $this->typename; /*int*/
5084451334 }
50845- throw new Exception('never get to this Typealias::typealias');
51335+ throw new Exception('never get to this Typename::typename');
5084651336 }
5084751337
5084851338 /**
@@ -50850,7 +51340,7 @@ class Typealias {
5085051340 * @return bool
5085151341 * @throws Exception
5085251342 */
50853- public static function validateTypealias(int $value): bool {
51343+ public static function validateTypename(int $value): bool {
5085451344 return true;
5085551345 }
5085651346
@@ -50858,18 +51348,18 @@ class Typealias {
5085851348 * @throws Exception
5085951349 * @return int
5086051350 */
50861- public function getTypealias(): int {
50862- if (Typealias::validateTypealias($this->typealias)) {
50863- return $this->typealias;
51351+ public function getTypename(): int {
51352+ if (Typename::validateTypename($this->typename)) {
51353+ return $this->typename;
5086451354 }
50865- throw new Exception('never get to getTypealias Typealias::typealias');
51355+ throw new Exception('never get to getTypename Typename::typename');
5086651356 }
5086751357
5086851358 /**
5086951359 * @return int
5087051360 */
50871- public static function sampleTypealias(): int {
50872- return 31; /*31:typealias*/
51361+ public static function sampleTypename(): int {
51362+ return 31; /*31:typename*/
5087351363 }
5087451364
5087551365 /**
@@ -50877,7 +51367,7 @@ class Typealias {
5087751367 * @return bool
5087851368 */
5087951369 public function validate(): bool {
50880- return Typealias::validateTypealias($this->typealias);
51370+ return Typename::validateTypename($this->typename);
5088151371 }
5088251372
5088351373 /**
@@ -50886,44 +51376,44 @@ class Typealias {
5088651376 */
5088751377 public function to(): stdClass {
5088851378 $out = new stdClass();
50889- $out->{'typealias'} = $this->toTypealias();
51379+ $out->{'typename'} = $this->toTypename();
5089051380 return $out;
5089151381 }
5089251382
5089351383 /**
5089451384 * @param stdClass $obj
50895- * @return Typealias
51385+ * @return Typename
5089651386 * @throws Exception
5089751387 */
50898- public static function from(stdClass $obj): Typealias {
50899- if (!property_exists($obj, 'typealias')) {
51388+ public static function from(stdClass $obj): Typename {
51389+ if (!property_exists($obj, 'typename')) {
5090051390 throw new Exception("Missing required property");
5090151391 }
50902- return new Typealias(
50903- Typealias::fromTypealias($obj->{'typealias'})
51392+ return new Typename(
51393+ Typename::fromTypename($obj->{'typename'})
5090451394 );
5090551395 }
5090651396
5090751397 /**
50908- * @return Typealias
51398+ * @return Typename
5090951399 */
50910- public static function sample(): Typealias {
50911- return new Typealias(
50912- Typealias::sampleTypealias()
51400+ public static function sample(): Typename {
51401+ return new Typename(
51402+ Typename::sampleTypename()
5091351403 );
5091451404 }
5091551405 }
5091651406
50917-// This is an autogenerated file:Typedef
51407+// This is an autogenerated file:Typeof
5091851408
50919-class Typedef {
50920- private int $typedef; // json:typedef Required
51409+class Typeof {
51410+ private int $typeof; // json:typeof Required
5092151411
5092251412 /**
50923- * @param int $typedef
51413+ * @param int $typeof
5092451414 */
50925- public function __construct(int $typedef) {
50926- $this->typedef = $typedef;
51415+ public function __construct(int $typeof) {
51416+ $this->typeof = $typeof;
5092751417 }
5092851418
5092951419 /**
@@ -50931,7 +51421,7 @@ class Typedef {
5093151421 * @throws Exception
5093251422 * @return int
5093351423 */
50934- public static function fromTypedef(int $value): int {
51424+ public static function fromTypeof(int $value): int {
5093551425 return $value; /*int*/
5093651426 }
5093751427
@@ -50939,11 +51429,11 @@ class Typedef {
5093951429 * @throws Exception
5094051430 * @return int
5094151431 */
50942- public function toTypedef(): int {
50943- if (Typedef::validateTypedef($this->typedef)) {
50944- return $this->typedef; /*int*/
51432+ public function toTypeof(): int {
51433+ if (Typeof::validateTypeof($this->typeof)) {
51434+ return $this->typeof; /*int*/
5094551435 }
50946- throw new Exception('never get to this Typedef::typedef');
51436+ throw new Exception('never get to this Typeof::typeof');
5094751437 }
5094851438
5094951439 /**
@@ -50951,7 +51441,7 @@ class Typedef {
5095151441 * @return bool
5095251442 * @throws Exception
5095351443 */
50954- public static function validateTypedef(int $value): bool {
51444+ public static function validateTypeof(int $value): bool {
5095551445 return true;
5095651446 }
5095751447
@@ -50959,18 +51449,18 @@ class Typedef {
5095951449 * @throws Exception
5096051450 * @return int
5096151451 */
50962- public function getTypedef(): int {
50963- if (Typedef::validateTypedef($this->typedef)) {
50964- return $this->typedef;
51452+ public function getTypeof(): int {
51453+ if (Typeof::validateTypeof($this->typeof)) {
51454+ return $this->typeof;
5096551455 }
50966- throw new Exception('never get to getTypedef Typedef::typedef');
51456+ throw new Exception('never get to getTypeof Typeof::typeof');
5096751457 }
5096851458
5096951459 /**
5097051460 * @return int
5097151461 */
50972- public static function sampleTypedef(): int {
50973- return 31; /*31:typedef*/
51462+ public static function sampleTypeof(): int {
51463+ return 31; /*31:typeof*/
5097451464 }
5097551465
5097651466 /**
@@ -50978,7 +51468,7 @@ class Typedef {
5097851468 * @return bool
5097951469 */
5098051470 public function validate(): bool {
50981- return Typedef::validateTypedef($this->typedef);
51471+ return Typeof::validateTypeof($this->typeof);
5098251472 }
5098351473
5098451474 /**
@@ -50987,44 +51477,44 @@ class Typedef {
5098751477 */
5098851478 public function to(): stdClass {
5098951479 $out = new stdClass();
50990- $out->{'typedef'} = $this->toTypedef();
51480+ $out->{'typeof'} = $this->toTypeof();
5099151481 return $out;
5099251482 }
5099351483
5099451484 /**
5099551485 * @param stdClass $obj
50996- * @return Typedef
51486+ * @return Typeof
5099751487 * @throws Exception
5099851488 */
50999- public static function from(stdClass $obj): Typedef {
51000- if (!property_exists($obj, 'typedef')) {
51489+ public static function from(stdClass $obj): Typeof {
51490+ if (!property_exists($obj, 'typeof')) {
5100151491 throw new Exception("Missing required property");
5100251492 }
51003- return new Typedef(
51004- Typedef::fromTypedef($obj->{'typedef'})
51493+ return new Typeof(
51494+ Typeof::fromTypeof($obj->{'typeof'})
5100551495 );
5100651496 }
5100751497
5100851498 /**
51009- * @return Typedef
51499+ * @return Typeof
5101051500 */
51011- public static function sample(): Typedef {
51012- return new Typedef(
51013- Typedef::sampleTypedef()
51501+ public static function sample(): Typeof {
51502+ return new Typeof(
51503+ Typeof::sampleTypeof()
5101451504 );
5101551505 }
5101651506 }
5101751507
51018-// This is an autogenerated file:Typeid
51508+// This is an autogenerated file:Uint
5101951509
51020-class Typeid {
51021- private int $typeid; // json:typeid Required
51510+class Uint {
51511+ private int $uint; // json:uint Required
5102251512
5102351513 /**
51024- * @param int $typeid
51514+ * @param int $uint
5102551515 */
51026- public function __construct(int $typeid) {
51027- $this->typeid = $typeid;
51516+ public function __construct(int $uint) {
51517+ $this->uint = $uint;
5102851518 }
5102951519
5103051520 /**
@@ -51032,7 +51522,7 @@ class Typeid {
5103251522 * @throws Exception
5103351523 * @return int
5103451524 */
51035- public static function fromTypeid(int $value): int {
51525+ public static function fromUint(int $value): int {
5103651526 return $value; /*int*/
5103751527 }
5103851528
@@ -51040,11 +51530,11 @@ class Typeid {
5104051530 * @throws Exception
5104151531 * @return int
5104251532 */
51043- public function toTypeid(): int {
51044- if (Typeid::validateTypeid($this->typeid)) {
51045- return $this->typeid; /*int*/
51533+ public function toUint(): int {
51534+ if (Uint::validateUint($this->uint)) {
51535+ return $this->uint; /*int*/
5104651536 }
51047- throw new Exception('never get to this Typeid::typeid');
51537+ throw new Exception('never get to this Uint::uint');
5104851538 }
5104951539
5105051540 /**
@@ -51052,7 +51542,7 @@ class Typeid {
5105251542 * @return bool
5105351543 * @throws Exception
5105451544 */
51055- public static function validateTypeid(int $value): bool {
51545+ public static function validateUint(int $value): bool {
5105651546 return true;
5105751547 }
5105851548
@@ -51060,18 +51550,18 @@ class Typeid {
5106051550 * @throws Exception
5106151551 * @return int
5106251552 */
51063- public function getTypeid(): int {
51064- if (Typeid::validateTypeid($this->typeid)) {
51065- return $this->typeid;
51553+ public function getUint(): int {
51554+ if (Uint::validateUint($this->uint)) {
51555+ return $this->uint;
5106651556 }
51067- throw new Exception('never get to getTypeid Typeid::typeid');
51557+ throw new Exception('never get to getUint Uint::uint');
5106851558 }
5106951559
5107051560 /**
5107151561 * @return int
5107251562 */
51073- public static function sampleTypeid(): int {
51074- return 31; /*31:typeid*/
51563+ public static function sampleUint(): int {
51564+ return 31; /*31:uint*/
5107551565 }
5107651566
5107751567 /**
@@ -51079,7 +51569,7 @@ class Typeid {
5107951569 * @return bool
5108051570 */
5108151571 public function validate(): bool {
51082- return Typeid::validateTypeid($this->typeid);
51572+ return Uint::validateUint($this->uint);
5108351573 }
5108451574
5108551575 /**
@@ -51088,44 +51578,44 @@ class Typeid {
5108851578 */
5108951579 public function to(): stdClass {
5109051580 $out = new stdClass();
51091- $out->{'typeid'} = $this->toTypeid();
51581+ $out->{'uint'} = $this->toUint();
5109251582 return $out;
5109351583 }
5109451584
5109551585 /**
5109651586 * @param stdClass $obj
51097- * @return Typeid
51587+ * @return Uint
5109851588 * @throws Exception
5109951589 */
51100- public static function from(stdClass $obj): Typeid {
51101- if (!property_exists($obj, 'typeid')) {
51590+ public static function from(stdClass $obj): Uint {
51591+ if (!property_exists($obj, 'uint')) {
5110251592 throw new Exception("Missing required property");
5110351593 }
51104- return new Typeid(
51105- Typeid::fromTypeid($obj->{'typeid'})
51594+ return new Uint(
51595+ Uint::fromUint($obj->{'uint'})
5110651596 );
5110751597 }
5110851598
5110951599 /**
51110- * @return Typeid
51111- */
51112- public static function sample(): Typeid {
51113- return new Typeid(
51114- Typeid::sampleTypeid()
51600+ * @return Uint
51601+ */
51602+ public static function sample(): Uint {
51603+ return new Uint(
51604+ Uint::sampleUint()
5111551605 );
5111651606 }
5111751607 }
5111851608
51119-// This is an autogenerated file:Typename
51609+// This is an autogenerated file:Ulong
5112051610
51121-class Typename {
51122- private int $typename; // json:typename Required
51611+class Ulong {
51612+ private int $ulong; // json:ulong Required
5112351613
5112451614 /**
51125- * @param int $typename
51615+ * @param int $ulong
5112651616 */
51127- public function __construct(int $typename) {
51128- $this->typename = $typename;
51617+ public function __construct(int $ulong) {
51618+ $this->ulong = $ulong;
5112951619 }
5113051620
5113151621 /**
@@ -51133,7 +51623,7 @@ class Typename {
5113351623 * @throws Exception
5113451624 * @return int
5113551625 */
51136- public static function fromTypename(int $value): int {
51626+ public static function fromUlong(int $value): int {
5113751627 return $value; /*int*/
5113851628 }
5113951629
@@ -51141,11 +51631,11 @@ class Typename {
5114151631 * @throws Exception
5114251632 * @return int
5114351633 */
51144- public function toTypename(): int {
51145- if (Typename::validateTypename($this->typename)) {
51146- return $this->typename; /*int*/
51634+ public function toUlong(): int {
51635+ if (Ulong::validateUlong($this->ulong)) {
51636+ return $this->ulong; /*int*/
5114751637 }
51148- throw new Exception('never get to this Typename::typename');
51638+ throw new Exception('never get to this Ulong::ulong');
5114951639 }
5115051640
5115151641 /**
@@ -51153,7 +51643,7 @@ class Typename {
5115351643 * @return bool
5115451644 * @throws Exception
5115551645 */
51156- public static function validateTypename(int $value): bool {
51646+ public static function validateUlong(int $value): bool {
5115751647 return true;
5115851648 }
5115951649
@@ -51161,18 +51651,18 @@ class Typename {
5116151651 * @throws Exception
5116251652 * @return int
5116351653 */
51164- public function getTypename(): int {
51165- if (Typename::validateTypename($this->typename)) {
51166- return $this->typename;
51654+ public function getUlong(): int {
51655+ if (Ulong::validateUlong($this->ulong)) {
51656+ return $this->ulong;
5116751657 }
51168- throw new Exception('never get to getTypename Typename::typename');
51658+ throw new Exception('never get to getUlong Ulong::ulong');
5116951659 }
5117051660
5117151661 /**
5117251662 * @return int
5117351663 */
51174- public static function sampleTypename(): int {
51175- return 31; /*31:typename*/
51664+ public static function sampleUlong(): int {
51665+ return 31; /*31:ulong*/
5117651666 }
5117751667
5117851668 /**
@@ -51180,7 +51670,7 @@ class Typename {
5118051670 * @return bool
5118151671 */
5118251672 public function validate(): bool {
51183- return Typename::validateTypename($this->typename);
51673+ return Ulong::validateUlong($this->ulong);
5118451674 }
5118551675
5118651676 /**
@@ -51189,44 +51679,44 @@ class Typename {
5118951679 */
5119051680 public function to(): stdClass {
5119151681 $out = new stdClass();
51192- $out->{'typename'} = $this->toTypename();
51682+ $out->{'ulong'} = $this->toUlong();
5119351683 return $out;
5119451684 }
5119551685
5119651686 /**
5119751687 * @param stdClass $obj
51198- * @return Typename
51688+ * @return Ulong
5119951689 * @throws Exception
5120051690 */
51201- public static function from(stdClass $obj): Typename {
51202- if (!property_exists($obj, 'typename')) {
51691+ public static function from(stdClass $obj): Ulong {
51692+ if (!property_exists($obj, 'ulong')) {
5120351693 throw new Exception("Missing required property");
5120451694 }
51205- return new Typename(
51206- Typename::fromTypename($obj->{'typename'})
51695+ return new Ulong(
51696+ Ulong::fromUlong($obj->{'ulong'})
5120751697 );
5120851698 }
5120951699
5121051700 /**
51211- * @return Typename
51701+ * @return Ulong
5121251702 */
51213- public static function sample(): Typename {
51214- return new Typename(
51215- Typename::sampleTypename()
51703+ public static function sample(): Ulong {
51704+ return new Ulong(
51705+ Ulong::sampleUlong()
5121651706 );
5121751707 }
5121851708 }
5121951709
51220-// This is an autogenerated file:Typeof
51710+// This is an autogenerated file:Unchecked
5122151711
51222-class Typeof {
51223- private int $typeof; // json:typeof Required
51712+class Unchecked {
51713+ private int $unchecked; // json:unchecked Required
5122451714
5122551715 /**
51226- * @param int $typeof
51716+ * @param int $unchecked
5122751717 */
51228- public function __construct(int $typeof) {
51229- $this->typeof = $typeof;
51718+ public function __construct(int $unchecked) {
51719+ $this->unchecked = $unchecked;
5123051720 }
5123151721
5123251722 /**
@@ -51234,7 +51724,7 @@ class Typeof {
5123451724 * @throws Exception
5123551725 * @return int
5123651726 */
51237- public static function fromTypeof(int $value): int {
51727+ public static function fromUnchecked(int $value): int {
5123851728 return $value; /*int*/
5123951729 }
5124051730
@@ -51242,11 +51732,11 @@ class Typeof {
5124251732 * @throws Exception
5124351733 * @return int
5124451734 */
51245- public function toTypeof(): int {
51246- if (Typeof::validateTypeof($this->typeof)) {
51247- return $this->typeof; /*int*/
51735+ public function toUnchecked(): int {
51736+ if (Unchecked::validateUnchecked($this->unchecked)) {
51737+ return $this->unchecked; /*int*/
5124851738 }
51249- throw new Exception('never get to this Typeof::typeof');
51739+ throw new Exception('never get to this Unchecked::unchecked');
5125051740 }
5125151741
5125251742 /**
@@ -51254,7 +51744,7 @@ class Typeof {
5125451744 * @return bool
5125551745 * @throws Exception
5125651746 */
51257- public static function validateTypeof(int $value): bool {
51747+ public static function validateUnchecked(int $value): bool {
5125851748 return true;
5125951749 }
5126051750
@@ -51262,18 +51752,18 @@ class Typeof {
5126251752 * @throws Exception
5126351753 * @return int
5126451754 */
51265- public function getTypeof(): int {
51266- if (Typeof::validateTypeof($this->typeof)) {
51267- return $this->typeof;
51755+ public function getUnchecked(): int {
51756+ if (Unchecked::validateUnchecked($this->unchecked)) {
51757+ return $this->unchecked;
5126851758 }
51269- throw new Exception('never get to getTypeof Typeof::typeof');
51759+ throw new Exception('never get to getUnchecked Unchecked::unchecked');
5127051760 }
5127151761
5127251762 /**
5127351763 * @return int
5127451764 */
51275- public static function sampleTypeof(): int {
51276- return 31; /*31:typeof*/
51765+ public static function sampleUnchecked(): int {
51766+ return 31; /*31:unchecked*/
5127751767 }
5127851768
5127951769 /**
@@ -51281,7 +51771,7 @@ class Typeof {
5128151771 * @return bool
5128251772 */
5128351773 public function validate(): bool {
51284- return Typeof::validateTypeof($this->typeof);
51774+ return Unchecked::validateUnchecked($this->unchecked);
5128551775 }
5128651776
5128751777 /**
@@ -51290,44 +51780,44 @@ class Typeof {
5129051780 */
5129151781 public function to(): stdClass {
5129251782 $out = new stdClass();
51293- $out->{'typeof'} = $this->toTypeof();
51783+ $out->{'unchecked'} = $this->toUnchecked();
5129451784 return $out;
5129551785 }
5129651786
5129751787 /**
5129851788 * @param stdClass $obj
51299- * @return Typeof
51789+ * @return Unchecked
5130051790 * @throws Exception
5130151791 */
51302- public static function from(stdClass $obj): Typeof {
51303- if (!property_exists($obj, 'typeof')) {
51792+ public static function from(stdClass $obj): Unchecked {
51793+ if (!property_exists($obj, 'unchecked')) {
5130451794 throw new Exception("Missing required property");
5130551795 }
51306- return new Typeof(
51307- Typeof::fromTypeof($obj->{'typeof'})
51796+ return new Unchecked(
51797+ Unchecked::fromUnchecked($obj->{'unchecked'})
5130851798 );
5130951799 }
5131051800
5131151801 /**
51312- * @return Typeof
51802+ * @return Unchecked
5131351803 */
51314- public static function sample(): Typeof {
51315- return new Typeof(
51316- Typeof::sampleTypeof()
51804+ public static function sample(): Unchecked {
51805+ return new Unchecked(
51806+ Unchecked::sampleUnchecked()
5131751807 );
5131851808 }
5131951809 }
5132051810
51321-// This is an autogenerated file:Uint
51811+// This is an autogenerated file:Undefined
5132251812
51323-class Uint {
51324- private int $uint; // json:uint Required
51813+class Undefined {
51814+ private int $undefined; // json:undefined Required
5132551815
5132651816 /**
51327- * @param int $uint
51817+ * @param int $undefined
5132851818 */
51329- public function __construct(int $uint) {
51330- $this->uint = $uint;
51819+ public function __construct(int $undefined) {
51820+ $this->undefined = $undefined;
5133151821 }
5133251822
5133351823 /**
@@ -51335,7 +51825,7 @@ class Uint {
5133551825 * @throws Exception
5133651826 * @return int
5133751827 */
51338- public static function fromUint(int $value): int {
51828+ public static function fromUndefined(int $value): int {
5133951829 return $value; /*int*/
5134051830 }
5134151831
@@ -51343,11 +51833,11 @@ class Uint {
5134351833 * @throws Exception
5134451834 * @return int
5134551835 */
51346- public function toUint(): int {
51347- if (Uint::validateUint($this->uint)) {
51348- return $this->uint; /*int*/
51836+ public function toUndefined(): int {
51837+ if (Undefined::validateUndefined($this->undefined)) {
51838+ return $this->undefined; /*int*/
5134951839 }
51350- throw new Exception('never get to this Uint::uint');
51840+ throw new Exception('never get to this Undefined::undefined');
5135151841 }
5135251842
5135351843 /**
@@ -51355,7 +51845,7 @@ class Uint {
5135551845 * @return bool
5135651846 * @throws Exception
5135751847 */
51358- public static function validateUint(int $value): bool {
51848+ public static function validateUndefined(int $value): bool {
5135951849 return true;
5136051850 }
5136151851
@@ -51363,18 +51853,18 @@ class Uint {
5136351853 * @throws Exception
5136451854 * @return int
5136551855 */
51366- public function getUint(): int {
51367- if (Uint::validateUint($this->uint)) {
51368- return $this->uint;
51856+ public function getUndefined(): int {
51857+ if (Undefined::validateUndefined($this->undefined)) {
51858+ return $this->undefined;
5136951859 }
51370- throw new Exception('never get to getUint Uint::uint');
51860+ throw new Exception('never get to getUndefined Undefined::undefined');
5137151861 }
5137251862
5137351863 /**
5137451864 * @return int
5137551865 */
51376- public static function sampleUint(): int {
51377- return 31; /*31:uint*/
51866+ public static function sampleUndefined(): int {
51867+ return 31; /*31:undefined*/
5137851868 }
5137951869
5138051870 /**
@@ -51382,7 +51872,7 @@ class Uint {
5138251872 * @return bool
5138351873 */
5138451874 public function validate(): bool {
51385- return Uint::validateUint($this->uint);
51875+ return Undefined::validateUndefined($this->undefined);
5138651876 }
5138751877
5138851878 /**
@@ -51391,44 +51881,119 @@ class Uint {
5139151881 */
5139251882 public function to(): stdClass {
5139351883 $out = new stdClass();
51394- $out->{'uint'} = $this->toUint();
51884+ $out->{'undefined'} = $this->toUndefined();
5139551885 return $out;
5139651886 }
5139751887
5139851888 /**
5139951889 * @param stdClass $obj
51400- * @return Uint
51890+ * @return Undefined
5140151891 * @throws Exception
5140251892 */
51403- public static function from(stdClass $obj): Uint {
51404- if (!property_exists($obj, 'uint')) {
51893+ public static function from(stdClass $obj): Undefined {
51894+ if (!property_exists($obj, 'undefined')) {
5140551895 throw new Exception("Missing required property");
5140651896 }
51407- return new Uint(
51408- Uint::fromUint($obj->{'uint'})
51897+ return new Undefined(
51898+ Undefined::fromUndefined($obj->{'undefined'})
5140951899 );
5141051900 }
5141151901
5141251902 /**
51413- * @return Uint
51903+ * @return Undefined
5141451904 */
51415- public static function sample(): Uint {
51416- return new Uint(
51417- Uint::sampleUint()
51905+ public static function sample(): Undefined {
51906+ return new Undefined(
51907+ Undefined::sampleUndefined()
5141851908 );
5141951909 }
5142051910 }
5142151911
51422-// This is an autogenerated file:Ulong
51912+// This is an autogenerated file:Obj6
5142351913
51424-class Ulong {
51425- private int $ulong; // json:ulong Required
51914+class Obj6 {
51915+ private int $dummy; // json:dummy Required
51916+ private Union $union; // json:union Required
51917+ private UnmarshalJSON $unmarshalJSON; // json:UnmarshalJSON Required
51918+ private Unowned $unowned; // json:unowned Required
51919+ private Unsafe $unsafe; // json:unsafe Required
51920+ private Unsigned $unsigned; // json:unsigned Required
51921+ private UseSerializers $useSerializers; // json:UseSerializers Required
51922+ private Ushort $ushort; // json:ushort Required
51923+ private Using $using; // json:using Required
51924+ private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
51925+ private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
51926+ private UUID $uuid; // json:UUID Required
51927+ private VarClass $var; // json:var Required
51928+ private Virtual $virtual; // json:virtual Required
51929+ private VoidClass $void; // json:void Required
51930+ private Volatile $volatile; // json:volatile Required
51931+ private WcharT $wcharT; // json:wchar_t Required
51932+ private Weak $weak; // json:weak Required
51933+ private Where $where; // json:where Required
51934+ private WhileClass $while; // json:while Required
51935+ private WillSet $willSet; // json:willSet Required
51936+ private With $with; // json:with Required
51937+ private XorClass $xor; // json:xor Required
51938+ private XorEq $xorEq; // json:xor_eq Required
51939+ private Yes $yes; // json:YES Required
51940+ private YieldClass $yield; // json:yield Required
5142651941
5142751942 /**
51428- * @param int $ulong
51943+ * @param int $dummy
51944+ * @param Union $union
51945+ * @param UnmarshalJSON $unmarshalJSON
51946+ * @param Unowned $unowned
51947+ * @param Unsafe $unsafe
51948+ * @param Unsigned $unsigned
51949+ * @param UseSerializers $useSerializers
51950+ * @param Ushort $ushort
51951+ * @param Using $using
51952+ * @param Utf8JSONReader $utf8JSONReader
51953+ * @param Utf8JSONWriter $utf8JSONWriter
51954+ * @param UUID $uuid
51955+ * @param VarClass $var
51956+ * @param Virtual $virtual
51957+ * @param VoidClass $void
51958+ * @param Volatile $volatile
51959+ * @param WcharT $wcharT
51960+ * @param Weak $weak
51961+ * @param Where $where
51962+ * @param WhileClass $while
51963+ * @param WillSet $willSet
51964+ * @param With $with
51965+ * @param XorClass $xor
51966+ * @param XorEq $xorEq
51967+ * @param Yes $yes
51968+ * @param YieldClass $yield
5142951969 */
51430- public function __construct(int $ulong) {
51431- $this->ulong = $ulong;
51970+ public function __construct(int $dummy, Union $union, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, 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) {
51971+ $this->dummy = $dummy;
51972+ $this->union = $union;
51973+ $this->unmarshalJSON = $unmarshalJSON;
51974+ $this->unowned = $unowned;
51975+ $this->unsafe = $unsafe;
51976+ $this->unsigned = $unsigned;
51977+ $this->useSerializers = $useSerializers;
51978+ $this->ushort = $ushort;
51979+ $this->using = $using;
51980+ $this->utf8JSONReader = $utf8JSONReader;
51981+ $this->utf8JSONWriter = $utf8JSONWriter;
51982+ $this->uuid = $uuid;
51983+ $this->var = $var;
51984+ $this->virtual = $virtual;
51985+ $this->void = $void;
51986+ $this->volatile = $volatile;
51987+ $this->wcharT = $wcharT;
51988+ $this->weak = $weak;
51989+ $this->where = $where;
51990+ $this->while = $while;
51991+ $this->willSet = $willSet;
51992+ $this->with = $with;
51993+ $this->xor = $xor;
51994+ $this->xorEq = $xorEq;
51995+ $this->yes = $yes;
51996+ $this->yield = $yield;
5143251997 }
5143351998
5143451999 /**
@@ -51436,7 +52001,7 @@ class Ulong {
5143652001 * @throws Exception
5143752002 * @return int
5143852003 */
51439- public static function fromUlong(int $value): int {
52004+ public static function fromDummy(int $value): int {
5144052005 return $value; /*int*/
5144152006 }
5144252007
@@ -51444,11 +52009,11 @@ class Ulong {
5144452009 * @throws Exception
5144552010 * @return int
5144652011 */
51447- public function toUlong(): int {
51448- if (Ulong::validateUlong($this->ulong)) {
51449- return $this->ulong; /*int*/
52012+ public function toDummy(): int {
52013+ if (Obj6::validateDummy($this->dummy)) {
52014+ return $this->dummy; /*int*/
5145052015 }
51451- throw new Exception('never get to this Ulong::ulong');
52016+ throw new Exception('never get to this Obj6::dummy');
5145252017 }
5145352018
5145452019 /**
@@ -51456,7 +52021,7 @@ class Ulong {
5145652021 * @return bool
5145752022 * @throws Exception
5145852023 */
51459- public static function validateUlong(int $value): bool {
52024+ public static function validateDummy(int $value): bool {
5146052025 return true;
5146152026 }
5146252027
@@ -51464,1846 +52029,1898 @@ class Ulong {
5146452029 * @throws Exception
5146552030 * @return int
5146652031 */
51467- public function getUlong(): int {
51468- if (Ulong::validateUlong($this->ulong)) {
51469- return $this->ulong;
52032+ public function getDummy(): int {
52033+ if (Obj6::validateDummy($this->dummy)) {
52034+ return $this->dummy;
5147052035 }
51471- throw new Exception('never get to getUlong Ulong::ulong');
52036+ throw new Exception('never get to getDummy Obj6::dummy');
5147252037 }
5147352038
5147452039 /**
5147552040 * @return int
5147652041 */
51477- public static function sampleUlong(): int {
51478- return 31; /*31:ulong*/
52042+ public static function sampleDummy(): int {
52043+ return 31; /*31:dummy*/
5147952044 }
5148052045
5148152046 /**
52047+ * @param stdClass $value
5148252048 * @throws Exception
51483- * @return bool
52049+ * @return Union
5148452050 */
51485- public function validate(): bool {
51486- return Ulong::validateUlong($this->ulong);
52051+ public static function fromUnion(stdClass $value): Union {
52052+ return Union::from($value); /*class*/
5148752053 }
5148852054
5148952055 /**
51490- * @return stdClass
5149152056 * @throws Exception
52057+ * @return stdClass
5149252058 */
51493- public function to(): stdClass {
51494- $out = new stdClass();
51495- $out->{'ulong'} = $this->toUlong();
51496- return $out;
52059+ public function toUnion(): stdClass {
52060+ if (Obj6::validateUnion($this->union)) {
52061+ return $this->union->to(); /*class*/
52062+ }
52063+ throw new Exception('never get to this Obj6::union');
5149752064 }
5149852065
5149952066 /**
51500- * @param stdClass $obj
51501- * @return Ulong
52067+ * @param Union
52068+ * @return bool
5150252069 * @throws Exception
5150352070 */
51504- public static function from(stdClass $obj): Ulong {
51505- if (!property_exists($obj, 'ulong')) {
51506- throw new Exception("Missing required property");
51507- }
51508- return new Ulong(
51509- Ulong::fromUlong($obj->{'ulong'})
51510- );
52071+ public static function validateUnion(Union $value): bool {
52072+ $value->validate();
52073+ return true;
5151152074 }
5151252075
5151352076 /**
51514- * @return Ulong
52077+ * @throws Exception
52078+ * @return Union
5151552079 */
51516- public static function sample(): Ulong {
51517- return new Ulong(
51518- Ulong::sampleUlong()
51519- );
52080+ public function getUnion(): Union {
52081+ if (Obj6::validateUnion($this->union)) {
52082+ return $this->union;
52083+ }
52084+ throw new Exception('never get to getUnion Obj6::union');
5152052085 }
51521-}
51522-
51523-// This is an autogenerated file:Unchecked
51524-
51525-class Unchecked {
51526- private int $unchecked; // json:unchecked Required
5152752086
5152852087 /**
51529- * @param int $unchecked
52088+ * @return Union
5153052089 */
51531- public function __construct(int $unchecked) {
51532- $this->unchecked = $unchecked;
52090+ public static function sampleUnion(): Union {
52091+ return Union::sample(); /*32:union*/
5153352092 }
5153452093
5153552094 /**
51536- * @param int $value
52095+ * @param stdClass $value
5153752096 * @throws Exception
51538- * @return int
52097+ * @return UnmarshalJSON
5153952098 */
51540- public static function fromUnchecked(int $value): int {
51541- return $value; /*int*/
52099+ public static function fromUnmarshalJSON(stdClass $value): UnmarshalJSON {
52100+ return UnmarshalJSON::from($value); /*class*/
5154252101 }
5154352102
5154452103 /**
5154552104 * @throws Exception
51546- * @return int
52105+ * @return stdClass
5154752106 */
51548- public function toUnchecked(): int {
51549- if (Unchecked::validateUnchecked($this->unchecked)) {
51550- return $this->unchecked; /*int*/
52107+ public function toUnmarshalJSON(): stdClass {
52108+ if (Obj6::validateUnmarshalJSON($this->unmarshalJSON)) {
52109+ return $this->unmarshalJSON->to(); /*class*/
5155152110 }
51552- throw new Exception('never get to this Unchecked::unchecked');
52111+ throw new Exception('never get to this Obj6::unmarshalJSON');
5155352112 }
5155452113
5155552114 /**
51556- * @param int
52115+ * @param UnmarshalJSON
5155752116 * @return bool
5155852117 * @throws Exception
5155952118 */
51560- public static function validateUnchecked(int $value): bool {
52119+ public static function validateUnmarshalJSON(UnmarshalJSON $value): bool {
52120+ $value->validate();
5156152121 return true;
5156252122 }
5156352123
5156452124 /**
5156552125 * @throws Exception
51566- * @return int
52126+ * @return UnmarshalJSON
5156752127 */
51568- public function getUnchecked(): int {
51569- if (Unchecked::validateUnchecked($this->unchecked)) {
51570- return $this->unchecked;
52128+ public function getUnmarshalJSON(): UnmarshalJSON {
52129+ if (Obj6::validateUnmarshalJSON($this->unmarshalJSON)) {
52130+ return $this->unmarshalJSON;
5157152131 }
51572- throw new Exception('never get to getUnchecked Unchecked::unchecked');
52132+ throw new Exception('never get to getUnmarshalJSON Obj6::unmarshalJSON');
5157352133 }
5157452134
5157552135 /**
51576- * @return int
52136+ * @return UnmarshalJSON
5157752137 */
51578- public static function sampleUnchecked(): int {
51579- return 31; /*31:unchecked*/
52138+ public static function sampleUnmarshalJSON(): UnmarshalJSON {
52139+ return UnmarshalJSON::sample(); /*33:unmarshalJSON*/
5158052140 }
5158152141
5158252142 /**
52143+ * @param stdClass $value
5158352144 * @throws Exception
51584- * @return bool
52145+ * @return Unowned
5158552146 */
51586- public function validate(): bool {
51587- return Unchecked::validateUnchecked($this->unchecked);
52147+ public static function fromUnowned(stdClass $value): Unowned {
52148+ return Unowned::from($value); /*class*/
5158852149 }
5158952150
5159052151 /**
52152+ * @throws Exception
5159152153 * @return stdClass
52154+ */
52155+ public function toUnowned(): stdClass {
52156+ if (Obj6::validateUnowned($this->unowned)) {
52157+ return $this->unowned->to(); /*class*/
52158+ }
52159+ throw new Exception('never get to this Obj6::unowned');
52160+ }
52161+
52162+ /**
52163+ * @param Unowned
52164+ * @return bool
5159252165 * @throws Exception
5159352166 */
51594- public function to(): stdClass {
51595- $out = new stdClass();
51596- $out->{'unchecked'} = $this->toUnchecked();
51597- return $out;
52167+ public static function validateUnowned(Unowned $value): bool {
52168+ $value->validate();
52169+ return true;
5159852170 }
5159952171
5160052172 /**
51601- * @param stdClass $obj
51602- * @return Unchecked
5160352173 * @throws Exception
52174+ * @return Unowned
5160452175 */
51605- public static function from(stdClass $obj): Unchecked {
51606- if (!property_exists($obj, 'unchecked')) {
51607- throw new Exception("Missing required property");
52176+ public function getUnowned(): Unowned {
52177+ if (Obj6::validateUnowned($this->unowned)) {
52178+ return $this->unowned;
5160852179 }
51609- return new Unchecked(
51610- Unchecked::fromUnchecked($obj->{'unchecked'})
51611- );
52180+ throw new Exception('never get to getUnowned Obj6::unowned');
5161252181 }
5161352182
5161452183 /**
51615- * @return Unchecked
52184+ * @return Unowned
5161652185 */
51617- public static function sample(): Unchecked {
51618- return new Unchecked(
51619- Unchecked::sampleUnchecked()
51620- );
52186+ public static function sampleUnowned(): Unowned {
52187+ return Unowned::sample(); /*34:unowned*/
5162152188 }
51622-}
5162352189
51624-// This is an autogenerated file:Undefined
52190+ /**
52191+ * @param stdClass $value
52192+ * @throws Exception
52193+ * @return Unsafe
52194+ */
52195+ public static function fromUnsafe(stdClass $value): Unsafe {
52196+ return Unsafe::from($value); /*class*/
52197+ }
5162552198
51626-class Undefined {
51627- private int $undefined; // json:undefined Required
52199+ /**
52200+ * @throws Exception
52201+ * @return stdClass
52202+ */
52203+ public function toUnsafe(): stdClass {
52204+ if (Obj6::validateUnsafe($this->unsafe)) {
52205+ return $this->unsafe->to(); /*class*/
52206+ }
52207+ throw new Exception('never get to this Obj6::unsafe');
52208+ }
5162852209
5162952210 /**
51630- * @param int $undefined
52211+ * @param Unsafe
52212+ * @return bool
52213+ * @throws Exception
5163152214 */
51632- public function __construct(int $undefined) {
51633- $this->undefined = $undefined;
52215+ public static function validateUnsafe(Unsafe $value): bool {
52216+ $value->validate();
52217+ return true;
5163452218 }
5163552219
5163652220 /**
51637- * @param int $value
5163852221 * @throws Exception
51639- * @return int
52222+ * @return Unsafe
5164052223 */
51641- public static function fromUndefined(int $value): int {
51642- return $value; /*int*/
52224+ public function getUnsafe(): Unsafe {
52225+ if (Obj6::validateUnsafe($this->unsafe)) {
52226+ return $this->unsafe;
52227+ }
52228+ throw new Exception('never get to getUnsafe Obj6::unsafe');
52229+ }
52230+
52231+ /**
52232+ * @return Unsafe
52233+ */
52234+ public static function sampleUnsafe(): Unsafe {
52235+ return Unsafe::sample(); /*35:unsafe*/
5164352236 }
5164452237
5164552238 /**
52239+ * @param stdClass $value
5164652240 * @throws Exception
51647- * @return int
52241+ * @return Unsigned
5164852242 */
51649- public function toUndefined(): int {
51650- if (Undefined::validateUndefined($this->undefined)) {
51651- return $this->undefined; /*int*/
52243+ public static function fromUnsigned(stdClass $value): Unsigned {
52244+ return Unsigned::from($value); /*class*/
52245+ }
52246+
52247+ /**
52248+ * @throws Exception
52249+ * @return stdClass
52250+ */
52251+ public function toUnsigned(): stdClass {
52252+ if (Obj6::validateUnsigned($this->unsigned)) {
52253+ return $this->unsigned->to(); /*class*/
5165252254 }
51653- throw new Exception('never get to this Undefined::undefined');
52255+ throw new Exception('never get to this Obj6::unsigned');
5165452256 }
5165552257
5165652258 /**
51657- * @param int
52259+ * @param Unsigned
5165852260 * @return bool
5165952261 * @throws Exception
5166052262 */
51661- public static function validateUndefined(int $value): bool {
52263+ public static function validateUnsigned(Unsigned $value): bool {
52264+ $value->validate();
5166252265 return true;
5166352266 }
5166452267
5166552268 /**
5166652269 * @throws Exception
51667- * @return int
52270+ * @return Unsigned
5166852271 */
51669- public function getUndefined(): int {
51670- if (Undefined::validateUndefined($this->undefined)) {
51671- return $this->undefined;
52272+ public function getUnsigned(): Unsigned {
52273+ if (Obj6::validateUnsigned($this->unsigned)) {
52274+ return $this->unsigned;
5167252275 }
51673- throw new Exception('never get to getUndefined Undefined::undefined');
52276+ throw new Exception('never get to getUnsigned Obj6::unsigned');
5167452277 }
5167552278
5167652279 /**
51677- * @return int
52280+ * @return Unsigned
5167852281 */
51679- public static function sampleUndefined(): int {
51680- return 31; /*31:undefined*/
52282+ public static function sampleUnsigned(): Unsigned {
52283+ return Unsigned::sample(); /*36:unsigned*/
5168152284 }
5168252285
5168352286 /**
52287+ * @param stdClass $value
5168452288 * @throws Exception
51685- * @return bool
52289+ * @return UseSerializers
5168652290 */
51687- public function validate(): bool {
51688- return Undefined::validateUndefined($this->undefined);
52291+ public static function fromUseSerializers(stdClass $value): UseSerializers {
52292+ return UseSerializers::from($value); /*class*/
5168952293 }
5169052294
5169152295 /**
51692- * @return stdClass
5169352296 * @throws Exception
52297+ * @return stdClass
5169452298 */
51695- public function to(): stdClass {
51696- $out = new stdClass();
51697- $out->{'undefined'} = $this->toUndefined();
51698- return $out;
52299+ public function toUseSerializers(): stdClass {
52300+ if (Obj6::validateUseSerializers($this->useSerializers)) {
52301+ return $this->useSerializers->to(); /*class*/
52302+ }
52303+ throw new Exception('never get to this Obj6::useSerializers');
5169952304 }
5170052305
5170152306 /**
51702- * @param stdClass $obj
51703- * @return Undefined
52307+ * @param UseSerializers
52308+ * @return bool
5170452309 * @throws Exception
5170552310 */
51706- public static function from(stdClass $obj): Undefined {
51707- if (!property_exists($obj, 'undefined')) {
51708- throw new Exception("Missing required property");
51709- }
51710- return new Undefined(
51711- Undefined::fromUndefined($obj->{'undefined'})
51712- );
52311+ public static function validateUseSerializers(UseSerializers $value): bool {
52312+ $value->validate();
52313+ return true;
5171352314 }
5171452315
5171552316 /**
51716- * @return Undefined
52317+ * @throws Exception
52318+ * @return UseSerializers
5171752319 */
51718- public static function sample(): Undefined {
51719- return new Undefined(
51720- Undefined::sampleUndefined()
51721- );
52320+ public function getUseSerializers(): UseSerializers {
52321+ if (Obj6::validateUseSerializers($this->useSerializers)) {
52322+ return $this->useSerializers;
52323+ }
52324+ throw new Exception('never get to getUseSerializers Obj6::useSerializers');
5172252325 }
51723-}
51724-
51725-// This is an autogenerated file:Union
51726-
51727-class Union {
51728- private int $union; // json:union Required
5172952326
5173052327 /**
51731- * @param int $union
52328+ * @return UseSerializers
5173252329 */
51733- public function __construct(int $union) {
51734- $this->union = $union;
52330+ public static function sampleUseSerializers(): UseSerializers {
52331+ return UseSerializers::sample(); /*37:useSerializers*/
5173552332 }
5173652333
5173752334 /**
51738- * @param int $value
52335+ * @param stdClass $value
5173952336 * @throws Exception
51740- * @return int
52337+ * @return Ushort
5174152338 */
51742- public static function fromUnion(int $value): int {
51743- return $value; /*int*/
52339+ public static function fromUshort(stdClass $value): Ushort {
52340+ return Ushort::from($value); /*class*/
5174452341 }
5174552342
5174652343 /**
5174752344 * @throws Exception
51748- * @return int
52345+ * @return stdClass
5174952346 */
51750- public function toUnion(): int {
51751- if (Union::validateUnion($this->union)) {
51752- return $this->union; /*int*/
52347+ public function toUshort(): stdClass {
52348+ if (Obj6::validateUshort($this->ushort)) {
52349+ return $this->ushort->to(); /*class*/
5175352350 }
51754- throw new Exception('never get to this Union::union');
52351+ throw new Exception('never get to this Obj6::ushort');
5175552352 }
5175652353
5175752354 /**
51758- * @param int
52355+ * @param Ushort
5175952356 * @return bool
5176052357 * @throws Exception
5176152358 */
51762- public static function validateUnion(int $value): bool {
52359+ public static function validateUshort(Ushort $value): bool {
52360+ $value->validate();
5176352361 return true;
5176452362 }
5176552363
5176652364 /**
5176752365 * @throws Exception
51768- * @return int
52366+ * @return Ushort
5176952367 */
51770- public function getUnion(): int {
51771- if (Union::validateUnion($this->union)) {
51772- return $this->union;
52368+ public function getUshort(): Ushort {
52369+ if (Obj6::validateUshort($this->ushort)) {
52370+ return $this->ushort;
5177352371 }
51774- throw new Exception('never get to getUnion Union::union');
52372+ throw new Exception('never get to getUshort Obj6::ushort');
5177552373 }
5177652374
5177752375 /**
51778- * @return int
52376+ * @return Ushort
5177952377 */
51780- public static function sampleUnion(): int {
51781- return 31; /*31:union*/
52378+ public static function sampleUshort(): Ushort {
52379+ return Ushort::sample(); /*38:ushort*/
5178252380 }
5178352381
5178452382 /**
52383+ * @param stdClass $value
5178552384 * @throws Exception
51786- * @return bool
52385+ * @return Using
5178752386 */
51788- public function validate(): bool {
51789- return Union::validateUnion($this->union);
52387+ public static function fromUsing(stdClass $value): Using {
52388+ return Using::from($value); /*class*/
5179052389 }
5179152390
5179252391 /**
51793- * @return stdClass
5179452392 * @throws Exception
52393+ * @return stdClass
5179552394 */
51796- public function to(): stdClass {
51797- $out = new stdClass();
51798- $out->{'union'} = $this->toUnion();
51799- return $out;
52395+ public function toUsing(): stdClass {
52396+ if (Obj6::validateUsing($this->using)) {
52397+ return $this->using->to(); /*class*/
52398+ }
52399+ throw new Exception('never get to this Obj6::using');
5180052400 }
5180152401
5180252402 /**
51803- * @param stdClass $obj
51804- * @return Union
52403+ * @param Using
52404+ * @return bool
5180552405 * @throws Exception
5180652406 */
51807- public static function from(stdClass $obj): Union {
51808- if (!property_exists($obj, 'union')) {
51809- throw new Exception("Missing required property");
51810- }
51811- return new Union(
51812- Union::fromUnion($obj->{'union'})
51813- );
52407+ public static function validateUsing(Using $value): bool {
52408+ $value->validate();
52409+ return true;
5181452410 }
5181552411
5181652412 /**
51817- * @return Union
52413+ * @throws Exception
52414+ * @return Using
5181852415 */
51819- public static function sample(): Union {
51820- return new Union(
51821- Union::sampleUnion()
51822- );
52416+ public function getUsing(): Using {
52417+ if (Obj6::validateUsing($this->using)) {
52418+ return $this->using;
52419+ }
52420+ throw new Exception('never get to getUsing Obj6::using');
5182352421 }
51824-}
51825-
51826-// This is an autogenerated file:UnmarshalJSON
51827-
51828-class UnmarshalJSON {
51829- private int $unmarshalJSON; // json:UnmarshalJSON Required
5183052422
5183152423 /**
51832- * @param int $unmarshalJSON
52424+ * @return Using
5183352425 */
51834- public function __construct(int $unmarshalJSON) {
51835- $this->unmarshalJSON = $unmarshalJSON;
52426+ public static function sampleUsing(): Using {
52427+ return Using::sample(); /*39:using*/
5183652428 }
5183752429
5183852430 /**
51839- * @param int $value
52431+ * @param stdClass $value
5184052432 * @throws Exception
51841- * @return int
52433+ * @return Utf8JSONReader
5184252434 */
51843- public static function fromUnmarshalJSON(int $value): int {
51844- return $value; /*int*/
52435+ public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
52436+ return Utf8JSONReader::from($value); /*class*/
5184552437 }
5184652438
5184752439 /**
5184852440 * @throws Exception
51849- * @return int
52441+ * @return stdClass
5185052442 */
51851- public function toUnmarshalJSON(): int {
51852- if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) {
51853- return $this->unmarshalJSON; /*int*/
52443+ public function toUtf8JSONReader(): stdClass {
52444+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52445+ return $this->utf8JSONReader->to(); /*class*/
5185452446 }
51855- throw new Exception('never get to this UnmarshalJSON::unmarshalJSON');
52447+ throw new Exception('never get to this Obj6::utf8JSONReader');
5185652448 }
5185752449
5185852450 /**
51859- * @param int
52451+ * @param Utf8JSONReader
5186052452 * @return bool
5186152453 * @throws Exception
5186252454 */
51863- public static function validateUnmarshalJSON(int $value): bool {
52455+ public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
52456+ $value->validate();
5186452457 return true;
5186552458 }
5186652459
5186752460 /**
5186852461 * @throws Exception
51869- * @return int
52462+ * @return Utf8JSONReader
5187052463 */
51871- public function getUnmarshalJSON(): int {
51872- if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) {
51873- return $this->unmarshalJSON;
52464+ public function getUtf8JSONReader(): Utf8JSONReader {
52465+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52466+ return $this->utf8JSONReader;
5187452467 }
51875- throw new Exception('never get to getUnmarshalJSON UnmarshalJSON::unmarshalJSON');
52468+ throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader');
5187652469 }
5187752470
5187852471 /**
51879- * @return int
52472+ * @return Utf8JSONReader
5188052473 */
51881- public static function sampleUnmarshalJSON(): int {
51882- return 31; /*31:unmarshalJSON*/
52474+ public static function sampleUtf8JSONReader(): Utf8JSONReader {
52475+ return Utf8JSONReader::sample(); /*40:utf8JSONReader*/
5188352476 }
5188452477
5188552478 /**
52479+ * @param stdClass $value
5188652480 * @throws Exception
51887- * @return bool
52481+ * @return Utf8JSONWriter
5188852482 */
51889- public function validate(): bool {
51890- return UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON);
52483+ public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
52484+ return Utf8JSONWriter::from($value); /*class*/
5189152485 }
5189252486
5189352487 /**
51894- * @return stdClass
5189552488 * @throws Exception
52489+ * @return stdClass
5189652490 */
51897- public function to(): stdClass {
51898- $out = new stdClass();
51899- $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON();
51900- return $out;
52491+ public function toUtf8JSONWriter(): stdClass {
52492+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52493+ return $this->utf8JSONWriter->to(); /*class*/
52494+ }
52495+ throw new Exception('never get to this Obj6::utf8JSONWriter');
5190152496 }
5190252497
5190352498 /**
51904- * @param stdClass $obj
51905- * @return UnmarshalJSON
52499+ * @param Utf8JSONWriter
52500+ * @return bool
5190652501 * @throws Exception
5190752502 */
51908- public static function from(stdClass $obj): UnmarshalJSON {
51909- if (!property_exists($obj, 'UnmarshalJSON')) {
51910- throw new Exception("Missing required property");
51911- }
51912- return new UnmarshalJSON(
51913- UnmarshalJSON::fromUnmarshalJSON($obj->{'UnmarshalJSON'})
51914- );
52503+ public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
52504+ $value->validate();
52505+ return true;
5191552506 }
5191652507
5191752508 /**
51918- * @return UnmarshalJSON
52509+ * @throws Exception
52510+ * @return Utf8JSONWriter
5191952511 */
51920- public static function sample(): UnmarshalJSON {
51921- return new UnmarshalJSON(
51922- UnmarshalJSON::sampleUnmarshalJSON()
51923- );
52512+ public function getUtf8JSONWriter(): Utf8JSONWriter {
52513+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52514+ return $this->utf8JSONWriter;
52515+ }
52516+ throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter');
5192452517 }
51925-}
51926-
51927-// This is an autogenerated file:Unowned
51928-
51929-class Unowned {
51930- private int $unowned; // json:unowned Required
5193152518
5193252519 /**
51933- * @param int $unowned
52520+ * @return Utf8JSONWriter
5193452521 */
51935- public function __construct(int $unowned) {
51936- $this->unowned = $unowned;
52522+ public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52523+ return Utf8JSONWriter::sample(); /*41:utf8JSONWriter*/
5193752524 }
5193852525
5193952526 /**
51940- * @param int $value
52527+ * @param stdClass $value
5194152528 * @throws Exception
51942- * @return int
52529+ * @return UUID
5194352530 */
51944- public static function fromUnowned(int $value): int {
51945- return $value; /*int*/
52531+ public static function fromUUID(stdClass $value): UUID {
52532+ return UUID::from($value); /*class*/
5194652533 }
5194752534
5194852535 /**
5194952536 * @throws Exception
51950- * @return int
52537+ * @return stdClass
5195152538 */
51952- public function toUnowned(): int {
51953- if (Unowned::validateUnowned($this->unowned)) {
51954- return $this->unowned; /*int*/
52539+ public function toUUID(): stdClass {
52540+ if (Obj6::validateUUID($this->uuid)) {
52541+ return $this->uuid->to(); /*class*/
5195552542 }
51956- throw new Exception('never get to this Unowned::unowned');
52543+ throw new Exception('never get to this Obj6::uuid');
5195752544 }
5195852545
5195952546 /**
51960- * @param int
52547+ * @param UUID
5196152548 * @return bool
5196252549 * @throws Exception
5196352550 */
51964- public static function validateUnowned(int $value): bool {
52551+ public static function validateUUID(UUID $value): bool {
52552+ $value->validate();
5196552553 return true;
5196652554 }
5196752555
5196852556 /**
5196952557 * @throws Exception
51970- * @return int
52558+ * @return UUID
5197152559 */
51972- public function getUnowned(): int {
51973- if (Unowned::validateUnowned($this->unowned)) {
51974- return $this->unowned;
52560+ public function getUUID(): UUID {
52561+ if (Obj6::validateUUID($this->uuid)) {
52562+ return $this->uuid;
5197552563 }
51976- throw new Exception('never get to getUnowned Unowned::unowned');
52564+ throw new Exception('never get to getUUID Obj6::uuid');
5197752565 }
5197852566
5197952567 /**
51980- * @return int
52568+ * @return UUID
5198152569 */
51982- public static function sampleUnowned(): int {
51983- return 31; /*31:unowned*/
52570+ public static function sampleUUID(): UUID {
52571+ return UUID::sample(); /*42:uuid*/
5198452572 }
5198552573
5198652574 /**
52575+ * @param stdClass $value
5198752576 * @throws Exception
51988- * @return bool
52577+ * @return VarClass
5198952578 */
51990- public function validate(): bool {
51991- return Unowned::validateUnowned($this->unowned);
52579+ public static function fromVar(stdClass $value): VarClass {
52580+ return VarClass::from($value); /*class*/
5199252581 }
5199352582
5199452583 /**
51995- * @return stdClass
5199652584 * @throws Exception
52585+ * @return stdClass
5199752586 */
51998- public function to(): stdClass {
51999- $out = new stdClass();
52000- $out->{'unowned'} = $this->toUnowned();
52001- return $out;
52587+ public function toVar(): stdClass {
52588+ if (Obj6::validateVar($this->var)) {
52589+ return $this->var->to(); /*class*/
52590+ }
52591+ throw new Exception('never get to this Obj6::var');
5200252592 }
5200352593
5200452594 /**
52005- * @param stdClass $obj
52006- * @return Unowned
52595+ * @param VarClass
52596+ * @return bool
5200752597 * @throws Exception
5200852598 */
52009- public static function from(stdClass $obj): Unowned {
52010- if (!property_exists($obj, 'unowned')) {
52011- throw new Exception("Missing required property");
52012- }
52013- return new Unowned(
52014- Unowned::fromUnowned($obj->{'unowned'})
52015- );
52599+ public static function validateVar(VarClass $value): bool {
52600+ $value->validate();
52601+ return true;
5201652602 }
5201752603
5201852604 /**
52019- * @return Unowned
52605+ * @throws Exception
52606+ * @return VarClass
5202052607 */
52021- public static function sample(): Unowned {
52022- return new Unowned(
52023- Unowned::sampleUnowned()
52024- );
52608+ public function getVar(): VarClass {
52609+ if (Obj6::validateVar($this->var)) {
52610+ return $this->var;
52611+ }
52612+ throw new Exception('never get to getVar Obj6::var');
5202552613 }
52026-}
52027-
52028-// This is an autogenerated file:Unsafe
52029-
52030-class Unsafe {
52031- private int $unsafe; // json:unsafe Required
5203252614
5203352615 /**
52034- * @param int $unsafe
52616+ * @return VarClass
5203552617 */
52036- public function __construct(int $unsafe) {
52037- $this->unsafe = $unsafe;
52618+ public static function sampleVar(): VarClass {
52619+ return VarClass::sample(); /*43:var*/
5203852620 }
5203952621
5204052622 /**
52041- * @param int $value
52623+ * @param stdClass $value
5204252624 * @throws Exception
52043- * @return int
52625+ * @return Virtual
5204452626 */
52045- public static function fromUnsafe(int $value): int {
52046- return $value; /*int*/
52627+ public static function fromVirtual(stdClass $value): Virtual {
52628+ return Virtual::from($value); /*class*/
5204752629 }
5204852630
5204952631 /**
5205052632 * @throws Exception
52051- * @return int
52633+ * @return stdClass
5205252634 */
52053- public function toUnsafe(): int {
52054- if (Unsafe::validateUnsafe($this->unsafe)) {
52055- return $this->unsafe; /*int*/
52635+ public function toVirtual(): stdClass {
52636+ if (Obj6::validateVirtual($this->virtual)) {
52637+ return $this->virtual->to(); /*class*/
5205652638 }
52057- throw new Exception('never get to this Unsafe::unsafe');
52639+ throw new Exception('never get to this Obj6::virtual');
5205852640 }
5205952641
5206052642 /**
52061- * @param int
52643+ * @param Virtual
5206252644 * @return bool
5206352645 * @throws Exception
5206452646 */
52065- public static function validateUnsafe(int $value): bool {
52647+ public static function validateVirtual(Virtual $value): bool {
52648+ $value->validate();
5206652649 return true;
5206752650 }
5206852651
5206952652 /**
5207052653 * @throws Exception
52071- * @return int
52654+ * @return Virtual
5207252655 */
52073- public function getUnsafe(): int {
52074- if (Unsafe::validateUnsafe($this->unsafe)) {
52075- return $this->unsafe;
52656+ public function getVirtual(): Virtual {
52657+ if (Obj6::validateVirtual($this->virtual)) {
52658+ return $this->virtual;
5207652659 }
52077- throw new Exception('never get to getUnsafe Unsafe::unsafe');
52660+ throw new Exception('never get to getVirtual Obj6::virtual');
5207852661 }
5207952662
5208052663 /**
52081- * @return int
52664+ * @return Virtual
5208252665 */
52083- public static function sampleUnsafe(): int {
52084- return 31; /*31:unsafe*/
52666+ public static function sampleVirtual(): Virtual {
52667+ return Virtual::sample(); /*44:virtual*/
5208552668 }
5208652669
5208752670 /**
52671+ * @param stdClass $value
5208852672 * @throws Exception
52089- * @return bool
52673+ * @return VoidClass
5209052674 */
52091- public function validate(): bool {
52092- return Unsafe::validateUnsafe($this->unsafe);
52675+ public static function fromVoid(stdClass $value): VoidClass {
52676+ return VoidClass::from($value); /*class*/
5209352677 }
5209452678
5209552679 /**
52096- * @return stdClass
5209752680 * @throws Exception
52681+ * @return stdClass
5209852682 */
52099- public function to(): stdClass {
52100- $out = new stdClass();
52101- $out->{'unsafe'} = $this->toUnsafe();
52102- return $out;
52683+ public function toVoid(): stdClass {
52684+ if (Obj6::validateVoid($this->void)) {
52685+ return $this->void->to(); /*class*/
52686+ }
52687+ throw new Exception('never get to this Obj6::void');
5210352688 }
5210452689
5210552690 /**
52106- * @param stdClass $obj
52107- * @return Unsafe
52691+ * @param VoidClass
52692+ * @return bool
5210852693 * @throws Exception
5210952694 */
52110- public static function from(stdClass $obj): Unsafe {
52111- if (!property_exists($obj, 'unsafe')) {
52112- throw new Exception("Missing required property");
52113- }
52114- return new Unsafe(
52115- Unsafe::fromUnsafe($obj->{'unsafe'})
52116- );
52695+ public static function validateVoid(VoidClass $value): bool {
52696+ $value->validate();
52697+ return true;
5211752698 }
5211852699
5211952700 /**
52120- * @return Unsafe
52701+ * @throws Exception
52702+ * @return VoidClass
5212152703 */
52122- public static function sample(): Unsafe {
52123- return new Unsafe(
52124- Unsafe::sampleUnsafe()
52125- );
52704+ public function getVoid(): VoidClass {
52705+ if (Obj6::validateVoid($this->void)) {
52706+ return $this->void;
52707+ }
52708+ throw new Exception('never get to getVoid Obj6::void');
5212652709 }
52127-}
52128-
52129-// This is an autogenerated file:UseSerializers
52130-
52131-class UseSerializers {
52132- private int $useSerializers; // json:UseSerializers Required
5213352710
5213452711 /**
52135- * @param int $useSerializers
52712+ * @return VoidClass
5213652713 */
52137- public function __construct(int $useSerializers) {
52138- $this->useSerializers = $useSerializers;
52714+ public static function sampleVoid(): VoidClass {
52715+ return VoidClass::sample(); /*45:void*/
5213952716 }
5214052717
5214152718 /**
52142- * @param int $value
52719+ * @param stdClass $value
5214352720 * @throws Exception
52144- * @return int
52721+ * @return Volatile
5214552722 */
52146- public static function fromUseSerializers(int $value): int {
52147- return $value; /*int*/
52723+ public static function fromVolatile(stdClass $value): Volatile {
52724+ return Volatile::from($value); /*class*/
5214852725 }
5214952726
5215052727 /**
5215152728 * @throws Exception
52152- * @return int
52729+ * @return stdClass
5215352730 */
52154- public function toUseSerializers(): int {
52155- if (UseSerializers::validateUseSerializers($this->useSerializers)) {
52156- return $this->useSerializers; /*int*/
52731+ public function toVolatile(): stdClass {
52732+ if (Obj6::validateVolatile($this->volatile)) {
52733+ return $this->volatile->to(); /*class*/
5215752734 }
52158- throw new Exception('never get to this UseSerializers::useSerializers');
52735+ throw new Exception('never get to this Obj6::volatile');
5215952736 }
5216052737
5216152738 /**
52162- * @param int
52739+ * @param Volatile
5216352740 * @return bool
5216452741 * @throws Exception
5216552742 */
52166- public static function validateUseSerializers(int $value): bool {
52743+ public static function validateVolatile(Volatile $value): bool {
52744+ $value->validate();
5216752745 return true;
5216852746 }
5216952747
5217052748 /**
5217152749 * @throws Exception
52172- * @return int
52750+ * @return Volatile
5217352751 */
52174- public function getUseSerializers(): int {
52175- if (UseSerializers::validateUseSerializers($this->useSerializers)) {
52176- return $this->useSerializers;
52752+ public function getVolatile(): Volatile {
52753+ if (Obj6::validateVolatile($this->volatile)) {
52754+ return $this->volatile;
5217752755 }
52178- throw new Exception('never get to getUseSerializers UseSerializers::useSerializers');
52179- }
52180-
52181- /**
52182- * @return int
52183- */
52184- public static function sampleUseSerializers(): int {
52185- return 31; /*31:useSerializers*/
52756+ throw new Exception('never get to getVolatile Obj6::volatile');
5218652757 }
5218752758
5218852759 /**
52189- * @throws Exception
52190- * @return bool
52760+ * @return Volatile
5219152761 */
52192- public function validate(): bool {
52193- return UseSerializers::validateUseSerializers($this->useSerializers);
52762+ public static function sampleVolatile(): Volatile {
52763+ return Volatile::sample(); /*46:volatile*/
5219452764 }
5219552765
5219652766 /**
52197- * @return stdClass
52767+ * @param stdClass $value
5219852768 * @throws Exception
52769+ * @return WcharT
5219952770 */
52200- public function to(): stdClass {
52201- $out = new stdClass();
52202- $out->{'UseSerializers'} = $this->toUseSerializers();
52203- return $out;
52771+ public static function fromWcharT(stdClass $value): WcharT {
52772+ return WcharT::from($value); /*class*/
5220452773 }
5220552774
5220652775 /**
52207- * @param stdClass $obj
52208- * @return UseSerializers
5220952776 * @throws Exception
52777+ * @return stdClass
5221052778 */
52211- public static function from(stdClass $obj): UseSerializers {
52212- if (!property_exists($obj, 'UseSerializers')) {
52213- throw new Exception("Missing required property");
52779+ public function toWcharT(): stdClass {
52780+ if (Obj6::validateWcharT($this->wcharT)) {
52781+ return $this->wcharT->to(); /*class*/
5221452782 }
52215- return new UseSerializers(
52216- UseSerializers::fromUseSerializers($obj->{'UseSerializers'})
52217- );
52218- }
52219-
52220- /**
52221- * @return UseSerializers
52222- */
52223- public static function sample(): UseSerializers {
52224- return new UseSerializers(
52225- UseSerializers::sampleUseSerializers()
52226- );
52783+ throw new Exception('never get to this Obj6::wcharT');
5222752784 }
52228-}
52229-
52230-// This is an autogenerated file:Obj6
52231-
52232-class Obj6 {
52233- private int $dummy; // json:dummy Required
52234- private Unsigned $unsigned; // json:unsigned Required
52235- private Ushort $ushort; // json:ushort Required
52236- private Using $using; // json:using Required
52237- private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
52238- private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
52239- private UUID $uuid; // json:UUID Required
52240- private VarClass $var; // json:var Required
52241- private Virtual $virtual; // json:virtual Required
52242- private VoidClass $void; // json:void Required
52243- private Volatile $volatile; // json:volatile Required
52244- private WcharT $wcharT; // json:wchar_t Required
52245- private Weak $weak; // json:weak Required
52246- private Where $where; // json:where Required
52247- private WhileClass $while; // json:while Required
52248- private WillSet $willSet; // json:willSet Required
52249- private With $with; // json:with Required
52250- private XorClass $xor; // json:xor Required
52251- private XorEq $xorEq; // json:xor_eq Required
52252- private Yes $yes; // json:YES Required
52253- private YieldClass $yield; // json:yield Required
5225452785
5225552786 /**
52256- * @param int $dummy
52257- * @param Unsigned $unsigned
52258- * @param Ushort $ushort
52259- * @param Using $using
52260- * @param Utf8JSONReader $utf8JSONReader
52261- * @param Utf8JSONWriter $utf8JSONWriter
52262- * @param UUID $uuid
52263- * @param VarClass $var
52264- * @param Virtual $virtual
52265- * @param VoidClass $void
52266- * @param Volatile $volatile
52267- * @param WcharT $wcharT
52268- * @param Weak $weak
52269- * @param Where $where
52270- * @param WhileClass $while
52271- * @param WillSet $willSet
52272- * @param With $with
52273- * @param XorClass $xor
52274- * @param XorEq $xorEq
52275- * @param Yes $yes
52276- * @param YieldClass $yield
52787+ * @param WcharT
52788+ * @return bool
52789+ * @throws Exception
5227752790 */
52278- 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) {
52279- $this->dummy = $dummy;
52280- $this->unsigned = $unsigned;
52281- $this->ushort = $ushort;
52282- $this->using = $using;
52283- $this->utf8JSONReader = $utf8JSONReader;
52284- $this->utf8JSONWriter = $utf8JSONWriter;
52285- $this->uuid = $uuid;
52286- $this->var = $var;
52287- $this->virtual = $virtual;
52288- $this->void = $void;
52289- $this->volatile = $volatile;
52290- $this->wcharT = $wcharT;
52291- $this->weak = $weak;
52292- $this->where = $where;
52293- $this->while = $while;
52294- $this->willSet = $willSet;
52295- $this->with = $with;
52296- $this->xor = $xor;
52297- $this->xorEq = $xorEq;
52298- $this->yes = $yes;
52299- $this->yield = $yield;
52791+ public static function validateWcharT(WcharT $value): bool {
52792+ $value->validate();
52793+ return true;
5230052794 }
5230152795
5230252796 /**
52303- * @param int $value
5230452797 * @throws Exception
52305- * @return int
52798+ * @return WcharT
5230652799 */
52307- public static function fromDummy(int $value): int {
52308- return $value; /*int*/
52800+ public function getWcharT(): WcharT {
52801+ if (Obj6::validateWcharT($this->wcharT)) {
52802+ return $this->wcharT;
52803+ }
52804+ throw new Exception('never get to getWcharT Obj6::wcharT');
52805+ }
52806+
52807+ /**
52808+ * @return WcharT
52809+ */
52810+ public static function sampleWcharT(): WcharT {
52811+ return WcharT::sample(); /*47:wcharT*/
5230952812 }
5231052813
5231152814 /**
52815+ * @param stdClass $value
5231252816 * @throws Exception
52313- * @return int
52817+ * @return Weak
5231452818 */
52315- public function toDummy(): int {
52316- if (Obj6::validateDummy($this->dummy)) {
52317- return $this->dummy; /*int*/
52819+ public static function fromWeak(stdClass $value): Weak {
52820+ return Weak::from($value); /*class*/
52821+ }
52822+
52823+ /**
52824+ * @throws Exception
52825+ * @return stdClass
52826+ */
52827+ public function toWeak(): stdClass {
52828+ if (Obj6::validateWeak($this->weak)) {
52829+ return $this->weak->to(); /*class*/
5231852830 }
52319- throw new Exception('never get to this Obj6::dummy');
52831+ throw new Exception('never get to this Obj6::weak');
5232052832 }
5232152833
5232252834 /**
52323- * @param int
52835+ * @param Weak
5232452836 * @return bool
5232552837 * @throws Exception
5232652838 */
52327- public static function validateDummy(int $value): bool {
52839+ public static function validateWeak(Weak $value): bool {
52840+ $value->validate();
5232852841 return true;
5232952842 }
5233052843
5233152844 /**
5233252845 * @throws Exception
52333- * @return int
52846+ * @return Weak
5233452847 */
52335- public function getDummy(): int {
52336- if (Obj6::validateDummy($this->dummy)) {
52337- return $this->dummy;
52848+ public function getWeak(): Weak {
52849+ if (Obj6::validateWeak($this->weak)) {
52850+ return $this->weak;
5233852851 }
52339- throw new Exception('never get to getDummy Obj6::dummy');
52852+ throw new Exception('never get to getWeak Obj6::weak');
5234052853 }
5234152854
5234252855 /**
52343- * @return int
52856+ * @return Weak
5234452857 */
52345- public static function sampleDummy(): int {
52346- return 31; /*31:dummy*/
52858+ public static function sampleWeak(): Weak {
52859+ return Weak::sample(); /*48:weak*/
5234752860 }
5234852861
5234952862 /**
5235052863 * @param stdClass $value
5235152864 * @throws Exception
52352- * @return Unsigned
52865+ * @return Where
5235352866 */
52354- public static function fromUnsigned(stdClass $value): Unsigned {
52355- return Unsigned::from($value); /*class*/
52867+ public static function fromWhere(stdClass $value): Where {
52868+ return Where::from($value); /*class*/
5235652869 }
5235752870
5235852871 /**
5235952872 * @throws Exception
5236052873 * @return stdClass
5236152874 */
52362- public function toUnsigned(): stdClass {
52363- if (Obj6::validateUnsigned($this->unsigned)) {
52364- return $this->unsigned->to(); /*class*/
52875+ public function toWhere(): stdClass {
52876+ if (Obj6::validateWhere($this->where)) {
52877+ return $this->where->to(); /*class*/
5236552878 }
52366- throw new Exception('never get to this Obj6::unsigned');
52879+ throw new Exception('never get to this Obj6::where');
5236752880 }
5236852881
5236952882 /**
52370- * @param Unsigned
52883+ * @param Where
5237152884 * @return bool
5237252885 * @throws Exception
5237352886 */
52374- public static function validateUnsigned(Unsigned $value): bool {
52887+ public static function validateWhere(Where $value): bool {
5237552888 $value->validate();
5237652889 return true;
5237752890 }
5237852891
5237952892 /**
5238052893 * @throws Exception
52381- * @return Unsigned
52894+ * @return Where
5238252895 */
52383- public function getUnsigned(): Unsigned {
52384- if (Obj6::validateUnsigned($this->unsigned)) {
52385- return $this->unsigned;
52896+ public function getWhere(): Where {
52897+ if (Obj6::validateWhere($this->where)) {
52898+ return $this->where;
5238652899 }
52387- throw new Exception('never get to getUnsigned Obj6::unsigned');
52900+ throw new Exception('never get to getWhere Obj6::where');
5238852901 }
5238952902
5239052903 /**
52391- * @return Unsigned
52904+ * @return Where
5239252905 */
52393- public static function sampleUnsigned(): Unsigned {
52394- return Unsigned::sample(); /*32:unsigned*/
52906+ public static function sampleWhere(): Where {
52907+ return Where::sample(); /*49:where*/
5239552908 }
5239652909
5239752910 /**
5239852911 * @param stdClass $value
5239952912 * @throws Exception
52400- * @return Ushort
52913+ * @return WhileClass
5240152914 */
52402- public static function fromUshort(stdClass $value): Ushort {
52403- return Ushort::from($value); /*class*/
52915+ public static function fromWhile(stdClass $value): WhileClass {
52916+ return WhileClass::from($value); /*class*/
5240452917 }
5240552918
5240652919 /**
5240752920 * @throws Exception
5240852921 * @return stdClass
5240952922 */
52410- public function toUshort(): stdClass {
52411- if (Obj6::validateUshort($this->ushort)) {
52412- return $this->ushort->to(); /*class*/
52923+ public function toWhile(): stdClass {
52924+ if (Obj6::validateWhile($this->while)) {
52925+ return $this->while->to(); /*class*/
5241352926 }
52414- throw new Exception('never get to this Obj6::ushort');
52927+ throw new Exception('never get to this Obj6::while');
5241552928 }
5241652929
5241752930 /**
52418- * @param Ushort
52931+ * @param WhileClass
5241952932 * @return bool
5242052933 * @throws Exception
5242152934 */
52422- public static function validateUshort(Ushort $value): bool {
52935+ public static function validateWhile(WhileClass $value): bool {
5242352936 $value->validate();
5242452937 return true;
5242552938 }
5242652939
5242752940 /**
5242852941 * @throws Exception
52429- * @return Ushort
52942+ * @return WhileClass
5243052943 */
52431- public function getUshort(): Ushort {
52432- if (Obj6::validateUshort($this->ushort)) {
52433- return $this->ushort;
52944+ public function getWhile(): WhileClass {
52945+ if (Obj6::validateWhile($this->while)) {
52946+ return $this->while;
5243452947 }
52435- throw new Exception('never get to getUshort Obj6::ushort');
52948+ throw new Exception('never get to getWhile Obj6::while');
5243652949 }
5243752950
5243852951 /**
52439- * @return Ushort
52952+ * @return WhileClass
5244052953 */
52441- public static function sampleUshort(): Ushort {
52442- return Ushort::sample(); /*33:ushort*/
52954+ public static function sampleWhile(): WhileClass {
52955+ return WhileClass::sample(); /*50:while*/
5244352956 }
5244452957
5244552958 /**
5244652959 * @param stdClass $value
5244752960 * @throws Exception
52448- * @return Using
52961+ * @return WillSet
5244952962 */
52450- public static function fromUsing(stdClass $value): Using {
52451- return Using::from($value); /*class*/
52963+ public static function fromWillSet(stdClass $value): WillSet {
52964+ return WillSet::from($value); /*class*/
5245252965 }
5245352966
5245452967 /**
5245552968 * @throws Exception
5245652969 * @return stdClass
5245752970 */
52458- public function toUsing(): stdClass {
52459- if (Obj6::validateUsing($this->using)) {
52460- return $this->using->to(); /*class*/
52971+ public function toWillSet(): stdClass {
52972+ if (Obj6::validateWillSet($this->willSet)) {
52973+ return $this->willSet->to(); /*class*/
5246152974 }
52462- throw new Exception('never get to this Obj6::using');
52975+ throw new Exception('never get to this Obj6::willSet');
5246352976 }
5246452977
5246552978 /**
52466- * @param Using
52979+ * @param WillSet
5246752980 * @return bool
5246852981 * @throws Exception
5246952982 */
52470- public static function validateUsing(Using $value): bool {
52983+ public static function validateWillSet(WillSet $value): bool {
5247152984 $value->validate();
5247252985 return true;
5247352986 }
5247452987
5247552988 /**
5247652989 * @throws Exception
52477- * @return Using
52990+ * @return WillSet
5247852991 */
52479- public function getUsing(): Using {
52480- if (Obj6::validateUsing($this->using)) {
52481- return $this->using;
52992+ public function getWillSet(): WillSet {
52993+ if (Obj6::validateWillSet($this->willSet)) {
52994+ return $this->willSet;
5248252995 }
52483- throw new Exception('never get to getUsing Obj6::using');
52996+ throw new Exception('never get to getWillSet Obj6::willSet');
5248452997 }
5248552998
5248652999 /**
52487- * @return Using
53000+ * @return WillSet
5248853001 */
52489- public static function sampleUsing(): Using {
52490- return Using::sample(); /*34:using*/
53002+ public static function sampleWillSet(): WillSet {
53003+ return WillSet::sample(); /*51:willSet*/
5249153004 }
5249253005
5249353006 /**
5249453007 * @param stdClass $value
5249553008 * @throws Exception
52496- * @return Utf8JSONReader
53009+ * @return With
5249753010 */
52498- public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
52499- return Utf8JSONReader::from($value); /*class*/
53011+ public static function fromWith(stdClass $value): With {
53012+ return With::from($value); /*class*/
5250053013 }
5250153014
5250253015 /**
5250353016 * @throws Exception
5250453017 * @return stdClass
5250553018 */
52506- public function toUtf8JSONReader(): stdClass {
52507- if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52508- return $this->utf8JSONReader->to(); /*class*/
53019+ public function toWith(): stdClass {
53020+ if (Obj6::validateWith($this->with)) {
53021+ return $this->with->to(); /*class*/
5250953022 }
52510- throw new Exception('never get to this Obj6::utf8JSONReader');
53023+ throw new Exception('never get to this Obj6::with');
5251153024 }
5251253025
5251353026 /**
52514- * @param Utf8JSONReader
53027+ * @param With
5251553028 * @return bool
5251653029 * @throws Exception
5251753030 */
52518- public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
53031+ public static function validateWith(With $value): bool {
5251953032 $value->validate();
5252053033 return true;
5252153034 }
5252253035
5252353036 /**
5252453037 * @throws Exception
52525- * @return Utf8JSONReader
53038+ * @return With
5252653039 */
52527- public function getUtf8JSONReader(): Utf8JSONReader {
52528- if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52529- return $this->utf8JSONReader;
53040+ public function getWith(): With {
53041+ if (Obj6::validateWith($this->with)) {
53042+ return $this->with;
5253053043 }
52531- throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader');
53044+ throw new Exception('never get to getWith Obj6::with');
5253253045 }
5253353046
5253453047 /**
52535- * @return Utf8JSONReader
53048+ * @return With
5253653049 */
52537- public static function sampleUtf8JSONReader(): Utf8JSONReader {
52538- return Utf8JSONReader::sample(); /*35:utf8JSONReader*/
53050+ public static function sampleWith(): With {
53051+ return With::sample(); /*52:with*/
5253953052 }
5254053053
5254153054 /**
5254253055 * @param stdClass $value
5254353056 * @throws Exception
52544- * @return Utf8JSONWriter
53057+ * @return XorClass
5254553058 */
52546- public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
52547- return Utf8JSONWriter::from($value); /*class*/
53059+ public static function fromXor(stdClass $value): XorClass {
53060+ return XorClass::from($value); /*class*/
5254853061 }
5254953062
5255053063 /**
5255153064 * @throws Exception
5255253065 * @return stdClass
5255353066 */
52554- public function toUtf8JSONWriter(): stdClass {
52555- if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52556- return $this->utf8JSONWriter->to(); /*class*/
53067+ public function toXor(): stdClass {
53068+ if (Obj6::validateXor($this->xor)) {
53069+ return $this->xor->to(); /*class*/
5255753070 }
52558- throw new Exception('never get to this Obj6::utf8JSONWriter');
53071+ throw new Exception('never get to this Obj6::xor');
5255953072 }
5256053073
5256153074 /**
52562- * @param Utf8JSONWriter
53075+ * @param XorClass
5256353076 * @return bool
5256453077 * @throws Exception
5256553078 */
52566- public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
53079+ public static function validateXor(XorClass $value): bool {
5256753080 $value->validate();
5256853081 return true;
5256953082 }
5257053083
5257153084 /**
5257253085 * @throws Exception
52573- * @return Utf8JSONWriter
53086+ * @return XorClass
5257453087 */
52575- public function getUtf8JSONWriter(): Utf8JSONWriter {
52576- if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52577- return $this->utf8JSONWriter;
53088+ public function getXor(): XorClass {
53089+ if (Obj6::validateXor($this->xor)) {
53090+ return $this->xor;
5257853091 }
52579- throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter');
53092+ throw new Exception('never get to getXor Obj6::xor');
5258053093 }
5258153094
5258253095 /**
52583- * @return Utf8JSONWriter
53096+ * @return XorClass
5258453097 */
52585- public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52586- return Utf8JSONWriter::sample(); /*36:utf8JSONWriter*/
53098+ public static function sampleXor(): XorClass {
53099+ return XorClass::sample(); /*53:xor*/
5258753100 }
5258853101
5258953102 /**
5259053103 * @param stdClass $value
5259153104 * @throws Exception
52592- * @return UUID
53105+ * @return XorEq
5259353106 */
52594- public static function fromUUID(stdClass $value): UUID {
52595- return UUID::from($value); /*class*/
53107+ public static function fromXorEq(stdClass $value): XorEq {
53108+ return XorEq::from($value); /*class*/
5259653109 }
5259753110
5259853111 /**
5259953112 * @throws Exception
5260053113 * @return stdClass
5260153114 */
52602- public function toUUID(): stdClass {
52603- if (Obj6::validateUUID($this->uuid)) {
52604- return $this->uuid->to(); /*class*/
53115+ public function toXorEq(): stdClass {
53116+ if (Obj6::validateXorEq($this->xorEq)) {
53117+ return $this->xorEq->to(); /*class*/
5260553118 }
52606- throw new Exception('never get to this Obj6::uuid');
53119+ throw new Exception('never get to this Obj6::xorEq');
5260753120 }
5260853121
5260953122 /**
52610- * @param UUID
53123+ * @param XorEq
5261153124 * @return bool
5261253125 * @throws Exception
5261353126 */
52614- public static function validateUUID(UUID $value): bool {
53127+ public static function validateXorEq(XorEq $value): bool {
5261553128 $value->validate();
5261653129 return true;
5261753130 }
5261853131
5261953132 /**
5262053133 * @throws Exception
52621- * @return UUID
53134+ * @return XorEq
5262253135 */
52623- public function getUUID(): UUID {
52624- if (Obj6::validateUUID($this->uuid)) {
52625- return $this->uuid;
53136+ public function getXorEq(): XorEq {
53137+ if (Obj6::validateXorEq($this->xorEq)) {
53138+ return $this->xorEq;
5262653139 }
52627- throw new Exception('never get to getUUID Obj6::uuid');
53140+ throw new Exception('never get to getXorEq Obj6::xorEq');
5262853141 }
5262953142
5263053143 /**
52631- * @return UUID
53144+ * @return XorEq
5263253145 */
52633- public static function sampleUUID(): UUID {
52634- return UUID::sample(); /*37:uuid*/
53146+ public static function sampleXorEq(): XorEq {
53147+ return XorEq::sample(); /*54:xorEq*/
5263553148 }
5263653149
5263753150 /**
5263853151 * @param stdClass $value
5263953152 * @throws Exception
52640- * @return VarClass
53153+ * @return Yes
5264153154 */
52642- public static function fromVar(stdClass $value): VarClass {
52643- return VarClass::from($value); /*class*/
53155+ public static function fromYes(stdClass $value): Yes {
53156+ return Yes::from($value); /*class*/
5264453157 }
5264553158
5264653159 /**
5264753160 * @throws Exception
5264853161 * @return stdClass
5264953162 */
52650- public function toVar(): stdClass {
52651- if (Obj6::validateVar($this->var)) {
52652- return $this->var->to(); /*class*/
53163+ public function toYes(): stdClass {
53164+ if (Obj6::validateYes($this->yes)) {
53165+ return $this->yes->to(); /*class*/
5265353166 }
52654- throw new Exception('never get to this Obj6::var');
53167+ throw new Exception('never get to this Obj6::yes');
5265553168 }
5265653169
5265753170 /**
52658- * @param VarClass
53171+ * @param Yes
5265953172 * @return bool
5266053173 * @throws Exception
5266153174 */
52662- public static function validateVar(VarClass $value): bool {
53175+ public static function validateYes(Yes $value): bool {
5266353176 $value->validate();
5266453177 return true;
5266553178 }
5266653179
5266753180 /**
5266853181 * @throws Exception
52669- * @return VarClass
53182+ * @return Yes
5267053183 */
52671- public function getVar(): VarClass {
52672- if (Obj6::validateVar($this->var)) {
52673- return $this->var;
53184+ public function getYes(): Yes {
53185+ if (Obj6::validateYes($this->yes)) {
53186+ return $this->yes;
5267453187 }
52675- throw new Exception('never get to getVar Obj6::var');
53188+ throw new Exception('never get to getYes Obj6::yes');
5267653189 }
5267753190
5267853191 /**
52679- * @return VarClass
53192+ * @return Yes
5268053193 */
52681- public static function sampleVar(): VarClass {
52682- return VarClass::sample(); /*38:var*/
53194+ public static function sampleYes(): Yes {
53195+ return Yes::sample(); /*55:yes*/
5268353196 }
5268453197
5268553198 /**
5268653199 * @param stdClass $value
5268753200 * @throws Exception
52688- * @return Virtual
53201+ * @return YieldClass
5268953202 */
52690- public static function fromVirtual(stdClass $value): Virtual {
52691- return Virtual::from($value); /*class*/
53203+ public static function fromYield(stdClass $value): YieldClass {
53204+ return YieldClass::from($value); /*class*/
5269253205 }
5269353206
5269453207 /**
5269553208 * @throws Exception
5269653209 * @return stdClass
5269753210 */
52698- public function toVirtual(): stdClass {
52699- if (Obj6::validateVirtual($this->virtual)) {
52700- return $this->virtual->to(); /*class*/
53211+ public function toYield(): stdClass {
53212+ if (Obj6::validateYield($this->yield)) {
53213+ return $this->yield->to(); /*class*/
5270153214 }
52702- throw new Exception('never get to this Obj6::virtual');
53215+ throw new Exception('never get to this Obj6::yield');
5270353216 }
5270453217
5270553218 /**
52706- * @param Virtual
53219+ * @param YieldClass
5270753220 * @return bool
5270853221 * @throws Exception
5270953222 */
52710- public static function validateVirtual(Virtual $value): bool {
53223+ public static function validateYield(YieldClass $value): bool {
5271153224 $value->validate();
5271253225 return true;
5271353226 }
5271453227
5271553228 /**
5271653229 * @throws Exception
52717- * @return Virtual
53230+ * @return YieldClass
5271853231 */
52719- public function getVirtual(): Virtual {
52720- if (Obj6::validateVirtual($this->virtual)) {
52721- return $this->virtual;
53232+ public function getYield(): YieldClass {
53233+ if (Obj6::validateYield($this->yield)) {
53234+ return $this->yield;
5272253235 }
52723- throw new Exception('never get to getVirtual Obj6::virtual');
53236+ throw new Exception('never get to getYield Obj6::yield');
5272453237 }
5272553238
5272653239 /**
52727- * @return Virtual
53240+ * @return YieldClass
5272853241 */
52729- public static function sampleVirtual(): Virtual {
52730- return Virtual::sample(); /*39:virtual*/
53242+ public static function sampleYield(): YieldClass {
53243+ return YieldClass::sample(); /*56:yield*/
5273153244 }
5273253245
5273353246 /**
52734- * @param stdClass $value
5273553247 * @throws Exception
52736- * @return VoidClass
53248+ * @return bool
5273753249 */
52738- public static function fromVoid(stdClass $value): VoidClass {
52739- return VoidClass::from($value); /*class*/
53250+ public function validate(): bool {
53251+ return Obj6::validateDummy($this->dummy)
53252+ || Obj6::validateUnion($this->union)
53253+ || Obj6::validateUnmarshalJSON($this->unmarshalJSON)
53254+ || Obj6::validateUnowned($this->unowned)
53255+ || Obj6::validateUnsafe($this->unsafe)
53256+ || Obj6::validateUnsigned($this->unsigned)
53257+ || Obj6::validateUseSerializers($this->useSerializers)
53258+ || Obj6::validateUshort($this->ushort)
53259+ || Obj6::validateUsing($this->using)
53260+ || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
53261+ || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
53262+ || Obj6::validateUUID($this->uuid)
53263+ || Obj6::validateVar($this->var)
53264+ || Obj6::validateVirtual($this->virtual)
53265+ || Obj6::validateVoid($this->void)
53266+ || Obj6::validateVolatile($this->volatile)
53267+ || Obj6::validateWcharT($this->wcharT)
53268+ || Obj6::validateWeak($this->weak)
53269+ || Obj6::validateWhere($this->where)
53270+ || Obj6::validateWhile($this->while)
53271+ || Obj6::validateWillSet($this->willSet)
53272+ || Obj6::validateWith($this->with)
53273+ || Obj6::validateXor($this->xor)
53274+ || Obj6::validateXorEq($this->xorEq)
53275+ || Obj6::validateYes($this->yes)
53276+ || Obj6::validateYield($this->yield);
5274053277 }
5274153278
5274253279 /**
52743- * @throws Exception
5274453280 * @return stdClass
52745- */
52746- public function toVoid(): stdClass {
52747- if (Obj6::validateVoid($this->void)) {
52748- return $this->void->to(); /*class*/
52749- }
52750- throw new Exception('never get to this Obj6::void');
52751- }
52752-
52753- /**
52754- * @param VoidClass
52755- * @return bool
5275653281 * @throws Exception
5275753282 */
52758- public static function validateVoid(VoidClass $value): bool {
52759- $value->validate();
52760- return true;
53283+ public function to(): stdClass {
53284+ $out = new stdClass();
53285+ $out->{'dummy'} = $this->toDummy();
53286+ $out->{'union'} = $this->toUnion();
53287+ $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON();
53288+ $out->{'unowned'} = $this->toUnowned();
53289+ $out->{'unsafe'} = $this->toUnsafe();
53290+ $out->{'unsigned'} = $this->toUnsigned();
53291+ $out->{'UseSerializers'} = $this->toUseSerializers();
53292+ $out->{'ushort'} = $this->toUshort();
53293+ $out->{'using'} = $this->toUsing();
53294+ $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
53295+ $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
53296+ $out->{'UUID'} = $this->toUUID();
53297+ $out->{'var'} = $this->toVar();
53298+ $out->{'virtual'} = $this->toVirtual();
53299+ $out->{'void'} = $this->toVoid();
53300+ $out->{'volatile'} = $this->toVolatile();
53301+ $out->{'wchar_t'} = $this->toWcharT();
53302+ $out->{'weak'} = $this->toWeak();
53303+ $out->{'where'} = $this->toWhere();
53304+ $out->{'while'} = $this->toWhile();
53305+ $out->{'willSet'} = $this->toWillSet();
53306+ $out->{'with'} = $this->toWith();
53307+ $out->{'xor'} = $this->toXor();
53308+ $out->{'xor_eq'} = $this->toXorEq();
53309+ $out->{'YES'} = $this->toYes();
53310+ $out->{'yield'} = $this->toYield();
53311+ return $out;
5276153312 }
5276253313
5276353314 /**
53315+ * @param stdClass $obj
53316+ * @return Obj6
5276453317 * @throws Exception
52765- * @return VoidClass
5276653318 */
52767- public function getVoid(): VoidClass {
52768- if (Obj6::validateVoid($this->void)) {
52769- return $this->void;
53319+ public static function from(stdClass $obj): Obj6 {
53320+ if (!property_exists($obj, 'dummy')) {
53321+ throw new Exception("Missing required property");
53322+ }
53323+ if (!property_exists($obj, 'union')) {
53324+ throw new Exception("Missing required property");
53325+ }
53326+ if (!property_exists($obj, 'UnmarshalJSON')) {
53327+ throw new Exception("Missing required property");
53328+ }
53329+ if (!property_exists($obj, 'unowned')) {
53330+ throw new Exception("Missing required property");
53331+ }
53332+ if (!property_exists($obj, 'unsafe')) {
53333+ throw new Exception("Missing required property");
53334+ }
53335+ if (!property_exists($obj, 'unsigned')) {
53336+ throw new Exception("Missing required property");
53337+ }
53338+ if (!property_exists($obj, 'UseSerializers')) {
53339+ throw new Exception("Missing required property");
53340+ }
53341+ if (!property_exists($obj, 'ushort')) {
53342+ throw new Exception("Missing required property");
53343+ }
53344+ if (!property_exists($obj, 'using')) {
53345+ throw new Exception("Missing required property");
53346+ }
53347+ if (!property_exists($obj, 'Utf8JsonReader')) {
53348+ throw new Exception("Missing required property");
53349+ }
53350+ if (!property_exists($obj, 'Utf8JsonWriter')) {
53351+ throw new Exception("Missing required property");
53352+ }
53353+ if (!property_exists($obj, 'UUID')) {
53354+ throw new Exception("Missing required property");
53355+ }
53356+ if (!property_exists($obj, 'var')) {
53357+ throw new Exception("Missing required property");
53358+ }
53359+ if (!property_exists($obj, 'virtual')) {
53360+ throw new Exception("Missing required property");
53361+ }
53362+ if (!property_exists($obj, 'void')) {
53363+ throw new Exception("Missing required property");
53364+ }
53365+ if (!property_exists($obj, 'volatile')) {
53366+ throw new Exception("Missing required property");
53367+ }
53368+ if (!property_exists($obj, 'wchar_t')) {
53369+ throw new Exception("Missing required property");
53370+ }
53371+ if (!property_exists($obj, 'weak')) {
53372+ throw new Exception("Missing required property");
53373+ }
53374+ if (!property_exists($obj, 'where')) {
53375+ throw new Exception("Missing required property");
53376+ }
53377+ if (!property_exists($obj, 'while')) {
53378+ throw new Exception("Missing required property");
53379+ }
53380+ if (!property_exists($obj, 'willSet')) {
53381+ throw new Exception("Missing required property");
53382+ }
53383+ if (!property_exists($obj, 'with')) {
53384+ throw new Exception("Missing required property");
53385+ }
53386+ if (!property_exists($obj, 'xor')) {
53387+ throw new Exception("Missing required property");
53388+ }
53389+ if (!property_exists($obj, 'xor_eq')) {
53390+ throw new Exception("Missing required property");
53391+ }
53392+ if (!property_exists($obj, 'YES')) {
53393+ throw new Exception("Missing required property");
53394+ }
53395+ if (!property_exists($obj, 'yield')) {
53396+ throw new Exception("Missing required property");
5277053397 }
52771- throw new Exception('never get to getVoid Obj6::void');
52772- }
52773-
52774- /**
52775- * @return VoidClass
52776- */
52777- public static function sampleVoid(): VoidClass {
52778- return VoidClass::sample(); /*40:void*/
52779- }
52780-
52781- /**
52782- * @param stdClass $value
52783- * @throws Exception
52784- * @return Volatile
52785- */
52786- public static function fromVolatile(stdClass $value): Volatile {
52787- return Volatile::from($value); /*class*/
53398+ return new Obj6(
53399+ Obj6::fromDummy($obj->{'dummy'})
53400+ ,Obj6::fromUnion($obj->{'union'})
53401+ ,Obj6::fromUnmarshalJSON($obj->{'UnmarshalJSON'})
53402+ ,Obj6::fromUnowned($obj->{'unowned'})
53403+ ,Obj6::fromUnsafe($obj->{'unsafe'})
53404+ ,Obj6::fromUnsigned($obj->{'unsigned'})
53405+ ,Obj6::fromUseSerializers($obj->{'UseSerializers'})
53406+ ,Obj6::fromUshort($obj->{'ushort'})
53407+ ,Obj6::fromUsing($obj->{'using'})
53408+ ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53409+ ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53410+ ,Obj6::fromUUID($obj->{'UUID'})
53411+ ,Obj6::fromVar($obj->{'var'})
53412+ ,Obj6::fromVirtual($obj->{'virtual'})
53413+ ,Obj6::fromVoid($obj->{'void'})
53414+ ,Obj6::fromVolatile($obj->{'volatile'})
53415+ ,Obj6::fromWcharT($obj->{'wchar_t'})
53416+ ,Obj6::fromWeak($obj->{'weak'})
53417+ ,Obj6::fromWhere($obj->{'where'})
53418+ ,Obj6::fromWhile($obj->{'while'})
53419+ ,Obj6::fromWillSet($obj->{'willSet'})
53420+ ,Obj6::fromWith($obj->{'with'})
53421+ ,Obj6::fromXor($obj->{'xor'})
53422+ ,Obj6::fromXorEq($obj->{'xor_eq'})
53423+ ,Obj6::fromYes($obj->{'YES'})
53424+ ,Obj6::fromYield($obj->{'yield'})
53425+ );
5278853426 }
5278953427
5279053428 /**
52791- * @throws Exception
52792- * @return stdClass
53429+ * @return Obj6
5279353430 */
52794- public function toVolatile(): stdClass {
52795- if (Obj6::validateVolatile($this->volatile)) {
52796- return $this->volatile->to(); /*class*/
52797- }
52798- throw new Exception('never get to this Obj6::volatile');
53431+ public static function sample(): Obj6 {
53432+ return new Obj6(
53433+ Obj6::sampleDummy()
53434+ ,Obj6::sampleUnion()
53435+ ,Obj6::sampleUnmarshalJSON()
53436+ ,Obj6::sampleUnowned()
53437+ ,Obj6::sampleUnsafe()
53438+ ,Obj6::sampleUnsigned()
53439+ ,Obj6::sampleUseSerializers()
53440+ ,Obj6::sampleUshort()
53441+ ,Obj6::sampleUsing()
53442+ ,Obj6::sampleUtf8JSONReader()
53443+ ,Obj6::sampleUtf8JSONWriter()
53444+ ,Obj6::sampleUUID()
53445+ ,Obj6::sampleVar()
53446+ ,Obj6::sampleVirtual()
53447+ ,Obj6::sampleVoid()
53448+ ,Obj6::sampleVolatile()
53449+ ,Obj6::sampleWcharT()
53450+ ,Obj6::sampleWeak()
53451+ ,Obj6::sampleWhere()
53452+ ,Obj6::sampleWhile()
53453+ ,Obj6::sampleWillSet()
53454+ ,Obj6::sampleWith()
53455+ ,Obj6::sampleXor()
53456+ ,Obj6::sampleXorEq()
53457+ ,Obj6::sampleYes()
53458+ ,Obj6::sampleYield()
53459+ );
5279953460 }
53461+}
5280053462
52801- /**
52802- * @param Volatile
52803- * @return bool
52804- * @throws Exception
52805- */
52806- public static function validateVolatile(Volatile $value): bool {
52807- $value->validate();
52808- return true;
52809- }
53463+// This is an autogenerated file:Union
5281053464
52811- /**
52812- * @throws Exception
52813- * @return Volatile
52814- */
52815- public function getVolatile(): Volatile {
52816- if (Obj6::validateVolatile($this->volatile)) {
52817- return $this->volatile;
52818- }
52819- throw new Exception('never get to getVolatile Obj6::volatile');
52820- }
53465+class Union {
53466+ private int $union; // json:union Required
5282153467
5282253468 /**
52823- * @return Volatile
53469+ * @param int $union
5282453470 */
52825- public static function sampleVolatile(): Volatile {
52826- return Volatile::sample(); /*41:volatile*/
53471+ public function __construct(int $union) {
53472+ $this->union = $union;
5282753473 }
5282853474
5282953475 /**
52830- * @param stdClass $value
53476+ * @param int $value
5283153477 * @throws Exception
52832- * @return WcharT
53478+ * @return int
5283353479 */
52834- public static function fromWcharT(stdClass $value): WcharT {
52835- return WcharT::from($value); /*class*/
53480+ public static function fromUnion(int $value): int {
53481+ return $value; /*int*/
5283653482 }
5283753483
5283853484 /**
5283953485 * @throws Exception
52840- * @return stdClass
53486+ * @return int
5284153487 */
52842- public function toWcharT(): stdClass {
52843- if (Obj6::validateWcharT($this->wcharT)) {
52844- return $this->wcharT->to(); /*class*/
53488+ public function toUnion(): int {
53489+ if (Union::validateUnion($this->union)) {
53490+ return $this->union; /*int*/
5284553491 }
52846- throw new Exception('never get to this Obj6::wcharT');
53492+ throw new Exception('never get to this Union::union');
5284753493 }
5284853494
5284953495 /**
52850- * @param WcharT
53496+ * @param int
5285153497 * @return bool
5285253498 * @throws Exception
5285353499 */
52854- public static function validateWcharT(WcharT $value): bool {
52855- $value->validate();
53500+ public static function validateUnion(int $value): bool {
5285653501 return true;
5285753502 }
5285853503
5285953504 /**
5286053505 * @throws Exception
52861- * @return WcharT
53506+ * @return int
5286253507 */
52863- public function getWcharT(): WcharT {
52864- if (Obj6::validateWcharT($this->wcharT)) {
52865- return $this->wcharT;
53508+ public function getUnion(): int {
53509+ if (Union::validateUnion($this->union)) {
53510+ return $this->union;
5286653511 }
52867- throw new Exception('never get to getWcharT Obj6::wcharT');
53512+ throw new Exception('never get to getUnion Union::union');
5286853513 }
5286953514
5287053515 /**
52871- * @return WcharT
53516+ * @return int
5287253517 */
52873- public static function sampleWcharT(): WcharT {
52874- return WcharT::sample(); /*42:wcharT*/
53518+ public static function sampleUnion(): int {
53519+ return 31; /*31:union*/
5287553520 }
5287653521
5287753522 /**
52878- * @param stdClass $value
5287953523 * @throws Exception
52880- * @return Weak
53524+ * @return bool
5288153525 */
52882- public static function fromWeak(stdClass $value): Weak {
52883- return Weak::from($value); /*class*/
53526+ public function validate(): bool {
53527+ return Union::validateUnion($this->union);
5288453528 }
5288553529
5288653530 /**
52887- * @throws Exception
5288853531 * @return stdClass
52889- */
52890- public function toWeak(): stdClass {
52891- if (Obj6::validateWeak($this->weak)) {
52892- return $this->weak->to(); /*class*/
52893- }
52894- throw new Exception('never get to this Obj6::weak');
52895- }
52896-
52897- /**
52898- * @param Weak
52899- * @return bool
5290053532 * @throws Exception
5290153533 */
52902- public static function validateWeak(Weak $value): bool {
52903- $value->validate();
52904- return true;
53534+ public function to(): stdClass {
53535+ $out = new stdClass();
53536+ $out->{'union'} = $this->toUnion();
53537+ return $out;
5290553538 }
5290653539
5290753540 /**
53541+ * @param stdClass $obj
53542+ * @return Union
5290853543 * @throws Exception
52909- * @return Weak
5291053544 */
52911- public function getWeak(): Weak {
52912- if (Obj6::validateWeak($this->weak)) {
52913- return $this->weak;
53545+ public static function from(stdClass $obj): Union {
53546+ if (!property_exists($obj, 'union')) {
53547+ throw new Exception("Missing required property");
5291453548 }
52915- throw new Exception('never get to getWeak Obj6::weak');
52916- }
52917-
52918- /**
52919- * @return Weak
52920- */
52921- public static function sampleWeak(): Weak {
52922- return Weak::sample(); /*43:weak*/
52923- }
52924-
52925- /**
52926- * @param stdClass $value
52927- * @throws Exception
52928- * @return Where
52929- */
52930- public static function fromWhere(stdClass $value): Where {
52931- return Where::from($value); /*class*/
53549+ return new Union(
53550+ Union::fromUnion($obj->{'union'})
53551+ );
5293253552 }
5293353553
5293453554 /**
52935- * @throws Exception
52936- * @return stdClass
53555+ * @return Union
5293753556 */
52938- public function toWhere(): stdClass {
52939- if (Obj6::validateWhere($this->where)) {
52940- return $this->where->to(); /*class*/
52941- }
52942- throw new Exception('never get to this Obj6::where');
53557+ public static function sample(): Union {
53558+ return new Union(
53559+ Union::sampleUnion()
53560+ );
5294353561 }
53562+}
5294453563
52945- /**
52946- * @param Where
52947- * @return bool
52948- * @throws Exception
52949- */
52950- public static function validateWhere(Where $value): bool {
52951- $value->validate();
52952- return true;
52953- }
53564+// This is an autogenerated file:UnmarshalJSON
5295453565
52955- /**
52956- * @throws Exception
52957- * @return Where
52958- */
52959- public function getWhere(): Where {
52960- if (Obj6::validateWhere($this->where)) {
52961- return $this->where;
52962- }
52963- throw new Exception('never get to getWhere Obj6::where');
52964- }
53566+class UnmarshalJSON {
53567+ private int $unmarshalJSON; // json:UnmarshalJSON Required
5296553568
5296653569 /**
52967- * @return Where
53570+ * @param int $unmarshalJSON
5296853571 */
52969- public static function sampleWhere(): Where {
52970- return Where::sample(); /*44:where*/
53572+ public function __construct(int $unmarshalJSON) {
53573+ $this->unmarshalJSON = $unmarshalJSON;
5297153574 }
5297253575
5297353576 /**
52974- * @param stdClass $value
53577+ * @param int $value
5297553578 * @throws Exception
52976- * @return WhileClass
53579+ * @return int
5297753580 */
52978- public static function fromWhile(stdClass $value): WhileClass {
52979- return WhileClass::from($value); /*class*/
53581+ public static function fromUnmarshalJSON(int $value): int {
53582+ return $value; /*int*/
5298053583 }
5298153584
5298253585 /**
5298353586 * @throws Exception
52984- * @return stdClass
53587+ * @return int
5298553588 */
52986- public function toWhile(): stdClass {
52987- if (Obj6::validateWhile($this->while)) {
52988- return $this->while->to(); /*class*/
53589+ public function toUnmarshalJSON(): int {
53590+ if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) {
53591+ return $this->unmarshalJSON; /*int*/
5298953592 }
52990- throw new Exception('never get to this Obj6::while');
53593+ throw new Exception('never get to this UnmarshalJSON::unmarshalJSON');
5299153594 }
5299253595
5299353596 /**
52994- * @param WhileClass
53597+ * @param int
5299553598 * @return bool
5299653599 * @throws Exception
52997- */
52998- public static function validateWhile(WhileClass $value): bool {
52999- $value->validate();
53600+ */
53601+ public static function validateUnmarshalJSON(int $value): bool {
5300053602 return true;
5300153603 }
5300253604
5300353605 /**
5300453606 * @throws Exception
53005- * @return WhileClass
53607+ * @return int
5300653608 */
53007- public function getWhile(): WhileClass {
53008- if (Obj6::validateWhile($this->while)) {
53009- return $this->while;
53609+ public function getUnmarshalJSON(): int {
53610+ if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) {
53611+ return $this->unmarshalJSON;
5301053612 }
53011- throw new Exception('never get to getWhile Obj6::while');
53613+ throw new Exception('never get to getUnmarshalJSON UnmarshalJSON::unmarshalJSON');
5301253614 }
5301353615
5301453616 /**
53015- * @return WhileClass
53617+ * @return int
5301653618 */
53017- public static function sampleWhile(): WhileClass {
53018- return WhileClass::sample(); /*45:while*/
53619+ public static function sampleUnmarshalJSON(): int {
53620+ return 31; /*31:unmarshalJSON*/
5301953621 }
5302053622
5302153623 /**
53022- * @param stdClass $value
5302353624 * @throws Exception
53024- * @return WillSet
53625+ * @return bool
5302553626 */
53026- public static function fromWillSet(stdClass $value): WillSet {
53027- return WillSet::from($value); /*class*/
53627+ public function validate(): bool {
53628+ return UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON);
5302853629 }
5302953630
5303053631 /**
53031- * @throws Exception
5303253632 * @return stdClass
53633+ * @throws Exception
5303353634 */
53034- public function toWillSet(): stdClass {
53035- if (Obj6::validateWillSet($this->willSet)) {
53036- return $this->willSet->to(); /*class*/
53037- }
53038- throw new Exception('never get to this Obj6::willSet');
53635+ public function to(): stdClass {
53636+ $out = new stdClass();
53637+ $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON();
53638+ return $out;
5303953639 }
5304053640
5304153641 /**
53042- * @param WillSet
53043- * @return bool
53642+ * @param stdClass $obj
53643+ * @return UnmarshalJSON
5304453644 * @throws Exception
5304553645 */
53046- public static function validateWillSet(WillSet $value): bool {
53047- $value->validate();
53048- return true;
53646+ public static function from(stdClass $obj): UnmarshalJSON {
53647+ if (!property_exists($obj, 'UnmarshalJSON')) {
53648+ throw new Exception("Missing required property");
53649+ }
53650+ return new UnmarshalJSON(
53651+ UnmarshalJSON::fromUnmarshalJSON($obj->{'UnmarshalJSON'})
53652+ );
5304953653 }
5305053654
5305153655 /**
53052- * @throws Exception
53053- * @return WillSet
53656+ * @return UnmarshalJSON
5305453657 */
53055- public function getWillSet(): WillSet {
53056- if (Obj6::validateWillSet($this->willSet)) {
53057- return $this->willSet;
53058- }
53059- throw new Exception('never get to getWillSet Obj6::willSet');
53658+ public static function sample(): UnmarshalJSON {
53659+ return new UnmarshalJSON(
53660+ UnmarshalJSON::sampleUnmarshalJSON()
53661+ );
5306053662 }
53663+}
53664+
53665+// This is an autogenerated file:Unowned
53666+
53667+class Unowned {
53668+ private int $unowned; // json:unowned Required
5306153669
5306253670 /**
53063- * @return WillSet
53671+ * @param int $unowned
5306453672 */
53065- public static function sampleWillSet(): WillSet {
53066- return WillSet::sample(); /*46:willSet*/
53673+ public function __construct(int $unowned) {
53674+ $this->unowned = $unowned;
5306753675 }
5306853676
5306953677 /**
53070- * @param stdClass $value
53678+ * @param int $value
5307153679 * @throws Exception
53072- * @return With
53680+ * @return int
5307353681 */
53074- public static function fromWith(stdClass $value): With {
53075- return With::from($value); /*class*/
53682+ public static function fromUnowned(int $value): int {
53683+ return $value; /*int*/
5307653684 }
5307753685
5307853686 /**
5307953687 * @throws Exception
53080- * @return stdClass
53688+ * @return int
5308153689 */
53082- public function toWith(): stdClass {
53083- if (Obj6::validateWith($this->with)) {
53084- return $this->with->to(); /*class*/
53690+ public function toUnowned(): int {
53691+ if (Unowned::validateUnowned($this->unowned)) {
53692+ return $this->unowned; /*int*/
5308553693 }
53086- throw new Exception('never get to this Obj6::with');
53694+ throw new Exception('never get to this Unowned::unowned');
5308753695 }
5308853696
5308953697 /**
53090- * @param With
53698+ * @param int
5309153699 * @return bool
5309253700 * @throws Exception
5309353701 */
53094- public static function validateWith(With $value): bool {
53095- $value->validate();
53702+ public static function validateUnowned(int $value): bool {
5309653703 return true;
5309753704 }
5309853705
5309953706 /**
5310053707 * @throws Exception
53101- * @return With
53708+ * @return int
5310253709 */
53103- public function getWith(): With {
53104- if (Obj6::validateWith($this->with)) {
53105- return $this->with;
53710+ public function getUnowned(): int {
53711+ if (Unowned::validateUnowned($this->unowned)) {
53712+ return $this->unowned;
5310653713 }
53107- throw new Exception('never get to getWith Obj6::with');
53714+ throw new Exception('never get to getUnowned Unowned::unowned');
5310853715 }
5310953716
5311053717 /**
53111- * @return With
53718+ * @return int
5311253719 */
53113- public static function sampleWith(): With {
53114- return With::sample(); /*47:with*/
53720+ public static function sampleUnowned(): int {
53721+ return 31; /*31:unowned*/
5311553722 }
5311653723
5311753724 /**
53118- * @param stdClass $value
5311953725 * @throws Exception
53120- * @return XorClass
53726+ * @return bool
5312153727 */
53122- public static function fromXor(stdClass $value): XorClass {
53123- return XorClass::from($value); /*class*/
53728+ public function validate(): bool {
53729+ return Unowned::validateUnowned($this->unowned);
5312453730 }
5312553731
5312653732 /**
53127- * @throws Exception
5312853733 * @return stdClass
53734+ * @throws Exception
5312953735 */
53130- public function toXor(): stdClass {
53131- if (Obj6::validateXor($this->xor)) {
53132- return $this->xor->to(); /*class*/
53133- }
53134- throw new Exception('never get to this Obj6::xor');
53736+ public function to(): stdClass {
53737+ $out = new stdClass();
53738+ $out->{'unowned'} = $this->toUnowned();
53739+ return $out;
5313553740 }
5313653741
5313753742 /**
53138- * @param XorClass
53139- * @return bool
53743+ * @param stdClass $obj
53744+ * @return Unowned
5314053745 * @throws Exception
5314153746 */
53142- public static function validateXor(XorClass $value): bool {
53143- $value->validate();
53144- return true;
53747+ public static function from(stdClass $obj): Unowned {
53748+ if (!property_exists($obj, 'unowned')) {
53749+ throw new Exception("Missing required property");
53750+ }
53751+ return new Unowned(
53752+ Unowned::fromUnowned($obj->{'unowned'})
53753+ );
5314553754 }
5314653755
5314753756 /**
53148- * @throws Exception
53149- * @return XorClass
53757+ * @return Unowned
5315053758 */
53151- public function getXor(): XorClass {
53152- if (Obj6::validateXor($this->xor)) {
53153- return $this->xor;
53154- }
53155- throw new Exception('never get to getXor Obj6::xor');
53759+ public static function sample(): Unowned {
53760+ return new Unowned(
53761+ Unowned::sampleUnowned()
53762+ );
5315653763 }
53764+}
53765+
53766+// This is an autogenerated file:Unsafe
53767+
53768+class Unsafe {
53769+ private int $unsafe; // json:unsafe Required
5315753770
5315853771 /**
53159- * @return XorClass
53772+ * @param int $unsafe
5316053773 */
53161- public static function sampleXor(): XorClass {
53162- return XorClass::sample(); /*48:xor*/
53774+ public function __construct(int $unsafe) {
53775+ $this->unsafe = $unsafe;
5316353776 }
5316453777
5316553778 /**
53166- * @param stdClass $value
53779+ * @param int $value
5316753780 * @throws Exception
53168- * @return XorEq
53781+ * @return int
5316953782 */
53170- public static function fromXorEq(stdClass $value): XorEq {
53171- return XorEq::from($value); /*class*/
53783+ public static function fromUnsafe(int $value): int {
53784+ return $value; /*int*/
5317253785 }
5317353786
5317453787 /**
5317553788 * @throws Exception
53176- * @return stdClass
53789+ * @return int
5317753790 */
53178- public function toXorEq(): stdClass {
53179- if (Obj6::validateXorEq($this->xorEq)) {
53180- return $this->xorEq->to(); /*class*/
53791+ public function toUnsafe(): int {
53792+ if (Unsafe::validateUnsafe($this->unsafe)) {
53793+ return $this->unsafe; /*int*/
5318153794 }
53182- throw new Exception('never get to this Obj6::xorEq');
53795+ throw new Exception('never get to this Unsafe::unsafe');
5318353796 }
5318453797
5318553798 /**
53186- * @param XorEq
53799+ * @param int
5318753800 * @return bool
5318853801 * @throws Exception
5318953802 */
53190- public static function validateXorEq(XorEq $value): bool {
53191- $value->validate();
53803+ public static function validateUnsafe(int $value): bool {
5319253804 return true;
5319353805 }
5319453806
5319553807 /**
5319653808 * @throws Exception
53197- * @return XorEq
53809+ * @return int
5319853810 */
53199- public function getXorEq(): XorEq {
53200- if (Obj6::validateXorEq($this->xorEq)) {
53201- return $this->xorEq;
53811+ public function getUnsafe(): int {
53812+ if (Unsafe::validateUnsafe($this->unsafe)) {
53813+ return $this->unsafe;
5320253814 }
53203- throw new Exception('never get to getXorEq Obj6::xorEq');
53815+ throw new Exception('never get to getUnsafe Unsafe::unsafe');
5320453816 }
5320553817
5320653818 /**
53207- * @return XorEq
53819+ * @return int
5320853820 */
53209- public static function sampleXorEq(): XorEq {
53210- return XorEq::sample(); /*49:xorEq*/
53821+ public static function sampleUnsafe(): int {
53822+ return 31; /*31:unsafe*/
5321153823 }
5321253824
5321353825 /**
53214- * @param stdClass $value
5321553826 * @throws Exception
53216- * @return Yes
53827+ * @return bool
5321753828 */
53218- public static function fromYes(stdClass $value): Yes {
53219- return Yes::from($value); /*class*/
53829+ public function validate(): bool {
53830+ return Unsafe::validateUnsafe($this->unsafe);
5322053831 }
5322153832
5322253833 /**
53223- * @throws Exception
5322453834 * @return stdClass
53835+ * @throws Exception
5322553836 */
53226- public function toYes(): stdClass {
53227- if (Obj6::validateYes($this->yes)) {
53228- return $this->yes->to(); /*class*/
53229- }
53230- throw new Exception('never get to this Obj6::yes');
53837+ public function to(): stdClass {
53838+ $out = new stdClass();
53839+ $out->{'unsafe'} = $this->toUnsafe();
53840+ return $out;
5323153841 }
5323253842
5323353843 /**
53234- * @param Yes
53235- * @return bool
53844+ * @param stdClass $obj
53845+ * @return Unsafe
5323653846 * @throws Exception
5323753847 */
53238- public static function validateYes(Yes $value): bool {
53239- $value->validate();
53240- return true;
53848+ public static function from(stdClass $obj): Unsafe {
53849+ if (!property_exists($obj, 'unsafe')) {
53850+ throw new Exception("Missing required property");
53851+ }
53852+ return new Unsafe(
53853+ Unsafe::fromUnsafe($obj->{'unsafe'})
53854+ );
5324153855 }
5324253856
5324353857 /**
53244- * @throws Exception
53245- * @return Yes
53858+ * @return Unsafe
5324653859 */
53247- public function getYes(): Yes {
53248- if (Obj6::validateYes($this->yes)) {
53249- return $this->yes;
53250- }
53251- throw new Exception('never get to getYes Obj6::yes');
53860+ public static function sample(): Unsafe {
53861+ return new Unsafe(
53862+ Unsafe::sampleUnsafe()
53863+ );
5325253864 }
53865+}
53866+
53867+// This is an autogenerated file:Unsigned
53868+
53869+class Unsigned {
53870+ private int $unsigned; // json:unsigned Required
5325353871
5325453872 /**
53255- * @return Yes
53873+ * @param int $unsigned
5325653874 */
53257- public static function sampleYes(): Yes {
53258- return Yes::sample(); /*50:yes*/
53875+ public function __construct(int $unsigned) {
53876+ $this->unsigned = $unsigned;
5325953877 }
5326053878
5326153879 /**
53262- * @param stdClass $value
53880+ * @param int $value
5326353881 * @throws Exception
53264- * @return YieldClass
53882+ * @return int
5326553883 */
53266- public static function fromYield(stdClass $value): YieldClass {
53267- return YieldClass::from($value); /*class*/
53884+ public static function fromUnsigned(int $value): int {
53885+ return $value; /*int*/
5326853886 }
5326953887
5327053888 /**
5327153889 * @throws Exception
53272- * @return stdClass
53890+ * @return int
5327353891 */
53274- public function toYield(): stdClass {
53275- if (Obj6::validateYield($this->yield)) {
53276- return $this->yield->to(); /*class*/
53892+ public function toUnsigned(): int {
53893+ if (Unsigned::validateUnsigned($this->unsigned)) {
53894+ return $this->unsigned; /*int*/
5327753895 }
53278- throw new Exception('never get to this Obj6::yield');
53896+ throw new Exception('never get to this Unsigned::unsigned');
5327953897 }
5328053898
5328153899 /**
53282- * @param YieldClass
53900+ * @param int
5328353901 * @return bool
5328453902 * @throws Exception
5328553903 */
53286- public static function validateYield(YieldClass $value): bool {
53287- $value->validate();
53904+ public static function validateUnsigned(int $value): bool {
5328853905 return true;
5328953906 }
5329053907
5329153908 /**
5329253909 * @throws Exception
53293- * @return YieldClass
53910+ * @return int
5329453911 */
53295- public function getYield(): YieldClass {
53296- if (Obj6::validateYield($this->yield)) {
53297- return $this->yield;
53912+ public function getUnsigned(): int {
53913+ if (Unsigned::validateUnsigned($this->unsigned)) {
53914+ return $this->unsigned;
5329853915 }
53299- throw new Exception('never get to getYield Obj6::yield');
53916+ throw new Exception('never get to getUnsigned Unsigned::unsigned');
5330053917 }
5330153918
5330253919 /**
53303- * @return YieldClass
53920+ * @return int
5330453921 */
53305- public static function sampleYield(): YieldClass {
53306- return YieldClass::sample(); /*51:yield*/
53922+ public static function sampleUnsigned(): int {
53923+ return 31; /*31:unsigned*/
5330753924 }
5330853925
5330953926 /**
@@ -53311,27 +53928,7 @@ class Obj6 {
5331153928 * @return bool
5331253929 */
5331353930 public function validate(): bool {
53314- return Obj6::validateDummy($this->dummy)
53315- || Obj6::validateUnsigned($this->unsigned)
53316- || Obj6::validateUshort($this->ushort)
53317- || Obj6::validateUsing($this->using)
53318- || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
53319- || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
53320- || Obj6::validateUUID($this->uuid)
53321- || Obj6::validateVar($this->var)
53322- || Obj6::validateVirtual($this->virtual)
53323- || Obj6::validateVoid($this->void)
53324- || Obj6::validateVolatile($this->volatile)
53325- || Obj6::validateWcharT($this->wcharT)
53326- || Obj6::validateWeak($this->weak)
53327- || Obj6::validateWhere($this->where)
53328- || Obj6::validateWhile($this->while)
53329- || Obj6::validateWillSet($this->willSet)
53330- || Obj6::validateWith($this->with)
53331- || Obj6::validateXor($this->xor)
53332- || Obj6::validateXorEq($this->xorEq)
53333- || Obj6::validateYes($this->yes)
53334- || Obj6::validateYield($this->yield);
53931+ return Unsigned::validateUnsigned($this->unsigned);
5333553932 }
5333653933
5333753934 /**
@@ -53340,164 +53937,44 @@ class Obj6 {
5334053937 */
5334153938 public function to(): stdClass {
5334253939 $out = new stdClass();
53343- $out->{'dummy'} = $this->toDummy();
5334453940 $out->{'unsigned'} = $this->toUnsigned();
53345- $out->{'ushort'} = $this->toUshort();
53346- $out->{'using'} = $this->toUsing();
53347- $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
53348- $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
53349- $out->{'UUID'} = $this->toUUID();
53350- $out->{'var'} = $this->toVar();
53351- $out->{'virtual'} = $this->toVirtual();
53352- $out->{'void'} = $this->toVoid();
53353- $out->{'volatile'} = $this->toVolatile();
53354- $out->{'wchar_t'} = $this->toWcharT();
53355- $out->{'weak'} = $this->toWeak();
53356- $out->{'where'} = $this->toWhere();
53357- $out->{'while'} = $this->toWhile();
53358- $out->{'willSet'} = $this->toWillSet();
53359- $out->{'with'} = $this->toWith();
53360- $out->{'xor'} = $this->toXor();
53361- $out->{'xor_eq'} = $this->toXorEq();
53362- $out->{'YES'} = $this->toYes();
53363- $out->{'yield'} = $this->toYield();
5336453941 return $out;
5336553942 }
5336653943
5336753944 /**
5336853945 * @param stdClass $obj
53369- * @return Obj6
53946+ * @return Unsigned
5337053947 * @throws Exception
5337153948 */
53372- public static function from(stdClass $obj): Obj6 {
53373- if (!property_exists($obj, 'dummy')) {
53374- throw new Exception("Missing required property");
53375- }
53949+ public static function from(stdClass $obj): Unsigned {
5337653950 if (!property_exists($obj, 'unsigned')) {
5337753951 throw new Exception("Missing required property");
5337853952 }
53379- if (!property_exists($obj, 'ushort')) {
53380- throw new Exception("Missing required property");
53381- }
53382- if (!property_exists($obj, 'using')) {
53383- throw new Exception("Missing required property");
53384- }
53385- if (!property_exists($obj, 'Utf8JsonReader')) {
53386- throw new Exception("Missing required property");
53387- }
53388- if (!property_exists($obj, 'Utf8JsonWriter')) {
53389- throw new Exception("Missing required property");
53390- }
53391- if (!property_exists($obj, 'UUID')) {
53392- throw new Exception("Missing required property");
53393- }
53394- if (!property_exists($obj, 'var')) {
53395- throw new Exception("Missing required property");
53396- }
53397- if (!property_exists($obj, 'virtual')) {
53398- throw new Exception("Missing required property");
53399- }
53400- if (!property_exists($obj, 'void')) {
53401- throw new Exception("Missing required property");
53402- }
53403- if (!property_exists($obj, 'volatile')) {
53404- throw new Exception("Missing required property");
53405- }
53406- if (!property_exists($obj, 'wchar_t')) {
53407- throw new Exception("Missing required property");
53408- }
53409- if (!property_exists($obj, 'weak')) {
53410- throw new Exception("Missing required property");
53411- }
53412- if (!property_exists($obj, 'where')) {
53413- throw new Exception("Missing required property");
53414- }
53415- if (!property_exists($obj, 'while')) {
53416- throw new Exception("Missing required property");
53417- }
53418- if (!property_exists($obj, 'willSet')) {
53419- throw new Exception("Missing required property");
53420- }
53421- if (!property_exists($obj, 'with')) {
53422- throw new Exception("Missing required property");
53423- }
53424- if (!property_exists($obj, 'xor')) {
53425- throw new Exception("Missing required property");
53426- }
53427- if (!property_exists($obj, 'xor_eq')) {
53428- throw new Exception("Missing required property");
53429- }
53430- if (!property_exists($obj, 'YES')) {
53431- throw new Exception("Missing required property");
53432- }
53433- if (!property_exists($obj, 'yield')) {
53434- throw new Exception("Missing required property");
53435- }
53436- return new Obj6(
53437- Obj6::fromDummy($obj->{'dummy'})
53438- ,Obj6::fromUnsigned($obj->{'unsigned'})
53439- ,Obj6::fromUshort($obj->{'ushort'})
53440- ,Obj6::fromUsing($obj->{'using'})
53441- ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53442- ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53443- ,Obj6::fromUUID($obj->{'UUID'})
53444- ,Obj6::fromVar($obj->{'var'})
53445- ,Obj6::fromVirtual($obj->{'virtual'})
53446- ,Obj6::fromVoid($obj->{'void'})
53447- ,Obj6::fromVolatile($obj->{'volatile'})
53448- ,Obj6::fromWcharT($obj->{'wchar_t'})
53449- ,Obj6::fromWeak($obj->{'weak'})
53450- ,Obj6::fromWhere($obj->{'where'})
53451- ,Obj6::fromWhile($obj->{'while'})
53452- ,Obj6::fromWillSet($obj->{'willSet'})
53453- ,Obj6::fromWith($obj->{'with'})
53454- ,Obj6::fromXor($obj->{'xor'})
53455- ,Obj6::fromXorEq($obj->{'xor_eq'})
53456- ,Obj6::fromYes($obj->{'YES'})
53457- ,Obj6::fromYield($obj->{'yield'})
53953+ return new Unsigned(
53954+ Unsigned::fromUnsigned($obj->{'unsigned'})
5345853955 );
5345953956 }
5346053957
5346153958 /**
53462- * @return Obj6
53959+ * @return Unsigned
5346353960 */
53464- public static function sample(): Obj6 {
53465- return new Obj6(
53466- Obj6::sampleDummy()
53467- ,Obj6::sampleUnsigned()
53468- ,Obj6::sampleUshort()
53469- ,Obj6::sampleUsing()
53470- ,Obj6::sampleUtf8JSONReader()
53471- ,Obj6::sampleUtf8JSONWriter()
53472- ,Obj6::sampleUUID()
53473- ,Obj6::sampleVar()
53474- ,Obj6::sampleVirtual()
53475- ,Obj6::sampleVoid()
53476- ,Obj6::sampleVolatile()
53477- ,Obj6::sampleWcharT()
53478- ,Obj6::sampleWeak()
53479- ,Obj6::sampleWhere()
53480- ,Obj6::sampleWhile()
53481- ,Obj6::sampleWillSet()
53482- ,Obj6::sampleWith()
53483- ,Obj6::sampleXor()
53484- ,Obj6::sampleXorEq()
53485- ,Obj6::sampleYes()
53486- ,Obj6::sampleYield()
53961+ public static function sample(): Unsigned {
53962+ return new Unsigned(
53963+ Unsigned::sampleUnsigned()
5348753964 );
5348853965 }
5348953966 }
5349053967
53491-// This is an autogenerated file:Unsigned
53968+// This is an autogenerated file:UseSerializers
5349253969
53493-class Unsigned {
53494- private int $unsigned; // json:unsigned Required
53970+class UseSerializers {
53971+ private int $useSerializers; // json:UseSerializers Required
5349553972
5349653973 /**
53497- * @param int $unsigned
53974+ * @param int $useSerializers
5349853975 */
53499- public function __construct(int $unsigned) {
53500- $this->unsigned = $unsigned;
53976+ public function __construct(int $useSerializers) {
53977+ $this->useSerializers = $useSerializers;
5350153978 }
5350253979
5350353980 /**
@@ -53505,7 +53982,7 @@ class Unsigned {
5350553982 * @throws Exception
5350653983 * @return int
5350753984 */
53508- public static function fromUnsigned(int $value): int {
53985+ public static function fromUseSerializers(int $value): int {
5350953986 return $value; /*int*/
5351053987 }
5351153988
@@ -53513,11 +53990,11 @@ class Unsigned {
5351353990 * @throws Exception
5351453991 * @return int
5351553992 */
53516- public function toUnsigned(): int {
53517- if (Unsigned::validateUnsigned($this->unsigned)) {
53518- return $this->unsigned; /*int*/
53993+ public function toUseSerializers(): int {
53994+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
53995+ return $this->useSerializers; /*int*/
5351953996 }
53520- throw new Exception('never get to this Unsigned::unsigned');
53997+ throw new Exception('never get to this UseSerializers::useSerializers');
5352153998 }
5352253999
5352354000 /**
@@ -53525,7 +54002,7 @@ class Unsigned {
5352554002 * @return bool
5352654003 * @throws Exception
5352754004 */
53528- public static function validateUnsigned(int $value): bool {
54005+ public static function validateUseSerializers(int $value): bool {
5352954006 return true;
5353054007 }
5353154008
@@ -53533,18 +54010,18 @@ class Unsigned {
5353354010 * @throws Exception
5353454011 * @return int
5353554012 */
53536- public function getUnsigned(): int {
53537- if (Unsigned::validateUnsigned($this->unsigned)) {
53538- return $this->unsigned;
54013+ public function getUseSerializers(): int {
54014+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
54015+ return $this->useSerializers;
5353954016 }
53540- throw new Exception('never get to getUnsigned Unsigned::unsigned');
54017+ throw new Exception('never get to getUseSerializers UseSerializers::useSerializers');
5354154018 }
5354254019
5354354020 /**
5354454021 * @return int
5354554022 */
53546- public static function sampleUnsigned(): int {
53547- return 31; /*31:unsigned*/
54023+ public static function sampleUseSerializers(): int {
54024+ return 31; /*31:useSerializers*/
5354854025 }
5354954026
5355054027 /**
@@ -53552,7 +54029,7 @@ class Unsigned {
5355254029 * @return bool
5355354030 */
5355454031 public function validate(): bool {
53555- return Unsigned::validateUnsigned($this->unsigned);
54032+ return UseSerializers::validateUseSerializers($this->useSerializers);
5355654033 }
5355754034
5355854035 /**
@@ -53561,30 +54038,30 @@ class Unsigned {
5356154038 */
5356254039 public function to(): stdClass {
5356354040 $out = new stdClass();
53564- $out->{'unsigned'} = $this->toUnsigned();
54041+ $out->{'UseSerializers'} = $this->toUseSerializers();
5356554042 return $out;
5356654043 }
5356754044
5356854045 /**
5356954046 * @param stdClass $obj
53570- * @return Unsigned
54047+ * @return UseSerializers
5357154048 * @throws Exception
5357254049 */
53573- public static function from(stdClass $obj): Unsigned {
53574- if (!property_exists($obj, 'unsigned')) {
54050+ public static function from(stdClass $obj): UseSerializers {
54051+ if (!property_exists($obj, 'UseSerializers')) {
5357554052 throw new Exception("Missing required property");
5357654053 }
53577- return new Unsigned(
53578- Unsigned::fromUnsigned($obj->{'unsigned'})
54054+ return new UseSerializers(
54055+ UseSerializers::fromUseSerializers($obj->{'UseSerializers'})
5357954056 );
5358054057 }
5358154058
5358254059 /**
53583- * @return Unsigned
54060+ * @return UseSerializers
5358454061 */
53585- public static function sample(): Unsigned {
53586- return new Unsigned(
53587- Unsigned::sampleUnsigned()
54062+ public static function sample(): UseSerializers {
54063+ return new UseSerializers(
54064+ UseSerializers::sampleUseSerializers()
5358854065 );
5358954066 }
5359054067 }
Mpikedefault / TopLevel.pmod+350 −275
@@ -3352,6 +3352,7 @@ class Obj3 {
33523352 Left left; // json: "left"
33533353 Let let; // json: "let"
33543354 List list; // json: "list"
3355+ LocalDate local_date; // json: "LocalDate"
33553356 Locale locale; // json: "Locale"
33563357 Lock lock; // json: "lock"
33573358 Long long; // json: "long"
@@ -3366,8 +3367,6 @@ class Obj3 {
33663367 Native native; // json: "native"
33673368 New new; // json: "new"
33683369 Newtonsoft newtonsoft; // json: "newtonsoft"
3369- Nil nil; // json: "nil"
3370- No no; // json: "NO"
33713370 If obj3_if; // json: "if"
33723371 Import obj3_import; // json: "import"
33733372 Inline obj3_inline; // json: "inline"
@@ -3421,6 +3420,7 @@ class Obj3 {
34213420 "left" : left,
34223421 "let" : let,
34233422 "list" : list,
3423+ "LocalDate" : local_date,
34243424 "Locale" : locale,
34253425 "lock" : lock,
34263426 "long" : long,
@@ -3435,8 +3435,6 @@ class Obj3 {
34353435 "native" : native,
34363436 "new" : new,
34373437 "newtonsoft" : newtonsoft,
3438- "nil" : nil,
3439- "NO" : no,
34403438 "if" : obj3_if,
34413439 "import" : obj3_import,
34423440 "inline" : obj3_inline,
@@ -3541,6 +3539,8 @@ Obj3 Obj3_from_JSON(mixed json) {
35413539 retval.let = json["let"];
35423540 if (!mappingp(json["list"])) error("Expected object");
35433541 retval.list = json["list"];
3542+ if (!mappingp(json["LocalDate"])) error("Expected object");
3543+ retval.local_date = json["LocalDate"];
35443544 if (!mappingp(json["Locale"])) error("Expected object");
35453545 retval.locale = json["Locale"];
35463546 if (!mappingp(json["lock"])) error("Expected object");
@@ -3569,10 +3569,6 @@ Obj3 Obj3_from_JSON(mixed json) {
35693569 retval.new = json["new"];
35703570 if (!mappingp(json["newtonsoft"])) error("Expected object");
35713571 retval.newtonsoft = json["newtonsoft"];
3572- if (!mappingp(json["nil"])) error("Expected object");
3573- retval.nil = json["nil"];
3574- if (!mappingp(json["NO"])) error("Expected object");
3575- retval.no = json["NO"];
35763572 if (!mappingp(json["if"])) error("Expected object");
35773573 retval.obj3_if = json["if"];
35783574 if (!mappingp(json["import"])) error("Expected object");
@@ -4510,6 +4506,27 @@ List List_from_JSON(mixed json) {
45104506 return retval;
45114507 }
45124508
4509+class LocalDate {
4510+ int local_date; // json: "LocalDate"
4511+
4512+ string encode_json() {
4513+ mapping(string:mixed) json = ([
4514+ "LocalDate" : local_date,
4515+ ]);
4516+
4517+ return Standards.JSON.encode(json);
4518+ }
4519+}
4520+
4521+LocalDate LocalDate_from_JSON(mixed json) {
4522+ LocalDate retval = LocalDate();
4523+
4524+ if (!intp(json["LocalDate"])) error("Expected integer");
4525+ retval.local_date = json["LocalDate"];
4526+
4527+ return retval;
4528+}
4529+
45134530 class Locale {
45144531 int locale; // json: "Locale"
45154532
@@ -4804,48 +4821,6 @@ Newtonsoft Newtonsoft_from_JSON(mixed json) {
48044821 return retval;
48054822 }
48064823
4807-class Nil {
4808- int nil; // json: "nil"
4809-
4810- string encode_json() {
4811- mapping(string:mixed) json = ([
4812- "nil" : nil,
4813- ]);
4814-
4815- return Standards.JSON.encode(json);
4816- }
4817-}
4818-
4819-Nil Nil_from_JSON(mixed json) {
4820- Nil retval = Nil();
4821-
4822- if (!intp(json["nil"])) error("Expected integer");
4823- retval.nil = json["nil"];
4824-
4825- return retval;
4826-}
4827-
4828-class No {
4829- int no; // json: "NO"
4830-
4831- string encode_json() {
4832- mapping(string:mixed) json = ([
4833- "NO" : no,
4834- ]);
4835-
4836- return Standards.JSON.encode(json);
4837- }
4838-}
4839-
4840-No No_from_JSON(mixed json) {
4841- No retval = No();
4842-
4843- if (!intp(json["NO"])) error("Expected integer");
4844- retval.no = json["NO"];
4845-
4846- return retval;
4847-}
4848-
48494824 class If {
48504825 int if_if; // json: "if"
48514826
@@ -4953,6 +4928,8 @@ Lambda Lambda_from_JSON(mixed json) {
49534928
49544929 class Obj4 {
49554930 int dummy; // json: "dummy"
4931+ Nil nil; // json: "nil"
4932+ No no; // json: "NO"
49564933 NoSuchMethod no_such_method; // json: "noSuchMethod"
49574934 Noexcept noexcept; // json: "noexcept"
49584935 Nonatomic nonatomic; // json: "nonatomic"
@@ -4978,6 +4955,8 @@ class Obj4 {
49784955 Return obj4_return; // json: "return"
49794956 ObjectMapper object_mapper; // json: "ObjectMapper"
49804957 Of of; // json: "of"
4958+ OffsetDateTime offset_date_time; // json: "OffsetDateTime"
4959+ OffsetTime offset_time; // json: "OffsetTime"
49814960 Oneway oneway; // json: "oneway"
49824961 Open open; // json: "open"
49834962 Operator operator; // json: "operator"
@@ -5013,14 +4992,12 @@ class Obj4 {
50134992 Rethrows rethrows; // json: "rethrows"
50144993 Right right; // json: "right"
50154994 RuntimeType runtime_type; // json: "runtimeType"
5016- S s; // json: "s"
5017- Sbyte sbyte; // json: "sbyte"
5018- Sealed sealed; // json: "sealed"
5019- Sel sel; // json: "SEL"
50204995
50214996 string encode_json() {
50224997 mapping(string:mixed) json = ([
50234998 "dummy" : dummy,
4999+ "nil" : nil,
5000+ "NO" : no,
50245001 "noSuchMethod" : no_such_method,
50255002 "noexcept" : noexcept,
50265003 "nonatomic" : nonatomic,
@@ -5046,6 +5023,8 @@ class Obj4 {
50465023 "return" : obj4_return,
50475024 "ObjectMapper" : object_mapper,
50485025 "of" : of,
5026+ "OffsetDateTime" : offset_date_time,
5027+ "OffsetTime" : offset_time,
50495028 "oneway" : oneway,
50505029 "open" : open,
50515030 "operator" : operator,
@@ -5081,10 +5060,6 @@ class Obj4 {
50815060 "rethrows" : rethrows,
50825061 "right" : right,
50835062 "runtimeType" : runtime_type,
5084- "s" : s,
5085- "sbyte" : sbyte,
5086- "sealed" : sealed,
5087- "SEL" : sel,
50885063 ]);
50895064
50905065 return Standards.JSON.encode(json);
@@ -5096,6 +5071,10 @@ Obj4 Obj4_from_JSON(mixed json) {
50965071
50975072 if (!intp(json["dummy"])) error("Expected integer");
50985073 retval.dummy = json["dummy"];
5074+ if (!mappingp(json["nil"])) error("Expected object");
5075+ retval.nil = json["nil"];
5076+ if (!mappingp(json["NO"])) error("Expected object");
5077+ retval.no = json["NO"];
50995078 if (!mappingp(json["noSuchMethod"])) error("Expected object");
51005079 retval.no_such_method = json["noSuchMethod"];
51015080 if (!mappingp(json["noexcept"])) error("Expected object");
@@ -5146,6 +5125,10 @@ Obj4 Obj4_from_JSON(mixed json) {
51465125 retval.object_mapper = json["ObjectMapper"];
51475126 if (!mappingp(json["of"])) error("Expected object");
51485127 retval.of = json["of"];
5128+ if (!mappingp(json["OffsetDateTime"])) error("Expected object");
5129+ retval.offset_date_time = json["OffsetDateTime"];
5130+ if (!mappingp(json["OffsetTime"])) error("Expected object");
5131+ retval.offset_time = json["OffsetTime"];
51495132 if (!mappingp(json["oneway"])) error("Expected object");
51505133 retval.oneway = json["oneway"];
51515134 if (!mappingp(json["open"])) error("Expected object");
@@ -5216,14 +5199,48 @@ Obj4 Obj4_from_JSON(mixed json) {
52165199 retval.right = json["right"];
52175200 if (!mappingp(json["runtimeType"])) error("Expected object");
52185201 retval.runtime_type = json["runtimeType"];
5219- if (!mappingp(json["s"])) error("Expected object");
5220- retval.s = json["s"];
5221- if (!mappingp(json["sbyte"])) error("Expected object");
5222- retval.sbyte = json["sbyte"];
5223- if (!mappingp(json["sealed"])) error("Expected object");
5224- retval.sealed = json["sealed"];
5225- if (!mappingp(json["SEL"])) error("Expected object");
5226- retval.sel = json["SEL"];
5202+
5203+ return retval;
5204+}
5205+
5206+class Nil {
5207+ int nil; // json: "nil"
5208+
5209+ string encode_json() {
5210+ mapping(string:mixed) json = ([
5211+ "nil" : nil,
5212+ ]);
5213+
5214+ return Standards.JSON.encode(json);
5215+ }
5216+}
5217+
5218+Nil Nil_from_JSON(mixed json) {
5219+ Nil retval = Nil();
5220+
5221+ if (!intp(json["nil"])) error("Expected integer");
5222+ retval.nil = json["nil"];
5223+
5224+ return retval;
5225+}
5226+
5227+class No {
5228+ int no; // json: "NO"
5229+
5230+ string encode_json() {
5231+ mapping(string:mixed) json = ([
5232+ "NO" : no,
5233+ ]);
5234+
5235+ return Standards.JSON.encode(json);
5236+ }
5237+}
5238+
5239+No No_from_JSON(mixed json) {
5240+ No retval = No();
5241+
5242+ if (!intp(json["NO"])) error("Expected integer");
5243+ retval.no = json["NO"];
52275244
52285245 return retval;
52295246 }
@@ -5753,6 +5770,48 @@ Of Of_from_JSON(mixed json) {
57535770 return retval;
57545771 }
57555772
5773+class OffsetDateTime {
5774+ int offset_date_time; // json: "OffsetDateTime"
5775+
5776+ string encode_json() {
5777+ mapping(string:mixed) json = ([
5778+ "OffsetDateTime" : offset_date_time,
5779+ ]);
5780+
5781+ return Standards.JSON.encode(json);
5782+ }
5783+}
5784+
5785+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5786+ OffsetDateTime retval = OffsetDateTime();
5787+
5788+ if (!intp(json["OffsetDateTime"])) error("Expected integer");
5789+ retval.offset_date_time = json["OffsetDateTime"];
5790+
5791+ return retval;
5792+}
5793+
5794+class OffsetTime {
5795+ int offset_time; // json: "OffsetTime"
5796+
5797+ string encode_json() {
5798+ mapping(string:mixed) json = ([
5799+ "OffsetTime" : offset_time,
5800+ ]);
5801+
5802+ return Standards.JSON.encode(json);
5803+ }
5804+}
5805+
5806+OffsetTime OffsetTime_from_JSON(mixed json) {
5807+ OffsetTime retval = OffsetTime();
5808+
5809+ if (!intp(json["OffsetTime"])) error("Expected integer");
5810+ retval.offset_time = json["OffsetTime"];
5811+
5812+ return retval;
5813+}
5814+
57565815 class Oneway {
57575816 int oneway; // json: "oneway"
57585817
@@ -6487,90 +6546,6 @@ RuntimeType RuntimeType_from_JSON(mixed json) {
64876546 return retval;
64886547 }
64896548
6490-class S {
6491- int s; // json: "s"
6492-
6493- string encode_json() {
6494- mapping(string:mixed) json = ([
6495- "s" : s,
6496- ]);
6497-
6498- return Standards.JSON.encode(json);
6499- }
6500-}
6501-
6502-S S_from_JSON(mixed json) {
6503- S retval = S();
6504-
6505- if (!intp(json["s"])) error("Expected integer");
6506- retval.s = json["s"];
6507-
6508- return retval;
6509-}
6510-
6511-class Sbyte {
6512- int sbyte; // json: "sbyte"
6513-
6514- string encode_json() {
6515- mapping(string:mixed) json = ([
6516- "sbyte" : sbyte,
6517- ]);
6518-
6519- return Standards.JSON.encode(json);
6520- }
6521-}
6522-
6523-Sbyte Sbyte_from_JSON(mixed json) {
6524- Sbyte retval = Sbyte();
6525-
6526- if (!intp(json["sbyte"])) error("Expected integer");
6527- retval.sbyte = json["sbyte"];
6528-
6529- return retval;
6530-}
6531-
6532-class Sealed {
6533- int sealed; // json: "sealed"
6534-
6535- string encode_json() {
6536- mapping(string:mixed) json = ([
6537- "sealed" : sealed,
6538- ]);
6539-
6540- return Standards.JSON.encode(json);
6541- }
6542-}
6543-
6544-Sealed Sealed_from_JSON(mixed json) {
6545- Sealed retval = Sealed();
6546-
6547- if (!intp(json["sealed"])) error("Expected integer");
6548- retval.sealed = json["sealed"];
6549-
6550- return retval;
6551-}
6552-
6553-class Sel {
6554- int sel; // json: "SEL"
6555-
6556- string encode_json() {
6557- mapping(string:mixed) json = ([
6558- "SEL" : sel,
6559- ]);
6560-
6561- return Standards.JSON.encode(json);
6562- }
6563-}
6564-
6565-Sel Sel_from_JSON(mixed json) {
6566- Sel retval = Sel();
6567-
6568- if (!intp(json["SEL"])) error("Expected integer");
6569- retval.sel = json["SEL"];
6570-
6571- return retval;
6572-}
6573-
65746549 class Obj5 {
65756550 int dummy; // json: "dummy"
65766551 KSerializer k_serializer; // json: "KSerializer"
@@ -6583,6 +6558,10 @@ class Obj5 {
65836558 Typedef obj5_typedef; // json: "typedef"
65846559 Typeof obj5_typeof; // json: "typeof"
65856560 PrimitiveKind primitive_kind; // json: "PrimitiveKind"
6561+ S s; // json: "s"
6562+ Sbyte sbyte; // json: "sbyte"
6563+ Sealed sealed; // json: "sealed"
6564+ Sel sel; // json: "SEL"
65866565 Select select; // json: "select"
65876566 Self self; // json: "Self"
65886567 Sendable sendable; // json: "Sendable"
@@ -6633,11 +6612,6 @@ class Obj5 {
66336612 Ulong ulong; // json: "ulong"
66346613 Unchecked unchecked; // json: "unchecked"
66356614 Undefined undefined; // json: "undefined"
6636- Union union; // json: "union"
6637- UnmarshalJson unmarshal_json; // json: "UnmarshalJSON"
6638- Unowned unowned; // json: "unowned"
6639- Unsafe unsafe; // json: "unsafe"
6640- UseSerializers use_serializers; // json: "UseSerializers"
66416615
66426616 string encode_json() {
66436617 mapping(string:mixed) json = ([
@@ -6652,6 +6626,10 @@ class Obj5 {
66526626 "typedef" : obj5_typedef,
66536627 "typeof" : obj5_typeof,
66546628 "PrimitiveKind" : primitive_kind,
6629+ "s" : s,
6630+ "sbyte" : sbyte,
6631+ "sealed" : sealed,
6632+ "SEL" : sel,
66556633 "select" : select,
66566634 "Self" : self,
66576635 "Sendable" : sendable,
@@ -6702,11 +6680,6 @@ class Obj5 {
67026680 "ulong" : ulong,
67036681 "unchecked" : unchecked,
67046682 "undefined" : undefined,
6705- "union" : union,
6706- "UnmarshalJSON" : unmarshal_json,
6707- "unowned" : unowned,
6708- "unsafe" : unsafe,
6709- "UseSerializers" : use_serializers,
67106683 ]);
67116684
67126685 return Standards.JSON.encode(json);
@@ -6738,6 +6711,14 @@ Obj5 Obj5_from_JSON(mixed json) {
67386711 retval.obj5_typeof = json["typeof"];
67396712 if (!mappingp(json["PrimitiveKind"])) error("Expected object");
67406713 retval.primitive_kind = json["PrimitiveKind"];
6714+ if (!mappingp(json["s"])) error("Expected object");
6715+ retval.s = json["s"];
6716+ if (!mappingp(json["sbyte"])) error("Expected object");
6717+ retval.sbyte = json["sbyte"];
6718+ if (!mappingp(json["sealed"])) error("Expected object");
6719+ retval.sealed = json["sealed"];
6720+ if (!mappingp(json["SEL"])) error("Expected object");
6721+ retval.sel = json["SEL"];
67416722 if (!mappingp(json["select"])) error("Expected object");
67426723 retval.select = json["select"];
67436724 if (!mappingp(json["Self"])) error("Expected object");
@@ -6838,16 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) {
68386819 retval.unchecked = json["unchecked"];
68396820 if (!mappingp(json["undefined"])) error("Expected object");
68406821 retval.undefined = json["undefined"];
6841- if (!mappingp(json["union"])) error("Expected object");
6842- retval.union = json["union"];
6843- if (!mappingp(json["UnmarshalJSON"])) error("Expected object");
6844- retval.unmarshal_json = json["UnmarshalJSON"];
6845- if (!mappingp(json["unowned"])) error("Expected object");
6846- retval.unowned = json["unowned"];
6847- if (!mappingp(json["unsafe"])) error("Expected object");
6848- retval.unsafe = json["unsafe"];
6849- if (!mappingp(json["UseSerializers"])) error("Expected object");
6850- retval.use_serializers = json["UseSerializers"];
68516822
68526823 return retval;
68536824 }
@@ -7062,6 +7033,90 @@ PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
70627033 return retval;
70637034 }
70647035
7036+class S {
7037+ int s; // json: "s"
7038+
7039+ string encode_json() {
7040+ mapping(string:mixed) json = ([
7041+ "s" : s,
7042+ ]);
7043+
7044+ return Standards.JSON.encode(json);
7045+ }
7046+}
7047+
7048+S S_from_JSON(mixed json) {
7049+ S retval = S();
7050+
7051+ if (!intp(json["s"])) error("Expected integer");
7052+ retval.s = json["s"];
7053+
7054+ return retval;
7055+}
7056+
7057+class Sbyte {
7058+ int sbyte; // json: "sbyte"
7059+
7060+ string encode_json() {
7061+ mapping(string:mixed) json = ([
7062+ "sbyte" : sbyte,
7063+ ]);
7064+
7065+ return Standards.JSON.encode(json);
7066+ }
7067+}
7068+
7069+Sbyte Sbyte_from_JSON(mixed json) {
7070+ Sbyte retval = Sbyte();
7071+
7072+ if (!intp(json["sbyte"])) error("Expected integer");
7073+ retval.sbyte = json["sbyte"];
7074+
7075+ return retval;
7076+}
7077+
7078+class Sealed {
7079+ int sealed; // json: "sealed"
7080+
7081+ string encode_json() {
7082+ mapping(string:mixed) json = ([
7083+ "sealed" : sealed,
7084+ ]);
7085+
7086+ return Standards.JSON.encode(json);
7087+ }
7088+}
7089+
7090+Sealed Sealed_from_JSON(mixed json) {
7091+ Sealed retval = Sealed();
7092+
7093+ if (!intp(json["sealed"])) error("Expected integer");
7094+ retval.sealed = json["sealed"];
7095+
7096+ return retval;
7097+}
7098+
7099+class Sel {
7100+ int sel; // json: "SEL"
7101+
7102+ string encode_json() {
7103+ mapping(string:mixed) json = ([
7104+ "SEL" : sel,
7105+ ]);
7106+
7107+ return Standards.JSON.encode(json);
7108+ }
7109+}
7110+
7111+Sel Sel_from_JSON(mixed json) {
7112+ Sel retval = Sel();
7113+
7114+ if (!intp(json["SEL"])) error("Expected integer");
7115+ retval.sel = json["SEL"];
7116+
7117+ return retval;
7118+}
7119+
70657120 class Select {
70667121 int select; // json: "select"
70677122
@@ -8112,116 +8167,16 @@ Undefined Undefined_from_JSON(mixed json) {
81128167 return retval;
81138168 }
81148169
8115-class Union {
8116- int union; // json: "union"
8117-
8118- string encode_json() {
8119- mapping(string:mixed) json = ([
8120- "union" : union,
8121- ]);
8122-
8123- return Standards.JSON.encode(json);
8124- }
8125-}
8126-
8127-Union Union_from_JSON(mixed json) {
8128- Union retval = Union();
8129-
8130- if (!intp(json["union"])) error("Expected integer");
8131- retval.union = json["union"];
8132-
8133- return retval;
8134-}
8135-
8136-class UnmarshalJson {
8137- int unmarshal_json; // json: "UnmarshalJSON"
8138-
8139- string encode_json() {
8140- mapping(string:mixed) json = ([
8141- "UnmarshalJSON" : unmarshal_json,
8142- ]);
8143-
8144- return Standards.JSON.encode(json);
8145- }
8146-}
8147-
8148-UnmarshalJson UnmarshalJson_from_JSON(mixed json) {
8149- UnmarshalJson retval = UnmarshalJson();
8150-
8151- if (!intp(json["UnmarshalJSON"])) error("Expected integer");
8152- retval.unmarshal_json = json["UnmarshalJSON"];
8153-
8154- return retval;
8155-}
8156-
8157-class Unowned {
8158- int unowned; // json: "unowned"
8159-
8160- string encode_json() {
8161- mapping(string:mixed) json = ([
8162- "unowned" : unowned,
8163- ]);
8164-
8165- return Standards.JSON.encode(json);
8166- }
8167-}
8168-
8169-Unowned Unowned_from_JSON(mixed json) {
8170- Unowned retval = Unowned();
8171-
8172- if (!intp(json["unowned"])) error("Expected integer");
8173- retval.unowned = json["unowned"];
8174-
8175- return retval;
8176-}
8177-
8178-class Unsafe {
8179- int unsafe; // json: "unsafe"
8180-
8181- string encode_json() {
8182- mapping(string:mixed) json = ([
8183- "unsafe" : unsafe,
8184- ]);
8185-
8186- return Standards.JSON.encode(json);
8187- }
8188-}
8189-
8190-Unsafe Unsafe_from_JSON(mixed json) {
8191- Unsafe retval = Unsafe();
8192-
8193- if (!intp(json["unsafe"])) error("Expected integer");
8194- retval.unsafe = json["unsafe"];
8195-
8196- return retval;
8197-}
8198-
8199-class UseSerializers {
8200- int use_serializers; // json: "UseSerializers"
8201-
8202- string encode_json() {
8203- mapping(string:mixed) json = ([
8204- "UseSerializers" : use_serializers,
8205- ]);
8206-
8207- return Standards.JSON.encode(json);
8208- }
8209-}
8210-
8211-UseSerializers UseSerializers_from_JSON(mixed json) {
8212- UseSerializers retval = UseSerializers();
8213-
8214- if (!intp(json["UseSerializers"])) error("Expected integer");
8215- retval.use_serializers = json["UseSerializers"];
8216-
8217- return retval;
8218-}
8219-
82208170 class Obj6 {
82218171 int dummy; // json: "dummy"
82228172 Void obj6_void; // json: "void"
82238173 While obj6_while; // json: "while"
8174+ Union union; // json: "union"
8175+ UnmarshalJson unmarshal_json; // json: "UnmarshalJSON"
8176+ Unowned unowned; // json: "unowned"
8177+ Unsafe unsafe; // json: "unsafe"
82248178 Unsigned unsigned; // json: "unsigned"
8179+ UseSerializers use_serializers; // json: "UseSerializers"
82258180 Ushort ushort; // json: "ushort"
82268181 Using using; // json: "using"
82278182 Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
@@ -8245,7 +8200,12 @@ class Obj6 {
82458200 "dummy" : dummy,
82468201 "void" : obj6_void,
82478202 "while" : obj6_while,
8203+ "union" : union,
8204+ "UnmarshalJSON" : unmarshal_json,
8205+ "unowned" : unowned,
8206+ "unsafe" : unsafe,
82488207 "unsigned" : unsigned,
8208+ "UseSerializers" : use_serializers,
82498209 "ushort" : ushort,
82508210 "using" : using,
82518211 "Utf8JsonReader" : utf8_json_reader,
@@ -8278,8 +8238,18 @@ Obj6 Obj6_from_JSON(mixed json) {
82788238 retval.obj6_void = json["void"];
82798239 if (!mappingp(json["while"])) error("Expected object");
82808240 retval.obj6_while = json["while"];
8241+ if (!mappingp(json["union"])) error("Expected object");
8242+ retval.union = json["union"];
8243+ if (!mappingp(json["UnmarshalJSON"])) error("Expected object");
8244+ retval.unmarshal_json = json["UnmarshalJSON"];
8245+ if (!mappingp(json["unowned"])) error("Expected object");
8246+ retval.unowned = json["unowned"];
8247+ if (!mappingp(json["unsafe"])) error("Expected object");
8248+ retval.unsafe = json["unsafe"];
82818249 if (!mappingp(json["unsigned"])) error("Expected object");
82828250 retval.unsigned = json["unsigned"];
8251+ if (!mappingp(json["UseSerializers"])) error("Expected object");
8252+ retval.use_serializers = json["UseSerializers"];
82838253 if (!mappingp(json["ushort"])) error("Expected object");
82848254 retval.ushort = json["ushort"];
82858255 if (!mappingp(json["using"])) error("Expected object");
@@ -8360,6 +8330,90 @@ While While_from_JSON(mixed json) {
83608330 return retval;
83618331 }
83628332
8333+class Union {
8334+ int union; // json: "union"
8335+
8336+ string encode_json() {
8337+ mapping(string:mixed) json = ([
8338+ "union" : union,
8339+ ]);
8340+
8341+ return Standards.JSON.encode(json);
8342+ }
8343+}
8344+
8345+Union Union_from_JSON(mixed json) {
8346+ Union retval = Union();
8347+
8348+ if (!intp(json["union"])) error("Expected integer");
8349+ retval.union = json["union"];
8350+
8351+ return retval;
8352+}
8353+
8354+class UnmarshalJson {
8355+ int unmarshal_json; // json: "UnmarshalJSON"
8356+
8357+ string encode_json() {
8358+ mapping(string:mixed) json = ([
8359+ "UnmarshalJSON" : unmarshal_json,
8360+ ]);
8361+
8362+ return Standards.JSON.encode(json);
8363+ }
8364+}
8365+
8366+UnmarshalJson UnmarshalJson_from_JSON(mixed json) {
8367+ UnmarshalJson retval = UnmarshalJson();
8368+
8369+ if (!intp(json["UnmarshalJSON"])) error("Expected integer");
8370+ retval.unmarshal_json = json["UnmarshalJSON"];
8371+
8372+ return retval;
8373+}
8374+
8375+class Unowned {
8376+ int unowned; // json: "unowned"
8377+
8378+ string encode_json() {
8379+ mapping(string:mixed) json = ([
8380+ "unowned" : unowned,
8381+ ]);
8382+
8383+ return Standards.JSON.encode(json);
8384+ }
8385+}
8386+
8387+Unowned Unowned_from_JSON(mixed json) {
8388+ Unowned retval = Unowned();
8389+
8390+ if (!intp(json["unowned"])) error("Expected integer");
8391+ retval.unowned = json["unowned"];
8392+
8393+ return retval;
8394+}
8395+
8396+class Unsafe {
8397+ int unsafe; // json: "unsafe"
8398+
8399+ string encode_json() {
8400+ mapping(string:mixed) json = ([
8401+ "unsafe" : unsafe,
8402+ ]);
8403+
8404+ return Standards.JSON.encode(json);
8405+ }
8406+}
8407+
8408+Unsafe Unsafe_from_JSON(mixed json) {
8409+ Unsafe retval = Unsafe();
8410+
8411+ if (!intp(json["unsafe"])) error("Expected integer");
8412+ retval.unsafe = json["unsafe"];
8413+
8414+ return retval;
8415+}
8416+
83638417 class Unsigned {
83648418 int unsigned; // json: "unsigned"
83658419
@@ -8381,6 +8435,27 @@ Unsigned Unsigned_from_JSON(mixed json) {
83818435 return retval;
83828436 }
83838437
8438+class UseSerializers {
8439+ int use_serializers; // json: "UseSerializers"
8440+
8441+ string encode_json() {
8442+ mapping(string:mixed) json = ([
8443+ "UseSerializers" : use_serializers,
8444+ ]);
8445+
8446+ return Standards.JSON.encode(json);
8447+ }
8448+}
8449+
8450+UseSerializers UseSerializers_from_JSON(mixed json) {
8451+ UseSerializers retval = UseSerializers();
8452+
8453+ if (!intp(json["UseSerializers"])) error("Expected integer");
8454+ retval.use_serializers = json["UseSerializers"];
8455+
8456+ return retval;
8457+}
8458+
83848459 class Ushort {
83858460 int ushort; // json: "ushort"
Mpythondefault / quicktype.py+270 −213
@@ -3196,6 +3196,22 @@ class ListClass:
31963196 return result
31973197
31983198
3199+@dataclass
3200+class LocalDate:
3201+ local_date: int
3202+
3203+ @staticmethod
3204+ def from_dict(obj: Any) -> 'LocalDate':
3205+ assert isinstance(obj, dict)
3206+ local_date = from_int(obj["LocalDate"])
3207+ return LocalDate(local_date)
3208+
3209+ def to_dict(self) -> dict:
3210+ result: dict = {}
3211+ result["LocalDate"] = from_int(self.local_date)
3212+ return result
3213+
3214+
31993215 @dataclass
32003216 class Locale:
32013217 locale: int
@@ -3420,38 +3436,6 @@ class Newtonsoft:
34203436 return result
34213437
34223438
3423-@dataclass
3424-class Nil:
3425- nil: int
3426-
3427- @staticmethod
3428- def from_dict(obj: Any) -> 'Nil':
3429- assert isinstance(obj, dict)
3430- nil = from_int(obj["nil"])
3431- return Nil(nil)
3432-
3433- def to_dict(self) -> dict:
3434- result: dict = {}
3435- result["nil"] = from_int(self.nil)
3436- return result
3437-
3438-
3439-@dataclass
3440-class No:
3441- no: int
3442-
3443- @staticmethod
3444- def from_dict(obj: Any) -> 'No':
3445- assert isinstance(obj, dict)
3446- no = from_int(obj["NO"])
3447- return No(no)
3448-
3449- def to_dict(self) -> dict:
3450- result: dict = {}
3451- result["NO"] = from_int(self.no)
3452- return result
3453-
3454-
34553439 @dataclass
34563440 class If:
34573441 if_if: int
@@ -3565,10 +3549,10 @@ class Obj3:
35653549 json_parser: JSONParser
35663550 json_reader: JSONReader
35673551 json_token_type: JSONTokenType
3552+ local_date: LocalDate
35683553 locale: Locale
35693554 map_entry: MapEntry
35703555 marshal_json: MarshalJSON
3571- no: No
35723556 dummy: int
35733557 goto: Goto
35743558 guard: Guard
@@ -3615,7 +3599,6 @@ class Obj3:
36153599 native: Native
36163600 new: New
36173601 newtonsoft: Newtonsoft
3618- nil: Nil
36193602
36203603 @staticmethod
36213604 def from_dict(obj: Any) -> 'Obj3':
@@ -3635,10 +3618,10 @@ class Obj3:
36353618 json_parser = JSONParser.from_dict(obj["JsonParser"])
36363619 json_reader = JSONReader.from_dict(obj["JsonReader"])
36373620 json_token_type = JSONTokenType.from_dict(obj["JsonTokenType"])
3621+ local_date = LocalDate.from_dict(obj["LocalDate"])
36383622 locale = Locale.from_dict(obj["Locale"])
36393623 map_entry = MapEntry.from_dict(obj["MapEntry"])
36403624 marshal_json = MarshalJSON.from_dict(obj["MarshalJSON"])
3641- no = No.from_dict(obj["NO"])
36423625 dummy = from_int(obj["dummy"])
36433626 goto = Goto.from_dict(obj["goto"])
36443627 guard = Guard.from_dict(obj["guard"])
@@ -3685,8 +3668,7 @@ class Obj3:
36853668 native = Native.from_dict(obj["native"])
36863669 new = New.from_dict(obj["new"])
36873670 newtonsoft = Newtonsoft.from_dict(obj["newtonsoft"])
3688- nil = Nil.from_dict(obj["nil"])
3689- 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, marshal_json, 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)
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, local_date, locale, map_entry, marshal_json, 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)
36903672
36913673 def to_dict(self) -> dict:
36923674 result: dict = {}
@@ -3705,10 +3687,10 @@ class Obj3:
37053687 result["JsonParser"] = to_class(JSONParser, self.json_parser)
37063688 result["JsonReader"] = to_class(JSONReader, self.json_reader)
37073689 result["JsonTokenType"] = to_class(JSONTokenType, self.json_token_type)
3690+ result["LocalDate"] = to_class(LocalDate, self.local_date)
37083691 result["Locale"] = to_class(Locale, self.locale)
37093692 result["MapEntry"] = to_class(MapEntry, self.map_entry)
37103693 result["MarshalJSON"] = to_class(MarshalJSON, self.marshal_json)
3711- result["NO"] = to_class(No, self.no)
37123694 result["dummy"] = from_int(self.dummy)
37133695 result["goto"] = to_class(Goto, self.goto)
37143696 result["guard"] = to_class(Guard, self.guard)
@@ -3755,7 +3737,38 @@ class Obj3:
37553737 result["native"] = to_class(Native, self.native)
37563738 result["new"] = to_class(New, self.new)
37573739 result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft)
3758- result["nil"] = to_class(Nil, self.nil)
3740+ return result
3741+
3742+
3743+@dataclass
3744+class Nil:
3745+ nil: int
3746+
3747+ @staticmethod
3748+ def from_dict(obj: Any) -> 'Nil':
3749+ assert isinstance(obj, dict)
3750+ nil = from_int(obj["nil"])
3751+ return Nil(nil)
3752+
3753+ def to_dict(self) -> dict:
3754+ result: dict = {}
3755+ result["nil"] = from_int(self.nil)
3756+ return result
3757+
3758+
3759+@dataclass
3760+class No:
3761+ no: int
3762+
3763+ @staticmethod
3764+ def from_dict(obj: Any) -> 'No':
3765+ assert isinstance(obj, dict)
3766+ no = from_int(obj["NO"])
3767+ return No(no)
3768+
3769+ def to_dict(self) -> dict:
3770+ result: dict = {}
3771+ result["NO"] = from_int(self.no)
37593772 return result
37603773
37613774
@@ -4159,6 +4172,38 @@ class Of:
41594172 return result
41604173
41614174
4175+@dataclass
4176+class OffsetDateTime:
4177+ offset_date_time: int
4178+
4179+ @staticmethod
4180+ def from_dict(obj: Any) -> 'OffsetDateTime':
4181+ assert isinstance(obj, dict)
4182+ offset_date_time = from_int(obj["OffsetDateTime"])
4183+ return OffsetDateTime(offset_date_time)
4184+
4185+ def to_dict(self) -> dict:
4186+ result: dict = {}
4187+ result["OffsetDateTime"] = from_int(self.offset_date_time)
4188+ return result
4189+
4190+
4191+@dataclass
4192+class OffsetTime:
4193+ offset_time: int
4194+
4195+ @staticmethod
4196+ def from_dict(obj: Any) -> 'OffsetTime':
4197+ assert isinstance(obj, dict)
4198+ offset_time = from_int(obj["OffsetTime"])
4199+ return OffsetTime(offset_time)
4200+
4201+ def to_dict(self) -> dict:
4202+ result: dict = {}
4203+ result["OffsetTime"] = from_int(self.offset_time)
4204+ return result
4205+
4206+
41624207 @dataclass
41634208 class Oneway:
41644209 oneway: int
@@ -4719,82 +4764,21 @@ class RuntimeType:
47194764 return result
47204765
47214766
4722-@dataclass
4723-class S:
4724- s: int
4725-
4726- @staticmethod
4727- def from_dict(obj: Any) -> 'S':
4728- assert isinstance(obj, dict)
4729- s = from_int(obj["s"])
4730- return S(s)
4731-
4732- def to_dict(self) -> dict:
4733- result: dict = {}
4734- result["s"] = from_int(self.s)
4735- return result
4736-
4737-
4738-@dataclass
4739-class Sbyte:
4740- sbyte: int
4741-
4742- @staticmethod
4743- def from_dict(obj: Any) -> 'Sbyte':
4744- assert isinstance(obj, dict)
4745- sbyte = from_int(obj["sbyte"])
4746- return Sbyte(sbyte)
4747-
4748- def to_dict(self) -> dict:
4749- result: dict = {}
4750- result["sbyte"] = from_int(self.sbyte)
4751- return result
4752-
4753-
4754-@dataclass
4755-class Sealed:
4756- sealed: int
4757-
4758- @staticmethod
4759- def from_dict(obj: Any) -> 'Sealed':
4760- assert isinstance(obj, dict)
4761- sealed = from_int(obj["sealed"])
4762- return Sealed(sealed)
4763-
4764- def to_dict(self) -> dict:
4765- result: dict = {}
4766- result["sealed"] = from_int(self.sealed)
4767- return result
4768-
4769-
4770-@dataclass
4771-class Sel:
4772- sel: int
4773-
4774- @staticmethod
4775- def from_dict(obj: Any) -> 'Sel':
4776- assert isinstance(obj, dict)
4777- sel = from_int(obj["SEL"])
4778- return Sel(sel)
4779-
4780- def to_dict(self) -> dict:
4781- result: dict = {}
4782- result["SEL"] = from_int(self.sel)
4783- return result
4784-
4785-
47864767 @dataclass
47874768 class Obj4:
4769+ no: No
47884770 ns_error: NSError
47894771 ns_object: NSObject
47904772 ns_string: NSString
47914773 null: Null
47924774 none: NoneClass
47934775 object_mapper: ObjectMapper
4776+ offset_date_time: OffsetDateTime
4777+ offset_time: OffsetTime
47944778 protocol: Protocol
47954779 reg_exp: RegExp
4796- sel: Sel
47974780 dummy: int
4781+ nil: Nil
47984782 no_such_method: NoSuchMethod
47994783 noexcept: Noexcept
48004784 nonatomic: Nonatomic
@@ -4847,23 +4831,23 @@ class Obj4:
48474831 obj4_return: Return
48484832 right: Right
48494833 runtime_type: RuntimeType
4850- s: S
4851- sbyte: Sbyte
4852- sealed: Sealed
48534834
48544835 @staticmethod
48554836 def from_dict(obj: Any) -> 'Obj4':
48564837 assert isinstance(obj, dict)
4838+ no = No.from_dict(obj["NO"])
48574839 ns_error = NSError.from_dict(obj["NSError"])
48584840 ns_object = NSObject.from_dict(obj["NSObject"])
48594841 ns_string = NSString.from_dict(obj["NSString"])
48604842 null = Null.from_dict(obj["NULL"])
48614843 none = NoneClass.from_dict(obj["None"])
48624844 object_mapper = ObjectMapper.from_dict(obj["ObjectMapper"])
4845+ offset_date_time = OffsetDateTime.from_dict(obj["OffsetDateTime"])
4846+ offset_time = OffsetTime.from_dict(obj["OffsetTime"])
48634847 protocol = Protocol.from_dict(obj["Protocol"])
48644848 reg_exp = RegExp.from_dict(obj["RegExp"])
4865- sel = Sel.from_dict(obj["SEL"])
48664849 dummy = from_int(obj["dummy"])
4850+ nil = Nil.from_dict(obj["nil"])
48674851 no_such_method = NoSuchMethod.from_dict(obj["noSuchMethod"])
48684852 noexcept = Noexcept.from_dict(obj["noexcept"])
48694853 nonatomic = Nonatomic.from_dict(obj["nonatomic"])
@@ -4916,23 +4900,23 @@ class Obj4:
49164900 obj4_return = Return.from_dict(obj["return"])
49174901 right = Right.from_dict(obj["right"])
49184902 runtime_type = RuntimeType.from_dict(obj["runtimeType"])
4919- s = S.from_dict(obj["s"])
4920- sbyte = Sbyte.from_dict(obj["sbyte"])
4921- sealed = Sealed.from_dict(obj["sealed"])
4922- 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)
4903+ return Obj4(no, ns_error, ns_object, ns_string, null, none, object_mapper, offset_date_time, offset_time, protocol, reg_exp, dummy, nil, 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)
49234904
49244905 def to_dict(self) -> dict:
49254906 result: dict = {}
4907+ result["NO"] = to_class(No, self.no)
49264908 result["NSError"] = to_class(NSError, self.ns_error)
49274909 result["NSObject"] = to_class(NSObject, self.ns_object)
49284910 result["NSString"] = to_class(NSString, self.ns_string)
49294911 result["NULL"] = to_class(Null, self.null)
49304912 result["None"] = to_class(NoneClass, self.none)
49314913 result["ObjectMapper"] = to_class(ObjectMapper, self.object_mapper)
4914+ result["OffsetDateTime"] = to_class(OffsetDateTime, self.offset_date_time)
4915+ result["OffsetTime"] = to_class(OffsetTime, self.offset_time)
49324916 result["Protocol"] = to_class(Protocol, self.protocol)
49334917 result["RegExp"] = to_class(RegExp, self.reg_exp)
4934- result["SEL"] = to_class(Sel, self.sel)
49354918 result["dummy"] = from_int(self.dummy)
4919+ result["nil"] = to_class(Nil, self.nil)
49364920 result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method)
49374921 result["noexcept"] = to_class(Noexcept, self.noexcept)
49384922 result["nonatomic"] = to_class(Nonatomic, self.nonatomic)
@@ -4985,9 +4969,6 @@ class Obj4:
49854969 result["return"] = to_class(Return, self.obj4_return)
49864970 result["right"] = to_class(Right, self.right)
49874971 result["runtimeType"] = to_class(RuntimeType, self.runtime_type)
4988- result["s"] = to_class(S, self.s)
4989- result["sbyte"] = to_class(Sbyte, self.sbyte)
4990- result["sealed"] = to_class(Sealed, self.sealed)
49914972 return result
49924973
49934974
@@ -5119,6 +5100,70 @@ class SelfClass:
51195100 return result
51205101
51215102
5103+@dataclass
5104+class S:
5105+ s: int
5106+
5107+ @staticmethod
5108+ def from_dict(obj: Any) -> 'S':
5109+ assert isinstance(obj, dict)
5110+ s = from_int(obj["s"])
5111+ return S(s)
5112+
5113+ def to_dict(self) -> dict:
5114+ result: dict = {}
5115+ result["s"] = from_int(self.s)
5116+ return result
5117+
5118+
5119+@dataclass
5120+class Sbyte:
5121+ sbyte: int
5122+
5123+ @staticmethod
5124+ def from_dict(obj: Any) -> 'Sbyte':
5125+ assert isinstance(obj, dict)
5126+ sbyte = from_int(obj["sbyte"])
5127+ return Sbyte(sbyte)
5128+
5129+ def to_dict(self) -> dict:
5130+ result: dict = {}
5131+ result["sbyte"] = from_int(self.sbyte)
5132+ return result
5133+
5134+
5135+@dataclass
5136+class Sealed:
5137+ sealed: int
5138+
5139+ @staticmethod
5140+ def from_dict(obj: Any) -> 'Sealed':
5141+ assert isinstance(obj, dict)
5142+ sealed = from_int(obj["sealed"])
5143+ return Sealed(sealed)
5144+
5145+ def to_dict(self) -> dict:
5146+ result: dict = {}
5147+ result["sealed"] = from_int(self.sealed)
5148+ return result
5149+
5150+
5151+@dataclass
5152+class Sel:
5153+ sel: int
5154+
5155+ @staticmethod
5156+ def from_dict(obj: Any) -> 'Sel':
5157+ assert isinstance(obj, dict)
5158+ sel = from_int(obj["SEL"])
5159+ return Sel(sel)
5160+
5161+ def to_dict(self) -> dict:
5162+ result: dict = {}
5163+ result["SEL"] = from_int(self.sel)
5164+ return result
5165+
5166+
51225167 @dataclass
51235168 class Select:
51245169 select: int
@@ -5951,90 +5996,11 @@ class Undefined:
59515996 return result
59525997
59535998
5954-@dataclass
5955-class UnionClass:
5956- union: int
5957-
5958- @staticmethod
5959- def from_dict(obj: Any) -> 'UnionClass':
5960- assert isinstance(obj, dict)
5961- union = from_int(obj["union"])
5962- return UnionClass(union)
5963-
5964- def to_dict(self) -> dict:
5965- result: dict = {}
5966- result["union"] = from_int(self.union)
5967- return result
5968-
5969-
5970-@dataclass
5971-class UnmarshalJSON:
5972- unmarshal_json: int
5973-
5974- @staticmethod
5975- def from_dict(obj: Any) -> 'UnmarshalJSON':
5976- assert isinstance(obj, dict)
5977- unmarshal_json = from_int(obj["UnmarshalJSON"])
5978- return UnmarshalJSON(unmarshal_json)
5979-
5980- def to_dict(self) -> dict:
5981- result: dict = {}
5982- result["UnmarshalJSON"] = from_int(self.unmarshal_json)
5983- return result
5984-
5985-
5986-@dataclass
5987-class Unowned:
5988- unowned: int
5989-
5990- @staticmethod
5991- def from_dict(obj: Any) -> 'Unowned':
5992- assert isinstance(obj, dict)
5993- unowned = from_int(obj["unowned"])
5994- return Unowned(unowned)
5995-
5996- def to_dict(self) -> dict:
5997- result: dict = {}
5998- result["unowned"] = from_int(self.unowned)
5999- return result
6000-
6001-
6002-@dataclass
6003-class Unsafe:
6004- unsafe: int
6005-
6006- @staticmethod
6007- def from_dict(obj: Any) -> 'Unsafe':
6008- assert isinstance(obj, dict)
6009- unsafe = from_int(obj["unsafe"])
6010- return Unsafe(unsafe)
6011-
6012- def to_dict(self) -> dict:
6013- result: dict = {}
6014- result["unsafe"] = from_int(self.unsafe)
6015- return result
6016-
6017-
6018-@dataclass
6019-class UseSerializers:
6020- use_serializers: int
6021-
6022- @staticmethod
6023- def from_dict(obj: Any) -> 'UseSerializers':
6024- assert isinstance(obj, dict)
6025- use_serializers = from_int(obj["UseSerializers"])
6026- return UseSerializers(use_serializers)
6027-
6028- def to_dict(self) -> dict:
6029- result: dict = {}
6030- result["UseSerializers"] = from_int(self.use_serializers)
6031- return result
6032-
6033-
60345999 @dataclass
60356000 class Obj5:
60366001 k_serializer: KSerializer
60376002 primitive_kind: PrimitiveKind
6003+ sel: Sel
60386004 obj5_self: Self
60396005 sendable: Sendable
60406006 serial_descriptor: SerialDescriptor
@@ -6050,9 +6016,10 @@ class Obj5:
60506016 time_zone: TimeZone
60516017 true: TrueClass
60526018 type: TypeClass
6053- unmarshal_json: UnmarshalJSON
6054- use_serializers: UseSerializers
60556019 dummy: int
6020+ s: S
6021+ sbyte: Sbyte
6022+ sealed: Sealed
60566023 select: Select
60576024 purple_self: SelfClass
60586025 serialize: Serialize
@@ -6096,15 +6063,13 @@ class Obj5:
60966063 ulong: Ulong
60976064 unchecked: Unchecked
60986065 undefined: Undefined
6099- union: UnionClass
6100- unowned: Unowned
6101- unsafe: Unsafe
61026066
61036067 @staticmethod
61046068 def from_dict(obj: Any) -> 'Obj5':
61056069 assert isinstance(obj, dict)
61066070 k_serializer = KSerializer.from_dict(obj["KSerializer"])
61076071 primitive_kind = PrimitiveKind.from_dict(obj["PrimitiveKind"])
6072+ sel = Sel.from_dict(obj["SEL"])
61086073 obj5_self = Self.from_dict(obj["Self"])
61096074 sendable = Sendable.from_dict(obj["Sendable"])
61106075 serial_descriptor = SerialDescriptor.from_dict(obj["SerialDescriptor"])
@@ -6120,9 +6085,10 @@ class Obj5:
61206085 time_zone = TimeZone.from_dict(obj["TimeZone"])
61216086 true = TrueClass.from_dict(obj["True"])
61226087 type = TypeClass.from_dict(obj["Type"])
6123- unmarshal_json = UnmarshalJSON.from_dict(obj["UnmarshalJSON"])
6124- use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
61256088 dummy = from_int(obj["dummy"])
6089+ s = S.from_dict(obj["s"])
6090+ sbyte = Sbyte.from_dict(obj["sbyte"])
6091+ sealed = Sealed.from_dict(obj["sealed"])
61266092 select = Select.from_dict(obj["select"])
61276093 purple_self = SelfClass.from_dict(obj["self"])
61286094 serialize = Serialize.from_dict(obj["serialize"])
@@ -6166,15 +6132,13 @@ class Obj5:
61666132 ulong = Ulong.from_dict(obj["ulong"])
61676133 unchecked = Unchecked.from_dict(obj["unchecked"])
61686134 undefined = Undefined.from_dict(obj["undefined"])
6169- union = UnionClass.from_dict(obj["union"])
6170- unowned = Unowned.from_dict(obj["unowned"])
6171- unsafe = Unsafe.from_dict(obj["unsafe"])
6172- 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, unmarshal_json, 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)
6135+ return Obj5(k_serializer, primitive_kind, sel, 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, dummy, s, sbyte, sealed, 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)
61736136
61746137 def to_dict(self) -> dict:
61756138 result: dict = {}
61766139 result["KSerializer"] = to_class(KSerializer, self.k_serializer)
61776140 result["PrimitiveKind"] = to_class(PrimitiveKind, self.primitive_kind)
6141+ result["SEL"] = to_class(Sel, self.sel)
61786142 result["Self"] = to_class(Self, self.obj5_self)
61796143 result["Sendable"] = to_class(Sendable, self.sendable)
61806144 result["SerialDescriptor"] = to_class(SerialDescriptor, self.serial_descriptor)
@@ -6190,9 +6154,10 @@ class Obj5:
61906154 result["TimeZone"] = to_class(TimeZone, self.time_zone)
61916155 result["True"] = to_class(TrueClass, self.true)
61926156 result["Type"] = to_class(TypeClass, self.type)
6193- result["UnmarshalJSON"] = to_class(UnmarshalJSON, self.unmarshal_json)
6194- result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
61956157 result["dummy"] = from_int(self.dummy)
6158+ result["s"] = to_class(S, self.s)
6159+ result["sbyte"] = to_class(Sbyte, self.sbyte)
6160+ result["sealed"] = to_class(Sealed, self.sealed)
61966161 result["select"] = to_class(Select, self.select)
61976162 result["self"] = to_class(SelfClass, self.purple_self)
61986163 result["serialize"] = to_class(Serialize, self.serialize)
@@ -6236,9 +6201,6 @@ class Obj5:
62366201 result["ulong"] = to_class(Ulong, self.ulong)
62376202 result["unchecked"] = to_class(Unchecked, self.unchecked)
62386203 result["undefined"] = to_class(Undefined, self.undefined)
6239- result["union"] = to_class(UnionClass, self.union)
6240- result["unowned"] = to_class(Unowned, self.unowned)
6241- result["unsafe"] = to_class(Unsafe, self.unsafe)
62426204 return result
62436205
62446206
@@ -6290,6 +6252,70 @@ class Yield:
62906252 return result
62916253
62926254
6255+@dataclass
6256+class UnionClass:
6257+ union: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'UnionClass':
6261+ assert isinstance(obj, dict)
6262+ union = from_int(obj["union"])
6263+ return UnionClass(union)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["union"] = from_int(self.union)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class UnmarshalJSON:
6273+ unmarshal_json: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'UnmarshalJSON':
6277+ assert isinstance(obj, dict)
6278+ unmarshal_json = from_int(obj["UnmarshalJSON"])
6279+ return UnmarshalJSON(unmarshal_json)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["UnmarshalJSON"] = from_int(self.unmarshal_json)
6284+ return result
6285+
6286+
6287+@dataclass
6288+class Unowned:
6289+ unowned: int
6290+
6291+ @staticmethod
6292+ def from_dict(obj: Any) -> 'Unowned':
6293+ assert isinstance(obj, dict)
6294+ unowned = from_int(obj["unowned"])
6295+ return Unowned(unowned)
6296+
6297+ def to_dict(self) -> dict:
6298+ result: dict = {}
6299+ result["unowned"] = from_int(self.unowned)
6300+ return result
6301+
6302+
6303+@dataclass
6304+class Unsafe:
6305+ unsafe: int
6306+
6307+ @staticmethod
6308+ def from_dict(obj: Any) -> 'Unsafe':
6309+ assert isinstance(obj, dict)
6310+ unsafe = from_int(obj["unsafe"])
6311+ return Unsafe(unsafe)
6312+
6313+ def to_dict(self) -> dict:
6314+ result: dict = {}
6315+ result["unsafe"] = from_int(self.unsafe)
6316+ return result
6317+
6318+
62936319 @dataclass
62946320 class Unsigned:
62956321 unsigned: int
@@ -6306,6 +6332,22 @@ class Unsigned:
63066332 return result
63076333
63086334
6335+@dataclass
6336+class UseSerializers:
6337+ use_serializers: int
6338+
6339+ @staticmethod
6340+ def from_dict(obj: Any) -> 'UseSerializers':
6341+ assert isinstance(obj, dict)
6342+ use_serializers = from_int(obj["UseSerializers"])
6343+ return UseSerializers(use_serializers)
6344+
6345+ def to_dict(self) -> dict:
6346+ result: dict = {}
6347+ result["UseSerializers"] = from_int(self.use_serializers)
6348+ return result
6349+
6350+
63096351 @dataclass
63106352 class Ushort:
63116353 ushort: int
@@ -6565,10 +6607,15 @@ class Yes:
65656607 @dataclass
65666608 class Obj6:
65676609 uuid: UUIDClass
6610+ unmarshal_json: UnmarshalJSON
6611+ use_serializers: UseSerializers
65686612 utf8_json_reader: Utf8JSONReader
65696613 utf8_json_writer: Utf8JSONWriter
65706614 yes: Yes
65716615 dummy: int
6616+ union: UnionClass
6617+ unowned: Unowned
6618+ unsafe: Unsafe
65726619 unsigned: Unsigned
65736620 ushort: Ushort
65746621 using: Using
@@ -6590,10 +6637,15 @@ class Obj6:
65906637 def from_dict(obj: Any) -> 'Obj6':
65916638 assert isinstance(obj, dict)
65926639 uuid = UUIDClass.from_dict(obj["UUID"])
6640+ unmarshal_json = UnmarshalJSON.from_dict(obj["UnmarshalJSON"])
6641+ use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
65936642 utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"])
65946643 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
65956644 yes = Yes.from_dict(obj["YES"])
65966645 dummy = from_int(obj["dummy"])
6646+ union = UnionClass.from_dict(obj["union"])
6647+ unowned = Unowned.from_dict(obj["unowned"])
6648+ unsafe = Unsafe.from_dict(obj["unsafe"])
65976649 unsigned = Unsigned.from_dict(obj["unsigned"])
65986650 ushort = Ushort.from_dict(obj["ushort"])
65996651 using = Using.from_dict(obj["using"])
@@ -6610,15 +6662,20 @@ class Obj6:
66106662 xor = Xor.from_dict(obj["xor"])
66116663 xor_eq = XorEq.from_dict(obj["xor_eq"])
66126664 obj6_yield = Yield.from_dict(obj["yield"])
6613- 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)
6665+ return Obj6(uuid, unmarshal_json, use_serializers, utf8_json_reader, utf8_json_writer, yes, dummy, union, unowned, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
66146666
66156667 def to_dict(self) -> dict:
66166668 result: dict = {}
66176669 result["UUID"] = to_class(UUIDClass, self.uuid)
6670+ result["UnmarshalJSON"] = to_class(UnmarshalJSON, self.unmarshal_json)
6671+ result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
66186672 result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader)
66196673 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
66206674 result["YES"] = to_class(Yes, self.yes)
66216675 result["dummy"] = from_int(self.dummy)
6676+ result["union"] = to_class(UnionClass, self.union)
6677+ result["unowned"] = to_class(Unowned, self.unowned)
6678+ result["unsafe"] = to_class(Unsafe, self.unsafe)
66226679 result["unsigned"] = to_class(Unsigned, self.unsigned)
66236680 result["ushort"] = to_class(Ushort, self.ushort)
66246681 result["using"] = to_class(Using, self.using)
Mrubydefault / TopLevel.rb+454 −370
@@ -4811,6 +4811,31 @@ class List < Dry::Struct
48114811 end
48124812 end
48134813
4814+class LocalDate < Dry::Struct
4815+ attribute :local_date, Types::Integer
4816+
4817+ def self.from_dynamic!(d)
4818+ d = Types::Hash[d]
4819+ new(
4820+ local_date: d.fetch("LocalDate"),
4821+ )
4822+ end
4823+
4824+ def self.from_json!(json)
4825+ from_dynamic!(JSON.parse(json))
4826+ end
4827+
4828+ def to_dynamic
4829+ {
4830+ "LocalDate" => local_date,
4831+ }
4832+ end
4833+
4834+ def to_json(options = nil)
4835+ JSON.generate(to_dynamic, options)
4836+ end
4837+end
4838+
48144839 class Locale < Dry::Struct
48154840 attribute :locale, Types::Integer
48164841
@@ -5111,31 +5136,6 @@ class Newtonsoft < Dry::Struct
51115136 end
51125137 end
51135138
5114-class No < Dry::Struct
5115- attribute :no, Types::Integer
5116-
5117- def self.from_dynamic!(d)
5118- d = Types::Hash[d]
5119- new(
5120- no: d.fetch("NO"),
5121- )
5122- end
5123-
5124- def self.from_json!(json)
5125- from_dynamic!(JSON.parse(json))
5126- end
5127-
5128- def to_dynamic
5129- {
5130- "NO" => no,
5131- }
5132- end
5133-
5134- def to_json(options = nil)
5135- JSON.generate(to_dynamic, options)
5136- end
5137-end
5138-
51395139 class If < Dry::Struct
51405140 attribute :if_if, Types::Integer
51415141
@@ -5261,31 +5261,6 @@ class New < Dry::Struct
52615261 end
52625262 end
52635263
5264-class Nil < Dry::Struct
5265- attribute :nil_nil, Types::Integer
5266-
5267- def self.from_dynamic!(d)
5268- d = Types::Hash[d]
5269- new(
5270- nil_nil: d.fetch("nil"),
5271- )
5272- end
5273-
5274- def self.from_json!(json)
5275- from_dynamic!(JSON.parse(json))
5276- end
5277-
5278- def to_dynamic
5279- {
5280- "nil" => nil_nil,
5281- }
5282- end
5283-
5284- def to_json(options = nil)
5285- JSON.generate(to_dynamic, options)
5286- end
5287-end
5288-
52895264 class Obj3 < Dry::Struct
52905265 attribute :dummy, Types::Integer
52915266 attribute :goto, Goto
@@ -5334,6 +5309,7 @@ class Obj3 < Dry::Struct
53345309 attribute :left, Left
53355310 attribute :let, Let
53365311 attribute :list, List
5312+ attribute :local_date, LocalDate
53375313 attribute :locale, Locale
53385314 attribute :lock, Lock
53395315 attribute :long, Long
@@ -5346,13 +5322,11 @@ class Obj3 < Dry::Struct
53465322 attribute :namespace, Namespace
53475323 attribute :native, Native
53485324 attribute :newtonsoft, Newtonsoft
5349- attribute :no, No
53505325 attribute :obj3_if, If
53515326 attribute :obj3_in, In
53525327 attribute :obj3_lambda, Lambda
53535328 attribute :obj3_module, ModuleClass
53545329 attribute :obj3_new, New
5355- attribute :obj3_nil, Nil
53565330
53575331 def self.from_dynamic!(d)
53585332 d = Types::Hash[d]
@@ -5404,6 +5378,7 @@ class Obj3 < Dry::Struct
54045378 left: Left.from_dynamic!(d.fetch("left")),
54055379 let: Let.from_dynamic!(d.fetch("let")),
54065380 list: List.from_dynamic!(d.fetch("list")),
5381+ local_date: LocalDate.from_dynamic!(d.fetch("LocalDate")),
54075382 locale: Locale.from_dynamic!(d.fetch("Locale")),
54085383 lock: Lock.from_dynamic!(d.fetch("lock")),
54095384 long: Long.from_dynamic!(d.fetch("long")),
@@ -5416,13 +5391,11 @@ class Obj3 < Dry::Struct
54165391 namespace: Namespace.from_dynamic!(d.fetch("namespace")),
54175392 native: Native.from_dynamic!(d.fetch("native")),
54185393 newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")),
5419- no: No.from_dynamic!(d.fetch("NO")),
54205394 obj3_if: If.from_dynamic!(d.fetch("if")),
54215395 obj3_in: In.from_dynamic!(d.fetch("in")),
54225396 obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")),
54235397 obj3_module: ModuleClass.from_dynamic!(d.fetch("module")),
54245398 obj3_new: New.from_dynamic!(d.fetch("new")),
5425- obj3_nil: Nil.from_dynamic!(d.fetch("nil")),
54265399 )
54275400 end
54285401
@@ -5479,6 +5452,7 @@ class Obj3 < Dry::Struct
54795452 "left" => left.to_dynamic,
54805453 "let" => let.to_dynamic,
54815454 "list" => list.to_dynamic,
5455+ "LocalDate" => local_date.to_dynamic,
54825456 "Locale" => locale.to_dynamic,
54835457 "lock" => lock.to_dynamic,
54845458 "long" => long.to_dynamic,
@@ -5491,13 +5465,36 @@ class Obj3 < Dry::Struct
54915465 "namespace" => namespace.to_dynamic,
54925466 "native" => native.to_dynamic,
54935467 "newtonsoft" => newtonsoft.to_dynamic,
5494- "NO" => no.to_dynamic,
54955468 "if" => obj3_if.to_dynamic,
54965469 "in" => obj3_in.to_dynamic,
54975470 "lambda" => obj3_lambda.to_dynamic,
54985471 "module" => obj3_module.to_dynamic,
54995472 "new" => obj3_new.to_dynamic,
5500- "nil" => obj3_nil.to_dynamic,
5473+ }
5474+ end
5475+
5476+ def to_json(options = nil)
5477+ JSON.generate(to_dynamic, options)
5478+ end
5479+end
5480+
5481+class No < Dry::Struct
5482+ attribute :no, Types::Integer
5483+
5484+ def self.from_dynamic!(d)
5485+ d = Types::Hash[d]
5486+ new(
5487+ no: d.fetch("NO"),
5488+ )
5489+ end
5490+
5491+ def self.from_json!(json)
5492+ from_dynamic!(JSON.parse(json))
5493+ end
5494+
5495+ def to_dynamic
5496+ {
5497+ "NO" => no,
55015498 }
55025499 end
55035500
@@ -5831,6 +5828,31 @@ class Number < Dry::Struct
58315828 end
58325829 end
58335830
5831+class Nil < Dry::Struct
5832+ attribute :nil_nil, Types::Integer
5833+
5834+ def self.from_dynamic!(d)
5835+ d = Types::Hash[d]
5836+ new(
5837+ nil_nil: d.fetch("nil"),
5838+ )
5839+ end
5840+
5841+ def self.from_json!(json)
5842+ from_dynamic!(JSON.parse(json))
5843+ end
5844+
5845+ def to_dynamic
5846+ {
5847+ "nil" => nil_nil,
5848+ }
5849+ end
5850+
5851+ def to_json(options = nil)
5852+ JSON.generate(to_dynamic, options)
5853+ end
5854+end
5855+
58345856 class NoneClass < Dry::Struct
58355857 attribute :none, Types::Integer
58365858
@@ -6206,6 +6228,56 @@ class Of < Dry::Struct
62066228 end
62076229 end
62086230
6231+class OffsetDateTime < Dry::Struct
6232+ attribute :offset_date_time, Types::Integer
6233+
6234+ def self.from_dynamic!(d)
6235+ d = Types::Hash[d]
6236+ new(
6237+ offset_date_time: d.fetch("OffsetDateTime"),
6238+ )
6239+ end
6240+
6241+ def self.from_json!(json)
6242+ from_dynamic!(JSON.parse(json))
6243+ end
6244+
6245+ def to_dynamic
6246+ {
6247+ "OffsetDateTime" => offset_date_time,
6248+ }
6249+ end
6250+
6251+ def to_json(options = nil)
6252+ JSON.generate(to_dynamic, options)
6253+ end
6254+end
6255+
6256+class OffsetTime < Dry::Struct
6257+ attribute :offset_time, Types::Integer
6258+
6259+ def self.from_dynamic!(d)
6260+ d = Types::Hash[d]
6261+ new(
6262+ offset_time: d.fetch("OffsetTime"),
6263+ )
6264+ end
6265+
6266+ def self.from_json!(json)
6267+ from_dynamic!(JSON.parse(json))
6268+ end
6269+
6270+ def to_dynamic
6271+ {
6272+ "OffsetTime" => offset_time,
6273+ }
6274+ end
6275+
6276+ def to_json(options = nil)
6277+ JSON.generate(to_dynamic, options)
6278+ end
6279+end
6280+
62096281 class Oneway < Dry::Struct
62106282 attribute :oneway, Types::Integer
62116283
@@ -7006,177 +7078,78 @@ class RuntimeType < Dry::Struct
70067078 end
70077079 end
70087080
7009-class S < Dry::Struct
7010- attribute :s, Types::Integer
7011-
7012- def self.from_dynamic!(d)
7013- d = Types::Hash[d]
7014- new(
7015- s: d.fetch("s"),
7016- )
7017- end
7018-
7019- def self.from_json!(json)
7020- from_dynamic!(JSON.parse(json))
7021- end
7022-
7023- def to_dynamic
7024- {
7025- "s" => s,
7026- }
7027- end
7028-
7029- def to_json(options = nil)
7030- JSON.generate(to_dynamic, options)
7031- end
7032-end
7033-
7034-class Sbyte < Dry::Struct
7035- attribute :sbyte, Types::Integer
7036-
7037- def self.from_dynamic!(d)
7038- d = Types::Hash[d]
7039- new(
7040- sbyte: d.fetch("sbyte"),
7041- )
7042- end
7043-
7044- def self.from_json!(json)
7045- from_dynamic!(JSON.parse(json))
7046- end
7047-
7048- def to_dynamic
7049- {
7050- "sbyte" => sbyte,
7051- }
7052- end
7053-
7054- def to_json(options = nil)
7055- JSON.generate(to_dynamic, options)
7056- end
7057-end
7058-
7059-class Sealed < Dry::Struct
7060- attribute :sealed, Types::Integer
7061-
7062- def self.from_dynamic!(d)
7063- d = Types::Hash[d]
7064- new(
7065- sealed: d.fetch("sealed"),
7066- )
7067- end
7068-
7069- def self.from_json!(json)
7070- from_dynamic!(JSON.parse(json))
7071- end
7072-
7073- def to_dynamic
7074- {
7075- "sealed" => sealed,
7076- }
7077- end
7078-
7079- def to_json(options = nil)
7080- JSON.generate(to_dynamic, options)
7081- end
7082-end
7083-
7084-class Sel < Dry::Struct
7085- attribute :sel, Types::Integer
7086-
7087- def self.from_dynamic!(d)
7088- d = Types::Hash[d]
7089- new(
7090- sel: d.fetch("SEL"),
7091- )
7092- end
7093-
7094- def self.from_json!(json)
7095- from_dynamic!(JSON.parse(json))
7096- end
7097-
7098- def to_dynamic
7099- {
7100- "SEL" => sel,
7101- }
7102- end
7103-
7104- def to_json(options = nil)
7105- JSON.generate(to_dynamic, options)
7106- end
7107-end
7108-
7109-class Obj4 < Dry::Struct
7110- attribute :dummy, Types::Integer
7111- attribute :no_such_method, NoSuchMethod
7112- attribute :noexcept, Noexcept
7113- attribute :nonatomic, Nonatomic
7114- attribute :none, None
7115- attribute :nonlocal, Nonlocal
7116- attribute :nonmutating, Nonmutating
7117- attribute :not_eq, NotEq
7118- attribute :ns_error, NSError
7119- attribute :ns_object, NSObject
7120- attribute :ns_string, NSString
7121- attribute :null, Null
7122- attribute :nullptr, Nullptr
7123- attribute :number, Number
7124- attribute :obj4_none, NoneClass
7125- attribute :obj4_not, Not
7126- attribute :obj4_null, NullClass
7127- attribute :obj4_open, Open
7128- attribute :obj4_optional, Optional
7129- attribute :obj4_or, Or
7130- attribute :obj4_print, Print
7131- attribute :obj4_printf, Printf
7132- attribute :obj4_protocol, ProtocolClass
7133- attribute :obj4_raise, Raise
7134- attribute :obj4_require, Require
7135- attribute :obj4_return, Return
7136- attribute :object, ObjectClass
7137- attribute :object_mapper, ObjectMapper
7138- attribute :of, Of
7139- attribute :oneway, Oneway
7140- attribute :operator, Operator
7141- attribute :or_eq, OrEq
7142- attribute :out, Out
7143- attribute :override, Override
7144- attribute :package, Package
7145- attribute :params, Params
7146- attribute :pass, Pass
7147- attribute :port, Port
7148- attribute :postfix, Postfix
7149- attribute :precedence, Precedence
7150- attribute :prefix, Prefix
7151- attribute :print_members, PrintMembers
7152- attribute :private, Private
7153- attribute :protected, Protected
7154- attribute :protocol, Protocol
7155- attribute :public, Public
7156- attribute :quicktype, Quicktype
7157- attribute :range, RangeClass
7158- attribute :readonly, Readonly
7159- attribute :ref, Ref
7160- attribute :reg_exp, RegExp
7161- attribute :register, Register
7162- attribute :reinterpret_cast, ReinterpretCast
7163- attribute :repeat, Repeat
7164- attribute :required, Required
7165- attribute :requires, Requires
7166- attribute :restrict, Restrict
7167- attribute :retain, Retain
7168- attribute :rethrows, Rethrows
7169- attribute :right, Right
7170- attribute :runtime_type, RuntimeType
7171- attribute :s, S
7172- attribute :sbyte, Sbyte
7173- attribute :sealed, Sealed
7174- attribute :sel, Sel
7081+class Obj4 < Dry::Struct
7082+ attribute :dummy, Types::Integer
7083+ attribute :no, No
7084+ attribute :no_such_method, NoSuchMethod
7085+ attribute :noexcept, Noexcept
7086+ attribute :nonatomic, Nonatomic
7087+ attribute :none, None
7088+ attribute :nonlocal, Nonlocal
7089+ attribute :nonmutating, Nonmutating
7090+ attribute :not_eq, NotEq
7091+ attribute :ns_error, NSError
7092+ attribute :ns_object, NSObject
7093+ attribute :ns_string, NSString
7094+ attribute :null, Null
7095+ attribute :nullptr, Nullptr
7096+ attribute :number, Number
7097+ attribute :obj4_nil, Nil
7098+ attribute :obj4_none, NoneClass
7099+ attribute :obj4_not, Not
7100+ attribute :obj4_null, NullClass
7101+ attribute :obj4_open, Open
7102+ attribute :obj4_optional, Optional
7103+ attribute :obj4_or, Or
7104+ attribute :obj4_print, Print
7105+ attribute :obj4_printf, Printf
7106+ attribute :obj4_protocol, ProtocolClass
7107+ attribute :obj4_raise, Raise
7108+ attribute :obj4_require, Require
7109+ attribute :obj4_return, Return
7110+ attribute :object, ObjectClass
7111+ attribute :object_mapper, ObjectMapper
7112+ attribute :of, Of
7113+ attribute :offset_date_time, OffsetDateTime
7114+ attribute :offset_time, OffsetTime
7115+ attribute :oneway, Oneway
7116+ attribute :operator, Operator
7117+ attribute :or_eq, OrEq
7118+ attribute :out, Out
7119+ attribute :override, Override
7120+ attribute :package, Package
7121+ attribute :params, Params
7122+ attribute :pass, Pass
7123+ attribute :port, Port
7124+ attribute :postfix, Postfix
7125+ attribute :precedence, Precedence
7126+ attribute :prefix, Prefix
7127+ attribute :print_members, PrintMembers
7128+ attribute :private, Private
7129+ attribute :protected, Protected
7130+ attribute :protocol, Protocol
7131+ attribute :public, Public
7132+ attribute :quicktype, Quicktype
7133+ attribute :range, RangeClass
7134+ attribute :readonly, Readonly
7135+ attribute :ref, Ref
7136+ attribute :reg_exp, RegExp
7137+ attribute :register, Register
7138+ attribute :reinterpret_cast, ReinterpretCast
7139+ attribute :repeat, Repeat
7140+ attribute :required, Required
7141+ attribute :requires, Requires
7142+ attribute :restrict, Restrict
7143+ attribute :retain, Retain
7144+ attribute :rethrows, Rethrows
7145+ attribute :right, Right
7146+ attribute :runtime_type, RuntimeType
71757147
71767148 def self.from_dynamic!(d)
71777149 d = Types::Hash[d]
71787150 new(
71797151 dummy: d.fetch("dummy"),
7152+ no: No.from_dynamic!(d.fetch("NO")),
71807153 no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")),
71817154 noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
71827155 nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")),
@@ -7190,6 +7163,7 @@ class Obj4 < Dry::Struct
71907163 null: Null.from_dynamic!(d.fetch("NULL")),
71917164 nullptr: Nullptr.from_dynamic!(d.fetch("nullptr")),
71927165 number: Number.from_dynamic!(d.fetch("number")),
7166+ obj4_nil: Nil.from_dynamic!(d.fetch("nil")),
71937167 obj4_none: NoneClass.from_dynamic!(d.fetch("none")),
71947168 obj4_not: Not.from_dynamic!(d.fetch("not")),
71957169 obj4_null: NullClass.from_dynamic!(d.fetch("null")),
@@ -7205,6 +7179,8 @@ class Obj4 < Dry::Struct
72057179 object: ObjectClass.from_dynamic!(d.fetch("object")),
72067180 object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")),
72077181 of: Of.from_dynamic!(d.fetch("of")),
7182+ offset_date_time: OffsetDateTime.from_dynamic!(d.fetch("OffsetDateTime")),
7183+ offset_time: OffsetTime.from_dynamic!(d.fetch("OffsetTime")),
72087184 oneway: Oneway.from_dynamic!(d.fetch("oneway")),
72097185 operator: Operator.from_dynamic!(d.fetch("operator")),
72107186 or_eq: OrEq.from_dynamic!(d.fetch("or_eq")),
@@ -7237,10 +7213,6 @@ class Obj4 < Dry::Struct
72377213 rethrows: Rethrows.from_dynamic!(d.fetch("rethrows")),
72387214 right: Right.from_dynamic!(d.fetch("right")),
72397215 runtime_type: RuntimeType.from_dynamic!(d.fetch("runtimeType")),
7240- s: S.from_dynamic!(d.fetch("s")),
7241- sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")),
7242- sealed: Sealed.from_dynamic!(d.fetch("sealed")),
7243- sel: Sel.from_dynamic!(d.fetch("SEL")),
72447216 )
72457217 end
72467218
@@ -7251,6 +7223,7 @@ class Obj4 < Dry::Struct
72517223 def to_dynamic
72527224 {
72537225 "dummy" => dummy,
7226+ "NO" => no.to_dynamic,
72547227 "noSuchMethod" => no_such_method.to_dynamic,
72557228 "noexcept" => noexcept.to_dynamic,
72567229 "nonatomic" => nonatomic.to_dynamic,
@@ -7264,6 +7237,7 @@ class Obj4 < Dry::Struct
72647237 "NULL" => null.to_dynamic,
72657238 "nullptr" => nullptr.to_dynamic,
72667239 "number" => number.to_dynamic,
7240+ "nil" => obj4_nil.to_dynamic,
72677241 "none" => obj4_none.to_dynamic,
72687242 "not" => obj4_not.to_dynamic,
72697243 "null" => obj4_null.to_dynamic,
@@ -7279,6 +7253,8 @@ class Obj4 < Dry::Struct
72797253 "object" => object.to_dynamic,
72807254 "ObjectMapper" => object_mapper.to_dynamic,
72817255 "of" => of.to_dynamic,
7256+ "OffsetDateTime" => offset_date_time.to_dynamic,
7257+ "OffsetTime" => offset_time.to_dynamic,
72827258 "oneway" => oneway.to_dynamic,
72837259 "operator" => operator.to_dynamic,
72847260 "or_eq" => or_eq.to_dynamic,
@@ -7311,10 +7287,6 @@ class Obj4 < Dry::Struct
73117287 "rethrows" => rethrows.to_dynamic,
73127288 "right" => right.to_dynamic,
73137289 "runtimeType" => runtime_type.to_dynamic,
7314- "s" => s.to_dynamic,
7315- "sbyte" => sbyte.to_dynamic,
7316- "sealed" => sealed.to_dynamic,
7317- "SEL" => sel.to_dynamic,
73187290 }
73197291 end
73207292
@@ -7623,6 +7595,106 @@ class PrimitiveKind < Dry::Struct
76237595 end
76247596 end
76257597
7598+class S < Dry::Struct
7599+ attribute :s, Types::Integer
7600+
7601+ def self.from_dynamic!(d)
7602+ d = Types::Hash[d]
7603+ new(
7604+ s: d.fetch("s"),
7605+ )
7606+ end
7607+
7608+ def self.from_json!(json)
7609+ from_dynamic!(JSON.parse(json))
7610+ end
7611+
7612+ def to_dynamic
7613+ {
7614+ "s" => s,
7615+ }
7616+ end
7617+
7618+ def to_json(options = nil)
7619+ JSON.generate(to_dynamic, options)
7620+ end
7621+end
7622+
7623+class Sbyte < Dry::Struct
7624+ attribute :sbyte, Types::Integer
7625+
7626+ def self.from_dynamic!(d)
7627+ d = Types::Hash[d]
7628+ new(
7629+ sbyte: d.fetch("sbyte"),
7630+ )
7631+ end
7632+
7633+ def self.from_json!(json)
7634+ from_dynamic!(JSON.parse(json))
7635+ end
7636+
7637+ def to_dynamic
7638+ {
7639+ "sbyte" => sbyte,
7640+ }
7641+ end
7642+
7643+ def to_json(options = nil)
7644+ JSON.generate(to_dynamic, options)
7645+ end
7646+end
7647+
7648+class Sealed < Dry::Struct
7649+ attribute :sealed, Types::Integer
7650+
7651+ def self.from_dynamic!(d)
7652+ d = Types::Hash[d]
7653+ new(
7654+ sealed: d.fetch("sealed"),
7655+ )
7656+ end
7657+
7658+ def self.from_json!(json)
7659+ from_dynamic!(JSON.parse(json))
7660+ end
7661+
7662+ def to_dynamic
7663+ {
7664+ "sealed" => sealed,
7665+ }
7666+ end
7667+
7668+ def to_json(options = nil)
7669+ JSON.generate(to_dynamic, options)
7670+ end
7671+end
7672+
7673+class Sel < Dry::Struct
7674+ attribute :sel, Types::Integer
7675+
7676+ def self.from_dynamic!(d)
7677+ d = Types::Hash[d]
7678+ new(
7679+ sel: d.fetch("SEL"),
7680+ )
7681+ end
7682+
7683+ def self.from_json!(json)
7684+ from_dynamic!(JSON.parse(json))
7685+ end
7686+
7687+ def to_dynamic
7688+ {
7689+ "SEL" => sel,
7690+ }
7691+ end
7692+
7693+ def to_json(options = nil)
7694+ JSON.generate(to_dynamic, options)
7695+ end
7696+end
7697+
76267698 class Obj5Self < Dry::Struct
76277699 attribute :self_self, Types::Integer
76287700
@@ -8823,131 +8895,6 @@ class UndefinedClass < Dry::Struct
88238895 end
88248896 end
88258897
8826-class Union < Dry::Struct
8827- attribute :union, Types::Integer
8828-
8829- def self.from_dynamic!(d)
8830- d = Types::Hash[d]
8831- new(
8832- union: d.fetch("union"),
8833- )
8834- end
8835-
8836- def self.from_json!(json)
8837- from_dynamic!(JSON.parse(json))
8838- end
8839-
8840- def to_dynamic
8841- {
8842- "union" => union,
8843- }
8844- end
8845-
8846- def to_json(options = nil)
8847- JSON.generate(to_dynamic, options)
8848- end
8849-end
8850-
8851-class UnmarshalJSON < Dry::Struct
8852- attribute :unmarshal_json, Types::Integer
8853-
8854- def self.from_dynamic!(d)
8855- d = Types::Hash[d]
8856- new(
8857- unmarshal_json: d.fetch("UnmarshalJSON"),
8858- )
8859- end
8860-
8861- def self.from_json!(json)
8862- from_dynamic!(JSON.parse(json))
8863- end
8864-
8865- def to_dynamic
8866- {
8867- "UnmarshalJSON" => unmarshal_json,
8868- }
8869- end
8870-
8871- def to_json(options = nil)
8872- JSON.generate(to_dynamic, options)
8873- end
8874-end
8875-
8876-class Unowned < Dry::Struct
8877- attribute :unowned, Types::Integer
8878-
8879- def self.from_dynamic!(d)
8880- d = Types::Hash[d]
8881- new(
8882- unowned: d.fetch("unowned"),
8883- )
8884- end
8885-
8886- def self.from_json!(json)
8887- from_dynamic!(JSON.parse(json))
8888- end
8889-
8890- def to_dynamic
8891- {
8892- "unowned" => unowned,
8893- }
8894- end
8895-
8896- def to_json(options = nil)
8897- JSON.generate(to_dynamic, options)
8898- end
8899-end
8900-
8901-class Unsafe < Dry::Struct
8902- attribute :unsafe, Types::Integer
8903-
8904- def self.from_dynamic!(d)
8905- d = Types::Hash[d]
8906- new(
8907- unsafe: d.fetch("unsafe"),
8908- )
8909- end
8910-
8911- def self.from_json!(json)
8912- from_dynamic!(JSON.parse(json))
8913- end
8914-
8915- def to_dynamic
8916- {
8917- "unsafe" => unsafe,
8918- }
8919- end
8920-
8921- def to_json(options = nil)
8922- JSON.generate(to_dynamic, options)
8923- end
8924-end
8925-
8926-class UseSerializers < Dry::Struct
8927- attribute :use_serializers, Types::Integer
8928-
8929- def self.from_dynamic!(d)
8930- d = Types::Hash[d]
8931- new(
8932- use_serializers: d.fetch("UseSerializers"),
8933- )
8934- end
8935-
8936- def self.from_json!(json)
8937- from_dynamic!(JSON.parse(json))
8938- end
8939-
8940- def to_dynamic
8941- {
8942- "UseSerializers" => use_serializers,
8943- }
8944- end
8945-
8946- def to_json(options = nil)
8947- JSON.generate(to_dynamic, options)
8948- end
8949-end
8950-
89518898 class Obj5 < Dry::Struct
89528899 attribute :dummy, Types::Integer
89538900 attribute :k_serializer, KSerializer
@@ -8962,6 +8909,10 @@ class Obj5 < Dry::Struct
89628909 attribute :obj5_try, Try
89638910 attribute :obj5_type, Type
89648911 attribute :primitive_kind, PrimitiveKind
8912+ attribute :s, S
8913+ attribute :sbyte, Sbyte
8914+ attribute :sealed, Sealed
8915+ attribute :sel, Sel
89658916 attribute :self_1, Obj5Self
89668917 attribute :sendable, Sendable
89678918 attribute :serial_descriptor, SerialDescriptor
@@ -9010,11 +8961,6 @@ class Obj5 < Dry::Struct
90108961 attribute :ulong, Ulong
90118962 attribute :unchecked, Unchecked
90128963 attribute :undefined, UndefinedClass
9013- attribute :union, Union
9014- attribute :unmarshal_json, UnmarshalJSON
9015- attribute :unowned, Unowned
9016- attribute :unsafe, Unsafe
9017- attribute :use_serializers, UseSerializers
90188964
90198965 def self.from_dynamic!(d)
90208966 d = Types::Hash[d]
@@ -9032,6 +8978,10 @@ class Obj5 < Dry::Struct
90328978 obj5_try: Try.from_dynamic!(d.fetch("try")),
90338979 obj5_type: Type.from_dynamic!(d.fetch("Type")),
90348980 primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")),
8981+ s: S.from_dynamic!(d.fetch("s")),
8982+ sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")),
8983+ sealed: Sealed.from_dynamic!(d.fetch("sealed")),
8984+ sel: Sel.from_dynamic!(d.fetch("SEL")),
90358985 self_1: Obj5Self.from_dynamic!(d.fetch("self")),
90368986 sendable: Sendable.from_dynamic!(d.fetch("Sendable")),
90378987 serial_descriptor: SerialDescriptor.from_dynamic!(d.fetch("SerialDescriptor")),
@@ -9080,11 +9030,6 @@ class Obj5 < Dry::Struct
90809030 ulong: Ulong.from_dynamic!(d.fetch("ulong")),
90819031 unchecked: Unchecked.from_dynamic!(d.fetch("unchecked")),
90829032 undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")),
9083- union: Union.from_dynamic!(d.fetch("union")),
9084- unmarshal_json: UnmarshalJSON.from_dynamic!(d.fetch("UnmarshalJSON")),
9085- unowned: Unowned.from_dynamic!(d.fetch("unowned")),
9086- unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
9087- use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")),
90889033 )
90899034 end
90909035
@@ -9107,6 +9052,10 @@ class Obj5 < Dry::Struct
91079052 "try" => obj5_try.to_dynamic,
91089053 "Type" => obj5_type.to_dynamic,
91099054 "PrimitiveKind" => primitive_kind.to_dynamic,
9055+ "s" => s.to_dynamic,
9056+ "sbyte" => sbyte.to_dynamic,
9057+ "sealed" => sealed.to_dynamic,
9058+ "SEL" => sel.to_dynamic,
91109059 "self" => self_1.to_dynamic,
91119060 "Sendable" => sendable.to_dynamic,
91129061 "SerialDescriptor" => serial_descriptor.to_dynamic,
@@ -9155,11 +9104,6 @@ class Obj5 < Dry::Struct
91559104 "ulong" => ulong.to_dynamic,
91569105 "unchecked" => unchecked.to_dynamic,
91579106 "undefined" => undefined.to_dynamic,
9158- "union" => union.to_dynamic,
9159- "UnmarshalJSON" => unmarshal_json.to_dynamic,
9160- "unowned" => unowned.to_dynamic,
9161- "unsafe" => unsafe.to_dynamic,
9162- "UseSerializers" => use_serializers.to_dynamic,
91639107 }
91649108 end
91659109
@@ -9243,6 +9187,106 @@ class Yield < Dry::Struct
92439187 end
92449188 end
92459189
9190+class Union < Dry::Struct
9191+ attribute :union, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ union: d.fetch("union"),
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+ "union" => union,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class UnmarshalJSON < Dry::Struct
9216+ attribute :unmarshal_json, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ unmarshal_json: d.fetch("UnmarshalJSON"),
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+ "UnmarshalJSON" => unmarshal_json,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
9240+class Unowned < Dry::Struct
9241+ attribute :unowned, Types::Integer
9242+
9243+ def self.from_dynamic!(d)
9244+ d = Types::Hash[d]
9245+ new(
9246+ unowned: d.fetch("unowned"),
9247+ )
9248+ end
9249+
9250+ def self.from_json!(json)
9251+ from_dynamic!(JSON.parse(json))
9252+ end
9253+
9254+ def to_dynamic
9255+ {
9256+ "unowned" => unowned,
9257+ }
9258+ end
9259+
9260+ def to_json(options = nil)
9261+ JSON.generate(to_dynamic, options)
9262+ end
9263+end
9264+
9265+class Unsafe < Dry::Struct
9266+ attribute :unsafe, Types::Integer
9267+
9268+ def self.from_dynamic!(d)
9269+ d = Types::Hash[d]
9270+ new(
9271+ unsafe: d.fetch("unsafe"),
9272+ )
9273+ end
9274+
9275+ def self.from_json!(json)
9276+ from_dynamic!(JSON.parse(json))
9277+ end
9278+
9279+ def to_dynamic
9280+ {
9281+ "unsafe" => unsafe,
9282+ }
9283+ end
9284+
9285+ def to_json(options = nil)
9286+ JSON.generate(to_dynamic, options)
9287+ end
9288+end
9289+
92469290 class Unsigned < Dry::Struct
92479291 attribute :unsigned, Types::Integer
92489292
@@ -9268,6 +9312,31 @@ class Unsigned < Dry::Struct
92689312 end
92699313 end
92709314
9315+class UseSerializers < Dry::Struct
9316+ attribute :use_serializers, Types::Integer
9317+
9318+ def self.from_dynamic!(d)
9319+ d = Types::Hash[d]
9320+ new(
9321+ use_serializers: d.fetch("UseSerializers"),
9322+ )
9323+ end
9324+
9325+ def self.from_json!(json)
9326+ from_dynamic!(JSON.parse(json))
9327+ end
9328+
9329+ def to_dynamic
9330+ {
9331+ "UseSerializers" => use_serializers,
9332+ }
9333+ end
9334+
9335+ def to_json(options = nil)
9336+ JSON.generate(to_dynamic, options)
9337+ end
9338+end
9339+
92719340 class Ushort < Dry::Struct
92729341 attribute :ushort, Types::Integer
92739342
@@ -9673,7 +9742,12 @@ class Obj6 < Dry::Struct
96739742 attribute :obj6_while, While
96749743 attribute :obj6_with, With
96759744 attribute :obj6_yield, Yield
9745+ attribute :union, Union
9746+ attribute :unmarshal_json, UnmarshalJSON
9747+ attribute :unowned, Unowned
9748+ attribute :unsafe, Unsafe
96769749 attribute :unsigned, Unsigned
9750+ attribute :use_serializers, UseSerializers
96779751 attribute :ushort, Ushort
96789752 attribute :using, Using
96799753 attribute :utf8_json_reader, Utf8JSONReader
@@ -9698,7 +9772,12 @@ class Obj6 < Dry::Struct
96989772 obj6_while: While.from_dynamic!(d.fetch("while")),
96999773 obj6_with: With.from_dynamic!(d.fetch("with")),
97009774 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9775+ union: Union.from_dynamic!(d.fetch("union")),
9776+ unmarshal_json: UnmarshalJSON.from_dynamic!(d.fetch("UnmarshalJSON")),
9777+ unowned: Unowned.from_dynamic!(d.fetch("unowned")),
9778+ unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
97019779 unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
9780+ use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")),
97029781 ushort: Ushort.from_dynamic!(d.fetch("ushort")),
97039782 using: Using.from_dynamic!(d.fetch("using")),
97049783 utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
@@ -9728,7 +9807,12 @@ class Obj6 < Dry::Struct
97289807 "while" => obj6_while.to_dynamic,
97299808 "with" => obj6_with.to_dynamic,
97309809 "yield" => obj6_yield.to_dynamic,
9810+ "union" => union.to_dynamic,
9811+ "UnmarshalJSON" => unmarshal_json.to_dynamic,
9812+ "unowned" => unowned.to_dynamic,
9813+ "unsafe" => unsafe.to_dynamic,
97319814 "unsigned" => unsigned.to_dynamic,
9815+ "UseSerializers" => use_serializers.to_dynamic,
97329816 "ushort" => ushort.to_dynamic,
97339817 "using" => using.to_dynamic,
97349818 "Utf8JsonReader" => utf8_json_reader.to_dynamic,
Mrustdefault / module_under_test.rs+115 −88
@@ -1145,6 +1145,9 @@ pub struct Obj3 {
11451145
11461146 pub list: List,
11471147
1148+ #[serde(rename = "LocalDate")]
1149+ pub local_date: LocalDate,
1150+
11481151 #[serde(rename = "Locale")]
11491152 pub locale: Locale,
11501153
@@ -1176,11 +1179,6 @@ pub struct Obj3 {
11761179
11771180 pub newtonsoft: Newtonsoft,
11781181
1179- pub nil: Nil,
1180-
1181- #[serde(rename = "NO")]
1182- pub no: No,
1183-
11841182 #[serde(rename = "if")]
11851183 pub obj3_if: If,
11861184
@@ -1443,6 +1441,12 @@ pub struct List {
14431441 pub list: i64,
14441442 }
14451443
1444+#[derive(Debug, Clone, Serialize, Deserialize)]
1445+#[serde(rename_all = "PascalCase")]
1446+pub struct LocalDate {
1447+ pub local_date: i64,
1448+}
1449+
14461450 #[derive(Debug, Clone, Serialize, Deserialize)]
14471451 #[serde(rename_all = "PascalCase")]
14481452 pub struct Locale {
@@ -1517,17 +1521,6 @@ pub struct Newtonsoft {
15171521 pub newtonsoft: i64,
15181522 }
15191523
1520-#[derive(Debug, Clone, Serialize, Deserialize)]
1521-pub struct Nil {
1522- pub nil: i64,
1523-}
1524-
1525-#[derive(Debug, Clone, Serialize, Deserialize)]
1526-#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
1527-pub struct No {
1528- pub no: i64,
1529-}
1530-
15311524 #[derive(Debug, Clone, Serialize, Deserialize)]
15321525 pub struct If {
15331526 #[serde(rename = "if")]
@@ -1550,6 +1543,11 @@ pub struct Let {
15501543 pub struct Obj4 {
15511544 pub dummy: i64,
15521545
1546+ pub nil: Nil,
1547+
1548+ #[serde(rename = "NO")]
1549+ pub no: No,
1550+
15531551 #[serde(rename = "noSuchMethod")]
15541552 pub no_such_method: NoSuchMethod,
15551553
@@ -1609,6 +1607,12 @@ pub struct Obj4 {
16091607
16101608 pub of: Of,
16111609
1610+ #[serde(rename = "OffsetDateTime")]
1611+ pub offset_date_time: OffsetDateTime,
1612+
1613+ #[serde(rename = "OffsetTime")]
1614+ pub offset_time: OffsetTime,
1615+
16121616 pub oneway: Oneway,
16131617
16141618 pub open: Open,
@@ -1686,15 +1690,17 @@ pub struct Obj4 {
16861690
16871691 #[serde(rename = "runtimeType")]
16881692 pub runtime_type: RuntimeType,
1693+}
16891694
1690- pub s: S,
1691-
1692- pub sbyte: Sbyte,
1693-
1694- pub sealed: Sealed,
1695+#[derive(Debug, Clone, Serialize, Deserialize)]
1696+pub struct Nil {
1697+ pub nil: i64,
1698+}
16951699
1696- #[serde(rename = "SEL")]
1697- pub sel: Sel,
1700+#[derive(Debug, Clone, Serialize, Deserialize)]
1701+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
1702+pub struct No {
1703+ pub no: i64,
16981704 }
16991705
17001706 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1825,6 +1831,18 @@ pub struct Of {
18251831 pub of: i64,
18261832 }
18271833
1834+#[derive(Debug, Clone, Serialize, Deserialize)]
1835+#[serde(rename_all = "PascalCase")]
1836+pub struct OffsetDateTime {
1837+ pub offset_date_time: i64,
1838+}
1839+
1840+#[derive(Debug, Clone, Serialize, Deserialize)]
1841+#[serde(rename_all = "PascalCase")]
1842+pub struct OffsetTime {
1843+ pub offset_time: i64,
1844+}
1845+
18281846 #[derive(Debug, Clone, Serialize, Deserialize)]
18291847 pub struct Oneway {
18301848 pub oneway: i64,
@@ -2014,27 +2032,6 @@ pub struct RuntimeType {
20142032 pub runtime_type: i64,
20152033 }
20162034
2017-#[derive(Debug, Clone, Serialize, Deserialize)]
2018-pub struct S {
2019- pub s: i64,
2020-}
2021-
2022-#[derive(Debug, Clone, Serialize, Deserialize)]
2023-pub struct Sbyte {
2024- pub sbyte: i64,
2025-}
2026-
2027-#[derive(Debug, Clone, Serialize, Deserialize)]
2028-pub struct Sealed {
2029- pub sealed: i64,
2030-}
2031-
2032-#[derive(Debug, Clone, Serialize, Deserialize)]
2033-#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2034-pub struct Sel {
2035- pub sel: i64,
2036-}
2037-
20382035 #[derive(Debug, Clone, Serialize, Deserialize)]
20392036 pub struct Obj5 {
20402037 pub dummy: i64,
@@ -2066,12 +2063,6 @@ pub struct Obj5 {
20662063 #[serde(rename = "typeof")]
20672064 pub obj5_typeof: Typeof,
20682065
2069- #[serde(rename = "union")]
2070- pub obj5_union: Union,
2071-
2072- #[serde(rename = "unsafe")]
2073- pub obj5_unsafe: Unsafe,
2074-
20752066 #[serde(rename = "PrimitiveKind")]
20762067 pub primitive_kind: PrimitiveKind,
20772068
@@ -2084,6 +2075,15 @@ pub struct Obj5 {
20842075 #[serde(rename = "type")]
20852076 pub purple_type: TypeClass,
20862077
2078+ pub s: S,
2079+
2080+ pub sbyte: Sbyte,
2081+
2082+ pub sealed: Sealed,
2083+
2084+ #[serde(rename = "SEL")]
2085+ pub sel: Sel,
2086+
20872087 pub select: Select,
20882088
20892089 #[serde(rename = "Sendable")]
@@ -2190,14 +2190,6 @@ pub struct Obj5 {
21902190 pub unchecked: Unchecked,
21912191
21922192 pub undefined: Undefined,
2193-
2194- #[serde(rename = "UnmarshalJSON")]
2195- pub unmarshal_json: UnmarshalJson,
2196-
2197- pub unowned: Unowned,
2198-
2199- #[serde(rename = "UseSerializers")]
2200- pub use_serializers: UseSerializers,
22012193 }
22022194
22032195 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2257,18 +2249,6 @@ pub struct Typeof {
22572249 pub typeof_typeof: i64,
22582250 }
22592251
2260-#[derive(Debug, Clone, Serialize, Deserialize)]
2261-pub struct Union {
2262- #[serde(rename = "union")]
2263- pub union_union: i64,
2264-}
2265-
2266-#[derive(Debug, Clone, Serialize, Deserialize)]
2267-pub struct Unsafe {
2268- #[serde(rename = "unsafe")]
2269- pub unsafe_unsafe: i64,
2270-}
2271-
22722252 #[derive(Debug, Clone, Serialize, Deserialize)]
22732253 #[serde(rename_all = "PascalCase")]
22742254 pub struct PrimitiveKind {
@@ -2293,6 +2273,27 @@ pub struct TypeClass {
22932273 pub type_type: i64,
22942274 }
22952275
2276+#[derive(Debug, Clone, Serialize, Deserialize)]
2277+pub struct S {
2278+ pub s: i64,
2279+}
2280+
2281+#[derive(Debug, Clone, Serialize, Deserialize)]
2282+pub struct Sbyte {
2283+ pub sbyte: i64,
2284+}
2285+
2286+#[derive(Debug, Clone, Serialize, Deserialize)]
2287+pub struct Sealed {
2288+ pub sealed: i64,
2289+}
2290+
2291+#[derive(Debug, Clone, Serialize, Deserialize)]
2292+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2293+pub struct Sel {
2294+ pub sel: i64,
2295+}
2296+
22962297 #[derive(Debug, Clone, Serialize, Deserialize)]
22972298 pub struct Select {
22982299 pub select: i64,
@@ -2541,28 +2542,16 @@ pub struct Undefined {
25412542 pub undefined: i64,
25422543 }
25432544
2544-#[derive(Debug, Clone, Serialize, Deserialize)]
2545-#[serde(rename_all = "PascalCase")]
2546-pub struct UnmarshalJson {
2547- #[serde(rename = "UnmarshalJSON")]
2548- pub unmarshal_json: i64,
2549-}
2550-
2551-#[derive(Debug, Clone, Serialize, Deserialize)]
2552-pub struct Unowned {
2553- pub unowned: i64,
2554-}
2555-
2556-#[derive(Debug, Clone, Serialize, Deserialize)]
2557-#[serde(rename_all = "PascalCase")]
2558-pub struct UseSerializers {
2559- pub use_serializers: i64,
2560-}
2561-
25622545 #[derive(Debug, Clone, Serialize, Deserialize)]
25632546 pub struct Obj6 {
25642547 pub dummy: i64,
25652548
2549+ #[serde(rename = "union")]
2550+ pub obj6_union: Union,
2551+
2552+ #[serde(rename = "unsafe")]
2553+ pub obj6_unsafe: Unsafe,
2554+
25662555 #[serde(rename = "virtual")]
25672556 pub obj6_virtual: Virtual,
25682557
@@ -2575,8 +2564,16 @@ pub struct Obj6 {
25752564 #[serde(rename = "yield")]
25762565 pub obj6_yield: Yield,
25772566
2567+ #[serde(rename = "UnmarshalJSON")]
2568+ pub unmarshal_json: UnmarshalJson,
2569+
2570+ pub unowned: Unowned,
2571+
25782572 pub unsigned: Unsigned,
25792573
2574+ #[serde(rename = "UseSerializers")]
2575+ pub use_serializers: UseSerializers,
2576+
25802577 pub ushort: Ushort,
25812578
25822579 pub using: Using,
@@ -2613,6 +2610,18 @@ pub struct Obj6 {
26132610 pub yes: Yes,
26142611 }
26152612
2613+#[derive(Debug, Clone, Serialize, Deserialize)]
2614+pub struct Union {
2615+ #[serde(rename = "union")]
2616+ pub union_union: i64,
2617+}
2618+
2619+#[derive(Debug, Clone, Serialize, Deserialize)]
2620+pub struct Unsafe {
2621+ #[serde(rename = "unsafe")]
2622+ pub unsafe_unsafe: i64,
2623+}
2624+
26162625 #[derive(Debug, Clone, Serialize, Deserialize)]
26172626 pub struct Virtual {
26182627 #[serde(rename = "virtual")]
@@ -2637,11 +2646,29 @@ pub struct Yield {
26372646 pub yield_yield: i64,
26382647 }
26392648
2649+#[derive(Debug, Clone, Serialize, Deserialize)]
2650+#[serde(rename_all = "PascalCase")]
2651+pub struct UnmarshalJson {
2652+ #[serde(rename = "UnmarshalJSON")]
2653+ pub unmarshal_json: i64,
2654+}
2655+
2656+#[derive(Debug, Clone, Serialize, Deserialize)]
2657+pub struct Unowned {
2658+ pub unowned: i64,
2659+}
2660+
26402661 #[derive(Debug, Clone, Serialize, Deserialize)]
26412662 pub struct Unsigned {
26422663 pub unsigned: i64,
26432664 }
26442665
2666+#[derive(Debug, Clone, Serialize, Deserialize)]
2667+#[serde(rename_all = "PascalCase")]
2668+pub struct UseSerializers {
2669+ pub use_serializers: i64,
2670+}
2671+
26452672 #[derive(Debug, Clone, Serialize, Deserialize)]
26462673 pub struct Ushort {
26472674 pub ushort: i64,
Mscala3-upickledefault / TopLevel.scala+72 −57
@@ -804,6 +804,7 @@ case class Obj3 (
804804 val left : Left,
805805 val let : Let,
806806 val list : ListClass,
807+ val LocalDate : LocalDate,
807808 val Locale : Locale,
808809 val lock : Lock,
809810 val long : LongClass,
@@ -817,8 +818,6 @@ case class Obj3 (
817818 val namespace : Namespace,
818819 val native : Native,
819820 val newtonsoft : Newtonsoft,
820- val nil : Nil,
821- val NO : No,
822821 val `if` : If,
823822 val `implicit` : Implicit,
824823 val `import` : Import,
@@ -1007,6 +1006,10 @@ case class ListClass (
10071006 val list : Long
10081007 ) derives OptionPickler.ReadWriter
10091008
1009+case class LocalDate (
1010+ val LocalDate : Long
1011+) derives OptionPickler.ReadWriter
1012+
10101013 case class Locale (
10111014 val Locale : Long
10121015 ) derives OptionPickler.ReadWriter
@@ -1059,14 +1062,6 @@ case class Newtonsoft (
10591062 val newtonsoft : Long
10601063 ) derives OptionPickler.ReadWriter
10611064
1062-case class Nil (
1063- val nil : Long
1064-) derives OptionPickler.ReadWriter
1065-
1066-case class No (
1067- val NO : Long
1068-) derives OptionPickler.ReadWriter
1069-
10701065 case class If (
10711066 val `if` : Long
10721067 ) derives OptionPickler.ReadWriter
@@ -1089,6 +1084,8 @@ case class New (
10891084
10901085 case class Obj4 (
10911086 val dummy : Long,
1087+ val nil : Nil,
1088+ val NO : No,
10921089 val noSuchMethod : NoSuchMethod,
10931090 val noexcept : Noexcept,
10941091 val nonatomic : Nonatomic,
@@ -1112,9 +1109,10 @@ case class Obj4 (
11121109 val `protected` : Protected,
11131110 val protocol : ProtocolClass,
11141111 val `return` : Return,
1115- val `sealed` : Sealed,
11161112 val ObjectMapper : ObjectMapper,
11171113 val of : Of,
1114+ val OffsetDateTime : OffsetDateTime,
1115+ val OffsetTime : OffsetTime,
11181116 val oneway : Oneway,
11191117 val open : Open,
11201118 val operator : Operator,
@@ -1149,10 +1147,15 @@ case class Obj4 (
11491147 val retain : Retain,
11501148 val rethrows : Rethrows,
11511149 val right : Right,
1152- val runtimeType : RuntimeType,
1153- val s : S,
1154- val sbyte : Sbyte,
1155- val SEL : Sel
1150+ val runtimeType : RuntimeType
1151+) derives OptionPickler.ReadWriter
1152+
1153+case class Nil (
1154+ val nil : Long
1155+) derives OptionPickler.ReadWriter
1156+
1157+case class No (
1158+ val NO : Long
11561159 ) derives OptionPickler.ReadWriter
11571160
11581161 case class NoSuchMethod (
@@ -1247,10 +1250,6 @@ case class Return (
12471250 val `return` : Long
12481251 ) derives OptionPickler.ReadWriter
12491252
1250-case class Sealed (
1251- val `sealed` : Long
1252-) derives OptionPickler.ReadWriter
1253-
12541253 case class ObjectMapper (
12551254 val ObjectMapper : Long
12561255 ) derives OptionPickler.ReadWriter
@@ -1259,6 +1258,14 @@ case class Of (
12591258 val of : Long
12601259 ) derives OptionPickler.ReadWriter
12611260
1261+case class OffsetDateTime (
1262+ val OffsetDateTime : Long
1263+) derives OptionPickler.ReadWriter
1264+
1265+case class OffsetTime (
1266+ val OffsetTime : Long
1267+) derives OptionPickler.ReadWriter
1268+
12621269 case class Oneway (
12631270 val oneway : Long
12641271 ) derives OptionPickler.ReadWriter
@@ -1399,21 +1406,10 @@ case class RuntimeType (
13991406 val runtimeType : Long
14001407 ) derives OptionPickler.ReadWriter
14011408
1402-case class S (
1403- val s : Long
1404-) derives OptionPickler.ReadWriter
1405-
1406-case class Sbyte (
1407- val sbyte : Long
1408-) derives OptionPickler.ReadWriter
1409-
1410-case class Sel (
1411- val SEL : Long
1412-) derives OptionPickler.ReadWriter
1413-
14141409 case class Obj5 (
14151410 val dummy : Long,
14161411 val KSerializer : KSerializer,
1412+ val `sealed` : Sealed,
14171413 val self : SelfClass,
14181414 val `super` : Super,
14191415 val `then` : Then,
@@ -1425,6 +1421,9 @@ case class Obj5 (
14251421 val PrimitiveKind : PrimitiveKind,
14261422 val `true` : TrueClass,
14271423 val `type` : TypeClass,
1424+ val s : S,
1425+ val sbyte : Sbyte,
1426+ val SEL : Sel,
14281427 val select : Select,
14291428 val Self : Self,
14301429 val Sendable : Sendable,
@@ -1474,18 +1473,17 @@ case class Obj5 (
14741473 val uint : Uint,
14751474 val ulong : Ulong,
14761475 val unchecked : Unchecked,
1477- val undefined : Undefined,
1478- val union : Union,
1479- val UnmarshalJSON : UnmarshalJSON,
1480- val unowned : Unowned,
1481- val unsafe : Unsafe,
1482- val UseSerializers : UseSerializers
1476+ val undefined : Undefined
14831477 ) derives OptionPickler.ReadWriter
14841478
14851479 case class KSerializer (
14861480 val KSerializer : Long
14871481 ) derives OptionPickler.ReadWriter
14881482
1483+case class Sealed (
1484+ val `sealed` : Long
1485+) derives OptionPickler.ReadWriter
1486+
14891487 case class SelfClass (
14901488 val self : Long
14911489 ) derives OptionPickler.ReadWriter
@@ -1530,6 +1528,18 @@ case class TypeClass (
15301528 val `type` : Long
15311529 ) derives OptionPickler.ReadWriter
15321530
1531+case class S (
1532+ val s : Long
1533+) derives OptionPickler.ReadWriter
1534+
1535+case class Sbyte (
1536+ val sbyte : Long
1537+) derives OptionPickler.ReadWriter
1538+
1539+case class Sel (
1540+ val SEL : Long
1541+) derives OptionPickler.ReadWriter
1542+
15331543 case class Select (
15341544 val select : Long
15351545 ) derives OptionPickler.ReadWriter
@@ -1724,33 +1734,18 @@ case class Undefined (
17241734 val undefined : Long
17251735 ) derives OptionPickler.ReadWriter
17261736
1727-case class Union (
1728- val union : Long
1729-) derives OptionPickler.ReadWriter
1730-
1731-case class UnmarshalJSON (
1732- val UnmarshalJSON : Long
1733-) derives OptionPickler.ReadWriter
1734-
1735-case class Unowned (
1736- val unowned : Long
1737-) derives OptionPickler.ReadWriter
1738-
1739-case class Unsafe (
1740- val unsafe : Long
1741-) derives OptionPickler.ReadWriter
1742-
1743-case class UseSerializers (
1744- val UseSerializers : Long
1745-) derives OptionPickler.ReadWriter
1746-
17471737 case class Obj6 (
17481738 val dummy : Long,
17491739 val `var` : Var,
17501740 val `while` : While,
17511741 val `with` : With,
17521742 val `yield` : Yield,
1743+ val union : Union,
1744+ val UnmarshalJSON : UnmarshalJSON,
1745+ val unowned : Unowned,
1746+ val unsafe : Unsafe,
17531747 val unsigned : Unsigned,
1748+ val UseSerializers : UseSerializers,
17541749 val ushort : Ushort,
17551750 val using : Using,
17561751 val Utf8JsonReader : Utf8JSONReader,
@@ -1784,10 +1779,30 @@ case class Yield (
17841779 val `yield` : Long
17851780 ) derives OptionPickler.ReadWriter
17861781
1782+case class Union (
1783+ val union : Long
1784+) derives OptionPickler.ReadWriter
1785+
1786+case class UnmarshalJSON (
1787+ val UnmarshalJSON : Long
1788+) derives OptionPickler.ReadWriter
1789+
1790+case class Unowned (
1791+ val unowned : Long
1792+) derives OptionPickler.ReadWriter
1793+
1794+case class Unsafe (
1795+ val unsafe : Long
1796+) derives OptionPickler.ReadWriter
1797+
17871798 case class Unsigned (
17881799 val unsigned : Long
17891800 ) derives OptionPickler.ReadWriter
17901801
1802+case class UseSerializers (
1803+ val UseSerializers : Long
1804+) derives OptionPickler.ReadWriter
1805+
17911806 case class Ushort (
17921807 val ushort : Long
17931808 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+72 −57
@@ -754,6 +754,7 @@ case class Obj3 (
754754 val left : Left,
755755 val let : Let,
756756 val list : ListClass,
757+ val LocalDate : LocalDate,
757758 val Locale : Locale,
758759 val lock : Lock,
759760 val long : LongClass,
@@ -767,8 +768,6 @@ case class Obj3 (
767768 val namespace : Namespace,
768769 val native : Native,
769770 val newtonsoft : Newtonsoft,
770- val nil : Nil,
771- val NO : No,
772771 val `if` : If,
773772 val `implicit` : Implicit,
774773 val `import` : Import,
@@ -974,6 +973,10 @@ case class ListClass (
974973 val list : Long
975974 ) derives Encoder.AsObject, Decoder
976975
976+case class LocalDate (
977+ val LocalDate : Long
978+) derives Encoder.AsObject, Decoder
979+
977980 case class Locale (
978981 val Locale : Long
979982 ) derives Encoder.AsObject, Decoder
@@ -1026,14 +1029,6 @@ case class Newtonsoft (
10261029 val newtonsoft : Long
10271030 ) derives Encoder.AsObject, Decoder
10281031
1029-case class Nil (
1030- val nil : Long
1031-) derives Encoder.AsObject, Decoder
1032-
1033-case class No (
1034- val NO : Long
1035-) derives Encoder.AsObject, Decoder
1036-
10371032 case class If (
10381033 val `if` : Long
10391034 ) derives Encoder.AsObject, Decoder
@@ -1056,6 +1051,8 @@ case class New (
10561051
10571052 case class Obj4 (
10581053 val dummy : Long,
1054+ val nil : Nil,
1055+ val NO : No,
10591056 val noSuchMethod : NoSuchMethod,
10601057 val noexcept : Noexcept,
10611058 val nonatomic : Nonatomic,
@@ -1079,9 +1076,10 @@ case class Obj4 (
10791076 val `protected` : Protected,
10801077 val protocol : ProtocolClass,
10811078 val `return` : Return,
1082- val `sealed` : Sealed,
10831079 val ObjectMapper : ObjectMapper,
10841080 val of : Of,
1081+ val OffsetDateTime : OffsetDateTime,
1082+ val OffsetTime : OffsetTime,
10851083 val oneway : Oneway,
10861084 val open : Open,
10871085 val operator : Operator,
@@ -1116,10 +1114,15 @@ case class Obj4 (
11161114 val retain : Retain,
11171115 val rethrows : Rethrows,
11181116 val right : Right,
1119- val runtimeType : RuntimeType,
1120- val s : S,
1121- val sbyte : Sbyte,
1122- val SEL : Sel
1117+ val runtimeType : RuntimeType
1118+) derives Encoder.AsObject, Decoder
1119+
1120+case class Nil (
1121+ val nil : Long
1122+) derives Encoder.AsObject, Decoder
1123+
1124+case class No (
1125+ val NO : Long
11231126 ) derives Encoder.AsObject, Decoder
11241127
11251128 case class NoSuchMethod (
@@ -1214,10 +1217,6 @@ case class Return (
12141217 val `return` : Long
12151218 ) derives Encoder.AsObject, Decoder
12161219
1217-case class Sealed (
1218- val `sealed` : Long
1219-) derives Encoder.AsObject, Decoder
1220-
12211220 case class ObjectMapper (
12221221 val ObjectMapper : Long
12231222 ) derives Encoder.AsObject, Decoder
@@ -1226,6 +1225,14 @@ case class Of (
12261225 val of : Long
12271226 ) derives Encoder.AsObject, Decoder
12281227
1228+case class OffsetDateTime (
1229+ val OffsetDateTime : Long
1230+) derives Encoder.AsObject, Decoder
1231+
1232+case class OffsetTime (
1233+ val OffsetTime : Long
1234+) derives Encoder.AsObject, Decoder
1235+
12291236 case class Oneway (
12301237 val oneway : Long
12311238 ) derives Encoder.AsObject, Decoder
@@ -1366,21 +1373,10 @@ case class RuntimeType (
13661373 val runtimeType : Long
13671374 ) derives Encoder.AsObject, Decoder
13681375
1369-case class S (
1370- val s : Long
1371-) derives Encoder.AsObject, Decoder
1372-
1373-case class Sbyte (
1374- val sbyte : Long
1375-) derives Encoder.AsObject, Decoder
1376-
1377-case class Sel (
1378- val SEL : Long
1379-) derives Encoder.AsObject, Decoder
1380-
13811376 case class Obj5 (
13821377 val dummy : Long,
13831378 val KSerializer : KSerializer,
1379+ val `sealed` : Sealed,
13841380 val self : SelfClass,
13851381 val `super` : Super,
13861382 val `then` : Then,
@@ -1392,6 +1388,9 @@ case class Obj5 (
13921388 val PrimitiveKind : PrimitiveKind,
13931389 val `true` : TrueClass,
13941390 val `type` : TypeClass,
1391+ val s : S,
1392+ val sbyte : Sbyte,
1393+ val SEL : Sel,
13951394 val select : Select,
13961395 val Self : Self,
13971396 val Sendable : Sendable,
@@ -1439,12 +1438,7 @@ case class Obj5 (
14391438 val uint : Uint,
14401439 val ulong : Ulong,
14411440 val unchecked : Unchecked,
1442- val undefined : Undefined,
1443- val union : Union,
1444- val UnmarshalJSON : UnmarshalJSON,
1445- val unowned : Unowned,
1446- val unsafe : Unsafe,
1447- val UseSerializers : UseSerializers
1441+ val undefined : Undefined
14481442 )
14491443
14501444 object Obj5:
@@ -1461,6 +1455,10 @@ case class KSerializer (
14611455 val KSerializer : Long
14621456 ) derives Encoder.AsObject, Decoder
14631457
1458+case class Sealed (
1459+ val `sealed` : Long
1460+) derives Encoder.AsObject, Decoder
1461+
14641462 case class SelfClass (
14651463 val self : Long
14661464 ) derives Encoder.AsObject, Decoder
@@ -1505,6 +1503,18 @@ case class TypeClass (
15051503 val `type` : Long
15061504 ) derives Encoder.AsObject, Decoder
15071505
1506+case class S (
1507+ val s : Long
1508+) derives Encoder.AsObject, Decoder
1509+
1510+case class Sbyte (
1511+ val sbyte : Long
1512+) derives Encoder.AsObject, Decoder
1513+
1514+case class Sel (
1515+ val SEL : Long
1516+) derives Encoder.AsObject, Decoder
1517+
15081518 case class Select (
15091519 val select : Long
15101520 ) derives Encoder.AsObject, Decoder
@@ -1715,33 +1725,18 @@ case class Undefined (
17151725 val undefined : Long
17161726 ) derives Encoder.AsObject, Decoder
17171727
1718-case class Union (
1719- val union : Long
1720-) derives Encoder.AsObject, Decoder
1721-
1722-case class UnmarshalJSON (
1723- val UnmarshalJSON : Long
1724-) derives Encoder.AsObject, Decoder
1725-
1726-case class Unowned (
1727- val unowned : Long
1728-) derives Encoder.AsObject, Decoder
1729-
1730-case class Unsafe (
1731- val unsafe : Long
1732-) derives Encoder.AsObject, Decoder
1733-
1734-case class UseSerializers (
1735- val UseSerializers : Long
1736-) derives Encoder.AsObject, Decoder
1737-
17381728 case class Obj6 (
17391729 val dummy : Long,
17401730 val `var` : Var,
17411731 val `while` : While,
17421732 val `with` : With,
17431733 val `yield` : Yield,
1734+ val union : Union,
1735+ val UnmarshalJSON : UnmarshalJSON,
1736+ val unowned : Unowned,
1737+ val unsafe : Unsafe,
17441738 val unsigned : Unsigned,
1739+ val UseSerializers : UseSerializers,
17451740 val ushort : Ushort,
17461741 val using : Using,
17471742 val Utf8JsonReader : Utf8JSONReader,
@@ -1775,10 +1770,30 @@ case class Yield (
17751770 val `yield` : Long
17761771 ) derives Encoder.AsObject, Decoder
17771772
1773+case class Union (
1774+ val union : Long
1775+) derives Encoder.AsObject, Decoder
1776+
1777+case class UnmarshalJSON (
1778+ val UnmarshalJSON : Long
1779+) derives Encoder.AsObject, Decoder
1780+
1781+case class Unowned (
1782+ val unowned : Long
1783+) derives Encoder.AsObject, Decoder
1784+
1785+case class Unsafe (
1786+ val unsafe : Long
1787+) derives Encoder.AsObject, Decoder
1788+
17781789 case class Unsigned (
17791790 val unsigned : Long
17801791 ) derives Encoder.AsObject, Decoder
17811792
1793+case class UseSerializers (
1794+ val UseSerializers : Long
1795+) derives Encoder.AsObject, Decoder
1796+
17821797 case class Ushort (
17831798 val ushort : Long
17841799 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+838 −694
@@ -6348,6 +6348,7 @@ struct Obj3: Codable {
63486348 let jsonWriter: JSONWriter
63496349 let lambda: Lambda
63506350 let list: List
6351+ let localDate: LocalDate
63516352 let locale: LocaleClass
63526353 let lock: Lock
63536354 let long: Long
@@ -6361,7 +6362,6 @@ struct Obj3: Codable {
63616362 let native: Native
63626363 let new: New
63636364 let newtonsoft: Newtonsoft
6364- let no: No
63656365 let obj3Guard: Guard
63666366 let obj3If: If
63676367 let obj3Import: Import
@@ -6377,7 +6377,6 @@ struct Obj3: Codable {
63776377 let obj3Left: Left
63786378 let obj3Let: Let
63796379 let obj3Mutating: Mutating
6380- let obj3Nil: Nil
63816380
63826381 enum CodingKeys: String, CodingKey {
63836382 case dummy = "dummy"
@@ -6416,6 +6415,7 @@ struct Obj3: Codable {
64166415 case jsonWriter = "json_writer"
64176416 case lambda = "lambda"
64186417 case list = "list"
6418+ case localDate = "LocalDate"
64196419 case locale = "Locale"
64206420 case lock = "lock"
64216421 case long = "long"
@@ -6429,7 +6429,6 @@ struct Obj3: Codable {
64296429 case native = "native"
64306430 case new = "new"
64316431 case newtonsoft = "newtonsoft"
6432- case no = "NO"
64336432 case obj3Guard = "guard"
64346433 case obj3If = "if"
64356434 case obj3Import = "import"
@@ -6445,7 +6444,6 @@ struct Obj3: Codable {
64456444 case obj3Left = "left"
64466445 case obj3Let = "let"
64476446 case obj3Mutating = "mutating"
6448- case obj3Nil = "nil"
64496447 }
64506448 }
64516449
@@ -6504,6 +6502,7 @@ extension Obj3 {
65046502 jsonWriter: JSONWriter? = nil,
65056503 lambda: Lambda? = nil,
65066504 list: List? = nil,
6505+ localDate: LocalDate? = nil,
65076506 locale: LocaleClass? = nil,
65086507 lock: Lock? = nil,
65096508 long: Long? = nil,
@@ -6517,7 +6516,6 @@ extension Obj3 {
65176516 native: Native? = nil,
65186517 new: New? = nil,
65196518 newtonsoft: Newtonsoft? = nil,
6520- no: No? = nil,
65216519 obj3Guard: Guard? = nil,
65226520 obj3If: If? = nil,
65236521 obj3Import: Import? = nil,
@@ -6532,8 +6530,7 @@ extension Obj3 {
65326530 obj3Lazy: Lazy? = nil,
65336531 obj3Left: Left? = nil,
65346532 obj3Let: Let? = nil,
6535- obj3Mutating: Mutating? = nil,
6536- obj3Nil: Nil? = nil
6533+ obj3Mutating: Mutating? = nil
65376534 ) -> Obj3 {
65386535 return Obj3(
65396536 dummy: dummy ?? self.dummy,
@@ -6572,6 +6569,7 @@ extension Obj3 {
65726569 jsonWriter: jsonWriter ?? self.jsonWriter,
65736570 lambda: lambda ?? self.lambda,
65746571 list: list ?? self.list,
6572+ localDate: localDate ?? self.localDate,
65756573 locale: locale ?? self.locale,
65766574 lock: lock ?? self.lock,
65776575 long: long ?? self.long,
@@ -6585,7 +6583,6 @@ extension Obj3 {
65856583 native: native ?? self.native,
65866584 new: new ?? self.new,
65876585 newtonsoft: newtonsoft ?? self.newtonsoft,
6588- no: no ?? self.no,
65896586 obj3Guard: obj3Guard ?? self.obj3Guard,
65906587 obj3If: obj3If ?? self.obj3If,
65916588 obj3Import: obj3Import ?? self.obj3Import,
@@ -6600,8 +6597,7 @@ extension Obj3 {
66006597 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
66016598 obj3Left: obj3Left ?? self.obj3Left,
66026599 obj3Let: obj3Let ?? self.obj3Let,
6603- obj3Mutating: obj3Mutating ?? self.obj3Mutating,
6604- obj3Nil: obj3Nil ?? self.obj3Nil
6600+ obj3Mutating: obj3Mutating ?? self.obj3Mutating
66056601 )
66066602 }
66076603
@@ -8154,6 +8150,50 @@ extension List {
81548150 }
81558151 }
81568152
8153+// MARK: - LocalDate
8154+struct LocalDate: Codable {
8155+ let localDate: Int
8156+
8157+ enum CodingKeys: String, CodingKey {
8158+ case localDate = "LocalDate"
8159+ }
8160+}
8161+
8162+// MARK: LocalDate convenience initializers and mutators
8163+
8164+extension LocalDate {
8165+ init(data: Data) throws {
8166+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8167+ }
8168+
8169+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8170+ guard let data = json.data(using: encoding) else {
8171+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8172+ }
8173+ try self.init(data: data)
8174+ }
8175+
8176+ init(fromURL url: URL) throws {
8177+ try self.init(data: try Data(contentsOf: url))
8178+ }
8179+
8180+ func with(
8181+ localDate: Int? = nil
8182+ ) -> LocalDate {
8183+ return LocalDate(
8184+ localDate: localDate ?? self.localDate
8185+ )
8186+ }
8187+
8188+ func jsonData() throws -> Data {
8189+ return try newJSONEncoder().encode(self)
8190+ }
8191+
8192+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8193+ return String(data: try self.jsonData(), encoding: encoding)
8194+ }
8195+}
8196+
81578197 // MARK: - LocaleClass
81588198 struct LocaleClass: Codable {
81598199 let locale: Int
@@ -8726,50 +8766,6 @@ extension Newtonsoft {
87268766 }
87278767 }
87288768
8729-// MARK: - No
8730-struct No: Codable {
8731- let no: Int
8732-
8733- enum CodingKeys: String, CodingKey {
8734- case no = "NO"
8735- }
8736-}
8737-
8738-// MARK: No convenience initializers and mutators
8739-
8740-extension No {
8741- init(data: Data) throws {
8742- self = try newJSONDecoder().decode(No.self, from: data)
8743- }
8744-
8745- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8746- guard let data = json.data(using: encoding) else {
8747- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8748- }
8749- try self.init(data: data)
8750- }
8751-
8752- init(fromURL url: URL) throws {
8753- try self.init(data: try Data(contentsOf: url))
8754- }
8755-
8756- func with(
8757- no: Int? = nil
8758- ) -> No {
8759- return No(
8760- no: no ?? self.no
8761- )
8762- }
8763-
8764- func jsonData() throws -> Data {
8765- return try newJSONEncoder().encode(self)
8766- }
8767-
8768- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8769- return String(data: try self.jsonData(), encoding: encoding)
8770- }
8771-}
8772-
87738769 // MARK: - Guard
87748770 struct Guard: Codable {
87758771 let guardGuard: Int
@@ -9430,53 +9426,10 @@ extension Mutating {
94309426 }
94319427 }
94329428
9433-// MARK: - Nil
9434-struct Nil: Codable {
9435- let nilNil: Int
9436-
9437- enum CodingKeys: String, CodingKey {
9438- case nilNil = "nil"
9439- }
9440-}
9441-
9442-// MARK: Nil convenience initializers and mutators
9443-
9444-extension Nil {
9445- init(data: Data) throws {
9446- self = try newJSONDecoder().decode(Nil.self, from: data)
9447- }
9448-
9449- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9450- guard let data = json.data(using: encoding) else {
9451- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9452- }
9453- try self.init(data: data)
9454- }
9455-
9456- init(fromURL url: URL) throws {
9457- try self.init(data: try Data(contentsOf: url))
9458- }
9459-
9460- func with(
9461- nilNil: Int? = nil
9462- ) -> Nil {
9463- return Nil(
9464- nilNil: nilNil ?? self.nilNil
9465- )
9466- }
9467-
9468- func jsonData() throws -> Data {
9469- return try newJSONEncoder().encode(self)
9470- }
9471-
9472- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9473- return String(data: try self.jsonData(), encoding: encoding)
9474- }
9475-}
9476-
94779429 // MARK: - Obj4
94789430 struct Obj4: Codable {
94799431 let dummy: Int
9432+ let no: No
94809433 let noSuchMethod: NoSuchMethod
94819434 let noexcept: Noexcept
94829435 let nonatomic: Nonatomic
@@ -9490,6 +9443,7 @@ struct Obj4: Codable {
94909443 let null: Null
94919444 let nullptr: Nullptr
94929445 let number: Number
9446+ let obj4Nil: Nil
94939447 let obj4None: NoneClass
94949448 let obj4Nonmutating: Nonmutating
94959449 let obj4Null: NullClass
@@ -9511,6 +9465,8 @@ struct Obj4: Codable {
95119465 let object: Object
95129466 let objectMapper: ObjectMapper
95139467 let of: Of
9468+ let offsetDateTime: OffsetDateTime
9469+ let offsetTime: OffsetTime
95149470 let oneway: Oneway
95159471 let or: Or
95169472 let orEq: OrEq
@@ -9537,13 +9493,10 @@ struct Obj4: Codable {
95379493 let restrict: Restrict
95389494 let retain: Retain
95399495 let runtimeType: RuntimeType
9540- let s: S
9541- let sbyte: Sbyte
9542- let sealed: Sealed
9543- let sel: Sel
95449496
95459497 enum CodingKeys: String, CodingKey {
95469498 case dummy = "dummy"
9499+ case no = "NO"
95479500 case noSuchMethod = "noSuchMethod"
95489501 case noexcept = "noexcept"
95499502 case nonatomic = "nonatomic"
@@ -9557,6 +9510,7 @@ struct Obj4: Codable {
95579510 case null = "NULL"
95589511 case nullptr = "nullptr"
95599512 case number = "number"
9513+ case obj4Nil = "nil"
95609514 case obj4None = "none"
95619515 case obj4Nonmutating = "nonmutating"
95629516 case obj4Null = "null"
@@ -9578,6 +9532,8 @@ struct Obj4: Codable {
95789532 case object = "object"
95799533 case objectMapper = "ObjectMapper"
95809534 case of = "of"
9535+ case offsetDateTime = "OffsetDateTime"
9536+ case offsetTime = "OffsetTime"
95819537 case oneway = "oneway"
95829538 case or = "or"
95839539 case orEq = "or_eq"
@@ -9604,10 +9560,6 @@ struct Obj4: Codable {
96049560 case restrict = "restrict"
96059561 case retain = "retain"
96069562 case runtimeType = "runtimeType"
9607- case s = "s"
9608- case sbyte = "sbyte"
9609- case sealed = "sealed"
9610- case sel = "SEL"
96119563 }
96129564 }
96139565
@@ -9631,6 +9583,7 @@ extension Obj4 {
96319583
96329584 func with(
96339585 dummy: Int? = nil,
9586+ no: No? = nil,
96349587 noSuchMethod: NoSuchMethod? = nil,
96359588 noexcept: Noexcept? = nil,
96369589 nonatomic: Nonatomic? = nil,
@@ -9644,6 +9597,7 @@ extension Obj4 {
96449597 null: Null? = nil,
96459598 nullptr: Nullptr? = nil,
96469599 number: Number? = nil,
9600+ obj4Nil: Nil? = nil,
96479601 obj4None: NoneClass? = nil,
96489602 obj4Nonmutating: Nonmutating? = nil,
96499603 obj4Null: NullClass? = nil,
@@ -9665,6 +9619,8 @@ extension Obj4 {
96659619 object: Object? = nil,
96669620 objectMapper: ObjectMapper? = nil,
96679621 of: Of? = nil,
9622+ offsetDateTime: OffsetDateTime? = nil,
9623+ offsetTime: OffsetTime? = nil,
96689624 oneway: Oneway? = nil,
96699625 or: Or? = nil,
96709626 orEq: OrEq? = nil,
@@ -9690,14 +9646,11 @@ extension Obj4 {
96909646 requires: Requires? = nil,
96919647 restrict: Restrict? = nil,
96929648 retain: Retain? = nil,
9693- runtimeType: RuntimeType? = nil,
9694- s: S? = nil,
9695- sbyte: Sbyte? = nil,
9696- sealed: Sealed? = nil,
9697- sel: Sel? = nil
9649+ runtimeType: RuntimeType? = nil
96989650 ) -> Obj4 {
96999651 return Obj4(
97009652 dummy: dummy ?? self.dummy,
9653+ no: no ?? self.no,
97019654 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
97029655 noexcept: noexcept ?? self.noexcept,
97039656 nonatomic: nonatomic ?? self.nonatomic,
@@ -9711,6 +9664,7 @@ extension Obj4 {
97119664 null: null ?? self.null,
97129665 nullptr: nullptr ?? self.nullptr,
97139666 number: number ?? self.number,
9667+ obj4Nil: obj4Nil ?? self.obj4Nil,
97149668 obj4None: obj4None ?? self.obj4None,
97159669 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
97169670 obj4Null: obj4Null ?? self.obj4Null,
@@ -9732,6 +9686,8 @@ extension Obj4 {
97329686 object: object ?? self.object,
97339687 objectMapper: objectMapper ?? self.objectMapper,
97349688 of: of ?? self.of,
9689+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9690+ offsetTime: offsetTime ?? self.offsetTime,
97359691 oneway: oneway ?? self.oneway,
97369692 or: or ?? self.or,
97379693 orEq: orEq ?? self.orEq,
@@ -9757,11 +9713,51 @@ extension Obj4 {
97579713 requires: requires ?? self.requires,
97589714 restrict: restrict ?? self.restrict,
97599715 retain: retain ?? self.retain,
9760- runtimeType: runtimeType ?? self.runtimeType,
9761- s: s ?? self.s,
9762- sbyte: sbyte ?? self.sbyte,
9763- sealed: sealed ?? self.sealed,
9764- sel: sel ?? self.sel
9716+ runtimeType: runtimeType ?? self.runtimeType
9717+ )
9718+ }
9719+
9720+ func jsonData() throws -> Data {
9721+ return try newJSONEncoder().encode(self)
9722+ }
9723+
9724+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9725+ return String(data: try self.jsonData(), encoding: encoding)
9726+ }
9727+}
9728+
9729+// MARK: - No
9730+struct No: Codable {
9731+ let no: Int
9732+
9733+ enum CodingKeys: String, CodingKey {
9734+ case no = "NO"
9735+ }
9736+}
9737+
9738+// MARK: No convenience initializers and mutators
9739+
9740+extension No {
9741+ init(data: Data) throws {
9742+ self = try newJSONDecoder().decode(No.self, from: data)
9743+ }
9744+
9745+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9746+ guard let data = json.data(using: encoding) else {
9747+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9748+ }
9749+ try self.init(data: data)
9750+ }
9751+
9752+ init(fromURL url: URL) throws {
9753+ try self.init(data: try Data(contentsOf: url))
9754+ }
9755+
9756+ func with(
9757+ no: Int? = nil
9758+ ) -> No {
9759+ return No(
9760+ no: no ?? self.no
97659761 )
97669762 }
97679763
@@ -10346,6 +10342,50 @@ extension Number {
1034610342 }
1034710343 }
1034810344
10345+// MARK: - Nil
10346+struct Nil: Codable {
10347+ let nilNil: Int
10348+
10349+ enum CodingKeys: String, CodingKey {
10350+ case nilNil = "nil"
10351+ }
10352+}
10353+
10354+// MARK: Nil convenience initializers and mutators
10355+
10356+extension Nil {
10357+ init(data: Data) throws {
10358+ self = try newJSONDecoder().decode(Nil.self, from: data)
10359+ }
10360+
10361+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10362+ guard let data = json.data(using: encoding) else {
10363+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10364+ }
10365+ try self.init(data: data)
10366+ }
10367+
10368+ init(fromURL url: URL) throws {
10369+ try self.init(data: try Data(contentsOf: url))
10370+ }
10371+
10372+ func with(
10373+ nilNil: Int? = nil
10374+ ) -> Nil {
10375+ return Nil(
10376+ nilNil: nilNil ?? self.nilNil
10377+ )
10378+ }
10379+
10380+ func jsonData() throws -> Data {
10381+ return try newJSONEncoder().encode(self)
10382+ }
10383+
10384+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10385+ return String(data: try self.jsonData(), encoding: encoding)
10386+ }
10387+}
10388+
1034910389 // MARK: - NoneClass
1035010390 struct NoneClass: Codable {
1035110391 let none: Int
@@ -11270,20 +11310,20 @@ extension Of {
1127011310 }
1127111311 }
1127211312
11273-// MARK: - Oneway
11274-struct Oneway: Codable {
11275- let oneway: Int
11313+// MARK: - OffsetDateTime
11314+struct OffsetDateTime: Codable {
11315+ let offsetDateTime: Int
1127611316
1127711317 enum CodingKeys: String, CodingKey {
11278- case oneway = "oneway"
11318+ case offsetDateTime = "OffsetDateTime"
1127911319 }
1128011320 }
1128111321
11282-// MARK: Oneway convenience initializers and mutators
11322+// MARK: OffsetDateTime convenience initializers and mutators
1128311323
11284-extension Oneway {
11324+extension OffsetDateTime {
1128511325 init(data: Data) throws {
11286- self = try newJSONDecoder().decode(Oneway.self, from: data)
11326+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
1128711327 }
1128811328
1128911329 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11298,10 +11338,10 @@ extension Oneway {
1129811338 }
1129911339
1130011340 func with(
11301- oneway: Int? = nil
11302- ) -> Oneway {
11303- return Oneway(
11304- oneway: oneway ?? self.oneway
11341+ offsetDateTime: Int? = nil
11342+ ) -> OffsetDateTime {
11343+ return OffsetDateTime(
11344+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
1130511345 )
1130611346 }
1130711347
@@ -11314,20 +11354,20 @@ extension Oneway {
1131411354 }
1131511355 }
1131611356
11317-// MARK: - Or
11318-struct Or: Codable {
11319- let or: Int
11357+// MARK: - OffsetTime
11358+struct OffsetTime: Codable {
11359+ let offsetTime: Int
1132011360
1132111361 enum CodingKeys: String, CodingKey {
11322- case or = "or"
11362+ case offsetTime = "OffsetTime"
1132311363 }
1132411364 }
1132511365
11326-// MARK: Or convenience initializers and mutators
11366+// MARK: OffsetTime convenience initializers and mutators
1132711367
11328-extension Or {
11368+extension OffsetTime {
1132911369 init(data: Data) throws {
11330- self = try newJSONDecoder().decode(Or.self, from: data)
11370+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
1133111371 }
1133211372
1133311373 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11342,10 +11382,10 @@ extension Or {
1134211382 }
1134311383
1134411384 func with(
11345- or: Int? = nil
11346- ) -> Or {
11347- return Or(
11348- or: or ?? self.or
11385+ offsetTime: Int? = nil
11386+ ) -> OffsetTime {
11387+ return OffsetTime(
11388+ offsetTime: offsetTime ?? self.offsetTime
1134911389 )
1135011390 }
1135111391
@@ -11358,7 +11398,95 @@ extension Or {
1135811398 }
1135911399 }
1136011400
11361-// MARK: - OrEq
11401+// MARK: - Oneway
11402+struct Oneway: Codable {
11403+ let oneway: Int
11404+
11405+ enum CodingKeys: String, CodingKey {
11406+ case oneway = "oneway"
11407+ }
11408+}
11409+
11410+// MARK: Oneway convenience initializers and mutators
11411+
11412+extension Oneway {
11413+ init(data: Data) throws {
11414+ self = try newJSONDecoder().decode(Oneway.self, from: data)
11415+ }
11416+
11417+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11418+ guard let data = json.data(using: encoding) else {
11419+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11420+ }
11421+ try self.init(data: data)
11422+ }
11423+
11424+ init(fromURL url: URL) throws {
11425+ try self.init(data: try Data(contentsOf: url))
11426+ }
11427+
11428+ func with(
11429+ oneway: Int? = nil
11430+ ) -> Oneway {
11431+ return Oneway(
11432+ oneway: oneway ?? self.oneway
11433+ )
11434+ }
11435+
11436+ func jsonData() throws -> Data {
11437+ return try newJSONEncoder().encode(self)
11438+ }
11439+
11440+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11441+ return String(data: try self.jsonData(), encoding: encoding)
11442+ }
11443+}
11444+
11445+// MARK: - Or
11446+struct Or: Codable {
11447+ let or: Int
11448+
11449+ enum CodingKeys: String, CodingKey {
11450+ case or = "or"
11451+ }
11452+}
11453+
11454+// MARK: Or convenience initializers and mutators
11455+
11456+extension Or {
11457+ init(data: Data) throws {
11458+ self = try newJSONDecoder().decode(Or.self, from: data)
11459+ }
11460+
11461+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11462+ guard let data = json.data(using: encoding) else {
11463+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11464+ }
11465+ try self.init(data: data)
11466+ }
11467+
11468+ init(fromURL url: URL) throws {
11469+ try self.init(data: try Data(contentsOf: url))
11470+ }
11471+
11472+ func with(
11473+ or: Int? = nil
11474+ ) -> Or {
11475+ return Or(
11476+ or: or ?? self.or
11477+ )
11478+ }
11479+
11480+ func jsonData() throws -> Data {
11481+ return try newJSONEncoder().encode(self)
11482+ }
11483+
11484+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11485+ return String(data: try self.jsonData(), encoding: encoding)
11486+ }
11487+}
11488+
11489+// MARK: - OrEq
1136211490 struct OrEq: Codable {
1136311491 let orEq: Int
1136411492
@@ -12414,326 +12542,148 @@ extension RuntimeType {
1241412542 }
1241512543 }
1241612544
12417-// MARK: - S
12418-struct S: Codable {
12419- let s: Int
12545+// MARK: - Obj5
12546+struct Obj5: Codable {
12547+ let dummy: Int
12548+ let kSerializer: KSerializer
12549+ let obj5Self: SelfClass
12550+ let obj5Set: Set
12551+ let obj5Static: Static
12552+ let obj5Struct: Struct
12553+ let obj5Subscript: Subscript
12554+ let obj5Super: Super
12555+ let obj5Switch: Switch
12556+ let obj5Throw: Throw
12557+ let obj5Throws: Throws
12558+ let obj5True: True
12559+ let obj5Try: Try
12560+ let obj5Type: Obj5Type
12561+ let obj5Typealias: Typealias
12562+ let primitiveKind: PrimitiveKind
12563+ let purpleSelf: Obj5Self
12564+ let purpleTrue: TrueClass
12565+ let s: S
12566+ let sbyte: Sbyte
12567+ let sealed: Sealed
12568+ let sel: Sel
12569+ let select: Select
12570+ let sendable: Sendable
12571+ let serialDescriptor: SerialDescriptor
12572+ let serialName: SerialName
12573+ let serializable: Serializable
12574+ let serialize: Serialize
12575+ let serializerProvider: SerializerProvider
12576+ let short: Short
12577+ let signed: Signed
12578+ let simpleModule: SimpleModule
12579+ let sizeof: Sizeof
12580+ let stackalloc: Stackalloc
12581+ let standards: Standards
12582+ let staticAssert: StaticAssert
12583+ let staticCast: StaticCast
12584+ let stdDeserializer: StdDeserializer
12585+ let stdSerializer: StdSerializer
12586+ let strictfp: Strictfp
12587+ let string: StringClass
12588+ let symbol: Symbol
12589+ let synchronized: Synchronized
12590+ let system: System
12591+ let template: Template
12592+ let then: Then
12593+ let this: This
12594+ let threadLocal: ThreadLocal
12595+ let timeOnly: TimeOnly
12596+ let timeOnlyConverter: TimeOnlyConverter
12597+ let timeZone: TimeZoneClass
12598+ let toDict: ToDict
12599+ let toJSON: ToJSON
12600+ let toString: ToString
12601+ let topLevel: TopLevelClass
12602+ let transient: Transient
12603+ let type: TypeClass
12604+ let typedef: Typedef
12605+ let typeid: Typeid
12606+ let typename: Typename
12607+ let typeof: Typeof
12608+ let uint: Uint
12609+ let ulong: Ulong
12610+ let unchecked: Unchecked
12611+ let undefined: Undefined
1242012612
1242112613 enum CodingKeys: String, CodingKey {
12614+ case dummy = "dummy"
12615+ case kSerializer = "KSerializer"
12616+ case obj5Self = "Self"
12617+ case obj5Set = "set"
12618+ case obj5Static = "static"
12619+ case obj5Struct = "struct"
12620+ case obj5Subscript = "subscript"
12621+ case obj5Super = "super"
12622+ case obj5Switch = "switch"
12623+ case obj5Throw = "throw"
12624+ case obj5Throws = "throws"
12625+ case obj5True = "True"
12626+ case obj5Try = "try"
12627+ case obj5Type = "type"
12628+ case obj5Typealias = "typealias"
12629+ case primitiveKind = "PrimitiveKind"
12630+ case purpleSelf = "self"
12631+ case purpleTrue = "true"
1242212632 case s = "s"
12633+ case sbyte = "sbyte"
12634+ case sealed = "sealed"
12635+ case sel = "SEL"
12636+ case select = "select"
12637+ case sendable = "Sendable"
12638+ case serialDescriptor = "SerialDescriptor"
12639+ case serialName = "SerialName"
12640+ case serializable = "Serializable"
12641+ case serialize = "serialize"
12642+ case serializerProvider = "SerializerProvider"
12643+ case short = "short"
12644+ case signed = "signed"
12645+ case simpleModule = "SimpleModule"
12646+ case sizeof = "sizeof"
12647+ case stackalloc = "stackalloc"
12648+ case standards = "Standards"
12649+ case staticAssert = "static_assert"
12650+ case staticCast = "static_cast"
12651+ case stdDeserializer = "StdDeserializer"
12652+ case stdSerializer = "StdSerializer"
12653+ case strictfp = "strictfp"
12654+ case string = "string"
12655+ case symbol = "symbol"
12656+ case synchronized = "synchronized"
12657+ case system = "system"
12658+ case template = "template"
12659+ case then = "then"
12660+ case this = "this"
12661+ case threadLocal = "thread_local"
12662+ case timeOnly = "TimeOnly"
12663+ case timeOnlyConverter = "TimeOnlyConverter"
12664+ case timeZone = "TimeZone"
12665+ case toDict = "to_dict"
12666+ case toJSON = "to_json"
12667+ case toString = "toString"
12668+ case topLevel = "top_level"
12669+ case transient = "transient"
12670+ case type = "Type"
12671+ case typedef = "typedef"
12672+ case typeid = "typeid"
12673+ case typename = "typename"
12674+ case typeof = "typeof"
12675+ case uint = "uint"
12676+ case ulong = "ulong"
12677+ case unchecked = "unchecked"
12678+ case undefined = "undefined"
1242312679 }
1242412680 }
1242512681
12426-// MARK: S convenience initializers and mutators
12682+// MARK: Obj5 convenience initializers and mutators
1242712683
12428-extension S {
12684+extension Obj5 {
1242912685 init(data: Data) throws {
12430- self = try newJSONDecoder().decode(S.self, from: data)
12431- }
12432-
12433- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12434- guard let data = json.data(using: encoding) else {
12435- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12436- }
12437- try self.init(data: data)
12438- }
12439-
12440- init(fromURL url: URL) throws {
12441- try self.init(data: try Data(contentsOf: url))
12442- }
12443-
12444- func with(
12445- s: Int? = nil
12446- ) -> S {
12447- return S(
12448- s: s ?? self.s
12449- )
12450- }
12451-
12452- func jsonData() throws -> Data {
12453- return try newJSONEncoder().encode(self)
12454- }
12455-
12456- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12457- return String(data: try self.jsonData(), encoding: encoding)
12458- }
12459-}
12460-
12461-// MARK: - Sbyte
12462-struct Sbyte: Codable {
12463- let sbyte: Int
12464-
12465- enum CodingKeys: String, CodingKey {
12466- case sbyte = "sbyte"
12467- }
12468-}
12469-
12470-// MARK: Sbyte convenience initializers and mutators
12471-
12472-extension Sbyte {
12473- init(data: Data) throws {
12474- self = try newJSONDecoder().decode(Sbyte.self, from: data)
12475- }
12476-
12477- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12478- guard let data = json.data(using: encoding) else {
12479- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12480- }
12481- try self.init(data: data)
12482- }
12483-
12484- init(fromURL url: URL) throws {
12485- try self.init(data: try Data(contentsOf: url))
12486- }
12487-
12488- func with(
12489- sbyte: Int? = nil
12490- ) -> Sbyte {
12491- return Sbyte(
12492- sbyte: sbyte ?? self.sbyte
12493- )
12494- }
12495-
12496- func jsonData() throws -> Data {
12497- return try newJSONEncoder().encode(self)
12498- }
12499-
12500- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12501- return String(data: try self.jsonData(), encoding: encoding)
12502- }
12503-}
12504-
12505-// MARK: - Sealed
12506-struct Sealed: Codable {
12507- let sealed: Int
12508-
12509- enum CodingKeys: String, CodingKey {
12510- case sealed = "sealed"
12511- }
12512-}
12513-
12514-// MARK: Sealed convenience initializers and mutators
12515-
12516-extension Sealed {
12517- init(data: Data) throws {
12518- self = try newJSONDecoder().decode(Sealed.self, from: data)
12519- }
12520-
12521- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12522- guard let data = json.data(using: encoding) else {
12523- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12524- }
12525- try self.init(data: data)
12526- }
12527-
12528- init(fromURL url: URL) throws {
12529- try self.init(data: try Data(contentsOf: url))
12530- }
12531-
12532- func with(
12533- sealed: Int? = nil
12534- ) -> Sealed {
12535- return Sealed(
12536- sealed: sealed ?? self.sealed
12537- )
12538- }
12539-
12540- func jsonData() throws -> Data {
12541- return try newJSONEncoder().encode(self)
12542- }
12543-
12544- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12545- return String(data: try self.jsonData(), encoding: encoding)
12546- }
12547-}
12548-
12549-// MARK: - Sel
12550-struct Sel: Codable {
12551- let sel: Int
12552-
12553- enum CodingKeys: String, CodingKey {
12554- case sel = "SEL"
12555- }
12556-}
12557-
12558-// MARK: Sel convenience initializers and mutators
12559-
12560-extension Sel {
12561- init(data: Data) throws {
12562- self = try newJSONDecoder().decode(Sel.self, from: data)
12563- }
12564-
12565- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12566- guard let data = json.data(using: encoding) else {
12567- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12568- }
12569- try self.init(data: data)
12570- }
12571-
12572- init(fromURL url: URL) throws {
12573- try self.init(data: try Data(contentsOf: url))
12574- }
12575-
12576- func with(
12577- sel: Int? = nil
12578- ) -> Sel {
12579- return Sel(
12580- sel: sel ?? self.sel
12581- )
12582- }
12583-
12584- func jsonData() throws -> Data {
12585- return try newJSONEncoder().encode(self)
12586- }
12587-
12588- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12589- return String(data: try self.jsonData(), encoding: encoding)
12590- }
12591-}
12592-
12593-// MARK: - Obj5
12594-struct Obj5: Codable {
12595- let dummy: Int
12596- let kSerializer: KSerializer
12597- let obj5Self: SelfClass
12598- let obj5Set: Set
12599- let obj5Static: Static
12600- let obj5Struct: Struct
12601- let obj5Subscript: Subscript
12602- let obj5Super: Super
12603- let obj5Switch: Switch
12604- let obj5Throw: Throw
12605- let obj5Throws: Throws
12606- let obj5True: True
12607- let obj5Try: Try
12608- let obj5Type: Obj5Type
12609- let obj5Typealias: Typealias
12610- let obj5Unowned: Unowned
12611- let primitiveKind: PrimitiveKind
12612- let purpleSelf: Obj5Self
12613- let purpleTrue: TrueClass
12614- let select: Select
12615- let sendable: Sendable
12616- let serialDescriptor: SerialDescriptor
12617- let serialName: SerialName
12618- let serializable: Serializable
12619- let serialize: Serialize
12620- let serializerProvider: SerializerProvider
12621- let short: Short
12622- let signed: Signed
12623- let simpleModule: SimpleModule
12624- let sizeof: Sizeof
12625- let stackalloc: Stackalloc
12626- let standards: Standards
12627- let staticAssert: StaticAssert
12628- let staticCast: StaticCast
12629- let stdDeserializer: StdDeserializer
12630- let stdSerializer: StdSerializer
12631- let strictfp: Strictfp
12632- let string: StringClass
12633- let symbol: Symbol
12634- let synchronized: Synchronized
12635- let system: System
12636- let template: Template
12637- let then: Then
12638- let this: This
12639- let threadLocal: ThreadLocal
12640- let timeOnly: TimeOnly
12641- let timeOnlyConverter: TimeOnlyConverter
12642- let timeZone: TimeZoneClass
12643- let toDict: ToDict
12644- let toJSON: ToJSON
12645- let toString: ToString
12646- let topLevel: TopLevelClass
12647- let transient: Transient
12648- let type: TypeClass
12649- let typedef: Typedef
12650- let typeid: Typeid
12651- let typename: Typename
12652- let typeof: Typeof
12653- let uint: Uint
12654- let ulong: Ulong
12655- let unchecked: Unchecked
12656- let undefined: Undefined
12657- let union: Union
12658- let unmarshalJSON: UnmarshalJSON
12659- let unsafe: Unsafe
12660- let useSerializers: UseSerializers
12661-
12662- enum CodingKeys: String, CodingKey {
12663- case dummy = "dummy"
12664- case kSerializer = "KSerializer"
12665- case obj5Self = "Self"
12666- case obj5Set = "set"
12667- case obj5Static = "static"
12668- case obj5Struct = "struct"
12669- case obj5Subscript = "subscript"
12670- case obj5Super = "super"
12671- case obj5Switch = "switch"
12672- case obj5Throw = "throw"
12673- case obj5Throws = "throws"
12674- case obj5True = "True"
12675- case obj5Try = "try"
12676- case obj5Type = "type"
12677- case obj5Typealias = "typealias"
12678- case obj5Unowned = "unowned"
12679- case primitiveKind = "PrimitiveKind"
12680- case purpleSelf = "self"
12681- case purpleTrue = "true"
12682- case select = "select"
12683- case sendable = "Sendable"
12684- case serialDescriptor = "SerialDescriptor"
12685- case serialName = "SerialName"
12686- case serializable = "Serializable"
12687- case serialize = "serialize"
12688- case serializerProvider = "SerializerProvider"
12689- case short = "short"
12690- case signed = "signed"
12691- case simpleModule = "SimpleModule"
12692- case sizeof = "sizeof"
12693- case stackalloc = "stackalloc"
12694- case standards = "Standards"
12695- case staticAssert = "static_assert"
12696- case staticCast = "static_cast"
12697- case stdDeserializer = "StdDeserializer"
12698- case stdSerializer = "StdSerializer"
12699- case strictfp = "strictfp"
12700- case string = "string"
12701- case symbol = "symbol"
12702- case synchronized = "synchronized"
12703- case system = "system"
12704- case template = "template"
12705- case then = "then"
12706- case this = "this"
12707- case threadLocal = "thread_local"
12708- case timeOnly = "TimeOnly"
12709- case timeOnlyConverter = "TimeOnlyConverter"
12710- case timeZone = "TimeZone"
12711- case toDict = "to_dict"
12712- case toJSON = "to_json"
12713- case toString = "toString"
12714- case topLevel = "top_level"
12715- case transient = "transient"
12716- case type = "Type"
12717- case typedef = "typedef"
12718- case typeid = "typeid"
12719- case typename = "typename"
12720- case typeof = "typeof"
12721- case uint = "uint"
12722- case ulong = "ulong"
12723- case unchecked = "unchecked"
12724- case undefined = "undefined"
12725- case union = "union"
12726- case unmarshalJSON = "UnmarshalJSON"
12727- case unsafe = "unsafe"
12728- case useSerializers = "UseSerializers"
12729- }
12730-}
12731-
12732-// MARK: Obj5 convenience initializers and mutators
12733-
12734-extension Obj5 {
12735- init(data: Data) throws {
12736- self = try newJSONDecoder().decode(Obj5.self, from: data)
12686+ self = try newJSONDecoder().decode(Obj5.self, from: data)
1273712687 }
1273812688
1273912689 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12763,10 +12713,13 @@ extension Obj5 {
1276312713 obj5Try: Try? = nil,
1276412714 obj5Type: Obj5Type? = nil,
1276512715 obj5Typealias: Typealias? = nil,
12766- obj5Unowned: Unowned? = nil,
1276712716 primitiveKind: PrimitiveKind? = nil,
1276812717 purpleSelf: Obj5Self? = nil,
1276912718 purpleTrue: TrueClass? = nil,
12719+ s: S? = nil,
12720+ sbyte: Sbyte? = nil,
12721+ sealed: Sealed? = nil,
12722+ sel: Sel? = nil,
1277012723 select: Select? = nil,
1277112724 sendable: Sendable? = nil,
1277212725 serialDescriptor: SerialDescriptor? = nil,
@@ -12809,11 +12762,7 @@ extension Obj5 {
1280912762 uint: Uint? = nil,
1281012763 ulong: Ulong? = nil,
1281112764 unchecked: Unchecked? = nil,
12812- undefined: Undefined? = nil,
12813- union: Union? = nil,
12814- unmarshalJSON: UnmarshalJSON? = nil,
12815- unsafe: Unsafe? = nil,
12816- useSerializers: UseSerializers? = nil
12765+ undefined: Undefined? = nil
1281712766 ) -> Obj5 {
1281812767 return Obj5(
1281912768 dummy: dummy ?? self.dummy,
@@ -12831,10 +12780,13 @@ extension Obj5 {
1283112780 obj5Try: obj5Try ?? self.obj5Try,
1283212781 obj5Type: obj5Type ?? self.obj5Type,
1283312782 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
12834- obj5Unowned: obj5Unowned ?? self.obj5Unowned,
1283512783 primitiveKind: primitiveKind ?? self.primitiveKind,
1283612784 purpleSelf: purpleSelf ?? self.purpleSelf,
1283712785 purpleTrue: purpleTrue ?? self.purpleTrue,
12786+ s: s ?? self.s,
12787+ sbyte: sbyte ?? self.sbyte,
12788+ sealed: sealed ?? self.sealed,
12789+ sel: sel ?? self.sel,
1283812790 select: select ?? self.select,
1283912791 sendable: sendable ?? self.sendable,
1284012792 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
@@ -12877,11 +12829,7 @@ extension Obj5 {
1287712829 uint: uint ?? self.uint,
1287812830 ulong: ulong ?? self.ulong,
1287912831 unchecked: unchecked ?? self.unchecked,
12880- undefined: undefined ?? self.undefined,
12881- union: union ?? self.union,
12882- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
12883- unsafe: unsafe ?? self.unsafe,
12884- useSerializers: useSerializers ?? self.useSerializers
12832+ undefined: undefined ?? self.undefined
1288512833 )
1288612834 }
1288712835
@@ -13510,20 +13458,152 @@ extension Typealias {
1351013458 }
1351113459 }
1351213460
13513-// MARK: - Unowned
13514-struct Unowned: Codable {
13515- let unownedUnowned: Int
13461+// MARK: - PrimitiveKind
13462+struct PrimitiveKind: Codable {
13463+ let primitiveKind: Int
1351613464
1351713465 enum CodingKeys: String, CodingKey {
13518- case unownedUnowned = "unowned"
13466+ case primitiveKind = "PrimitiveKind"
13467+ }
13468+}
13469+
13470+// MARK: PrimitiveKind convenience initializers and mutators
13471+
13472+extension PrimitiveKind {
13473+ init(data: Data) throws {
13474+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13475+ }
13476+
13477+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13478+ guard let data = json.data(using: encoding) else {
13479+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13480+ }
13481+ try self.init(data: data)
13482+ }
13483+
13484+ init(fromURL url: URL) throws {
13485+ try self.init(data: try Data(contentsOf: url))
13486+ }
13487+
13488+ func with(
13489+ primitiveKind: Int? = nil
13490+ ) -> PrimitiveKind {
13491+ return PrimitiveKind(
13492+ primitiveKind: primitiveKind ?? self.primitiveKind
13493+ )
13494+ }
13495+
13496+ func jsonData() throws -> Data {
13497+ return try newJSONEncoder().encode(self)
13498+ }
13499+
13500+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13501+ return String(data: try self.jsonData(), encoding: encoding)
13502+ }
13503+}
13504+
13505+// MARK: - Obj5Self
13506+struct Obj5Self: Codable {
13507+ let selfSelf: Int
13508+
13509+ enum CodingKeys: String, CodingKey {
13510+ case selfSelf = "self"
13511+ }
13512+}
13513+
13514+// MARK: Obj5Self convenience initializers and mutators
13515+
13516+extension Obj5Self {
13517+ init(data: Data) throws {
13518+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13519+ }
13520+
13521+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13522+ guard let data = json.data(using: encoding) else {
13523+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13524+ }
13525+ try self.init(data: data)
13526+ }
13527+
13528+ init(fromURL url: URL) throws {
13529+ try self.init(data: try Data(contentsOf: url))
13530+ }
13531+
13532+ func with(
13533+ selfSelf: Int? = nil
13534+ ) -> Obj5Self {
13535+ return Obj5Self(
13536+ selfSelf: selfSelf ?? self.selfSelf
13537+ )
13538+ }
13539+
13540+ func jsonData() throws -> Data {
13541+ return try newJSONEncoder().encode(self)
13542+ }
13543+
13544+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13545+ return String(data: try self.jsonData(), encoding: encoding)
13546+ }
13547+}
13548+
13549+// MARK: - TrueClass
13550+struct TrueClass: Codable {
13551+ let trueTrue: Int
13552+
13553+ enum CodingKeys: String, CodingKey {
13554+ case trueTrue = "true"
13555+ }
13556+}
13557+
13558+// MARK: TrueClass convenience initializers and mutators
13559+
13560+extension TrueClass {
13561+ init(data: Data) throws {
13562+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
13563+ }
13564+
13565+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13566+ guard let data = json.data(using: encoding) else {
13567+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13568+ }
13569+ try self.init(data: data)
13570+ }
13571+
13572+ init(fromURL url: URL) throws {
13573+ try self.init(data: try Data(contentsOf: url))
13574+ }
13575+
13576+ func with(
13577+ trueTrue: Int? = nil
13578+ ) -> TrueClass {
13579+ return TrueClass(
13580+ trueTrue: trueTrue ?? self.trueTrue
13581+ )
13582+ }
13583+
13584+ func jsonData() throws -> Data {
13585+ return try newJSONEncoder().encode(self)
13586+ }
13587+
13588+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13589+ return String(data: try self.jsonData(), encoding: encoding)
13590+ }
13591+}
13592+
13593+// MARK: - S
13594+struct S: Codable {
13595+ let s: Int
13596+
13597+ enum CodingKeys: String, CodingKey {
13598+ case s = "s"
1351913599 }
1352013600 }
1352113601
13522-// MARK: Unowned convenience initializers and mutators
13602+// MARK: S convenience initializers and mutators
1352313603
13524-extension Unowned {
13604+extension S {
1352513605 init(data: Data) throws {
13526- self = try newJSONDecoder().decode(Unowned.self, from: data)
13606+ self = try newJSONDecoder().decode(S.self, from: data)
1352713607 }
1352813608
1352913609 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13538,10 +13618,10 @@ extension Unowned {
1353813618 }
1353913619
1354013620 func with(
13541- unownedUnowned: Int? = nil
13542- ) -> Unowned {
13543- return Unowned(
13544- unownedUnowned: unownedUnowned ?? self.unownedUnowned
13621+ s: Int? = nil
13622+ ) -> S {
13623+ return S(
13624+ s: s ?? self.s
1354513625 )
1354613626 }
1354713627
@@ -13554,20 +13634,20 @@ extension Unowned {
1355413634 }
1355513635 }
1355613636
13557-// MARK: - PrimitiveKind
13558-struct PrimitiveKind: Codable {
13559- let primitiveKind: Int
13637+// MARK: - Sbyte
13638+struct Sbyte: Codable {
13639+ let sbyte: Int
1356013640
1356113641 enum CodingKeys: String, CodingKey {
13562- case primitiveKind = "PrimitiveKind"
13642+ case sbyte = "sbyte"
1356313643 }
1356413644 }
1356513645
13566-// MARK: PrimitiveKind convenience initializers and mutators
13646+// MARK: Sbyte convenience initializers and mutators
1356713647
13568-extension PrimitiveKind {
13648+extension Sbyte {
1356913649 init(data: Data) throws {
13570- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13650+ self = try newJSONDecoder().decode(Sbyte.self, from: data)
1357113651 }
1357213652
1357313653 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13582,10 +13662,10 @@ extension PrimitiveKind {
1358213662 }
1358313663
1358413664 func with(
13585- primitiveKind: Int? = nil
13586- ) -> PrimitiveKind {
13587- return PrimitiveKind(
13588- primitiveKind: primitiveKind ?? self.primitiveKind
13665+ sbyte: Int? = nil
13666+ ) -> Sbyte {
13667+ return Sbyte(
13668+ sbyte: sbyte ?? self.sbyte
1358913669 )
1359013670 }
1359113671
@@ -13598,20 +13678,20 @@ extension PrimitiveKind {
1359813678 }
1359913679 }
1360013680
13601-// MARK: - Obj5Self
13602-struct Obj5Self: Codable {
13603- let selfSelf: Int
13681+// MARK: - Sealed
13682+struct Sealed: Codable {
13683+ let sealed: Int
1360413684
1360513685 enum CodingKeys: String, CodingKey {
13606- case selfSelf = "self"
13686+ case sealed = "sealed"
1360713687 }
1360813688 }
1360913689
13610-// MARK: Obj5Self convenience initializers and mutators
13690+// MARK: Sealed convenience initializers and mutators
1361113691
13612-extension Obj5Self {
13692+extension Sealed {
1361313693 init(data: Data) throws {
13614- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13694+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1361513695 }
1361613696
1361713697 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13626,10 +13706,10 @@ extension Obj5Self {
1362613706 }
1362713707
1362813708 func with(
13629- selfSelf: Int? = nil
13630- ) -> Obj5Self {
13631- return Obj5Self(
13632- selfSelf: selfSelf ?? self.selfSelf
13709+ sealed: Int? = nil
13710+ ) -> Sealed {
13711+ return Sealed(
13712+ sealed: sealed ?? self.sealed
1363313713 )
1363413714 }
1363513715
@@ -13642,20 +13722,20 @@ extension Obj5Self {
1364213722 }
1364313723 }
1364413724
13645-// MARK: - TrueClass
13646-struct TrueClass: Codable {
13647- let trueTrue: Int
13725+// MARK: - Sel
13726+struct Sel: Codable {
13727+ let sel: Int
1364813728
1364913729 enum CodingKeys: String, CodingKey {
13650- case trueTrue = "true"
13730+ case sel = "SEL"
1365113731 }
1365213732 }
1365313733
13654-// MARK: TrueClass convenience initializers and mutators
13734+// MARK: Sel convenience initializers and mutators
1365513735
13656-extension TrueClass {
13736+extension Sel {
1365713737 init(data: Data) throws {
13658- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13738+ self = try newJSONDecoder().decode(Sel.self, from: data)
1365913739 }
1366013740
1366113741 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13670,10 +13750,10 @@ extension TrueClass {
1367013750 }
1367113751
1367213752 func with(
13673- trueTrue: Int? = nil
13674- ) -> TrueClass {
13675- return TrueClass(
13676- trueTrue: trueTrue ?? self.trueTrue
13753+ sel: Int? = nil
13754+ ) -> Sel {
13755+ return Sel(
13756+ sel: sel ?? self.sel
1367713757 )
1367813758 }
1367913759
@@ -15534,196 +15614,20 @@ extension Unchecked {
1553415614 }
1553515615 }
1553615616
15537-// MARK: - Undefined
15538-struct Undefined: Codable {
15539- let undefined: Int
15540-
15541- enum CodingKeys: String, CodingKey {
15542- case undefined = "undefined"
15543- }
15544-}
15545-
15546-// MARK: Undefined convenience initializers and mutators
15547-
15548-extension Undefined {
15549- init(data: Data) throws {
15550- self = try newJSONDecoder().decode(Undefined.self, from: data)
15551- }
15552-
15553- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15554- guard let data = json.data(using: encoding) else {
15555- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15556- }
15557- try self.init(data: data)
15558- }
15559-
15560- init(fromURL url: URL) throws {
15561- try self.init(data: try Data(contentsOf: url))
15562- }
15563-
15564- func with(
15565- undefined: Int? = nil
15566- ) -> Undefined {
15567- return Undefined(
15568- undefined: undefined ?? self.undefined
15569- )
15570- }
15571-
15572- func jsonData() throws -> Data {
15573- return try newJSONEncoder().encode(self)
15574- }
15575-
15576- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15577- return String(data: try self.jsonData(), encoding: encoding)
15578- }
15579-}
15580-
15581-// MARK: - Union
15582-struct Union: Codable {
15583- let union: Int
15584-
15585- enum CodingKeys: String, CodingKey {
15586- case union = "union"
15587- }
15588-}
15589-
15590-// MARK: Union convenience initializers and mutators
15591-
15592-extension Union {
15593- init(data: Data) throws {
15594- self = try newJSONDecoder().decode(Union.self, from: data)
15595- }
15596-
15597- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15598- guard let data = json.data(using: encoding) else {
15599- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15600- }
15601- try self.init(data: data)
15602- }
15603-
15604- init(fromURL url: URL) throws {
15605- try self.init(data: try Data(contentsOf: url))
15606- }
15607-
15608- func with(
15609- union: Int? = nil
15610- ) -> Union {
15611- return Union(
15612- union: union ?? self.union
15613- )
15614- }
15615-
15616- func jsonData() throws -> Data {
15617- return try newJSONEncoder().encode(self)
15618- }
15619-
15620- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15621- return String(data: try self.jsonData(), encoding: encoding)
15622- }
15623-}
15624-
15625-// MARK: - UnmarshalJSON
15626-struct UnmarshalJSON: Codable {
15627- let unmarshalJSON: Int
15628-
15629- enum CodingKeys: String, CodingKey {
15630- case unmarshalJSON = "UnmarshalJSON"
15631- }
15632-}
15633-
15634-// MARK: UnmarshalJSON convenience initializers and mutators
15635-
15636-extension UnmarshalJSON {
15637- init(data: Data) throws {
15638- self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
15639- }
15640-
15641- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15642- guard let data = json.data(using: encoding) else {
15643- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15644- }
15645- try self.init(data: data)
15646- }
15647-
15648- init(fromURL url: URL) throws {
15649- try self.init(data: try Data(contentsOf: url))
15650- }
15651-
15652- func with(
15653- unmarshalJSON: Int? = nil
15654- ) -> UnmarshalJSON {
15655- return UnmarshalJSON(
15656- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
15657- )
15658- }
15659-
15660- func jsonData() throws -> Data {
15661- return try newJSONEncoder().encode(self)
15662- }
15663-
15664- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15665- return String(data: try self.jsonData(), encoding: encoding)
15666- }
15667-}
15668-
15669-// MARK: - Unsafe
15670-struct Unsafe: Codable {
15671- let unsafe: Int
15672-
15673- enum CodingKeys: String, CodingKey {
15674- case unsafe = "unsafe"
15675- }
15676-}
15677-
15678-// MARK: Unsafe convenience initializers and mutators
15679-
15680-extension Unsafe {
15681- init(data: Data) throws {
15682- self = try newJSONDecoder().decode(Unsafe.self, from: data)
15683- }
15684-
15685- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15686- guard let data = json.data(using: encoding) else {
15687- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15688- }
15689- try self.init(data: data)
15690- }
15691-
15692- init(fromURL url: URL) throws {
15693- try self.init(data: try Data(contentsOf: url))
15694- }
15695-
15696- func with(
15697- unsafe: Int? = nil
15698- ) -> Unsafe {
15699- return Unsafe(
15700- unsafe: unsafe ?? self.unsafe
15701- )
15702- }
15703-
15704- func jsonData() throws -> Data {
15705- return try newJSONEncoder().encode(self)
15706- }
15707-
15708- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15709- return String(data: try self.jsonData(), encoding: encoding)
15710- }
15711-}
15712-
15713-// MARK: - UseSerializers
15714-struct UseSerializers: Codable {
15715- let useSerializers: Int
15617+// MARK: - Undefined
15618+struct Undefined: Codable {
15619+ let undefined: Int
1571615620
1571715621 enum CodingKeys: String, CodingKey {
15718- case useSerializers = "UseSerializers"
15622+ case undefined = "undefined"
1571915623 }
1572015624 }
1572115625
15722-// MARK: UseSerializers convenience initializers and mutators
15626+// MARK: Undefined convenience initializers and mutators
1572315627
15724-extension UseSerializers {
15628+extension Undefined {
1572515629 init(data: Data) throws {
15726- self = try newJSONDecoder().decode(UseSerializers.self, from: data)
15630+ self = try newJSONDecoder().decode(Undefined.self, from: data)
1572715631 }
1572815632
1572915633 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15738,10 +15642,10 @@ extension UseSerializers {
1573815642 }
1573915643
1574015644 func with(
15741- useSerializers: Int? = nil
15742- ) -> UseSerializers {
15743- return UseSerializers(
15744- useSerializers: useSerializers ?? self.useSerializers
15645+ undefined: Int? = nil
15646+ ) -> Undefined {
15647+ return Undefined(
15648+ undefined: undefined ?? self.undefined
1574515649 )
1574615650 }
1574715651
@@ -15757,12 +15661,17 @@ extension UseSerializers {
1575715661 // MARK: - Obj6
1575815662 struct Obj6: Codable {
1575915663 let dummy: Int
15664+ let obj6Unowned: Unowned
1576015665 let obj6Var: Var
1576115666 let obj6Weak: Weak
1576215667 let obj6Where: Where
1576315668 let obj6While: While
1576415669 let obj6WillSet: WillSet
15670+ let union: Union
15671+ let unmarshalJSON: UnmarshalJSON
15672+ let unsafe: Unsafe
1576515673 let unsigned: Unsigned
15674+ let useSerializers: UseSerializers
1576615675 let ushort: Ushort
1576715676 let using: Using
1576815677 let utf8JSONReader: Utf8JSONReader
@@ -15780,12 +15689,17 @@ struct Obj6: Codable {
1578015689
1578115690 enum CodingKeys: String, CodingKey {
1578215691 case dummy = "dummy"
15692+ case obj6Unowned = "unowned"
1578315693 case obj6Var = "var"
1578415694 case obj6Weak = "weak"
1578515695 case obj6Where = "where"
1578615696 case obj6While = "while"
1578715697 case obj6WillSet = "willSet"
15698+ case union = "union"
15699+ case unmarshalJSON = "UnmarshalJSON"
15700+ case unsafe = "unsafe"
1578815701 case unsigned = "unsigned"
15702+ case useSerializers = "UseSerializers"
1578915703 case ushort = "ushort"
1579015704 case using = "using"
1579115705 case utf8JSONReader = "Utf8JsonReader"
@@ -15823,12 +15737,17 @@ extension Obj6 {
1582315737
1582415738 func with(
1582515739 dummy: Int? = nil,
15740+ obj6Unowned: Unowned? = nil,
1582615741 obj6Var: Var? = nil,
1582715742 obj6Weak: Weak? = nil,
1582815743 obj6Where: Where? = nil,
1582915744 obj6While: While? = nil,
1583015745 obj6WillSet: WillSet? = nil,
15746+ union: Union? = nil,
15747+ unmarshalJSON: UnmarshalJSON? = nil,
15748+ unsafe: Unsafe? = nil,
1583115749 unsigned: Unsigned? = nil,
15750+ useSerializers: UseSerializers? = nil,
1583215751 ushort: Ushort? = nil,
1583315752 using: Using? = nil,
1583415753 utf8JSONReader: Utf8JSONReader? = nil,
@@ -15846,12 +15765,17 @@ extension Obj6 {
1584615765 ) -> Obj6 {
1584715766 return Obj6(
1584815767 dummy: dummy ?? self.dummy,
15768+ obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1584915769 obj6Var: obj6Var ?? self.obj6Var,
1585015770 obj6Weak: obj6Weak ?? self.obj6Weak,
1585115771 obj6Where: obj6Where ?? self.obj6Where,
1585215772 obj6While: obj6While ?? self.obj6While,
1585315773 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15774+ union: union ?? self.union,
15775+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
15776+ unsafe: unsafe ?? self.unsafe,
1585415777 unsigned: unsigned ?? self.unsigned,
15778+ useSerializers: useSerializers ?? self.useSerializers,
1585515779 ushort: ushort ?? self.ushort,
1585615780 using: using ?? self.using,
1585715781 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
@@ -15878,6 +15802,50 @@ extension Obj6 {
1587815802 }
1587915803 }
1588015804
15805+// MARK: - Unowned
15806+struct Unowned: Codable {
15807+ let unownedUnowned: Int
15808+
15809+ enum CodingKeys: String, CodingKey {
15810+ case unownedUnowned = "unowned"
15811+ }
15812+}
15813+
15814+// MARK: Unowned convenience initializers and mutators
15815+
15816+extension Unowned {
15817+ init(data: Data) throws {
15818+ self = try newJSONDecoder().decode(Unowned.self, from: data)
15819+ }
15820+
15821+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15822+ guard let data = json.data(using: encoding) else {
15823+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15824+ }
15825+ try self.init(data: data)
15826+ }
15827+
15828+ init(fromURL url: URL) throws {
15829+ try self.init(data: try Data(contentsOf: url))
15830+ }
15831+
15832+ func with(
15833+ unownedUnowned: Int? = nil
15834+ ) -> Unowned {
15835+ return Unowned(
15836+ unownedUnowned: unownedUnowned ?? self.unownedUnowned
15837+ )
15838+ }
15839+
15840+ func jsonData() throws -> Data {
15841+ return try newJSONEncoder().encode(self)
15842+ }
15843+
15844+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15845+ return String(data: try self.jsonData(), encoding: encoding)
15846+ }
15847+}
15848+
1588115849 // MARK: - Var
1588215850 struct Var: Codable {
1588315851 let varVar: Int
@@ -16098,6 +16066,138 @@ extension WillSet {
1609816066 }
1609916067 }
1610016068
16069+// MARK: - Union
16070+struct Union: Codable {
16071+ let union: Int
16072+
16073+ enum CodingKeys: String, CodingKey {
16074+ case union = "union"
16075+ }
16076+}
16077+
16078+// MARK: Union convenience initializers and mutators
16079+
16080+extension Union {
16081+ init(data: Data) throws {
16082+ self = try newJSONDecoder().decode(Union.self, from: data)
16083+ }
16084+
16085+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16086+ guard let data = json.data(using: encoding) else {
16087+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16088+ }
16089+ try self.init(data: data)
16090+ }
16091+
16092+ init(fromURL url: URL) throws {
16093+ try self.init(data: try Data(contentsOf: url))
16094+ }
16095+
16096+ func with(
16097+ union: Int? = nil
16098+ ) -> Union {
16099+ return Union(
16100+ union: union ?? self.union
16101+ )
16102+ }
16103+
16104+ func jsonData() throws -> Data {
16105+ return try newJSONEncoder().encode(self)
16106+ }
16107+
16108+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16109+ return String(data: try self.jsonData(), encoding: encoding)
16110+ }
16111+}
16112+
16113+// MARK: - UnmarshalJSON
16114+struct UnmarshalJSON: Codable {
16115+ let unmarshalJSON: Int
16116+
16117+ enum CodingKeys: String, CodingKey {
16118+ case unmarshalJSON = "UnmarshalJSON"
16119+ }
16120+}
16121+
16122+// MARK: UnmarshalJSON convenience initializers and mutators
16123+
16124+extension UnmarshalJSON {
16125+ init(data: Data) throws {
16126+ self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
16127+ }
16128+
16129+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16130+ guard let data = json.data(using: encoding) else {
16131+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16132+ }
16133+ try self.init(data: data)
16134+ }
16135+
16136+ init(fromURL url: URL) throws {
16137+ try self.init(data: try Data(contentsOf: url))
16138+ }
16139+
16140+ func with(
16141+ unmarshalJSON: Int? = nil
16142+ ) -> UnmarshalJSON {
16143+ return UnmarshalJSON(
16144+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
16145+ )
16146+ }
16147+
16148+ func jsonData() throws -> Data {
16149+ return try newJSONEncoder().encode(self)
16150+ }
16151+
16152+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16153+ return String(data: try self.jsonData(), encoding: encoding)
16154+ }
16155+}
16156+
16157+// MARK: - Unsafe
16158+struct Unsafe: Codable {
16159+ let unsafe: Int
16160+
16161+ enum CodingKeys: String, CodingKey {
16162+ case unsafe = "unsafe"
16163+ }
16164+}
16165+
16166+// MARK: Unsafe convenience initializers and mutators
16167+
16168+extension Unsafe {
16169+ init(data: Data) throws {
16170+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
16171+ }
16172+
16173+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16174+ guard let data = json.data(using: encoding) else {
16175+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16176+ }
16177+ try self.init(data: data)
16178+ }
16179+
16180+ init(fromURL url: URL) throws {
16181+ try self.init(data: try Data(contentsOf: url))
16182+ }
16183+
16184+ func with(
16185+ unsafe: Int? = nil
16186+ ) -> Unsafe {
16187+ return Unsafe(
16188+ unsafe: unsafe ?? self.unsafe
16189+ )
16190+ }
16191+
16192+ func jsonData() throws -> Data {
16193+ return try newJSONEncoder().encode(self)
16194+ }
16195+
16196+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16197+ return String(data: try self.jsonData(), encoding: encoding)
16198+ }
16199+}
16200+
1610116201 // MARK: - Unsigned
1610216202 struct Unsigned: Codable {
1610316203 let unsigned: Int
@@ -16142,6 +16242,50 @@ extension Unsigned {
1614216242 }
1614316243 }
1614416244
16245+// MARK: - UseSerializers
16246+struct UseSerializers: Codable {
16247+ let useSerializers: Int
16248+
16249+ enum CodingKeys: String, CodingKey {
16250+ case useSerializers = "UseSerializers"
16251+ }
16252+}
16253+
16254+// MARK: UseSerializers convenience initializers and mutators
16255+
16256+extension UseSerializers {
16257+ init(data: Data) throws {
16258+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
16259+ }
16260+
16261+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16262+ guard let data = json.data(using: encoding) else {
16263+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16264+ }
16265+ try self.init(data: data)
16266+ }
16267+
16268+ init(fromURL url: URL) throws {
16269+ try self.init(data: try Data(contentsOf: url))
16270+ }
16271+
16272+ func with(
16273+ useSerializers: Int? = nil
16274+ ) -> UseSerializers {
16275+ return UseSerializers(
16276+ useSerializers: useSerializers ?? self.useSerializers
16277+ )
16278+ }
16279+
16280+ func jsonData() throws -> Data {
16281+ return try newJSONEncoder().encode(self)
16282+ }
16283+
16284+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16285+ return String(data: try self.jsonData(), encoding: encoding)
16286+ }
16287+}
16288+
1614516289 // MARK: - Ushort
1614616290 struct Ushort: Codable {
1614716291 let ushort: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+922 −760
@@ -7137,6 +7137,7 @@ extension FalseClass {
71377137 let jsonWriter: JSONWriter
71387138 let lambda: Lambda
71397139 let list: List
7140+ let localDate: LocalDate
71407141 let locale: LocaleClass
71417142 let lock: Lock
71427143 let long: Long
@@ -7150,7 +7151,6 @@ extension FalseClass {
71507151 let native: Native
71517152 let new: New
71527153 let newtonsoft: Newtonsoft
7153- let no: No
71547154 let obj3Guard: Guard
71557155 let obj3If: If
71567156 let obj3Import: Import
@@ -7166,7 +7166,6 @@ extension FalseClass {
71667166 let obj3Left: Left
71677167 let obj3Let: Let
71687168 let obj3Mutating: Mutating
7169- let obj3Nil: Nil
71707169
71717170 enum CodingKeys: String, CodingKey {
71727171 case dummy = "dummy"
@@ -7205,6 +7204,7 @@ extension FalseClass {
72057204 case jsonWriter = "json_writer"
72067205 case lambda = "lambda"
72077206 case list = "list"
7207+ case localDate = "LocalDate"
72087208 case locale = "Locale"
72097209 case lock = "lock"
72107210 case long = "long"
@@ -7218,7 +7218,6 @@ extension FalseClass {
72187218 case native = "native"
72197219 case new = "new"
72207220 case newtonsoft = "newtonsoft"
7221- case no = "NO"
72227221 case obj3Guard = "guard"
72237222 case obj3If = "if"
72247223 case obj3Import = "import"
@@ -7234,10 +7233,9 @@ extension FalseClass {
72347233 case obj3Left = "left"
72357234 case obj3Let = "let"
72367235 case obj3Mutating = "mutating"
7237- case obj3Nil = "nil"
72387236 }
72397237
7240- 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, marshalJSON: MarshalJSON, 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) {
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, localDate: LocalDate, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, marshalJSON: MarshalJSON, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, 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) {
72417239 self.dummy = dummy
72427240 self.goto = goto
72437241 self.hasOwnProperty = hasOwnProperty
@@ -7274,6 +7272,7 @@ extension FalseClass {
72747272 self.jsonWriter = jsonWriter
72757273 self.lambda = lambda
72767274 self.list = list
7275+ self.localDate = localDate
72777276 self.locale = locale
72787277 self.lock = lock
72797278 self.long = long
@@ -7287,7 +7286,6 @@ extension FalseClass {
72877286 self.native = native
72887287 self.new = new
72897288 self.newtonsoft = newtonsoft
7290- self.no = no
72917289 self.obj3Guard = obj3Guard
72927290 self.obj3If = obj3If
72937291 self.obj3Import = obj3Import
@@ -7303,7 +7301,6 @@ extension FalseClass {
73037301 self.obj3Left = obj3Left
73047302 self.obj3Let = obj3Let
73057303 self.obj3Mutating = obj3Mutating
7306- self.obj3Nil = obj3Nil
73077304 }
73087305 }
73097306
@@ -7312,7 +7309,7 @@ extension FalseClass {
73127309 extension Obj3 {
73137310 convenience init(data: Data) throws {
73147311 let me = try newJSONDecoder().decode(Obj3.self, from: data)
7315- 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, marshalJSON: me.marshalJSON, 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)
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, localDate: me.localDate, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, marshalJSON: me.marshalJSON, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, 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)
73167313 }
73177314
73187315 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -7363,6 +7360,7 @@ extension Obj3 {
73637360 jsonWriter: JSONWriter? = nil,
73647361 lambda: Lambda? = nil,
73657362 list: List? = nil,
7363+ localDate: LocalDate? = nil,
73667364 locale: LocaleClass? = nil,
73677365 lock: Lock? = nil,
73687366 long: Long? = nil,
@@ -7376,7 +7374,6 @@ extension Obj3 {
73767374 native: Native? = nil,
73777375 new: New? = nil,
73787376 newtonsoft: Newtonsoft? = nil,
7379- no: No? = nil,
73807377 obj3Guard: Guard? = nil,
73817378 obj3If: If? = nil,
73827379 obj3Import: Import? = nil,
@@ -7391,8 +7388,7 @@ extension Obj3 {
73917388 obj3Lazy: Lazy? = nil,
73927389 obj3Left: Left? = nil,
73937390 obj3Let: Let? = nil,
7394- obj3Mutating: Mutating? = nil,
7395- obj3Nil: Nil? = nil
7391+ obj3Mutating: Mutating? = nil
73967392 ) -> Obj3 {
73977393 return Obj3(
73987394 dummy: dummy ?? self.dummy,
@@ -7431,6 +7427,7 @@ extension Obj3 {
74317427 jsonWriter: jsonWriter ?? self.jsonWriter,
74327428 lambda: lambda ?? self.lambda,
74337429 list: list ?? self.list,
7430+ localDate: localDate ?? self.localDate,
74347431 locale: locale ?? self.locale,
74357432 lock: lock ?? self.lock,
74367433 long: long ?? self.long,
@@ -7444,7 +7441,6 @@ extension Obj3 {
74447441 native: native ?? self.native,
74457442 new: new ?? self.new,
74467443 newtonsoft: newtonsoft ?? self.newtonsoft,
7447- no: no ?? self.no,
74487444 obj3Guard: obj3Guard ?? self.obj3Guard,
74497445 obj3If: obj3If ?? self.obj3If,
74507446 obj3Import: obj3Import ?? self.obj3Import,
@@ -7459,8 +7455,7 @@ extension Obj3 {
74597455 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
74607456 obj3Left: obj3Left ?? self.obj3Left,
74617457 obj3Let: obj3Let ?? self.obj3Let,
7462- obj3Mutating: obj3Mutating ?? self.obj3Mutating,
7463- obj3Nil: obj3Nil ?? self.obj3Nil
7458+ obj3Mutating: obj3Mutating ?? self.obj3Mutating
74647459 )
74657460 }
74667461
@@ -9188,6 +9183,55 @@ extension List {
91889183 }
91899184 }
91909185
9186+// MARK: - LocalDate
9187+@objcMembers class LocalDate: NSObject, Codable {
9188+ let localDate: Int
9189+
9190+ enum CodingKeys: String, CodingKey {
9191+ case localDate = "LocalDate"
9192+ }
9193+
9194+ init(localDate: Int) {
9195+ self.localDate = localDate
9196+ }
9197+}
9198+
9199+// MARK: LocalDate convenience initializers and mutators
9200+
9201+extension LocalDate {
9202+ convenience init(data: Data) throws {
9203+ let me = try newJSONDecoder().decode(LocalDate.self, from: data)
9204+ self.init(localDate: me.localDate)
9205+ }
9206+
9207+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9208+ guard let data = json.data(using: encoding) else {
9209+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9210+ }
9211+ try self.init(data: data)
9212+ }
9213+
9214+ convenience init(fromURL url: URL) throws {
9215+ try self.init(data: try Data(contentsOf: url))
9216+ }
9217+
9218+ func with(
9219+ localDate: Int? = nil
9220+ ) -> LocalDate {
9221+ return LocalDate(
9222+ localDate: localDate ?? self.localDate
9223+ )
9224+ }
9225+
9226+ func jsonData() throws -> Data {
9227+ return try newJSONEncoder().encode(self)
9228+ }
9229+
9230+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9231+ return String(data: try self.jsonData(), encoding: encoding)
9232+ }
9233+}
9234+
91919235 // MARK: - LocaleClass
91929236 @objcMembers class LocaleClass: NSObject, Codable {
91939237 let locale: Int
@@ -9825,55 +9869,6 @@ extension Newtonsoft {
98259869 }
98269870 }
98279871
9828-// MARK: - No
9829-@objcMembers class No: NSObject, Codable {
9830- let no: Int
9831-
9832- enum CodingKeys: String, CodingKey {
9833- case no = "NO"
9834- }
9835-
9836- init(no: Int) {
9837- self.no = no
9838- }
9839-}
9840-
9841-// MARK: No convenience initializers and mutators
9842-
9843-extension No {
9844- convenience init(data: Data) throws {
9845- let me = try newJSONDecoder().decode(No.self, from: data)
9846- self.init(no: me.no)
9847- }
9848-
9849- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9850- guard let data = json.data(using: encoding) else {
9851- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9852- }
9853- try self.init(data: data)
9854- }
9855-
9856- convenience init(fromURL url: URL) throws {
9857- try self.init(data: try Data(contentsOf: url))
9858- }
9859-
9860- func with(
9861- no: Int? = nil
9862- ) -> No {
9863- return No(
9864- no: no ?? self.no
9865- )
9866- }
9867-
9868- func jsonData() throws -> Data {
9869- return try newJSONEncoder().encode(self)
9870- }
9871-
9872- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9873- return String(data: try self.jsonData(), encoding: encoding)
9874- }
9875-}
9876-
98779872 // MARK: - Guard
98789873 @objcMembers class Guard: NSObject, Codable {
98799874 let guardGuard: Int
@@ -10609,58 +10604,10 @@ extension Mutating {
1060910604 }
1061010605 }
1061110606
10612-// MARK: - Nil
10613-@objcMembers class Nil: NSObject, Codable {
10614- let nilNil: Int
10615-
10616- enum CodingKeys: String, CodingKey {
10617- case nilNil = "nil"
10618- }
10619-
10620- init(nilNil: Int) {
10621- self.nilNil = nilNil
10622- }
10623-}
10624-
10625-// MARK: Nil convenience initializers and mutators
10626-
10627-extension Nil {
10628- convenience init(data: Data) throws {
10629- let me = try newJSONDecoder().decode(Nil.self, from: data)
10630- self.init(nilNil: me.nilNil)
10631- }
10632-
10633- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10634- guard let data = json.data(using: encoding) else {
10635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10636- }
10637- try self.init(data: data)
10638- }
10639-
10640- convenience init(fromURL url: URL) throws {
10641- try self.init(data: try Data(contentsOf: url))
10642- }
10643-
10644- func with(
10645- nilNil: Int? = nil
10646- ) -> Nil {
10647- return Nil(
10648- nilNil: nilNil ?? self.nilNil
10649- )
10650- }
10651-
10652- func jsonData() throws -> Data {
10653- return try newJSONEncoder().encode(self)
10654- }
10655-
10656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10657- return String(data: try self.jsonData(), encoding: encoding)
10658- }
10659-}
10660-
1066110607 // MARK: - Obj4
1066210608 @objcMembers class Obj4: NSObject, Codable {
1066310609 let dummy: Int
10610+ let no: No
1066410611 let noSuchMethod: NoSuchMethod
1066510612 let noexcept: Noexcept
1066610613 let nonatomic: Nonatomic
@@ -10674,6 +10621,7 @@ extension Nil {
1067410621 let null: Null
1067510622 let nullptr: Nullptr
1067610623 let number: Number
10624+ let obj4Nil: Nil
1067710625 let obj4None: NoneClass
1067810626 let obj4Nonmutating: Nonmutating
1067910627 let obj4Null: NullClass
@@ -10696,6 +10644,8 @@ extension Nil {
1069610644 let object: Object
1069710645 let objectMapper: ObjectMapper
1069810646 let of: Of
10647+ let offsetDateTime: OffsetDateTime
10648+ let offsetTime: OffsetTime
1069910649 let oneway: Oneway
1070010650 let or: Or
1070110651 let orEq: OrEq
@@ -10721,13 +10671,10 @@ extension Nil {
1072110671 let requires: Requires
1072210672 let restrict: Restrict
1072310673 let runtimeType: RuntimeType
10724- let s: S
10725- let sbyte: Sbyte
10726- let sealed: Sealed
10727- let sel: Sel
1072810674
1072910675 enum CodingKeys: String, CodingKey {
1073010676 case dummy = "dummy"
10677+ case no = "NO"
1073110678 case noSuchMethod = "noSuchMethod"
1073210679 case noexcept = "noexcept"
1073310680 case nonatomic = "nonatomic"
@@ -10741,6 +10688,7 @@ extension Nil {
1074110688 case null = "NULL"
1074210689 case nullptr = "nullptr"
1074310690 case number = "number"
10691+ case obj4Nil = "nil"
1074410692 case obj4None = "none"
1074510693 case obj4Nonmutating = "nonmutating"
1074610694 case obj4Null = "null"
@@ -10763,6 +10711,8 @@ extension Nil {
1076310711 case object = "object"
1076410712 case objectMapper = "ObjectMapper"
1076510713 case of = "of"
10714+ case offsetDateTime = "OffsetDateTime"
10715+ case offsetTime = "OffsetTime"
1076610716 case oneway = "oneway"
1076710717 case or = "or"
1076810718 case orEq = "or_eq"
@@ -10788,14 +10738,11 @@ extension Nil {
1078810738 case requires = "requires"
1078910739 case restrict = "restrict"
1079010740 case runtimeType = "runtimeType"
10791- case s = "s"
10792- case sbyte = "sbyte"
10793- case sealed = "sealed"
10794- case sel = "SEL"
1079510741 }
1079610742
10797- 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) {
10743+ init(dummy: Int, no: No, 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, obj4Nil: Nil, 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, offsetDateTime: OffsetDateTime, offsetTime: OffsetTime, 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) {
1079810744 self.dummy = dummy
10745+ self.no = no
1079910746 self.noSuchMethod = noSuchMethod
1080010747 self.noexcept = noexcept
1080110748 self.nonatomic = nonatomic
@@ -10809,6 +10756,7 @@ extension Nil {
1080910756 self.null = null
1081010757 self.nullptr = nullptr
1081110758 self.number = number
10759+ self.obj4Nil = obj4Nil
1081210760 self.obj4None = obj4None
1081310761 self.obj4Nonmutating = obj4Nonmutating
1081410762 self.obj4Null = obj4Null
@@ -10831,6 +10779,8 @@ extension Nil {
1083110779 self.object = object
1083210780 self.objectMapper = objectMapper
1083310781 self.of = of
10782+ self.offsetDateTime = offsetDateTime
10783+ self.offsetTime = offsetTime
1083410784 self.oneway = oneway
1083510785 self.or = or
1083610786 self.orEq = orEq
@@ -10856,10 +10806,6 @@ extension Nil {
1085610806 self.requires = requires
1085710807 self.restrict = restrict
1085810808 self.runtimeType = runtimeType
10859- self.s = s
10860- self.sbyte = sbyte
10861- self.sealed = sealed
10862- self.sel = sel
1086310809 }
1086410810 }
1086510811
@@ -10868,7 +10814,7 @@ extension Nil {
1086810814 extension Obj4 {
1086910815 convenience init(data: Data) throws {
1087010816 let me = try newJSONDecoder().decode(Obj4.self, from: data)
10871- 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)
10817+ self.init(dummy: me.dummy, no: me.no, 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, obj4Nil: me.obj4Nil, 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, offsetDateTime: me.offsetDateTime, offsetTime: me.offsetTime, 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)
1087210818 }
1087310819
1087410820 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -10884,6 +10830,7 @@ extension Obj4 {
1088410830
1088510831 func with(
1088610832 dummy: Int? = nil,
10833+ no: No? = nil,
1088710834 noSuchMethod: NoSuchMethod? = nil,
1088810835 noexcept: Noexcept? = nil,
1088910836 nonatomic: Nonatomic? = nil,
@@ -10897,6 +10844,7 @@ extension Obj4 {
1089710844 null: Null? = nil,
1089810845 nullptr: Nullptr? = nil,
1089910846 number: Number? = nil,
10847+ obj4Nil: Nil? = nil,
1090010848 obj4None: NoneClass? = nil,
1090110849 obj4Nonmutating: Nonmutating? = nil,
1090210850 obj4Null: NullClass? = nil,
@@ -10919,6 +10867,8 @@ extension Obj4 {
1091910867 object: Object? = nil,
1092010868 objectMapper: ObjectMapper? = nil,
1092110869 of: Of? = nil,
10870+ offsetDateTime: OffsetDateTime? = nil,
10871+ offsetTime: OffsetTime? = nil,
1092210872 oneway: Oneway? = nil,
1092310873 or: Or? = nil,
1092410874 orEq: OrEq? = nil,
@@ -10943,14 +10893,11 @@ extension Obj4 {
1094310893 require: Require? = nil,
1094410894 requires: Requires? = nil,
1094510895 restrict: Restrict? = nil,
10946- runtimeType: RuntimeType? = nil,
10947- s: S? = nil,
10948- sbyte: Sbyte? = nil,
10949- sealed: Sealed? = nil,
10950- sel: Sel? = nil
10896+ runtimeType: RuntimeType? = nil
1095110897 ) -> Obj4 {
1095210898 return Obj4(
1095310899 dummy: dummy ?? self.dummy,
10900+ no: no ?? self.no,
1095410901 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
1095510902 noexcept: noexcept ?? self.noexcept,
1095610903 nonatomic: nonatomic ?? self.nonatomic,
@@ -10964,6 +10911,7 @@ extension Obj4 {
1096410911 null: null ?? self.null,
1096510912 nullptr: nullptr ?? self.nullptr,
1096610913 number: number ?? self.number,
10914+ obj4Nil: obj4Nil ?? self.obj4Nil,
1096710915 obj4None: obj4None ?? self.obj4None,
1096810916 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
1096910917 obj4Null: obj4Null ?? self.obj4Null,
@@ -10986,6 +10934,8 @@ extension Obj4 {
1098610934 object: object ?? self.object,
1098710935 objectMapper: objectMapper ?? self.objectMapper,
1098810936 of: of ?? self.of,
10937+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10938+ offsetTime: offsetTime ?? self.offsetTime,
1098910939 oneway: oneway ?? self.oneway,
1099010940 or: or ?? self.or,
1099110941 orEq: orEq ?? self.orEq,
@@ -11010,11 +10960,56 @@ extension Obj4 {
1101010960 require: require ?? self.require,
1101110961 requires: requires ?? self.requires,
1101210962 restrict: restrict ?? self.restrict,
11013- runtimeType: runtimeType ?? self.runtimeType,
11014- s: s ?? self.s,
11015- sbyte: sbyte ?? self.sbyte,
11016- sealed: sealed ?? self.sealed,
11017- sel: sel ?? self.sel
10963+ runtimeType: runtimeType ?? self.runtimeType
10964+ )
10965+ }
10966+
10967+ func jsonData() throws -> Data {
10968+ return try newJSONEncoder().encode(self)
10969+ }
10970+
10971+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10972+ return String(data: try self.jsonData(), encoding: encoding)
10973+ }
10974+}
10975+
10976+// MARK: - No
10977+@objcMembers class No: NSObject, Codable {
10978+ let no: Int
10979+
10980+ enum CodingKeys: String, CodingKey {
10981+ case no = "NO"
10982+ }
10983+
10984+ init(no: Int) {
10985+ self.no = no
10986+ }
10987+}
10988+
10989+// MARK: No convenience initializers and mutators
10990+
10991+extension No {
10992+ convenience init(data: Data) throws {
10993+ let me = try newJSONDecoder().decode(No.self, from: data)
10994+ self.init(no: me.no)
10995+ }
10996+
10997+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10998+ guard let data = json.data(using: encoding) else {
10999+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11000+ }
11001+ try self.init(data: data)
11002+ }
11003+
11004+ convenience init(fromURL url: URL) throws {
11005+ try self.init(data: try Data(contentsOf: url))
11006+ }
11007+
11008+ func with(
11009+ no: Int? = nil
11010+ ) -> No {
11011+ return No(
11012+ no: no ?? self.no
1101811013 )
1101911014 }
1102011015
@@ -11664,25 +11659,25 @@ extension Number {
1166411659 }
1166511660 }
1166611661
11667-// MARK: - NoneClass
11668-@objcMembers class NoneClass: NSObject, Codable {
11669- let none: Int
11662+// MARK: - Nil
11663+@objcMembers class Nil: NSObject, Codable {
11664+ let nilNil: Int
1167011665
1167111666 enum CodingKeys: String, CodingKey {
11672- case none = "none"
11667+ case nilNil = "nil"
1167311668 }
1167411669
11675- init(none: Int) {
11676- self.none = none
11670+ init(nilNil: Int) {
11671+ self.nilNil = nilNil
1167711672 }
1167811673 }
1167911674
11680-// MARK: NoneClass convenience initializers and mutators
11675+// MARK: Nil convenience initializers and mutators
1168111676
11682-extension NoneClass {
11677+extension Nil {
1168311678 convenience init(data: Data) throws {
11684- let me = try newJSONDecoder().decode(NoneClass.self, from: data)
11685- self.init(none: me.none)
11679+ let me = try newJSONDecoder().decode(Nil.self, from: data)
11680+ self.init(nilNil: me.nilNil)
1168611681 }
1168711682
1168811683 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11697,10 +11692,10 @@ extension NoneClass {
1169711692 }
1169811693
1169911694 func with(
11700- none: Int? = nil
11701- ) -> NoneClass {
11702- return NoneClass(
11703- none: none ?? self.none
11695+ nilNil: Int? = nil
11696+ ) -> Nil {
11697+ return Nil(
11698+ nilNil: nilNil ?? self.nilNil
1170411699 )
1170511700 }
1170611701
@@ -11713,22 +11708,71 @@ extension NoneClass {
1171311708 }
1171411709 }
1171511710
11716-// MARK: - Nonmutating
11717-@objcMembers class Nonmutating: NSObject, Codable {
11718- let nonmutatingNonmutating: Int
11711+// MARK: - NoneClass
11712+@objcMembers class NoneClass: NSObject, Codable {
11713+ let none: Int
1171911714
1172011715 enum CodingKeys: String, CodingKey {
11721- case nonmutatingNonmutating = "nonmutating"
11716+ case none = "none"
1172211717 }
1172311718
11724- init(nonmutatingNonmutating: Int) {
11725- self.nonmutatingNonmutating = nonmutatingNonmutating
11719+ init(none: Int) {
11720+ self.none = none
1172611721 }
1172711722 }
1172811723
11729-// MARK: Nonmutating convenience initializers and mutators
11724+// MARK: NoneClass convenience initializers and mutators
1173011725
11731-extension Nonmutating {
11726+extension NoneClass {
11727+ convenience init(data: Data) throws {
11728+ let me = try newJSONDecoder().decode(NoneClass.self, from: data)
11729+ self.init(none: me.none)
11730+ }
11731+
11732+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11733+ guard let data = json.data(using: encoding) else {
11734+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11735+ }
11736+ try self.init(data: data)
11737+ }
11738+
11739+ convenience init(fromURL url: URL) throws {
11740+ try self.init(data: try Data(contentsOf: url))
11741+ }
11742+
11743+ func with(
11744+ none: Int? = nil
11745+ ) -> NoneClass {
11746+ return NoneClass(
11747+ none: none ?? self.none
11748+ )
11749+ }
11750+
11751+ func jsonData() throws -> Data {
11752+ return try newJSONEncoder().encode(self)
11753+ }
11754+
11755+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11756+ return String(data: try self.jsonData(), encoding: encoding)
11757+ }
11758+}
11759+
11760+// MARK: - Nonmutating
11761+@objcMembers class Nonmutating: NSObject, Codable {
11762+ let nonmutatingNonmutating: Int
11763+
11764+ enum CodingKeys: String, CodingKey {
11765+ case nonmutatingNonmutating = "nonmutating"
11766+ }
11767+
11768+ init(nonmutatingNonmutating: Int) {
11769+ self.nonmutatingNonmutating = nonmutatingNonmutating
11770+ }
11771+}
11772+
11773+// MARK: Nonmutating convenience initializers and mutators
11774+
11775+extension Nonmutating {
1173211776 convenience init(data: Data) throws {
1173311777 let me = try newJSONDecoder().decode(Nonmutating.self, from: data)
1173411778 self.init(nonmutatingNonmutating: me.nonmutatingNonmutating)
@@ -12742,6 +12786,104 @@ extension Of {
1274212786 }
1274312787 }
1274412788
12789+// MARK: - OffsetDateTime
12790+@objcMembers class OffsetDateTime: NSObject, Codable {
12791+ let offsetDateTime: Int
12792+
12793+ enum CodingKeys: String, CodingKey {
12794+ case offsetDateTime = "OffsetDateTime"
12795+ }
12796+
12797+ init(offsetDateTime: Int) {
12798+ self.offsetDateTime = offsetDateTime
12799+ }
12800+}
12801+
12802+// MARK: OffsetDateTime convenience initializers and mutators
12803+
12804+extension OffsetDateTime {
12805+ convenience init(data: Data) throws {
12806+ let me = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12807+ self.init(offsetDateTime: me.offsetDateTime)
12808+ }
12809+
12810+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12811+ guard let data = json.data(using: encoding) else {
12812+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12813+ }
12814+ try self.init(data: data)
12815+ }
12816+
12817+ convenience init(fromURL url: URL) throws {
12818+ try self.init(data: try Data(contentsOf: url))
12819+ }
12820+
12821+ func with(
12822+ offsetDateTime: Int? = nil
12823+ ) -> OffsetDateTime {
12824+ return OffsetDateTime(
12825+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
12826+ )
12827+ }
12828+
12829+ func jsonData() throws -> Data {
12830+ return try newJSONEncoder().encode(self)
12831+ }
12832+
12833+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12834+ return String(data: try self.jsonData(), encoding: encoding)
12835+ }
12836+}
12837+
12838+// MARK: - OffsetTime
12839+@objcMembers class OffsetTime: NSObject, Codable {
12840+ let offsetTime: Int
12841+
12842+ enum CodingKeys: String, CodingKey {
12843+ case offsetTime = "OffsetTime"
12844+ }
12845+
12846+ init(offsetTime: Int) {
12847+ self.offsetTime = offsetTime
12848+ }
12849+}
12850+
12851+// MARK: OffsetTime convenience initializers and mutators
12852+
12853+extension OffsetTime {
12854+ convenience init(data: Data) throws {
12855+ let me = try newJSONDecoder().decode(OffsetTime.self, from: data)
12856+ self.init(offsetTime: me.offsetTime)
12857+ }
12858+
12859+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12860+ guard let data = json.data(using: encoding) else {
12861+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12862+ }
12863+ try self.init(data: data)
12864+ }
12865+
12866+ convenience init(fromURL url: URL) throws {
12867+ try self.init(data: try Data(contentsOf: url))
12868+ }
12869+
12870+ func with(
12871+ offsetTime: Int? = nil
12872+ ) -> OffsetTime {
12873+ return OffsetTime(
12874+ offsetTime: offsetTime ?? self.offsetTime
12875+ )
12876+ }
12877+
12878+ func jsonData() throws -> Data {
12879+ return try newJSONEncoder().encode(self)
12880+ }
12881+
12882+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12883+ return String(data: try self.jsonData(), encoding: encoding)
12884+ }
12885+}
12886+
1274512887 // MARK: - Oneway
1274612888 @objcMembers class Oneway: NSObject, Codable {
1274712889 let oneway: Int
@@ -13967,341 +14109,143 @@ extension RuntimeType {
1396714109 }
1396814110 }
1396914111
13970-// MARK: - S
13971-@objcMembers class S: NSObject, Codable {
13972- let s: Int
14112+// MARK: - Obj5
14113+@objcMembers class Obj5: NSObject, Codable {
14114+ let dummy: Int
14115+ let kSerializer: KSerializer
14116+ let obj5Self: SelfClass
14117+ let obj5Set: Set
14118+ let obj5Static: Static
14119+ let obj5Struct: Struct
14120+ let obj5Subscript: Subscript
14121+ let obj5Super: Super
14122+ let obj5Switch: Switch
14123+ let obj5Throw: Throw
14124+ let obj5Throws: Throws
14125+ let obj5True: True
14126+ let obj5Try: Try
14127+ let obj5Type: Obj5Type
14128+ let obj5Typealias: Typealias
14129+ let primitiveKind: PrimitiveKind
14130+ let purpleSelf: Obj5Self
14131+ let purpleTrue: TrueClass
14132+ let s: S
14133+ let sbyte: Sbyte
14134+ let sealed: Sealed
14135+ let sel: Sel
14136+ let select: Select
14137+ let sendable: Sendable
14138+ let serialDescriptor: SerialDescriptor
14139+ let serialName: SerialName
14140+ let serializable: Serializable
14141+ let serialize: Serialize
14142+ let serializerProvider: SerializerProvider
14143+ let short: Short
14144+ let signed: Signed
14145+ let simpleModule: SimpleModule
14146+ let sizeof: Sizeof
14147+ let stackalloc: Stackalloc
14148+ let standards: Standards
14149+ let staticAssert: StaticAssert
14150+ let staticCast: StaticCast
14151+ let stdDeserializer: StdDeserializer
14152+ let stdSerializer: StdSerializer
14153+ let strictfp: Strictfp
14154+ let string: StringClass
14155+ let symbol: Symbol
14156+ let synchronized: Synchronized
14157+ let system: System
14158+ let template: Template
14159+ let then: Then
14160+ let this: This
14161+ let threadLocal: ThreadLocal
14162+ let timeOnly: TimeOnly
14163+ let timeOnlyConverter: TimeOnlyConverter
14164+ let timeZone: TimeZoneClass
14165+ let toDict: ToDict
14166+ let toJSON: ToJSON
14167+ let toString: ToString
14168+ let topLevel: TopLevelClass
14169+ let transient: Transient
14170+ let type: TypeClass
14171+ let typedef: Typedef
14172+ let typeid: Typeid
14173+ let typename: Typename
14174+ let typeof: Typeof
14175+ let uint: Uint
14176+ let ulong: Ulong
14177+ let unchecked: Unchecked
14178+ let undefined: Undefined
1397314179
1397414180 enum CodingKeys: String, CodingKey {
14181+ case dummy = "dummy"
14182+ case kSerializer = "KSerializer"
14183+ case obj5Self = "Self"
14184+ case obj5Set = "set"
14185+ case obj5Static = "static"
14186+ case obj5Struct = "struct"
14187+ case obj5Subscript = "subscript"
14188+ case obj5Super = "super"
14189+ case obj5Switch = "switch"
14190+ case obj5Throw = "throw"
14191+ case obj5Throws = "throws"
14192+ case obj5True = "True"
14193+ case obj5Try = "try"
14194+ case obj5Type = "type"
14195+ case obj5Typealias = "typealias"
14196+ case primitiveKind = "PrimitiveKind"
14197+ case purpleSelf = "self"
14198+ case purpleTrue = "true"
1397514199 case s = "s"
14200+ case sbyte = "sbyte"
14201+ case sealed = "sealed"
14202+ case sel = "SEL"
14203+ case select = "select"
14204+ case sendable = "Sendable"
14205+ case serialDescriptor = "SerialDescriptor"
14206+ case serialName = "SerialName"
14207+ case serializable = "Serializable"
14208+ case serialize = "serialize"
14209+ case serializerProvider = "SerializerProvider"
14210+ case short = "short"
14211+ case signed = "signed"
14212+ case simpleModule = "SimpleModule"
14213+ case sizeof = "sizeof"
14214+ case stackalloc = "stackalloc"
14215+ case standards = "Standards"
14216+ case staticAssert = "static_assert"
14217+ case staticCast = "static_cast"
14218+ case stdDeserializer = "StdDeserializer"
14219+ case stdSerializer = "StdSerializer"
14220+ case strictfp = "strictfp"
14221+ case string = "string"
14222+ case symbol = "symbol"
14223+ case synchronized = "synchronized"
14224+ case system = "system"
14225+ case template = "template"
14226+ case then = "then"
14227+ case this = "this"
14228+ case threadLocal = "thread_local"
14229+ case timeOnly = "TimeOnly"
14230+ case timeOnlyConverter = "TimeOnlyConverter"
14231+ case timeZone = "TimeZone"
14232+ case toDict = "to_dict"
14233+ case toJSON = "to_json"
14234+ case toString = "toString"
14235+ case topLevel = "top_level"
14236+ case transient = "transient"
14237+ case type = "Type"
14238+ case typedef = "typedef"
14239+ case typeid = "typeid"
14240+ case typename = "typename"
14241+ case typeof = "typeof"
14242+ case uint = "uint"
14243+ case ulong = "ulong"
14244+ case unchecked = "unchecked"
14245+ case undefined = "undefined"
1397614246 }
1397714247
13978- init(s: Int) {
13979- self.s = s
13980- }
13981-}
13982-
13983-// MARK: S convenience initializers and mutators
13984-
13985-extension S {
13986- convenience init(data: Data) throws {
13987- let me = try newJSONDecoder().decode(S.self, from: data)
13988- self.init(s: me.s)
13989- }
13990-
13991- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13992- guard let data = json.data(using: encoding) else {
13993- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13994- }
13995- try self.init(data: data)
13996- }
13997-
13998- convenience init(fromURL url: URL) throws {
13999- try self.init(data: try Data(contentsOf: url))
14000- }
14001-
14002- func with(
14003- s: Int? = nil
14004- ) -> S {
14005- return S(
14006- s: s ?? self.s
14007- )
14008- }
14009-
14010- func jsonData() throws -> Data {
14011- return try newJSONEncoder().encode(self)
14012- }
14013-
14014- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14015- return String(data: try self.jsonData(), encoding: encoding)
14016- }
14017-}
14018-
14019-// MARK: - Sbyte
14020-@objcMembers class Sbyte: NSObject, Codable {
14021- let sbyte: Int
14022-
14023- enum CodingKeys: String, CodingKey {
14024- case sbyte = "sbyte"
14025- }
14026-
14027- init(sbyte: Int) {
14028- self.sbyte = sbyte
14029- }
14030-}
14031-
14032-// MARK: Sbyte convenience initializers and mutators
14033-
14034-extension Sbyte {
14035- convenience init(data: Data) throws {
14036- let me = try newJSONDecoder().decode(Sbyte.self, from: data)
14037- self.init(sbyte: me.sbyte)
14038- }
14039-
14040- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14041- guard let data = json.data(using: encoding) else {
14042- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14043- }
14044- try self.init(data: data)
14045- }
14046-
14047- convenience init(fromURL url: URL) throws {
14048- try self.init(data: try Data(contentsOf: url))
14049- }
14050-
14051- func with(
14052- sbyte: Int? = nil
14053- ) -> Sbyte {
14054- return Sbyte(
14055- sbyte: sbyte ?? self.sbyte
14056- )
14057- }
14058-
14059- func jsonData() throws -> Data {
14060- return try newJSONEncoder().encode(self)
14061- }
14062-
14063- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14064- return String(data: try self.jsonData(), encoding: encoding)
14065- }
14066-}
14067-
14068-// MARK: - Sealed
14069-@objcMembers class Sealed: NSObject, Codable {
14070- let sealed: Int
14071-
14072- enum CodingKeys: String, CodingKey {
14073- case sealed = "sealed"
14074- }
14075-
14076- init(sealed: Int) {
14077- self.sealed = sealed
14078- }
14079-}
14080-
14081-// MARK: Sealed convenience initializers and mutators
14082-
14083-extension Sealed {
14084- convenience init(data: Data) throws {
14085- let me = try newJSONDecoder().decode(Sealed.self, from: data)
14086- self.init(sealed: me.sealed)
14087- }
14088-
14089- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14090- guard let data = json.data(using: encoding) else {
14091- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14092- }
14093- try self.init(data: data)
14094- }
14095-
14096- convenience init(fromURL url: URL) throws {
14097- try self.init(data: try Data(contentsOf: url))
14098- }
14099-
14100- func with(
14101- sealed: Int? = nil
14102- ) -> Sealed {
14103- return Sealed(
14104- sealed: sealed ?? self.sealed
14105- )
14106- }
14107-
14108- func jsonData() throws -> Data {
14109- return try newJSONEncoder().encode(self)
14110- }
14111-
14112- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14113- return String(data: try self.jsonData(), encoding: encoding)
14114- }
14115-}
14116-
14117-// MARK: - Sel
14118-@objcMembers class Sel: NSObject, Codable {
14119- let sel: Int
14120-
14121- enum CodingKeys: String, CodingKey {
14122- case sel = "SEL"
14123- }
14124-
14125- init(sel: Int) {
14126- self.sel = sel
14127- }
14128-}
14129-
14130-// MARK: Sel convenience initializers and mutators
14131-
14132-extension Sel {
14133- convenience init(data: Data) throws {
14134- let me = try newJSONDecoder().decode(Sel.self, from: data)
14135- self.init(sel: me.sel)
14136- }
14137-
14138- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14139- guard let data = json.data(using: encoding) else {
14140- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14141- }
14142- try self.init(data: data)
14143- }
14144-
14145- convenience init(fromURL url: URL) throws {
14146- try self.init(data: try Data(contentsOf: url))
14147- }
14148-
14149- func with(
14150- sel: Int? = nil
14151- ) -> Sel {
14152- return Sel(
14153- sel: sel ?? self.sel
14154- )
14155- }
14156-
14157- func jsonData() throws -> Data {
14158- return try newJSONEncoder().encode(self)
14159- }
14160-
14161- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14162- return String(data: try self.jsonData(), encoding: encoding)
14163- }
14164-}
14165-
14166-// MARK: - Obj5
14167-@objcMembers class Obj5: NSObject, Codable {
14168- let dummy: Int
14169- let kSerializer: KSerializer
14170- let obj5Self: SelfClass
14171- let obj5Set: Set
14172- let obj5Static: Static
14173- let obj5Struct: Struct
14174- let obj5Subscript: Subscript
14175- let obj5Super: Super
14176- let obj5Switch: Switch
14177- let obj5Throw: Throw
14178- let obj5Throws: Throws
14179- let obj5True: True
14180- let obj5Try: Try
14181- let obj5Type: Obj5Type
14182- let obj5Typealias: Typealias
14183- let obj5Unowned: Unowned
14184- let primitiveKind: PrimitiveKind
14185- let purpleSelf: Obj5Self
14186- let purpleTrue: TrueClass
14187- let select: Select
14188- let sendable: Sendable
14189- let serialDescriptor: SerialDescriptor
14190- let serialName: SerialName
14191- let serializable: Serializable
14192- let serialize: Serialize
14193- let serializerProvider: SerializerProvider
14194- let short: Short
14195- let signed: Signed
14196- let simpleModule: SimpleModule
14197- let sizeof: Sizeof
14198- let stackalloc: Stackalloc
14199- let standards: Standards
14200- let staticAssert: StaticAssert
14201- let staticCast: StaticCast
14202- let stdDeserializer: StdDeserializer
14203- let stdSerializer: StdSerializer
14204- let strictfp: Strictfp
14205- let string: StringClass
14206- let symbol: Symbol
14207- let synchronized: Synchronized
14208- let system: System
14209- let template: Template
14210- let then: Then
14211- let this: This
14212- let threadLocal: ThreadLocal
14213- let timeOnly: TimeOnly
14214- let timeOnlyConverter: TimeOnlyConverter
14215- let timeZone: TimeZoneClass
14216- let toDict: ToDict
14217- let toJSON: ToJSON
14218- let toString: ToString
14219- let topLevel: TopLevelClass
14220- let transient: Transient
14221- let type: TypeClass
14222- let typedef: Typedef
14223- let typeid: Typeid
14224- let typename: Typename
14225- let typeof: Typeof
14226- let uint: Uint
14227- let ulong: Ulong
14228- let unchecked: Unchecked
14229- let undefined: Undefined
14230- let union: Union
14231- let unmarshalJSON: UnmarshalJSON
14232- let unsafe: Unsafe
14233- let useSerializers: UseSerializers
14234-
14235- enum CodingKeys: String, CodingKey {
14236- case dummy = "dummy"
14237- case kSerializer = "KSerializer"
14238- case obj5Self = "Self"
14239- case obj5Set = "set"
14240- case obj5Static = "static"
14241- case obj5Struct = "struct"
14242- case obj5Subscript = "subscript"
14243- case obj5Super = "super"
14244- case obj5Switch = "switch"
14245- case obj5Throw = "throw"
14246- case obj5Throws = "throws"
14247- case obj5True = "True"
14248- case obj5Try = "try"
14249- case obj5Type = "type"
14250- case obj5Typealias = "typealias"
14251- case obj5Unowned = "unowned"
14252- case primitiveKind = "PrimitiveKind"
14253- case purpleSelf = "self"
14254- case purpleTrue = "true"
14255- case select = "select"
14256- case sendable = "Sendable"
14257- case serialDescriptor = "SerialDescriptor"
14258- case serialName = "SerialName"
14259- case serializable = "Serializable"
14260- case serialize = "serialize"
14261- case serializerProvider = "SerializerProvider"
14262- case short = "short"
14263- case signed = "signed"
14264- case simpleModule = "SimpleModule"
14265- case sizeof = "sizeof"
14266- case stackalloc = "stackalloc"
14267- case standards = "Standards"
14268- case staticAssert = "static_assert"
14269- case staticCast = "static_cast"
14270- case stdDeserializer = "StdDeserializer"
14271- case stdSerializer = "StdSerializer"
14272- case strictfp = "strictfp"
14273- case string = "string"
14274- case symbol = "symbol"
14275- case synchronized = "synchronized"
14276- case system = "system"
14277- case template = "template"
14278- case then = "then"
14279- case this = "this"
14280- case threadLocal = "thread_local"
14281- case timeOnly = "TimeOnly"
14282- case timeOnlyConverter = "TimeOnlyConverter"
14283- case timeZone = "TimeZone"
14284- case toDict = "to_dict"
14285- case toJSON = "to_json"
14286- case toString = "toString"
14287- case topLevel = "top_level"
14288- case transient = "transient"
14289- case type = "Type"
14290- case typedef = "typedef"
14291- case typeid = "typeid"
14292- case typename = "typename"
14293- case typeof = "typeof"
14294- case uint = "uint"
14295- case ulong = "ulong"
14296- case unchecked = "unchecked"
14297- case undefined = "undefined"
14298- case union = "union"
14299- case unmarshalJSON = "UnmarshalJSON"
14300- case unsafe = "unsafe"
14301- case useSerializers = "UseSerializers"
14302- }
14303-
14304- 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, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, useSerializers: UseSerializers) {
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, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, 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) {
1430514249 self.dummy = dummy
1430614250 self.kSerializer = kSerializer
1430714251 self.obj5Self = obj5Self
@@ -14317,10 +14261,13 @@ extension Sel {
1431714261 self.obj5Try = obj5Try
1431814262 self.obj5Type = obj5Type
1431914263 self.obj5Typealias = obj5Typealias
14320- self.obj5Unowned = obj5Unowned
1432114264 self.primitiveKind = primitiveKind
1432214265 self.purpleSelf = purpleSelf
1432314266 self.purpleTrue = purpleTrue
14267+ self.s = s
14268+ self.sbyte = sbyte
14269+ self.sealed = sealed
14270+ self.sel = sel
1432414271 self.select = select
1432514272 self.sendable = sendable
1432614273 self.serialDescriptor = serialDescriptor
@@ -14364,10 +14311,6 @@ extension Sel {
1436414311 self.ulong = ulong
1436514312 self.unchecked = unchecked
1436614313 self.undefined = undefined
14367- self.union = union
14368- self.unmarshalJSON = unmarshalJSON
14369- self.unsafe = unsafe
14370- self.useSerializers = useSerializers
1437114314 }
1437214315 }
1437314316
@@ -14376,7 +14319,7 @@ extension Sel {
1437614319 extension Obj5 {
1437714320 convenience init(data: Data) throws {
1437814321 let me = try newJSONDecoder().decode(Obj5.self, from: data)
14379- 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, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, useSerializers: me.useSerializers)
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, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, 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)
1438014323 }
1438114324
1438214325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14406,10 +14349,13 @@ extension Obj5 {
1440614349 obj5Try: Try? = nil,
1440714350 obj5Type: Obj5Type? = nil,
1440814351 obj5Typealias: Typealias? = nil,
14409- obj5Unowned: Unowned? = nil,
1441014352 primitiveKind: PrimitiveKind? = nil,
1441114353 purpleSelf: Obj5Self? = nil,
1441214354 purpleTrue: TrueClass? = nil,
14355+ s: S? = nil,
14356+ sbyte: Sbyte? = nil,
14357+ sealed: Sealed? = nil,
14358+ sel: Sel? = nil,
1441314359 select: Select? = nil,
1441414360 sendable: Sendable? = nil,
1441514361 serialDescriptor: SerialDescriptor? = nil,
@@ -14452,11 +14398,7 @@ extension Obj5 {
1445214398 uint: Uint? = nil,
1445314399 ulong: Ulong? = nil,
1445414400 unchecked: Unchecked? = nil,
14455- undefined: Undefined? = nil,
14456- union: Union? = nil,
14457- unmarshalJSON: UnmarshalJSON? = nil,
14458- unsafe: Unsafe? = nil,
14459- useSerializers: UseSerializers? = nil
14401+ undefined: Undefined? = nil
1446014402 ) -> Obj5 {
1446114403 return Obj5(
1446214404 dummy: dummy ?? self.dummy,
@@ -14474,10 +14416,13 @@ extension Obj5 {
1447414416 obj5Try: obj5Try ?? self.obj5Try,
1447514417 obj5Type: obj5Type ?? self.obj5Type,
1447614418 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
14477- obj5Unowned: obj5Unowned ?? self.obj5Unowned,
1447814419 primitiveKind: primitiveKind ?? self.primitiveKind,
1447914420 purpleSelf: purpleSelf ?? self.purpleSelf,
1448014421 purpleTrue: purpleTrue ?? self.purpleTrue,
14422+ s: s ?? self.s,
14423+ sbyte: sbyte ?? self.sbyte,
14424+ sealed: sealed ?? self.sealed,
14425+ sel: sel ?? self.sel,
1448114426 select: select ?? self.select,
1448214427 sendable: sendable ?? self.sendable,
1448314428 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
@@ -14520,11 +14465,7 @@ extension Obj5 {
1452014465 uint: uint ?? self.uint,
1452114466 ulong: ulong ?? self.ulong,
1452214467 unchecked: unchecked ?? self.unchecked,
14523- undefined: undefined ?? self.undefined,
14524- union: union ?? self.union,
14525- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
14526- unsafe: unsafe ?? self.unsafe,
14527- useSerializers: useSerializers ?? self.useSerializers
14468+ undefined: undefined ?? self.undefined
1452814469 )
1452914470 }
1453014471
@@ -15223,25 +15164,25 @@ extension Typealias {
1522315164 }
1522415165 }
1522515166
15226-// MARK: - Unowned
15227-@objcMembers class Unowned: NSObject, Codable {
15228- let unownedUnowned: Int
15167+// MARK: - PrimitiveKind
15168+@objcMembers class PrimitiveKind: NSObject, Codable {
15169+ let primitiveKind: Int
1522915170
1523015171 enum CodingKeys: String, CodingKey {
15231- case unownedUnowned = "unowned"
15172+ case primitiveKind = "PrimitiveKind"
1523215173 }
1523315174
15234- init(unownedUnowned: Int) {
15235- self.unownedUnowned = unownedUnowned
15175+ init(primitiveKind: Int) {
15176+ self.primitiveKind = primitiveKind
1523615177 }
1523715178 }
1523815179
15239-// MARK: Unowned convenience initializers and mutators
15180+// MARK: PrimitiveKind convenience initializers and mutators
1524015181
15241-extension Unowned {
15182+extension PrimitiveKind {
1524215183 convenience init(data: Data) throws {
15243- let me = try newJSONDecoder().decode(Unowned.self, from: data)
15244- self.init(unownedUnowned: me.unownedUnowned)
15184+ let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15185+ self.init(primitiveKind: me.primitiveKind)
1524515186 }
1524615187
1524715188 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15256,10 +15197,10 @@ extension Unowned {
1525615197 }
1525715198
1525815199 func with(
15259- unownedUnowned: Int? = nil
15260- ) -> Unowned {
15261- return Unowned(
15262- unownedUnowned: unownedUnowned ?? self.unownedUnowned
15200+ primitiveKind: Int? = nil
15201+ ) -> PrimitiveKind {
15202+ return PrimitiveKind(
15203+ primitiveKind: primitiveKind ?? self.primitiveKind
1526315204 )
1526415205 }
1526515206
@@ -15272,25 +15213,25 @@ extension Unowned {
1527215213 }
1527315214 }
1527415215
15275-// MARK: - PrimitiveKind
15276-@objcMembers class PrimitiveKind: NSObject, Codable {
15277- let primitiveKind: Int
15216+// MARK: - Obj5Self
15217+@objcMembers class Obj5Self: NSObject, Codable {
15218+ let selfSelf: Int
1527815219
1527915220 enum CodingKeys: String, CodingKey {
15280- case primitiveKind = "PrimitiveKind"
15221+ case selfSelf = "self"
1528115222 }
1528215223
15283- init(primitiveKind: Int) {
15284- self.primitiveKind = primitiveKind
15224+ init(selfSelf: Int) {
15225+ self.selfSelf = selfSelf
1528515226 }
1528615227 }
1528715228
15288-// MARK: PrimitiveKind convenience initializers and mutators
15229+// MARK: Obj5Self convenience initializers and mutators
1528915230
15290-extension PrimitiveKind {
15231+extension Obj5Self {
1529115232 convenience init(data: Data) throws {
15292- let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15293- self.init(primitiveKind: me.primitiveKind)
15233+ let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15234+ self.init(selfSelf: me.selfSelf)
1529415235 }
1529515236
1529615237 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15305,10 +15246,10 @@ extension PrimitiveKind {
1530515246 }
1530615247
1530715248 func with(
15308- primitiveKind: Int? = nil
15309- ) -> PrimitiveKind {
15310- return PrimitiveKind(
15311- primitiveKind: primitiveKind ?? self.primitiveKind
15249+ selfSelf: Int? = nil
15250+ ) -> Obj5Self {
15251+ return Obj5Self(
15252+ selfSelf: selfSelf ?? self.selfSelf
1531215253 )
1531315254 }
1531415255
@@ -15321,25 +15262,172 @@ extension PrimitiveKind {
1532115262 }
1532215263 }
1532315264
15324-// MARK: - Obj5Self
15325-@objcMembers class Obj5Self: NSObject, Codable {
15326- let selfSelf: Int
15265+// MARK: - TrueClass
15266+@objcMembers class TrueClass: NSObject, Codable {
15267+ let trueTrue: Int
15268+
15269+ enum CodingKeys: String, CodingKey {
15270+ case trueTrue = "true"
15271+ }
15272+
15273+ init(trueTrue: Int) {
15274+ self.trueTrue = trueTrue
15275+ }
15276+}
15277+
15278+// MARK: TrueClass convenience initializers and mutators
15279+
15280+extension TrueClass {
15281+ convenience init(data: Data) throws {
15282+ let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15283+ self.init(trueTrue: me.trueTrue)
15284+ }
15285+
15286+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15287+ guard let data = json.data(using: encoding) else {
15288+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15289+ }
15290+ try self.init(data: data)
15291+ }
15292+
15293+ convenience init(fromURL url: URL) throws {
15294+ try self.init(data: try Data(contentsOf: url))
15295+ }
15296+
15297+ func with(
15298+ trueTrue: Int? = nil
15299+ ) -> TrueClass {
15300+ return TrueClass(
15301+ trueTrue: trueTrue ?? self.trueTrue
15302+ )
15303+ }
15304+
15305+ func jsonData() throws -> Data {
15306+ return try newJSONEncoder().encode(self)
15307+ }
15308+
15309+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15310+ return String(data: try self.jsonData(), encoding: encoding)
15311+ }
15312+}
15313+
15314+// MARK: - S
15315+@objcMembers class S: NSObject, Codable {
15316+ let s: Int
15317+
15318+ enum CodingKeys: String, CodingKey {
15319+ case s = "s"
15320+ }
15321+
15322+ init(s: Int) {
15323+ self.s = s
15324+ }
15325+}
15326+
15327+// MARK: S convenience initializers and mutators
15328+
15329+extension S {
15330+ convenience init(data: Data) throws {
15331+ let me = try newJSONDecoder().decode(S.self, from: data)
15332+ self.init(s: me.s)
15333+ }
15334+
15335+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15336+ guard let data = json.data(using: encoding) else {
15337+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15338+ }
15339+ try self.init(data: data)
15340+ }
15341+
15342+ convenience init(fromURL url: URL) throws {
15343+ try self.init(data: try Data(contentsOf: url))
15344+ }
15345+
15346+ func with(
15347+ s: Int? = nil
15348+ ) -> S {
15349+ return S(
15350+ s: s ?? self.s
15351+ )
15352+ }
15353+
15354+ func jsonData() throws -> Data {
15355+ return try newJSONEncoder().encode(self)
15356+ }
15357+
15358+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15359+ return String(data: try self.jsonData(), encoding: encoding)
15360+ }
15361+}
15362+
15363+// MARK: - Sbyte
15364+@objcMembers class Sbyte: NSObject, Codable {
15365+ let sbyte: Int
15366+
15367+ enum CodingKeys: String, CodingKey {
15368+ case sbyte = "sbyte"
15369+ }
15370+
15371+ init(sbyte: Int) {
15372+ self.sbyte = sbyte
15373+ }
15374+}
15375+
15376+// MARK: Sbyte convenience initializers and mutators
15377+
15378+extension Sbyte {
15379+ convenience init(data: Data) throws {
15380+ let me = try newJSONDecoder().decode(Sbyte.self, from: data)
15381+ self.init(sbyte: me.sbyte)
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+ sbyte: Int? = nil
15397+ ) -> Sbyte {
15398+ return Sbyte(
15399+ sbyte: sbyte ?? self.sbyte
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+
15412+// MARK: - Sealed
15413+@objcMembers class Sealed: NSObject, Codable {
15414+ let sealed: Int
1532715415
1532815416 enum CodingKeys: String, CodingKey {
15329- case selfSelf = "self"
15417+ case sealed = "sealed"
1533015418 }
1533115419
15332- init(selfSelf: Int) {
15333- self.selfSelf = selfSelf
15420+ init(sealed: Int) {
15421+ self.sealed = sealed
1533415422 }
1533515423 }
1533615424
15337-// MARK: Obj5Self convenience initializers and mutators
15425+// MARK: Sealed convenience initializers and mutators
1533815426
15339-extension Obj5Self {
15427+extension Sealed {
1534015428 convenience init(data: Data) throws {
15341- let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15342- self.init(selfSelf: me.selfSelf)
15429+ let me = try newJSONDecoder().decode(Sealed.self, from: data)
15430+ self.init(sealed: me.sealed)
1534315431 }
1534415432
1534515433 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15354,10 +15442,10 @@ extension Obj5Self {
1535415442 }
1535515443
1535615444 func with(
15357- selfSelf: Int? = nil
15358- ) -> Obj5Self {
15359- return Obj5Self(
15360- selfSelf: selfSelf ?? self.selfSelf
15445+ sealed: Int? = nil
15446+ ) -> Sealed {
15447+ return Sealed(
15448+ sealed: sealed ?? self.sealed
1536115449 )
1536215450 }
1536315451
@@ -15370,25 +15458,25 @@ extension Obj5Self {
1537015458 }
1537115459 }
1537215460
15373-// MARK: - TrueClass
15374-@objcMembers class TrueClass: NSObject, Codable {
15375- let trueTrue: Int
15461+// MARK: - Sel
15462+@objcMembers class Sel: NSObject, Codable {
15463+ let sel: Int
1537615464
1537715465 enum CodingKeys: String, CodingKey {
15378- case trueTrue = "true"
15466+ case sel = "SEL"
1537915467 }
1538015468
15381- init(trueTrue: Int) {
15382- self.trueTrue = trueTrue
15469+ init(sel: Int) {
15470+ self.sel = sel
1538315471 }
1538415472 }
1538515473
15386-// MARK: TrueClass convenience initializers and mutators
15474+// MARK: Sel convenience initializers and mutators
1538715475
15388-extension TrueClass {
15476+extension Sel {
1538915477 convenience init(data: Data) throws {
15390- let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15391- self.init(trueTrue: me.trueTrue)
15478+ let me = try newJSONDecoder().decode(Sel.self, from: data)
15479+ self.init(sel: me.sel)
1539215480 }
1539315481
1539415482 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15403,10 +15491,10 @@ extension TrueClass {
1540315491 }
1540415492
1540515493 func with(
15406- trueTrue: Int? = nil
15407- ) -> TrueClass {
15408- return TrueClass(
15409- trueTrue: trueTrue ?? self.trueTrue
15494+ sel: Int? = nil
15495+ ) -> Sel {
15496+ return Sel(
15497+ sel: sel ?? self.sel
1541015498 )
1541115499 }
1541215500
@@ -17526,211 +17614,20 @@ extension Undefined {
1752617614 }
1752717615 }
1752817616
17529-// MARK: - Union
17530-@objcMembers class Union: NSObject, Codable {
17531- let union: Int
17532-
17533- enum CodingKeys: String, CodingKey {
17534- case union = "union"
17535- }
17536-
17537- init(union: Int) {
17538- self.union = union
17539- }
17540-}
17541-
17542-// MARK: Union convenience initializers and mutators
17543-
17544-extension Union {
17545- convenience init(data: Data) throws {
17546- let me = try newJSONDecoder().decode(Union.self, from: data)
17547- self.init(union: me.union)
17548- }
17549-
17550- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17551- guard let data = json.data(using: encoding) else {
17552- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17553- }
17554- try self.init(data: data)
17555- }
17556-
17557- convenience init(fromURL url: URL) throws {
17558- try self.init(data: try Data(contentsOf: url))
17559- }
17560-
17561- func with(
17562- union: Int? = nil
17563- ) -> Union {
17564- return Union(
17565- union: union ?? self.union
17566- )
17567- }
17568-
17569- func jsonData() throws -> Data {
17570- return try newJSONEncoder().encode(self)
17571- }
17572-
17573- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17574- return String(data: try self.jsonData(), encoding: encoding)
17575- }
17576-}
17577-
17578-// MARK: - UnmarshalJSON
17579-@objcMembers class UnmarshalJSON: NSObject, Codable {
17580- let unmarshalJSON: Int
17581-
17582- enum CodingKeys: String, CodingKey {
17583- case unmarshalJSON = "UnmarshalJSON"
17584- }
17585-
17586- init(unmarshalJSON: Int) {
17587- self.unmarshalJSON = unmarshalJSON
17588- }
17589-}
17590-
17591-// MARK: UnmarshalJSON convenience initializers and mutators
17592-
17593-extension UnmarshalJSON {
17594- convenience init(data: Data) throws {
17595- let me = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
17596- self.init(unmarshalJSON: me.unmarshalJSON)
17597- }
17598-
17599- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17600- guard let data = json.data(using: encoding) else {
17601- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17602- }
17603- try self.init(data: data)
17604- }
17605-
17606- convenience init(fromURL url: URL) throws {
17607- try self.init(data: try Data(contentsOf: url))
17608- }
17609-
17610- func with(
17611- unmarshalJSON: Int? = nil
17612- ) -> UnmarshalJSON {
17613- return UnmarshalJSON(
17614- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
17615- )
17616- }
17617-
17618- func jsonData() throws -> Data {
17619- return try newJSONEncoder().encode(self)
17620- }
17621-
17622- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17623- return String(data: try self.jsonData(), encoding: encoding)
17624- }
17625-}
17626-
17627-// MARK: - Unsafe
17628-@objcMembers class Unsafe: NSObject, Codable {
17629- let unsafe: Int
17630-
17631- enum CodingKeys: String, CodingKey {
17632- case unsafe = "unsafe"
17633- }
17634-
17635- init(unsafe: Int) {
17636- self.unsafe = unsafe
17637- }
17638-}
17639-
17640-// MARK: Unsafe convenience initializers and mutators
17641-
17642-extension Unsafe {
17643- convenience init(data: Data) throws {
17644- let me = try newJSONDecoder().decode(Unsafe.self, from: data)
17645- self.init(unsafe: me.unsafe)
17646- }
17647-
17648- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17649- guard let data = json.data(using: encoding) else {
17650- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17651- }
17652- try self.init(data: data)
17653- }
17654-
17655- convenience init(fromURL url: URL) throws {
17656- try self.init(data: try Data(contentsOf: url))
17657- }
17658-
17659- func with(
17660- unsafe: Int? = nil
17661- ) -> Unsafe {
17662- return Unsafe(
17663- unsafe: unsafe ?? self.unsafe
17664- )
17665- }
17666-
17667- func jsonData() throws -> Data {
17668- return try newJSONEncoder().encode(self)
17669- }
17670-
17671- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17672- return String(data: try self.jsonData(), encoding: encoding)
17673- }
17674-}
17675-
17676-// MARK: - UseSerializers
17677-@objcMembers class UseSerializers: NSObject, Codable {
17678- let useSerializers: Int
17679-
17680- enum CodingKeys: String, CodingKey {
17681- case useSerializers = "UseSerializers"
17682- }
17683-
17684- init(useSerializers: Int) {
17685- self.useSerializers = useSerializers
17686- }
17687-}
17688-
17689-// MARK: UseSerializers convenience initializers and mutators
17690-
17691-extension UseSerializers {
17692- convenience init(data: Data) throws {
17693- let me = try newJSONDecoder().decode(UseSerializers.self, from: data)
17694- self.init(useSerializers: me.useSerializers)
17695- }
17696-
17697- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17698- guard let data = json.data(using: encoding) else {
17699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17700- }
17701- try self.init(data: data)
17702- }
17703-
17704- convenience init(fromURL url: URL) throws {
17705- try self.init(data: try Data(contentsOf: url))
17706- }
17707-
17708- func with(
17709- useSerializers: Int? = nil
17710- ) -> UseSerializers {
17711- return UseSerializers(
17712- useSerializers: useSerializers ?? self.useSerializers
17713- )
17714- }
17715-
17716- func jsonData() throws -> Data {
17717- return try newJSONEncoder().encode(self)
17718- }
17719-
17720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17721- return String(data: try self.jsonData(), encoding: encoding)
17722- }
17723-}
17724-
1772517617 // MARK: - Obj6
1772617618 @objcMembers class Obj6: NSObject, Codable {
1772717619 let dummy: Int
17620+ let obj6Unowned: Unowned
1772817621 let obj6Var: Var
1772917622 let obj6Weak: Weak
1773017623 let obj6Where: Where
1773117624 let obj6While: While
1773217625 let obj6WillSet: WillSet
17626+ let union: Union
17627+ let unmarshalJSON: UnmarshalJSON
17628+ let unsafe: Unsafe
1773317629 let unsigned: Unsigned
17630+ let useSerializers: UseSerializers
1773417631 let ushort: Ushort
1773517632 let using: Using
1773617633 let utf8JSONReader: Utf8JSONReader
@@ -17748,12 +17645,17 @@ extension UseSerializers {
1774817645
1774917646 enum CodingKeys: String, CodingKey {
1775017647 case dummy = "dummy"
17648+ case obj6Unowned = "unowned"
1775117649 case obj6Var = "var"
1775217650 case obj6Weak = "weak"
1775317651 case obj6Where = "where"
1775417652 case obj6While = "while"
1775517653 case obj6WillSet = "willSet"
17654+ case union = "union"
17655+ case unmarshalJSON = "UnmarshalJSON"
17656+ case unsafe = "unsafe"
1775617657 case unsigned = "unsigned"
17658+ case useSerializers = "UseSerializers"
1775717659 case ushort = "ushort"
1775817660 case using = "using"
1775917661 case utf8JSONReader = "Utf8JsonReader"
@@ -17770,14 +17672,19 @@ extension UseSerializers {
1777017672 case yield = "yield"
1777117673 }
1777217674
17773- 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) {
17675+ init(dummy: Int, obj6Unowned: Unowned, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, union: Union, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, 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) {
1777417676 self.dummy = dummy
17677+ self.obj6Unowned = obj6Unowned
1777517678 self.obj6Var = obj6Var
1777617679 self.obj6Weak = obj6Weak
1777717680 self.obj6Where = obj6Where
1777817681 self.obj6While = obj6While
1777917682 self.obj6WillSet = obj6WillSet
17683+ self.union = union
17684+ self.unmarshalJSON = unmarshalJSON
17685+ self.unsafe = unsafe
1778017686 self.unsigned = unsigned
17687+ self.useSerializers = useSerializers
1778117688 self.ushort = ushort
1778217689 self.using = using
1778317690 self.utf8JSONReader = utf8JSONReader
@@ -17800,7 +17707,7 @@ extension UseSerializers {
1780017707 extension Obj6 {
1780117708 convenience init(data: Data) throws {
1780217709 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17803- 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)
17710+ self.init(dummy: me.dummy, obj6Unowned: me.obj6Unowned, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, union: me.union, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, 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)
1780417711 }
1780517712
1780617713 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17816,12 +17723,17 @@ extension Obj6 {
1781617723
1781717724 func with(
1781817725 dummy: Int? = nil,
17726+ obj6Unowned: Unowned? = nil,
1781917727 obj6Var: Var? = nil,
1782017728 obj6Weak: Weak? = nil,
1782117729 obj6Where: Where? = nil,
1782217730 obj6While: While? = nil,
1782317731 obj6WillSet: WillSet? = nil,
17732+ union: Union? = nil,
17733+ unmarshalJSON: UnmarshalJSON? = nil,
17734+ unsafe: Unsafe? = nil,
1782417735 unsigned: Unsigned? = nil,
17736+ useSerializers: UseSerializers? = nil,
1782517737 ushort: Ushort? = nil,
1782617738 using: Using? = nil,
1782717739 utf8JSONReader: Utf8JSONReader? = nil,
@@ -17839,12 +17751,17 @@ extension Obj6 {
1783917751 ) -> Obj6 {
1784017752 return Obj6(
1784117753 dummy: dummy ?? self.dummy,
17754+ obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1784217755 obj6Var: obj6Var ?? self.obj6Var,
1784317756 obj6Weak: obj6Weak ?? self.obj6Weak,
1784417757 obj6Where: obj6Where ?? self.obj6Where,
1784517758 obj6While: obj6While ?? self.obj6While,
1784617759 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17760+ union: union ?? self.union,
17761+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
17762+ unsafe: unsafe ?? self.unsafe,
1784717763 unsigned: unsigned ?? self.unsigned,
17764+ useSerializers: useSerializers ?? self.useSerializers,
1784817765 ushort: ushort ?? self.ushort,
1784917766 using: using ?? self.using,
1785017767 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
@@ -17871,6 +17788,55 @@ extension Obj6 {
1787117788 }
1787217789 }
1787317790
17791+// MARK: - Unowned
17792+@objcMembers class Unowned: NSObject, Codable {
17793+ let unownedUnowned: Int
17794+
17795+ enum CodingKeys: String, CodingKey {
17796+ case unownedUnowned = "unowned"
17797+ }
17798+
17799+ init(unownedUnowned: Int) {
17800+ self.unownedUnowned = unownedUnowned
17801+ }
17802+}
17803+
17804+// MARK: Unowned convenience initializers and mutators
17805+
17806+extension Unowned {
17807+ convenience init(data: Data) throws {
17808+ let me = try newJSONDecoder().decode(Unowned.self, from: data)
17809+ self.init(unownedUnowned: me.unownedUnowned)
17810+ }
17811+
17812+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17813+ guard let data = json.data(using: encoding) else {
17814+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17815+ }
17816+ try self.init(data: data)
17817+ }
17818+
17819+ convenience init(fromURL url: URL) throws {
17820+ try self.init(data: try Data(contentsOf: url))
17821+ }
17822+
17823+ func with(
17824+ unownedUnowned: Int? = nil
17825+ ) -> Unowned {
17826+ return Unowned(
17827+ unownedUnowned: unownedUnowned ?? self.unownedUnowned
17828+ )
17829+ }
17830+
17831+ func jsonData() throws -> Data {
17832+ return try newJSONEncoder().encode(self)
17833+ }
17834+
17835+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17836+ return String(data: try self.jsonData(), encoding: encoding)
17837+ }
17838+}
17839+
1787417840 // MARK: - Var
1787517841 @objcMembers class Var: NSObject, Codable {
1787617842 let varVar: Int
@@ -18116,6 +18082,153 @@ extension WillSet {
1811618082 }
1811718083 }
1811818084
18085+// MARK: - Union
18086+@objcMembers class Union: NSObject, Codable {
18087+ let union: Int
18088+
18089+ enum CodingKeys: String, CodingKey {
18090+ case union = "union"
18091+ }
18092+
18093+ init(union: Int) {
18094+ self.union = union
18095+ }
18096+}
18097+
18098+// MARK: Union convenience initializers and mutators
18099+
18100+extension Union {
18101+ convenience init(data: Data) throws {
18102+ let me = try newJSONDecoder().decode(Union.self, from: data)
18103+ self.init(union: me.union)
18104+ }
18105+
18106+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18107+ guard let data = json.data(using: encoding) else {
18108+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18109+ }
18110+ try self.init(data: data)
18111+ }
18112+
18113+ convenience init(fromURL url: URL) throws {
18114+ try self.init(data: try Data(contentsOf: url))
18115+ }
18116+
18117+ func with(
18118+ union: Int? = nil
18119+ ) -> Union {
18120+ return Union(
18121+ union: union ?? self.union
18122+ )
18123+ }
18124+
18125+ func jsonData() throws -> Data {
18126+ return try newJSONEncoder().encode(self)
18127+ }
18128+
18129+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18130+ return String(data: try self.jsonData(), encoding: encoding)
18131+ }
18132+}
18133+
18134+// MARK: - UnmarshalJSON
18135+@objcMembers class UnmarshalJSON: NSObject, Codable {
18136+ let unmarshalJSON: Int
18137+
18138+ enum CodingKeys: String, CodingKey {
18139+ case unmarshalJSON = "UnmarshalJSON"
18140+ }
18141+
18142+ init(unmarshalJSON: Int) {
18143+ self.unmarshalJSON = unmarshalJSON
18144+ }
18145+}
18146+
18147+// MARK: UnmarshalJSON convenience initializers and mutators
18148+
18149+extension UnmarshalJSON {
18150+ convenience init(data: Data) throws {
18151+ let me = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
18152+ self.init(unmarshalJSON: me.unmarshalJSON)
18153+ }
18154+
18155+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18156+ guard let data = json.data(using: encoding) else {
18157+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18158+ }
18159+ try self.init(data: data)
18160+ }
18161+
18162+ convenience init(fromURL url: URL) throws {
18163+ try self.init(data: try Data(contentsOf: url))
18164+ }
18165+
18166+ func with(
18167+ unmarshalJSON: Int? = nil
18168+ ) -> UnmarshalJSON {
18169+ return UnmarshalJSON(
18170+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
18171+ )
18172+ }
18173+
18174+ func jsonData() throws -> Data {
18175+ return try newJSONEncoder().encode(self)
18176+ }
18177+
18178+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18179+ return String(data: try self.jsonData(), encoding: encoding)
18180+ }
18181+}
18182+
18183+// MARK: - Unsafe
18184+@objcMembers class Unsafe: NSObject, Codable {
18185+ let unsafe: Int
18186+
18187+ enum CodingKeys: String, CodingKey {
18188+ case unsafe = "unsafe"
18189+ }
18190+
18191+ init(unsafe: Int) {
18192+ self.unsafe = unsafe
18193+ }
18194+}
18195+
18196+// MARK: Unsafe convenience initializers and mutators
18197+
18198+extension Unsafe {
18199+ convenience init(data: Data) throws {
18200+ let me = try newJSONDecoder().decode(Unsafe.self, from: data)
18201+ self.init(unsafe: me.unsafe)
18202+ }
18203+
18204+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18205+ guard let data = json.data(using: encoding) else {
18206+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18207+ }
18208+ try self.init(data: data)
18209+ }
18210+
18211+ convenience init(fromURL url: URL) throws {
18212+ try self.init(data: try Data(contentsOf: url))
18213+ }
18214+
18215+ func with(
18216+ unsafe: Int? = nil
18217+ ) -> Unsafe {
18218+ return Unsafe(
18219+ unsafe: unsafe ?? self.unsafe
18220+ )
18221+ }
18222+
18223+ func jsonData() throws -> Data {
18224+ return try newJSONEncoder().encode(self)
18225+ }
18226+
18227+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18228+ return String(data: try self.jsonData(), encoding: encoding)
18229+ }
18230+}
18231+
1811918232 // MARK: - Unsigned
1812018233 @objcMembers class Unsigned: NSObject, Codable {
1812118234 let unsigned: Int
@@ -18165,6 +18278,55 @@ extension Unsigned {
1816518278 }
1816618279 }
1816718280
18281+// MARK: - UseSerializers
18282+@objcMembers class UseSerializers: NSObject, Codable {
18283+ let useSerializers: Int
18284+
18285+ enum CodingKeys: String, CodingKey {
18286+ case useSerializers = "UseSerializers"
18287+ }
18288+
18289+ init(useSerializers: Int) {
18290+ self.useSerializers = useSerializers
18291+ }
18292+}
18293+
18294+// MARK: UseSerializers convenience initializers and mutators
18295+
18296+extension UseSerializers {
18297+ convenience init(data: Data) throws {
18298+ let me = try newJSONDecoder().decode(UseSerializers.self, from: data)
18299+ self.init(useSerializers: me.useSerializers)
18300+ }
18301+
18302+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18303+ guard let data = json.data(using: encoding) else {
18304+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18305+ }
18306+ try self.init(data: data)
18307+ }
18308+
18309+ convenience init(fromURL url: URL) throws {
18310+ try self.init(data: try Data(contentsOf: url))
18311+ }
18312+
18313+ func with(
18314+ useSerializers: Int? = nil
18315+ ) -> UseSerializers {
18316+ return UseSerializers(
18317+ useSerializers: useSerializers ?? self.useSerializers
18318+ )
18319+ }
18320+
18321+ func jsonData() throws -> Data {
18322+ return try newJSONEncoder().encode(self)
18323+ }
18324+
18325+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18326+ return String(data: try self.jsonData(), encoding: encoding)
18327+ }
18328+}
18329+
1816818330 // MARK: - Ushort
1816918331 @objcMembers class Ushort: NSObject, Codable {
1817018332 let ushort: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+858 −696
@@ -7140,6 +7140,7 @@ struct Obj3: Codable, Equatable {
71407140 let jsonWriter: JSONWriter
71417141 let lambda: Lambda
71427142 let list: List
7143+ let localDate: LocalDate
71437144 let locale: LocaleClass
71447145 let lock: Lock
71457146 let long: Long
@@ -7153,7 +7154,6 @@ struct Obj3: Codable, Equatable {
71537154 let native: Native
71547155 let new: New
71557156 let newtonsoft: Newtonsoft
7156- let no: No
71577157 let obj3Guard: Guard
71587158 let obj3If: If
71597159 let obj3Import: Import
@@ -7169,7 +7169,6 @@ struct Obj3: Codable, Equatable {
71697169 let obj3Left: Left
71707170 let obj3Let: Let
71717171 let obj3Mutating: Mutating
7172- let obj3Nil: Nil
71737172
71747173 enum CodingKeys: String, CodingKey {
71757174 case dummy = "dummy"
@@ -7208,6 +7207,7 @@ struct Obj3: Codable, Equatable {
72087207 case jsonWriter = "json_writer"
72097208 case lambda = "lambda"
72107209 case list = "list"
7210+ case localDate = "LocalDate"
72117211 case locale = "Locale"
72127212 case lock = "lock"
72137213 case long = "long"
@@ -7221,7 +7221,6 @@ struct Obj3: Codable, Equatable {
72217221 case native = "native"
72227222 case new = "new"
72237223 case newtonsoft = "newtonsoft"
7224- case no = "NO"
72257224 case obj3Guard = "guard"
72267225 case obj3If = "if"
72277226 case obj3Import = "import"
@@ -7237,7 +7236,6 @@ struct Obj3: Codable, Equatable {
72377236 case obj3Left = "left"
72387237 case obj3Let = "let"
72397238 case obj3Mutating = "mutating"
7240- case obj3Nil = "nil"
72417239 }
72427240 }
72437241
@@ -7296,6 +7294,7 @@ extension Obj3 {
72967294 jsonWriter: JSONWriter? = nil,
72977295 lambda: Lambda? = nil,
72987296 list: List? = nil,
7297+ localDate: LocalDate? = nil,
72997298 locale: LocaleClass? = nil,
73007299 lock: Lock? = nil,
73017300 long: Long? = nil,
@@ -7309,7 +7308,6 @@ extension Obj3 {
73097308 native: Native? = nil,
73107309 new: New? = nil,
73117310 newtonsoft: Newtonsoft? = nil,
7312- no: No? = nil,
73137311 obj3Guard: Guard? = nil,
73147312 obj3If: If? = nil,
73157313 obj3Import: Import? = nil,
@@ -7324,8 +7322,7 @@ extension Obj3 {
73247322 obj3Lazy: Lazy? = nil,
73257323 obj3Left: Left? = nil,
73267324 obj3Let: Let? = nil,
7327- obj3Mutating: Mutating? = nil,
7328- obj3Nil: Nil? = nil
7325+ obj3Mutating: Mutating? = nil
73297326 ) -> Obj3 {
73307327 return Obj3(
73317328 dummy: dummy ?? self.dummy,
@@ -7364,6 +7361,7 @@ extension Obj3 {
73647361 jsonWriter: jsonWriter ?? self.jsonWriter,
73657362 lambda: lambda ?? self.lambda,
73667363 list: list ?? self.list,
7364+ localDate: localDate ?? self.localDate,
73677365 locale: locale ?? self.locale,
73687366 lock: lock ?? self.lock,
73697367 long: long ?? self.long,
@@ -7377,7 +7375,6 @@ extension Obj3 {
73777375 native: native ?? self.native,
73787376 new: new ?? self.new,
73797377 newtonsoft: newtonsoft ?? self.newtonsoft,
7380- no: no ?? self.no,
73817378 obj3Guard: obj3Guard ?? self.obj3Guard,
73827379 obj3If: obj3If ?? self.obj3If,
73837380 obj3Import: obj3Import ?? self.obj3Import,
@@ -7392,8 +7389,7 @@ extension Obj3 {
73927389 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
73937390 obj3Left: obj3Left ?? self.obj3Left,
73947391 obj3Let: obj3Let ?? self.obj3Let,
7395- obj3Mutating: obj3Mutating ?? self.obj3Mutating,
7396- obj3Nil: obj3Nil ?? self.obj3Nil
7392+ obj3Mutating: obj3Mutating ?? self.obj3Mutating
73977393 )
73987394 }
73997395
@@ -9162,6 +9158,56 @@ extension List {
91629158 // for types that require the use of JSONAny, nor will the implementation of Hashable be
91639159 // synthesized for types that have collections (such as arrays or dictionaries).
91649160
9161+// MARK: - LocalDate
9162+struct LocalDate: Codable, Equatable {
9163+ let localDate: Int
9164+
9165+ enum CodingKeys: String, CodingKey {
9166+ case localDate = "LocalDate"
9167+ }
9168+}
9169+
9170+// MARK: LocalDate convenience initializers and mutators
9171+
9172+extension LocalDate {
9173+ init(data: Data) throws {
9174+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
9175+ }
9176+
9177+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9178+ guard let data = json.data(using: encoding) else {
9179+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9180+ }
9181+ try self.init(data: data)
9182+ }
9183+
9184+ init(fromURL url: URL) throws {
9185+ try self.init(data: try Data(contentsOf: url))
9186+ }
9187+
9188+ func with(
9189+ localDate: Int? = nil
9190+ ) -> LocalDate {
9191+ return LocalDate(
9192+ localDate: localDate ?? self.localDate
9193+ )
9194+ }
9195+
9196+ func jsonData() throws -> Data {
9197+ return try newJSONEncoder().encode(self)
9198+ }
9199+
9200+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9201+ return String(data: try self.jsonData(), encoding: encoding)
9202+ }
9203+}
9204+
9205+//
9206+// Hashable or Equatable:
9207+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9208+// for types that require the use of JSONAny, nor will the implementation of Hashable be
9209+// synthesized for types that have collections (such as arrays or dictionaries).
9210+
91659211 // MARK: - LocaleClass
91669212 struct LocaleClass: Codable, Equatable {
91679213 let locale: Int
@@ -9812,56 +9858,6 @@ extension Newtonsoft {
98129858 // for types that require the use of JSONAny, nor will the implementation of Hashable be
98139859 // synthesized for types that have collections (such as arrays or dictionaries).
98149860
9815-// MARK: - No
9816-struct No: Codable, Equatable {
9817- let no: Int
9818-
9819- enum CodingKeys: String, CodingKey {
9820- case no = "NO"
9821- }
9822-}
9823-
9824-// MARK: No convenience initializers and mutators
9825-
9826-extension No {
9827- init(data: Data) throws {
9828- self = try newJSONDecoder().decode(No.self, from: data)
9829- }
9830-
9831- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9832- guard let data = json.data(using: encoding) else {
9833- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9834- }
9835- try self.init(data: data)
9836- }
9837-
9838- init(fromURL url: URL) throws {
9839- try self.init(data: try Data(contentsOf: url))
9840- }
9841-
9842- func with(
9843- no: Int? = nil
9844- ) -> No {
9845- return No(
9846- no: no ?? self.no
9847- )
9848- }
9849-
9850- func jsonData() throws -> Data {
9851- return try newJSONEncoder().encode(self)
9852- }
9853-
9854- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9855- return String(data: try self.jsonData(), encoding: encoding)
9856- }
9857-}
9858-
9859-//
9860-// Hashable or Equatable:
9861-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9862-// for types that require the use of JSONAny, nor will the implementation of Hashable be
9863-// synthesized for types that have collections (such as arrays or dictionaries).
9864-
98659861 // MARK: - Guard
98669862 struct Guard: Codable, Equatable {
98679863 let guardGuard: Int
@@ -10612,59 +10608,10 @@ extension Mutating {
1061210608 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1061310609 // synthesized for types that have collections (such as arrays or dictionaries).
1061410610
10615-// MARK: - Nil
10616-struct Nil: Codable, Equatable {
10617- let nilNil: Int
10618-
10619- enum CodingKeys: String, CodingKey {
10620- case nilNil = "nil"
10621- }
10622-}
10623-
10624-// MARK: Nil convenience initializers and mutators
10625-
10626-extension Nil {
10627- init(data: Data) throws {
10628- self = try newJSONDecoder().decode(Nil.self, from: data)
10629- }
10630-
10631- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10632- guard let data = json.data(using: encoding) else {
10633- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10634- }
10635- try self.init(data: data)
10636- }
10637-
10638- init(fromURL url: URL) throws {
10639- try self.init(data: try Data(contentsOf: url))
10640- }
10641-
10642- func with(
10643- nilNil: Int? = nil
10644- ) -> Nil {
10645- return Nil(
10646- nilNil: nilNil ?? self.nilNil
10647- )
10648- }
10649-
10650- func jsonData() throws -> Data {
10651- return try newJSONEncoder().encode(self)
10652- }
10653-
10654- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10655- return String(data: try self.jsonData(), encoding: encoding)
10656- }
10657-}
10658-
10659-//
10660-// Hashable or Equatable:
10661-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
10662-// for types that require the use of JSONAny, nor will the implementation of Hashable be
10663-// synthesized for types that have collections (such as arrays or dictionaries).
10664-
1066510611 // MARK: - Obj4
1066610612 struct Obj4: Codable, Equatable {
1066710613 let dummy: Int
10614+ let no: No
1066810615 let noSuchMethod: NoSuchMethod
1066910616 let noexcept: Noexcept
1067010617 let nonatomic: Nonatomic
@@ -10678,6 +10625,7 @@ struct Obj4: Codable, Equatable {
1067810625 let null: Null
1067910626 let nullptr: Nullptr
1068010627 let number: Number
10628+ let obj4Nil: Nil
1068110629 let obj4None: NoneClass
1068210630 let obj4Nonmutating: Nonmutating
1068310631 let obj4Null: NullClass
@@ -10699,6 +10647,8 @@ struct Obj4: Codable, Equatable {
1069910647 let object: Object
1070010648 let objectMapper: ObjectMapper
1070110649 let of: Of
10650+ let offsetDateTime: OffsetDateTime
10651+ let offsetTime: OffsetTime
1070210652 let oneway: Oneway
1070310653 let or: Or
1070410654 let orEq: OrEq
@@ -10725,13 +10675,10 @@ struct Obj4: Codable, Equatable {
1072510675 let restrict: Restrict
1072610676 let retain: Retain
1072710677 let runtimeType: RuntimeType
10728- let s: S
10729- let sbyte: Sbyte
10730- let sealed: Sealed
10731- let sel: Sel
1073210678
1073310679 enum CodingKeys: String, CodingKey {
1073410680 case dummy = "dummy"
10681+ case no = "NO"
1073510682 case noSuchMethod = "noSuchMethod"
1073610683 case noexcept = "noexcept"
1073710684 case nonatomic = "nonatomic"
@@ -10745,6 +10692,7 @@ struct Obj4: Codable, Equatable {
1074510692 case null = "NULL"
1074610693 case nullptr = "nullptr"
1074710694 case number = "number"
10695+ case obj4Nil = "nil"
1074810696 case obj4None = "none"
1074910697 case obj4Nonmutating = "nonmutating"
1075010698 case obj4Null = "null"
@@ -10766,6 +10714,8 @@ struct Obj4: Codable, Equatable {
1076610714 case object = "object"
1076710715 case objectMapper = "ObjectMapper"
1076810716 case of = "of"
10717+ case offsetDateTime = "OffsetDateTime"
10718+ case offsetTime = "OffsetTime"
1076910719 case oneway = "oneway"
1077010720 case or = "or"
1077110721 case orEq = "or_eq"
@@ -10792,10 +10742,6 @@ struct Obj4: Codable, Equatable {
1079210742 case restrict = "restrict"
1079310743 case retain = "retain"
1079410744 case runtimeType = "runtimeType"
10795- case s = "s"
10796- case sbyte = "sbyte"
10797- case sealed = "sealed"
10798- case sel = "SEL"
1079910745 }
1080010746 }
1080110747
@@ -10819,6 +10765,7 @@ extension Obj4 {
1081910765
1082010766 func with(
1082110767 dummy: Int? = nil,
10768+ no: No? = nil,
1082210769 noSuchMethod: NoSuchMethod? = nil,
1082310770 noexcept: Noexcept? = nil,
1082410771 nonatomic: Nonatomic? = nil,
@@ -10832,6 +10779,7 @@ extension Obj4 {
1083210779 null: Null? = nil,
1083310780 nullptr: Nullptr? = nil,
1083410781 number: Number? = nil,
10782+ obj4Nil: Nil? = nil,
1083510783 obj4None: NoneClass? = nil,
1083610784 obj4Nonmutating: Nonmutating? = nil,
1083710785 obj4Null: NullClass? = nil,
@@ -10853,6 +10801,8 @@ extension Obj4 {
1085310801 object: Object? = nil,
1085410802 objectMapper: ObjectMapper? = nil,
1085510803 of: Of? = nil,
10804+ offsetDateTime: OffsetDateTime? = nil,
10805+ offsetTime: OffsetTime? = nil,
1085610806 oneway: Oneway? = nil,
1085710807 or: Or? = nil,
1085810808 orEq: OrEq? = nil,
@@ -10878,14 +10828,11 @@ extension Obj4 {
1087810828 requires: Requires? = nil,
1087910829 restrict: Restrict? = nil,
1088010830 retain: Retain? = nil,
10881- runtimeType: RuntimeType? = nil,
10882- s: S? = nil,
10883- sbyte: Sbyte? = nil,
10884- sealed: Sealed? = nil,
10885- sel: Sel? = nil
10831+ runtimeType: RuntimeType? = nil
1088610832 ) -> Obj4 {
1088710833 return Obj4(
1088810834 dummy: dummy ?? self.dummy,
10835+ no: no ?? self.no,
1088910836 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
1089010837 noexcept: noexcept ?? self.noexcept,
1089110838 nonatomic: nonatomic ?? self.nonatomic,
@@ -10899,6 +10846,7 @@ extension Obj4 {
1089910846 null: null ?? self.null,
1090010847 nullptr: nullptr ?? self.nullptr,
1090110848 number: number ?? self.number,
10849+ obj4Nil: obj4Nil ?? self.obj4Nil,
1090210850 obj4None: obj4None ?? self.obj4None,
1090310851 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
1090410852 obj4Null: obj4Null ?? self.obj4Null,
@@ -10920,6 +10868,8 @@ extension Obj4 {
1092010868 object: object ?? self.object,
1092110869 objectMapper: objectMapper ?? self.objectMapper,
1092210870 of: of ?? self.of,
10871+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10872+ offsetTime: offsetTime ?? self.offsetTime,
1092310873 oneway: oneway ?? self.oneway,
1092410874 or: or ?? self.or,
1092510875 orEq: orEq ?? self.orEq,
@@ -10945,11 +10895,57 @@ extension Obj4 {
1094510895 requires: requires ?? self.requires,
1094610896 restrict: restrict ?? self.restrict,
1094710897 retain: retain ?? self.retain,
10948- runtimeType: runtimeType ?? self.runtimeType,
10949- s: s ?? self.s,
10950- sbyte: sbyte ?? self.sbyte,
10951- sealed: sealed ?? self.sealed,
10952- sel: sel ?? self.sel
10898+ runtimeType: runtimeType ?? self.runtimeType
10899+ )
10900+ }
10901+
10902+ func jsonData() throws -> Data {
10903+ return try newJSONEncoder().encode(self)
10904+ }
10905+
10906+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10907+ return String(data: try self.jsonData(), encoding: encoding)
10908+ }
10909+}
10910+
10911+//
10912+// Hashable or Equatable:
10913+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
10914+// for types that require the use of JSONAny, nor will the implementation of Hashable be
10915+// synthesized for types that have collections (such as arrays or dictionaries).
10916+
10917+// MARK: - No
10918+struct No: Codable, Equatable {
10919+ let no: Int
10920+
10921+ enum CodingKeys: String, CodingKey {
10922+ case no = "NO"
10923+ }
10924+}
10925+
10926+// MARK: No convenience initializers and mutators
10927+
10928+extension No {
10929+ init(data: Data) throws {
10930+ self = try newJSONDecoder().decode(No.self, from: data)
10931+ }
10932+
10933+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10934+ guard let data = json.data(using: encoding) else {
10935+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10936+ }
10937+ try self.init(data: data)
10938+ }
10939+
10940+ init(fromURL url: URL) throws {
10941+ try self.init(data: try Data(contentsOf: url))
10942+ }
10943+
10944+ func with(
10945+ no: Int? = nil
10946+ ) -> No {
10947+ return No(
10948+ no: no ?? self.no
1095310949 )
1095410950 }
1095510951
@@ -11618,20 +11614,20 @@ extension Number {
1161811614 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1161911615 // synthesized for types that have collections (such as arrays or dictionaries).
1162011616
11621-// MARK: - NoneClass
11622-struct NoneClass: Codable, Equatable {
11623- let none: Int
11617+// MARK: - Nil
11618+struct Nil: Codable, Equatable {
11619+ let nilNil: Int
1162411620
1162511621 enum CodingKeys: String, CodingKey {
11626- case none = "none"
11622+ case nilNil = "nil"
1162711623 }
1162811624 }
1162911625
11630-// MARK: NoneClass convenience initializers and mutators
11626+// MARK: Nil convenience initializers and mutators
1163111627
11632-extension NoneClass {
11628+extension Nil {
1163311629 init(data: Data) throws {
11634- self = try newJSONDecoder().decode(NoneClass.self, from: data)
11630+ self = try newJSONDecoder().decode(Nil.self, from: data)
1163511631 }
1163611632
1163711633 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11646,10 +11642,10 @@ extension NoneClass {
1164611642 }
1164711643
1164811644 func with(
11649- none: Int? = nil
11650- ) -> NoneClass {
11651- return NoneClass(
11652- none: none ?? self.none
11645+ nilNil: Int? = nil
11646+ ) -> Nil {
11647+ return Nil(
11648+ nilNil: nilNil ?? self.nilNil
1165311649 )
1165411650 }
1165511651
@@ -11668,20 +11664,20 @@ extension NoneClass {
1166811664 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1166911665 // synthesized for types that have collections (such as arrays or dictionaries).
1167011666
11671-// MARK: - Nonmutating
11672-struct Nonmutating: Codable, Equatable {
11673- let nonmutatingNonmutating: Int
11667+// MARK: - NoneClass
11668+struct NoneClass: Codable, Equatable {
11669+ let none: Int
1167411670
1167511671 enum CodingKeys: String, CodingKey {
11676- case nonmutatingNonmutating = "nonmutating"
11672+ case none = "none"
1167711673 }
1167811674 }
1167911675
11680-// MARK: Nonmutating convenience initializers and mutators
11676+// MARK: NoneClass convenience initializers and mutators
1168111677
11682-extension Nonmutating {
11678+extension NoneClass {
1168311679 init(data: Data) throws {
11684- self = try newJSONDecoder().decode(Nonmutating.self, from: data)
11680+ self = try newJSONDecoder().decode(NoneClass.self, from: data)
1168511681 }
1168611682
1168711683 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11696,13 +11692,63 @@ extension Nonmutating {
1169611692 }
1169711693
1169811694 func with(
11699- nonmutatingNonmutating: Int? = nil
11700- ) -> Nonmutating {
11701- return Nonmutating(
11702- nonmutatingNonmutating: nonmutatingNonmutating ?? self.nonmutatingNonmutating
11703- )
11704- }
11705-
11695+ none: Int? = nil
11696+ ) -> NoneClass {
11697+ return NoneClass(
11698+ none: none ?? self.none
11699+ )
11700+ }
11701+
11702+ func jsonData() throws -> Data {
11703+ return try newJSONEncoder().encode(self)
11704+ }
11705+
11706+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11707+ return String(data: try self.jsonData(), encoding: encoding)
11708+ }
11709+}
11710+
11711+//
11712+// Hashable or Equatable:
11713+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
11714+// for types that require the use of JSONAny, nor will the implementation of Hashable be
11715+// synthesized for types that have collections (such as arrays or dictionaries).
11716+
11717+// MARK: - Nonmutating
11718+struct Nonmutating: Codable, Equatable {
11719+ let nonmutatingNonmutating: Int
11720+
11721+ enum CodingKeys: String, CodingKey {
11722+ case nonmutatingNonmutating = "nonmutating"
11723+ }
11724+}
11725+
11726+// MARK: Nonmutating convenience initializers and mutators
11727+
11728+extension Nonmutating {
11729+ init(data: Data) throws {
11730+ self = try newJSONDecoder().decode(Nonmutating.self, from: data)
11731+ }
11732+
11733+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11734+ guard let data = json.data(using: encoding) else {
11735+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11736+ }
11737+ try self.init(data: data)
11738+ }
11739+
11740+ init(fromURL url: URL) throws {
11741+ try self.init(data: try Data(contentsOf: url))
11742+ }
11743+
11744+ func with(
11745+ nonmutatingNonmutating: Int? = nil
11746+ ) -> Nonmutating {
11747+ return Nonmutating(
11748+ nonmutatingNonmutating: nonmutatingNonmutating ?? self.nonmutatingNonmutating
11749+ )
11750+ }
11751+
1170611752 func jsonData() throws -> Data {
1170711753 return try newJSONEncoder().encode(self)
1170811754 }
@@ -12668,6 +12714,106 @@ extension Of {
1266812714 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1266912715 // synthesized for types that have collections (such as arrays or dictionaries).
1267012716
12717+// MARK: - OffsetDateTime
12718+struct OffsetDateTime: Codable, Equatable {
12719+ let offsetDateTime: Int
12720+
12721+ enum CodingKeys: String, CodingKey {
12722+ case offsetDateTime = "OffsetDateTime"
12723+ }
12724+}
12725+
12726+// MARK: OffsetDateTime convenience initializers and mutators
12727+
12728+extension OffsetDateTime {
12729+ init(data: Data) throws {
12730+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12731+ }
12732+
12733+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12734+ guard let data = json.data(using: encoding) else {
12735+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12736+ }
12737+ try self.init(data: data)
12738+ }
12739+
12740+ init(fromURL url: URL) throws {
12741+ try self.init(data: try Data(contentsOf: url))
12742+ }
12743+
12744+ func with(
12745+ offsetDateTime: Int? = nil
12746+ ) -> OffsetDateTime {
12747+ return OffsetDateTime(
12748+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
12749+ )
12750+ }
12751+
12752+ func jsonData() throws -> Data {
12753+ return try newJSONEncoder().encode(self)
12754+ }
12755+
12756+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12757+ return String(data: try self.jsonData(), encoding: encoding)
12758+ }
12759+}
12760+
12761+//
12762+// Hashable or Equatable:
12763+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
12764+// for types that require the use of JSONAny, nor will the implementation of Hashable be
12765+// synthesized for types that have collections (such as arrays or dictionaries).
12766+
12767+// MARK: - OffsetTime
12768+struct OffsetTime: Codable, Equatable {
12769+ let offsetTime: Int
12770+
12771+ enum CodingKeys: String, CodingKey {
12772+ case offsetTime = "OffsetTime"
12773+ }
12774+}
12775+
12776+// MARK: OffsetTime convenience initializers and mutators
12777+
12778+extension OffsetTime {
12779+ init(data: Data) throws {
12780+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
12781+ }
12782+
12783+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12784+ guard let data = json.data(using: encoding) else {
12785+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12786+ }
12787+ try self.init(data: data)
12788+ }
12789+
12790+ init(fromURL url: URL) throws {
12791+ try self.init(data: try Data(contentsOf: url))
12792+ }
12793+
12794+ func with(
12795+ offsetTime: Int? = nil
12796+ ) -> OffsetTime {
12797+ return OffsetTime(
12798+ offsetTime: offsetTime ?? self.offsetTime
12799+ )
12800+ }
12801+
12802+ func jsonData() throws -> Data {
12803+ return try newJSONEncoder().encode(self)
12804+ }
12805+
12806+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12807+ return String(data: try self.jsonData(), encoding: encoding)
12808+ }
12809+}
12810+
12811+//
12812+// Hashable or Equatable:
12813+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
12814+// for types that require the use of JSONAny, nor will the implementation of Hashable be
12815+// synthesized for types that have collections (such as arrays or dictionaries).
12816+
1267112817 // MARK: - Oneway
1267212818 struct Oneway: Codable, Equatable {
1267312819 let oneway: Int
@@ -13968,295 +14114,97 @@ extension RuntimeType {
1396814114 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1396914115 // synthesized for types that have collections (such as arrays or dictionaries).
1397014116
13971-// MARK: - S
13972-struct S: Codable, Equatable {
13973- let s: Int
14117+// MARK: - Obj5
14118+struct Obj5: Codable, Equatable {
14119+ let dummy: Int
14120+ let kSerializer: KSerializer
14121+ let obj5Self: SelfClass
14122+ let obj5Set: Set
14123+ let obj5Static: Static
14124+ let obj5Struct: Struct
14125+ let obj5Subscript: Subscript
14126+ let obj5Super: Super
14127+ let obj5Switch: Switch
14128+ let obj5Throw: Throw
14129+ let obj5Throws: Throws
14130+ let obj5True: True
14131+ let obj5Try: Try
14132+ let obj5Type: Obj5Type
14133+ let obj5Typealias: Typealias
14134+ let primitiveKind: PrimitiveKind
14135+ let purpleSelf: Obj5Self
14136+ let purpleTrue: TrueClass
14137+ let s: S
14138+ let sbyte: Sbyte
14139+ let sealed: Sealed
14140+ let sel: Sel
14141+ let select: Select
14142+ let sendable: Sendable
14143+ let serialDescriptor: SerialDescriptor
14144+ let serialName: SerialName
14145+ let serializable: Serializable
14146+ let serialize: Serialize
14147+ let serializerProvider: SerializerProvider
14148+ let short: Short
14149+ let signed: Signed
14150+ let simpleModule: SimpleModule
14151+ let sizeof: Sizeof
14152+ let stackalloc: Stackalloc
14153+ let standards: Standards
14154+ let staticAssert: StaticAssert
14155+ let staticCast: StaticCast
14156+ let stdDeserializer: StdDeserializer
14157+ let stdSerializer: StdSerializer
14158+ let strictfp: Strictfp
14159+ let string: StringClass
14160+ let symbol: Symbol
14161+ let synchronized: Synchronized
14162+ let system: System
14163+ let template: Template
14164+ let then: Then
14165+ let this: This
14166+ let threadLocal: ThreadLocal
14167+ let timeOnly: TimeOnly
14168+ let timeOnlyConverter: TimeOnlyConverter
14169+ let timeZone: TimeZoneClass
14170+ let toDict: ToDict
14171+ let toJSON: ToJSON
14172+ let toString: ToString
14173+ let topLevel: TopLevelClass
14174+ let transient: Transient
14175+ let type: TypeClass
14176+ let typedef: Typedef
14177+ let typeid: Typeid
14178+ let typename: Typename
14179+ let typeof: Typeof
14180+ let uint: Uint
14181+ let ulong: Ulong
14182+ let unchecked: Unchecked
14183+ let undefined: Undefined
1397414184
1397514185 enum CodingKeys: String, CodingKey {
14186+ case dummy = "dummy"
14187+ case kSerializer = "KSerializer"
14188+ case obj5Self = "Self"
14189+ case obj5Set = "set"
14190+ case obj5Static = "static"
14191+ case obj5Struct = "struct"
14192+ case obj5Subscript = "subscript"
14193+ case obj5Super = "super"
14194+ case obj5Switch = "switch"
14195+ case obj5Throw = "throw"
14196+ case obj5Throws = "throws"
14197+ case obj5True = "True"
14198+ case obj5Try = "try"
14199+ case obj5Type = "type"
14200+ case obj5Typealias = "typealias"
14201+ case primitiveKind = "PrimitiveKind"
14202+ case purpleSelf = "self"
14203+ case purpleTrue = "true"
1397614204 case s = "s"
13977- }
13978-}
13979-
13980-// MARK: S convenience initializers and mutators
13981-
13982-extension S {
13983- init(data: Data) throws {
13984- self = try newJSONDecoder().decode(S.self, from: data)
13985- }
13986-
13987- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13988- guard let data = json.data(using: encoding) else {
13989- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13990- }
13991- try self.init(data: data)
13992- }
13993-
13994- init(fromURL url: URL) throws {
13995- try self.init(data: try Data(contentsOf: url))
13996- }
13997-
13998- func with(
13999- s: Int? = nil
14000- ) -> S {
14001- return S(
14002- s: s ?? self.s
14003- )
14004- }
14005-
14006- func jsonData() throws -> Data {
14007- return try newJSONEncoder().encode(self)
14008- }
14009-
14010- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14011- return String(data: try self.jsonData(), encoding: encoding)
14012- }
14013-}
14014-
14015-//
14016-// Hashable or Equatable:
14017-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14018-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14019-// synthesized for types that have collections (such as arrays or dictionaries).
14020-
14021-// MARK: - Sbyte
14022-struct Sbyte: Codable, Equatable {
14023- let sbyte: Int
14024-
14025- enum CodingKeys: String, CodingKey {
1402614205 case sbyte = "sbyte"
14027- }
14028-}
14029-
14030-// MARK: Sbyte convenience initializers and mutators
14031-
14032-extension Sbyte {
14033- init(data: Data) throws {
14034- self = try newJSONDecoder().decode(Sbyte.self, from: data)
14035- }
14036-
14037- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14038- guard let data = json.data(using: encoding) else {
14039- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14040- }
14041- try self.init(data: data)
14042- }
14043-
14044- init(fromURL url: URL) throws {
14045- try self.init(data: try Data(contentsOf: url))
14046- }
14047-
14048- func with(
14049- sbyte: Int? = nil
14050- ) -> Sbyte {
14051- return Sbyte(
14052- sbyte: sbyte ?? self.sbyte
14053- )
14054- }
14055-
14056- func jsonData() throws -> Data {
14057- return try newJSONEncoder().encode(self)
14058- }
14059-
14060- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14061- return String(data: try self.jsonData(), encoding: encoding)
14062- }
14063-}
14064-
14065-//
14066-// Hashable or Equatable:
14067-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14068-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14069-// synthesized for types that have collections (such as arrays or dictionaries).
14070-
14071-// MARK: - Sealed
14072-struct Sealed: Codable, Equatable {
14073- let sealed: Int
14074-
14075- enum CodingKeys: String, CodingKey {
1407614206 case sealed = "sealed"
14077- }
14078-}
14079-
14080-// MARK: Sealed convenience initializers and mutators
14081-
14082-extension Sealed {
14083- init(data: Data) throws {
14084- self = try newJSONDecoder().decode(Sealed.self, from: data)
14085- }
14086-
14087- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14088- guard let data = json.data(using: encoding) else {
14089- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14090- }
14091- try self.init(data: data)
14092- }
14093-
14094- init(fromURL url: URL) throws {
14095- try self.init(data: try Data(contentsOf: url))
14096- }
14097-
14098- func with(
14099- sealed: Int? = nil
14100- ) -> Sealed {
14101- return Sealed(
14102- sealed: sealed ?? self.sealed
14103- )
14104- }
14105-
14106- func jsonData() throws -> Data {
14107- return try newJSONEncoder().encode(self)
14108- }
14109-
14110- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14111- return String(data: try self.jsonData(), encoding: encoding)
14112- }
14113-}
14114-
14115-//
14116-// Hashable or Equatable:
14117-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14118-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14119-// synthesized for types that have collections (such as arrays or dictionaries).
14120-
14121-// MARK: - Sel
14122-struct Sel: Codable, Equatable {
14123- let sel: Int
14124-
14125- enum CodingKeys: String, CodingKey {
1412614207 case sel = "SEL"
14127- }
14128-}
14129-
14130-// MARK: Sel convenience initializers and mutators
14131-
14132-extension Sel {
14133- init(data: Data) throws {
14134- self = try newJSONDecoder().decode(Sel.self, from: data)
14135- }
14136-
14137- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14138- guard let data = json.data(using: encoding) else {
14139- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14140- }
14141- try self.init(data: data)
14142- }
14143-
14144- init(fromURL url: URL) throws {
14145- try self.init(data: try Data(contentsOf: url))
14146- }
14147-
14148- func with(
14149- sel: Int? = nil
14150- ) -> Sel {
14151- return Sel(
14152- sel: sel ?? self.sel
14153- )
14154- }
14155-
14156- func jsonData() throws -> Data {
14157- return try newJSONEncoder().encode(self)
14158- }
14159-
14160- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14161- return String(data: try self.jsonData(), encoding: encoding)
14162- }
14163-}
14164-
14165-//
14166-// Hashable or Equatable:
14167-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14168-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14169-// synthesized for types that have collections (such as arrays or dictionaries).
14170-
14171-// MARK: - Obj5
14172-struct Obj5: Codable, Equatable {
14173- let dummy: Int
14174- let kSerializer: KSerializer
14175- let obj5Self: SelfClass
14176- let obj5Set: Set
14177- let obj5Static: Static
14178- let obj5Struct: Struct
14179- let obj5Subscript: Subscript
14180- let obj5Super: Super
14181- let obj5Switch: Switch
14182- let obj5Throw: Throw
14183- let obj5Throws: Throws
14184- let obj5True: True
14185- let obj5Try: Try
14186- let obj5Type: Obj5Type
14187- let obj5Typealias: Typealias
14188- let obj5Unowned: Unowned
14189- let primitiveKind: PrimitiveKind
14190- let purpleSelf: Obj5Self
14191- let purpleTrue: TrueClass
14192- let select: Select
14193- let sendable: Sendable
14194- let serialDescriptor: SerialDescriptor
14195- let serialName: SerialName
14196- let serializable: Serializable
14197- let serialize: Serialize
14198- let serializerProvider: SerializerProvider
14199- let short: Short
14200- let signed: Signed
14201- let simpleModule: SimpleModule
14202- let sizeof: Sizeof
14203- let stackalloc: Stackalloc
14204- let standards: Standards
14205- let staticAssert: StaticAssert
14206- let staticCast: StaticCast
14207- let stdDeserializer: StdDeserializer
14208- let stdSerializer: StdSerializer
14209- let strictfp: Strictfp
14210- let string: StringClass
14211- let symbol: Symbol
14212- let synchronized: Synchronized
14213- let system: System
14214- let template: Template
14215- let then: Then
14216- let this: This
14217- let threadLocal: ThreadLocal
14218- let timeOnly: TimeOnly
14219- let timeOnlyConverter: TimeOnlyConverter
14220- let timeZone: TimeZoneClass
14221- let toDict: ToDict
14222- let toJSON: ToJSON
14223- let toString: ToString
14224- let topLevel: TopLevelClass
14225- let transient: Transient
14226- let type: TypeClass
14227- let typedef: Typedef
14228- let typeid: Typeid
14229- let typename: Typename
14230- let typeof: Typeof
14231- let uint: Uint
14232- let ulong: Ulong
14233- let unchecked: Unchecked
14234- let undefined: Undefined
14235- let union: Union
14236- let unmarshalJSON: UnmarshalJSON
14237- let unsafe: Unsafe
14238- let useSerializers: UseSerializers
14239-
14240- enum CodingKeys: String, CodingKey {
14241- case dummy = "dummy"
14242- case kSerializer = "KSerializer"
14243- case obj5Self = "Self"
14244- case obj5Set = "set"
14245- case obj5Static = "static"
14246- case obj5Struct = "struct"
14247- case obj5Subscript = "subscript"
14248- case obj5Super = "super"
14249- case obj5Switch = "switch"
14250- case obj5Throw = "throw"
14251- case obj5Throws = "throws"
14252- case obj5True = "True"
14253- case obj5Try = "try"
14254- case obj5Type = "type"
14255- case obj5Typealias = "typealias"
14256- case obj5Unowned = "unowned"
14257- case primitiveKind = "PrimitiveKind"
14258- case purpleSelf = "self"
14259- case purpleTrue = "true"
1426014208 case select = "select"
1426114209 case sendable = "Sendable"
1426214210 case serialDescriptor = "SerialDescriptor"
@@ -14300,10 +14248,6 @@ struct Obj5: Codable, Equatable {
1430014248 case ulong = "ulong"
1430114249 case unchecked = "unchecked"
1430214250 case undefined = "undefined"
14303- case union = "union"
14304- case unmarshalJSON = "UnmarshalJSON"
14305- case unsafe = "unsafe"
14306- case useSerializers = "UseSerializers"
1430714251 }
1430814252 }
1430914253
@@ -14341,10 +14285,13 @@ extension Obj5 {
1434114285 obj5Try: Try? = nil,
1434214286 obj5Type: Obj5Type? = nil,
1434314287 obj5Typealias: Typealias? = nil,
14344- obj5Unowned: Unowned? = nil,
1434514288 primitiveKind: PrimitiveKind? = nil,
1434614289 purpleSelf: Obj5Self? = nil,
1434714290 purpleTrue: TrueClass? = nil,
14291+ s: S? = nil,
14292+ sbyte: Sbyte? = nil,
14293+ sealed: Sealed? = nil,
14294+ sel: Sel? = nil,
1434814295 select: Select? = nil,
1434914296 sendable: Sendable? = nil,
1435014297 serialDescriptor: SerialDescriptor? = nil,
@@ -14387,11 +14334,7 @@ extension Obj5 {
1438714334 uint: Uint? = nil,
1438814335 ulong: Ulong? = nil,
1438914336 unchecked: Unchecked? = nil,
14390- undefined: Undefined? = nil,
14391- union: Union? = nil,
14392- unmarshalJSON: UnmarshalJSON? = nil,
14393- unsafe: Unsafe? = nil,
14394- useSerializers: UseSerializers? = nil
14337+ undefined: Undefined? = nil
1439514338 ) -> Obj5 {
1439614339 return Obj5(
1439714340 dummy: dummy ?? self.dummy,
@@ -14409,10 +14352,13 @@ extension Obj5 {
1440914352 obj5Try: obj5Try ?? self.obj5Try,
1441014353 obj5Type: obj5Type ?? self.obj5Type,
1441114354 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
14412- obj5Unowned: obj5Unowned ?? self.obj5Unowned,
1441314355 primitiveKind: primitiveKind ?? self.primitiveKind,
1441414356 purpleSelf: purpleSelf ?? self.purpleSelf,
1441514357 purpleTrue: purpleTrue ?? self.purpleTrue,
14358+ s: s ?? self.s,
14359+ sbyte: sbyte ?? self.sbyte,
14360+ sealed: sealed ?? self.sealed,
14361+ sel: sel ?? self.sel,
1441614362 select: select ?? self.select,
1441714363 sendable: sendable ?? self.sendable,
1441814364 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
@@ -14455,11 +14401,7 @@ extension Obj5 {
1445514401 uint: uint ?? self.uint,
1445614402 ulong: ulong ?? self.ulong,
1445714403 unchecked: unchecked ?? self.unchecked,
14458- undefined: undefined ?? self.undefined,
14459- union: union ?? self.union,
14460- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
14461- unsafe: unsafe ?? self.unsafe,
14462- useSerializers: useSerializers ?? self.useSerializers
14404+ undefined: undefined ?? self.undefined
1446314405 )
1446414406 }
1446514407
@@ -15178,20 +15120,20 @@ extension Typealias {
1517815120 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1517915121 // synthesized for types that have collections (such as arrays or dictionaries).
1518015122
15181-// MARK: - Unowned
15182-struct Unowned: Codable, Equatable {
15183- let unownedUnowned: Int
15123+// MARK: - PrimitiveKind
15124+struct PrimitiveKind: Codable, Equatable {
15125+ let primitiveKind: Int
1518415126
1518515127 enum CodingKeys: String, CodingKey {
15186- case unownedUnowned = "unowned"
15128+ case primitiveKind = "PrimitiveKind"
1518715129 }
1518815130 }
1518915131
15190-// MARK: Unowned convenience initializers and mutators
15132+// MARK: PrimitiveKind convenience initializers and mutators
1519115133
15192-extension Unowned {
15134+extension PrimitiveKind {
1519315135 init(data: Data) throws {
15194- self = try newJSONDecoder().decode(Unowned.self, from: data)
15136+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1519515137 }
1519615138
1519715139 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15206,10 +15148,10 @@ extension Unowned {
1520615148 }
1520715149
1520815150 func with(
15209- unownedUnowned: Int? = nil
15210- ) -> Unowned {
15211- return Unowned(
15212- unownedUnowned: unownedUnowned ?? self.unownedUnowned
15151+ primitiveKind: Int? = nil
15152+ ) -> PrimitiveKind {
15153+ return PrimitiveKind(
15154+ primitiveKind: primitiveKind ?? self.primitiveKind
1521315155 )
1521415156 }
1521515157
@@ -15228,20 +15170,20 @@ extension Unowned {
1522815170 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1522915171 // synthesized for types that have collections (such as arrays or dictionaries).
1523015172
15231-// MARK: - PrimitiveKind
15232-struct PrimitiveKind: Codable, Equatable {
15233- let primitiveKind: Int
15173+// MARK: - Obj5Self
15174+struct Obj5Self: Codable, Equatable {
15175+ let selfSelf: Int
1523415176
1523515177 enum CodingKeys: String, CodingKey {
15236- case primitiveKind = "PrimitiveKind"
15178+ case selfSelf = "self"
1523715179 }
1523815180 }
1523915181
15240-// MARK: PrimitiveKind convenience initializers and mutators
15182+// MARK: Obj5Self convenience initializers and mutators
1524115183
15242-extension PrimitiveKind {
15184+extension Obj5Self {
1524315185 init(data: Data) throws {
15244- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15186+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1524515187 }
1524615188
1524715189 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15256,10 +15198,160 @@ extension PrimitiveKind {
1525615198 }
1525715199
1525815200 func with(
15259- primitiveKind: Int? = nil
15260- ) -> PrimitiveKind {
15261- return PrimitiveKind(
15262- primitiveKind: primitiveKind ?? self.primitiveKind
15201+ selfSelf: Int? = nil
15202+ ) -> Obj5Self {
15203+ return Obj5Self(
15204+ selfSelf: selfSelf ?? self.selfSelf
15205+ )
15206+ }
15207+
15208+ func jsonData() throws -> Data {
15209+ return try newJSONEncoder().encode(self)
15210+ }
15211+
15212+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15213+ return String(data: try self.jsonData(), encoding: encoding)
15214+ }
15215+}
15216+
15217+//
15218+// Hashable or Equatable:
15219+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15220+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15221+// synthesized for types that have collections (such as arrays or dictionaries).
15222+
15223+// MARK: - TrueClass
15224+struct TrueClass: Codable, Equatable {
15225+ let trueTrue: Int
15226+
15227+ enum CodingKeys: String, CodingKey {
15228+ case trueTrue = "true"
15229+ }
15230+}
15231+
15232+// MARK: TrueClass convenience initializers and mutators
15233+
15234+extension TrueClass {
15235+ init(data: Data) throws {
15236+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
15237+ }
15238+
15239+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15240+ guard let data = json.data(using: encoding) else {
15241+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15242+ }
15243+ try self.init(data: data)
15244+ }
15245+
15246+ init(fromURL url: URL) throws {
15247+ try self.init(data: try Data(contentsOf: url))
15248+ }
15249+
15250+ func with(
15251+ trueTrue: Int? = nil
15252+ ) -> TrueClass {
15253+ return TrueClass(
15254+ trueTrue: trueTrue ?? self.trueTrue
15255+ )
15256+ }
15257+
15258+ func jsonData() throws -> Data {
15259+ return try newJSONEncoder().encode(self)
15260+ }
15261+
15262+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15263+ return String(data: try self.jsonData(), encoding: encoding)
15264+ }
15265+}
15266+
15267+//
15268+// Hashable or Equatable:
15269+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15270+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15271+// synthesized for types that have collections (such as arrays or dictionaries).
15272+
15273+// MARK: - S
15274+struct S: Codable, Equatable {
15275+ let s: Int
15276+
15277+ enum CodingKeys: String, CodingKey {
15278+ case s = "s"
15279+ }
15280+}
15281+
15282+// MARK: S convenience initializers and mutators
15283+
15284+extension S {
15285+ init(data: Data) throws {
15286+ self = try newJSONDecoder().decode(S.self, from: data)
15287+ }
15288+
15289+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15290+ guard let data = json.data(using: encoding) else {
15291+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15292+ }
15293+ try self.init(data: data)
15294+ }
15295+
15296+ init(fromURL url: URL) throws {
15297+ try self.init(data: try Data(contentsOf: url))
15298+ }
15299+
15300+ func with(
15301+ s: Int? = nil
15302+ ) -> S {
15303+ return S(
15304+ s: s ?? self.s
15305+ )
15306+ }
15307+
15308+ func jsonData() throws -> Data {
15309+ return try newJSONEncoder().encode(self)
15310+ }
15311+
15312+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15313+ return String(data: try self.jsonData(), encoding: encoding)
15314+ }
15315+}
15316+
15317+//
15318+// Hashable or Equatable:
15319+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15320+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15321+// synthesized for types that have collections (such as arrays or dictionaries).
15322+
15323+// MARK: - Sbyte
15324+struct Sbyte: Codable, Equatable {
15325+ let sbyte: Int
15326+
15327+ enum CodingKeys: String, CodingKey {
15328+ case sbyte = "sbyte"
15329+ }
15330+}
15331+
15332+// MARK: Sbyte convenience initializers and mutators
15333+
15334+extension Sbyte {
15335+ init(data: Data) throws {
15336+ self = try newJSONDecoder().decode(Sbyte.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+ sbyte: Int? = nil
15352+ ) -> Sbyte {
15353+ return Sbyte(
15354+ sbyte: sbyte ?? self.sbyte
1526315355 )
1526415356 }
1526515357
@@ -15278,20 +15370,20 @@ extension PrimitiveKind {
1527815370 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1527915371 // synthesized for types that have collections (such as arrays or dictionaries).
1528015372
15281-// MARK: - Obj5Self
15282-struct Obj5Self: Codable, Equatable {
15283- let selfSelf: Int
15373+// MARK: - Sealed
15374+struct Sealed: Codable, Equatable {
15375+ let sealed: Int
1528415376
1528515377 enum CodingKeys: String, CodingKey {
15286- case selfSelf = "self"
15378+ case sealed = "sealed"
1528715379 }
1528815380 }
1528915381
15290-// MARK: Obj5Self convenience initializers and mutators
15382+// MARK: Sealed convenience initializers and mutators
1529115383
15292-extension Obj5Self {
15384+extension Sealed {
1529315385 init(data: Data) throws {
15294- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
15386+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1529515387 }
1529615388
1529715389 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15306,10 +15398,10 @@ extension Obj5Self {
1530615398 }
1530715399
1530815400 func with(
15309- selfSelf: Int? = nil
15310- ) -> Obj5Self {
15311- return Obj5Self(
15312- selfSelf: selfSelf ?? self.selfSelf
15401+ sealed: Int? = nil
15402+ ) -> Sealed {
15403+ return Sealed(
15404+ sealed: sealed ?? self.sealed
1531315405 )
1531415406 }
1531515407
@@ -15328,20 +15420,20 @@ extension Obj5Self {
1532815420 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1532915421 // synthesized for types that have collections (such as arrays or dictionaries).
1533015422
15331-// MARK: - TrueClass
15332-struct TrueClass: Codable, Equatable {
15333- let trueTrue: Int
15423+// MARK: - Sel
15424+struct Sel: Codable, Equatable {
15425+ let sel: Int
1533415426
1533515427 enum CodingKeys: String, CodingKey {
15336- case trueTrue = "true"
15428+ case sel = "SEL"
1533715429 }
1533815430 }
1533915431
15340-// MARK: TrueClass convenience initializers and mutators
15432+// MARK: Sel convenience initializers and mutators
1534115433
15342-extension TrueClass {
15434+extension Sel {
1534315435 init(data: Data) throws {
15344- self = try newJSONDecoder().decode(TrueClass.self, from: data)
15436+ self = try newJSONDecoder().decode(Sel.self, from: data)
1534515437 }
1534615438
1534715439 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15356,10 +15448,10 @@ extension TrueClass {
1535615448 }
1535715449
1535815450 func with(
15359- trueTrue: Int? = nil
15360- ) -> TrueClass {
15361- return TrueClass(
15362- trueTrue: trueTrue ?? self.trueTrue
15451+ sel: Int? = nil
15452+ ) -> Sel {
15453+ return Sel(
15454+ sel: sel ?? self.sel
1536315455 )
1536415456 }
1536515457
@@ -17528,215 +17620,20 @@ extension Undefined {
1752817620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1752917621 // synthesized for types that have collections (such as arrays or dictionaries).
1753017622
17531-// MARK: - Union
17532-struct Union: Codable, Equatable {
17533- let union: Int
17534-
17535- enum CodingKeys: String, CodingKey {
17536- case union = "union"
17537- }
17538-}
17539-
17540-// MARK: Union convenience initializers and mutators
17541-
17542-extension Union {
17543- init(data: Data) throws {
17544- self = try newJSONDecoder().decode(Union.self, from: data)
17545- }
17546-
17547- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17548- guard let data = json.data(using: encoding) else {
17549- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17550- }
17551- try self.init(data: data)
17552- }
17553-
17554- init(fromURL url: URL) throws {
17555- try self.init(data: try Data(contentsOf: url))
17556- }
17557-
17558- func with(
17559- union: Int? = nil
17560- ) -> Union {
17561- return Union(
17562- union: union ?? self.union
17563- )
17564- }
17565-
17566- func jsonData() throws -> Data {
17567- return try newJSONEncoder().encode(self)
17568- }
17569-
17570- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17571- return String(data: try self.jsonData(), encoding: encoding)
17572- }
17573-}
17574-
17575-//
17576-// Hashable or Equatable:
17577-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17578-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17579-// synthesized for types that have collections (such as arrays or dictionaries).
17580-
17581-// MARK: - UnmarshalJSON
17582-struct UnmarshalJSON: Codable, Equatable {
17583- let unmarshalJSON: Int
17584-
17585- enum CodingKeys: String, CodingKey {
17586- case unmarshalJSON = "UnmarshalJSON"
17587- }
17588-}
17589-
17590-// MARK: UnmarshalJSON convenience initializers and mutators
17591-
17592-extension UnmarshalJSON {
17593- init(data: Data) throws {
17594- self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
17595- }
17596-
17597- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17598- guard let data = json.data(using: encoding) else {
17599- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17600- }
17601- try self.init(data: data)
17602- }
17603-
17604- init(fromURL url: URL) throws {
17605- try self.init(data: try Data(contentsOf: url))
17606- }
17607-
17608- func with(
17609- unmarshalJSON: Int? = nil
17610- ) -> UnmarshalJSON {
17611- return UnmarshalJSON(
17612- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
17613- )
17614- }
17615-
17616- func jsonData() throws -> Data {
17617- return try newJSONEncoder().encode(self)
17618- }
17619-
17620- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17621- return String(data: try self.jsonData(), encoding: encoding)
17622- }
17623-}
17624-
17625-//
17626-// Hashable or Equatable:
17627-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17628-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17629-// synthesized for types that have collections (such as arrays or dictionaries).
17630-
17631-// MARK: - Unsafe
17632-struct Unsafe: Codable, Equatable {
17633- let unsafe: Int
17634-
17635- enum CodingKeys: String, CodingKey {
17636- case unsafe = "unsafe"
17637- }
17638-}
17639-
17640-// MARK: Unsafe convenience initializers and mutators
17641-
17642-extension Unsafe {
17643- init(data: Data) throws {
17644- self = try newJSONDecoder().decode(Unsafe.self, from: data)
17645- }
17646-
17647- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17648- guard let data = json.data(using: encoding) else {
17649- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17650- }
17651- try self.init(data: data)
17652- }
17653-
17654- init(fromURL url: URL) throws {
17655- try self.init(data: try Data(contentsOf: url))
17656- }
17657-
17658- func with(
17659- unsafe: Int? = nil
17660- ) -> Unsafe {
17661- return Unsafe(
17662- unsafe: unsafe ?? self.unsafe
17663- )
17664- }
17665-
17666- func jsonData() throws -> Data {
17667- return try newJSONEncoder().encode(self)
17668- }
17669-
17670- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17671- return String(data: try self.jsonData(), encoding: encoding)
17672- }
17673-}
17674-
17675-//
17676-// Hashable or Equatable:
17677-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17678-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17679-// synthesized for types that have collections (such as arrays or dictionaries).
17680-
17681-// MARK: - UseSerializers
17682-struct UseSerializers: Codable, Equatable {
17683- let useSerializers: Int
17684-
17685- enum CodingKeys: String, CodingKey {
17686- case useSerializers = "UseSerializers"
17687- }
17688-}
17689-
17690-// MARK: UseSerializers convenience initializers and mutators
17691-
17692-extension UseSerializers {
17693- init(data: Data) throws {
17694- self = try newJSONDecoder().decode(UseSerializers.self, from: data)
17695- }
17696-
17697- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17698- guard let data = json.data(using: encoding) else {
17699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17700- }
17701- try self.init(data: data)
17702- }
17703-
17704- init(fromURL url: URL) throws {
17705- try self.init(data: try Data(contentsOf: url))
17706- }
17707-
17708- func with(
17709- useSerializers: Int? = nil
17710- ) -> UseSerializers {
17711- return UseSerializers(
17712- useSerializers: useSerializers ?? self.useSerializers
17713- )
17714- }
17715-
17716- func jsonData() throws -> Data {
17717- return try newJSONEncoder().encode(self)
17718- }
17719-
17720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17721- return String(data: try self.jsonData(), encoding: encoding)
17722- }
17723-}
17724-
17725-//
17726-// Hashable or Equatable:
17727-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17728-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17729-// synthesized for types that have collections (such as arrays or dictionaries).
17730-
1773117623 // MARK: - Obj6
1773217624 struct Obj6: Codable, Equatable {
1773317625 let dummy: Int
17626+ let obj6Unowned: Unowned
1773417627 let obj6Var: Var
1773517628 let obj6Weak: Weak
1773617629 let obj6Where: Where
1773717630 let obj6While: While
1773817631 let obj6WillSet: WillSet
17632+ let union: Union
17633+ let unmarshalJSON: UnmarshalJSON
17634+ let unsafe: Unsafe
1773917635 let unsigned: Unsigned
17636+ let useSerializers: UseSerializers
1774017637 let ushort: Ushort
1774117638 let using: Using
1774217639 let utf8JSONReader: Utf8JSONReader
@@ -17754,12 +17651,17 @@ struct Obj6: Codable, Equatable {
1775417651
1775517652 enum CodingKeys: String, CodingKey {
1775617653 case dummy = "dummy"
17654+ case obj6Unowned = "unowned"
1775717655 case obj6Var = "var"
1775817656 case obj6Weak = "weak"
1775917657 case obj6Where = "where"
1776017658 case obj6While = "while"
1776117659 case obj6WillSet = "willSet"
17660+ case union = "union"
17661+ case unmarshalJSON = "UnmarshalJSON"
17662+ case unsafe = "unsafe"
1776217663 case unsigned = "unsigned"
17664+ case useSerializers = "UseSerializers"
1776317665 case ushort = "ushort"
1776417666 case using = "using"
1776517667 case utf8JSONReader = "Utf8JsonReader"
@@ -17797,12 +17699,17 @@ extension Obj6 {
1779717699
1779817700 func with(
1779917701 dummy: Int? = nil,
17702+ obj6Unowned: Unowned? = nil,
1780017703 obj6Var: Var? = nil,
1780117704 obj6Weak: Weak? = nil,
1780217705 obj6Where: Where? = nil,
1780317706 obj6While: While? = nil,
1780417707 obj6WillSet: WillSet? = nil,
17708+ union: Union? = nil,
17709+ unmarshalJSON: UnmarshalJSON? = nil,
17710+ unsafe: Unsafe? = nil,
1780517711 unsigned: Unsigned? = nil,
17712+ useSerializers: UseSerializers? = nil,
1780617713 ushort: Ushort? = nil,
1780717714 using: Using? = nil,
1780817715 utf8JSONReader: Utf8JSONReader? = nil,
@@ -17820,12 +17727,17 @@ extension Obj6 {
1782017727 ) -> Obj6 {
1782117728 return Obj6(
1782217729 dummy: dummy ?? self.dummy,
17730+ obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1782317731 obj6Var: obj6Var ?? self.obj6Var,
1782417732 obj6Weak: obj6Weak ?? self.obj6Weak,
1782517733 obj6Where: obj6Where ?? self.obj6Where,
1782617734 obj6While: obj6While ?? self.obj6While,
1782717735 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17736+ union: union ?? self.union,
17737+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
17738+ unsafe: unsafe ?? self.unsafe,
1782817739 unsigned: unsigned ?? self.unsigned,
17740+ useSerializers: useSerializers ?? self.useSerializers,
1782917741 ushort: ushort ?? self.ushort,
1783017742 using: using ?? self.using,
1783117743 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
@@ -17858,6 +17770,56 @@ extension Obj6 {
1785817770 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1785917771 // synthesized for types that have collections (such as arrays or dictionaries).
1786017772
17773+// MARK: - Unowned
17774+struct Unowned: Codable, Equatable {
17775+ let unownedUnowned: Int
17776+
17777+ enum CodingKeys: String, CodingKey {
17778+ case unownedUnowned = "unowned"
17779+ }
17780+}
17781+
17782+// MARK: Unowned convenience initializers and mutators
17783+
17784+extension Unowned {
17785+ init(data: Data) throws {
17786+ self = try newJSONDecoder().decode(Unowned.self, from: data)
17787+ }
17788+
17789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17790+ guard let data = json.data(using: encoding) else {
17791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17792+ }
17793+ try self.init(data: data)
17794+ }
17795+
17796+ init(fromURL url: URL) throws {
17797+ try self.init(data: try Data(contentsOf: url))
17798+ }
17799+
17800+ func with(
17801+ unownedUnowned: Int? = nil
17802+ ) -> Unowned {
17803+ return Unowned(
17804+ unownedUnowned: unownedUnowned ?? self.unownedUnowned
17805+ )
17806+ }
17807+
17808+ func jsonData() throws -> Data {
17809+ return try newJSONEncoder().encode(self)
17810+ }
17811+
17812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17813+ return String(data: try self.jsonData(), encoding: encoding)
17814+ }
17815+}
17816+
17817+//
17818+// Hashable or Equatable:
17819+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17820+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17821+// synthesized for types that have collections (such as arrays or dictionaries).
17822+
1786117823 // MARK: - Var
1786217824 struct Var: Codable, Equatable {
1786317825 let varVar: Int
@@ -18108,6 +18070,156 @@ extension WillSet {
1810818070 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1810918071 // synthesized for types that have collections (such as arrays or dictionaries).
1811018072
18073+// MARK: - Union
18074+struct Union: Codable, Equatable {
18075+ let union: Int
18076+
18077+ enum CodingKeys: String, CodingKey {
18078+ case union = "union"
18079+ }
18080+}
18081+
18082+// MARK: Union convenience initializers and mutators
18083+
18084+extension Union {
18085+ init(data: Data) throws {
18086+ self = try newJSONDecoder().decode(Union.self, from: data)
18087+ }
18088+
18089+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18090+ guard let data = json.data(using: encoding) else {
18091+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18092+ }
18093+ try self.init(data: data)
18094+ }
18095+
18096+ init(fromURL url: URL) throws {
18097+ try self.init(data: try Data(contentsOf: url))
18098+ }
18099+
18100+ func with(
18101+ union: Int? = nil
18102+ ) -> Union {
18103+ return Union(
18104+ union: union ?? self.union
18105+ )
18106+ }
18107+
18108+ func jsonData() throws -> Data {
18109+ return try newJSONEncoder().encode(self)
18110+ }
18111+
18112+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18113+ return String(data: try self.jsonData(), encoding: encoding)
18114+ }
18115+}
18116+
18117+//
18118+// Hashable or Equatable:
18119+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18120+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18121+// synthesized for types that have collections (such as arrays or dictionaries).
18122+
18123+// MARK: - UnmarshalJSON
18124+struct UnmarshalJSON: Codable, Equatable {
18125+ let unmarshalJSON: Int
18126+
18127+ enum CodingKeys: String, CodingKey {
18128+ case unmarshalJSON = "UnmarshalJSON"
18129+ }
18130+}
18131+
18132+// MARK: UnmarshalJSON convenience initializers and mutators
18133+
18134+extension UnmarshalJSON {
18135+ init(data: Data) throws {
18136+ self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
18137+ }
18138+
18139+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18140+ guard let data = json.data(using: encoding) else {
18141+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18142+ }
18143+ try self.init(data: data)
18144+ }
18145+
18146+ init(fromURL url: URL) throws {
18147+ try self.init(data: try Data(contentsOf: url))
18148+ }
18149+
18150+ func with(
18151+ unmarshalJSON: Int? = nil
18152+ ) -> UnmarshalJSON {
18153+ return UnmarshalJSON(
18154+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
18155+ )
18156+ }
18157+
18158+ func jsonData() throws -> Data {
18159+ return try newJSONEncoder().encode(self)
18160+ }
18161+
18162+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18163+ return String(data: try self.jsonData(), encoding: encoding)
18164+ }
18165+}
18166+
18167+//
18168+// Hashable or Equatable:
18169+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18170+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18171+// synthesized for types that have collections (such as arrays or dictionaries).
18172+
18173+// MARK: - Unsafe
18174+struct Unsafe: Codable, Equatable {
18175+ let unsafe: Int
18176+
18177+ enum CodingKeys: String, CodingKey {
18178+ case unsafe = "unsafe"
18179+ }
18180+}
18181+
18182+// MARK: Unsafe convenience initializers and mutators
18183+
18184+extension Unsafe {
18185+ init(data: Data) throws {
18186+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
18187+ }
18188+
18189+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18190+ guard let data = json.data(using: encoding) else {
18191+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18192+ }
18193+ try self.init(data: data)
18194+ }
18195+
18196+ init(fromURL url: URL) throws {
18197+ try self.init(data: try Data(contentsOf: url))
18198+ }
18199+
18200+ func with(
18201+ unsafe: Int? = nil
18202+ ) -> Unsafe {
18203+ return Unsafe(
18204+ unsafe: unsafe ?? self.unsafe
18205+ )
18206+ }
18207+
18208+ func jsonData() throws -> Data {
18209+ return try newJSONEncoder().encode(self)
18210+ }
18211+
18212+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18213+ return String(data: try self.jsonData(), encoding: encoding)
18214+ }
18215+}
18216+
18217+//
18218+// Hashable or Equatable:
18219+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18220+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18221+// synthesized for types that have collections (such as arrays or dictionaries).
18222+
1811118223 // MARK: - Unsigned
1811218224 struct Unsigned: Codable, Equatable {
1811318225 let unsigned: Int
@@ -18158,6 +18270,56 @@ extension Unsigned {
1815818270 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1815918271 // synthesized for types that have collections (such as arrays or dictionaries).
1816018272
18273+// MARK: - UseSerializers
18274+struct UseSerializers: Codable, Equatable {
18275+ let useSerializers: Int
18276+
18277+ enum CodingKeys: String, CodingKey {
18278+ case useSerializers = "UseSerializers"
18279+ }
18280+}
18281+
18282+// MARK: UseSerializers convenience initializers and mutators
18283+
18284+extension UseSerializers {
18285+ init(data: Data) throws {
18286+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
18287+ }
18288+
18289+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18290+ guard let data = json.data(using: encoding) else {
18291+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18292+ }
18293+ try self.init(data: data)
18294+ }
18295+
18296+ init(fromURL url: URL) throws {
18297+ try self.init(data: try Data(contentsOf: url))
18298+ }
18299+
18300+ func with(
18301+ useSerializers: Int? = nil
18302+ ) -> UseSerializers {
18303+ return UseSerializers(
18304+ useSerializers: useSerializers ?? self.useSerializers
18305+ )
18306+ }
18307+
18308+ func jsonData() throws -> Data {
18309+ return try newJSONEncoder().encode(self)
18310+ }
18311+
18312+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18313+ return String(data: try self.jsonData(), encoding: encoding)
18314+ }
18315+}
18316+
18317+//
18318+// Hashable or Equatable:
18319+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18320+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18321+// synthesized for types that have collections (such as arrays or dictionaries).
18322+
1816118323 // MARK: - Ushort
1816218324 struct Ushort: Codable, Equatable {
1816318325 let ushort: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+838 −694
@@ -6348,6 +6348,7 @@ struct Obj3: Codable, Sendable {
63486348 let jsonWriter: JSONWriter
63496349 let lambda: Lambda
63506350 let list: List
6351+ let localDate: LocalDate
63516352 let locale: LocaleClass
63526353 let lock: Lock
63536354 let long: Long
@@ -6361,7 +6362,6 @@ struct Obj3: Codable, Sendable {
63616362 let native: Native
63626363 let new: New
63636364 let newtonsoft: Newtonsoft
6364- let no: No
63656365 let obj3Guard: Guard
63666366 let obj3If: If
63676367 let obj3Import: Import
@@ -6377,7 +6377,6 @@ struct Obj3: Codable, Sendable {
63776377 let obj3Left: Left
63786378 let obj3Let: Let
63796379 let obj3Mutating: Mutating
6380- let obj3Nil: Nil
63816380
63826381 enum CodingKeys: String, CodingKey {
63836382 case dummy = "dummy"
@@ -6416,6 +6415,7 @@ struct Obj3: Codable, Sendable {
64166415 case jsonWriter = "json_writer"
64176416 case lambda = "lambda"
64186417 case list = "list"
6418+ case localDate = "LocalDate"
64196419 case locale = "Locale"
64206420 case lock = "lock"
64216421 case long = "long"
@@ -6429,7 +6429,6 @@ struct Obj3: Codable, Sendable {
64296429 case native = "native"
64306430 case new = "new"
64316431 case newtonsoft = "newtonsoft"
6432- case no = "NO"
64336432 case obj3Guard = "guard"
64346433 case obj3If = "if"
64356434 case obj3Import = "import"
@@ -6445,7 +6444,6 @@ struct Obj3: Codable, Sendable {
64456444 case obj3Left = "left"
64466445 case obj3Let = "let"
64476446 case obj3Mutating = "mutating"
6448- case obj3Nil = "nil"
64496447 }
64506448 }
64516449
@@ -6504,6 +6502,7 @@ extension Obj3 {
65046502 jsonWriter: JSONWriter? = nil,
65056503 lambda: Lambda? = nil,
65066504 list: List? = nil,
6505+ localDate: LocalDate? = nil,
65076506 locale: LocaleClass? = nil,
65086507 lock: Lock? = nil,
65096508 long: Long? = nil,
@@ -6517,7 +6516,6 @@ extension Obj3 {
65176516 native: Native? = nil,
65186517 new: New? = nil,
65196518 newtonsoft: Newtonsoft? = nil,
6520- no: No? = nil,
65216519 obj3Guard: Guard? = nil,
65226520 obj3If: If? = nil,
65236521 obj3Import: Import? = nil,
@@ -6532,8 +6530,7 @@ extension Obj3 {
65326530 obj3Lazy: Lazy? = nil,
65336531 obj3Left: Left? = nil,
65346532 obj3Let: Let? = nil,
6535- obj3Mutating: Mutating? = nil,
6536- obj3Nil: Nil? = nil
6533+ obj3Mutating: Mutating? = nil
65376534 ) -> Obj3 {
65386535 return Obj3(
65396536 dummy: dummy ?? self.dummy,
@@ -6572,6 +6569,7 @@ extension Obj3 {
65726569 jsonWriter: jsonWriter ?? self.jsonWriter,
65736570 lambda: lambda ?? self.lambda,
65746571 list: list ?? self.list,
6572+ localDate: localDate ?? self.localDate,
65756573 locale: locale ?? self.locale,
65766574 lock: lock ?? self.lock,
65776575 long: long ?? self.long,
@@ -6585,7 +6583,6 @@ extension Obj3 {
65856583 native: native ?? self.native,
65866584 new: new ?? self.new,
65876585 newtonsoft: newtonsoft ?? self.newtonsoft,
6588- no: no ?? self.no,
65896586 obj3Guard: obj3Guard ?? self.obj3Guard,
65906587 obj3If: obj3If ?? self.obj3If,
65916588 obj3Import: obj3Import ?? self.obj3Import,
@@ -6600,8 +6597,7 @@ extension Obj3 {
66006597 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
66016598 obj3Left: obj3Left ?? self.obj3Left,
66026599 obj3Let: obj3Let ?? self.obj3Let,
6603- obj3Mutating: obj3Mutating ?? self.obj3Mutating,
6604- obj3Nil: obj3Nil ?? self.obj3Nil
6600+ obj3Mutating: obj3Mutating ?? self.obj3Mutating
66056601 )
66066602 }
66076603
@@ -8154,6 +8150,50 @@ extension List {
81548150 }
81558151 }
81568152
8153+// MARK: - LocalDate
8154+struct LocalDate: Codable, Sendable {
8155+ let localDate: Int
8156+
8157+ enum CodingKeys: String, CodingKey {
8158+ case localDate = "LocalDate"
8159+ }
8160+}
8161+
8162+// MARK: LocalDate convenience initializers and mutators
8163+
8164+extension LocalDate {
8165+ init(data: Data) throws {
8166+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8167+ }
8168+
8169+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8170+ guard let data = json.data(using: encoding) else {
8171+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8172+ }
8173+ try self.init(data: data)
8174+ }
8175+
8176+ init(fromURL url: URL) throws {
8177+ try self.init(data: try Data(contentsOf: url))
8178+ }
8179+
8180+ func with(
8181+ localDate: Int? = nil
8182+ ) -> LocalDate {
8183+ return LocalDate(
8184+ localDate: localDate ?? self.localDate
8185+ )
8186+ }
8187+
8188+ func jsonData() throws -> Data {
8189+ return try newJSONEncoder().encode(self)
8190+ }
8191+
8192+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8193+ return String(data: try self.jsonData(), encoding: encoding)
8194+ }
8195+}
8196+
81578197 // MARK: - LocaleClass
81588198 struct LocaleClass: Codable, Sendable {
81598199 let locale: Int
@@ -8726,50 +8766,6 @@ extension Newtonsoft {
87268766 }
87278767 }
87288768
8729-// MARK: - No
8730-struct No: Codable, Sendable {
8731- let no: Int
8732-
8733- enum CodingKeys: String, CodingKey {
8734- case no = "NO"
8735- }
8736-}
8737-
8738-// MARK: No convenience initializers and mutators
8739-
8740-extension No {
8741- init(data: Data) throws {
8742- self = try newJSONDecoder().decode(No.self, from: data)
8743- }
8744-
8745- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8746- guard let data = json.data(using: encoding) else {
8747- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8748- }
8749- try self.init(data: data)
8750- }
8751-
8752- init(fromURL url: URL) throws {
8753- try self.init(data: try Data(contentsOf: url))
8754- }
8755-
8756- func with(
8757- no: Int? = nil
8758- ) -> No {
8759- return No(
8760- no: no ?? self.no
8761- )
8762- }
8763-
8764- func jsonData() throws -> Data {
8765- return try newJSONEncoder().encode(self)
8766- }
8767-
8768- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8769- return String(data: try self.jsonData(), encoding: encoding)
8770- }
8771-}
8772-
87738769 // MARK: - Guard
87748770 struct Guard: Codable, Sendable {
87758771 let guardGuard: Int
@@ -9430,53 +9426,10 @@ extension Mutating {
94309426 }
94319427 }
94329428
9433-// MARK: - Nil
9434-struct Nil: Codable, Sendable {
9435- let nilNil: Int
9436-
9437- enum CodingKeys: String, CodingKey {
9438- case nilNil = "nil"
9439- }
9440-}
9441-
9442-// MARK: Nil convenience initializers and mutators
9443-
9444-extension Nil {
9445- init(data: Data) throws {
9446- self = try newJSONDecoder().decode(Nil.self, from: data)
9447- }
9448-
9449- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9450- guard let data = json.data(using: encoding) else {
9451- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9452- }
9453- try self.init(data: data)
9454- }
9455-
9456- init(fromURL url: URL) throws {
9457- try self.init(data: try Data(contentsOf: url))
9458- }
9459-
9460- func with(
9461- nilNil: Int? = nil
9462- ) -> Nil {
9463- return Nil(
9464- nilNil: nilNil ?? self.nilNil
9465- )
9466- }
9467-
9468- func jsonData() throws -> Data {
9469- return try newJSONEncoder().encode(self)
9470- }
9471-
9472- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9473- return String(data: try self.jsonData(), encoding: encoding)
9474- }
9475-}
9476-
94779429 // MARK: - Obj4
94789430 struct Obj4: Codable, Sendable {
94799431 let dummy: Int
9432+ let no: No
94809433 let noSuchMethod: NoSuchMethod
94819434 let noexcept: Noexcept
94829435 let nonatomic: Nonatomic
@@ -9490,6 +9443,7 @@ struct Obj4: Codable, Sendable {
94909443 let null: Null
94919444 let nullptr: Nullptr
94929445 let number: Number
9446+ let obj4Nil: Nil
94939447 let obj4None: NoneClass
94949448 let obj4Nonmutating: Nonmutating
94959449 let obj4Null: NullClass
@@ -9511,6 +9465,8 @@ struct Obj4: Codable, Sendable {
95119465 let object: Object
95129466 let objectMapper: ObjectMapper
95139467 let of: Of
9468+ let offsetDateTime: OffsetDateTime
9469+ let offsetTime: OffsetTime
95149470 let oneway: Oneway
95159471 let or: Or
95169472 let orEq: OrEq
@@ -9537,13 +9493,10 @@ struct Obj4: Codable, Sendable {
95379493 let restrict: Restrict
95389494 let retain: Retain
95399495 let runtimeType: RuntimeType
9540- let s: S
9541- let sbyte: Sbyte
9542- let sealed: Sealed
9543- let sel: Sel
95449496
95459497 enum CodingKeys: String, CodingKey {
95469498 case dummy = "dummy"
9499+ case no = "NO"
95479500 case noSuchMethod = "noSuchMethod"
95489501 case noexcept = "noexcept"
95499502 case nonatomic = "nonatomic"
@@ -9557,6 +9510,7 @@ struct Obj4: Codable, Sendable {
95579510 case null = "NULL"
95589511 case nullptr = "nullptr"
95599512 case number = "number"
9513+ case obj4Nil = "nil"
95609514 case obj4None = "none"
95619515 case obj4Nonmutating = "nonmutating"
95629516 case obj4Null = "null"
@@ -9578,6 +9532,8 @@ struct Obj4: Codable, Sendable {
95789532 case object = "object"
95799533 case objectMapper = "ObjectMapper"
95809534 case of = "of"
9535+ case offsetDateTime = "OffsetDateTime"
9536+ case offsetTime = "OffsetTime"
95819537 case oneway = "oneway"
95829538 case or = "or"
95839539 case orEq = "or_eq"
@@ -9604,10 +9560,6 @@ struct Obj4: Codable, Sendable {
96049560 case restrict = "restrict"
96059561 case retain = "retain"
96069562 case runtimeType = "runtimeType"
9607- case s = "s"
9608- case sbyte = "sbyte"
9609- case sealed = "sealed"
9610- case sel = "SEL"
96119563 }
96129564 }
96139565
@@ -9631,6 +9583,7 @@ extension Obj4 {
96319583
96329584 func with(
96339585 dummy: Int? = nil,
9586+ no: No? = nil,
96349587 noSuchMethod: NoSuchMethod? = nil,
96359588 noexcept: Noexcept? = nil,
96369589 nonatomic: Nonatomic? = nil,
@@ -9644,6 +9597,7 @@ extension Obj4 {
96449597 null: Null? = nil,
96459598 nullptr: Nullptr? = nil,
96469599 number: Number? = nil,
9600+ obj4Nil: Nil? = nil,
96479601 obj4None: NoneClass? = nil,
96489602 obj4Nonmutating: Nonmutating? = nil,
96499603 obj4Null: NullClass? = nil,
@@ -9665,6 +9619,8 @@ extension Obj4 {
96659619 object: Object? = nil,
96669620 objectMapper: ObjectMapper? = nil,
96679621 of: Of? = nil,
9622+ offsetDateTime: OffsetDateTime? = nil,
9623+ offsetTime: OffsetTime? = nil,
96689624 oneway: Oneway? = nil,
96699625 or: Or? = nil,
96709626 orEq: OrEq? = nil,
@@ -9690,14 +9646,11 @@ extension Obj4 {
96909646 requires: Requires? = nil,
96919647 restrict: Restrict? = nil,
96929648 retain: Retain? = nil,
9693- runtimeType: RuntimeType? = nil,
9694- s: S? = nil,
9695- sbyte: Sbyte? = nil,
9696- sealed: Sealed? = nil,
9697- sel: Sel? = nil
9649+ runtimeType: RuntimeType? = nil
96989650 ) -> Obj4 {
96999651 return Obj4(
97009652 dummy: dummy ?? self.dummy,
9653+ no: no ?? self.no,
97019654 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
97029655 noexcept: noexcept ?? self.noexcept,
97039656 nonatomic: nonatomic ?? self.nonatomic,
@@ -9711,6 +9664,7 @@ extension Obj4 {
97119664 null: null ?? self.null,
97129665 nullptr: nullptr ?? self.nullptr,
97139666 number: number ?? self.number,
9667+ obj4Nil: obj4Nil ?? self.obj4Nil,
97149668 obj4None: obj4None ?? self.obj4None,
97159669 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
97169670 obj4Null: obj4Null ?? self.obj4Null,
@@ -9732,6 +9686,8 @@ extension Obj4 {
97329686 object: object ?? self.object,
97339687 objectMapper: objectMapper ?? self.objectMapper,
97349688 of: of ?? self.of,
9689+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9690+ offsetTime: offsetTime ?? self.offsetTime,
97359691 oneway: oneway ?? self.oneway,
97369692 or: or ?? self.or,
97379693 orEq: orEq ?? self.orEq,
@@ -9757,11 +9713,51 @@ extension Obj4 {
97579713 requires: requires ?? self.requires,
97589714 restrict: restrict ?? self.restrict,
97599715 retain: retain ?? self.retain,
9760- runtimeType: runtimeType ?? self.runtimeType,
9761- s: s ?? self.s,
9762- sbyte: sbyte ?? self.sbyte,
9763- sealed: sealed ?? self.sealed,
9764- sel: sel ?? self.sel
9716+ runtimeType: runtimeType ?? self.runtimeType
9717+ )
9718+ }
9719+
9720+ func jsonData() throws -> Data {
9721+ return try newJSONEncoder().encode(self)
9722+ }
9723+
9724+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9725+ return String(data: try self.jsonData(), encoding: encoding)
9726+ }
9727+}
9728+
9729+// MARK: - No
9730+struct No: Codable, Sendable {
9731+ let no: Int
9732+
9733+ enum CodingKeys: String, CodingKey {
9734+ case no = "NO"
9735+ }
9736+}
9737+
9738+// MARK: No convenience initializers and mutators
9739+
9740+extension No {
9741+ init(data: Data) throws {
9742+ self = try newJSONDecoder().decode(No.self, from: data)
9743+ }
9744+
9745+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9746+ guard let data = json.data(using: encoding) else {
9747+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9748+ }
9749+ try self.init(data: data)
9750+ }
9751+
9752+ init(fromURL url: URL) throws {
9753+ try self.init(data: try Data(contentsOf: url))
9754+ }
9755+
9756+ func with(
9757+ no: Int? = nil
9758+ ) -> No {
9759+ return No(
9760+ no: no ?? self.no
97659761 )
97669762 }
97679763
@@ -10346,6 +10342,50 @@ extension Number {
1034610342 }
1034710343 }
1034810344
10345+// MARK: - Nil
10346+struct Nil: Codable, Sendable {
10347+ let nilNil: Int
10348+
10349+ enum CodingKeys: String, CodingKey {
10350+ case nilNil = "nil"
10351+ }
10352+}
10353+
10354+// MARK: Nil convenience initializers and mutators
10355+
10356+extension Nil {
10357+ init(data: Data) throws {
10358+ self = try newJSONDecoder().decode(Nil.self, from: data)
10359+ }
10360+
10361+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10362+ guard let data = json.data(using: encoding) else {
10363+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10364+ }
10365+ try self.init(data: data)
10366+ }
10367+
10368+ init(fromURL url: URL) throws {
10369+ try self.init(data: try Data(contentsOf: url))
10370+ }
10371+
10372+ func with(
10373+ nilNil: Int? = nil
10374+ ) -> Nil {
10375+ return Nil(
10376+ nilNil: nilNil ?? self.nilNil
10377+ )
10378+ }
10379+
10380+ func jsonData() throws -> Data {
10381+ return try newJSONEncoder().encode(self)
10382+ }
10383+
10384+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10385+ return String(data: try self.jsonData(), encoding: encoding)
10386+ }
10387+}
10388+
1034910389 // MARK: - NoneClass
1035010390 struct NoneClass: Codable, Sendable {
1035110391 let none: Int
@@ -11270,20 +11310,20 @@ extension Of {
1127011310 }
1127111311 }
1127211312
11273-// MARK: - Oneway
11274-struct Oneway: Codable, Sendable {
11275- let oneway: Int
11313+// MARK: - OffsetDateTime
11314+struct OffsetDateTime: Codable, Sendable {
11315+ let offsetDateTime: Int
1127611316
1127711317 enum CodingKeys: String, CodingKey {
11278- case oneway = "oneway"
11318+ case offsetDateTime = "OffsetDateTime"
1127911319 }
1128011320 }
1128111321
11282-// MARK: Oneway convenience initializers and mutators
11322+// MARK: OffsetDateTime convenience initializers and mutators
1128311323
11284-extension Oneway {
11324+extension OffsetDateTime {
1128511325 init(data: Data) throws {
11286- self = try newJSONDecoder().decode(Oneway.self, from: data)
11326+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
1128711327 }
1128811328
1128911329 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11298,10 +11338,10 @@ extension Oneway {
1129811338 }
1129911339
1130011340 func with(
11301- oneway: Int? = nil
11302- ) -> Oneway {
11303- return Oneway(
11304- oneway: oneway ?? self.oneway
11341+ offsetDateTime: Int? = nil
11342+ ) -> OffsetDateTime {
11343+ return OffsetDateTime(
11344+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
1130511345 )
1130611346 }
1130711347
@@ -11314,20 +11354,20 @@ extension Oneway {
1131411354 }
1131511355 }
1131611356
11317-// MARK: - Or
11318-struct Or: Codable, Sendable {
11319- let or: Int
11357+// MARK: - OffsetTime
11358+struct OffsetTime: Codable, Sendable {
11359+ let offsetTime: Int
1132011360
1132111361 enum CodingKeys: String, CodingKey {
11322- case or = "or"
11362+ case offsetTime = "OffsetTime"
1132311363 }
1132411364 }
1132511365
11326-// MARK: Or convenience initializers and mutators
11366+// MARK: OffsetTime convenience initializers and mutators
1132711367
11328-extension Or {
11368+extension OffsetTime {
1132911369 init(data: Data) throws {
11330- self = try newJSONDecoder().decode(Or.self, from: data)
11370+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
1133111371 }
1133211372
1133311373 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11342,10 +11382,10 @@ extension Or {
1134211382 }
1134311383
1134411384 func with(
11345- or: Int? = nil
11346- ) -> Or {
11347- return Or(
11348- or: or ?? self.or
11385+ offsetTime: Int? = nil
11386+ ) -> OffsetTime {
11387+ return OffsetTime(
11388+ offsetTime: offsetTime ?? self.offsetTime
1134911389 )
1135011390 }
1135111391
@@ -11358,7 +11398,95 @@ extension Or {
1135811398 }
1135911399 }
1136011400
11361-// MARK: - OrEq
11401+// MARK: - Oneway
11402+struct Oneway: Codable, Sendable {
11403+ let oneway: Int
11404+
11405+ enum CodingKeys: String, CodingKey {
11406+ case oneway = "oneway"
11407+ }
11408+}
11409+
11410+// MARK: Oneway convenience initializers and mutators
11411+
11412+extension Oneway {
11413+ init(data: Data) throws {
11414+ self = try newJSONDecoder().decode(Oneway.self, from: data)
11415+ }
11416+
11417+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11418+ guard let data = json.data(using: encoding) else {
11419+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11420+ }
11421+ try self.init(data: data)
11422+ }
11423+
11424+ init(fromURL url: URL) throws {
11425+ try self.init(data: try Data(contentsOf: url))
11426+ }
11427+
11428+ func with(
11429+ oneway: Int? = nil
11430+ ) -> Oneway {
11431+ return Oneway(
11432+ oneway: oneway ?? self.oneway
11433+ )
11434+ }
11435+
11436+ func jsonData() throws -> Data {
11437+ return try newJSONEncoder().encode(self)
11438+ }
11439+
11440+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11441+ return String(data: try self.jsonData(), encoding: encoding)
11442+ }
11443+}
11444+
11445+// MARK: - Or
11446+struct Or: Codable, Sendable {
11447+ let or: Int
11448+
11449+ enum CodingKeys: String, CodingKey {
11450+ case or = "or"
11451+ }
11452+}
11453+
11454+// MARK: Or convenience initializers and mutators
11455+
11456+extension Or {
11457+ init(data: Data) throws {
11458+ self = try newJSONDecoder().decode(Or.self, from: data)
11459+ }
11460+
11461+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11462+ guard let data = json.data(using: encoding) else {
11463+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11464+ }
11465+ try self.init(data: data)
11466+ }
11467+
11468+ init(fromURL url: URL) throws {
11469+ try self.init(data: try Data(contentsOf: url))
11470+ }
11471+
11472+ func with(
11473+ or: Int? = nil
11474+ ) -> Or {
11475+ return Or(
11476+ or: or ?? self.or
11477+ )
11478+ }
11479+
11480+ func jsonData() throws -> Data {
11481+ return try newJSONEncoder().encode(self)
11482+ }
11483+
11484+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11485+ return String(data: try self.jsonData(), encoding: encoding)
11486+ }
11487+}
11488+
11489+// MARK: - OrEq
1136211490 struct OrEq: Codable, Sendable {
1136311491 let orEq: Int
1136411492
@@ -12414,326 +12542,148 @@ extension RuntimeType {
1241412542 }
1241512543 }
1241612544
12417-// MARK: - S
12418-struct S: Codable, Sendable {
12419- let s: Int
12545+// MARK: - Obj5
12546+struct Obj5: Codable, Sendable {
12547+ let dummy: Int
12548+ let kSerializer: KSerializer
12549+ let obj5Self: SelfClass
12550+ let obj5Set: Set
12551+ let obj5Static: Static
12552+ let obj5Struct: Struct
12553+ let obj5Subscript: Subscript
12554+ let obj5Super: Super
12555+ let obj5Switch: Switch
12556+ let obj5Throw: Throw
12557+ let obj5Throws: Throws
12558+ let obj5True: True
12559+ let obj5Try: Try
12560+ let obj5Type: Obj5Type
12561+ let obj5Typealias: Typealias
12562+ let primitiveKind: PrimitiveKind
12563+ let purpleSelf: Obj5Self
12564+ let purpleTrue: TrueClass
12565+ let s: S
12566+ let sbyte: Sbyte
12567+ let sealed: Sealed
12568+ let sel: Sel
12569+ let select: Select
12570+ let sendable: SendableClass
12571+ let serialDescriptor: SerialDescriptor
12572+ let serialName: SerialName
12573+ let serializable: Serializable
12574+ let serialize: Serialize
12575+ let serializerProvider: SerializerProvider
12576+ let short: Short
12577+ let signed: Signed
12578+ let simpleModule: SimpleModule
12579+ let sizeof: Sizeof
12580+ let stackalloc: Stackalloc
12581+ let standards: Standards
12582+ let staticAssert: StaticAssert
12583+ let staticCast: StaticCast
12584+ let stdDeserializer: StdDeserializer
12585+ let stdSerializer: StdSerializer
12586+ let strictfp: Strictfp
12587+ let string: StringClass
12588+ let symbol: Symbol
12589+ let synchronized: Synchronized
12590+ let system: System
12591+ let template: Template
12592+ let then: Then
12593+ let this: This
12594+ let threadLocal: ThreadLocal
12595+ let timeOnly: TimeOnly
12596+ let timeOnlyConverter: TimeOnlyConverter
12597+ let timeZone: TimeZoneClass
12598+ let toDict: ToDict
12599+ let toJSON: ToJSON
12600+ let toString: ToString
12601+ let topLevel: TopLevelClass
12602+ let transient: Transient
12603+ let type: TypeClass
12604+ let typedef: Typedef
12605+ let typeid: Typeid
12606+ let typename: Typename
12607+ let typeof: Typeof
12608+ let uint: Uint
12609+ let ulong: Ulong
12610+ let unchecked: Unchecked
12611+ let undefined: Undefined
1242012612
1242112613 enum CodingKeys: String, CodingKey {
12614+ case dummy = "dummy"
12615+ case kSerializer = "KSerializer"
12616+ case obj5Self = "Self"
12617+ case obj5Set = "set"
12618+ case obj5Static = "static"
12619+ case obj5Struct = "struct"
12620+ case obj5Subscript = "subscript"
12621+ case obj5Super = "super"
12622+ case obj5Switch = "switch"
12623+ case obj5Throw = "throw"
12624+ case obj5Throws = "throws"
12625+ case obj5True = "True"
12626+ case obj5Try = "try"
12627+ case obj5Type = "type"
12628+ case obj5Typealias = "typealias"
12629+ case primitiveKind = "PrimitiveKind"
12630+ case purpleSelf = "self"
12631+ case purpleTrue = "true"
1242212632 case s = "s"
12633+ case sbyte = "sbyte"
12634+ case sealed = "sealed"
12635+ case sel = "SEL"
12636+ case select = "select"
12637+ case sendable = "Sendable"
12638+ case serialDescriptor = "SerialDescriptor"
12639+ case serialName = "SerialName"
12640+ case serializable = "Serializable"
12641+ case serialize = "serialize"
12642+ case serializerProvider = "SerializerProvider"
12643+ case short = "short"
12644+ case signed = "signed"
12645+ case simpleModule = "SimpleModule"
12646+ case sizeof = "sizeof"
12647+ case stackalloc = "stackalloc"
12648+ case standards = "Standards"
12649+ case staticAssert = "static_assert"
12650+ case staticCast = "static_cast"
12651+ case stdDeserializer = "StdDeserializer"
12652+ case stdSerializer = "StdSerializer"
12653+ case strictfp = "strictfp"
12654+ case string = "string"
12655+ case symbol = "symbol"
12656+ case synchronized = "synchronized"
12657+ case system = "system"
12658+ case template = "template"
12659+ case then = "then"
12660+ case this = "this"
12661+ case threadLocal = "thread_local"
12662+ case timeOnly = "TimeOnly"
12663+ case timeOnlyConverter = "TimeOnlyConverter"
12664+ case timeZone = "TimeZone"
12665+ case toDict = "to_dict"
12666+ case toJSON = "to_json"
12667+ case toString = "toString"
12668+ case topLevel = "top_level"
12669+ case transient = "transient"
12670+ case type = "Type"
12671+ case typedef = "typedef"
12672+ case typeid = "typeid"
12673+ case typename = "typename"
12674+ case typeof = "typeof"
12675+ case uint = "uint"
12676+ case ulong = "ulong"
12677+ case unchecked = "unchecked"
12678+ case undefined = "undefined"
1242312679 }
1242412680 }
1242512681
12426-// MARK: S convenience initializers and mutators
12682+// MARK: Obj5 convenience initializers and mutators
1242712683
12428-extension S {
12684+extension Obj5 {
1242912685 init(data: Data) throws {
12430- self = try newJSONDecoder().decode(S.self, from: data)
12431- }
12432-
12433- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12434- guard let data = json.data(using: encoding) else {
12435- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12436- }
12437- try self.init(data: data)
12438- }
12439-
12440- init(fromURL url: URL) throws {
12441- try self.init(data: try Data(contentsOf: url))
12442- }
12443-
12444- func with(
12445- s: Int? = nil
12446- ) -> S {
12447- return S(
12448- s: s ?? self.s
12449- )
12450- }
12451-
12452- func jsonData() throws -> Data {
12453- return try newJSONEncoder().encode(self)
12454- }
12455-
12456- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12457- return String(data: try self.jsonData(), encoding: encoding)
12458- }
12459-}
12460-
12461-// MARK: - Sbyte
12462-struct Sbyte: Codable, Sendable {
12463- let sbyte: Int
12464-
12465- enum CodingKeys: String, CodingKey {
12466- case sbyte = "sbyte"
12467- }
12468-}
12469-
12470-// MARK: Sbyte convenience initializers and mutators
12471-
12472-extension Sbyte {
12473- init(data: Data) throws {
12474- self = try newJSONDecoder().decode(Sbyte.self, from: data)
12475- }
12476-
12477- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12478- guard let data = json.data(using: encoding) else {
12479- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12480- }
12481- try self.init(data: data)
12482- }
12483-
12484- init(fromURL url: URL) throws {
12485- try self.init(data: try Data(contentsOf: url))
12486- }
12487-
12488- func with(
12489- sbyte: Int? = nil
12490- ) -> Sbyte {
12491- return Sbyte(
12492- sbyte: sbyte ?? self.sbyte
12493- )
12494- }
12495-
12496- func jsonData() throws -> Data {
12497- return try newJSONEncoder().encode(self)
12498- }
12499-
12500- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12501- return String(data: try self.jsonData(), encoding: encoding)
12502- }
12503-}
12504-
12505-// MARK: - Sealed
12506-struct Sealed: Codable, Sendable {
12507- let sealed: Int
12508-
12509- enum CodingKeys: String, CodingKey {
12510- case sealed = "sealed"
12511- }
12512-}
12513-
12514-// MARK: Sealed convenience initializers and mutators
12515-
12516-extension Sealed {
12517- init(data: Data) throws {
12518- self = try newJSONDecoder().decode(Sealed.self, from: data)
12519- }
12520-
12521- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12522- guard let data = json.data(using: encoding) else {
12523- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12524- }
12525- try self.init(data: data)
12526- }
12527-
12528- init(fromURL url: URL) throws {
12529- try self.init(data: try Data(contentsOf: url))
12530- }
12531-
12532- func with(
12533- sealed: Int? = nil
12534- ) -> Sealed {
12535- return Sealed(
12536- sealed: sealed ?? self.sealed
12537- )
12538- }
12539-
12540- func jsonData() throws -> Data {
12541- return try newJSONEncoder().encode(self)
12542- }
12543-
12544- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12545- return String(data: try self.jsonData(), encoding: encoding)
12546- }
12547-}
12548-
12549-// MARK: - Sel
12550-struct Sel: Codable, Sendable {
12551- let sel: Int
12552-
12553- enum CodingKeys: String, CodingKey {
12554- case sel = "SEL"
12555- }
12556-}
12557-
12558-// MARK: Sel convenience initializers and mutators
12559-
12560-extension Sel {
12561- init(data: Data) throws {
12562- self = try newJSONDecoder().decode(Sel.self, from: data)
12563- }
12564-
12565- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12566- guard let data = json.data(using: encoding) else {
12567- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12568- }
12569- try self.init(data: data)
12570- }
12571-
12572- init(fromURL url: URL) throws {
12573- try self.init(data: try Data(contentsOf: url))
12574- }
12575-
12576- func with(
12577- sel: Int? = nil
12578- ) -> Sel {
12579- return Sel(
12580- sel: sel ?? self.sel
12581- )
12582- }
12583-
12584- func jsonData() throws -> Data {
12585- return try newJSONEncoder().encode(self)
12586- }
12587-
12588- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12589- return String(data: try self.jsonData(), encoding: encoding)
12590- }
12591-}
12592-
12593-// MARK: - Obj5
12594-struct Obj5: Codable, Sendable {
12595- let dummy: Int
12596- let kSerializer: KSerializer
12597- let obj5Self: SelfClass
12598- let obj5Set: Set
12599- let obj5Static: Static
12600- let obj5Struct: Struct
12601- let obj5Subscript: Subscript
12602- let obj5Super: Super
12603- let obj5Switch: Switch
12604- let obj5Throw: Throw
12605- let obj5Throws: Throws
12606- let obj5True: True
12607- let obj5Try: Try
12608- let obj5Type: Obj5Type
12609- let obj5Typealias: Typealias
12610- let obj5Unowned: Unowned
12611- let primitiveKind: PrimitiveKind
12612- let purpleSelf: Obj5Self
12613- let purpleTrue: TrueClass
12614- let select: Select
12615- let sendable: SendableClass
12616- let serialDescriptor: SerialDescriptor
12617- let serialName: SerialName
12618- let serializable: Serializable
12619- let serialize: Serialize
12620- let serializerProvider: SerializerProvider
12621- let short: Short
12622- let signed: Signed
12623- let simpleModule: SimpleModule
12624- let sizeof: Sizeof
12625- let stackalloc: Stackalloc
12626- let standards: Standards
12627- let staticAssert: StaticAssert
12628- let staticCast: StaticCast
12629- let stdDeserializer: StdDeserializer
12630- let stdSerializer: StdSerializer
12631- let strictfp: Strictfp
12632- let string: StringClass
12633- let symbol: Symbol
12634- let synchronized: Synchronized
12635- let system: System
12636- let template: Template
12637- let then: Then
12638- let this: This
12639- let threadLocal: ThreadLocal
12640- let timeOnly: TimeOnly
12641- let timeOnlyConverter: TimeOnlyConverter
12642- let timeZone: TimeZoneClass
12643- let toDict: ToDict
12644- let toJSON: ToJSON
12645- let toString: ToString
12646- let topLevel: TopLevelClass
12647- let transient: Transient
12648- let type: TypeClass
12649- let typedef: Typedef
12650- let typeid: Typeid
12651- let typename: Typename
12652- let typeof: Typeof
12653- let uint: Uint
12654- let ulong: Ulong
12655- let unchecked: Unchecked
12656- let undefined: Undefined
12657- let union: Union
12658- let unmarshalJSON: UnmarshalJSON
12659- let unsafe: Unsafe
12660- let useSerializers: UseSerializers
12661-
12662- enum CodingKeys: String, CodingKey {
12663- case dummy = "dummy"
12664- case kSerializer = "KSerializer"
12665- case obj5Self = "Self"
12666- case obj5Set = "set"
12667- case obj5Static = "static"
12668- case obj5Struct = "struct"
12669- case obj5Subscript = "subscript"
12670- case obj5Super = "super"
12671- case obj5Switch = "switch"
12672- case obj5Throw = "throw"
12673- case obj5Throws = "throws"
12674- case obj5True = "True"
12675- case obj5Try = "try"
12676- case obj5Type = "type"
12677- case obj5Typealias = "typealias"
12678- case obj5Unowned = "unowned"
12679- case primitiveKind = "PrimitiveKind"
12680- case purpleSelf = "self"
12681- case purpleTrue = "true"
12682- case select = "select"
12683- case sendable = "Sendable"
12684- case serialDescriptor = "SerialDescriptor"
12685- case serialName = "SerialName"
12686- case serializable = "Serializable"
12687- case serialize = "serialize"
12688- case serializerProvider = "SerializerProvider"
12689- case short = "short"
12690- case signed = "signed"
12691- case simpleModule = "SimpleModule"
12692- case sizeof = "sizeof"
12693- case stackalloc = "stackalloc"
12694- case standards = "Standards"
12695- case staticAssert = "static_assert"
12696- case staticCast = "static_cast"
12697- case stdDeserializer = "StdDeserializer"
12698- case stdSerializer = "StdSerializer"
12699- case strictfp = "strictfp"
12700- case string = "string"
12701- case symbol = "symbol"
12702- case synchronized = "synchronized"
12703- case system = "system"
12704- case template = "template"
12705- case then = "then"
12706- case this = "this"
12707- case threadLocal = "thread_local"
12708- case timeOnly = "TimeOnly"
12709- case timeOnlyConverter = "TimeOnlyConverter"
12710- case timeZone = "TimeZone"
12711- case toDict = "to_dict"
12712- case toJSON = "to_json"
12713- case toString = "toString"
12714- case topLevel = "top_level"
12715- case transient = "transient"
12716- case type = "Type"
12717- case typedef = "typedef"
12718- case typeid = "typeid"
12719- case typename = "typename"
12720- case typeof = "typeof"
12721- case uint = "uint"
12722- case ulong = "ulong"
12723- case unchecked = "unchecked"
12724- case undefined = "undefined"
12725- case union = "union"
12726- case unmarshalJSON = "UnmarshalJSON"
12727- case unsafe = "unsafe"
12728- case useSerializers = "UseSerializers"
12729- }
12730-}
12731-
12732-// MARK: Obj5 convenience initializers and mutators
12733-
12734-extension Obj5 {
12735- init(data: Data) throws {
12736- self = try newJSONDecoder().decode(Obj5.self, from: data)
12686+ self = try newJSONDecoder().decode(Obj5.self, from: data)
1273712687 }
1273812688
1273912689 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12763,10 +12713,13 @@ extension Obj5 {
1276312713 obj5Try: Try? = nil,
1276412714 obj5Type: Obj5Type? = nil,
1276512715 obj5Typealias: Typealias? = nil,
12766- obj5Unowned: Unowned? = nil,
1276712716 primitiveKind: PrimitiveKind? = nil,
1276812717 purpleSelf: Obj5Self? = nil,
1276912718 purpleTrue: TrueClass? = nil,
12719+ s: S? = nil,
12720+ sbyte: Sbyte? = nil,
12721+ sealed: Sealed? = nil,
12722+ sel: Sel? = nil,
1277012723 select: Select? = nil,
1277112724 sendable: SendableClass? = nil,
1277212725 serialDescriptor: SerialDescriptor? = nil,
@@ -12809,11 +12762,7 @@ extension Obj5 {
1280912762 uint: Uint? = nil,
1281012763 ulong: Ulong? = nil,
1281112764 unchecked: Unchecked? = nil,
12812- undefined: Undefined? = nil,
12813- union: Union? = nil,
12814- unmarshalJSON: UnmarshalJSON? = nil,
12815- unsafe: Unsafe? = nil,
12816- useSerializers: UseSerializers? = nil
12765+ undefined: Undefined? = nil
1281712766 ) -> Obj5 {
1281812767 return Obj5(
1281912768 dummy: dummy ?? self.dummy,
@@ -12831,10 +12780,13 @@ extension Obj5 {
1283112780 obj5Try: obj5Try ?? self.obj5Try,
1283212781 obj5Type: obj5Type ?? self.obj5Type,
1283312782 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
12834- obj5Unowned: obj5Unowned ?? self.obj5Unowned,
1283512783 primitiveKind: primitiveKind ?? self.primitiveKind,
1283612784 purpleSelf: purpleSelf ?? self.purpleSelf,
1283712785 purpleTrue: purpleTrue ?? self.purpleTrue,
12786+ s: s ?? self.s,
12787+ sbyte: sbyte ?? self.sbyte,
12788+ sealed: sealed ?? self.sealed,
12789+ sel: sel ?? self.sel,
1283812790 select: select ?? self.select,
1283912791 sendable: sendable ?? self.sendable,
1284012792 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
@@ -12877,11 +12829,7 @@ extension Obj5 {
1287712829 uint: uint ?? self.uint,
1287812830 ulong: ulong ?? self.ulong,
1287912831 unchecked: unchecked ?? self.unchecked,
12880- undefined: undefined ?? self.undefined,
12881- union: union ?? self.union,
12882- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
12883- unsafe: unsafe ?? self.unsafe,
12884- useSerializers: useSerializers ?? self.useSerializers
12832+ undefined: undefined ?? self.undefined
1288512833 )
1288612834 }
1288712835
@@ -13510,20 +13458,152 @@ extension Typealias {
1351013458 }
1351113459 }
1351213460
13513-// MARK: - Unowned
13514-struct Unowned: Codable, Sendable {
13515- let unownedUnowned: Int
13461+// MARK: - PrimitiveKind
13462+struct PrimitiveKind: Codable, Sendable {
13463+ let primitiveKind: Int
1351613464
1351713465 enum CodingKeys: String, CodingKey {
13518- case unownedUnowned = "unowned"
13466+ case primitiveKind = "PrimitiveKind"
13467+ }
13468+}
13469+
13470+// MARK: PrimitiveKind convenience initializers and mutators
13471+
13472+extension PrimitiveKind {
13473+ init(data: Data) throws {
13474+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13475+ }
13476+
13477+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13478+ guard let data = json.data(using: encoding) else {
13479+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13480+ }
13481+ try self.init(data: data)
13482+ }
13483+
13484+ init(fromURL url: URL) throws {
13485+ try self.init(data: try Data(contentsOf: url))
13486+ }
13487+
13488+ func with(
13489+ primitiveKind: Int? = nil
13490+ ) -> PrimitiveKind {
13491+ return PrimitiveKind(
13492+ primitiveKind: primitiveKind ?? self.primitiveKind
13493+ )
13494+ }
13495+
13496+ func jsonData() throws -> Data {
13497+ return try newJSONEncoder().encode(self)
13498+ }
13499+
13500+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13501+ return String(data: try self.jsonData(), encoding: encoding)
13502+ }
13503+}
13504+
13505+// MARK: - Obj5Self
13506+struct Obj5Self: Codable, Sendable {
13507+ let selfSelf: Int
13508+
13509+ enum CodingKeys: String, CodingKey {
13510+ case selfSelf = "self"
13511+ }
13512+}
13513+
13514+// MARK: Obj5Self convenience initializers and mutators
13515+
13516+extension Obj5Self {
13517+ init(data: Data) throws {
13518+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13519+ }
13520+
13521+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13522+ guard let data = json.data(using: encoding) else {
13523+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13524+ }
13525+ try self.init(data: data)
13526+ }
13527+
13528+ init(fromURL url: URL) throws {
13529+ try self.init(data: try Data(contentsOf: url))
13530+ }
13531+
13532+ func with(
13533+ selfSelf: Int? = nil
13534+ ) -> Obj5Self {
13535+ return Obj5Self(
13536+ selfSelf: selfSelf ?? self.selfSelf
13537+ )
13538+ }
13539+
13540+ func jsonData() throws -> Data {
13541+ return try newJSONEncoder().encode(self)
13542+ }
13543+
13544+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13545+ return String(data: try self.jsonData(), encoding: encoding)
13546+ }
13547+}
13548+
13549+// MARK: - TrueClass
13550+struct TrueClass: Codable, Sendable {
13551+ let trueTrue: Int
13552+
13553+ enum CodingKeys: String, CodingKey {
13554+ case trueTrue = "true"
13555+ }
13556+}
13557+
13558+// MARK: TrueClass convenience initializers and mutators
13559+
13560+extension TrueClass {
13561+ init(data: Data) throws {
13562+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
13563+ }
13564+
13565+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13566+ guard let data = json.data(using: encoding) else {
13567+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13568+ }
13569+ try self.init(data: data)
13570+ }
13571+
13572+ init(fromURL url: URL) throws {
13573+ try self.init(data: try Data(contentsOf: url))
13574+ }
13575+
13576+ func with(
13577+ trueTrue: Int? = nil
13578+ ) -> TrueClass {
13579+ return TrueClass(
13580+ trueTrue: trueTrue ?? self.trueTrue
13581+ )
13582+ }
13583+
13584+ func jsonData() throws -> Data {
13585+ return try newJSONEncoder().encode(self)
13586+ }
13587+
13588+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13589+ return String(data: try self.jsonData(), encoding: encoding)
13590+ }
13591+}
13592+
13593+// MARK: - S
13594+struct S: Codable, Sendable {
13595+ let s: Int
13596+
13597+ enum CodingKeys: String, CodingKey {
13598+ case s = "s"
1351913599 }
1352013600 }
1352113601
13522-// MARK: Unowned convenience initializers and mutators
13602+// MARK: S convenience initializers and mutators
1352313603
13524-extension Unowned {
13604+extension S {
1352513605 init(data: Data) throws {
13526- self = try newJSONDecoder().decode(Unowned.self, from: data)
13606+ self = try newJSONDecoder().decode(S.self, from: data)
1352713607 }
1352813608
1352913609 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13538,10 +13618,10 @@ extension Unowned {
1353813618 }
1353913619
1354013620 func with(
13541- unownedUnowned: Int? = nil
13542- ) -> Unowned {
13543- return Unowned(
13544- unownedUnowned: unownedUnowned ?? self.unownedUnowned
13621+ s: Int? = nil
13622+ ) -> S {
13623+ return S(
13624+ s: s ?? self.s
1354513625 )
1354613626 }
1354713627
@@ -13554,20 +13634,20 @@ extension Unowned {
1355413634 }
1355513635 }
1355613636
13557-// MARK: - PrimitiveKind
13558-struct PrimitiveKind: Codable, Sendable {
13559- let primitiveKind: Int
13637+// MARK: - Sbyte
13638+struct Sbyte: Codable, Sendable {
13639+ let sbyte: Int
1356013640
1356113641 enum CodingKeys: String, CodingKey {
13562- case primitiveKind = "PrimitiveKind"
13642+ case sbyte = "sbyte"
1356313643 }
1356413644 }
1356513645
13566-// MARK: PrimitiveKind convenience initializers and mutators
13646+// MARK: Sbyte convenience initializers and mutators
1356713647
13568-extension PrimitiveKind {
13648+extension Sbyte {
1356913649 init(data: Data) throws {
13570- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13650+ self = try newJSONDecoder().decode(Sbyte.self, from: data)
1357113651 }
1357213652
1357313653 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13582,10 +13662,10 @@ extension PrimitiveKind {
1358213662 }
1358313663
1358413664 func with(
13585- primitiveKind: Int? = nil
13586- ) -> PrimitiveKind {
13587- return PrimitiveKind(
13588- primitiveKind: primitiveKind ?? self.primitiveKind
13665+ sbyte: Int? = nil
13666+ ) -> Sbyte {
13667+ return Sbyte(
13668+ sbyte: sbyte ?? self.sbyte
1358913669 )
1359013670 }
1359113671
@@ -13598,20 +13678,20 @@ extension PrimitiveKind {
1359813678 }
1359913679 }
1360013680
13601-// MARK: - Obj5Self
13602-struct Obj5Self: Codable, Sendable {
13603- let selfSelf: Int
13681+// MARK: - Sealed
13682+struct Sealed: Codable, Sendable {
13683+ let sealed: Int
1360413684
1360513685 enum CodingKeys: String, CodingKey {
13606- case selfSelf = "self"
13686+ case sealed = "sealed"
1360713687 }
1360813688 }
1360913689
13610-// MARK: Obj5Self convenience initializers and mutators
13690+// MARK: Sealed convenience initializers and mutators
1361113691
13612-extension Obj5Self {
13692+extension Sealed {
1361313693 init(data: Data) throws {
13614- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13694+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1361513695 }
1361613696
1361713697 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13626,10 +13706,10 @@ extension Obj5Self {
1362613706 }
1362713707
1362813708 func with(
13629- selfSelf: Int? = nil
13630- ) -> Obj5Self {
13631- return Obj5Self(
13632- selfSelf: selfSelf ?? self.selfSelf
13709+ sealed: Int? = nil
13710+ ) -> Sealed {
13711+ return Sealed(
13712+ sealed: sealed ?? self.sealed
1363313713 )
1363413714 }
1363513715
@@ -13642,20 +13722,20 @@ extension Obj5Self {
1364213722 }
1364313723 }
1364413724
13645-// MARK: - TrueClass
13646-struct TrueClass: Codable, Sendable {
13647- let trueTrue: Int
13725+// MARK: - Sel
13726+struct Sel: Codable, Sendable {
13727+ let sel: Int
1364813728
1364913729 enum CodingKeys: String, CodingKey {
13650- case trueTrue = "true"
13730+ case sel = "SEL"
1365113731 }
1365213732 }
1365313733
13654-// MARK: TrueClass convenience initializers and mutators
13734+// MARK: Sel convenience initializers and mutators
1365513735
13656-extension TrueClass {
13736+extension Sel {
1365713737 init(data: Data) throws {
13658- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13738+ self = try newJSONDecoder().decode(Sel.self, from: data)
1365913739 }
1366013740
1366113741 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13670,10 +13750,10 @@ extension TrueClass {
1367013750 }
1367113751
1367213752 func with(
13673- trueTrue: Int? = nil
13674- ) -> TrueClass {
13675- return TrueClass(
13676- trueTrue: trueTrue ?? self.trueTrue
13753+ sel: Int? = nil
13754+ ) -> Sel {
13755+ return Sel(
13756+ sel: sel ?? self.sel
1367713757 )
1367813758 }
1367913759
@@ -15534,196 +15614,20 @@ extension Unchecked {
1553415614 }
1553515615 }
1553615616
15537-// MARK: - Undefined
15538-struct Undefined: Codable, Sendable {
15539- let undefined: Int
15540-
15541- enum CodingKeys: String, CodingKey {
15542- case undefined = "undefined"
15543- }
15544-}
15545-
15546-// MARK: Undefined convenience initializers and mutators
15547-
15548-extension Undefined {
15549- init(data: Data) throws {
15550- self = try newJSONDecoder().decode(Undefined.self, from: data)
15551- }
15552-
15553- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15554- guard let data = json.data(using: encoding) else {
15555- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15556- }
15557- try self.init(data: data)
15558- }
15559-
15560- init(fromURL url: URL) throws {
15561- try self.init(data: try Data(contentsOf: url))
15562- }
15563-
15564- func with(
15565- undefined: Int? = nil
15566- ) -> Undefined {
15567- return Undefined(
15568- undefined: undefined ?? self.undefined
15569- )
15570- }
15571-
15572- func jsonData() throws -> Data {
15573- return try newJSONEncoder().encode(self)
15574- }
15575-
15576- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15577- return String(data: try self.jsonData(), encoding: encoding)
15578- }
15579-}
15580-
15581-// MARK: - Union
15582-struct Union: Codable, Sendable {
15583- let union: Int
15584-
15585- enum CodingKeys: String, CodingKey {
15586- case union = "union"
15587- }
15588-}
15589-
15590-// MARK: Union convenience initializers and mutators
15591-
15592-extension Union {
15593- init(data: Data) throws {
15594- self = try newJSONDecoder().decode(Union.self, from: data)
15595- }
15596-
15597- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15598- guard let data = json.data(using: encoding) else {
15599- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15600- }
15601- try self.init(data: data)
15602- }
15603-
15604- init(fromURL url: URL) throws {
15605- try self.init(data: try Data(contentsOf: url))
15606- }
15607-
15608- func with(
15609- union: Int? = nil
15610- ) -> Union {
15611- return Union(
15612- union: union ?? self.union
15613- )
15614- }
15615-
15616- func jsonData() throws -> Data {
15617- return try newJSONEncoder().encode(self)
15618- }
15619-
15620- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15621- return String(data: try self.jsonData(), encoding: encoding)
15622- }
15623-}
15624-
15625-// MARK: - UnmarshalJSON
15626-struct UnmarshalJSON: Codable, Sendable {
15627- let unmarshalJSON: Int
15628-
15629- enum CodingKeys: String, CodingKey {
15630- case unmarshalJSON = "UnmarshalJSON"
15631- }
15632-}
15633-
15634-// MARK: UnmarshalJSON convenience initializers and mutators
15635-
15636-extension UnmarshalJSON {
15637- init(data: Data) throws {
15638- self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
15639- }
15640-
15641- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15642- guard let data = json.data(using: encoding) else {
15643- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15644- }
15645- try self.init(data: data)
15646- }
15647-
15648- init(fromURL url: URL) throws {
15649- try self.init(data: try Data(contentsOf: url))
15650- }
15651-
15652- func with(
15653- unmarshalJSON: Int? = nil
15654- ) -> UnmarshalJSON {
15655- return UnmarshalJSON(
15656- unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
15657- )
15658- }
15659-
15660- func jsonData() throws -> Data {
15661- return try newJSONEncoder().encode(self)
15662- }
15663-
15664- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15665- return String(data: try self.jsonData(), encoding: encoding)
15666- }
15667-}
15668-
15669-// MARK: - Unsafe
15670-struct Unsafe: Codable, Sendable {
15671- let unsafe: Int
15672-
15673- enum CodingKeys: String, CodingKey {
15674- case unsafe = "unsafe"
15675- }
15676-}
15677-
15678-// MARK: Unsafe convenience initializers and mutators
15679-
15680-extension Unsafe {
15681- init(data: Data) throws {
15682- self = try newJSONDecoder().decode(Unsafe.self, from: data)
15683- }
15684-
15685- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15686- guard let data = json.data(using: encoding) else {
15687- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15688- }
15689- try self.init(data: data)
15690- }
15691-
15692- init(fromURL url: URL) throws {
15693- try self.init(data: try Data(contentsOf: url))
15694- }
15695-
15696- func with(
15697- unsafe: Int? = nil
15698- ) -> Unsafe {
15699- return Unsafe(
15700- unsafe: unsafe ?? self.unsafe
15701- )
15702- }
15703-
15704- func jsonData() throws -> Data {
15705- return try newJSONEncoder().encode(self)
15706- }
15707-
15708- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15709- return String(data: try self.jsonData(), encoding: encoding)
15710- }
15711-}
15712-
15713-// MARK: - UseSerializers
15714-struct UseSerializers: Codable, Sendable {
15715- let useSerializers: Int
15617+// MARK: - Undefined
15618+struct Undefined: Codable, Sendable {
15619+ let undefined: Int
1571615620
1571715621 enum CodingKeys: String, CodingKey {
15718- case useSerializers = "UseSerializers"
15622+ case undefined = "undefined"
1571915623 }
1572015624 }
1572115625
15722-// MARK: UseSerializers convenience initializers and mutators
15626+// MARK: Undefined convenience initializers and mutators
1572315627
15724-extension UseSerializers {
15628+extension Undefined {
1572515629 init(data: Data) throws {
15726- self = try newJSONDecoder().decode(UseSerializers.self, from: data)
15630+ self = try newJSONDecoder().decode(Undefined.self, from: data)
1572715631 }
1572815632
1572915633 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15738,10 +15642,10 @@ extension UseSerializers {
1573815642 }
1573915643
1574015644 func with(
15741- useSerializers: Int? = nil
15742- ) -> UseSerializers {
15743- return UseSerializers(
15744- useSerializers: useSerializers ?? self.useSerializers
15645+ undefined: Int? = nil
15646+ ) -> Undefined {
15647+ return Undefined(
15648+ undefined: undefined ?? self.undefined
1574515649 )
1574615650 }
1574715651
@@ -15757,12 +15661,17 @@ extension UseSerializers {
1575715661 // MARK: - Obj6
1575815662 struct Obj6: Codable, Sendable {
1575915663 let dummy: Int
15664+ let obj6Unowned: Unowned
1576015665 let obj6Var: Var
1576115666 let obj6Weak: Weak
1576215667 let obj6Where: Where
1576315668 let obj6While: While
1576415669 let obj6WillSet: WillSet
15670+ let union: Union
15671+ let unmarshalJSON: UnmarshalJSON
15672+ let unsafe: Unsafe
1576515673 let unsigned: Unsigned
15674+ let useSerializers: UseSerializers
1576615675 let ushort: Ushort
1576715676 let using: Using
1576815677 let utf8JSONReader: Utf8JSONReader
@@ -15780,12 +15689,17 @@ struct Obj6: Codable, Sendable {
1578015689
1578115690 enum CodingKeys: String, CodingKey {
1578215691 case dummy = "dummy"
15692+ case obj6Unowned = "unowned"
1578315693 case obj6Var = "var"
1578415694 case obj6Weak = "weak"
1578515695 case obj6Where = "where"
1578615696 case obj6While = "while"
1578715697 case obj6WillSet = "willSet"
15698+ case union = "union"
15699+ case unmarshalJSON = "UnmarshalJSON"
15700+ case unsafe = "unsafe"
1578815701 case unsigned = "unsigned"
15702+ case useSerializers = "UseSerializers"
1578915703 case ushort = "ushort"
1579015704 case using = "using"
1579115705 case utf8JSONReader = "Utf8JsonReader"
@@ -15823,12 +15737,17 @@ extension Obj6 {
1582315737
1582415738 func with(
1582515739 dummy: Int? = nil,
15740+ obj6Unowned: Unowned? = nil,
1582615741 obj6Var: Var? = nil,
1582715742 obj6Weak: Weak? = nil,
1582815743 obj6Where: Where? = nil,
1582915744 obj6While: While? = nil,
1583015745 obj6WillSet: WillSet? = nil,
15746+ union: Union? = nil,
15747+ unmarshalJSON: UnmarshalJSON? = nil,
15748+ unsafe: Unsafe? = nil,
1583115749 unsigned: Unsigned? = nil,
15750+ useSerializers: UseSerializers? = nil,
1583215751 ushort: Ushort? = nil,
1583315752 using: Using? = nil,
1583415753 utf8JSONReader: Utf8JSONReader? = nil,
@@ -15846,12 +15765,17 @@ extension Obj6 {
1584615765 ) -> Obj6 {
1584715766 return Obj6(
1584815767 dummy: dummy ?? self.dummy,
15768+ obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1584915769 obj6Var: obj6Var ?? self.obj6Var,
1585015770 obj6Weak: obj6Weak ?? self.obj6Weak,
1585115771 obj6Where: obj6Where ?? self.obj6Where,
1585215772 obj6While: obj6While ?? self.obj6While,
1585315773 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15774+ union: union ?? self.union,
15775+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON,
15776+ unsafe: unsafe ?? self.unsafe,
1585415777 unsigned: unsigned ?? self.unsigned,
15778+ useSerializers: useSerializers ?? self.useSerializers,
1585515779 ushort: ushort ?? self.ushort,
1585615780 using: using ?? self.using,
1585715781 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
@@ -15878,6 +15802,50 @@ extension Obj6 {
1587815802 }
1587915803 }
1588015804
15805+// MARK: - Unowned
15806+struct Unowned: Codable, Sendable {
15807+ let unownedUnowned: Int
15808+
15809+ enum CodingKeys: String, CodingKey {
15810+ case unownedUnowned = "unowned"
15811+ }
15812+}
15813+
15814+// MARK: Unowned convenience initializers and mutators
15815+
15816+extension Unowned {
15817+ init(data: Data) throws {
15818+ self = try newJSONDecoder().decode(Unowned.self, from: data)
15819+ }
15820+
15821+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15822+ guard let data = json.data(using: encoding) else {
15823+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15824+ }
15825+ try self.init(data: data)
15826+ }
15827+
15828+ init(fromURL url: URL) throws {
15829+ try self.init(data: try Data(contentsOf: url))
15830+ }
15831+
15832+ func with(
15833+ unownedUnowned: Int? = nil
15834+ ) -> Unowned {
15835+ return Unowned(
15836+ unownedUnowned: unownedUnowned ?? self.unownedUnowned
15837+ )
15838+ }
15839+
15840+ func jsonData() throws -> Data {
15841+ return try newJSONEncoder().encode(self)
15842+ }
15843+
15844+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15845+ return String(data: try self.jsonData(), encoding: encoding)
15846+ }
15847+}
15848+
1588115849 // MARK: - Var
1588215850 struct Var: Codable, Sendable {
1588315851 let varVar: Int
@@ -16098,6 +16066,138 @@ extension WillSet {
1609816066 }
1609916067 }
1610016068
16069+// MARK: - Union
16070+struct Union: Codable, Sendable {
16071+ let union: Int
16072+
16073+ enum CodingKeys: String, CodingKey {
16074+ case union = "union"
16075+ }
16076+}
16077+
16078+// MARK: Union convenience initializers and mutators
16079+
16080+extension Union {
16081+ init(data: Data) throws {
16082+ self = try newJSONDecoder().decode(Union.self, from: data)
16083+ }
16084+
16085+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16086+ guard let data = json.data(using: encoding) else {
16087+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16088+ }
16089+ try self.init(data: data)
16090+ }
16091+
16092+ init(fromURL url: URL) throws {
16093+ try self.init(data: try Data(contentsOf: url))
16094+ }
16095+
16096+ func with(
16097+ union: Int? = nil
16098+ ) -> Union {
16099+ return Union(
16100+ union: union ?? self.union
16101+ )
16102+ }
16103+
16104+ func jsonData() throws -> Data {
16105+ return try newJSONEncoder().encode(self)
16106+ }
16107+
16108+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16109+ return String(data: try self.jsonData(), encoding: encoding)
16110+ }
16111+}
16112+
16113+// MARK: - UnmarshalJSON
16114+struct UnmarshalJSON: Codable, Sendable {
16115+ let unmarshalJSON: Int
16116+
16117+ enum CodingKeys: String, CodingKey {
16118+ case unmarshalJSON = "UnmarshalJSON"
16119+ }
16120+}
16121+
16122+// MARK: UnmarshalJSON convenience initializers and mutators
16123+
16124+extension UnmarshalJSON {
16125+ init(data: Data) throws {
16126+ self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data)
16127+ }
16128+
16129+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16130+ guard let data = json.data(using: encoding) else {
16131+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16132+ }
16133+ try self.init(data: data)
16134+ }
16135+
16136+ init(fromURL url: URL) throws {
16137+ try self.init(data: try Data(contentsOf: url))
16138+ }
16139+
16140+ func with(
16141+ unmarshalJSON: Int? = nil
16142+ ) -> UnmarshalJSON {
16143+ return UnmarshalJSON(
16144+ unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON
16145+ )
16146+ }
16147+
16148+ func jsonData() throws -> Data {
16149+ return try newJSONEncoder().encode(self)
16150+ }
16151+
16152+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16153+ return String(data: try self.jsonData(), encoding: encoding)
16154+ }
16155+}
16156+
16157+// MARK: - Unsafe
16158+struct Unsafe: Codable, Sendable {
16159+ let unsafe: Int
16160+
16161+ enum CodingKeys: String, CodingKey {
16162+ case unsafe = "unsafe"
16163+ }
16164+}
16165+
16166+// MARK: Unsafe convenience initializers and mutators
16167+
16168+extension Unsafe {
16169+ init(data: Data) throws {
16170+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
16171+ }
16172+
16173+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16174+ guard let data = json.data(using: encoding) else {
16175+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16176+ }
16177+ try self.init(data: data)
16178+ }
16179+
16180+ init(fromURL url: URL) throws {
16181+ try self.init(data: try Data(contentsOf: url))
16182+ }
16183+
16184+ func with(
16185+ unsafe: Int? = nil
16186+ ) -> Unsafe {
16187+ return Unsafe(
16188+ unsafe: unsafe ?? self.unsafe
16189+ )
16190+ }
16191+
16192+ func jsonData() throws -> Data {
16193+ return try newJSONEncoder().encode(self)
16194+ }
16195+
16196+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16197+ return String(data: try self.jsonData(), encoding: encoding)
16198+ }
16199+}
16200+
1610116201 // MARK: - Unsigned
1610216202 struct Unsigned: Codable, Sendable {
1610316203 let unsigned: Int
@@ -16142,6 +16242,50 @@ extension Unsigned {
1614216242 }
1614316243 }
1614416244
16245+// MARK: - UseSerializers
16246+struct UseSerializers: Codable, Sendable {
16247+ let useSerializers: Int
16248+
16249+ enum CodingKeys: String, CodingKey {
16250+ case useSerializers = "UseSerializers"
16251+ }
16252+}
16253+
16254+// MARK: UseSerializers convenience initializers and mutators
16255+
16256+extension UseSerializers {
16257+ init(data: Data) throws {
16258+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
16259+ }
16260+
16261+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16262+ guard let data = json.data(using: encoding) else {
16263+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16264+ }
16265+ try self.init(data: data)
16266+ }
16267+
16268+ init(fromURL url: URL) throws {
16269+ try self.init(data: try Data(contentsOf: url))
16270+ }
16271+
16272+ func with(
16273+ useSerializers: Int? = nil
16274+ ) -> UseSerializers {
16275+ return UseSerializers(
16276+ useSerializers: useSerializers ?? self.useSerializers
16277+ )
16278+ }
16279+
16280+ func jsonData() throws -> Data {
16281+ return try newJSONEncoder().encode(self)
16282+ }
16283+
16284+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16285+ return String(data: try self.jsonData(), encoding: encoding)
16286+ }
16287+}
16288+
1614516289 // MARK: - Ushort
1614616290 struct Ushort: Codable, Sendable {
1614716291 let ushort: Int
Mtypescript-effect-schemadefault / TopLevel.ts+70 −55
@@ -83,13 +83,38 @@ export class Ushort extends S.Class<Ushort>("Ushort")({
8383 "ushort": S.Int,
8484 }) {}
8585
86+export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({
87+ "UseSerializers": S.Int,
88+}) {}
89+
8690 export class Unsigned extends S.Class<Unsigned>("Unsigned")({
8791 "unsigned": S.Int,
8892 }) {}
8993
94+export class Unsafe extends S.Class<Unsafe>("Unsafe")({
95+ "unsafe": S.Int,
96+}) {}
97+
98+export class Unowned extends S.Class<Unowned>("Unowned")({
99+ "unowned": S.Int,
100+}) {}
101+
102+export class UnmarshalJson extends S.Class<UnmarshalJson>("UnmarshalJson")({
103+ "UnmarshalJSON": S.Int,
104+}) {}
105+
106+export class Union extends S.Class<Union>("Union")({
107+ "union": S.Int,
108+}) {}
109+
90110 export class Obj6 extends S.Class<Obj6>("Obj6")({
91111 "dummy": S.Int,
112+ "union": Union,
113+ "UnmarshalJSON": UnmarshalJson,
114+ "unowned": Unowned,
115+ "unsafe": Unsafe,
92116 "unsigned": Unsigned,
117+ "UseSerializers": UseSerializers,
93118 "ushort": Ushort,
94119 "using": Using,
95120 "Utf8JsonReader": Utf8JsonReader,
@@ -111,26 +136,6 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
111136 "yield": Yield,
112137 }) {}
113138
114-export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({
115- "UseSerializers": S.Int,
116-}) {}
117-
118-export class Unsafe extends S.Class<Unsafe>("Unsafe")({
119- "unsafe": S.Int,
120-}) {}
121-
122-export class Unowned extends S.Class<Unowned>("Unowned")({
123- "unowned": S.Int,
124-}) {}
125-
126-export class UnmarshalJson extends S.Class<UnmarshalJson>("UnmarshalJson")({
127- "UnmarshalJSON": S.Int,
128-}) {}
129-
130-export class Union extends S.Class<Union>("Union")({
131- "union": S.Int,
132-}) {}
133-
134139 export class Undefined extends S.Class<Undefined>("Undefined")({
135140 "undefined": S.Int,
136141 }) {}
@@ -352,6 +357,22 @@ export class Select extends S.Class<Select>("Select")({
352357 "select": S.Int,
353358 }) {}
354359
360+export class Sel extends S.Class<Sel>("Sel")({
361+ "SEL": S.Int,
362+}) {}
363+
364+export class Sealed extends S.Class<Sealed>("Sealed")({
365+ "sealed": S.Int,
366+}) {}
367+
368+export class Sbyte extends S.Class<Sbyte>("Sbyte")({
369+ "sbyte": S.Int,
370+}) {}
371+
372+export class SClass extends S.Class<SClass>("SClass")({
373+ "s": S.Int,
374+}) {}
375+
355376 export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
356377 "PrimitiveKind": S.Int,
357378 }) {}
@@ -379,6 +400,10 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
379400 "true": TrueClass,
380401 "type": TypeClass,
381402 "PrimitiveKind": PrimitiveKind,
403+ "s": SClass,
404+ "sbyte": Sbyte,
405+ "sealed": Sealed,
406+ "SEL": Sel,
382407 "select": Select,
383408 "Self": Self,
384409 "Sendable": Sendable,
@@ -434,30 +459,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
434459 "ulong": Ulong,
435460 "unchecked": Unchecked,
436461 "undefined": Undefined,
437- "union": Union,
438- "UnmarshalJSON": UnmarshalJson,
439- "unowned": Unowned,
440- "unsafe": Unsafe,
441- "UseSerializers": UseSerializers,
442462 }) {}
443463 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
444464
445-export class Sel extends S.Class<Sel>("Sel")({
446- "SEL": S.Int,
447-}) {}
448-
449-export class Sealed extends S.Class<Sealed>("Sealed")({
450- "sealed": S.Int,
451-}) {}
452-
453-export class Sbyte extends S.Class<Sbyte>("Sbyte")({
454- "sbyte": S.Int,
455-}) {}
456-
457-export class SClass extends S.Class<SClass>("SClass")({
458- "s": S.Int,
459-}) {}
460-
461465 export class RuntimeType extends S.Class<RuntimeType>("RuntimeType")({
462466 "runtimeType": S.Int,
463467 }) {}
@@ -618,6 +622,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({
618622 "oneway": S.Int,
619623 }) {}
620624
625+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({
626+ "OffsetTime": S.Int,
627+}) {}
628+
629+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({
630+ "OffsetDateTime": S.Int,
631+}) {}
632+
621633 export class Of extends S.Class<Of>("Of")({
622634 "of": S.Int,
623635 }) {}
@@ -698,8 +710,18 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
698710 "noSuchMethod": S.Int,
699711 }) {}
700712
713+export class No extends S.Class<No>("No")({
714+ "NO": S.Int,
715+}) {}
716+
717+export class Nil extends S.Class<Nil>("Nil")({
718+ "nil": S.Int,
719+}) {}
720+
701721 export class Obj4 extends S.Class<Obj4>("Obj4")({
702722 "dummy": S.Int,
723+ "nil": Nil,
724+ "NO": No,
703725 "noSuchMethod": NoSuchMethod,
704726 "noexcept": Noexcept,
705727 "nonatomic": Nonatomic,
@@ -720,6 +742,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
720742 "object": ObjectClass,
721743 "ObjectMapper": ObjectMapper,
722744 "of": Of,
745+ "OffsetDateTime": OffsetDateTime,
746+ "OffsetTime": OffsetTime,
723747 "oneway": Oneway,
724748 "open": Open,
725749 "operator": Operator,
@@ -760,18 +784,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
760784 "return": Return,
761785 "right": Right,
762786 "runtimeType": RuntimeType,
763- "s": SClass,
764- "sbyte": Sbyte,
765- "sealed": Sealed,
766- "SEL": Sel,
767-}) {}
768-
769-export class No extends S.Class<No>("No")({
770- "NO": S.Int,
771-}) {}
772-
773-export class Nil extends S.Class<Nil>("Nil")({
774- "nil": S.Int,
775787 }) {}
776788
777789 export class Newtonsoft extends S.Class<Newtonsoft>("Newtonsoft")({
@@ -830,6 +842,10 @@ export class Locale extends S.Class<Locale>("Locale")({
830842 "Locale": S.Int,
831843 }) {}
832844
845+export class LocalDate extends S.Class<LocalDate>("LocalDate")({
846+ "LocalDate": S.Int,
847+}) {}
848+
833849 export class List extends S.Class<List>("List")({
834850 "list": S.Int,
835851 }) {}
@@ -1077,6 +1093,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10771093 "left": Left,
10781094 "let": Let,
10791095 "list": List,
1096+ "LocalDate": LocalDate,
10801097 "Locale": Locale,
10811098 "lock": Lock,
10821099 "long": Long,
@@ -1091,8 +1108,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10911108 "native": Native,
10921109 "new": New,
10931110 "newtonsoft": Newtonsoft,
1094- "nil": Nil,
1095- "NO": No,
10961111 }) {}
10971112
10981113 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
Mtypescript-zoddefault / TopLevel.ts+54 −36
@@ -892,6 +892,11 @@ export const ListSchema = z.object({
892892 });
893893 export type List = z.infer<typeof ListSchema>;
894894
895+export const LocalDateSchema = z.object({
896+ "LocalDate": z.number().int(),
897+});
898+export type LocalDate = z.infer<typeof LocalDateSchema>;
899+
895900 export const LocaleSchema = z.object({
896901 "Locale": z.number().int(),
897902 });
@@ -1072,6 +1077,16 @@ export const OfSchema = z.object({
10721077 });
10731078 export type Of = z.infer<typeof OfSchema>;
10741079
1080+export const OffsetDateTimeSchema = z.object({
1081+ "OffsetDateTime": z.number().int(),
1082+});
1083+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
1084+
1085+export const OffsetTimeSchema = z.object({
1086+ "OffsetTime": z.number().int(),
1087+});
1088+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
1089+
10751090 export const OnewaySchema = z.object({
10761091 "oneway": z.number().int(),
10771092 });
@@ -1272,26 +1287,6 @@ export const RuntimeTypeSchema = z.object({
12721287 });
12731288 export type RuntimeType = z.infer<typeof RuntimeTypeSchema>;
12741289
1275-export const SSchema = z.object({
1276- "s": z.number().int(),
1277-});
1278-export type S = z.infer<typeof SSchema>;
1279-
1280-export const SbyteSchema = z.object({
1281- "sbyte": z.number().int(),
1282-});
1283-export type Sbyte = z.infer<typeof SbyteSchema>;
1284-
1285-export const SealedSchema = z.object({
1286- "sealed": z.number().int(),
1287-});
1288-export type Sealed = z.infer<typeof SealedSchema>;
1289-
1290-export const SelSchema = z.object({
1291- "SEL": z.number().int(),
1292-});
1293-export type Sel = z.infer<typeof SelSchema>;
1294-
12951290 export const KSerializerSchema = z.object({
12961291 "KSerializer": z.number().int(),
12971292 });
@@ -1317,6 +1312,26 @@ export const PrimitiveKindSchema = z.object({
13171312 });
13181313 export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
13191314
1315+export const SSchema = z.object({
1316+ "s": z.number().int(),
1317+});
1318+export type S = z.infer<typeof SSchema>;
1319+
1320+export const SbyteSchema = z.object({
1321+ "sbyte": z.number().int(),
1322+});
1323+export type Sbyte = z.infer<typeof SbyteSchema>;
1324+
1325+export const SealedSchema = z.object({
1326+ "sealed": z.number().int(),
1327+});
1328+export type Sealed = z.infer<typeof SealedSchema>;
1329+
1330+export const SelSchema = z.object({
1331+ "SEL": z.number().int(),
1332+});
1333+export type Sel = z.infer<typeof SelSchema>;
1334+
13201335 export const SelectSchema = z.object({
13211336 "select": z.number().int(),
13221337 });
@@ -1612,16 +1627,16 @@ export const UnsafeSchema = z.object({
16121627 });
16131628 export type Unsafe = z.infer<typeof UnsafeSchema>;
16141629
1615-export const UseSerializersSchema = z.object({
1616- "UseSerializers": z.number().int(),
1617-});
1618-export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1619-
16201630 export const UnsignedSchema = z.object({
16211631 "unsigned": z.number().int(),
16221632 });
16231633 export type Unsigned = z.infer<typeof UnsignedSchema>;
16241634
1635+export const UseSerializersSchema = z.object({
1636+ "UseSerializers": z.number().int(),
1637+});
1638+export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1639+
16251640 export const UshortSchema = z.object({
16261641 "ushort": z.number().int(),
16271642 });
@@ -1906,6 +1921,7 @@ export const Obj3Schema = z.object({
19061921 "left": LeftSchema,
19071922 "let": LetSchema,
19081923 "list": ListSchema,
1924+ "LocalDate": LocalDateSchema,
19091925 "Locale": LocaleSchema,
19101926 "lock": LockSchema,
19111927 "long": LongSchema,
@@ -1920,13 +1936,13 @@ export const Obj3Schema = z.object({
19201936 "native": NativeSchema,
19211937 "new": NewSchema,
19221938 "newtonsoft": NewtonsoftSchema,
1923- "nil": NilSchema,
1924- "NO": NoSchema,
19251939 });
19261940 export type Obj3 = z.infer<typeof Obj3Schema>;
19271941
19281942 export const Obj4Schema = z.object({
19291943 "dummy": z.number().int(),
1944+ "nil": NilSchema,
1945+ "NO": NoSchema,
19301946 "noSuchMethod": NoSuchMethodSchema,
19311947 "noexcept": NoexceptSchema,
19321948 "nonatomic": NonatomicSchema,
@@ -1947,6 +1963,8 @@ export const Obj4Schema = z.object({
19471963 "object": ObjectClassSchema,
19481964 "ObjectMapper": ObjectMapperSchema,
19491965 "of": OfSchema,
1966+ "OffsetDateTime": OffsetDateTimeSchema,
1967+ "OffsetTime": OffsetTimeSchema,
19501968 "oneway": OnewaySchema,
19511969 "open": OpenSchema,
19521970 "operator": OperatorSchema,
@@ -1987,10 +2005,6 @@ export const Obj4Schema = z.object({
19872005 "return": ReturnSchema,
19882006 "right": RightSchema,
19892007 "runtimeType": RuntimeTypeSchema,
1990- "s": SSchema,
1991- "sbyte": SbyteSchema,
1992- "sealed": SealedSchema,
1993- "SEL": SelSchema,
19942008 });
19952009 export type Obj4 = z.infer<typeof Obj4Schema>;
19962010
@@ -2001,6 +2015,10 @@ export const Obj5Schema = z.object({
20012015 "true": TrueClassSchema,
20022016 "type": TypeClassSchema,
20032017 "PrimitiveKind": PrimitiveKindSchema,
2018+ "s": SSchema,
2019+ "sbyte": SbyteSchema,
2020+ "sealed": SealedSchema,
2021+ "SEL": SelSchema,
20042022 "select": SelectSchema,
20052023 "Self": SelfSchema,
20062024 "Sendable": SendableSchema,
@@ -2056,17 +2074,17 @@ export const Obj5Schema = z.object({
20562074 "ulong": UlongSchema,
20572075 "unchecked": UncheckedSchema,
20582076 "undefined": UndefinedSchema,
2059- "union": UnionSchema,
2060- "UnmarshalJSON": UnmarshalJsonSchema,
2061- "unowned": UnownedSchema,
2062- "unsafe": UnsafeSchema,
2063- "UseSerializers": UseSerializersSchema,
20642077 });
20652078 export type Obj5 = z.infer<typeof Obj5Schema>;
20662079
20672080 export const Obj6Schema = z.object({
20682081 "dummy": z.number().int(),
2082+ "union": UnionSchema,
2083+ "UnmarshalJSON": UnmarshalJsonSchema,
2084+ "unowned": UnownedSchema,
2085+ "unsafe": UnsafeSchema,
20692086 "unsigned": UnsignedSchema,
2087+ "UseSerializers": UseSerializersSchema,
20702088 "ushort": UshortSchema,
20712089 "using": UsingSchema,
20722090 "Utf8JsonReader": Utf8JsonReaderSchema,
Mtypescriptdefault / TopLevel.ts+117 −90
@@ -683,10 +683,10 @@ export interface Obj3 {
683683 JsonParser: JSONParser;
684684 JsonReader: JSONReader;
685685 JsonTokenType: JSONTokenType;
686+ LocalDate: LocalDate;
686687 Locale: Locale;
687688 MapEntry: MapEntry;
688689 MarshalJSON: MarshalJSON;
689- NO: No;
690690 dummy: number;
691691 goto: Goto;
692692 guard: Guard;
@@ -733,7 +733,6 @@ export interface Obj3 {
733733 native: Native;
734734 new: New;
735735 newtonsoft: Newtonsoft;
736- nil: Nil;
737736 }
738737
739738 export interface Hashable {
@@ -796,6 +795,10 @@ export interface JSONTokenType {
796795 JsonTokenType: number;
797796 }
798797
798+export interface LocalDate {
799+ LocalDate: number;
800+}
801+
799802 export interface Locale {
800803 Locale: number;
801804 }
@@ -808,10 +811,6 @@ export interface MarshalJSON {
808811 MarshalJSON: number;
809812 }
810813
811-export interface No {
812- NO: number;
813-}
814-
815814 export interface Goto {
816815 goto: number;
817816 }
@@ -992,21 +991,20 @@ export interface Newtonsoft {
992991 newtonsoft: number;
993992 }
994993
995-export interface Nil {
996- nil: number;
997-}
998-
999994 export interface Obj4 {
995+ NO: No;
1000996 NSError: NSError;
1001997 NSObject: NSObject;
1002998 NSString: NSString;
1003999 NULL: Null;
10041000 None: None;
10051001 ObjectMapper: ObjectMapper;
1002+ OffsetDateTime: OffsetDateTime;
1003+ OffsetTime: OffsetTime;
10061004 Protocol: Protocol;
10071005 RegExp: RegExp;
1008- SEL: Sel;
10091006 dummy: number;
1007+ nil: Nil;
10101008 noSuchMethod: NoSuchMethod;
10111009 noexcept: Noexcept;
10121010 nonatomic: Nonatomic;
@@ -1059,9 +1057,10 @@ export interface Obj4 {
10591057 return: Return;
10601058 right: Right;
10611059 runtimeType: RuntimeType;
1062- s: S;
1063- sbyte: Sbyte;
1064- sealed: Sealed;
1060+}
1061+
1062+export interface No {
1063+ NO: number;
10651064 }
10661065
10671066 export interface NSError {
@@ -1088,6 +1087,14 @@ export interface ObjectMapper {
10881087 ObjectMapper: number;
10891088 }
10901089
1090+export interface OffsetDateTime {
1091+ OffsetDateTime: number;
1092+}
1093+
1094+export interface OffsetTime {
1095+ OffsetTime: number;
1096+}
1097+
10911098 export interface Protocol {
10921099 Protocol: number;
10931100 }
@@ -1096,8 +1103,8 @@ export interface RegExp {
10961103 RegExp: string;
10971104 }
10981105
1099-export interface Sel {
1100- SEL: number;
1106+export interface Nil {
1107+ nil: number;
11011108 }
11021109
11031110 export interface NoSuchMethod {
@@ -1308,21 +1315,10 @@ export interface RuntimeType {
13081315 runtimeType: number;
13091316 }
13101317
1311-export interface S {
1312- s: number;
1313-}
1314-
1315-export interface Sbyte {
1316- sbyte: number;
1317-}
1318-
1319-export interface Sealed {
1320- sealed: number;
1321-}
1322-
13231318 export interface Obj5 {
13241319 KSerializer: KSerializer;
13251320 PrimitiveKind: PrimitiveKind;
1321+ SEL: Sel;
13261322 Self: Self;
13271323 Sendable: Sendable;
13281324 SerialDescriptor: SerialDescriptor;
@@ -1338,9 +1334,10 @@ export interface Obj5 {
13381334 TimeZone: TimeZone;
13391335 True: True;
13401336 Type: Type;
1341- UnmarshalJSON: UnmarshalJSON;
1342- UseSerializers: UseSerializers;
13431337 dummy: number;
1338+ s: S;
1339+ sbyte: Sbyte;
1340+ sealed: Sealed;
13441341 select: Select;
13451342 self: SelfClass;
13461343 serialize: Serialize;
@@ -1384,9 +1381,6 @@ export interface Obj5 {
13841381 ulong: Ulong;
13851382 unchecked: Unchecked;
13861383 undefined: Undefined;
1387- union: Union;
1388- unowned: Unowned;
1389- unsafe: Unsafe;
13901384 }
13911385
13921386 export interface KSerializer {
@@ -1397,6 +1391,10 @@ export interface PrimitiveKind {
13971391 PrimitiveKind: number;
13981392 }
13991393
1394+export interface Sel {
1395+ SEL: number;
1396+}
1397+
14001398 export interface Self {
14011399 Self: number;
14021400 }
@@ -1457,12 +1455,16 @@ export interface Type {
14571455 Type: number;
14581456 }
14591457
1460-export interface UnmarshalJSON {
1461- UnmarshalJSON: number;
1458+export interface S {
1459+ s: number;
14621460 }
14631461
1464-export interface UseSerializers {
1465- UseSerializers: number;
1462+export interface Sbyte {
1463+ sbyte: number;
1464+}
1465+
1466+export interface Sealed {
1467+ sealed: number;
14661468 }
14671469
14681470 export interface Select {
@@ -1637,24 +1639,17 @@ export interface Undefined {
16371639 undefined: number;
16381640 }
16391641
1640-export interface Union {
1641- union: number;
1642-}
1643-
1644-export interface Unowned {
1645- unowned: number;
1646-}
1647-
1648-export interface Unsafe {
1649- unsafe: number;
1650-}
1651-
16521642 export interface Obj6 {
16531643 UUID: UUID;
1644+ UnmarshalJSON: UnmarshalJSON;
1645+ UseSerializers: UseSerializers;
16541646 Utf8JsonReader: Utf8JSONReader;
16551647 Utf8JsonWriter: Utf8JSONWriter;
16561648 YES: Yes;
16571649 dummy: number;
1650+ union: Union;
1651+ unowned: Unowned;
1652+ unsafe: Unsafe;
16581653 unsigned: Unsigned;
16591654 ushort: Ushort;
16601655 using: Using;
@@ -1677,6 +1672,14 @@ export interface UUID {
16771672 UUID: number;
16781673 }
16791674
1675+export interface UnmarshalJSON {
1676+ UnmarshalJSON: number;
1677+}
1678+
1679+export interface UseSerializers {
1680+ UseSerializers: number;
1681+}
1682+
16801683 export interface Utf8JSONReader {
16811684 Utf8JsonReader: number;
16821685 }
@@ -1689,6 +1692,18 @@ export interface Yes {
16891692 YES: number;
16901693 }
16911694
1695+export interface Union {
1696+ union: number;
1697+}
1698+
1699+export interface Unowned {
1700+ unowned: number;
1701+}
1702+
1703+export interface Unsafe {
1704+ unsafe: number;
1705+}
1706+
16921707 export interface Unsigned {
16931708 unsigned: number;
16941709 }
@@ -2484,10 +2499,10 @@ const typeMap: any = {
24842499 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24852500 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24862501 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2502+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24872503 { json: "Locale", js: "Locale", typ: r("Locale") },
24882504 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24892505 { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") },
2490- { json: "NO", js: "NO", typ: r("No") },
24912506 { json: "dummy", js: "dummy", typ: i(0) },
24922507 { json: "goto", js: "goto", typ: r("Goto") },
24932508 { json: "guard", js: "guard", typ: r("Guard") },
@@ -2534,7 +2549,6 @@ const typeMap: any = {
25342549 { json: "native", js: "native", typ: r("Native") },
25352550 { json: "new", js: "new", typ: r("New") },
25362551 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
2537- { json: "nil", js: "nil", typ: r("Nil") },
25382552 ], false),
25392553 "Hashable": o([
25402554 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2581,6 +2595,9 @@ const typeMap: any = {
25812595 "JSONTokenType": o([
25822596 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25832597 ], false),
2598+ "LocalDate": o([
2599+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2600+ ], false),
25842601 "Locale": o([
25852602 { json: "Locale", js: "Locale", typ: i(0) },
25862603 ], false),
@@ -2590,9 +2607,6 @@ const typeMap: any = {
25902607 "MarshalJSON": o([
25912608 { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) },
25922609 ], false),
2593- "No": o([
2594- { json: "NO", js: "NO", typ: i(0) },
2595- ], false),
25962610 "Goto": o([
25972611 { json: "goto", js: "goto", typ: i(0) },
25982612 ], false),
@@ -2728,20 +2742,20 @@ const typeMap: any = {
27282742 "Newtonsoft": o([
27292743 { json: "newtonsoft", js: "newtonsoft", typ: i(0) },
27302744 ], false),
2731- "Nil": o([
2732- { json: "nil", js: "nil", typ: i(0) },
2733- ], false),
27342745 "Obj4": o([
2746+ { json: "NO", js: "NO", typ: r("No") },
27352747 { json: "NSError", js: "NSError", typ: r("NSError") },
27362748 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
27372749 { json: "NSString", js: "NSString", typ: r("NSString") },
27382750 { json: "NULL", js: "NULL", typ: r("Null") },
27392751 { json: "None", js: "None", typ: r("None") },
27402752 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2753+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2754+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27412755 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27422756 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2743- { json: "SEL", js: "SEL", typ: r("Sel") },
27442757 { json: "dummy", js: "dummy", typ: i(0) },
2758+ { json: "nil", js: "nil", typ: r("Nil") },
27452759 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
27462760 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27472761 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
@@ -2794,9 +2808,9 @@ const typeMap: any = {
27942808 { json: "return", js: "return", typ: r("Return") },
27952809 { json: "right", js: "right", typ: r("Right") },
27962810 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
2797- { json: "s", js: "s", typ: r("S") },
2798- { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2799- { json: "sealed", js: "sealed", typ: r("Sealed") },
2811+ ], false),
2812+ "No": o([
2813+ { json: "NO", js: "NO", typ: i(0) },
28002814 ], false),
28012815 "NSError": o([
28022816 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2816,14 +2830,20 @@ const typeMap: any = {
28162830 "ObjectMapper": o([
28172831 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
28182832 ], false),
2833+ "OffsetDateTime": o([
2834+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2835+ ], false),
2836+ "OffsetTime": o([
2837+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2838+ ], false),
28192839 "Protocol": o([
28202840 { json: "Protocol", js: "Protocol", typ: i(0) },
28212841 ], false),
28222842 "RegExp": o([
28232843 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28242844 ], false),
2825- "Sel": o([
2826- { json: "SEL", js: "SEL", typ: i(0) },
2845+ "Nil": o([
2846+ { json: "nil", js: "nil", typ: i(0) },
28272847 ], false),
28282848 "NoSuchMethod": o([
28292849 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
@@ -2981,18 +3001,10 @@ const typeMap: any = {
29813001 "RuntimeType": o([
29823002 { json: "runtimeType", js: "runtimeType", typ: i(0) },
29833003 ], false),
2984- "S": o([
2985- { json: "s", js: "s", typ: i(0) },
2986- ], false),
2987- "Sbyte": o([
2988- { json: "sbyte", js: "sbyte", typ: i(0) },
2989- ], false),
2990- "Sealed": o([
2991- { json: "sealed", js: "sealed", typ: i(0) },
2992- ], false),
29933004 "Obj5": o([
29943005 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29953006 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
3007+ { json: "SEL", js: "SEL", typ: r("Sel") },
29963008 { json: "Self", js: "Self", typ: r("Self") },
29973009 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29983010 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -3008,9 +3020,10 @@ const typeMap: any = {
30083020 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30093021 { json: "True", js: "True", typ: r("True") },
30103022 { json: "Type", js: "Type", typ: r("Type") },
3011- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3012- { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
30133023 { json: "dummy", js: "dummy", typ: i(0) },
3024+ { json: "s", js: "s", typ: r("S") },
3025+ { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
3026+ { json: "sealed", js: "sealed", typ: r("Sealed") },
30143027 { json: "select", js: "select", typ: r("Select") },
30153028 { json: "self", js: "self", typ: r("SelfClass") },
30163029 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -3054,9 +3067,6 @@ const typeMap: any = {
30543067 { json: "ulong", js: "ulong", typ: r("Ulong") },
30553068 { json: "unchecked", js: "unchecked", typ: r("Unchecked") },
30563069 { json: "undefined", js: "undefined", typ: r("Undefined") },
3057- { json: "union", js: "union", typ: r("Union") },
3058- { json: "unowned", js: "unowned", typ: r("Unowned") },
3059- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30603070 ], false),
30613071 "KSerializer": o([
30623072 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3064,6 +3074,9 @@ const typeMap: any = {
30643074 "PrimitiveKind": o([
30653075 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30663076 ], false),
3077+ "Sel": o([
3078+ { json: "SEL", js: "SEL", typ: i(0) },
3079+ ], false),
30673080 "Self": o([
30683081 { json: "Self", js: "Self", typ: i(0) },
30693082 ], false),
@@ -3109,11 +3122,14 @@ const typeMap: any = {
31093122 "Type": o([
31103123 { json: "Type", js: "Type", typ: i(0) },
31113124 ], false),
3112- "UnmarshalJSON": o([
3113- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3125+ "S": o([
3126+ { json: "s", js: "s", typ: i(0) },
31143127 ], false),
3115- "UseSerializers": o([
3116- { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3128+ "Sbyte": o([
3129+ { json: "sbyte", js: "sbyte", typ: i(0) },
3130+ ], false),
3131+ "Sealed": o([
3132+ { json: "sealed", js: "sealed", typ: i(0) },
31173133 ], false),
31183134 "Select": o([
31193135 { json: "select", js: "select", typ: i(0) },
@@ -3244,21 +3260,17 @@ const typeMap: any = {
32443260 "Undefined": o([
32453261 { json: "undefined", js: "undefined", typ: i(0) },
32463262 ], false),
3247- "Union": o([
3248- { json: "union", js: "union", typ: i(0) },
3249- ], false),
3250- "Unowned": o([
3251- { json: "unowned", js: "unowned", typ: i(0) },
3252- ], false),
3253- "Unsafe": o([
3254- { json: "unsafe", js: "unsafe", typ: i(0) },
3255- ], false),
32563263 "Obj6": o([
32573264 { json: "UUID", js: "UUID", typ: r("UUID") },
3265+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3266+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
32583267 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32593268 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32603269 { json: "YES", js: "YES", typ: r("Yes") },
32613270 { json: "dummy", js: "dummy", typ: i(0) },
3271+ { json: "union", js: "union", typ: r("Union") },
3272+ { json: "unowned", js: "unowned", typ: r("Unowned") },
3273+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
32623274 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
32633275 { json: "ushort", js: "ushort", typ: r("Ushort") },
32643276 { json: "using", js: "using", typ: r("Using") },
@@ -3279,6 +3291,12 @@ const typeMap: any = {
32793291 "UUID": o([
32803292 { json: "UUID", js: "UUID", typ: i(0) },
32813293 ], false),
3294+ "UnmarshalJSON": o([
3295+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3296+ ], false),
3297+ "UseSerializers": o([
3298+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3299+ ], false),
32823300 "Utf8JSONReader": o([
32833301 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
32843302 ], false),
@@ -3288,6 +3306,15 @@ const typeMap: any = {
32883306 "Yes": o([
32893307 { json: "YES", js: "YES", typ: i(0) },
32903308 ], false),
3309+ "Union": o([
3310+ { json: "union", js: "union", typ: i(0) },
3311+ ], false),
3312+ "Unowned": o([
3313+ { json: "unowned", js: "unowned", typ: i(0) },
3314+ ], false),
3315+ "Unsafe": o([
3316+ { json: "unsafe", js: "unsafe", typ: i(0) },
3317+ ], false),
32913318 "Unsigned": o([
32923319 { json: "unsigned", js: "unsigned", typ: i(0) },
32933320 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+117 −90
@@ -683,10 +683,10 @@ export type Obj3 = {
683683 JsonParser: JSONParser;
684684 JsonReader: JSONReader;
685685 JsonTokenType: JSONTokenType;
686+ LocalDate: LocalDate;
686687 Locale: Locale;
687688 MapEntry: MapEntry;
688689 MarshalJSON: MarshalJSON;
689- NO: No;
690690 dummy: number;
691691 goto: Goto;
692692 guard: Guard;
@@ -733,7 +733,6 @@ export type Obj3 = {
733733 native: Native;
734734 new: New;
735735 newtonsoft: Newtonsoft;
736- nil: Nil;
737736 }
738737
739738 export type Hashable = {
@@ -796,6 +795,10 @@ export type JSONTokenType = {
796795 JsonTokenType: number;
797796 }
798797
798+export type LocalDate = {
799+ LocalDate: number;
800+}
801+
799802 export type Locale = {
800803 Locale: number;
801804 }
@@ -808,10 +811,6 @@ export type MarshalJSON = {
808811 MarshalJSON: number;
809812 }
810813
811-export type No = {
812- NO: number;
813-}
814-
815814 export type Goto = {
816815 goto: number;
817816 }
@@ -992,21 +991,20 @@ export type Newtonsoft = {
992991 newtonsoft: number;
993992 }
994993
995-export type Nil = {
996- nil: number;
997-}
998-
999994 export type Obj4 = {
995+ NO: No;
1000996 NSError: NSError;
1001997 NSObject: NSObject;
1002998 NSString: NSString;
1003999 NULL: Null;
10041000 None: None;
10051001 ObjectMapper: ObjectMapper;
1002+ OffsetDateTime: OffsetDateTime;
1003+ OffsetTime: OffsetTime;
10061004 Protocol: Protocol;
10071005 RegExp: RegExp;
1008- SEL: Sel;
10091006 dummy: number;
1007+ nil: Nil;
10101008 noSuchMethod: NoSuchMethod;
10111009 noexcept: Noexcept;
10121010 nonatomic: Nonatomic;
@@ -1059,9 +1057,10 @@ export type Obj4 = {
10591057 return: Return;
10601058 right: Right;
10611059 runtimeType: RuntimeType;
1062- s: S;
1063- sbyte: Sbyte;
1064- sealed: Sealed;
1060+}
1061+
1062+export type No = {
1063+ NO: number;
10651064 }
10661065
10671066 export type NSError = {
@@ -1088,6 +1087,14 @@ export type ObjectMapper = {
10881087 ObjectMapper: number;
10891088 }
10901089
1090+export type OffsetDateTime = {
1091+ OffsetDateTime: number;
1092+}
1093+
1094+export type OffsetTime = {
1095+ OffsetTime: number;
1096+}
1097+
10911098 export type Protocol = {
10921099 Protocol: number;
10931100 }
@@ -1096,8 +1103,8 @@ export type RegExp = {
10961103 RegExp: string;
10971104 }
10981105
1099-export type Sel = {
1100- SEL: number;
1106+export type Nil = {
1107+ nil: number;
11011108 }
11021109
11031110 export type NoSuchMethod = {
@@ -1308,21 +1315,10 @@ export type RuntimeType = {
13081315 runtimeType: number;
13091316 }
13101317
1311-export type S = {
1312- s: number;
1313-}
1314-
1315-export type Sbyte = {
1316- sbyte: number;
1317-}
1318-
1319-export type Sealed = {
1320- sealed: number;
1321-}
1322-
13231318 export type Obj5 = {
13241319 KSerializer: KSerializer;
13251320 PrimitiveKind: PrimitiveKind;
1321+ SEL: Sel;
13261322 Self: Self;
13271323 Sendable: Sendable;
13281324 SerialDescriptor: SerialDescriptor;
@@ -1338,9 +1334,10 @@ export type Obj5 = {
13381334 TimeZone: TimeZone;
13391335 True: True;
13401336 Type: Type;
1341- UnmarshalJSON: UnmarshalJSON;
1342- UseSerializers: UseSerializers;
13431337 dummy: number;
1338+ s: S;
1339+ sbyte: Sbyte;
1340+ sealed: Sealed;
13441341 select: Select;
13451342 self: SelfClass;
13461343 serialize: Serialize;
@@ -1384,9 +1381,6 @@ export type Obj5 = {
13841381 ulong: Ulong;
13851382 unchecked: Unchecked;
13861383 undefined: Undefined;
1387- union: Union;
1388- unowned: Unowned;
1389- unsafe: Unsafe;
13901384 }
13911385
13921386 export type KSerializer = {
@@ -1397,6 +1391,10 @@ export type PrimitiveKind = {
13971391 PrimitiveKind: number;
13981392 }
13991393
1394+export type Sel = {
1395+ SEL: number;
1396+}
1397+
14001398 export type Self = {
14011399 Self: number;
14021400 }
@@ -1457,12 +1455,16 @@ export type Type = {
14571455 Type: number;
14581456 }
14591457
1460-export type UnmarshalJSON = {
1461- UnmarshalJSON: number;
1458+export type S = {
1459+ s: number;
14621460 }
14631461
1464-export type UseSerializers = {
1465- UseSerializers: number;
1462+export type Sbyte = {
1463+ sbyte: number;
1464+}
1465+
1466+export type Sealed = {
1467+ sealed: number;
14661468 }
14671469
14681470 export type Select = {
@@ -1637,24 +1639,17 @@ export type Undefined = {
16371639 undefined: number;
16381640 }
16391641
1640-export type Union = {
1641- union: number;
1642-}
1643-
1644-export type Unowned = {
1645- unowned: number;
1646-}
1647-
1648-export type Unsafe = {
1649- unsafe: number;
1650-}
1651-
16521642 export type Obj6 = {
16531643 UUID: UUID;
1644+ UnmarshalJSON: UnmarshalJSON;
1645+ UseSerializers: UseSerializers;
16541646 Utf8JsonReader: Utf8JSONReader;
16551647 Utf8JsonWriter: Utf8JSONWriter;
16561648 YES: Yes;
16571649 dummy: number;
1650+ union: Union;
1651+ unowned: Unowned;
1652+ unsafe: Unsafe;
16581653 unsigned: Unsigned;
16591654 ushort: Ushort;
16601655 using: Using;
@@ -1677,6 +1672,14 @@ export type UUID = {
16771672 UUID: number;
16781673 }
16791674
1675+export type UnmarshalJSON = {
1676+ UnmarshalJSON: number;
1677+}
1678+
1679+export type UseSerializers = {
1680+ UseSerializers: number;
1681+}
1682+
16801683 export type Utf8JSONReader = {
16811684 Utf8JsonReader: number;
16821685 }
@@ -1689,6 +1692,18 @@ export type Yes = {
16891692 YES: number;
16901693 }
16911694
1695+export type Union = {
1696+ union: number;
1697+}
1698+
1699+export type Unowned = {
1700+ unowned: number;
1701+}
1702+
1703+export type Unsafe = {
1704+ unsafe: number;
1705+}
1706+
16921707 export type Unsigned = {
16931708 unsigned: number;
16941709 }
@@ -2484,10 +2499,10 @@ const typeMap: any = {
24842499 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24852500 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24862501 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2502+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24872503 { json: "Locale", js: "Locale", typ: r("Locale") },
24882504 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24892505 { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") },
2490- { json: "NO", js: "NO", typ: r("No") },
24912506 { json: "dummy", js: "dummy", typ: i(0) },
24922507 { json: "goto", js: "goto", typ: r("Goto") },
24932508 { json: "guard", js: "guard", typ: r("Guard") },
@@ -2534,7 +2549,6 @@ const typeMap: any = {
25342549 { json: "native", js: "native", typ: r("Native") },
25352550 { json: "new", js: "new", typ: r("New") },
25362551 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
2537- { json: "nil", js: "nil", typ: r("Nil") },
25382552 ], false),
25392553 "Hashable": o([
25402554 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2581,6 +2595,9 @@ const typeMap: any = {
25812595 "JSONTokenType": o([
25822596 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25832597 ], false),
2598+ "LocalDate": o([
2599+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2600+ ], false),
25842601 "Locale": o([
25852602 { json: "Locale", js: "Locale", typ: i(0) },
25862603 ], false),
@@ -2590,9 +2607,6 @@ const typeMap: any = {
25902607 "MarshalJSON": o([
25912608 { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) },
25922609 ], false),
2593- "No": o([
2594- { json: "NO", js: "NO", typ: i(0) },
2595- ], false),
25962610 "Goto": o([
25972611 { json: "goto", js: "goto", typ: i(0) },
25982612 ], false),
@@ -2728,20 +2742,20 @@ const typeMap: any = {
27282742 "Newtonsoft": o([
27292743 { json: "newtonsoft", js: "newtonsoft", typ: i(0) },
27302744 ], false),
2731- "Nil": o([
2732- { json: "nil", js: "nil", typ: i(0) },
2733- ], false),
27342745 "Obj4": o([
2746+ { json: "NO", js: "NO", typ: r("No") },
27352747 { json: "NSError", js: "NSError", typ: r("NSError") },
27362748 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
27372749 { json: "NSString", js: "NSString", typ: r("NSString") },
27382750 { json: "NULL", js: "NULL", typ: r("Null") },
27392751 { json: "None", js: "None", typ: r("None") },
27402752 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2753+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2754+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27412755 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27422756 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2743- { json: "SEL", js: "SEL", typ: r("Sel") },
27442757 { json: "dummy", js: "dummy", typ: i(0) },
2758+ { json: "nil", js: "nil", typ: r("Nil") },
27452759 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
27462760 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27472761 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
@@ -2794,9 +2808,9 @@ const typeMap: any = {
27942808 { json: "return", js: "return", typ: r("Return") },
27952809 { json: "right", js: "right", typ: r("Right") },
27962810 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
2797- { json: "s", js: "s", typ: r("S") },
2798- { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2799- { json: "sealed", js: "sealed", typ: r("Sealed") },
2811+ ], false),
2812+ "No": o([
2813+ { json: "NO", js: "NO", typ: i(0) },
28002814 ], false),
28012815 "NSError": o([
28022816 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2816,14 +2830,20 @@ const typeMap: any = {
28162830 "ObjectMapper": o([
28172831 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
28182832 ], false),
2833+ "OffsetDateTime": o([
2834+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2835+ ], false),
2836+ "OffsetTime": o([
2837+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2838+ ], false),
28192839 "Protocol": o([
28202840 { json: "Protocol", js: "Protocol", typ: i(0) },
28212841 ], false),
28222842 "RegExp": o([
28232843 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28242844 ], false),
2825- "Sel": o([
2826- { json: "SEL", js: "SEL", typ: i(0) },
2845+ "Nil": o([
2846+ { json: "nil", js: "nil", typ: i(0) },
28272847 ], false),
28282848 "NoSuchMethod": o([
28292849 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
@@ -2981,18 +3001,10 @@ const typeMap: any = {
29813001 "RuntimeType": o([
29823002 { json: "runtimeType", js: "runtimeType", typ: i(0) },
29833003 ], false),
2984- "S": o([
2985- { json: "s", js: "s", typ: i(0) },
2986- ], false),
2987- "Sbyte": o([
2988- { json: "sbyte", js: "sbyte", typ: i(0) },
2989- ], false),
2990- "Sealed": o([
2991- { json: "sealed", js: "sealed", typ: i(0) },
2992- ], false),
29933004 "Obj5": o([
29943005 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29953006 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
3007+ { json: "SEL", js: "SEL", typ: r("Sel") },
29963008 { json: "Self", js: "Self", typ: r("Self") },
29973009 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29983010 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -3008,9 +3020,10 @@ const typeMap: any = {
30083020 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30093021 { json: "True", js: "True", typ: r("True") },
30103022 { json: "Type", js: "Type", typ: r("Type") },
3011- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3012- { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
30133023 { json: "dummy", js: "dummy", typ: i(0) },
3024+ { json: "s", js: "s", typ: r("S") },
3025+ { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
3026+ { json: "sealed", js: "sealed", typ: r("Sealed") },
30143027 { json: "select", js: "select", typ: r("Select") },
30153028 { json: "self", js: "self", typ: r("SelfClass") },
30163029 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -3054,9 +3067,6 @@ const typeMap: any = {
30543067 { json: "ulong", js: "ulong", typ: r("Ulong") },
30553068 { json: "unchecked", js: "unchecked", typ: r("Unchecked") },
30563069 { json: "undefined", js: "undefined", typ: r("Undefined") },
3057- { json: "union", js: "union", typ: r("Union") },
3058- { json: "unowned", js: "unowned", typ: r("Unowned") },
3059- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30603070 ], false),
30613071 "KSerializer": o([
30623072 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3064,6 +3074,9 @@ const typeMap: any = {
30643074 "PrimitiveKind": o([
30653075 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30663076 ], false),
3077+ "Sel": o([
3078+ { json: "SEL", js: "SEL", typ: i(0) },
3079+ ], false),
30673080 "Self": o([
30683081 { json: "Self", js: "Self", typ: i(0) },
30693082 ], false),
@@ -3109,11 +3122,14 @@ const typeMap: any = {
31093122 "Type": o([
31103123 { json: "Type", js: "Type", typ: i(0) },
31113124 ], false),
3112- "UnmarshalJSON": o([
3113- { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3125+ "S": o([
3126+ { json: "s", js: "s", typ: i(0) },
31143127 ], false),
3115- "UseSerializers": o([
3116- { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3128+ "Sbyte": o([
3129+ { json: "sbyte", js: "sbyte", typ: i(0) },
3130+ ], false),
3131+ "Sealed": o([
3132+ { json: "sealed", js: "sealed", typ: i(0) },
31173133 ], false),
31183134 "Select": o([
31193135 { json: "select", js: "select", typ: i(0) },
@@ -3244,21 +3260,17 @@ const typeMap: any = {
32443260 "Undefined": o([
32453261 { json: "undefined", js: "undefined", typ: i(0) },
32463262 ], false),
3247- "Union": o([
3248- { json: "union", js: "union", typ: i(0) },
3249- ], false),
3250- "Unowned": o([
3251- { json: "unowned", js: "unowned", typ: i(0) },
3252- ], false),
3253- "Unsafe": o([
3254- { json: "unsafe", js: "unsafe", typ: i(0) },
3255- ], false),
32563263 "Obj6": o([
32573264 { json: "UUID", js: "UUID", typ: r("UUID") },
3265+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
3266+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
32583267 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32593268 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32603269 { json: "YES", js: "YES", typ: r("Yes") },
32613270 { json: "dummy", js: "dummy", typ: i(0) },
3271+ { json: "union", js: "union", typ: r("Union") },
3272+ { json: "unowned", js: "unowned", typ: r("Unowned") },
3273+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
32623274 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
32633275 { json: "ushort", js: "ushort", typ: r("Ushort") },
32643276 { json: "using", js: "using", typ: r("Using") },
@@ -3279,6 +3291,12 @@ const typeMap: any = {
32793291 "UUID": o([
32803292 { json: "UUID", js: "UUID", typ: i(0) },
32813293 ], false),
3294+ "UnmarshalJSON": o([
3295+ { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) },
3296+ ], false),
3297+ "UseSerializers": o([
3298+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
3299+ ], false),
32823300 "Utf8JSONReader": o([
32833301 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
32843302 ], false),
@@ -3288,6 +3306,15 @@ const typeMap: any = {
32883306 "Yes": o([
32893307 { json: "YES", js: "YES", typ: i(0) },
32903308 ], false),
3309+ "Union": o([
3310+ { json: "union", js: "union", typ: i(0) },
3311+ ], false),
3312+ "Unowned": o([
3313+ { json: "unowned", js: "unowned", typ: i(0) },
3314+ ], false),
3315+ "Unsafe": o([
3316+ { json: "unsafe", js: "unsafe", typ: i(0) },
3317+ ], false),
32913318 "Unsigned": o([
32923319 { json: "unsigned", js: "unsigned", typ: i(0) },
32933320 ], false),
Test case

test/inputs/schema/date-time.schema

45 generated files · +1,814 −57
Mschema-cjsondefault / TopLevel.c+180 −0
@@ -48,6 +48,153 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x) {
4848 }
4949 }
5050
51+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
52+ struct LocalDate * x = NULL;
53+ if (NULL != s) {
54+ cJSON * j = cJSON_Parse(s);
55+ if (NULL != j) {
56+ x = cJSON_GetLocalDateValue(j);
57+ cJSON_Delete(j);
58+ }
59+ }
60+ return x;
61+}
62+
63+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
64+ struct LocalDate * x = NULL;
65+ if (NULL != j) {
66+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
67+ memset(x, 0, sizeof(struct LocalDate));
68+ }
69+ }
70+ return x;
71+}
72+
73+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
74+ cJSON * j = NULL;
75+ if (NULL != x) {
76+ if (NULL != (j = cJSON_CreateObject())) {
77+ }
78+ }
79+ return j;
80+}
81+
82+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
83+ char * s = NULL;
84+ if (NULL != x) {
85+ cJSON * j = cJSON_CreateLocalDate(x);
86+ if (NULL != j) {
87+ s = cJSON_Print(j);
88+ cJSON_Delete(j);
89+ }
90+ }
91+ return s;
92+}
93+
94+void cJSON_DeleteLocalDate(struct LocalDate * x) {
95+ if (NULL != x) {
96+ cJSON_free(x);
97+ }
98+}
99+
100+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
101+ struct OffsetDateTime * x = NULL;
102+ if (NULL != s) {
103+ cJSON * j = cJSON_Parse(s);
104+ if (NULL != j) {
105+ x = cJSON_GetOffsetDateTimeValue(j);
106+ cJSON_Delete(j);
107+ }
108+ }
109+ return x;
110+}
111+
112+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
113+ struct OffsetDateTime * x = NULL;
114+ if (NULL != j) {
115+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
116+ memset(x, 0, sizeof(struct OffsetDateTime));
117+ }
118+ }
119+ return x;
120+}
121+
122+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
123+ cJSON * j = NULL;
124+ if (NULL != x) {
125+ if (NULL != (j = cJSON_CreateObject())) {
126+ }
127+ }
128+ return j;
129+}
130+
131+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
132+ char * s = NULL;
133+ if (NULL != x) {
134+ cJSON * j = cJSON_CreateOffsetDateTime(x);
135+ if (NULL != j) {
136+ s = cJSON_Print(j);
137+ cJSON_Delete(j);
138+ }
139+ }
140+ return s;
141+}
142+
143+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
144+ if (NULL != x) {
145+ cJSON_free(x);
146+ }
147+}
148+
149+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
150+ struct OffsetTime * x = NULL;
151+ if (NULL != s) {
152+ cJSON * j = cJSON_Parse(s);
153+ if (NULL != j) {
154+ x = cJSON_GetOffsetTimeValue(j);
155+ cJSON_Delete(j);
156+ }
157+ }
158+ return x;
159+}
160+
161+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
162+ struct OffsetTime * x = NULL;
163+ if (NULL != j) {
164+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
165+ memset(x, 0, sizeof(struct OffsetTime));
166+ }
167+ }
168+ return x;
169+}
170+
171+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
172+ cJSON * j = NULL;
173+ if (NULL != x) {
174+ if (NULL != (j = cJSON_CreateObject())) {
175+ }
176+ }
177+ return j;
178+}
179+
180+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
181+ char * s = NULL;
182+ if (NULL != x) {
183+ cJSON * j = cJSON_CreateOffsetTime(x);
184+ if (NULL != j) {
185+ s = cJSON_Print(j);
186+ cJSON_Delete(j);
187+ }
188+ }
189+ return s;
190+}
191+
192+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
193+ if (NULL != x) {
194+ cJSON_free(x);
195+ }
196+}
197+
51198 struct TopLevel * cJSON_ParseTopLevel(const char * s) {
52199 struct TopLevel * x = NULL;
53200 if (NULL != s) {
@@ -103,6 +250,21 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
103250 x->date_time[0] = '\0';
104251 }
105252 }
253+ if (cJSON_HasObjectItem(j, "local-date-class")) {
254+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
255+ x->local_date_class = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"));
256+ if (NULL == x->local_date_class) { cJSON_DeleteTopLevel(x); return NULL; }
257+ }
258+ if (cJSON_HasObjectItem(j, "offset-date-time-class")) {
259+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
260+ x->offset_date_time_class = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"));
261+ if (NULL == x->offset_date_time_class) { cJSON_DeleteTopLevel(x); return NULL; }
262+ }
263+ if (cJSON_HasObjectItem(j, "offset-time-class")) {
264+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
265+ x->offset_time_class = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"));
266+ if (NULL == x->offset_time_class) { cJSON_DeleteTopLevel(x); return NULL; }
267+ }
106268 if (!cJSON_HasObjectItem(j, "time")) { cJSON_DeleteTopLevel(x); return NULL; }
107269 if (cJSON_HasObjectItem(j, "time")) {
108270 if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "time"))) { cJSON_DeleteTopLevel(x); return NULL; }
@@ -160,6 +322,15 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
160322 else {
161323 cJSON_AddStringToObject(j, "date-time", "");
162324 }
325+ if (NULL != x->local_date_class) {
326+ cJSON_AddItemToObject(j, "local-date-class", cJSON_CreateLocalDate(x->local_date_class));
327+ }
328+ if (NULL != x->offset_date_time_class) {
329+ cJSON_AddItemToObject(j, "offset-date-time-class", cJSON_CreateOffsetDateTime(x->offset_date_time_class));
330+ }
331+ if (NULL != x->offset_time_class) {
332+ cJSON_AddItemToObject(j, "offset-time-class", cJSON_CreateOffsetTime(x->offset_time_class));
333+ }
163334 if (NULL != x->time) {
164335 cJSON_AddStringToObject(j, "time", x->time);
165336 }
@@ -209,6 +380,15 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
209380 if (NULL != x->date_time) {
210381 cJSON_free(x->date_time);
211382 }
383+ if (NULL != x->local_date_class) {
384+ cJSON_DeleteLocalDate(x->local_date_class);
385+ }
386+ if (NULL != x->offset_date_time_class) {
387+ cJSON_DeleteOffsetDateTime(x->offset_date_time_class);
388+ }
389+ if (NULL != x->offset_time_class) {
390+ cJSON_DeleteOffsetTime(x->offset_time_class);
391+ }
212392 if (NULL != x->time) {
213393 cJSON_free(x->time);
214394 }
Mschema-cjsondefault / TopLevel.h+30 −0
@@ -56,10 +56,22 @@ struct ComplexUnionArray {
5656 } value;
5757 };
5858
59+struct LocalDate {
60+};
61+
62+struct OffsetDateTime {
63+};
64+
65+struct OffsetTime {
66+};
67+
5968 struct TopLevel {
6069 list_t * complex_union_array;
6170 char * date;
6271 char * date_time;
72+ struct LocalDate * local_date_class;
73+ struct OffsetDateTime * offset_date_time_class;
74+ struct OffsetTime * offset_time_class;
6375 char * time;
6476 list_t * union_array;
6577 };
@@ -71,6 +83,24 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x);
7183 struct ComplexUnionArray * cJSON_ParseComplexUnionArray(const char * s);
7284 char * cJSON_PrintComplexUnionArray(const struct ComplexUnionArray * x);
7385
86+struct LocalDate * cJSON_ParseLocalDate(const char * s);
87+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
88+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
89+char * cJSON_PrintLocalDate(const struct LocalDate * x);
90+void cJSON_DeleteLocalDate(struct LocalDate * x);
91+
92+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
93+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
94+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
95+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
96+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
97+
98+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
99+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
100+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
101+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
102+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
103+
74104 struct TopLevel * cJSON_ParseTopLevel(const char * s);
75105 struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j);
76106 cJSON * cJSON_CreateTopLevel(const struct TopLevel * x);
Mschema-cplusplusdefault / quicktype.hpp+97 −0
@@ -8,6 +8,7 @@
88
99 #pragma once
1010
11+#include <optional>
1112 #include <variant>
1213 #include "json.hpp"
1314
@@ -92,6 +93,36 @@ namespace quicktype {
9293
9394 using ComplexUnionArrayElement = std::variant<std::string, ComplexUnionArrayEnum, int64_t>;
9495
96+ class LocalDate {
97+ public:
98+ LocalDate() = default;
99+ virtual ~LocalDate() = default;
100+
101+ private:
102+
103+ public:
104+ };
105+
106+ class OffsetDateTime {
107+ public:
108+ OffsetDateTime() = default;
109+ virtual ~OffsetDateTime() = default;
110+
111+ private:
112+
113+ public:
114+ };
115+
116+ class OffsetTime {
117+ public:
118+ OffsetTime() = default;
119+ virtual ~OffsetTime() = default;
120+
121+ private:
122+
123+ public:
124+ };
125+
95126 class TopLevel {
96127 public:
97128 TopLevel() = default;
@@ -101,6 +132,9 @@ namespace quicktype {
101132 std::vector<ComplexUnionArrayElement> complex_union_array;
102133 std::string date;
103134 std::string date_time;
135+ std::optional<LocalDate> local_date_class;
136+ std::optional<OffsetDateTime> offset_date_time_class;
137+ std::optional<OffsetTime> offset_time_class;
104138 std::string time;
105139 std::vector<std::string> union_array;
106140
@@ -117,6 +151,18 @@ namespace quicktype {
117151 std::string & get_mutable_date_time() { return date_time; }
118152 void set_date_time(const std::string & value) { this->date_time = value; }
119153
154+ const std::optional<LocalDate> & get_local_date_class() const { return local_date_class; }
155+ std::optional<LocalDate> & get_mutable_local_date_class() { return local_date_class; }
156+ void set_local_date_class(const std::optional<LocalDate> & value) { this->local_date_class = value; }
157+
158+ const std::optional<OffsetDateTime> & get_offset_date_time_class() const { return offset_date_time_class; }
159+ std::optional<OffsetDateTime> & get_mutable_offset_date_time_class() { return offset_date_time_class; }
160+ void set_offset_date_time_class(const std::optional<OffsetDateTime> & value) { this->offset_date_time_class = value; }
161+
162+ const std::optional<OffsetTime> & get_offset_time_class() const { return offset_time_class; }
163+ std::optional<OffsetTime> & get_mutable_offset_time_class() { return offset_time_class; }
164+ void set_offset_time_class(const std::optional<OffsetTime> & value) { this->offset_time_class = value; }
165+
120166 const std::string & get_time() const { return time; }
121167 std::string & get_mutable_time() { return time; }
122168 void set_time(const std::string & value) { this->time = value; }
@@ -128,6 +174,15 @@ namespace quicktype {
128174 }
129175
130176 namespace quicktype {
177+void from_json(const json & j, LocalDate & x);
178+void to_json(json & j, const LocalDate & x);
179+
180+void from_json(const json & j, OffsetDateTime & x);
181+void to_json(json & j, const OffsetDateTime & x);
182+
183+void from_json(const json & j, OffsetTime & x);
184+void to_json(json & j, const OffsetTime & x);
185+
131186 void from_json(const json & j, TopLevel & x);
132187 void to_json(json & j, const TopLevel & x);
133188
@@ -142,12 +197,51 @@ struct adl_serializer<std::variant<std::string, quicktype::ComplexUnionArrayEnum
142197 };
143198 }
144199 namespace quicktype {
200+ inline void from_json(const json & j, LocalDate& x) {
201+ if (!j.is_object()) throw std::runtime_error("Expected object");
202+ (void)j;
203+ (void)x;
204+ }
205+
206+ inline void to_json(json & j, const LocalDate & x) {
207+ j = json::object();
208+ (void)x;
209+ }
210+
211+ inline void from_json(const json & j, OffsetDateTime& x) {
212+ if (!j.is_object()) throw std::runtime_error("Expected object");
213+ (void)j;
214+ (void)x;
215+ }
216+
217+ inline void to_json(json & j, const OffsetDateTime & x) {
218+ j = json::object();
219+ (void)x;
220+ }
221+
222+ inline void from_json(const json & j, OffsetTime& x) {
223+ if (!j.is_object()) throw std::runtime_error("Expected object");
224+ (void)j;
225+ (void)x;
226+ }
227+
228+ inline void to_json(json & j, const OffsetTime & x) {
229+ j = json::object();
230+ (void)x;
231+ }
232+
145233 inline void from_json(const json & j, TopLevel& x) {
146234 if (!j.is_object()) throw std::runtime_error("Expected object");
147235 x.set_complex_union_array(j.at("complex-union-array").get<std::vector<ComplexUnionArrayElement>>());
148236 x.set_date(j.at("date").get<std::string>());
149237 if (j.find("date-time") != j.end() && !std::regex_match(j.at("date-time").get<std::string>(), std::regex("^[0-9]{4}-[0-9]{2}-[0-9]{2}T.*$"))) throw std::runtime_error("Expected date-time");
150238 x.set_date_time(j.at("date-time").get<std::string>());
239+ if (j.find("local-date-class") != j.end() && j.at("local-date-class").is_null()) throw std::runtime_error("Unexpected null");
240+ x.set_local_date_class(get_stack_optional<LocalDate>(j, "local-date-class"));
241+ if (j.find("offset-date-time-class") != j.end() && j.at("offset-date-time-class").is_null()) throw std::runtime_error("Unexpected null");
242+ x.set_offset_date_time_class(get_stack_optional<OffsetDateTime>(j, "offset-date-time-class"));
243+ if (j.find("offset-time-class") != j.end() && j.at("offset-time-class").is_null()) throw std::runtime_error("Unexpected null");
244+ x.set_offset_time_class(get_stack_optional<OffsetTime>(j, "offset-time-class"));
151245 x.set_time(j.at("time").get<std::string>());
152246 x.set_union_array(j.at("union-array").get<std::vector<std::string>>());
153247 }
@@ -157,6 +251,9 @@ namespace quicktype {
157251 j["complex-union-array"] = x.get_complex_union_array();
158252 j["date"] = x.get_date();
159253 j["date-time"] = x.get_date_time();
254+ j["local-date-class"] = x.get_local_date_class();
255+ j["offset-date-time-class"] = x.get_offset_date_time_class();
256+ j["offset-time-class"] = x.get_offset_time_class();
160257 j["time"] = x.get_time();
161258 j["union-array"] = x.get_union_array();
162259 }
Mschema-crystaldefault / TopLevel.cr+24 −0
@@ -11,10 +11,34 @@ class TopLevel
1111 @[JSON::Field(key: "date-time")]
1212 property date_time : String
1313
14+ @[JSON::Field(key: "local-date-class")]
15+ property local_date_class : LocalDate?
16+
17+ @[JSON::Field(key: "offset-date-time-class")]
18+ property offset_date_time_class : OffsetDateTime?
19+
20+ @[JSON::Field(key: "offset-time-class")]
21+ property offset_time_class : OffsetTime?
22+
1423 property time : String
1524
1625 @[JSON::Field(key: "union-array")]
1726 property union_array : Array(String)
1827 end
1928
29+class LocalDate
30+ include JSON::Serializable
31+
32+end
33+
34+class OffsetDateTime
35+ include JSON::Serializable
36+
37+end
38+
39+class OffsetTime
40+ include JSON::Serializable
41+
42+end
43+
2044 alias ComplexUnionArray = Int64 | String
Mschema-csharp-recordsdefault / QuickType.cs+21 −0
@@ -34,6 +34,15 @@ namespace QuickType
3434 [JsonProperty("date-time", Required = Required.Always)]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
38+ public LocalDate? LocalDateClass { get; set; }
39+
40+ [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
41+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
42+
43+ [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
44+ public OffsetTime? OffsetTimeClass { get; set; }
45+
3746 [JsonProperty("time", Required = Required.Always)]
3847 public DateTimeOffset Time { get; set; }
3948
@@ -41,6 +50,18 @@ namespace QuickType
4150 public DateTimeOffset[] UnionArray { get; set; }
4251 }
4352
53+ public partial record LocalDate
54+ {
55+ }
56+
57+ public partial record OffsetDateTime
58+ {
59+ }
60+
61+ public partial record OffsetTime
62+ {
63+ }
64+
4465 public enum ComplexUnionArrayEnum { Foo, Bar };
4566
4667 public partial struct ComplexUnionArrayElement
Mschema-csharp-SystemTextJsondefault / QuickType.cs+24 −0
@@ -34,6 +34,18 @@ namespace QuickType
3434 [JsonPropertyName("date-time")]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
38+ [JsonPropertyName("local-date-class")]
39+ public LocalDate? LocalDateClass { get; set; }
40+
41+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
42+ [JsonPropertyName("offset-date-time-class")]
43+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
44+
45+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
46+ [JsonPropertyName("offset-time-class")]
47+ public OffsetTime? OffsetTimeClass { get; set; }
48+
3749 [JsonRequired]
3850 [JsonPropertyName("time")]
3951 public DateTimeOffset Time { get; set; }
@@ -43,6 +55,18 @@ namespace QuickType
4355 public DateTimeOffset[] UnionArray { get; set; }
4456 }
4557
58+ public partial class LocalDate
59+ {
60+ }
61+
62+ public partial class OffsetDateTime
63+ {
64+ }
65+
66+ public partial class OffsetTime
67+ {
68+ }
69+
4670 public enum ComplexUnionArrayEnum { Foo, Bar };
4771
4872 public partial struct ComplexUnionArrayElement
Mschema-csharpdefault / QuickType.cs+21 −0
@@ -34,6 +34,15 @@ namespace QuickType
3434 [JsonProperty("date-time", Required = Required.Always)]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
38+ public LocalDate? LocalDateClass { get; set; }
39+
40+ [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
41+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
42+
43+ [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
44+ public OffsetTime? OffsetTimeClass { get; set; }
45+
3746 [JsonProperty("time", Required = Required.Always)]
3847 public DateTimeOffset Time { get; set; }
3948
@@ -41,6 +50,18 @@ namespace QuickType
4150 public DateTimeOffset[] UnionArray { get; set; }
4251 }
4352
53+ public partial class LocalDate
54+ {
55+ }
56+
57+ public partial class OffsetDateTime
58+ {
59+ }
60+
61+ public partial class OffsetTime
62+ {
63+ }
64+
4465 public enum ComplexUnionArrayEnum { Foo, Bar };
4566
4667 public partial struct ComplexUnionArrayElement
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -12,6 +12,9 @@ class TopLevel {
1212 final List<dynamic> complexUnionArray;
1313 final DateTime date;
1414 final DateTime dateTime;
15+ final LocalDate? localDateClass;
16+ final OffsetDateTime? offsetDateTimeClass;
17+ final OffsetTime? offsetTimeClass;
1518 final String time;
1619 final List<String> unionArray;
1720
@@ -19,6 +22,9 @@ class TopLevel {
1922 required this.complexUnionArray,
2023 required this.date,
2124 required this.dateTime,
25+ this.localDateClass,
26+ this.offsetDateTimeClass,
27+ this.offsetTimeClass,
2228 required this.time,
2329 required this.unionArray,
2430 });
@@ -27,6 +33,9 @@ class TopLevel {
2733 complexUnionArray: List<dynamic>.from(json["complex-union-array"].map((x) => x)),
2834 date: DateTime.parse(json["date"]),
2935 dateTime: DateTime.parse(json["date-time"]),
36+ localDateClass: json["local-date-class"] == null ? null : LocalDate.fromJson(json["local-date-class"]),
37+ offsetDateTimeClass: json["offset-date-time-class"] == null ? null : OffsetDateTime.fromJson(json["offset-date-time-class"]),
38+ offsetTimeClass: json["offset-time-class"] == null ? null : OffsetTime.fromJson(json["offset-time-class"]),
3039 time: json["time"],
3140 unionArray: List<String>.from(json["union-array"].map((x) => x)),
3241 );
@@ -35,6 +44,9 @@ class TopLevel {
3544 "complex-union-array": List<dynamic>.from(complexUnionArray.map((x) => x)),
3645 "date": "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}",
3746 "date-time": dateTime.toIso8601String(),
47+ "local-date-class": localDateClass?.toJson(),
48+ "offset-date-time-class": offsetDateTimeClass?.toJson(),
49+ "offset-time-class": offsetTimeClass?.toJson(),
3850 "time": time,
3951 "union-array": List<dynamic>.from(unionArray.map((x) => x)),
4052 };
@@ -50,6 +62,36 @@ final complexUnionArrayEnumValues = EnumValues({
5062 "bar": ComplexUnionArrayEnum.BAR
5163 });
5264
65+class LocalDate {
66+ LocalDate();
67+
68+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
69+ );
70+
71+ Map<String, dynamic> toJson() => {
72+ };
73+}
74+
75+class OffsetDateTime {
76+ OffsetDateTime();
77+
78+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
79+ );
80+
81+ Map<String, dynamic> toJson() => {
82+ };
83+}
84+
85+class OffsetTime {
86+ OffsetTime();
87+
88+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
89+ );
90+
91+ Map<String, dynamic> toJson() => {
92+ };
93+}
94+
5395 class EnumValues<T> {
5496 Map<String, T> map;
5597 late Map<T, String> reverseMap;
Mschema-elixirdefault / QuickType.ex+97 −1
@@ -5,14 +5,104 @@
55 # Decode a JSON string: TopLevel.from_json(data)
66 # Encode into a JSON string: TopLevel.to_json(struct)
77
8+defmodule LocalDate do
9+ defstruct []
10+
11+ @type t :: %__MODULE__{
12+ }
13+
14+ def from_map(m) when is_map(m) do
15+ %LocalDate{
16+ }
17+ end
18+
19+ def from_json(json) do
20+ json
21+ |> Jason.decode!()
22+ |> from_map()
23+ end
24+
25+ def to_map(_struct) do
26+ %{
27+ }
28+ end
29+
30+ def to_json(struct) do
31+ struct
32+ |> to_map()
33+ |> Jason.encode!()
34+ end
35+end
36+
37+defmodule OffsetDateTime do
38+ defstruct []
39+
40+ @type t :: %__MODULE__{
41+ }
42+
43+ def from_map(m) when is_map(m) do
44+ %OffsetDateTime{
45+ }
46+ end
47+
48+ def from_json(json) do
49+ json
50+ |> Jason.decode!()
51+ |> from_map()
52+ end
53+
54+ def to_map(_struct) do
55+ %{
56+ }
57+ end
58+
59+ def to_json(struct) do
60+ struct
61+ |> to_map()
62+ |> Jason.encode!()
63+ end
64+end
65+
66+defmodule OffsetTime do
67+ defstruct []
68+
69+ @type t :: %__MODULE__{
70+ }
71+
72+ def from_map(m) when is_map(m) do
73+ %OffsetTime{
74+ }
75+ end
76+
77+ def from_json(json) do
78+ json
79+ |> Jason.decode!()
80+ |> from_map()
81+ end
82+
83+ def to_map(_struct) do
84+ %{
85+ }
86+ end
87+
88+ def to_json(struct) do
89+ struct
90+ |> to_map()
91+ |> Jason.encode!()
92+ end
93+end
94+
895 defmodule TopLevel do
996 @enforce_keys [:complex_union_array, :date, :date_time, :time, :union_array]
10- defstruct [:complex_union_array, :date, :date_time, :time, :union_array]
97+ defstruct [:complex_union_array, :date, :date_time, :local_date_class, :offset_date_time_class, :offset_time_class, :time, :union_array]
1198
1299 @type t :: %__MODULE__{
13100 complex_union_array: [integer() | String.t()],
14101 date: String.t(),
15102 date_time: String.t(),
103+ local_date_class: LocalDate.t() | nil,
104+ offset_date_time_class: OffsetDateTime.t() | nil,
105+ offset_time_class: OffsetTime.t() | nil,
16106 time: String.t(),
17107 union_array: [String.t()]
18108 }
@@ -60,6 +150,9 @@ defmodule TopLevel do
60150 complex_union_array: Enum.map(m["complex-union-array"], &decode_complex_union_array_element/1),
61151 date: decode_date(m["date"]),
62152 date_time: decode_date_time(m["date-time"]),
153+ local_date_class: m["local-date-class"] && LocalDate.from_map(m["local-date-class"]),
154+ offset_date_time_class: m["offset-date-time-class"] && OffsetDateTime.from_map(m["offset-date-time-class"]),
155+ offset_time_class: m["offset-time-class"] && OffsetTime.from_map(m["offset-time-class"]),
63156 time: decode_time(m["time"]),
64157 union_array: decode_union_array(m["union-array"]),
65158 }
@@ -76,6 +169,9 @@ defmodule TopLevel do
76169 "complex-union-array" => struct.complex_union_array && Enum.map(struct.complex_union_array, &encode_complex_union_array_element/1),
77170 "date" => struct.date,
78171 "date-time" => struct.date_time,
172+ "local-date-class" => struct.local_date_class && LocalDate.to_map(struct.local_date_class),
173+ "offset-date-time-class" => struct.offset_date_time_class && OffsetDateTime.to_map(struct.offset_date_time_class),
174+ "offset-time-class" => struct.offset_time_class && OffsetTime.to_map(struct.offset_time_class),
79175 "time" => struct.time,
80176 "union-array" => struct.union_array,
81177 }
Mschema-elmdefault / QuickType.elm+54 −0
@@ -15,6 +15,9 @@ module QuickType exposing
1515 ( QuickType
1616 , quickTypeToString
1717 , quickType
18+ , LocalDate
19+ , OffsetDateTime
20+ , OffsetTime
1821 , ComplexUnionArray(..)
1922 )
2023
@@ -27,6 +30,9 @@ type alias QuickType =
2730 { complexUnionArray : List ComplexUnionArray
2831 , date : String
2932 , dateTime : String
33+ , localDateClass : Maybe LocalDate
34+ , offsetDateTimeClass : Maybe OffsetDateTime
35+ , offsetTimeClass : Maybe OffsetTime
3036 , time : String
3137 , unionArray : List String
3238 }
@@ -35,6 +41,18 @@ type ComplexUnionArray
3541 = IntegerInComplexUnionArray Int
3642 | StringInComplexUnionArray String
3743
44+type alias LocalDate =
45+ {
46+ }
47+
48+type alias OffsetDateTime =
49+ {
50+ }
51+
52+type alias OffsetTime =
53+ {
54+ }
55+
3856 -- decoders and encoders
3957 optionalField key decoder fallback =
4058 Jdec.dict Jdec.value
@@ -52,6 +70,9 @@ quickType =
5270 |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray )
5371 |> Jpipe.required "date" Jdec.string
5472 |> Jpipe.required "date-time" Jdec.string
73+ |> Jpipe.custom (optionalField "local-date-class" (Jdec.map Just localDate) Nothing)
74+ |> Jpipe.custom (optionalField "offset-date-time-class" (Jdec.map Just offsetDateTime) Nothing)
75+ |> Jpipe.custom (optionalField "offset-time-class" (Jdec.map Just offsetTime) Nothing)
5576 |> Jpipe.required "time" Jdec.string
5677 |> Jpipe.required "union-array" (Jdec.list Jdec.string )
5778
@@ -61,6 +82,9 @@ encodeQuickType x =
6182 [ ("complex-union-array", Jenc.list encodeComplexUnionArray x.complexUnionArray)
6283 , ("date", Jenc.string x.date)
6384 , ("date-time", Jenc.string x.dateTime)
85+ , ("local-date-class", makeNullableEncoder encodeLocalDate x.localDateClass)
86+ , ("offset-date-time-class", makeNullableEncoder encodeOffsetDateTime x.offsetDateTimeClass)
87+ , ("offset-time-class", makeNullableEncoder encodeOffsetTime x.offsetTimeClass)
6488 , ("time", Jenc.string x.time)
6589 , ("union-array", Jenc.list Jenc.string x.unionArray)
6690 ]
@@ -77,6 +101,36 @@ encodeComplexUnionArray x = case x of
77101 IntegerInComplexUnionArray y -> Jenc.int y
78102 StringInComplexUnionArray y -> Jenc.string y
79103
104+localDate : Jdec.Decoder LocalDate
105+localDate =
106+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
107+
108+encodeLocalDate : LocalDate -> Jenc.Value
109+encodeLocalDate x =
110+ Jenc.object
111+ [
112+ ]
113+
114+offsetDateTime : Jdec.Decoder OffsetDateTime
115+offsetDateTime =
116+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
117+
118+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
119+encodeOffsetDateTime x =
120+ Jenc.object
121+ [
122+ ]
123+
124+offsetTime : Jdec.Decoder OffsetTime
125+offsetTime =
126+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
127+
128+encodeOffsetTime : OffsetTime -> Jenc.Value
129+encodeOffsetTime x =
130+ Jenc.object
131+ [
132+ ]
133+
80134 --- encoder helpers
81135
82136 makeNullableEncoder : (a -> Jenc.Value) -> Maybe a -> Jenc.Value
Mschema-flowdefault / TopLevel.js+26 −5
@@ -10,11 +10,14 @@
1010 // match the expected interface, even if the JSON is valid.
1111
1212 export type TopLevel = {
13- "complex-union-array": ComplexUnionArrayElement[];
14- date: Date;
15- "date-time": Date;
16- time: string;
17- "union-array": string[];
13+ "complex-union-array": ComplexUnionArrayElement[];
14+ date: Date;
15+ "date-time": Date;
16+ "local-date-class"?: LocalDate;
17+ "offset-date-time-class"?: OffsetDateTime;
18+ "offset-time-class"?: OffsetTime;
19+ time: string;
20+ "union-array": string[];
1821 };
1922
2023 export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number;
@@ -23,6 +26,15 @@ export type ComplexUnionArrayEnum =
2326 "foo"
2427 | "bar";
2528
29+export type LocalDate = {
30+};
31+
32+export type OffsetDateTime = {
33+};
34+
35+export type OffsetTime = {
36+};
37+
2638 // Converts JSON strings to/from your types
2739 // and asserts the results of JSON.parse at runtime
2840 function toTopLevel(json: string): TopLevel {
@@ -212,9 +224,18 @@ const typeMap: any = {
212224 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
213225 { json: "date", js: "date", typ: Date },
214226 { json: "date-time", js: "date-time", typ: Date },
227+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) },
228+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) },
229+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) },
215230 { json: "time", js: "time", typ: "" },
216231 { json: "union-array", js: "union-array", typ: a("") },
217232 ], false),
233+ "LocalDate": o([
234+ ], false),
235+ "OffsetDateTime": o([
236+ ], false),
237+ "OffsetTime": o([
238+ ], false),
218239 "ComplexUnionArrayEnum": [
219240 "foo",
220241 "bar",
Aschema-golang-leading-commentsdefault / multi / LocalDate.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type LocalDate struct {
4+}
Aschema-golang-leading-commentsdefault / multi / OffsetDateTime.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type OffsetDateTime struct {
4+}
Aschema-golang-leading-commentsdefault / multi / OffsetTime.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type OffsetTime struct {
4+}
Mschema-golang-leading-commentsdefault / multi / TopLevel.go+8 −5
@@ -14,9 +14,12 @@ func (r *TopLevel) Marshal() ([]byte, error) {
1414 }
1515
1616 type TopLevel struct {
17- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
18- Date string `json:"date"`
19- DateTime time.Time `json:"date-time"`
20- Time string `json:"time"`
21- UnionArray []string `json:"union-array"`
17+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
18+ Date string `json:"date"`
19+ DateTime time.Time `json:"date-time"`
20+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
21+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
22+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
23+ Time string `json:"time"`
24+ UnionArray []string `json:"union-array"`
2225 }
Mschema-golang-leading-commentsdefault / quicktype.go+17 −5
@@ -17,11 +17,23 @@ func (r *TopLevel) Marshal() ([]byte, error) {
1717 }
1818
1919 type TopLevel struct {
20- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
21- Date string `json:"date"`
22- DateTime time.Time `json:"date-time"`
23- Time string `json:"time"`
24- UnionArray []string `json:"union-array"`
20+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
21+ Date string `json:"date"`
22+ DateTime time.Time `json:"date-time"`
23+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
24+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
25+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
26+ Time string `json:"time"`
27+ UnionArray []string `json:"union-array"`
28+}
29+
30+type LocalDate struct {
31+}
32+
33+type OffsetDateTime struct {
34+}
35+
36+type OffsetTime struct {
2537 }
2638
2739 type ComplexUnionArrayEnum string
Mschema-golangdefault / quicktype.go+17 −5
@@ -23,11 +23,23 @@ func (r *TopLevel) Marshal() ([]byte, error) {
2323 }
2424
2525 type TopLevel struct {
26- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
27- Date string `json:"date"`
28- DateTime time.Time `json:"date-time"`
29- Time string `json:"time"`
30- UnionArray []string `json:"union-array"`
26+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
27+ Date string `json:"date"`
28+ DateTime time.Time `json:"date-time"`
29+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
30+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
31+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
32+ Time string `json:"time"`
33+ UnionArray []string `json:"union-array"`
34+}
35+
36+type LocalDate struct {
37+}
38+
39+type OffsetDateTime struct {
40+}
41+
42+type OffsetTime struct {
3143 }
3244
3345 type ComplexUnionArrayEnum string
Mschema-haskelldefault / QuickType.hs+43 −1
@@ -3,6 +3,9 @@
33
44 module QuickType
55 ( QuickType (..)
6+ , LocalDate (..)
7+ , OffsetDateTime (..)
8+ , OffsetTime (..)
69 , ComplexUnionArray (..)
710 , decodeTopLevel
811 ) where
@@ -17,6 +20,9 @@ data QuickType = QuickType
1720 { complexUnionArrayQuickType :: [ComplexUnionArray]
1821 , dateQuickType :: Text
1922 , dateTimeQuickType :: Text
23+ , localDateClassQuickType :: Maybe LocalDate
24+ , offsetDateTimeClassQuickType :: Maybe OffsetDateTime
25+ , offsetTimeClassQuickType :: Maybe OffsetTime
2026 , timeQuickType :: Text
2127 , unionArrayQuickType :: [Text]
2228 } deriving (Show)
@@ -26,15 +32,30 @@ data ComplexUnionArray
2632 | StringInComplexUnionArray Text
2733 deriving (Show)
2834
35+data LocalDate = LocalDate
36+ {
37+ } deriving (Show)
38+
39+data OffsetDateTime = OffsetDateTime
40+ {
41+ } deriving (Show)
42+
43+data OffsetTime = OffsetTime
44+ {
45+ } deriving (Show)
46+
2947 decodeTopLevel :: ByteString -> Maybe QuickType
3048 decodeTopLevel = decode
3149
3250 instance ToJSON QuickType where
33- toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType timeQuickType unionArrayQuickType) =
51+ toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType localDateClassQuickType offsetDateTimeClassQuickType offsetTimeClassQuickType timeQuickType unionArrayQuickType) =
3452 object $ foldMap (maybe [] pure)
3553 [ Just $ "complex-union-array" .= complexUnionArrayQuickType
3654 , Just $ "date" .= dateQuickType
3755 , Just $ "date-time" .= dateTimeQuickType
56+ , ("local-date-class" .=) <$> localDateClassQuickType
57+ , ("offset-date-time-class" .=) <$> offsetDateTimeClassQuickType
58+ , ("offset-time-class" .=) <$> offsetTimeClassQuickType
3859 , Just $ "time" .= timeQuickType
3960 , Just $ "union-array" .= unionArrayQuickType
4061 ]
@@ -44,6 +65,9 @@ instance FromJSON QuickType where
4465 <$> v .: "complex-union-array"
4566 <*> v .: "date"
4667 <*> v .: "date-time"
68+ <*> v .:! "local-date-class"
69+ <*> v .:! "offset-date-time-class"
70+ <*> v .:! "offset-time-class"
4771 <*> v .: "time"
4872 <*> v .: "union-array"
4973
@@ -54,3 +78,21 @@ instance ToJSON ComplexUnionArray where
5478 instance FromJSON ComplexUnionArray where
5579 parseJSON xs@(Number _) = (fmap IntegerInComplexUnionArray . parseJSON) xs
5680 parseJSON xs@(String _) = (fmap StringInComplexUnionArray . parseJSON) xs
81+
82+instance ToJSON LocalDate where
83+ toJSON = \_ -> emptyObject
84+
85+instance FromJSON LocalDate where
86+ parseJSON (Object _) = return LocalDate
87+
88+instance ToJSON OffsetDateTime where
89+ toJSON = \_ -> emptyObject
90+
91+instance FromJSON OffsetDateTime where
92+ parseJSON (Object _) = return OffsetDateTime
93+
94+instance ToJSON OffsetTime where
95+ toJSON = \_ -> emptyObject
96+
97+instance FromJSON OffsetTime where
98+ parseJSON (Object _) = return OffsetTime
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClassClass.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 LocalDateClassClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.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 OffsetDateTimeClassClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClassClass.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 OffsetTimeClassClass {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -10,6 +10,9 @@ public class TopLevel {
1010 private List<ComplexUnionArrayElement> complexUnionArray;
1111 private LocalDate date;
1212 private OffsetDateTime dateTime;
13+ private LocalDateClassClass localDateClass;
14+ private OffsetDateTimeClassClass offsetDateTimeClass;
15+ private OffsetTimeClassClass offsetTimeClass;
1316 private OffsetTime time;
1417 private List<UnionArray> unionArray;
1518
@@ -29,6 +32,21 @@ public class TopLevel {
2932 @JsonSetter(nulls = Nulls.FAIL)
3033 public void setDateTime(OffsetDateTime value) { this.dateTime = value; }
3134
35+ @JsonProperty("local-date-class")
36+ public LocalDateClassClass getLocalDateClass() { return localDateClass; }
37+ @JsonProperty("local-date-class")
38+ public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; }
39+
40+ @JsonProperty("offset-date-time-class")
41+ public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; }
42+ @JsonProperty("offset-date-time-class")
43+ public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; }
44+
45+ @JsonProperty("offset-time-class")
46+ public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; }
47+ @JsonProperty("offset-time-class")
48+ public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; }
49+
3250 @JsonProperty("time")
3351 public OffsetTime getTime() { return time; }
3452 @JsonProperty("time")
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClassClass.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 LocalDateClassClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.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 OffsetDateTimeClassClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClassClass.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 OffsetTimeClassClass {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -10,6 +10,9 @@ public class TopLevel {
1010 private List<ComplexUnionArrayElement> complexUnionArray;
1111 private LocalDate date;
1212 private OffsetDateTime dateTime;
13+ private LocalDateClassClass localDateClass;
14+ private OffsetDateTimeClassClass offsetDateTimeClass;
15+ private OffsetTimeClassClass offsetTimeClass;
1316 private OffsetTime time;
1417 private List<UnionArray> unionArray;
1518
@@ -29,6 +32,21 @@ public class TopLevel {
2932 @JsonSetter(nulls = Nulls.FAIL)
3033 public void setDateTime(OffsetDateTime value) { this.dateTime = value; }
3134
35+ @JsonProperty("local-date-class")
36+ public LocalDateClassClass getLocalDateClass() { return localDateClass; }
37+ @JsonProperty("local-date-class")
38+ public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; }
39+
40+ @JsonProperty("offset-date-time-class")
41+ public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; }
42+ @JsonProperty("offset-date-time-class")
43+ public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; }
44+
45+ @JsonProperty("offset-time-class")
46+ public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; }
47+ @JsonProperty("offset-time-class")
48+ public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; }
49+
3250 @JsonProperty("time")
3351 public OffsetTime getTime() { return time; }
3452 @JsonProperty("time")
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
@@ -14,11 +14,23 @@ import PropTypes from "prop-types";
1414 const Integer = (props, name) => props[name] == null || Number.isInteger(props[name]) ? null : new Error("Expected integer");
1515
1616 let _TopLevel;
17+let _LocalDate;
18+let _OffsetDateTime;
19+let _OffsetTime;
1720 const _ComplexUnionArrayEnum = PropTypes.oneOf(['foo', 'bar']);
21+_LocalDate = PropTypes.shape({
22+});
23+_OffsetDateTime = PropTypes.shape({
24+});
25+_OffsetTime = PropTypes.shape({
26+});
1827 _TopLevel = PropTypes.shape({
1928 "complex-union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time"), _ComplexUnionArrayEnum, Integer]))]).isRequired,
2029 "date": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired,
2130 "date-time": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired,
31+ "local-date-class": PropTypes.oneOfType([_LocalDate, PropTypes.oneOf([null])]),
32+ "offset-date-time-class": PropTypes.oneOfType([_OffsetDateTime, PropTypes.oneOf([null])]),
33+ "offset-time-class": PropTypes.oneOfType([_OffsetTime, PropTypes.oneOf([null])]),
2234 "time": PropTypes.oneOfType([PropTypes.string]).isRequired,
2335 "union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string)]).isRequired,
2436 });
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -196,9 +196,18 @@ const typeMap = {
196196 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
197197 { json: "date", js: "date", typ: Date },
198198 { json: "date-time", js: "date-time", typ: Date },
199+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) },
200+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) },
201+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) },
199202 { json: "time", js: "time", typ: "" },
200203 { json: "union-array", js: "union-array", typ: a("") },
201204 ], false),
205+ "LocalDate": o([
206+ ], false),
207+ "OffsetDateTime": o([
208+ ], false),
209+ "OffsetTime": o([
210+ ], false),
202211 "ComplexUnionArrayEnum": [
203212 "foo",
204213 "bar",
Mschema-kotlin-jacksondefault / TopLevel.kt+15 −0
@@ -50,6 +50,15 @@ data class TopLevel (
5050 @get:JsonProperty("date-time", required=true)@field:JsonProperty("date-time", required=true)
5151 val dateTime: OffsetDateTime,
5252
53+ @get:JsonProperty("local-date-class")@field:JsonProperty("local-date-class")
54+ val localDateClass: LocalDateClassClass? = null,
55+
56+ @get:JsonProperty("offset-date-time-class")@field:JsonProperty("offset-date-time-class")
57+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
58+
59+ @get:JsonProperty("offset-time-class")@field:JsonProperty("offset-time-class")
60+ val offsetTimeClass: OffsetTimeClassClass? = null,
61+
5362 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
5463 val time: OffsetTime,
5564
@@ -96,6 +105,12 @@ enum class ComplexUnionArrayEnum(val value: String) {
96105 }
97106 }
98107
108+typealias LocalDateClassClass = ObjectNode
109+
110+typealias OffsetDateTimeClassClass = ObjectNode
111+
112+typealias OffsetTimeClassClass = ObjectNode
113+
99114 sealed class UnionArray {
100115 class DateTimeValue(val value: OffsetDateTime) : UnionArray()
101116 class DateValue(val value: LocalDate) : UnionArray()
Mschema-kotlindefault / TopLevel.kt+16 −0
@@ -22,6 +22,7 @@ private val klaxon = Klaxon()
2222 .convert(OffsetDateTime::class, { OffsetDateTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)}\"" })
2323 .convert(LocalDate::class, { LocalDate.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.format(it)}\"" })
2424 .convert(OffsetTime::class, { OffsetTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_TIME.format(it)}\"" })
25+ .convert(JsonObject::class, { it.obj!! }, { it.toJsonString() })
2526 .convert(ComplexUnionArrayEnum::class, { ComplexUnionArrayEnum.fromValue(it.string!!) }, { Klaxon().toJsonString(it.value) })
2627 .convert(ComplexUnionArrayElement::class, { ComplexUnionArrayElement.fromJson(it) }, { it.toJson() }, true)
2728 .convert(UnionArray::class, { UnionArray.fromJson(it) }, { it.toJson() }, true)
@@ -35,6 +36,15 @@ data class TopLevel (
3536 @Json(name = "date-time")
3637 val dateTime: OffsetDateTime,
3738
39+ @Json(name = "local-date-class")
40+ val localDateClass: LocalDateClassClass? = null,
41+
42+ @Json(name = "offset-date-time-class")
43+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
44+
45+ @Json(name = "offset-time-class")
46+ val offsetTimeClass: OffsetTimeClassClass? = null,
47+
3848 val time: OffsetTime,
3949
4050 @Json(name = "union-array")
@@ -80,6 +90,12 @@ enum class ComplexUnionArrayEnum(val value: String) {
8090 }
8191 }
8292
93+typealias LocalDateClassClass = JsonObject
94+
95+typealias OffsetDateTimeClassClass = JsonObject
96+
97+typealias OffsetTimeClassClass = JsonObject
98+
8399 sealed class UnionArray {
84100 class DateTimeValue(val value: OffsetDateTime) : UnionArray()
85101 class DateValue(val value: LocalDate) : UnionArray()
Mschema-kotlinxdefault / TopLevel.kt+18 −0
@@ -26,6 +26,15 @@ data class TopLevel (
2626 @SerialName("date-time")
2727 val dateTime: OffsetDateTime,
2828
29+ @SerialName("local-date-class")
30+ val localDateClass: LocalDateClassClass? = null,
31+
32+ @SerialName("offset-date-time-class")
33+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
34+
35+ @SerialName("offset-time-class")
36+ val offsetTimeClass: OffsetTimeClassClass? = null,
37+
2938 val time: OffsetTime,
3039
3140 @SerialName("union-array")
@@ -40,6 +49,15 @@ enum class ComplexUnionArrayEnum(val value: String) {
4049 @SerialName("bar") Bar("bar");
4150 }
4251
52+@Serializable
53+class LocalDateClassClass()
54+
55+@Serializable
56+class OffsetDateTimeClassClass()
57+
58+@Serializable
59+class OffsetTimeClassClass()
60+
4361 typealias UnionArray = JsonElement
4462
4563 object OffsetDateTimeSerializer : KSerializer<OffsetDateTime> {
Mschema-objective-cdefault / QTTopLevel.h+20 −5
@@ -7,6 +7,9 @@
77
88 @class QTTopLevel;
99 @class QTComplexUnionArrayEnum;
10+@class QTLocalDate;
11+@class QTOffsetDateTime;
12+@class QTOffsetTime;
1013
1114 NS_ASSUME_NONNULL_BEGIN
1215
@@ -29,11 +32,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
2932 #pragma mark - Object interfaces
3033
3134 @interface QTTopLevel : NSObject
32-@property (nonatomic, copy) NSArray<id> *complexUnionArray;
33-@property (nonatomic, copy) NSString *date;
34-@property (nonatomic, copy) NSString *dateTime;
35-@property (nonatomic, copy) NSString *time;
36-@property (nonatomic, copy) NSArray<NSString *> *unionArray;
35+@property (nonatomic, copy) NSArray<id> *complexUnionArray;
36+@property (nonatomic, copy) NSString *date;
37+@property (nonatomic, copy) NSString *dateTime;
38+@property (nonatomic, nullable, strong) QTLocalDate *localDateClass;
39+@property (nonatomic, nullable, strong) QTOffsetDateTime *offsetDateTimeClass;
40+@property (nonatomic, nullable, strong) QTOffsetTime *offsetTimeClass;
41+@property (nonatomic, copy) NSString *time;
42+@property (nonatomic, copy) NSArray<NSString *> *unionArray;
3743
3844 + (_Nullable instancetype)fromJSON:(NSString *)json encoding:(NSStringEncoding)encoding error:(NSError *_Nullable *)error;
3945 + (_Nullable instancetype)fromData:(NSData *)data error:(NSError *_Nullable *)error;
@@ -41,4 +47,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
4147 - (NSData *_Nullable)toData:(NSError *_Nullable *)error;
4248 @end
4349
50+@interface QTLocalDate : NSObject
51+@end
52+
53+@interface QTOffsetDateTime : NSObject
54+@end
55+
56+@interface QTOffsetTime : NSObject
57+@end
58+
4459 NS_ASSUME_NONNULL_END
Mschema-objective-cdefault / QTTopLevel.m+147 −0
@@ -13,6 +13,21 @@ NS_ASSUME_NONNULL_BEGIN
1313 - (NSDictionary *)JSONDictionary;
1414 @end
1515
16+@interface QTLocalDate (JSONConversion)
17++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
18+- (NSDictionary *)JSONDictionary;
19+@end
20+
21+@interface QTOffsetDateTime (JSONConversion)
22++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
23+- (NSDictionary *)JSONDictionary;
24+@end
25+
26+@interface QTOffsetTime (JSONConversion)
27++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
28+- (NSDictionary *)JSONDictionary;
29+@end
30+
1631 @implementation QTComplexUnionArrayEnum
1732 + (NSDictionary<NSString *, QTComplexUnionArrayEnum *> *)values
1833 {
@@ -96,6 +111,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
96111 @"complex-union-array": @"complexUnionArray",
97112 @"date": @"date",
98113 @"date-time": @"dateTime",
114+ @"local-date-class": @"localDateClass",
115+ @"offset-date-time-class": @"offsetDateTimeClass",
116+ @"offset-time-class": @"offsetTimeClass",
99117 @"time": @"time",
100118 @"union-array": @"unionArray",
101119 };
@@ -126,6 +144,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
126144 if (![dict[@"time"] isKindOfClass:NSString.class]) return nil;
127145 if (![dict[@"union-array"] isKindOfClass:NSArray.class]) return nil;
128146 [self setValuesForKeysWithDictionary:dict];
147+ _localDateClass = [QTLocalDate fromJSONDictionary:(id)_localDateClass];
148+ if (!_localDateClass && dict[@"local-date-class"] && ![dict[@"local-date-class"] isKindOfClass:NSNull.class]) return nil;
149+ _offsetDateTimeClass = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTimeClass];
150+ if (!_offsetDateTimeClass && dict[@"offset-date-time-class"] && ![dict[@"offset-date-time-class"] isKindOfClass:NSNull.class]) return nil;
151+ _offsetTimeClass = [QTOffsetTime fromJSONDictionary:(id)_offsetTimeClass];
152+ if (!_offsetTimeClass && dict[@"offset-time-class"] && ![dict[@"offset-time-class"] isKindOfClass:NSNull.class]) return nil;
129153 }
130154 return self;
131155 }
@@ -154,6 +178,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
154178 }
155179 }
156180
181+ [dict addEntriesFromDictionary:@{
182+ @"local-date-class": NSNullify([_localDateClass isKindOfClass:NSNull.class] ? nil : [_localDateClass JSONDictionary]),
183+ @"offset-date-time-class": NSNullify([_offsetDateTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetDateTimeClass JSONDictionary]),
184+ @"offset-time-class": NSNullify([_offsetTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetTimeClass JSONDictionary]),
185+ }];
186+
157187 return dict;
158188 }
159189
@@ -168,4 +198,121 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
168198 }
169199 @end
170200
201+@implementation QTLocalDate
202++ (NSDictionary<NSString *, NSString *> *)properties
203+{
204+ static NSDictionary<NSString *, NSString *> *properties;
205+ return properties = properties ? properties : @{
206+ };
207+}
208+
209++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
210+{
211+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
212+}
213+
214+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
215+{
216+ if (self = [super init]) {
217+ [self setValuesForKeysWithDictionary:dict];
218+ }
219+ return self;
220+}
221+
222+- (void)setValue:(nullable id)value forKey:(NSString *)key
223+{
224+ id resolved = QTLocalDate.properties[key];
225+ if (resolved) [super setValue:value forKey:resolved];
226+}
227+
228+- (void)setNilValueForKey:(NSString *)key
229+{
230+ id resolved = QTLocalDate.properties[key];
231+ if (resolved) [super setValue:@(0) forKey:resolved];
232+}
233+
234+- (NSDictionary *)JSONDictionary
235+{
236+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
237+}
238+@end
239+
240+@implementation QTOffsetDateTime
241++ (NSDictionary<NSString *, NSString *> *)properties
242+{
243+ static NSDictionary<NSString *, NSString *> *properties;
244+ return properties = properties ? properties : @{
245+ };
246+}
247+
248++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
249+{
250+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
251+}
252+
253+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
254+{
255+ if (self = [super init]) {
256+ [self setValuesForKeysWithDictionary:dict];
257+ }
258+ return self;
259+}
260+
261+- (void)setValue:(nullable id)value forKey:(NSString *)key
262+{
263+ id resolved = QTOffsetDateTime.properties[key];
264+ if (resolved) [super setValue:value forKey:resolved];
265+}
266+
267+- (void)setNilValueForKey:(NSString *)key
268+{
269+ id resolved = QTOffsetDateTime.properties[key];
270+ if (resolved) [super setValue:@(0) forKey:resolved];
271+}
272+
273+- (NSDictionary *)JSONDictionary
274+{
275+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
276+}
277+@end
278+
279+@implementation QTOffsetTime
280++ (NSDictionary<NSString *, NSString *> *)properties
281+{
282+ static NSDictionary<NSString *, NSString *> *properties;
283+ return properties = properties ? properties : @{
284+ };
285+}
286+
287++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
288+{
289+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
290+}
291+
292+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
293+{
294+ if (self = [super init]) {
295+ [self setValuesForKeysWithDictionary:dict];
296+ }
297+ return self;
298+}
299+
300+- (void)setValue:(nullable id)value forKey:(NSString *)key
301+{
302+ id resolved = QTOffsetTime.properties[key];
303+ if (resolved) [super setValue:value forKey:resolved];
304+}
305+
306+- (void)setNilValueForKey:(NSString *)key
307+{
308+ id resolved = QTOffsetTime.properties[key];
309+ if (resolved) [super setValue:@(0) forKey:resolved];
310+}
311+
312+- (NSDictionary *)JSONDictionary
313+{
314+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
315+}
316+@end
317+
171318 NS_ASSUME_NONNULL_END
Mschema-phpdefault / TopLevel.php+334 −4
@@ -7,6 +7,9 @@ class TopLevel {
77 private array $complexUnionArray; // json:complex-union-array Required
88 private string $date; // json:date Required
99 private DateTime $dateTime; // json:date-time Required
10+ private ?LocalDate $localDateClass; // json:local-date-class Optional
11+ private ?OffsetDateTime $offsetDateTimeClass; // json:offset-date-time-class Optional
12+ private ?OffsetTime $offsetTimeClass; // json:offset-time-class Optional
1013 private string $time; // json:time Required
1114 private array $unionArray; // json:union-array Required
1215
@@ -14,13 +17,19 @@ class TopLevel {
1417 * @param array $complexUnionArray
1518 * @param string $date
1619 * @param DateTime $dateTime
20+ * @param LocalDate|null $localDateClass
21+ * @param OffsetDateTime|null $offsetDateTimeClass
22+ * @param OffsetTime|null $offsetTimeClass
1723 * @param string $time
1824 * @param array $unionArray
1925 */
20- public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, string $time, array $unionArray) {
26+ public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, ?LocalDate $localDateClass, ?OffsetDateTime $offsetDateTimeClass, ?OffsetTime $offsetTimeClass, string $time, array $unionArray) {
2127 $this->complexUnionArray = $complexUnionArray;
2228 $this->date = $date;
2329 $this->dateTime = $dateTime;
30+ $this->localDateClass = $localDateClass;
31+ $this->offsetDateTimeClass = $offsetDateTimeClass;
32+ $this->offsetTimeClass = $offsetTimeClass;
2433 $this->time = $time;
2534 $this->unionArray = $unionArray;
2635 }
@@ -217,6 +226,180 @@ class TopLevel {
217226 return DateTime::createFromFormat(DateTimeInterface::ISO8601, '2020-12-30T12:30:30+00:00');
218227 }
219228
229+ /**
230+ * @param ?stdClass $value
231+ * @throws Exception
232+ * @return ?LocalDate
233+ */
234+ public static function fromLocalDateClass(?stdClass $value): ?LocalDate {
235+ if (!is_null($value)) {
236+ return LocalDate::from($value); /*class*/
237+ } else {
238+ return null;
239+ }
240+ }
241+
242+ /**
243+ * @throws Exception
244+ * @return ?stdClass
245+ */
246+ public function toLocalDateClass(): ?stdClass {
247+ if (TopLevel::validateLocalDateClass($this->localDateClass)) {
248+ if (!is_null($this->localDateClass)) {
249+ return $this->localDateClass->to(); /*class*/
250+ } else {
251+ return null;
252+ }
253+ }
254+ throw new Exception('never get to this TopLevel::localDateClass');
255+ }
256+
257+ /**
258+ * @param LocalDate|null
259+ * @return bool
260+ * @throws Exception
261+ */
262+ public static function validateLocalDateClass(?LocalDate $value): bool {
263+ if (!is_null($value)) {
264+ $value->validate();
265+ }
266+ return true;
267+ }
268+
269+ /**
270+ * @throws Exception
271+ * @return ?LocalDate
272+ */
273+ public function getLocalDateClass(): ?LocalDate {
274+ if (TopLevel::validateLocalDateClass($this->localDateClass)) {
275+ return $this->localDateClass;
276+ }
277+ throw new Exception('never get to getLocalDateClass TopLevel::localDateClass');
278+ }
279+
280+ /**
281+ * @return ?LocalDate
282+ */
283+ public static function sampleLocalDateClass(): ?LocalDate {
284+ return LocalDate::sample(); /*34:localDateClass*/
285+ }
286+
287+ /**
288+ * @param ?stdClass $value
289+ * @throws Exception
290+ * @return ?OffsetDateTime
291+ */
292+ public static function fromOffsetDateTimeClass(?stdClass $value): ?OffsetDateTime {
293+ if (!is_null($value)) {
294+ return OffsetDateTime::from($value); /*class*/
295+ } else {
296+ return null;
297+ }
298+ }
299+
300+ /**
301+ * @throws Exception
302+ * @return ?stdClass
303+ */
304+ public function toOffsetDateTimeClass(): ?stdClass {
305+ if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) {
306+ if (!is_null($this->offsetDateTimeClass)) {
307+ return $this->offsetDateTimeClass->to(); /*class*/
308+ } else {
309+ return null;
310+ }
311+ }
312+ throw new Exception('never get to this TopLevel::offsetDateTimeClass');
313+ }
314+
315+ /**
316+ * @param OffsetDateTime|null
317+ * @return bool
318+ * @throws Exception
319+ */
320+ public static function validateOffsetDateTimeClass(?OffsetDateTime $value): bool {
321+ if (!is_null($value)) {
322+ $value->validate();
323+ }
324+ return true;
325+ }
326+
327+ /**
328+ * @throws Exception
329+ * @return ?OffsetDateTime
330+ */
331+ public function getOffsetDateTimeClass(): ?OffsetDateTime {
332+ if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) {
333+ return $this->offsetDateTimeClass;
334+ }
335+ throw new Exception('never get to getOffsetDateTimeClass TopLevel::offsetDateTimeClass');
336+ }
337+
338+ /**
339+ * @return ?OffsetDateTime
340+ */
341+ public static function sampleOffsetDateTimeClass(): ?OffsetDateTime {
342+ return OffsetDateTime::sample(); /*35:offsetDateTimeClass*/
343+ }
344+
345+ /**
346+ * @param ?stdClass $value
347+ * @throws Exception
348+ * @return ?OffsetTime
349+ */
350+ public static function fromOffsetTimeClass(?stdClass $value): ?OffsetTime {
351+ if (!is_null($value)) {
352+ return OffsetTime::from($value); /*class*/
353+ } else {
354+ return null;
355+ }
356+ }
357+
358+ /**
359+ * @throws Exception
360+ * @return ?stdClass
361+ */
362+ public function toOffsetTimeClass(): ?stdClass {
363+ if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) {
364+ if (!is_null($this->offsetTimeClass)) {
365+ return $this->offsetTimeClass->to(); /*class*/
366+ } else {
367+ return null;
368+ }
369+ }
370+ throw new Exception('never get to this TopLevel::offsetTimeClass');
371+ }
372+
373+ /**
374+ * @param OffsetTime|null
375+ * @return bool
376+ * @throws Exception
377+ */
378+ public static function validateOffsetTimeClass(?OffsetTime $value): bool {
379+ if (!is_null($value)) {
380+ $value->validate();
381+ }
382+ return true;
383+ }
384+
385+ /**
386+ * @throws Exception
387+ * @return ?OffsetTime
388+ */
389+ public function getOffsetTimeClass(): ?OffsetTime {
390+ if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) {
391+ return $this->offsetTimeClass;
392+ }
393+ throw new Exception('never get to getOffsetTimeClass TopLevel::offsetTimeClass');
394+ }
395+
396+ /**
397+ * @return ?OffsetTime
398+ */
399+ public static function sampleOffsetTimeClass(): ?OffsetTime {
400+ return OffsetTime::sample(); /*36:offsetTimeClass*/
401+ }
402+
220403 /**
221404 * @param string $value
222405 * @throws Exception
@@ -261,7 +444,7 @@ class TopLevel {
261444 * @return string
262445 */
263446 public static function sampleTime(): string {
264- return 'TopLevel::time::34'; /*34:time*/
447+ return 'TopLevel::time::37'; /*37:time*/
265448 }
266449
267450 /**
@@ -321,8 +504,8 @@ class TopLevel {
321504 */
322505 public static function sampleUnionArray(): array {
323506 return array(
324- 'TopLevel::::35' /*35:*/
325- ); /* 35:unionArray*/
507+ 'TopLevel::::38' /*38:*/
508+ ); /* 38:unionArray*/
326509 }
327510
328511 /**
@@ -333,6 +516,9 @@ class TopLevel {
333516 return TopLevel::validateComplexUnionArray($this->complexUnionArray)
334517 || TopLevel::validateDate($this->date)
335518 || TopLevel::validateDateTime($this->dateTime)
519+ || TopLevel::validateLocalDateClass($this->localDateClass)
520+ || TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)
521+ || TopLevel::validateOffsetTimeClass($this->offsetTimeClass)
336522 || TopLevel::validateTime($this->time)
337523 || TopLevel::validateUnionArray($this->unionArray);
338524 }
@@ -346,6 +532,9 @@ class TopLevel {
346532 $out->{'complex-union-array'} = $this->toComplexUnionArray();
347533 $out->{'date'} = $this->toDate();
348534 $out->{'date-time'} = $this->toDateTime();
535+ $out->{'local-date-class'} = $this->toLocalDateClass();
536+ $out->{'offset-date-time-class'} = $this->toOffsetDateTimeClass();
537+ $out->{'offset-time-class'} = $this->toOffsetTimeClass();
349538 $out->{'time'} = $this->toTime();
350539 $out->{'union-array'} = $this->toUnionArray();
351540 return $out;
@@ -376,6 +565,9 @@ class TopLevel {
376565 TopLevel::fromComplexUnionArray($obj->{'complex-union-array'})
377566 ,TopLevel::fromDate($obj->{'date'})
378567 ,TopLevel::fromDateTime($obj->{'date-time'})
568+ ,TopLevel::fromLocalDateClass($obj->{'local-date-class'})
569+ ,TopLevel::fromOffsetDateTimeClass($obj->{'offset-date-time-class'})
570+ ,TopLevel::fromOffsetTimeClass($obj->{'offset-time-class'})
379571 ,TopLevel::fromTime($obj->{'time'})
380572 ,TopLevel::fromUnionArray($obj->{'union-array'})
381573 );
@@ -389,6 +581,9 @@ class TopLevel {
389581 TopLevel::sampleComplexUnionArray()
390582 ,TopLevel::sampleDate()
391583 ,TopLevel::sampleDateTime()
584+ ,TopLevel::sampleLocalDateClass()
585+ ,TopLevel::sampleOffsetDateTimeClass()
586+ ,TopLevel::sampleOffsetTimeClass()
392587 ,TopLevel::sampleTime()
393588 ,TopLevel::sampleUnionArray()
394589 );
@@ -443,3 +638,138 @@ class ComplexUnionArray {
443638 }
444639 }
445640 ComplexUnionArray::init();
641+
642+// This is an autogenerated file:LocalDate
643+
644+class LocalDate {
645+
646+ /**
647+ */
648+ public function __construct() {
649+ }
650+
651+ /**
652+ * @throws Exception
653+ * @return bool
654+ */
655+ public function validate(): bool {
656+ return true;
657+ }
658+
659+ /**
660+ * @return stdClass
661+ * @throws Exception
662+ */
663+ public function to(): stdClass {
664+ $out = new stdClass();
665+ return $out;
666+ }
667+
668+ /**
669+ * @param stdClass $obj
670+ * @return LocalDate
671+ * @throws Exception
672+ */
673+ public static function from(stdClass $obj): LocalDate {
674+ return new LocalDate(
675+ );
676+ }
677+
678+ /**
679+ * @return LocalDate
680+ */
681+ public static function sample(): LocalDate {
682+ return new LocalDate(
683+ );
684+ }
685+}
686+
687+// This is an autogenerated file:OffsetDateTime
688+
689+class OffsetDateTime {
690+
691+ /**
692+ */
693+ public function __construct() {
694+ }
695+
696+ /**
697+ * @throws Exception
698+ * @return bool
699+ */
700+ public function validate(): bool {
701+ return true;
702+ }
703+
704+ /**
705+ * @return stdClass
706+ * @throws Exception
707+ */
708+ public function to(): stdClass {
709+ $out = new stdClass();
710+ return $out;
711+ }
712+
713+ /**
714+ * @param stdClass $obj
715+ * @return OffsetDateTime
716+ * @throws Exception
717+ */
718+ public static function from(stdClass $obj): OffsetDateTime {
719+ return new OffsetDateTime(
720+ );
721+ }
722+
723+ /**
724+ * @return OffsetDateTime
725+ */
726+ public static function sample(): OffsetDateTime {
727+ return new OffsetDateTime(
728+ );
729+ }
730+}
731+
732+// This is an autogenerated file:OffsetTime
733+
734+class OffsetTime {
735+
736+ /**
737+ */
738+ public function __construct() {
739+ }
740+
741+ /**
742+ * @throws Exception
743+ * @return bool
744+ */
745+ public function validate(): bool {
746+ return true;
747+ }
748+
749+ /**
750+ * @return stdClass
751+ * @throws Exception
752+ */
753+ public function to(): stdClass {
754+ $out = new stdClass();
755+ return $out;
756+ }
757+
758+ /**
759+ * @param stdClass $obj
760+ * @return OffsetTime
761+ * @throws Exception
762+ */
763+ public static function from(stdClass $obj): OffsetTime {
764+ return new OffsetTime(
765+ );
766+ }
767+
768+ /**
769+ * @return OffsetTime
770+ */
771+ public static function sample(): OffsetTime {
772+ return new OffsetTime(
773+ );
774+ }
775+}
Mschema-pikedefault / TopLevel.pmod+62 −5
@@ -13,17 +13,23 @@
1313 // match the expected interface, even if the JSON itself is valid.
1414
1515 class TopLevel {
16- array(ComplexUnionArray) complex_union_array; // json: "complex-union-array"
17- string date; // json: "date"
18- string date_time; // json: "date-time"
19- string time; // json: "time"
20- array(string) union_array; // json: "union-array"
16+ array(ComplexUnionArray) complex_union_array; // json: "complex-union-array"
17+ string date; // json: "date"
18+ string date_time; // json: "date-time"
19+ LocalDate|mixed local_date_class; // json: "local-date-class"
20+ OffsetDateTime|mixed offset_date_time_class; // json: "offset-date-time-class"
21+ OffsetTime|mixed offset_time_class; // json: "offset-time-class"
22+ string time; // json: "time"
23+ array(string) union_array; // json: "union-array"
2124
2225 string encode_json() {
2326 mapping(string:mixed) json = ([
2427 "complex-union-array" : complex_union_array,
2528 "date" : date,
2629 "date-time" : date_time,
30+ "local-date-class" : local_date_class,
31+ "offset-date-time-class" : offset_date_time_class,
32+ "offset-time-class" : offset_time_class,
2733 "time" : time,
2834 "union-array" : union_array,
2935 ]);
@@ -38,6 +44,9 @@ TopLevel TopLevel_from_JSON(mixed json) {
3844 retval.complex_union_array = json["complex-union-array"];
3945 retval.date = json["date"];
4046 retval.date_time = json["date-time"];
47+ retval.local_date_class = json["local-date-class"];
48+ retval.offset_date_time_class = json["offset-date-time-class"];
49+ retval.offset_time_class = json["offset-time-class"];
4150 retval.time = json["time"];
4251 retval.union_array = json["union-array"];
4352
@@ -49,3 +58,51 @@ typedef int|string ComplexUnionArray;
4958 ComplexUnionArray ComplexUnionArray_from_JSON(mixed json) {
5059 return json;
5160 }
61+
62+class LocalDate {
63+
64+ string encode_json() {
65+ mapping(string:mixed) json = ([
66+ ]);
67+
68+ return Standards.JSON.encode(json);
69+ }
70+}
71+
72+LocalDate LocalDate_from_JSON(mixed json) {
73+ LocalDate retval = LocalDate();
74+
75+ return retval;
76+}
77+
78+class OffsetDateTime {
79+
80+ string encode_json() {
81+ mapping(string:mixed) json = ([
82+ ]);
83+
84+ return Standards.JSON.encode(json);
85+ }
86+}
87+
88+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
89+ OffsetDateTime retval = OffsetDateTime();
90+
91+ return retval;
92+}
93+
94+class OffsetTime {
95+
96+ string encode_json() {
97+ mapping(string:mixed) json = ([
98+ ]);
99+
100+ return Standards.JSON.encode(json);
101+ }
102+}
103+
104+OffsetTime OffsetTime_from_JSON(mixed json) {
105+ OffsetTime retval = OffsetTime();
106+
107+ return retval;
108+}
Mschema-pythondefault / quicktype.py+60 −1
@@ -43,6 +43,11 @@ def from_time(x: Any) -> datetime.time:
4343 return dateutil.parser.parse(x).timetz()
4444
4545
46+def from_none(x: Any) -> Any:
47+ assert x is None
48+ return x
49+
50+
4651 def to_enum(c: Type[EnumT], x: Any) -> EnumT:
4752 assert isinstance(x, c)
4853 return x.value
@@ -58,6 +63,48 @@ class ComplexUnionArrayEnum(Enum):
5863 BAR = "bar"
5964
6065
66+@dataclass
67+class LocalDate:
68+ pass
69+
70+ @staticmethod
71+ def from_dict(obj: Any) -> 'LocalDate':
72+ assert isinstance(obj, dict)
73+ return LocalDate()
74+
75+ def to_dict(self) -> dict:
76+ result: dict = {}
77+ return result
78+
79+
80+@dataclass
81+class OffsetDateTime:
82+ pass
83+
84+ @staticmethod
85+ def from_dict(obj: Any) -> 'OffsetDateTime':
86+ assert isinstance(obj, dict)
87+ return OffsetDateTime()
88+
89+ def to_dict(self) -> dict:
90+ result: dict = {}
91+ return result
92+
93+
94+@dataclass
95+class OffsetTime:
96+ pass
97+
98+ @staticmethod
99+ def from_dict(obj: Any) -> 'OffsetTime':
100+ assert isinstance(obj, dict)
101+ return OffsetTime()
102+
103+ def to_dict(self) -> dict:
104+ result: dict = {}
105+ return result
106+
107+
61108 @dataclass
62109 class TopLevel:
63110 complex_union_array: list[int | ComplexUnionArrayEnum | datetime.datetime]
@@ -65,6 +112,9 @@ class TopLevel:
65112 date_time: datetime.datetime
66113 time: datetime.time
67114 union_array: list[datetime.date | datetime.time | datetime.datetime]
115+ local_date_class: LocalDate | None = None
116+ offset_date_time_class: OffsetDateTime | None = None
117+ offset_time_class: OffsetTime | None = None
68118
69119 @staticmethod
70120 def from_dict(obj: Any) -> 'TopLevel':
@@ -74,7 +124,10 @@ class TopLevel:
74124 date_time = from_datetime(obj["date-time"])
75125 time = from_time(obj["time"])
76126 union_array = from_list(lambda x: from_union([from_date, from_time, from_datetime], x), obj["union-array"])
77- return TopLevel(complex_union_array, date, date_time, time, union_array)
127+ local_date_class = from_union([LocalDate.from_dict, from_none], obj.get("local-date-class"))
128+ offset_date_time_class = from_union([OffsetDateTime.from_dict, from_none], obj.get("offset-date-time-class"))
129+ offset_time_class = from_union([OffsetTime.from_dict, from_none], obj.get("offset-time-class"))
130+ return TopLevel(complex_union_array, date, date_time, time, union_array, local_date_class, offset_date_time_class, offset_time_class)
78131
79132 def to_dict(self) -> dict:
80133 result: dict = {}
@@ -83,6 +136,12 @@ class TopLevel:
83136 result["date-time"] = self.date_time.isoformat()
84137 result["time"] = self.time.isoformat()
85138 result["union-array"] = from_list(lambda x: from_union([lambda x: x.isoformat(), lambda x: x.isoformat(), lambda x: x.isoformat()], x), self.union_array)
139+ if self.local_date_class is not None:
140+ result["local-date-class"] = from_union([lambda x: to_class(LocalDate, x), from_none], self.local_date_class)
141+ if self.offset_date_time_class is not None:
142+ result["offset-date-time-class"] = from_union([lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time_class)
143+ if self.offset_time_class is not None:
144+ result["offset-time-class"] = from_union([lambda x: to_class(OffsetTime, x), from_none], self.offset_time_class)
86145 return result
Mschema-rubydefault / TopLevel.rb+90 −15
@@ -63,21 +63,93 @@ class ComplexUnionArrayElement < Dry::Struct
6363 end
6464 end
6565
66+class LocalDate < Dry::Struct
67+
68+ def self.from_dynamic!(d)
69+ d = Types::Hash[d]
70+ new(
71+ )
72+ end
73+
74+ def self.from_json!(json)
75+ from_dynamic!(JSON.parse(json))
76+ end
77+
78+ def to_dynamic
79+ {
80+ }
81+ end
82+
83+ def to_json(options = nil)
84+ JSON.generate(to_dynamic, options)
85+ end
86+end
87+
88+class OffsetDateTime < Dry::Struct
89+
90+ def self.from_dynamic!(d)
91+ d = Types::Hash[d]
92+ new(
93+ )
94+ end
95+
96+ def self.from_json!(json)
97+ from_dynamic!(JSON.parse(json))
98+ end
99+
100+ def to_dynamic
101+ {
102+ }
103+ end
104+
105+ def to_json(options = nil)
106+ JSON.generate(to_dynamic, options)
107+ end
108+end
109+
110+class OffsetTime < Dry::Struct
111+
112+ def self.from_dynamic!(d)
113+ d = Types::Hash[d]
114+ new(
115+ )
116+ end
117+
118+ def self.from_json!(json)
119+ from_dynamic!(JSON.parse(json))
120+ end
121+
122+ def to_dynamic
123+ {
124+ }
125+ end
126+
127+ def to_json(options = nil)
128+ JSON.generate(to_dynamic, options)
129+ end
130+end
131+
66132 class TopLevel < Dry::Struct
67- attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement))
68- attribute :date, Types::String
69- attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i)
70- attribute :time, Types::String
71- attribute :union_array, Types.Array(Types::String)
133+ attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement))
134+ attribute :date, Types::String
135+ attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i)
136+ attribute :local_date_class, LocalDate.optional
137+ attribute :offset_date_time_class, OffsetDateTime.optional
138+ attribute :offset_time_class, OffsetTime.optional
139+ attribute :time, Types::String
140+ attribute :union_array, Types.Array(Types::String)
72141
73142 def self.from_dynamic!(d)
74143 d = Types::Hash[d]
75144 new(
76- complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) },
77- date: d.fetch("date"),
78- date_time: d.fetch("date-time"),
79- time: d.fetch("time"),
80- union_array: d.fetch("union-array"),
145+ complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) },
146+ date: d.fetch("date"),
147+ date_time: d.fetch("date-time"),
148+ local_date_class: d.key?("local-date-class") ? LocalDate.from_dynamic!(d["local-date-class"]) : nil,
149+ offset_date_time_class: d.key?("offset-date-time-class") ? OffsetDateTime.from_dynamic!(d["offset-date-time-class"]) : nil,
150+ offset_time_class: d.key?("offset-time-class") ? OffsetTime.from_dynamic!(d["offset-time-class"]) : nil,
151+ time: d.fetch("time"),
152+ union_array: d.fetch("union-array"),
81153 )
82154 end
83155
@@ -87,11 +159,14 @@ class TopLevel < Dry::Struct
87159
88160 def to_dynamic
89161 {
90- "complex-union-array" => complex_union_array.map { |x| x.to_dynamic },
91- "date" => date,
92- "date-time" => date_time,
93- "time" => time,
94- "union-array" => union_array,
162+ "complex-union-array" => complex_union_array.map { |x| x.to_dynamic },
163+ "date" => date,
164+ "date-time" => date_time,
165+ "local-date-class" => local_date_class&.to_dynamic,
166+ "offset-date-time-class" => offset_date_time_class&.to_dynamic,
167+ "offset-time-class" => offset_time_class&.to_dynamic,
168+ "time" => time,
169+ "union-array" => union_array,
95170 }
96171 end
Mschema-rustdefault / module_under_test.rs+18 −0
@@ -22,6 +22,12 @@ pub struct TopLevel {
2222
2323 pub date_time: String,
2424
25+ pub local_date_class: Option<LocalDate>,
26+
27+ pub offset_date_time_class: Option<OffsetDateTime>,
28+
29+ pub offset_time_class: Option<OffsetTime>,
30+
2531 pub time: String,
2632
2733 pub union_array: Vec<String>,
@@ -34,3 +40,15 @@ pub enum ComplexUnionArray {
3440
3541 PurpleString(String),
3642 }
43+
44+#[derive(Debug, Clone, Serialize, Deserialize)]
45+pub struct LocalDate {
46+}
47+
48+#[derive(Debug, Clone, Serialize, Deserialize)]
49+pub struct OffsetDateTime {
50+}
51+
52+#[derive(Debug, Clone, Serialize, Deserialize)]
53+pub struct OffsetTime {
54+}
Mschema-scala3-upickledefault / TopLevel.scala+10 −0
@@ -82,6 +82,9 @@ case class TopLevel (
8282 val `complex-union-array` : Seq[ComplexUnionArrayElement],
8383 val date : String,
8484 val `date-time` : java.time.Instant,
85+ val `local-date-class` : Option[LocalDate] = None,
86+ val `offset-date-time-class` : Option[OffsetDateTime] = None,
87+ val `offset-time-class` : Option[OffsetTime] = None,
8588 val time : String,
8689 val `union-array` : Seq[String]
8790 ) derives OptionPickler.ReadWriter
@@ -115,3 +118,10 @@ given OptionPickler.ReadWriter[ComplexUnionArrayEnum] = OptionPickler.readwriter
115118 case other => throw new upickle.core.Abort("invalid ComplexUnionArrayEnum: " + other)
116119 }
117120 )
121+
122+case class LocalDate()
123+ derives OptionPickler.ReadWriter
124+case class OffsetDateTime()
125+ derives OptionPickler.ReadWriter
126+case class OffsetTime()
127+ derives OptionPickler.ReadWriter
\ No newline at end of file
Mschema-scala3default / TopLevel.scala+9 −0
@@ -11,6 +11,9 @@ case class TopLevel (
1111 val `complex-union-array` : Seq[ComplexUnionArrayElement],
1212 val date : String,
1313 val `date-time` : java.time.Instant,
14+ val `local-date-class` : Option[LocalDate] = None,
15+ val `offset-date-time-class` : Option[OffsetDateTime] = None,
16+ val `offset-time-class` : Option[OffsetTime] = None,
1417 val time : String,
1518 val `union-array` : Seq[String]
1619 ) derives Encoder.AsObject, Decoder
@@ -43,3 +46,9 @@ given Encoder[ComplexUnionArrayEnum] = Encoder.encodeString.contramap {
4346 case ComplexUnionArrayEnum.Foo => "foo"
4447 case ComplexUnionArrayEnum.Bar => "bar"
4548 }
49+
50+case class LocalDate() derives Encoder.AsObject, Decoder
51+
52+case class OffsetDateTime() derives Encoder.AsObject, Decoder
53+
54+case class OffsetTime() derives Encoder.AsObject, Decoder
Mschema-schemadefault / TopLevel.schema+24 −0
@@ -20,6 +20,15 @@
2020 "type": "string",
2121 "format": "date-time"
2222 },
23+ "local-date-class": {
24+ "$ref": "#/definitions/LocalDate"
25+ },
26+ "offset-date-time-class": {
27+ "$ref": "#/definitions/OffsetDateTime"
28+ },
29+ "offset-time-class": {
30+ "$ref": "#/definitions/OffsetTime"
31+ },
2332 "time": {
2433 "type": "string",
2534 "format": "time"
@@ -40,6 +49,21 @@
4049 ],
4150 "title": "TopLevel"
4251 },
52+ "LocalDate": {
53+ "type": "object",
54+ "additionalProperties": false,
55+ "title": "LocalDate"
56+ },
57+ "OffsetDateTime": {
58+ "type": "object",
59+ "additionalProperties": false,
60+ "title": "OffsetDateTime"
61+ },
62+ "OffsetTime": {
63+ "type": "object",
64+ "additionalProperties": false,
65+ "title": "OffsetTime"
66+ },
4367 "ComplexUnionArrayElement": {
4468 "anyOf": [
4569 {
Mschema-swiftdefault / quicktype.swift+141 −0
@@ -10,6 +10,9 @@ struct TopLevel: Codable {
1010 let complexUnionArray: [ComplexUnionArrayElement]
1111 let date: String
1212 let dateTime: Date
13+ let localDateClass: LocalDate?
14+ let offsetDateTimeClass: OffsetDateTime?
15+ let offsetTimeClass: OffsetTime?
1316 let time: String
1417 let unionArray: [String]
1518
@@ -17,6 +20,9 @@ struct TopLevel: Codable {
1720 case complexUnionArray = "complex-union-array"
1821 case date = "date"
1922 case dateTime = "date-time"
23+ case localDateClass = "local-date-class"
24+ case offsetDateTimeClass = "offset-date-time-class"
25+ case offsetTimeClass = "offset-time-class"
2026 case time = "time"
2127 case unionArray = "union-array"
2228 }
@@ -44,6 +50,9 @@ extension TopLevel {
4450 complexUnionArray: [ComplexUnionArrayElement]? = nil,
4551 date: String? = nil,
4652 dateTime: Date? = nil,
53+ localDateClass: LocalDate?? = nil,
54+ offsetDateTimeClass: OffsetDateTime?? = nil,
55+ offsetTimeClass: OffsetTime?? = nil,
4756 time: String? = nil,
4857 unionArray: [String]? = nil
4958 ) -> TopLevel {
@@ -51,6 +60,9 @@ extension TopLevel {
5160 complexUnionArray: complexUnionArray ?? self.complexUnionArray,
5261 date: date ?? self.date,
5362 dateTime: dateTime ?? self.dateTime,
63+ localDateClass: localDateClass ?? self.localDateClass,
64+ offsetDateTimeClass: offsetDateTimeClass ?? self.offsetDateTimeClass,
65+ offsetTimeClass: offsetTimeClass ?? self.offsetTimeClass,
5466 time: time ?? self.time,
5567 unionArray: unionArray ?? self.unionArray
5668 )
@@ -105,6 +117,135 @@ enum ComplexUnionArrayEnum: String, Codable {
105117 case bar = "bar"
106118 }
107119
120+// MARK: - LocalDate
121+struct LocalDate: Codable {
122+ private enum K: String, CodingKey { case unused }
123+ init(from decoder: Decoder) throws {
124+ _ = try decoder.container(keyedBy: K.self)
125+ }
126+ init() {
127+ }
128+}
129+
130+// MARK: LocalDate convenience initializers and mutators
131+
132+extension LocalDate {
133+ init(data: Data) throws {
134+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
135+ }
136+
137+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
138+ guard let data = json.data(using: encoding) else {
139+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
140+ }
141+ try self.init(data: data)
142+ }
143+
144+ init(fromURL url: URL) throws {
145+ try self.init(data: try Data(contentsOf: url))
146+ }
147+
148+ func with(
149+ ) -> LocalDate {
150+ return LocalDate(
151+ )
152+ }
153+
154+ func jsonData() throws -> Data {
155+ return try newJSONEncoder().encode(self)
156+ }
157+
158+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
159+ return String(data: try self.jsonData(), encoding: encoding)
160+ }
161+}
162+
163+// MARK: - OffsetDateTime
164+struct OffsetDateTime: Codable {
165+ private enum K: String, CodingKey { case unused }
166+ init(from decoder: Decoder) throws {
167+ _ = try decoder.container(keyedBy: K.self)
168+ }
169+ init() {
170+ }
171+}
172+
173+// MARK: OffsetDateTime convenience initializers and mutators
174+
175+extension OffsetDateTime {
176+ init(data: Data) throws {
177+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
178+ }
179+
180+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
181+ guard let data = json.data(using: encoding) else {
182+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
183+ }
184+ try self.init(data: data)
185+ }
186+
187+ init(fromURL url: URL) throws {
188+ try self.init(data: try Data(contentsOf: url))
189+ }
190+
191+ func with(
192+ ) -> OffsetDateTime {
193+ return OffsetDateTime(
194+ )
195+ }
196+
197+ func jsonData() throws -> Data {
198+ return try newJSONEncoder().encode(self)
199+ }
200+
201+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
202+ return String(data: try self.jsonData(), encoding: encoding)
203+ }
204+}
205+
206+// MARK: - OffsetTime
207+struct OffsetTime: Codable {
208+ private enum K: String, CodingKey { case unused }
209+ init(from decoder: Decoder) throws {
210+ _ = try decoder.container(keyedBy: K.self)
211+ }
212+ init() {
213+ }
214+}
215+
216+// MARK: OffsetTime convenience initializers and mutators
217+
218+extension OffsetTime {
219+ init(data: Data) throws {
220+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
221+ }
222+
223+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
224+ guard let data = json.data(using: encoding) else {
225+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
226+ }
227+ try self.init(data: data)
228+ }
229+
230+ init(fromURL url: URL) throws {
231+ try self.init(data: try Data(contentsOf: url))
232+ }
233+
234+ func with(
235+ ) -> OffsetTime {
236+ return OffsetTime(
237+ )
238+ }
239+
240+ func jsonData() throws -> Data {
241+ return try newJSONEncoder().encode(self)
242+ }
243+
244+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
245+ return String(data: try self.jsonData(), encoding: encoding)
246+ }
247+}
248+
108249 // MARK: - Helper functions for creating encoders and decoders
109250
110251 func newJSONDecoder() -> JSONDecoder {
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -7,10 +7,22 @@ export const ComplexUnionArrayEnum = S.Literal(
77 );
88 export type ComplexUnionArrayEnum = S.Schema.Type<typeof ComplexUnionArrayEnum>;
99
10+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
11+) {}
12+
13+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
14+) {}
15+
16+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
17+) {}
18+
1019 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
1120 "complex-union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), ComplexUnionArrayEnum, S.Int)),
1221 "date": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)),
1322 "date-time": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)),
23+ "local-date-class": S.optional(LocalDate),
24+ "offset-date-time-class": S.optional(OffsetDateTime),
25+ "offset-time-class": S.optional(OffsetTime),
1426 "time": S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)),
1527 "union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)))),
1628 }) {}
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -7,10 +7,25 @@ export const ComplexUnionArrayEnumSchema = z.enum([
77 ]);
88 export type ComplexUnionArrayEnum = z.infer<typeof ComplexUnionArrayEnumSchema>;
99
10+export const LocalDateSchema = z.object({
11+});
12+export type LocalDate = z.infer<typeof LocalDateSchema>;
13+
14+export const OffsetDateTimeSchema = z.object({
15+});
16+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
17+
18+export const OffsetTimeSchema = z.object({
19+});
20+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
21+
1022 export const TopLevelSchema = z.object({
1123 "complex-union-array": z.array(z.union([ComplexUnionArrayEnumSchema, z.number().int(), z.string().pipe(z.coerce.date())])),
1224 "date": z.string(),
1325 "date-time": z.string().pipe(z.coerce.date()),
26+ "local-date-class": LocalDateSchema.optional(),
27+ "offset-date-time-class": OffsetDateTimeSchema.optional(),
28+ "offset-time-class": OffsetTimeSchema.optional(),
1429 "time": z.string(),
1530 "union-array": z.array(z.string()),
1631 });
Mschema-typescriptdefault / TopLevel.ts+11 −5
@@ -8,11 +8,14 @@
88 // match the expected interface, even if the JSON is valid.
99
1010 export interface TopLevel {
11- "complex-union-array": ComplexUnionArrayElement[];
12- date: Date;
13- "date-time": Date;
14- time: string;
15- "union-array": string[];
11+ "complex-union-array": ComplexUnionArrayElement[];
12+ date: Date;
13+ "date-time": Date;
14+ "local-date-class"?: object;
15+ "offset-date-time-class"?: object;
16+ "offset-time-class"?: object;
17+ time: string;
18+ "union-array": string[];
1619 }
1720
1821 export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number;
@@ -210,6 +213,9 @@ const typeMap: any = {
210213 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
211214 { json: "date", js: "date", typ: Date },
212215 { json: "date-time", js: "date-time", typ: Date },
216+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, m("any")) },
217+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, m("any")) },
218+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, m("any")) },
213219 { json: "time", js: "time", typ: "" },
214220 { json: "union-array", js: "union-array", typ: a("") },
215221 ], false),
Test case

test/inputs/schema/keyword-enum.schema

34 generated files · +216 −12
Mschema-cjsondefault / TopLevel.c+6 −0
@@ -185,6 +185,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
185185 else if (!strcmp(cJSON_GetStringValue(j), "left")) x = ENUM_LEFT;
186186 else if (!strcmp(cJSON_GetStringValue(j), "let")) x = ENUM_LET;
187187 else if (!strcmp(cJSON_GetStringValue(j), "list")) x = ENUM_LIST;
188+ else if (!strcmp(cJSON_GetStringValue(j), "LocalDate")) x = ENUM_LOCAL_DATE;
188189 else if (!strcmp(cJSON_GetStringValue(j), "Locale")) x = ENUM_LOCALE;
189190 else if (!strcmp(cJSON_GetStringValue(j), "lock")) x = ENUM_LOCK;
190191 else if (!strcmp(cJSON_GetStringValue(j), "long")) x = ENUM_LONG;
@@ -218,6 +219,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
218219 else if (!strcmp(cJSON_GetStringValue(j), "nullptr")) x = ENUM_NULLPTR;
219220 else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER;
220221 else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT;
222+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetDateTime")) x = ENUM_OFFSET_DATE_TIME;
223+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetTime")) x = ENUM_OFFSET_TIME;
221224 else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER;
222225 else if (!strcmp(cJSON_GetStringValue(j), "of")) x = ENUM_OF;
223226 else if (!strcmp(cJSON_GetStringValue(j), "oneway")) x = ENUM_ONEWAY;
@@ -535,6 +538,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
535538 case ENUM_LEFT: j = cJSON_CreateString("left"); break;
536539 case ENUM_LET: j = cJSON_CreateString("let"); break;
537540 case ENUM_LIST: j = cJSON_CreateString("list"); break;
541+ case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break;
538542 case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break;
539543 case ENUM_LOCK: j = cJSON_CreateString("lock"); break;
540544 case ENUM_LONG: j = cJSON_CreateString("long"); break;
@@ -568,6 +572,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
568572 case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break;
569573 case ENUM_NUMBER: j = cJSON_CreateString("number"); break;
570574 case ENUM_OBJECT: j = cJSON_CreateString("object"); break;
575+ case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break;
576+ case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break;
571577 case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break;
572578 case ENUM_OF: j = cJSON_CreateString("of"); break;
573579 case ENUM_ONEWAY: j = cJSON_CreateString("oneway"); break;
Mschema-cjsondefault / TopLevel.h+3 −0
@@ -226,6 +226,7 @@ enum Enum {
226226 ENUM_LEFT,
227227 ENUM_LET,
228228 ENUM_LIST,
229+ ENUM_LOCAL_DATE,
229230 ENUM_LOCALE,
230231 ENUM_LOCK,
231232 ENUM_LONG,
@@ -259,6 +260,8 @@ enum Enum {
259260 ENUM_NULLPTR,
260261 ENUM_NUMBER,
261262 ENUM_OBJECT,
263+ ENUM_OFFSET_DATE_TIME,
264+ ENUM_OFFSET_TIME,
262265 ENUM_OBJECT_MAPPER,
263266 ENUM_OF,
264267 ENUM_ONEWAY,
Mschema-cplusplusdefault / quicktype.hpp+7 −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_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, MARSHAL_JSON, 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, UNMARSHAL_JSON, 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, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, UNMARSHAL_JSON, 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:
@@ -303,6 +303,7 @@ namespace quicktype {
303303 {"left", Enum::LEFT},
304304 {"let", Enum::LET},
305305 {"list", Enum::LIST},
306+ {"LocalDate", Enum::LOCAL_DATE},
306307 {"Locale", Enum::LOCALE},
307308 {"lock", Enum::LOCK},
308309 {"long", Enum::LONG},
@@ -336,6 +337,8 @@ namespace quicktype {
336337 {"nullptr", Enum::NULLPTR},
337338 {"number", Enum::NUMBER},
338339 {"object", Enum::OBJECT},
340+ {"OffsetDateTime", Enum::OFFSET_DATE_TIME},
341+ {"OffsetTime", Enum::OFFSET_TIME},
339342 {"ObjectMapper", Enum::OBJECT_MAPPER},
340343 {"of", Enum::OF},
341344 {"oneway", Enum::ONEWAY},
@@ -656,6 +659,7 @@ namespace quicktype {
656659 case Enum::LEFT: j = "left"; break;
657660 case Enum::LET: j = "let"; break;
658661 case Enum::LIST: j = "list"; break;
662+ case Enum::LOCAL_DATE: j = "LocalDate"; break;
659663 case Enum::LOCALE: j = "Locale"; break;
660664 case Enum::LOCK: j = "lock"; break;
661665 case Enum::LONG: j = "long"; break;
@@ -689,6 +693,8 @@ namespace quicktype {
689693 case Enum::NULLPTR: j = "nullptr"; break;
690694 case Enum::NUMBER: j = "number"; break;
691695 case Enum::OBJECT: j = "object"; break;
696+ case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break;
697+ case Enum::OFFSET_TIME: j = "OffsetTime"; break;
692698 case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break;
693699 case Enum::OF: j = "of"; break;
694700 case Enum::ONEWAY: j = "oneway"; break;
Mschema-csharp-recordsdefault / QuickType.cs+16 −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, 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, MarshalJson, 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, UnmarshalJson, 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, LocalDate, Locale, Lock, Long, Map, MarshalJson, 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, OffsetDateTime, OffsetTime, 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, UnmarshalJson, 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 {
@@ -419,6 +419,8 @@ namespace QuickType
419419 return Enum.Let;
420420 case "list":
421421 return Enum.List;
422+ case "LocalDate":
423+ return Enum.LocalDate;
422424 case "Locale":
423425 return Enum.Locale;
424426 case "lock":
@@ -485,6 +487,10 @@ namespace QuickType
485487 return Enum.Number;
486488 case "object":
487489 return Enum.Object;
490+ case "OffsetDateTime":
491+ return Enum.OffsetDateTime;
492+ case "OffsetTime":
493+ return Enum.OffsetTime;
488494 case "ObjectMapper":
489495 return Enum.ObjectMapper;
490496 case "of":
@@ -1296,6 +1302,9 @@ namespace QuickType
12961302 case Enum.List:
12971303 serializer.Serialize(writer, "list");
12981304 return;
1305+ case Enum.LocalDate:
1306+ serializer.Serialize(writer, "LocalDate");
1307+ return;
12991308 case Enum.Locale:
13001309 serializer.Serialize(writer, "Locale");
13011310 return;
@@ -1395,6 +1404,12 @@ namespace QuickType
13951404 case Enum.Object:
13961405 serializer.Serialize(writer, "object");
13971406 return;
1407+ case Enum.OffsetDateTime:
1408+ serializer.Serialize(writer, "OffsetDateTime");
1409+ return;
1410+ case Enum.OffsetTime:
1411+ serializer.Serialize(writer, "OffsetTime");
1412+ return;
13981413 case Enum.ObjectMapper:
13991414 serializer.Serialize(writer, "ObjectMapper");
14001415 return;
Mschema-csharp-SystemTextJsondefault / QuickType.cs+16 −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, 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, MarshalJson, 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, UnmarshalJson, 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, LocalDate, Locale, Lock, Long, Map, MarshalJson, 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, OffsetDateTime, OffsetTime, 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, UnmarshalJson, 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 {
@@ -416,6 +416,8 @@ namespace QuickType
416416 return Enum.Let;
417417 case "list":
418418 return Enum.List;
419+ case "LocalDate":
420+ return Enum.LocalDate;
419421 case "Locale":
420422 return Enum.Locale;
421423 case "lock":
@@ -482,6 +484,10 @@ namespace QuickType
482484 return Enum.Number;
483485 case "object":
484486 return Enum.Object;
487+ case "OffsetDateTime":
488+ return Enum.OffsetDateTime;
489+ case "OffsetTime":
490+ return Enum.OffsetTime;
485491 case "ObjectMapper":
486492 return Enum.ObjectMapper;
487493 case "of":
@@ -1287,6 +1293,9 @@ namespace QuickType
12871293 case Enum.List:
12881294 JsonSerializer.Serialize(writer, "list", options);
12891295 return;
1296+ case Enum.LocalDate:
1297+ JsonSerializer.Serialize(writer, "LocalDate", options);
1298+ return;
12901299 case Enum.Locale:
12911300 JsonSerializer.Serialize(writer, "Locale", options);
12921301 return;
@@ -1386,6 +1395,12 @@ namespace QuickType
13861395 case Enum.Object:
13871396 JsonSerializer.Serialize(writer, "object", options);
13881397 return;
1398+ case Enum.OffsetDateTime:
1399+ JsonSerializer.Serialize(writer, "OffsetDateTime", options);
1400+ return;
1401+ case Enum.OffsetTime:
1402+ JsonSerializer.Serialize(writer, "OffsetTime", options);
1403+ return;
13891404 case Enum.ObjectMapper:
13901405 JsonSerializer.Serialize(writer, "ObjectMapper", options);
13911406 return;
Mschema-csharpdefault / QuickType.cs+16 −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, 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, MarshalJson, 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, UnmarshalJson, 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, LocalDate, Locale, Lock, Long, Map, MarshalJson, 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, OffsetDateTime, OffsetTime, 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, UnmarshalJson, 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 {
@@ -419,6 +419,8 @@ namespace QuickType
419419 return Enum.Let;
420420 case "list":
421421 return Enum.List;
422+ case "LocalDate":
423+ return Enum.LocalDate;
422424 case "Locale":
423425 return Enum.Locale;
424426 case "lock":
@@ -485,6 +487,10 @@ namespace QuickType
485487 return Enum.Number;
486488 case "object":
487489 return Enum.Object;
490+ case "OffsetDateTime":
491+ return Enum.OffsetDateTime;
492+ case "OffsetTime":
493+ return Enum.OffsetTime;
488494 case "ObjectMapper":
489495 return Enum.ObjectMapper;
490496 case "of":
@@ -1296,6 +1302,9 @@ namespace QuickType
12961302 case Enum.List:
12971303 serializer.Serialize(writer, "list");
12981304 return;
1305+ case Enum.LocalDate:
1306+ serializer.Serialize(writer, "LocalDate");
1307+ return;
12991308 case Enum.Locale:
13001309 serializer.Serialize(writer, "Locale");
13011310 return;
@@ -1395,6 +1404,12 @@ namespace QuickType
13951404 case Enum.Object:
13961405 serializer.Serialize(writer, "object");
13971406 return;
1407+ case Enum.OffsetDateTime:
1408+ serializer.Serialize(writer, "OffsetDateTime");
1409+ return;
1410+ case Enum.OffsetTime:
1411+ serializer.Serialize(writer, "OffsetTime");
1412+ return;
13981413 case Enum.ObjectMapper:
13991414 serializer.Serialize(writer, "ObjectMapper");
14001415 return;
Mschema-dartdefault / TopLevel.dart+6 −0
@@ -202,6 +202,7 @@ enum Enum {
202202 LEFT,
203203 LET,
204204 LIST,
205+ LOCAL_DATE,
205206 LOCALE,
206207 LOCK,
207208 LONG,
@@ -235,6 +236,8 @@ enum Enum {
235236 NULLPTR,
236237 NUMBER,
237238 OBJECT,
239+ OFFSET_DATE_TIME,
240+ OFFSET_TIME,
238241 OBJECT_MAPPER,
239242 OF,
240243 ONEWAY,
@@ -548,6 +551,7 @@ final enumValues = EnumValues({
548551 "left": Enum.LEFT,
549552 "let": Enum.LET,
550553 "list": Enum.LIST,
554+ "LocalDate": Enum.LOCAL_DATE,
551555 "Locale": Enum.LOCALE,
552556 "lock": Enum.LOCK,
553557 "long": Enum.LONG,
@@ -581,6 +585,8 @@ final enumValues = EnumValues({
581585 "nullptr": Enum.NULLPTR,
582586 "number": Enum.NUMBER,
583587 "object": Enum.OBJECT,
588+ "OffsetDateTime": Enum.OFFSET_DATE_TIME,
589+ "OffsetTime": Enum.OFFSET_TIME,
584590 "ObjectMapper": Enum.OBJECT_MAPPER,
585591 "of": Enum.OF,
586592 "oneway": Enum.ONEWAY,
Mschema-elixirdefault / QuickType.ex+3 −0
@@ -184,6 +184,7 @@ defmodule EnumEnum do
184184 :left,
185185 :let,
186186 :list,
187+ :LocalDate,
187188 :Locale,
188189 :lock,
189190 :long,
@@ -217,6 +218,8 @@ defmodule EnumEnum do
217218 :nullptr,
218219 :number,
219220 :object,
221+ :OffsetDateTime,
222+ :OffsetTime,
220223 :ObjectMapper,
221224 :of,
222225 :oneway,
Mschema-elmdefault / QuickType.elm+9 −0
@@ -205,6 +205,7 @@ type EnumEnum
205205 | Left
206206 | Let
207207 | EnumList
208+ | LocalDate
208209 | Locale
209210 | Lock
210211 | Long
@@ -238,6 +239,8 @@ type EnumEnum
238239 | Nullptr
239240 | Number
240241 | Object
242+ | OffsetDateTime
243+ | OffsetTime
241244 | ObjectMapper
242245 | Of
243246 | Oneway
@@ -576,6 +579,7 @@ enumEnum =
576579 "left" -> Jdec.succeed Left
577580 "let" -> Jdec.succeed Let
578581 "list" -> Jdec.succeed EnumList
582+ "LocalDate" -> Jdec.succeed LocalDate
579583 "Locale" -> Jdec.succeed Locale
580584 "lock" -> Jdec.succeed Lock
581585 "long" -> Jdec.succeed Long
@@ -609,6 +613,8 @@ enumEnum =
609613 "nullptr" -> Jdec.succeed Nullptr
610614 "number" -> Jdec.succeed Number
611615 "object" -> Jdec.succeed Object
616+ "OffsetDateTime" -> Jdec.succeed OffsetDateTime
617+ "OffsetTime" -> Jdec.succeed OffsetTime
612618 "ObjectMapper" -> Jdec.succeed ObjectMapper
613619 "of" -> Jdec.succeed Of
614620 "oneway" -> Jdec.succeed Oneway
@@ -924,6 +930,7 @@ encodeEnumEnum x = case x of
924930 Left -> Jenc.string "left"
925931 Let -> Jenc.string "let"
926932 EnumList -> Jenc.string "list"
933+ LocalDate -> Jenc.string "LocalDate"
927934 Locale -> Jenc.string "Locale"
928935 Lock -> Jenc.string "lock"
929936 Long -> Jenc.string "long"
@@ -957,6 +964,8 @@ encodeEnumEnum x = case x of
957964 Nullptr -> Jenc.string "nullptr"
958965 Number -> Jenc.string "number"
959966 Object -> Jenc.string "object"
967+ OffsetDateTime -> Jenc.string "OffsetDateTime"
968+ OffsetTime -> Jenc.string "OffsetTime"
960969 ObjectMapper -> Jenc.string "ObjectMapper"
961970 Of -> Jenc.string "of"
962971 Oneway -> Jenc.string "oneway"
Mschema-flowdefault / TopLevel.js+6 −0
@@ -192,6 +192,7 @@ export type Enum =
192192 | "left"
193193 | "let"
194194 | "list"
195+ | "LocalDate"
195196 | "Locale"
196197 | "lock"
197198 | "long"
@@ -225,6 +226,8 @@ export type Enum =
225226 | "nullptr"
226227 | "number"
227228 | "object"
229+ | "OffsetDateTime"
230+ | "OffsetTime"
228231 | "ObjectMapper"
229232 | "of"
230233 | "oneway"
@@ -725,6 +728,7 @@ const typeMap: any = {
725728 "left",
726729 "let",
727730 "list",
731+ "LocalDate",
728732 "Locale",
729733 "lock",
730734 "long",
@@ -758,6 +762,8 @@ const typeMap: any = {
758762 "nullptr",
759763 "number",
760764 "object",
765+ "OffsetDateTime",
766+ "OffsetTime",
761767 "ObjectMapper",
762768 "of",
763769 "oneway",
Mschema-golangdefault / quicktype.go+4 −1
@@ -202,6 +202,7 @@ const (
202202 Left EnumEnum = "left"
203203 Let EnumEnum = "let"
204204 List EnumEnum = "list"
205+ LocalDate EnumEnum = "LocalDate"
205206 Locale EnumEnum = "Locale"
206207 Lock EnumEnum = "lock"
207208 Long EnumEnum = "long"
@@ -235,6 +236,8 @@ const (
235236 Nullptr EnumEnum = "nullptr"
236237 Number EnumEnum = "number"
237238 Object EnumEnum = "object"
239+ OffsetDateTime EnumEnum = "OffsetDateTime"
240+ OffsetTime EnumEnum = "OffsetTime"
238241 ObjectMapper EnumEnum = "ObjectMapper"
239242 Of EnumEnum = "of"
240243 Oneway EnumEnum = "oneway"
@@ -377,7 +380,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
377380 var value string
378381 if err := json.Unmarshal(data, &value); err != nil { return err }
379382 switch EnumEnum(value) {
380- 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, MarshalJSON, 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, UnmarshalJSON, 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
383+ 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, LocalDate, Locale, Lock, Long, Map, MarshalJSON, 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, OffsetDateTime, OffsetTime, 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, UnmarshalJSON, 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
381384 }
382385 return invalidEnumEnum(value)
383386 }
Mschema-haskelldefault / QuickType.hs+9 −0
@@ -195,6 +195,7 @@ data EnumEnum
195195 | LeftEnumEnum
196196 | LetEnumEnum
197197 | ListEnumEnum
198+ | LocalDateEnumEnum
198199 | LocaleEnumEnum
199200 | LockEnumEnum
200201 | LongEnumEnum
@@ -228,6 +229,8 @@ data EnumEnum
228229 | NullptrEnumEnum
229230 | NumberEnumEnum
230231 | ObjectEnumEnum
232+ | OffsetDateTimeEnumEnum
233+ | OffsetTimeEnumEnum
231234 | ObjectMapperEnumEnum
232235 | OfEnumEnum
233236 | OnewayEnumEnum
@@ -554,6 +557,7 @@ instance ToJSON EnumEnum where
554557 toJSON LeftEnumEnum = "left"
555558 toJSON LetEnumEnum = "let"
556559 toJSON ListEnumEnum = "list"
560+ toJSON LocalDateEnumEnum = "LocalDate"
557561 toJSON LocaleEnumEnum = "Locale"
558562 toJSON LockEnumEnum = "lock"
559563 toJSON LongEnumEnum = "long"
@@ -587,6 +591,8 @@ instance ToJSON EnumEnum where
587591 toJSON NullptrEnumEnum = "nullptr"
588592 toJSON NumberEnumEnum = "number"
589593 toJSON ObjectEnumEnum = "object"
594+ toJSON OffsetDateTimeEnumEnum = "OffsetDateTime"
595+ toJSON OffsetTimeEnumEnum = "OffsetTime"
590596 toJSON ObjectMapperEnumEnum = "ObjectMapper"
591597 toJSON OfEnumEnum = "of"
592598 toJSON OnewayEnumEnum = "oneway"
@@ -901,6 +907,7 @@ instance FromJSON EnumEnum where
901907 parseText "left" = return LeftEnumEnum
902908 parseText "let" = return LetEnumEnum
903909 parseText "list" = return ListEnumEnum
910+ parseText "LocalDate" = return LocalDateEnumEnum
904911 parseText "Locale" = return LocaleEnumEnum
905912 parseText "lock" = return LockEnumEnum
906913 parseText "long" = return LongEnumEnum
@@ -934,6 +941,8 @@ instance FromJSON EnumEnum where
934941 parseText "nullptr" = return NullptrEnumEnum
935942 parseText "number" = return NumberEnumEnum
936943 parseText "object" = return ObjectEnumEnum
944+ parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum
945+ parseText "OffsetTime" = return OffsetTimeEnumEnum
937946 parseText "ObjectMapper" = return ObjectMapperEnumEnum
938947 parseText "of" = return OfEnumEnum
939948 parseText "oneway" = return OnewayEnumEnum
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+7 −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_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, MARSHAL_JSON, 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, UNMARSHAL_JSON, 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, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, UNMARSHAL_JSON, 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() {
@@ -186,6 +186,7 @@ public enum Enum {
186186 case LEFT: return "left";
187187 case LET: return "let";
188188 case LIST: return "list";
189+ case LOCAL_DATE: return "LocalDate";
189190 case LOCALE: return "Locale";
190191 case LOCK: return "lock";
191192 case LONG: return "long";
@@ -219,6 +220,8 @@ public enum Enum {
219220 case NULLPTR: return "nullptr";
220221 case NUMBER: return "number";
221222 case OBJECT: return "object";
223+ case OFFSET_DATE_TIME: return "OffsetDateTime";
224+ case OFFSET_TIME: return "OffsetTime";
222225 case OBJECT_MAPPER: return "ObjectMapper";
223226 case OF: return "of";
224227 case ONEWAY: return "oneway";
@@ -535,6 +538,7 @@ public enum Enum {
535538 if (value.equals("left")) return LEFT;
536539 if (value.equals("let")) return LET;
537540 if (value.equals("list")) return LIST;
541+ if (value.equals("LocalDate")) return LOCAL_DATE;
538542 if (value.equals("Locale")) return LOCALE;
539543 if (value.equals("lock")) return LOCK;
540544 if (value.equals("long")) return LONG;
@@ -568,6 +572,8 @@ public enum Enum {
568572 if (value.equals("nullptr")) return NULLPTR;
569573 if (value.equals("number")) return NUMBER;
570574 if (value.equals("object")) return OBJECT;
575+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
576+ if (value.equals("OffsetTime")) return OFFSET_TIME;
571577 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
572578 if (value.equals("of")) return OF;
573579 if (value.equals("oneway")) return ONEWAY;
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+7 −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_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, MARSHAL_JSON, 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, UNMARSHAL_JSON, 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, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, UNMARSHAL_JSON, 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() {
@@ -186,6 +186,7 @@ public enum Enum {
186186 case LEFT: return "left";
187187 case LET: return "let";
188188 case LIST: return "list";
189+ case LOCAL_DATE: return "LocalDate";
189190 case LOCALE: return "Locale";
190191 case LOCK: return "lock";
191192 case LONG: return "long";
@@ -219,6 +220,8 @@ public enum Enum {
219220 case NULLPTR: return "nullptr";
220221 case NUMBER: return "number";
221222 case OBJECT: return "object";
223+ case OFFSET_DATE_TIME: return "OffsetDateTime";
224+ case OFFSET_TIME: return "OffsetTime";
222225 case OBJECT_MAPPER: return "ObjectMapper";
223226 case OF: return "of";
224227 case ONEWAY: return "oneway";
@@ -535,6 +538,7 @@ public enum Enum {
535538 if (value.equals("left")) return LEFT;
536539 if (value.equals("let")) return LET;
537540 if (value.equals("list")) return LIST;
541+ if (value.equals("LocalDate")) return LOCAL_DATE;
538542 if (value.equals("Locale")) return LOCALE;
539543 if (value.equals("lock")) return LOCK;
540544 if (value.equals("long")) return LONG;
@@ -568,6 +572,8 @@ public enum Enum {
568572 if (value.equals("nullptr")) return NULLPTR;
569573 if (value.equals("number")) return NUMBER;
570574 if (value.equals("object")) return OBJECT;
575+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
576+ if (value.equals("OffsetTime")) return OFFSET_TIME;
571577 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
572578 if (value.equals("of")) return OF;
573579 if (value.equals("oneway")) return ONEWAY;
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+7 −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_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, MARSHAL_JSON, 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, UNMARSHAL_JSON, 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, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, UNMARSHAL_JSON, 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() {
@@ -186,6 +186,7 @@ public enum Enum {
186186 case LEFT: return "left";
187187 case LET: return "let";
188188 case LIST: return "list";
189+ case LOCAL_DATE: return "LocalDate";
189190 case LOCALE: return "Locale";
190191 case LOCK: return "lock";
191192 case LONG: return "long";
@@ -219,6 +220,8 @@ public enum Enum {
219220 case NULLPTR: return "nullptr";
220221 case NUMBER: return "number";
221222 case OBJECT: return "object";
223+ case OFFSET_DATE_TIME: return "OffsetDateTime";
224+ case OFFSET_TIME: return "OffsetTime";
222225 case OBJECT_MAPPER: return "ObjectMapper";
223226 case OF: return "of";
224227 case ONEWAY: return "oneway";
@@ -535,6 +538,7 @@ public enum Enum {
535538 if (value.equals("left")) return LEFT;
536539 if (value.equals("let")) return LET;
537540 if (value.equals("list")) return LIST;
541+ if (value.equals("LocalDate")) return LOCAL_DATE;
538542 if (value.equals("Locale")) return LOCALE;
539543 if (value.equals("lock")) return LOCK;
540544 if (value.equals("long")) return LONG;
@@ -568,6 +572,8 @@ public enum Enum {
568572 if (value.equals("nullptr")) return NULLPTR;
569573 if (value.equals("number")) return NUMBER;
570574 if (value.equals("object")) return OBJECT;
575+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
576+ if (value.equals("OffsetTime")) return OFFSET_TIME;
571577 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
572578 if (value.equals("of")) return OF;
573579 if (value.equals("oneway")) return ONEWAY;
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_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', 'MarshalJSON', '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', 'UnmarshalJSON', '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', 'LocalDate', 'Locale', 'lock', 'long', 'map', 'MarshalJSON', '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', 'OffsetDateTime', 'OffsetTime', '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', 'UnmarshalJSON', '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+3 −0
@@ -373,6 +373,7 @@ const typeMap = {
373373 "left",
374374 "let",
375375 "list",
376+ "LocalDate",
376377 "Locale",
377378 "lock",
378379 "long",
@@ -406,6 +407,8 @@ const typeMap = {
406407 "nullptr",
407408 "number",
408409 "object",
410+ "OffsetDateTime",
411+ "OffsetTime",
409412 "ObjectMapper",
410413 "of",
411414 "oneway",
Mschema-kotlin-jacksondefault / TopLevel.kt+6 −0
@@ -218,6 +218,7 @@ enum class EnumEnum(val value: String) {
218218 Left("left"),
219219 Let("let"),
220220 EnumList("list"),
221+ LocalDate("LocalDate"),
221222 Locale("Locale"),
222223 Lock("lock"),
223224 EnumLong("long"),
@@ -251,6 +252,8 @@ enum class EnumEnum(val value: String) {
251252 Nullptr("nullptr"),
252253 Number("number"),
253254 Object("object"),
255+ OffsetDateTime("OffsetDateTime"),
256+ OffsetTime("OffsetTime"),
254257 EnumObjectMapper("ObjectMapper"),
255258 Of("of"),
256259 Oneway("oneway"),
@@ -564,6 +567,7 @@ enum class EnumEnum(val value: String) {
564567 "left" -> Left
565568 "let" -> Let
566569 "list" -> EnumList
570+ "LocalDate" -> LocalDate
567571 "Locale" -> Locale
568572 "lock" -> Lock
569573 "long" -> EnumLong
@@ -597,6 +601,8 @@ enum class EnumEnum(val value: String) {
597601 "nullptr" -> Nullptr
598602 "number" -> Number
599603 "object" -> Object
604+ "OffsetDateTime" -> OffsetDateTime
605+ "OffsetTime" -> OffsetTime
600606 "ObjectMapper" -> EnumObjectMapper
601607 "of" -> Of
602608 "oneway" -> Oneway
Mschema-kotlindefault / TopLevel.kt+6 −0
@@ -205,6 +205,7 @@ enum class EnumEnum(val value: String) {
205205 Left("left"),
206206 Let("let"),
207207 EnumList("list"),
208+ LocalDate("LocalDate"),
208209 Locale("Locale"),
209210 Lock("lock"),
210211 EnumLong("long"),
@@ -238,6 +239,8 @@ enum class EnumEnum(val value: String) {
238239 Nullptr("nullptr"),
239240 Number("number"),
240241 Object("object"),
242+ OffsetDateTime("OffsetDateTime"),
243+ OffsetTime("OffsetTime"),
241244 ObjectMapper("ObjectMapper"),
242245 Of("of"),
243246 Oneway("oneway"),
@@ -551,6 +554,7 @@ enum class EnumEnum(val value: String) {
551554 "left" -> Left
552555 "let" -> Let
553556 "list" -> EnumList
557+ "LocalDate" -> LocalDate
554558 "Locale" -> Locale
555559 "lock" -> Lock
556560 "long" -> EnumLong
@@ -584,6 +588,8 @@ enum class EnumEnum(val value: String) {
584588 "nullptr" -> Nullptr
585589 "number" -> Number
586590 "object" -> Object
591+ "OffsetDateTime" -> OffsetDateTime
592+ "OffsetTime" -> OffsetTime
587593 "ObjectMapper" -> ObjectMapper
588594 "of" -> Of
589595 "oneway" -> Oneway
Mschema-kotlinxdefault / TopLevel.kt+3 −0
@@ -194,6 +194,7 @@ enum class EnumEnum(val value: String) {
194194 @SerialName("left") Left("left"),
195195 @SerialName("let") Let("let"),
196196 @SerialName("list") EnumList("list"),
197+ @SerialName("LocalDate") LocalDate("LocalDate"),
197198 @SerialName("Locale") Locale("Locale"),
198199 @SerialName("lock") Lock("lock"),
199200 @SerialName("long") EnumLong("long"),
@@ -227,6 +228,8 @@ enum class EnumEnum(val value: String) {
227228 @SerialName("nullptr") Nullptr("nullptr"),
228229 @SerialName("number") Number("number"),
229230 @SerialName("object") Object("object"),
231+ @SerialName("OffsetDateTime") OffsetDateTime("OffsetDateTime"),
232+ @SerialName("OffsetTime") OffsetTime("OffsetTime"),
230233 @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"),
231234 @SerialName("of") Of("of"),
232235 @SerialName("oneway") Oneway("oneway"),
Mschema-objective-cdefault / QTTopLevel.h+3 −0
@@ -192,6 +192,7 @@ NS_ASSUME_NONNULL_BEGIN
192192 + (QTEnum *)left;
193193 + (QTEnum *)let;
194194 + (QTEnum *)list;
195++ (QTEnum *)localDate;
195196 + (QTEnum *)locale;
196197 + (QTEnum *)lock;
197198 + (QTEnum *)enumLong;
@@ -225,6 +226,8 @@ NS_ASSUME_NONNULL_BEGIN
225226 + (QTEnum *)nullptr;
226227 + (QTEnum *)number;
227228 + (QTEnum *)object;
229++ (QTEnum *)offsetDateTime;
230++ (QTEnum *)offsetTime;
228231 + (QTEnum *)objectMapper;
229232 + (QTEnum *)of;
230233 + (QTEnum *)oneway;
Mschema-objective-cdefault / QTTopLevel.m+6 −0
@@ -195,6 +195,7 @@ NS_ASSUME_NONNULL_BEGIN
195195 @"left": [[QTEnum alloc] initWithValue:@"left"],
196196 @"let": [[QTEnum alloc] initWithValue:@"let"],
197197 @"list": [[QTEnum alloc] initWithValue:@"list"],
198+ @"LocalDate": [[QTEnum alloc] initWithValue:@"LocalDate"],
198199 @"Locale": [[QTEnum alloc] initWithValue:@"Locale"],
199200 @"lock": [[QTEnum alloc] initWithValue:@"lock"],
200201 @"long": [[QTEnum alloc] initWithValue:@"long"],
@@ -228,6 +229,8 @@ NS_ASSUME_NONNULL_BEGIN
228229 @"nullptr": [[QTEnum alloc] initWithValue:@"nullptr"],
229230 @"number": [[QTEnum alloc] initWithValue:@"number"],
230231 @"object": [[QTEnum alloc] initWithValue:@"object"],
232+ @"OffsetDateTime": [[QTEnum alloc] initWithValue:@"OffsetDateTime"],
233+ @"OffsetTime": [[QTEnum alloc] initWithValue:@"OffsetTime"],
231234 @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"],
232235 @"of": [[QTEnum alloc] initWithValue:@"of"],
233236 @"oneway": [[QTEnum alloc] initWithValue:@"oneway"],
@@ -541,6 +544,7 @@ NS_ASSUME_NONNULL_BEGIN
541544 + (QTEnum *)left { return QTEnum.values[@"left"]; }
542545 + (QTEnum *)let { return QTEnum.values[@"let"]; }
543546 + (QTEnum *)list { return QTEnum.values[@"list"]; }
547++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; }
544548 + (QTEnum *)locale { return QTEnum.values[@"Locale"]; }
545549 + (QTEnum *)lock { return QTEnum.values[@"lock"]; }
546550 + (QTEnum *)enumLong { return QTEnum.values[@"long"]; }
@@ -574,6 +578,8 @@ NS_ASSUME_NONNULL_BEGIN
574578 + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; }
575579 + (QTEnum *)number { return QTEnum.values[@"number"]; }
576580 + (QTEnum *)object { return QTEnum.values[@"object"]; }
581++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; }
582++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; }
577583 + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; }
578584 + (QTEnum *)of { return QTEnum.values[@"of"]; }
579585 + (QTEnum *)oneway { return QTEnum.values[@"oneway"]; }
Mschema-phpdefault / TopLevel.php+12 −0
@@ -290,6 +290,7 @@ class EnumEnum {
290290 public static EnumEnum $LEFT;
291291 public static EnumEnum $LET;
292292 public static EnumEnum $LIST;
293+ public static EnumEnum $LOCAL_DATE;
293294 public static EnumEnum $LOCALE;
294295 public static EnumEnum $LOCK;
295296 public static EnumEnum $LONG;
@@ -323,6 +324,8 @@ class EnumEnum {
323324 public static EnumEnum $NULLPTR;
324325 public static EnumEnum $NUMBER;
325326 public static EnumEnum $OBJECT;
327+ public static EnumEnum $OFFSET_DATE_TIME;
328+ public static EnumEnum $OFFSET_TIME;
326329 public static EnumEnum $OBJECT_MAPPER;
327330 public static EnumEnum $OF;
328331 public static EnumEnum $ONEWAY;
@@ -634,6 +637,7 @@ class EnumEnum {
634637 EnumEnum::$LEFT = new EnumEnum('left');
635638 EnumEnum::$LET = new EnumEnum('let');
636639 EnumEnum::$LIST = new EnumEnum('list');
640+ EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate');
637641 EnumEnum::$LOCALE = new EnumEnum('Locale');
638642 EnumEnum::$LOCK = new EnumEnum('lock');
639643 EnumEnum::$LONG = new EnumEnum('long');
@@ -667,6 +671,8 @@ class EnumEnum {
667671 EnumEnum::$NULLPTR = new EnumEnum('nullptr');
668672 EnumEnum::$NUMBER = new EnumEnum('number');
669673 EnumEnum::$OBJECT = new EnumEnum('object');
674+ EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime');
675+ EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime');
670676 EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper');
671677 EnumEnum::$OF = new EnumEnum('of');
672678 EnumEnum::$ONEWAY = new EnumEnum('oneway');
@@ -990,6 +996,7 @@ class EnumEnum {
990996 case EnumEnum::$LEFT->enum: return 'left';
991997 case EnumEnum::$LET->enum: return 'let';
992998 case EnumEnum::$LIST->enum: return 'list';
999+ case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate';
9931000 case EnumEnum::$LOCALE->enum: return 'Locale';
9941001 case EnumEnum::$LOCK->enum: return 'lock';
9951002 case EnumEnum::$LONG->enum: return 'long';
@@ -1023,6 +1030,8 @@ class EnumEnum {
10231030 case EnumEnum::$NULLPTR->enum: return 'nullptr';
10241031 case EnumEnum::$NUMBER->enum: return 'number';
10251032 case EnumEnum::$OBJECT->enum: return 'object';
1033+ case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime';
1034+ case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime';
10261035 case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper';
10271036 case EnumEnum::$OF->enum: return 'of';
10281037 case EnumEnum::$ONEWAY->enum: return 'oneway';
@@ -1344,6 +1353,7 @@ class EnumEnum {
13441353 case 'left': return EnumEnum::$LEFT;
13451354 case 'let': return EnumEnum::$LET;
13461355 case 'list': return EnumEnum::$LIST;
1356+ case 'LocalDate': return EnumEnum::$LOCAL_DATE;
13471357 case 'Locale': return EnumEnum::$LOCALE;
13481358 case 'lock': return EnumEnum::$LOCK;
13491359 case 'long': return EnumEnum::$LONG;
@@ -1377,6 +1387,8 @@ class EnumEnum {
13771387 case 'nullptr': return EnumEnum::$NULLPTR;
13781388 case 'number': return EnumEnum::$NUMBER;
13791389 case 'object': return EnumEnum::$OBJECT;
1390+ case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME;
1391+ case 'OffsetTime': return EnumEnum::$OFFSET_TIME;
13801392 case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER;
13811393 case 'of': return EnumEnum::$OF;
13821394 case 'oneway': return EnumEnum::$ONEWAY;
Mschema-pikedefault / TopLevel.pmod+4 −1
@@ -210,6 +210,7 @@ enum Enum {
210210 LEFT = "left", // json: "left"
211211 LET = "let", // json: "let"
212212 LIST = "list", // json: "list"
213+ LOCAL_DATE = "LocalDate", // json: "LocalDate"
213214 LOCALE = "Locale", // json: "Locale"
214215 LOCK = "lock", // json: "lock"
215216 LONG = "long", // json: "long"
@@ -243,6 +244,8 @@ enum Enum {
243244 NULLPTR = "nullptr", // json: "nullptr"
244245 NUMBER = "number", // json: "number"
245246 OBJECT = "object", // json: "object"
247+ OFFSET_DATE_TIME = "OffsetDateTime", // json: "OffsetDateTime"
248+ OFFSET_TIME = "OffsetTime", // json: "OffsetTime"
246249 OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper"
247250 OF = "of", // json: "of"
248251 ONEWAY = "oneway", // json: "oneway"
@@ -379,5 +382,5 @@ enum Enum {
379382 }
380383
381384 Enum Enum_from_JSON(mixed json) {
382- 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 != "MarshalJSON"&&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 != "UnmarshalJSON"&&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;
385+ 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 != "LocalDate"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MarshalJSON"&&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 != "OffsetDateTime"&&json != "OffsetTime"&&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 != "UnmarshalJSON"&&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;
383386 }
Mschema-pythondefault / quicktype.py+3 −0
@@ -209,6 +209,7 @@ class EnumEnum(Enum):
209209 LEFT = "left"
210210 LET = "let"
211211 LIST = "list"
212+ LOCAL_DATE = "LocalDate"
212213 LOCALE = "Locale"
213214 LOCK = "lock"
214215 LONG = "long"
@@ -242,6 +243,8 @@ class EnumEnum(Enum):
242243 NULLPTR = "nullptr"
243244 NUMBER = "number"
244245 OBJECT = "object"
246+ OFFSET_DATE_TIME = "OffsetDateTime"
247+ OFFSET_TIME = "OffsetTime"
245248 OBJECT_MAPPER = "ObjectMapper"
246249 OF = "of"
247250 ONEWAY = "oneway"
Mschema-rubydefault / TopLevel.rb+4 −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_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", "MarshalJSON", "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", "UnmarshalJSON", "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", "LocalDate", "Locale", "lock", "long", "map", "MarshalJSON", "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", "OffsetDateTime", "OffsetTime", "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", "UnmarshalJSON", "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
@@ -198,6 +198,7 @@ module Enum
198198 Left = "left"
199199 Let = "let"
200200 List = "list"
201+ LocalDate = "LocalDate"
201202 Locale = "Locale"
202203 Lock = "lock"
203204 Long = "long"
@@ -231,6 +232,8 @@ module Enum
231232 Nullptr = "nullptr"
232233 Number = "number"
233234 Object = "object"
235+ OffsetDateTime = "OffsetDateTime"
236+ OffsetTime = "OffsetTime"
234237 ObjectMapper = "ObjectMapper"
235238 Of = "of"
236239 Oneway = "oneway"
Mschema-rustdefault / module_under_test.rs+9 −0
@@ -440,6 +440,9 @@ pub enum Enum {
440440
441441 List,
442442
443+ #[serde(rename = "LocalDate")]
444+ LocalDate,
445+
443446 #[serde(rename = "Locale")]
444447 Locale,
445448
@@ -520,6 +523,12 @@ pub enum Enum {
520523
521524 Object,
522525
526+ #[serde(rename = "OffsetDateTime")]
527+ OffsetDateTime,
528+
529+ #[serde(rename = "OffsetTime")]
530+ OffsetTime,
531+
523532 #[serde(rename = "ObjectMapper")]
524533 ObjectMapper,
Mschema-scala3-upickledefault / TopLevel.scala+9 −0
@@ -260,6 +260,7 @@ enum EnumEnum :
260260 case Left
261261 case Let
262262 case EnumList
263+ case LocalDate
263264 case Locale
264265 case Lock
265266 case EnumLong
@@ -293,6 +294,8 @@ enum EnumEnum :
293294 case Nullptr
294295 case Number
295296 case Object
297+ case OffsetDateTime
298+ case OffsetTime
296299 case ObjectMapper
297300 case Of
298301 case Oneway
@@ -606,6 +609,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
606609 case EnumEnum.Left => "left"
607610 case EnumEnum.Let => "let"
608611 case EnumEnum.EnumList => "list"
612+ case EnumEnum.LocalDate => "LocalDate"
609613 case EnumEnum.Locale => "Locale"
610614 case EnumEnum.Lock => "lock"
611615 case EnumEnum.EnumLong => "long"
@@ -639,6 +643,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
639643 case EnumEnum.Nullptr => "nullptr"
640644 case EnumEnum.Number => "number"
641645 case EnumEnum.Object => "object"
646+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
647+ case EnumEnum.OffsetTime => "OffsetTime"
642648 case EnumEnum.ObjectMapper => "ObjectMapper"
643649 case EnumEnum.Of => "of"
644650 case EnumEnum.Oneway => "oneway"
@@ -951,6 +957,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
951957 case "left" => EnumEnum.Left
952958 case "let" => EnumEnum.Let
953959 case "list" => EnumEnum.EnumList
960+ case "LocalDate" => EnumEnum.LocalDate
954961 case "Locale" => EnumEnum.Locale
955962 case "lock" => EnumEnum.Lock
956963 case "long" => EnumEnum.EnumLong
@@ -984,6 +991,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
984991 case "nullptr" => EnumEnum.Nullptr
985992 case "number" => EnumEnum.Number
986993 case "object" => EnumEnum.Object
994+ case "OffsetDateTime" => EnumEnum.OffsetDateTime
995+ case "OffsetTime" => EnumEnum.OffsetTime
987996 case "ObjectMapper" => EnumEnum.ObjectMapper
988997 case "of" => EnumEnum.Of
989998 case "oneway" => EnumEnum.Oneway
Mschema-scala3default / TopLevel.scala+9 −0
@@ -189,6 +189,7 @@ enum EnumEnum :
189189 case Left
190190 case Let
191191 case EnumList
192+ case LocalDate
192193 case Locale
193194 case Lock
194195 case EnumLong
@@ -222,6 +223,8 @@ enum EnumEnum :
222223 case Nullptr
223224 case Number
224225 case Object
226+ case OffsetDateTime
227+ case OffsetTime
225228 case ObjectMapper
226229 case Of
227230 case Oneway
@@ -534,6 +537,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
534537 case "left" => scala.Right(EnumEnum.Left)
535538 case "let" => scala.Right(EnumEnum.Let)
536539 case "list" => scala.Right(EnumEnum.EnumList)
540+ case "LocalDate" => scala.Right(EnumEnum.LocalDate)
537541 case "Locale" => scala.Right(EnumEnum.Locale)
538542 case "lock" => scala.Right(EnumEnum.Lock)
539543 case "long" => scala.Right(EnumEnum.EnumLong)
@@ -567,6 +571,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
567571 case "nullptr" => scala.Right(EnumEnum.Nullptr)
568572 case "number" => scala.Right(EnumEnum.Number)
569573 case "object" => scala.Right(EnumEnum.Object)
574+ case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime)
575+ case "OffsetTime" => scala.Right(EnumEnum.OffsetTime)
570576 case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper)
571577 case "of" => scala.Right(EnumEnum.Of)
572578 case "oneway" => scala.Right(EnumEnum.Oneway)
@@ -880,6 +886,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
880886 case EnumEnum.Left => "left"
881887 case EnumEnum.Let => "let"
882888 case EnumEnum.EnumList => "list"
889+ case EnumEnum.LocalDate => "LocalDate"
883890 case EnumEnum.Locale => "Locale"
884891 case EnumEnum.Lock => "lock"
885892 case EnumEnum.EnumLong => "long"
@@ -913,6 +920,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
913920 case EnumEnum.Nullptr => "nullptr"
914921 case EnumEnum.Number => "number"
915922 case EnumEnum.Object => "object"
923+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
924+ case EnumEnum.OffsetTime => "OffsetTime"
916925 case EnumEnum.ObjectMapper => "ObjectMapper"
917926 case EnumEnum.Of => "of"
918927 case EnumEnum.Oneway => "oneway"
Mschema-schemadefault / TopLevel.schema+3 −0
@@ -193,6 +193,7 @@
193193 "left",
194194 "let",
195195 "list",
196+ "LocalDate",
196197 "Locale",
197198 "lock",
198199 "long",
@@ -226,6 +227,8 @@
226227 "nullptr",
227228 "number",
228229 "object",
230+ "OffsetDateTime",
231+ "OffsetTime",
229232 "ObjectMapper",
230233 "of",
231234 "oneway",
Mschema-swiftdefault / quicktype.swift+3 −0
@@ -227,6 +227,7 @@ enum Enum: String, Codable {
227227 case enumLeft = "left"
228228 case enumLet = "let"
229229 case list = "list"
230+ case localDate = "LocalDate"
230231 case locale = "Locale"
231232 case lock = "lock"
232233 case long = "long"
@@ -260,6 +261,8 @@ enum Enum: String, Codable {
260261 case nullptr = "nullptr"
261262 case number = "number"
262263 case object = "object"
264+ case offsetDateTime = "OffsetDateTime"
265+ case offsetTime = "OffsetTime"
263266 case objectMapper = "ObjectMapper"
264267 case of = "of"
265268 case oneway = "oneway"
Mschema-typescript-effect-schemadefault / TopLevel.ts+3 −0
@@ -179,6 +179,7 @@ export const Enum = S.Literal(
179179 "left",
180180 "let",
181181 "list",
182+ "LocalDate",
182183 "Locale",
183184 "lock",
184185 "long",
@@ -212,6 +213,8 @@ export const Enum = S.Literal(
212213 "nullptr",
213214 "number",
214215 "object",
216+ "OffsetDateTime",
217+ "OffsetTime",
215218 "ObjectMapper",
216219 "of",
217220 "oneway",
Mschema-typescript-zoddefault / TopLevel.ts+3 −0
@@ -179,6 +179,7 @@ export const EnumSchema = z.enum([
179179 "left",
180180 "let",
181181 "list",
182+ "LocalDate",
182183 "Locale",
183184 "lock",
184185 "long",
@@ -212,6 +213,8 @@ export const EnumSchema = z.enum([
212213 "nullptr",
213214 "number",
214215 "object",
216+ "OffsetDateTime",
217+ "OffsetTime",
215218 "ObjectMapper",
216219 "of",
217220 "oneway",
Mschema-typescriptdefault / TopLevel.ts+4 −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_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" | "MarshalJSON" | "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" | "UnmarshalJSON" | "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" | "LocalDate" | "Locale" | "lock" | "long" | "map" | "MarshalJSON" | "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" | "OffsetDateTime" | "OffsetTime" | "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" | "UnmarshalJSON" | "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
@@ -382,6 +382,7 @@ const typeMap: any = {
382382 "left",
383383 "let",
384384 "list",
385+ "LocalDate",
385386 "Locale",
386387 "lock",
387388 "long",
@@ -415,6 +416,8 @@ const typeMap: any = {
415416 "nullptr",
416417 "number",
417418 "object",
419+ "OffsetDateTime",
420+ "OffsetTime",
418421 "ObjectMapper",
419422 "of",
420423 "oneway",
Test case

test/inputs/schema/keyword-unions.schema

49 generated files · +3,705 −168
Mschema-cjsondefault / TopLevel.c+312 −0
@@ -5505,6 +5505,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) {
55055505 }
55065506 }
55075507
5508+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) {
5509+ struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate));
5510+ if (NULL != x) {
5511+ memset(x, 0, sizeof(struct UnionLocalDate));
5512+ if (cJSON_IsNumber(j)) {
5513+ x->type = cJSON_Number;
5514+ x->value.number = cJSON_GetNumberValue(j);
5515+ }
5516+ else if (cJSON_IsObject(j)) {
5517+ x->type = cJSON_Object;
5518+ x->value.local_date = cJSON_GetLocalDateValue(j);
5519+ if (NULL == x->value.local_date) x->type = 0;
5520+ }
5521+ if (0 == x->type) { cJSON_free(x); return NULL; }
5522+ }
5523+ return x;
5524+}
5525+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionLocalDate * x = j ? cJSON_GetUnionLocalDateValue(j) : NULL; cJSON_Delete(j); return x; }
5526+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
5527+
5528+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) {
5529+ cJSON * j = NULL;
5530+ if (NULL != x) {
5531+ if (cJSON_Number == x->type) {
5532+ j = cJSON_CreateNumber(x->value.number);
5533+ }
5534+ else if (cJSON_Object == x->type) {
5535+ j = cJSON_CreateLocalDate(x->value.local_date);
5536+ }
5537+ }
5538+ return j;
5539+}
5540+
5541+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) {
5542+ if (NULL != x) {
5543+ if (cJSON_Number == x->type) {
5544+ }
5545+ else if (cJSON_Object == x->type) {
5546+ cJSON_DeleteLocalDate(x->value.local_date);
5547+ }
5548+ cJSON_free(x);
5549+ }
5550+}
5551+
55085552 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) {
55095553 struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale));
55105554 if (NULL != x) {
@@ -6561,6 +6605,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) {
65616605 }
65626606 }
65636607
6608+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) {
6609+ struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime));
6610+ if (NULL != x) {
6611+ memset(x, 0, sizeof(struct UnionOffsetDateTime));
6612+ if (cJSON_IsNumber(j)) {
6613+ x->type = cJSON_Number;
6614+ x->value.number = cJSON_GetNumberValue(j);
6615+ }
6616+ else if (cJSON_IsObject(j)) {
6617+ x->type = cJSON_Object;
6618+ x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j);
6619+ if (NULL == x->value.offset_date_time) x->type = 0;
6620+ }
6621+ if (0 == x->type) { cJSON_free(x); return NULL; }
6622+ }
6623+ return x;
6624+}
6625+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetDateTime * x = j ? cJSON_GetUnionOffsetDateTimeValue(j) : NULL; cJSON_Delete(j); return x; }
6626+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6627+
6628+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) {
6629+ cJSON * j = NULL;
6630+ if (NULL != x) {
6631+ if (cJSON_Number == x->type) {
6632+ j = cJSON_CreateNumber(x->value.number);
6633+ }
6634+ else if (cJSON_Object == x->type) {
6635+ j = cJSON_CreateOffsetDateTime(x->value.offset_date_time);
6636+ }
6637+ }
6638+ return j;
6639+}
6640+
6641+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) {
6642+ if (NULL != x) {
6643+ if (cJSON_Number == x->type) {
6644+ }
6645+ else if (cJSON_Object == x->type) {
6646+ cJSON_DeleteOffsetDateTime(x->value.offset_date_time);
6647+ }
6648+ cJSON_free(x);
6649+ }
6650+}
6651+
6652+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) {
6653+ struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime));
6654+ if (NULL != x) {
6655+ memset(x, 0, sizeof(struct UnionOffsetTime));
6656+ if (cJSON_IsNumber(j)) {
6657+ x->type = cJSON_Number;
6658+ x->value.number = cJSON_GetNumberValue(j);
6659+ }
6660+ else if (cJSON_IsObject(j)) {
6661+ x->type = cJSON_Object;
6662+ x->value.offset_time = cJSON_GetOffsetTimeValue(j);
6663+ if (NULL == x->value.offset_time) x->type = 0;
6664+ }
6665+ if (0 == x->type) { cJSON_free(x); return NULL; }
6666+ }
6667+ return x;
6668+}
6669+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetTime * x = j ? cJSON_GetUnionOffsetTimeValue(j) : NULL; cJSON_Delete(j); return x; }
6670+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6671+
6672+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x) {
6673+ cJSON * j = NULL;
6674+ if (NULL != x) {
6675+ if (cJSON_Number == x->type) {
6676+ j = cJSON_CreateNumber(x->value.number);
6677+ }
6678+ else if (cJSON_Object == x->type) {
6679+ j = cJSON_CreateOffsetTime(x->value.offset_time);
6680+ }
6681+ }
6682+ return j;
6683+}
6684+
6685+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) {
6686+ if (NULL != x) {
6687+ if (cJSON_Number == x->type) {
6688+ }
6689+ else if (cJSON_Object == x->type) {
6690+ cJSON_DeleteOffsetTime(x->value.offset_time);
6691+ }
6692+ cJSON_free(x);
6693+ }
6694+}
6695+
65646696 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) {
65656697 struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway));
65666698 if (NULL != x) {
@@ -21178,6 +21310,55 @@ void cJSON_DeleteList(struct List * x) {
2117821310 }
2117921311 }
2118021312
21313+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
21314+ struct LocalDate * x = NULL;
21315+ if (NULL != s) {
21316+ cJSON * j = cJSON_Parse(s);
21317+ if (NULL != j) {
21318+ x = cJSON_GetLocalDateValue(j);
21319+ cJSON_Delete(j);
21320+ }
21321+ }
21322+ return x;
21323+}
21324+
21325+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
21326+ struct LocalDate * x = NULL;
21327+ if (NULL != j) {
21328+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
21329+ memset(x, 0, sizeof(struct LocalDate));
21330+ }
21331+ }
21332+ return x;
21333+}
21334+
21335+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
21336+ cJSON * j = NULL;
21337+ if (NULL != x) {
21338+ if (NULL != (j = cJSON_CreateObject())) {
21339+ }
21340+ }
21341+ return j;
21342+}
21343+
21344+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
21345+ char * s = NULL;
21346+ if (NULL != x) {
21347+ cJSON * j = cJSON_CreateLocalDate(x);
21348+ if (NULL != j) {
21349+ s = cJSON_Print(j);
21350+ cJSON_Delete(j);
21351+ }
21352+ }
21353+ return s;
21354+}
21355+
21356+void cJSON_DeleteLocalDate(struct LocalDate * x) {
21357+ if (NULL != x) {
21358+ cJSON_free(x);
21359+ }
21360+}
21361+
2118121362 struct Locale * cJSON_ParseLocale(const char * s) {
2118221363 struct Locale * x = NULL;
2118321364 if (NULL != s) {
@@ -22354,6 +22535,104 @@ void cJSON_DeleteOf(struct Of * x) {
2235422535 }
2235522536 }
2235622537
22538+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
22539+ struct OffsetDateTime * x = NULL;
22540+ if (NULL != s) {
22541+ cJSON * j = cJSON_Parse(s);
22542+ if (NULL != j) {
22543+ x = cJSON_GetOffsetDateTimeValue(j);
22544+ cJSON_Delete(j);
22545+ }
22546+ }
22547+ return x;
22548+}
22549+
22550+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
22551+ struct OffsetDateTime * x = NULL;
22552+ if (NULL != j) {
22553+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
22554+ memset(x, 0, sizeof(struct OffsetDateTime));
22555+ }
22556+ }
22557+ return x;
22558+}
22559+
22560+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
22561+ cJSON * j = NULL;
22562+ if (NULL != x) {
22563+ if (NULL != (j = cJSON_CreateObject())) {
22564+ }
22565+ }
22566+ return j;
22567+}
22568+
22569+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
22570+ char * s = NULL;
22571+ if (NULL != x) {
22572+ cJSON * j = cJSON_CreateOffsetDateTime(x);
22573+ if (NULL != j) {
22574+ s = cJSON_Print(j);
22575+ cJSON_Delete(j);
22576+ }
22577+ }
22578+ return s;
22579+}
22580+
22581+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
22582+ if (NULL != x) {
22583+ cJSON_free(x);
22584+ }
22585+}
22586+
22587+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
22588+ struct OffsetTime * x = NULL;
22589+ if (NULL != s) {
22590+ cJSON * j = cJSON_Parse(s);
22591+ if (NULL != j) {
22592+ x = cJSON_GetOffsetTimeValue(j);
22593+ cJSON_Delete(j);
22594+ }
22595+ }
22596+ return x;
22597+}
22598+
22599+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
22600+ struct OffsetTime * x = NULL;
22601+ if (NULL != j) {
22602+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
22603+ memset(x, 0, sizeof(struct OffsetTime));
22604+ }
22605+ }
22606+ return x;
22607+}
22608+
22609+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
22610+ cJSON * j = NULL;
22611+ if (NULL != x) {
22612+ if (NULL != (j = cJSON_CreateObject())) {
22613+ }
22614+ }
22615+ return j;
22616+}
22617+
22618+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
22619+ char * s = NULL;
22620+ if (NULL != x) {
22621+ cJSON * j = cJSON_CreateOffsetTime(x);
22622+ if (NULL != j) {
22623+ s = cJSON_Print(j);
22624+ cJSON_Delete(j);
22625+ }
22626+ }
22627+ return s;
22628+}
22629+
22630+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
22631+ if (NULL != x) {
22632+ cJSON_free(x);
22633+ }
22634+}
22635+
2235722636 struct Oneway * cJSON_ParseOneway(const char * s) {
2235822637 struct Oneway * x = NULL;
2235922638 if (NULL != s) {
@@ -32724,6 +33003,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3272433003 x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
3272533004 if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; }
3272633005 }
33006+ if (cJSON_HasObjectItem(j, "LocalDate")) {
33007+ if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; }
33008+ x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
33009+ if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; }
33010+ }
3272733011 if (cJSON_HasObjectItem(j, "Locale")) {
3272833012 if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; }
3272933013 x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale"));
@@ -32899,6 +33183,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3289933183 x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
3290033184 if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; }
3290133185 }
33186+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
33187+ if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
33188+ x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
33189+ if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; }
33190+ }
33191+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
33192+ if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
33193+ x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
33194+ if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; }
33195+ }
3290233196 if (cJSON_HasObjectItem(j, "oneway")) {
3290333197 if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; }
3290433198 x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway"));
@@ -34090,6 +34384,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3409034384 if (NULL != x->list) {
3409134385 cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list));
3409234386 }
34387+ if (NULL != x->local_date) {
34388+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date));
34389+ }
3409334390 if (NULL != x->locale) {
3409434391 cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale));
3409534392 }
@@ -34195,6 +34492,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3419534492 if (NULL != x->of) {
3419634493 cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of));
3419734494 }
34495+ if (NULL != x->offset_date_time) {
34496+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time));
34497+ }
34498+ if (NULL != x->offset_time) {
34499+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time));
34500+ }
3419834501 if (NULL != x->oneway) {
3419934502 cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway));
3420034503 }
@@ -35138,6 +35441,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3513835441 if (NULL != x->list) {
3513935442 cJSON_DeleteUnionList(x->list);
3514035443 }
35444+ if (NULL != x->local_date) {
35445+ cJSON_DeleteUnionLocalDate(x->local_date);
35446+ }
3514135447 if (NULL != x->locale) {
3514235448 cJSON_DeleteUnionLocale(x->locale);
3514335449 }
@@ -35243,6 +35549,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3524335549 if (NULL != x->of) {
3524435550 cJSON_DeleteUnionOf(x->of);
3524535551 }
35552+ if (NULL != x->offset_date_time) {
35553+ cJSON_DeleteUnionOffsetDateTime(x->offset_date_time);
35554+ }
35555+ if (NULL != x->offset_time) {
35556+ cJSON_DeleteUnionOffsetTime(x->offset_time);
35557+ }
3524635558 if (NULL != x->oneway) {
3524735559 cJSON_DeleteUnionOneway(x->oneway);
3524835560 }
Mschema-cjsondefault / TopLevel.h+75 −0
@@ -1423,6 +1423,17 @@ struct UnionList {
14231423 } value;
14241424 };
14251425
1426+struct LocalDate {
1427+};
1428+
1429+struct UnionLocalDate {
1430+ int type;
1431+ union {
1432+ double number;
1433+ struct LocalDate * local_date;
1434+ } value;
1435+};
1436+
14261437 struct Locale {
14271438 };
14281439
@@ -1687,6 +1698,28 @@ struct UnionOf {
16871698 } value;
16881699 };
16891700
1701+struct OffsetDateTime {
1702+};
1703+
1704+struct UnionOffsetDateTime {
1705+ int type;
1706+ union {
1707+ double number;
1708+ struct OffsetDateTime * offset_date_time;
1709+ } value;
1710+};
1711+
1712+struct OffsetTime {
1713+};
1714+
1715+struct UnionOffsetTime {
1716+ int type;
1717+ union {
1718+ double number;
1719+ struct OffsetTime * offset_time;
1720+ } value;
1721+};
1722+
16901723 struct Oneway {
16911724 };
16921725
@@ -3990,6 +4023,7 @@ struct TopLevel {
39904023 struct UnionLeft * left;
39914024 struct UnionLet * let;
39924025 struct UnionList * list;
4026+ struct UnionLocalDate * local_date;
39934027 struct UnionLocale * locale;
39944028 struct UnionLock * lock;
39954029 struct UnionLong * top_level_long;
@@ -4025,6 +4059,8 @@ struct TopLevel {
40254059 struct UnionObject * object;
40264060 struct UnionObjectMapper * object_mapper;
40274061 struct UnionOf * of;
4062+ struct UnionOffsetDateTime * offset_date_time;
4063+ struct UnionOffsetTime * offset_time;
40284064 struct UnionOneway * oneway;
40294065 struct UnionOpen * open;
40304066 struct UnionOperator * top_level_operator;
@@ -5031,6 +5067,13 @@ void cJSON_DeleteUnionList(struct UnionList * x);
50315067 struct UnionList * cJSON_ParseUnionList(const char * s);
50325068 char * cJSON_PrintUnionList(const struct UnionList * x);
50335069
5070+#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5071+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j);
5072+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x);
5073+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x);
5074+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s);
5075+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x);
5076+
50345077 #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
50355078 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j);
50365079 cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x);
@@ -5199,6 +5242,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x);
51995242 struct UnionOf * cJSON_ParseUnionOf(const char * s);
52005243 char * cJSON_PrintUnionOf(const struct UnionOf * x);
52015244
5245+#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5246+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j);
5247+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5248+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x);
5249+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s);
5250+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5251+
5252+#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5253+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j);
5254+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x);
5255+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x);
5256+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s);
5257+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x);
5258+
52025259 #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
52035260 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j);
52045261 cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x);
@@ -7300,6 +7357,12 @@ cJSON * cJSON_CreateList(const struct List * x);
73007357 char * cJSON_PrintList(const struct List * x);
73017358 void cJSON_DeleteList(struct List * x);
73027359
7360+struct LocalDate * cJSON_ParseLocalDate(const char * s);
7361+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
7362+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
7363+char * cJSON_PrintLocalDate(const struct LocalDate * x);
7364+void cJSON_DeleteLocalDate(struct LocalDate * x);
7365+
73037366 struct Locale * cJSON_ParseLocale(const char * s);
73047367 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
73057368 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -7444,6 +7507,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
74447507 char * cJSON_PrintOf(const struct Of * x);
74457508 void cJSON_DeleteOf(struct Of * x);
74467509
7510+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
7511+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
7512+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
7513+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
7514+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
7515+
7516+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
7517+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
7518+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
7519+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
7520+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
7521+
74477522 struct Oneway * cJSON_ParseOneway(const char * s);
74487523 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
74497524 cJSON * cJSON_CreateOneway(const struct Oneway * x);
Mschema-cplusplusdefault / quicktype.hpp+180 −0
@@ -1589,6 +1589,18 @@ namespace quicktype {
15891589
15901590 using UnionList = std::variant<List, double>;
15911591
1592+ class LocalDate {
1593+ public:
1594+ LocalDate() = default;
1595+ virtual ~LocalDate() = default;
1596+
1597+ private:
1598+
1599+ public:
1600+ };
1601+
1602+ using UnionLocalDate = std::variant<LocalDate, double>;
1603+
15921604 class Locale {
15931605 public:
15941606 Locale() = default;
@@ -1877,6 +1889,30 @@ namespace quicktype {
18771889
18781890 using UnionOf = std::variant<Of, double>;
18791891
1892+ class OffsetDateTime {
1893+ public:
1894+ OffsetDateTime() = default;
1895+ virtual ~OffsetDateTime() = default;
1896+
1897+ private:
1898+
1899+ public:
1900+ };
1901+
1902+ using UnionOffsetDateTime = std::variant<OffsetDateTime, double>;
1903+
1904+ class OffsetTime {
1905+ public:
1906+ OffsetTime() = default;
1907+ virtual ~OffsetTime() = default;
1908+
1909+ private:
1910+
1911+ public:
1912+ };
1913+
1914+ using UnionOffsetTime = std::variant<OffsetTime, double>;
1915+
18801916 class Oneway {
18811917 public:
18821918 Oneway() = default;
@@ -4378,6 +4414,7 @@ namespace quicktype {
43784414 std::optional<UnionLeft> left;
43794415 std::optional<UnionLet> let;
43804416 std::optional<UnionList> list;
4417+ std::optional<UnionLocalDate> local_date;
43814418 std::optional<UnionLocale> locale;
43824419 std::optional<UnionLock> lock;
43834420 std::optional<UnionLong> top_level_long;
@@ -4413,6 +4450,8 @@ namespace quicktype {
44134450 std::optional<UnionObject> object;
44144451 std::optional<UnionObjectMapper> object_mapper;
44154452 std::optional<UnionOf> of;
4453+ std::optional<UnionOffsetDateTime> offset_date_time;
4454+ std::optional<UnionOffsetTime> offset_time;
44164455 std::optional<UnionOneway> oneway;
44174456 std::optional<UnionOpen> open;
44184457 std::optional<UnionOperator> top_level_operator;
@@ -5260,6 +5299,10 @@ namespace quicktype {
52605299 std::optional<UnionList> & get_mutable_list() { return list; }
52615300 void set_list(const std::optional<UnionList> & value) { this->list = value; }
52625301
5302+ const std::optional<UnionLocalDate> & get_local_date() const { return local_date; }
5303+ std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; }
5304+ void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; }
5305+
52635306 const std::optional<UnionLocale> & get_locale() const { return locale; }
52645307 std::optional<UnionLocale> & get_mutable_locale() { return locale; }
52655308 void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; }
@@ -5400,6 +5443,14 @@ namespace quicktype {
54005443 std::optional<UnionOf> & get_mutable_of() { return of; }
54015444 void set_of(const std::optional<UnionOf> & value) { this->of = value; }
54025445
5446+ const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; }
5447+ std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; }
5448+ void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; }
5449+
5450+ const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; }
5451+ std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; }
5452+ void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; }
5453+
54035454 const std::optional<UnionOneway> & get_oneway() const { return oneway; }
54045455 std::optional<UnionOneway> & get_mutable_oneway() { return oneway; }
54055456 void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; }
@@ -6294,6 +6345,9 @@ void to_json(json & j, const Let & x);
62946345 void from_json(const json & j, List & x);
62956346 void to_json(json & j, const List & x);
62966347
6348+void from_json(const json & j, LocalDate & x);
6349+void to_json(json & j, const LocalDate & x);
6350+
62976351 void from_json(const json & j, Locale & x);
62986352 void to_json(json & j, const Locale & x);
62996353
@@ -6366,6 +6420,12 @@ void to_json(json & j, const ObjectMapper & x);
63666420 void from_json(const json & j, Of & x);
63676421 void to_json(json & j, const Of & x);
63686422
6423+void from_json(const json & j, OffsetDateTime & x);
6424+void to_json(json & j, const OffsetDateTime & x);
6425+
6426+void from_json(const json & j, OffsetTime & x);
6427+void to_json(json & j, const OffsetTime & x);
6428+
63696429 void from_json(const json & j, Oneway & x);
63706430 void to_json(json & j, const Oneway & x);
63716431
@@ -7699,6 +7759,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> {
76997759 static void to_json(json & j, const std::variant<quicktype::List, double> & x);
77007760 };
77017761
7762+template <>
7763+struct adl_serializer<std::variant<quicktype::LocalDate, double>> {
7764+ static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x);
7765+ static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x);
7766+};
7767+
77027768 template <>
77037769 struct adl_serializer<std::variant<quicktype::Locale, double>> {
77047770 static void from_json(const json & j, std::variant<quicktype::Locale, double> & x);
@@ -7843,6 +7909,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> {
78437909 static void to_json(json & j, const std::variant<quicktype::Of, double> & x);
78447910 };
78457911
7912+template <>
7913+struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> {
7914+ static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x);
7915+ static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x);
7916+};
7917+
7918+template <>
7919+struct adl_serializer<std::variant<quicktype::OffsetTime, double>> {
7920+ static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x);
7921+ static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x);
7922+};
7923+
78467924 template <>
78477925 struct adl_serializer<std::variant<quicktype::Oneway, double>> {
78487926 static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x);
@@ -10377,6 +10455,17 @@ namespace quicktype {
1037710455 (void)x;
1037810456 }
1037910457
10458+ inline void from_json(const json & j, LocalDate& x) {
10459+ if (!j.is_object()) throw std::runtime_error("Expected object");
10460+ (void)j;
10461+ (void)x;
10462+ }
10463+
10464+ inline void to_json(json & j, const LocalDate & x) {
10465+ j = json::object();
10466+ (void)x;
10467+ }
10468+
1038010469 inline void from_json(const json & j, Locale& x) {
1038110470 if (!j.is_object()) throw std::runtime_error("Expected object");
1038210471 (void)j;
@@ -10641,6 +10730,28 @@ namespace quicktype {
1064110730 (void)x;
1064210731 }
1064310732
10733+ inline void from_json(const json & j, OffsetDateTime& x) {
10734+ if (!j.is_object()) throw std::runtime_error("Expected object");
10735+ (void)j;
10736+ (void)x;
10737+ }
10738+
10739+ inline void to_json(json & j, const OffsetDateTime & x) {
10740+ j = json::object();
10741+ (void)x;
10742+ }
10743+
10744+ inline void from_json(const json & j, OffsetTime& x) {
10745+ if (!j.is_object()) throw std::runtime_error("Expected object");
10746+ (void)j;
10747+ (void)x;
10748+ }
10749+
10750+ inline void to_json(json & j, const OffsetTime & x) {
10751+ j = json::object();
10752+ (void)x;
10753+ }
10754+
1064410755 inline void from_json(const json & j, Oneway& x) {
1064510756 if (!j.is_object()) throw std::runtime_error("Expected object");
1064610757 (void)j;
@@ -13124,6 +13235,8 @@ namespace quicktype {
1312413235 x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let"));
1312513236 if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null");
1312613237 x.set_list(get_stack_optional<std::variant<List, double>>(j, "list"));
13238+ if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null");
13239+ x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate"));
1312713240 if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null");
1312813241 x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale"));
1312913242 if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null");
@@ -13194,6 +13307,10 @@ namespace quicktype {
1319413307 x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper"));
1319513308 if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null");
1319613309 x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of"));
13310+ if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null");
13311+ x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime"));
13312+ if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null");
13313+ x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime"));
1319713314 if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null");
1319813315 x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway"));
1319913316 if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null");
@@ -13635,6 +13752,7 @@ namespace quicktype {
1363513752 j["left"] = x.get_left();
1363613753 j["let"] = x.get_let();
1363713754 j["list"] = x.get_list();
13755+ j["LocalDate"] = x.get_local_date();
1363813756 j["Locale"] = x.get_locale();
1363913757 j["lock"] = x.get_lock();
1364013758 j["long"] = x.get_top_level_long();
@@ -13670,6 +13788,8 @@ namespace quicktype {
1367013788 j["object"] = x.get_object();
1367113789 j["ObjectMapper"] = x.get_object_mapper();
1367213790 j["of"] = x.get_of();
13791+ j["OffsetDateTime"] = x.get_offset_date_time();
13792+ j["OffsetTime"] = x.get_offset_time();
1367313793 j["oneway"] = x.get_oneway();
1367413794 j["open"] = x.get_open();
1367513795 j["operator"] = x.get_top_level_operator();
@@ -16302,6 +16422,26 @@ namespace nlohmann {
1630216422 }
1630316423 }
1630416424
16425+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) {
16426+ if (j.is_number())
16427+ x = j.get<double>();
16428+ else if (j.is_object())
16429+ x = j.get<quicktype::LocalDate>();
16430+ else throw std::runtime_error("Could not deserialise!");
16431+ }
16432+
16433+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) {
16434+ switch (x.index()) {
16435+ case 0:
16436+ j = std::get<quicktype::LocalDate>(x);
16437+ break;
16438+ case 1:
16439+ j = std::get<double>(x);
16440+ break;
16441+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16442+ }
16443+ }
16444+
1630516445 inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) {
1630616446 if (j.is_number())
1630716447 x = j.get<double>();
@@ -16782,6 +16922,46 @@ namespace nlohmann {
1678216922 }
1678316923 }
1678416924
16925+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) {
16926+ if (j.is_number())
16927+ x = j.get<double>();
16928+ else if (j.is_object())
16929+ x = j.get<quicktype::OffsetDateTime>();
16930+ else throw std::runtime_error("Could not deserialise!");
16931+ }
16932+
16933+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) {
16934+ switch (x.index()) {
16935+ case 0:
16936+ j = std::get<quicktype::OffsetDateTime>(x);
16937+ break;
16938+ case 1:
16939+ j = std::get<double>(x);
16940+ break;
16941+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16942+ }
16943+ }
16944+
16945+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) {
16946+ if (j.is_number())
16947+ x = j.get<double>();
16948+ else if (j.is_object())
16949+ x = j.get<quicktype::OffsetTime>();
16950+ else throw std::runtime_error("Could not deserialise!");
16951+ }
16952+
16953+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) {
16954+ switch (x.index()) {
16955+ case 0:
16956+ j = std::get<quicktype::OffsetTime>(x);
16957+ break;
16958+ case 1:
16959+ j = std::get<double>(x);
16960+ break;
16961+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16962+ }
16963+ }
16964+
1678516965 inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) {
1678616966 if (j.is_number())
1678716967 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+30 −0
@@ -421,6 +421,9 @@ class TopLevel
421421
422422 property list : UnionList?
423423
424+ @[JSON::Field(key: "LocalDate")]
425+ property local_date : UnionLocalDate?
426+
424427 @[JSON::Field(key: "Locale")]
425428 property locale : UnionLocale?
426429
@@ -507,6 +510,12 @@ class TopLevel
507510 @[JSON::Field(key: "of")]
508511 property top_level_of : UnionOf?
509512
513+ @[JSON::Field(key: "OffsetDateTime")]
514+ property offset_date_time : UnionOffsetDateTime?
515+
516+ @[JSON::Field(key: "OffsetTime")]
517+ property offset_time : UnionOffsetTime?
518+
510519 property oneway : UnionOneway?
511520
512521 property open : UnionOpen?
@@ -1610,6 +1619,11 @@ class List
16101619
16111620 end
16121621
1622+class LocalDate
1623+ include JSON::Serializable
1624+
1625+end
1626+
16131627 class Locale
16141628 include JSON::Serializable
16151629
@@ -1760,6 +1774,16 @@ class ObjectMapper
17601774
17611775 end
17621776
1777+class OffsetDateTime
1778+ include JSON::Serializable
1779+
1780+end
1781+
1782+class OffsetTime
1783+ include JSON::Serializable
1784+
1785+end
1786+
17631787 class Oneway
17641788 include JSON::Serializable
17651789
@@ -2843,6 +2867,8 @@ alias UnionLet = Float64 | Let
28432867
28442868 alias UnionList = Float64 | List
28452869
2870+alias UnionLocalDate = Float64 | LocalDate
2871+
28462872 alias UnionLocale = Float64 | Locale
28472873
28482874 alias UnionLock = Float64 | Lock
@@ -2903,6 +2929,10 @@ alias UnionObject = Float64 | ObjectClass
29032929
29042930 alias UnionObjectMapper = Float64 | ObjectMapper
29052931
2932+alias UnionOffsetDateTime = Float64 | OffsetDateTime
2933+
2934+alias UnionOffsetTime = Float64 | OffsetTime
2935+
29062936 alias UnionOneway = Float64 | Oneway
29072937
29082938 alias UnionOpen = Float64 | Open
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
@@ -562,6 +562,9 @@ namespace QuickType
562562 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563563 public UnionList? List { get; set; }
564564
565+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
566+ public UnionLocalDate? LocalDate { get; set; }
567+
565568 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
566569 public UnionLocale? Locale { get; set; }
567570
@@ -667,6 +670,12 @@ namespace QuickType
667670 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668671 public UnionOf? Of { get; set; }
669672
673+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
674+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
675+
676+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
677+ public UnionOffsetTime? OffsetTime { get; set; }
678+
670679 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
671680 public UnionOneway? Oneway { get; set; }
672681
@@ -1735,6 +1744,10 @@ namespace QuickType
17351744 {
17361745 }
17371746
1747+ public partial record LocalDate
1748+ {
1749+ }
1750+
17381751 public partial record Locale
17391752 {
17401753 }
@@ -1867,6 +1880,14 @@ namespace QuickType
18671880 {
18681881 }
18691882
1883+ public partial record OffsetDateTime
1884+ {
1885+ }
1886+
1887+ public partial record OffsetTime
1888+ {
1889+ }
1890+
18701891 public partial record Oneway
18711892 {
18721893 }
@@ -3953,6 +3974,15 @@ namespace QuickType
39533974 public static implicit operator UnionList(List List) => new UnionList { List = List };
39543975 }
39553976
3977+ public partial struct UnionLocalDate
3978+ {
3979+ public double? Double;
3980+ public LocalDate? LocalDate;
3981+
3982+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
3983+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
3984+ }
3985+
39563986 public partial struct UnionLocale
39573987 {
39583988 public double? Double;
@@ -4250,6 +4280,24 @@ namespace QuickType
42504280 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
42514281 }
42524282
4283+ public partial struct UnionOffsetDateTime
4284+ {
4285+ public double? Double;
4286+ public OffsetDateTime? OffsetDateTime;
4287+
4288+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4289+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4290+ }
4291+
4292+ public partial struct UnionOffsetTime
4293+ {
4294+ public double? Double;
4295+ public OffsetTime? OffsetTime;
4296+
4297+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4298+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4299+ }
4300+
42534301 public partial struct UnionOneway
42544302 {
42554303 public double? Double;
@@ -5555,6 +5603,7 @@ namespace QuickType
55555603 UnionJsonReaderConverter.Singleton,
55565604 UnionJsonTokenTypeConverter.Singleton,
55575605 UnionKSerializerConverter.Singleton,
5606+ UnionLocalDateConverter.Singleton,
55585607 UnionLocaleConverter.Singleton,
55595608 UnionMapEntryConverter.Singleton,
55605609 UnionMarshalJsonConverter.Singleton,
@@ -5565,6 +5614,8 @@ namespace QuickType
55655614 UnionNullConverter.Singleton,
55665615 UnionNoneConverter.Singleton,
55675616 UnionObjectMapperConverter.Singleton,
5617+ UnionOffsetDateTimeConverter.Singleton,
5618+ UnionOffsetTimeConverter.Singleton,
55685619 UnionPrimitiveKindConverter.Singleton,
55695620 UnionProtocolConverter.Singleton,
55705621 UnionRegExpConverter.Singleton,
@@ -7234,6 +7285,44 @@ namespace QuickType
72347285 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
72357286 }
72367287
7288+ internal class UnionLocalDateConverter : JsonConverter
7289+ {
7290+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7291+
7292+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7293+ {
7294+ switch (reader.TokenType)
7295+ {
7296+ case JsonToken.Integer:
7297+ case JsonToken.Float:
7298+ var doubleValue = serializer.Deserialize<double>(reader);
7299+ return new UnionLocalDate { Double = doubleValue };
7300+ case JsonToken.StartObject:
7301+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7302+ return new UnionLocalDate { LocalDate = objectValue };
7303+ }
7304+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7305+ }
7306+
7307+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7308+ {
7309+ var value = (UnionLocalDate)untypedValue;
7310+ if (value.Double != null)
7311+ {
7312+ serializer.Serialize(writer, value.Double.Value);
7313+ return;
7314+ }
7315+ if (value.LocalDate != null)
7316+ {
7317+ serializer.Serialize(writer, value.LocalDate);
7318+ return;
7319+ }
7320+ throw new Exception("Cannot marshal type UnionLocalDate");
7321+ }
7322+
7323+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7324+ }
7325+
72377326 internal class UnionLocaleConverter : JsonConverter
72387327 {
72397328 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7614,6 +7703,82 @@ namespace QuickType
76147703 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
76157704 }
76167705
7706+ internal class UnionOffsetDateTimeConverter : JsonConverter
7707+ {
7708+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7709+
7710+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7711+ {
7712+ switch (reader.TokenType)
7713+ {
7714+ case JsonToken.Integer:
7715+ case JsonToken.Float:
7716+ var doubleValue = serializer.Deserialize<double>(reader);
7717+ return new UnionOffsetDateTime { Double = doubleValue };
7718+ case JsonToken.StartObject:
7719+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7720+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7721+ }
7722+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7723+ }
7724+
7725+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7726+ {
7727+ var value = (UnionOffsetDateTime)untypedValue;
7728+ if (value.Double != null)
7729+ {
7730+ serializer.Serialize(writer, value.Double.Value);
7731+ return;
7732+ }
7733+ if (value.OffsetDateTime != null)
7734+ {
7735+ serializer.Serialize(writer, value.OffsetDateTime);
7736+ return;
7737+ }
7738+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7739+ }
7740+
7741+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7742+ }
7743+
7744+ internal class UnionOffsetTimeConverter : JsonConverter
7745+ {
7746+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7747+
7748+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7749+ {
7750+ switch (reader.TokenType)
7751+ {
7752+ case JsonToken.Integer:
7753+ case JsonToken.Float:
7754+ var doubleValue = serializer.Deserialize<double>(reader);
7755+ return new UnionOffsetTime { Double = doubleValue };
7756+ case JsonToken.StartObject:
7757+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7758+ return new UnionOffsetTime { OffsetTime = objectValue };
7759+ }
7760+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7761+ }
7762+
7763+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7764+ {
7765+ var value = (UnionOffsetTime)untypedValue;
7766+ if (value.Double != null)
7767+ {
7768+ serializer.Serialize(writer, value.Double.Value);
7769+ return;
7770+ }
7771+ if (value.OffsetTime != null)
7772+ {
7773+ serializer.Serialize(writer, value.OffsetTime);
7774+ return;
7775+ }
7776+ throw new Exception("Cannot marshal type UnionOffsetTime");
7777+ }
7778+
7779+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7780+ }
7781+
76177782 internal class UnionPrimitiveKindConverter : JsonConverter
76187783 {
76197784 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
@@ -738,6 +738,10 @@ namespace QuickType
738738 [JsonPropertyName("list")]
739739 public UnionList? List { get; set; }
740740
741+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
742+ [JsonPropertyName("LocalDate")]
743+ public UnionLocalDate? LocalDate { get; set; }
744+
741745 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
742746 [JsonPropertyName("Locale")]
743747 public UnionLocale? Locale { get; set; }
@@ -878,6 +882,14 @@ namespace QuickType
878882 [JsonPropertyName("of")]
879883 public UnionOf? Of { get; set; }
880884
885+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
886+ [JsonPropertyName("OffsetDateTime")]
887+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
888+
889+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
890+ [JsonPropertyName("OffsetTime")]
891+ public UnionOffsetTime? OffsetTime { get; set; }
892+
881893 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
882894 [JsonPropertyName("oneway")]
883895 public UnionOneway? Oneway { get; set; }
@@ -2083,6 +2095,10 @@ namespace QuickType
20832095 {
20842096 }
20852097
2098+ public partial class LocalDate
2099+ {
2100+ }
2101+
20862102 public partial class Locale
20872103 {
20882104 }
@@ -2215,6 +2231,14 @@ namespace QuickType
22152231 {
22162232 }
22172233
2234+ public partial class OffsetDateTime
2235+ {
2236+ }
2237+
2238+ public partial class OffsetTime
2239+ {
2240+ }
2241+
22182242 public partial class Oneway
22192243 {
22202244 }
@@ -4311,6 +4335,15 @@ namespace QuickType
43114335 public static implicit operator UnionList(List List) => new UnionList { List = List };
43124336 }
43134337
4338+ public partial struct UnionLocalDate
4339+ {
4340+ public double? Double;
4341+ public LocalDate? LocalDate;
4342+
4343+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4344+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4345+ }
4346+
43144347 public partial struct UnionLocale
43154348 {
43164349 public double? Double;
@@ -4608,6 +4641,24 @@ namespace QuickType
46084641 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
46094642 }
46104643
4644+ public partial struct UnionOffsetDateTime
4645+ {
4646+ public double? Double;
4647+ public OffsetDateTime? OffsetDateTime;
4648+
4649+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4650+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4651+ }
4652+
4653+ public partial struct UnionOffsetTime
4654+ {
4655+ public double? Double;
4656+ public OffsetTime? OffsetTime;
4657+
4658+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4659+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4660+ }
4661+
46114662 public partial struct UnionOneway
46124663 {
46134664 public double? Double;
@@ -5893,6 +5944,7 @@ namespace QuickType
58935944 UnionJsonReaderConverter.Singleton,
58945945 UnionJsonTokenTypeConverter.Singleton,
58955946 UnionKSerializerConverter.Singleton,
5947+ UnionLocalDateConverter.Singleton,
58965948 UnionLocaleConverter.Singleton,
58975949 UnionMapEntryConverter.Singleton,
58985950 UnionMarshalJsonConverter.Singleton,
@@ -5903,6 +5955,8 @@ namespace QuickType
59035955 UnionNullConverter.Singleton,
59045956 UnionNoneConverter.Singleton,
59055957 UnionObjectMapperConverter.Singleton,
5958+ UnionOffsetDateTimeConverter.Singleton,
5959+ UnionOffsetTimeConverter.Singleton,
59065960 UnionPrimitiveKindConverter.Singleton,
59075961 UnionProtocolConverter.Singleton,
59085962 UnionRegExpConverter.Singleton,
@@ -7502,6 +7556,42 @@ namespace QuickType
75027556 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
75037557 }
75047558
7559+ internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate>
7560+ {
7561+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate);
7562+
7563+ public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7564+ {
7565+ switch (reader.TokenType)
7566+ {
7567+ case JsonTokenType.Number:
7568+ var doubleValue1 = reader.GetDouble();
7569+ return new UnionLocalDate { Double = doubleValue1 };
7570+ case JsonTokenType.StartObject:
7571+ var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options);
7572+ return new UnionLocalDate { LocalDate = objectValue };
7573+ }
7574+ throw new JsonException("Cannot unmarshal type UnionLocalDate");
7575+ }
7576+
7577+ public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options)
7578+ {
7579+ if (value.Double != null)
7580+ {
7581+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7582+ return;
7583+ }
7584+ if (value.LocalDate != null)
7585+ {
7586+ JsonSerializer.Serialize(writer, value.LocalDate, options);
7587+ return;
7588+ }
7589+ throw new NotSupportedException("Cannot marshal type UnionLocalDate");
7590+ }
7591+
7592+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7593+ }
7594+
75057595 internal class UnionLocaleConverter : JsonConverter<UnionLocale>
75067596 {
75077597 public override bool CanConvert(Type t) => t == typeof(UnionLocale);
@@ -7862,6 +7952,78 @@ namespace QuickType
78627952 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
78637953 }
78647954
7955+ internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime>
7956+ {
7957+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime);
7958+
7959+ public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7960+ {
7961+ switch (reader.TokenType)
7962+ {
7963+ case JsonTokenType.Number:
7964+ var doubleValue1 = reader.GetDouble();
7965+ return new UnionOffsetDateTime { Double = doubleValue1 };
7966+ case JsonTokenType.StartObject:
7967+ var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options);
7968+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7969+ }
7970+ throw new JsonException("Cannot unmarshal type UnionOffsetDateTime");
7971+ }
7972+
7973+ public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options)
7974+ {
7975+ if (value.Double != null)
7976+ {
7977+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7978+ return;
7979+ }
7980+ if (value.OffsetDateTime != null)
7981+ {
7982+ JsonSerializer.Serialize(writer, value.OffsetDateTime, options);
7983+ return;
7984+ }
7985+ throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime");
7986+ }
7987+
7988+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7989+ }
7990+
7991+ internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime>
7992+ {
7993+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime);
7994+
7995+ public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7996+ {
7997+ switch (reader.TokenType)
7998+ {
7999+ case JsonTokenType.Number:
8000+ var doubleValue1 = reader.GetDouble();
8001+ return new UnionOffsetTime { Double = doubleValue1 };
8002+ case JsonTokenType.StartObject:
8003+ var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options);
8004+ return new UnionOffsetTime { OffsetTime = objectValue };
8005+ }
8006+ throw new JsonException("Cannot unmarshal type UnionOffsetTime");
8007+ }
8008+
8009+ public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options)
8010+ {
8011+ if (value.Double != null)
8012+ {
8013+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8014+ return;
8015+ }
8016+ if (value.OffsetTime != null)
8017+ {
8018+ JsonSerializer.Serialize(writer, value.OffsetTime, options);
8019+ return;
8020+ }
8021+ throw new NotSupportedException("Cannot marshal type UnionOffsetTime");
8022+ }
8023+
8024+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
8025+ }
8026+
78658027 internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind>
78668028 {
78678029 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind);
Mschema-csharpdefault / QuickType.cs+165 −0
@@ -562,6 +562,9 @@ namespace QuickType
562562 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563563 public UnionList? List { get; set; }
564564
565+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
566+ public UnionLocalDate? LocalDate { get; set; }
567+
565568 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
566569 public UnionLocale? Locale { get; set; }
567570
@@ -667,6 +670,12 @@ namespace QuickType
667670 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668671 public UnionOf? Of { get; set; }
669672
673+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
674+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
675+
676+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
677+ public UnionOffsetTime? OffsetTime { get; set; }
678+
670679 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
671680 public UnionOneway? Oneway { get; set; }
672681
@@ -1743,6 +1752,10 @@ namespace QuickType
17431752 {
17441753 }
17451754
1755+ public partial class LocalDate
1756+ {
1757+ }
1758+
17461759 public partial class Locale
17471760 {
17481761 }
@@ -1875,6 +1888,14 @@ namespace QuickType
18751888 {
18761889 }
18771890
1891+ public partial class OffsetDateTime
1892+ {
1893+ }
1894+
1895+ public partial class OffsetTime
1896+ {
1897+ }
1898+
18781899 public partial class Oneway
18791900 {
18801901 }
@@ -3971,6 +3992,15 @@ namespace QuickType
39713992 public static implicit operator UnionList(List List) => new UnionList { List = List };
39723993 }
39733994
3995+ public partial struct UnionLocalDate
3996+ {
3997+ public double? Double;
3998+ public LocalDate? LocalDate;
3999+
4000+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4001+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4002+ }
4003+
39744004 public partial struct UnionLocale
39754005 {
39764006 public double? Double;
@@ -4268,6 +4298,24 @@ namespace QuickType
42684298 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
42694299 }
42704300
4301+ public partial struct UnionOffsetDateTime
4302+ {
4303+ public double? Double;
4304+ public OffsetDateTime? OffsetDateTime;
4305+
4306+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4307+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4308+ }
4309+
4310+ public partial struct UnionOffsetTime
4311+ {
4312+ public double? Double;
4313+ public OffsetTime? OffsetTime;
4314+
4315+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4316+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4317+ }
4318+
42714319 public partial struct UnionOneway
42724320 {
42734321 public double? Double;
@@ -5555,6 +5603,7 @@ namespace QuickType
55555603 UnionJsonReaderConverter.Singleton,
55565604 UnionJsonTokenTypeConverter.Singleton,
55575605 UnionKSerializerConverter.Singleton,
5606+ UnionLocalDateConverter.Singleton,
55585607 UnionLocaleConverter.Singleton,
55595608 UnionMapEntryConverter.Singleton,
55605609 UnionMarshalJsonConverter.Singleton,
@@ -5565,6 +5614,8 @@ namespace QuickType
55655614 UnionNullConverter.Singleton,
55665615 UnionNoneConverter.Singleton,
55675616 UnionObjectMapperConverter.Singleton,
5617+ UnionOffsetDateTimeConverter.Singleton,
5618+ UnionOffsetTimeConverter.Singleton,
55685619 UnionPrimitiveKindConverter.Singleton,
55695620 UnionProtocolConverter.Singleton,
55705621 UnionRegExpConverter.Singleton,
@@ -7234,6 +7285,44 @@ namespace QuickType
72347285 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
72357286 }
72367287
7288+ internal class UnionLocalDateConverter : JsonConverter
7289+ {
7290+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7291+
7292+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7293+ {
7294+ switch (reader.TokenType)
7295+ {
7296+ case JsonToken.Integer:
7297+ case JsonToken.Float:
7298+ var doubleValue = serializer.Deserialize<double>(reader);
7299+ return new UnionLocalDate { Double = doubleValue };
7300+ case JsonToken.StartObject:
7301+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7302+ return new UnionLocalDate { LocalDate = objectValue };
7303+ }
7304+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7305+ }
7306+
7307+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7308+ {
7309+ var value = (UnionLocalDate)untypedValue;
7310+ if (value.Double != null)
7311+ {
7312+ serializer.Serialize(writer, value.Double.Value);
7313+ return;
7314+ }
7315+ if (value.LocalDate != null)
7316+ {
7317+ serializer.Serialize(writer, value.LocalDate);
7318+ return;
7319+ }
7320+ throw new Exception("Cannot marshal type UnionLocalDate");
7321+ }
7322+
7323+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7324+ }
7325+
72377326 internal class UnionLocaleConverter : JsonConverter
72387327 {
72397328 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7614,6 +7703,82 @@ namespace QuickType
76147703 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
76157704 }
76167705
7706+ internal class UnionOffsetDateTimeConverter : JsonConverter
7707+ {
7708+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7709+
7710+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7711+ {
7712+ switch (reader.TokenType)
7713+ {
7714+ case JsonToken.Integer:
7715+ case JsonToken.Float:
7716+ var doubleValue = serializer.Deserialize<double>(reader);
7717+ return new UnionOffsetDateTime { Double = doubleValue };
7718+ case JsonToken.StartObject:
7719+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7720+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7721+ }
7722+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7723+ }
7724+
7725+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7726+ {
7727+ var value = (UnionOffsetDateTime)untypedValue;
7728+ if (value.Double != null)
7729+ {
7730+ serializer.Serialize(writer, value.Double.Value);
7731+ return;
7732+ }
7733+ if (value.OffsetDateTime != null)
7734+ {
7735+ serializer.Serialize(writer, value.OffsetDateTime);
7736+ return;
7737+ }
7738+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7739+ }
7740+
7741+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7742+ }
7743+
7744+ internal class UnionOffsetTimeConverter : JsonConverter
7745+ {
7746+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7747+
7748+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7749+ {
7750+ switch (reader.TokenType)
7751+ {
7752+ case JsonToken.Integer:
7753+ case JsonToken.Float:
7754+ var doubleValue = serializer.Deserialize<double>(reader);
7755+ return new UnionOffsetTime { Double = doubleValue };
7756+ case JsonToken.StartObject:
7757+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7758+ return new UnionOffsetTime { OffsetTime = objectValue };
7759+ }
7760+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7761+ }
7762+
7763+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7764+ {
7765+ var value = (UnionOffsetTime)untypedValue;
7766+ if (value.Double != null)
7767+ {
7768+ serializer.Serialize(writer, value.Double.Value);
7769+ return;
7770+ }
7771+ if (value.OffsetTime != null)
7772+ {
7773+ serializer.Serialize(writer, value.OffsetTime);
7774+ return;
7775+ }
7776+ throw new Exception("Cannot marshal type UnionOffsetTime");
7777+ }
7778+
7779+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7780+ }
7781+
76177782 internal class UnionPrimitiveKindConverter : JsonConverter
76187783 {
76197784 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -188,6 +188,7 @@ class TopLevel {
188188 final dynamic left;
189189 final dynamic let;
190190 final dynamic list;
191+ final dynamic localDate;
191192 final dynamic locale;
192193 final dynamic lock;
193194 final dynamic long;
@@ -223,6 +224,8 @@ class TopLevel {
223224 final dynamic object;
224225 final dynamic objectMapper;
225226 final dynamic of;
227+ final dynamic offsetDateTime;
228+ final dynamic offsetTime;
226229 final dynamic oneway;
227230 final dynamic open;
228231 final dynamic topLevelOperator;
@@ -533,6 +536,7 @@ class TopLevel {
533536 this.left,
534537 this.let,
535538 this.list,
539+ this.localDate,
536540 this.locale,
537541 this.lock,
538542 this.long,
@@ -568,6 +572,8 @@ class TopLevel {
568572 this.object,
569573 this.objectMapper,
570574 this.of,
575+ this.offsetDateTime,
576+ this.offsetTime,
571577 this.oneway,
572578 this.open,
573579 this.topLevelOperator,
@@ -879,6 +885,7 @@ class TopLevel {
879885 left: json["left"],
880886 let: json["let"],
881887 list: json["list"],
888+ localDate: json["LocalDate"],
882889 locale: json["Locale"],
883890 lock: json["lock"],
884891 long: json["long"],
@@ -914,6 +921,8 @@ class TopLevel {
914921 object: json["object"],
915922 objectMapper: json["ObjectMapper"],
916923 of: json["of"],
924+ offsetDateTime: json["OffsetDateTime"],
925+ offsetTime: json["OffsetTime"],
917926 oneway: json["oneway"],
918927 open: json["open"],
919928 topLevelOperator: json["operator"],
@@ -1225,6 +1234,7 @@ class TopLevel {
12251234 "left": left,
12261235 "let": let,
12271236 "list": list,
1237+ "LocalDate": localDate,
12281238 "Locale": locale,
12291239 "lock": lock,
12301240 "long": long,
@@ -1260,6 +1270,8 @@ class TopLevel {
12601270 "object": object,
12611271 "ObjectMapper": objectMapper,
12621272 "of": of,
1273+ "OffsetDateTime": offsetDateTime,
1274+ "OffsetTime": offsetTime,
12631275 "oneway": oneway,
12641276 "open": open,
12651277 "operator": topLevelOperator,
@@ -2792,6 +2804,16 @@ class ListClass {
27922804 };
27932805 }
27942806
2807+class LocalDate {
2808+ LocalDate();
2809+
2810+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
2811+ );
2812+
2813+ Map<String, dynamic> toJson() => {
2814+ };
2815+}
2816+
27952817 class Locale {
27962818 Locale();
27972819
@@ -3092,6 +3114,26 @@ class Of {
30923114 };
30933115 }
30943116
3117+class OffsetDateTime {
3118+ OffsetDateTime();
3119+
3120+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
3121+ );
3122+
3123+ Map<String, dynamic> toJson() => {
3124+ };
3125+}
3126+
3127+class OffsetTime {
3128+ OffsetTime();
3129+
3130+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
3131+ );
3132+
3133+ Map<String, dynamic> toJson() => {
3134+ };
3135+}
3136+
30953137 class Oneway {
30963138 Oneway();
Mschema-elixirdefault / QuickType.ex+133 −1
@@ -4848,6 +4848,35 @@ defmodule ListClass do
48484848 end
48494849 end
48504850
4851+defmodule LocalDate do
4852+ defstruct []
4853+
4854+ @type t :: %__MODULE__{
4855+ }
4856+
4857+ def from_map(m) when is_map(m) do
4858+ %LocalDate{
4859+ }
4860+ end
4861+
4862+ def from_json(json) do
4863+ json
4864+ |> Jason.decode!()
4865+ |> from_map()
4866+ end
4867+
4868+ def to_map(_struct) do
4869+ %{
4870+ }
4871+ end
4872+
4873+ def to_json(struct) do
4874+ struct
4875+ |> to_map()
4876+ |> Jason.encode!()
4877+ end
4878+end
4879+
48514880 defmodule Locale do
48524881 defstruct []
48534882
@@ -5747,6 +5776,64 @@ defmodule Of do
57475776 end
57485777 end
57495778
5779+defmodule OffsetDateTime do
5780+ defstruct []
5781+
5782+ @type t :: %__MODULE__{
5783+ }
5784+
5785+ def from_map(m) when is_map(m) do
5786+ %OffsetDateTime{
5787+ }
5788+ end
5789+
5790+ def from_json(json) do
5791+ json
5792+ |> Jason.decode!()
5793+ |> from_map()
5794+ end
5795+
5796+ def to_map(_struct) do
5797+ %{
5798+ }
5799+ end
5800+
5801+ def to_json(struct) do
5802+ struct
5803+ |> to_map()
5804+ |> Jason.encode!()
5805+ end
5806+end
5807+
5808+defmodule OffsetTime do
5809+ defstruct []
5810+
5811+ @type t :: %__MODULE__{
5812+ }
5813+
5814+ def from_map(m) when is_map(m) do
5815+ %OffsetTime{
5816+ }
5817+ end
5818+
5819+ def from_json(json) do
5820+ json
5821+ |> Jason.decode!()
5822+ |> from_map()
5823+ end
5824+
5825+ def to_map(_struct) do
5826+ %{
5827+ }
5828+ end
5829+
5830+ def to_json(struct) do
5831+ struct
5832+ |> to_map()
5833+ |> Jason.encode!()
5834+ end
5835+end
5836+
57505837 defmodule Oneway do
57515838 defstruct []
57525839
@@ -9924,7 +10011,7 @@ defmodule Yield do
992410011 end
992510012
992610013 defmodule TopLevel do
9927- 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, :marshal_json, :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, :unmarshal_json, :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]
10014+ 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, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :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, :offset_date_time, :offset_time, :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, :unmarshal_json, :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]
992810015
992910016 @type t :: %__MODULE__{
993010017 empty: Empty.t() | float() | nil,
@@ -10106,6 +10193,7 @@ defmodule TopLevel do
1010610193 left: Left.t() | float() | nil,
1010710194 let: Let.t() | float() | nil,
1010810195 list: ListClass.t() | float() | nil,
10196+ local_date: LocalDate.t() | float() | nil,
1010910197 locale: Locale.t() | float() | nil,
1011010198 lock: Lock.t() | float() | nil,
1011110199 long: Long.t() | float() | nil,
@@ -10141,6 +10229,8 @@ defmodule TopLevel do
1014110229 object: Object.t() | float() | nil,
1014210230 object_mapper: ObjectMapper.t() | float() | nil,
1014310231 of: Of.t() | float() | nil,
10232+ offset_date_time: OffsetDateTime.t() | float() | nil,
10233+ offset_time: OffsetTime.t() | float() | nil,
1014410234 oneway: Oneway.t() | float() | nil,
1014510235 open: Open.t() | float() | nil,
1014610236 operator: Operator.t() | float() | nil,
@@ -12416,6 +12506,18 @@ defmodule TopLevel do
1241612506 def encode_list(value) when is_nil(value), do: value
1241712507 def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"}
1241812508
12509+ def decode_local_date(%{} = value), do: LocalDate.from_map(value)
12510+ def decode_local_date(value) when is_float(value), do: value
12511+ def decode_local_date(value) when is_integer(value), do: value
12512+ def decode_local_date(value) when is_nil(value), do: value
12513+ def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"}
12514+
12515+ def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value)
12516+ def encode_local_date(value) when is_float(value), do: value
12517+ def encode_local_date(value) when is_integer(value), do: value
12518+ def encode_local_date(value) when is_nil(value), do: value
12519+ def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"}
12520+
1241912521 def decode_locale(%{} = value), do: Locale.from_map(value)
1242012522 def decode_locale(value) when is_float(value), do: value
1242112523 def decode_locale(value) when is_integer(value), do: value
@@ -12836,6 +12938,30 @@ defmodule TopLevel do
1283612938 def encode_of(value) when is_nil(value), do: value
1283712939 def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"}
1283812940
12941+ def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value)
12942+ def decode_offset_date_time(value) when is_float(value), do: value
12943+ def decode_offset_date_time(value) when is_integer(value), do: value
12944+ def decode_offset_date_time(value) when is_nil(value), do: value
12945+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"}
12946+
12947+ def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value)
12948+ def encode_offset_date_time(value) when is_float(value), do: value
12949+ def encode_offset_date_time(value) when is_integer(value), do: value
12950+ def encode_offset_date_time(value) when is_nil(value), do: value
12951+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"}
12952+
12953+ def decode_offset_time(%{} = value), do: OffsetTime.from_map(value)
12954+ def decode_offset_time(value) when is_float(value), do: value
12955+ def decode_offset_time(value) when is_integer(value), do: value
12956+ def decode_offset_time(value) when is_nil(value), do: value
12957+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"}
12958+
12959+ def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value)
12960+ def encode_offset_time(value) when is_float(value), do: value
12961+ def encode_offset_time(value) when is_integer(value), do: value
12962+ def encode_offset_time(value) when is_nil(value), do: value
12963+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"}
12964+
1283912965 def decode_oneway(%{} = value), do: Oneway.from_map(value)
1284012966 def decode_oneway(value) when is_float(value), do: value
1284112967 def decode_oneway(value) when is_integer(value), do: value
@@ -14565,6 +14691,7 @@ defmodule TopLevel do
1456514691 left: decode_left(m["left"]),
1456614692 let: decode_let(m["let"]),
1456714693 list: decode_list(m["list"]),
14694+ local_date: decode_local_date(m["LocalDate"]),
1456814695 locale: decode_locale(m["Locale"]),
1456914696 lock: decode_lock(m["lock"]),
1457014697 long: decode_long(m["long"]),
@@ -14600,6 +14727,8 @@ defmodule TopLevel do
1460014727 object: decode_object(m["object"]),
1460114728 object_mapper: decode_object_mapper(m["ObjectMapper"]),
1460214729 of: decode_of(m["of"]),
14730+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
14731+ offset_time: decode_offset_time(m["OffsetTime"]),
1460314732 oneway: decode_oneway(m["oneway"]),
1460414733 open: decode_open(m["open"]),
1460514734 operator: decode_operator(m["operator"]),
@@ -14919,6 +15048,7 @@ defmodule TopLevel do
1491915048 "left" => encode_left(struct.left),
1492015049 "let" => encode_let(struct.let),
1492115050 "list" => encode_list(struct.list),
15051+ "LocalDate" => encode_local_date(struct.local_date),
1492215052 "Locale" => encode_locale(struct.locale),
1492315053 "lock" => encode_lock(struct.lock),
1492415054 "long" => encode_long(struct.long),
@@ -14954,6 +15084,8 @@ defmodule TopLevel do
1495415084 "object" => encode_object(struct.object),
1495515085 "ObjectMapper" => encode_object_mapper(struct.object_mapper),
1495615086 "of" => encode_of(struct.of),
15087+ "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time),
15088+ "OffsetTime" => encode_offset_time(struct.offset_time),
1495715089 "oneway" => encode_oneway(struct.oneway),
1495815090 "open" => encode_open(struct.open),
1495915091 "operator" => encode_operator(struct.operator),
Mschema-elmdefault / QuickType.elm+105 −0
@@ -175,6 +175,7 @@ module QuickType exposing
175175 , Lazy
176176 , Left
177177 , ListClass
178+ , LocalDate
178179 , Locale
179180 , Lock
180181 , Long
@@ -206,6 +207,8 @@ module QuickType exposing
206207 , Number
207208 , Object
208209 , ObjectMapper
210+ , OffsetDateTime
211+ , OffsetTime
209212 , Oneway
210213 , Open
211214 , Operator
@@ -517,6 +520,7 @@ module QuickType exposing
517520 , UnionLazy(..)
518521 , UnionLeft(..)
519522 , UnionList(..)
523+ , UnionLocalDate(..)
520524 , UnionLocale(..)
521525 , UnionLock(..)
522526 , UnionLong(..)
@@ -548,6 +552,8 @@ module QuickType exposing
548552 , UnionNumber(..)
549553 , UnionObject(..)
550554 , UnionObjectMapper(..)
555+ , UnionOffsetDateTime(..)
556+ , UnionOffsetTime(..)
551557 , UnionOneway(..)
552558 , UnionOpen(..)
553559 , UnionOperator(..)
@@ -886,6 +892,7 @@ type alias QuickType =
886892 , left : Maybe UnionLeft
887893 , quickTypeLet : Maybe UnionLet
888894 , list : Maybe UnionList
895+ , localDate : Maybe UnionLocalDate
889896 , locale : Maybe UnionLocale
890897 , lock : Maybe UnionLock
891898 , long : Maybe UnionLong
@@ -921,6 +928,8 @@ type alias QuickType =
921928 , object : Maybe UnionObject
922929 , objectMapper : Maybe UnionObjectMapper
923930 , quickTypeOf : Maybe UnionOf
931+ , offsetDateTime : Maybe UnionOffsetDateTime
932+ , offsetTime : Maybe UnionOffsetTime
924933 , oneway : Maybe UnionOneway
925934 , open : Maybe UnionOpen
926935 , operator : Maybe UnionOperator
@@ -2332,6 +2341,14 @@ type alias ListClass =
23322341 {
23332342 }
23342343
2344+type UnionLocalDate
2345+ = DoubleInUnionLocalDate Float
2346+ | LocalDateInUnionLocalDate LocalDate
2347+
2348+type alias LocalDate =
2349+ {
2350+ }
2351+
23352352 type UnionLocale
23362353 = DoubleInUnionLocale Float
23372354 | LocaleInUnionLocale Locale
@@ -2580,6 +2597,22 @@ type alias ObjectMapper =
25802597 {
25812598 }
25822599
2600+type UnionOffsetDateTime
2601+ = DoubleInUnionOffsetDateTime Float
2602+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2603+
2604+type alias OffsetDateTime =
2605+ {
2606+ }
2607+
2608+type UnionOffsetTime
2609+ = DoubleInUnionOffsetTime Float
2610+ | OffsetTimeInUnionOffsetTime OffsetTime
2611+
2612+type alias OffsetTime =
2613+ {
2614+ }
2615+
25832616 type UnionOneway
25842617 = DoubleInUnionOneway Float
25852618 | OnewayInUnionOneway Oneway
@@ -3981,6 +4014,7 @@ quickType =
39814014 |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing)
39824015 |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing)
39834016 |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing)
4017+ |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing)
39844018 |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing)
39854019 |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing)
39864020 |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing)
@@ -4016,6 +4050,8 @@ quickType =
40164050 |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing)
40174051 |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing)
40184052 |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing)
4053+ |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing)
4054+ |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing)
40194055 |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing)
40204056 |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing)
40214057 |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing)
@@ -4328,6 +4364,7 @@ encodeQuickType x =
43284364 , ("left", makeNullableEncoder encodeUnionLeft x.left)
43294365 , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet)
43304366 , ("list", makeNullableEncoder encodeUnionList x.list)
4367+ , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate)
43314368 , ("Locale", makeNullableEncoder encodeUnionLocale x.locale)
43324369 , ("lock", makeNullableEncoder encodeUnionLock x.lock)
43334370 , ("long", makeNullableEncoder encodeUnionLong x.long)
@@ -4363,6 +4400,8 @@ encodeQuickType x =
43634400 , ("object", makeNullableEncoder encodeUnionObject x.object)
43644401 , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper)
43654402 , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf)
4403+ , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime)
4404+ , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime)
43664405 , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway)
43674406 , ("open", makeNullableEncoder encodeUnionOpen x.open)
43684407 , ("operator", makeNullableEncoder encodeUnionOperator x.operator)
@@ -8014,6 +8053,28 @@ encodeListClass x =
80148053 [
80158054 ]
80168055
8056+unionLocalDate : Jdec.Decoder UnionLocalDate
8057+unionLocalDate =
8058+ Jdec.oneOf
8059+ [ Jdec.map DoubleInUnionLocalDate Jdec.float
8060+ , Jdec.map LocalDateInUnionLocalDate localDate
8061+ ]
8062+
8063+encodeUnionLocalDate : UnionLocalDate -> Jenc.Value
8064+encodeUnionLocalDate x = case x of
8065+ DoubleInUnionLocalDate y -> Jenc.float y
8066+ LocalDateInUnionLocalDate y -> encodeLocalDate y
8067+
8068+localDate : Jdec.Decoder LocalDate
8069+localDate =
8070+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
8071+
8072+encodeLocalDate : LocalDate -> Jenc.Value
8073+encodeLocalDate x =
8074+ Jenc.object
8075+ [
8076+ ]
8077+
80178078 unionLocale : Jdec.Decoder UnionLocale
80188079 unionLocale =
80198080 Jdec.oneOf
@@ -8696,6 +8757,50 @@ encodeObjectMapper x =
86968757 [
86978758 ]
86988759
8760+unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime
8761+unionOffsetDateTime =
8762+ Jdec.oneOf
8763+ [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float
8764+ , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime
8765+ ]
8766+
8767+encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value
8768+encodeUnionOffsetDateTime x = case x of
8769+ DoubleInUnionOffsetDateTime y -> Jenc.float y
8770+ OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y
8771+
8772+offsetDateTime : Jdec.Decoder OffsetDateTime
8773+offsetDateTime =
8774+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
8775+
8776+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
8777+encodeOffsetDateTime x =
8778+ Jenc.object
8779+ [
8780+ ]
8781+
8782+unionOffsetTime : Jdec.Decoder UnionOffsetTime
8783+unionOffsetTime =
8784+ Jdec.oneOf
8785+ [ Jdec.map DoubleInUnionOffsetTime Jdec.float
8786+ , Jdec.map OffsetTimeInUnionOffsetTime offsetTime
8787+ ]
8788+
8789+encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value
8790+encodeUnionOffsetTime x = case x of
8791+ DoubleInUnionOffsetTime y -> Jenc.float y
8792+ OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y
8793+
8794+offsetTime : Jdec.Decoder OffsetTime
8795+offsetTime =
8796+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
8797+
8798+encodeOffsetTime : OffsetTime -> Jenc.Value
8799+encodeOffsetTime x =
8800+ Jenc.object
8801+ [
8802+ ]
8803+
86998804 unionOneway : Jdec.Decoder UnionOneway
87008805 unionOneway =
87018806 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+27 −0
@@ -189,6 +189,7 @@ export type TopLevel = {
189189 left?: UnionLeft;
190190 let?: UnionLet;
191191 list?: UnionList;
192+ LocalDate?: UnionLocalDate;
192193 Locale?: UnionLocale;
193194 lock?: UnionLock;
194195 long?: UnionLong;
@@ -224,6 +225,8 @@ export type TopLevel = {
224225 object?: UnionObject;
225226 ObjectMapper?: UnionObjectMapper;
226227 of?: UnionOf;
228+ OffsetDateTime?: UnionOffsetDateTime;
229+ OffsetTime?: UnionOffsetTime;
227230 oneway?: UnionOneway;
228231 open?: UnionOpen;
229232 operator?: UnionOperator;
@@ -536,6 +539,11 @@ export type UnionKSerializer = KSerializer | number;
536539 export type KSerializer = {
537540 };
538541
542+export type UnionLocalDate = LocalDate | number;
543+
544+export type LocalDate = {
545+};
546+
539547 export type UnionLocale = Locale | number;
540548
541549 export type Locale = {
@@ -586,6 +594,16 @@ export type UnionObjectMapper = ObjectMapper | number;
586594 export type ObjectMapper = {
587595 };
588596
597+export type UnionOffsetDateTime = OffsetDateTime | number;
598+
599+export type OffsetDateTime = {
600+};
601+
602+export type UnionOffsetTime = OffsetTime | number;
603+
604+export type OffsetTime = {
605+};
606+
589607 export type UnionPrimitiveKind = PrimitiveKind | number;
590608
591609 export type PrimitiveKind = {
@@ -2431,6 +2449,7 @@ const typeMap: any = {
24312449 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
24322450 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
24332451 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
2452+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
24342453 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
24352454 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
24362455 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -2466,6 +2485,8 @@ const typeMap: any = {
24662485 { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) },
24672486 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
24682487 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
2488+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
2489+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
24692490 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
24702491 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
24712492 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -2668,6 +2689,8 @@ const typeMap: any = {
26682689 ], false),
26692690 "KSerializer": o([
26702691 ], false),
2692+ "LocalDate": o([
2693+ ], false),
26712694 "Locale": o([
26722695 ], false),
26732696 "MapEntry": o([
@@ -2688,6 +2711,10 @@ const typeMap: any = {
26882711 ], false),
26892712 "ObjectMapper": o([
26902713 ], false),
2714+ "OffsetDateTime": o([
2715+ ], false),
2716+ "OffsetTime": o([
2717+ ], false),
26912718 "PrimitiveKind": o([
26922719 ], false),
26932720 "Protocol": o([
Mschema-golangdefault / quicktype.go+78 −0
@@ -201,6 +201,7 @@ type TopLevel struct {
201201 Left *UnionLeft `json:"left"`
202202 Let *UnionLet `json:"let"`
203203 List *UnionList `json:"list"`
204+ LocalDate *UnionLocalDate `json:"LocalDate"`
204205 Locale *UnionLocale `json:"Locale"`
205206 Lock *UnionLock `json:"lock"`
206207 Long *UnionLong `json:"long"`
@@ -236,6 +237,8 @@ type TopLevel struct {
236237 Object *UnionObject `json:"object"`
237238 ObjectMapper *UnionObjectMapper `json:"ObjectMapper"`
238239 Of *UnionOf `json:"of"`
240+ OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"`
241+ OffsetTime *UnionOffsetTime `json:"OffsetTime"`
239242 Oneway *UnionOneway `json:"oneway"`
240243 Open *UnionOpen `json:"open"`
241244 Operator *UnionOperator `json:"operator"`
@@ -886,6 +889,9 @@ type Let struct {
886889 type List struct {
887890 }
888891
892+type LocalDate struct {
893+}
894+
889895 type Locale struct {
890896 }
891897
@@ -985,6 +991,12 @@ type ObjectMapper struct {
985991 type Of struct {
986992 }
987993
994+type OffsetDateTime struct {
995+}
996+
997+type OffsetTime struct {
998+}
999+
9881000 type Oneway struct {
9891001 }
9901002
@@ -5199,6 +5211,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) {
51995211 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false)
52005212 }
52015213
5214+type UnionLocalDate struct {
5215+ Double *float64
5216+ LocalDate *LocalDate
5217+}
5218+
5219+func (x *UnionLocalDate) UnmarshalJSON(data []byte) error {
5220+ x.LocalDate = nil
5221+ var c LocalDate
5222+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5223+ if err != nil {
5224+ return err
5225+ }
5226+ if object {
5227+ x.LocalDate = &c
5228+ }
5229+ return nil
5230+}
5231+
5232+func (x *UnionLocalDate) MarshalJSON() ([]byte, error) {
5233+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false)
5234+}
5235+
52025236 type UnionLocale struct {
52035237 Double *float64
52045238 Locale *Locale
@@ -5925,6 +5959,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) {
59255959 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false)
59265960 }
59275961
5962+type UnionOffsetDateTime struct {
5963+ Double *float64
5964+ OffsetDateTime *OffsetDateTime
5965+}
5966+
5967+func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error {
5968+ x.OffsetDateTime = nil
5969+ var c OffsetDateTime
5970+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5971+ if err != nil {
5972+ return err
5973+ }
5974+ if object {
5975+ x.OffsetDateTime = &c
5976+ }
5977+ return nil
5978+}
5979+
5980+func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) {
5981+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false)
5982+}
5983+
5984+type UnionOffsetTime struct {
5985+ Double *float64
5986+ OffsetTime *OffsetTime
5987+}
5988+
5989+func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error {
5990+ x.OffsetTime = nil
5991+ var c OffsetTime
5992+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5993+ if err != nil {
5994+ return err
5995+ }
5996+ if object {
5997+ x.OffsetTime = &c
5998+ }
5999+ return nil
6000+}
6001+
6002+func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) {
6003+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false)
6004+}
6005+
59286006 type UnionOneway struct {
59296007 Double *float64
59306008 Oneway *Oneway
Mschema-haskelldefault / QuickType.hs+85 −1
@@ -164,6 +164,7 @@ module QuickType
164164 , Lazy (..)
165165 , LeftClass (..)
166166 , List (..)
167+ , LocalDate (..)
167168 , Locale (..)
168169 , Lock (..)
169170 , Long (..)
@@ -195,6 +196,8 @@ module QuickType
195196 , NumberClass (..)
196197 , ObjectClass (..)
197198 , ObjectMapper (..)
199+ , OffsetDateTime (..)
200+ , OffsetTime (..)
198201 , Oneway (..)
199202 , Open (..)
200203 , Operator (..)
@@ -506,6 +509,7 @@ module QuickType
506509 , UnionLazy (..)
507510 , UnionLeft (..)
508511 , UnionList (..)
512+ , UnionLocalDate (..)
509513 , UnionLocale (..)
510514 , UnionLock (..)
511515 , UnionLong (..)
@@ -537,6 +541,8 @@ module QuickType
537541 , UnionNumber (..)
538542 , UnionObject (..)
539543 , UnionObjectMapper (..)
544+ , UnionOffsetDateTime (..)
545+ , UnionOffsetTime (..)
540546 , UnionOneway (..)
541547 , UnionOpen (..)
542548 , UnionOperator (..)
@@ -876,6 +882,7 @@ data QuickType = QuickType
876882 , leftQuickType :: Maybe UnionLeft
877883 , quickTypeLetQuickType :: Maybe UnionLet
878884 , listQuickType :: Maybe UnionList
885+ , localDateQuickType :: Maybe UnionLocalDate
879886 , localeQuickType :: Maybe UnionLocale
880887 , lockQuickType :: Maybe UnionLock
881888 , longQuickType :: Maybe UnionLong
@@ -911,6 +918,8 @@ data QuickType = QuickType
911918 , objectQuickType :: Maybe UnionObject
912919 , objectMapperQuickType :: Maybe UnionObjectMapper
913920 , quickTypeOfQuickType :: Maybe UnionOf
921+ , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime
922+ , offsetTimeQuickType :: Maybe UnionOffsetTime
914923 , onewayQuickType :: Maybe UnionOneway
915924 , openQuickType :: Maybe UnionOpen
916925 , operatorQuickType :: Maybe UnionOperator
@@ -2491,6 +2500,15 @@ data List = List
24912500 {
24922501 } deriving (Show)
24932502
2503+data UnionLocalDate
2504+ = DoubleInUnionLocalDate Double
2505+ | LocalDateInUnionLocalDate LocalDate
2506+ deriving (Show)
2507+
2508+data LocalDate = LocalDate
2509+ {
2510+ } deriving (Show)
2511+
24942512 data UnionLocale
24952513 = DoubleInUnionLocale Double
24962514 | LocaleInUnionLocale Locale
@@ -2770,6 +2788,24 @@ data ObjectMapper = ObjectMapper
27702788 {
27712789 } deriving (Show)
27722790
2791+data UnionOffsetDateTime
2792+ = DoubleInUnionOffsetDateTime Double
2793+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2794+ deriving (Show)
2795+
2796+data OffsetDateTime = OffsetDateTime
2797+ {
2798+ } deriving (Show)
2799+
2800+data UnionOffsetTime
2801+ = DoubleInUnionOffsetTime Double
2802+ | OffsetTimeInUnionOffsetTime OffsetTime
2803+ deriving (Show)
2804+
2805+data OffsetTime = OffsetTime
2806+ {
2807+ } deriving (Show)
2808+
27732809 data UnionOneway
27742810 = DoubleInUnionOneway Double
27752811 | OnewayInUnionOneway Oneway
@@ -4124,7 +4160,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
41244160 decodeTopLevel = decode
41254161
41264162 instance ToJSON QuickType where
4127- 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 marshalJSONQuickType 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 unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4163+ 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 localDateQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType marshalJSONQuickType 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 offsetDateTimeQuickType offsetTimeQuickType 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 unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
41284164 object $ foldMap (maybe [] pure)
41294165 [ ("_" .=) <$> emptyQuickType
41304166 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4305,6 +4341,7 @@ instance ToJSON QuickType where
43054341 , ("left" .=) <$> leftQuickType
43064342 , ("let" .=) <$> quickTypeLetQuickType
43074343 , ("list" .=) <$> listQuickType
4344+ , ("LocalDate" .=) <$> localDateQuickType
43084345 , ("Locale" .=) <$> localeQuickType
43094346 , ("lock" .=) <$> lockQuickType
43104347 , ("long" .=) <$> longQuickType
@@ -4340,6 +4377,8 @@ instance ToJSON QuickType where
43404377 , ("object" .=) <$> objectQuickType
43414378 , ("ObjectMapper" .=) <$> objectMapperQuickType
43424379 , ("of" .=) <$> quickTypeOfQuickType
4380+ , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType
4381+ , ("OffsetTime" .=) <$> offsetTimeQuickType
43434382 , ("oneway" .=) <$> onewayQuickType
43444383 , ("open" .=) <$> openQuickType
43454384 , ("operator" .=) <$> operatorQuickType
@@ -4652,6 +4691,7 @@ instance FromJSON QuickType where
46524691 <*> v .:! "left"
46534692 <*> v .:! "let"
46544693 <*> v .:! "list"
4694+ <*> v .:! "LocalDate"
46554695 <*> v .:! "Locale"
46564696 <*> v .:! "lock"
46574697 <*> v .:! "long"
@@ -4687,6 +4727,8 @@ instance FromJSON QuickType where
46874727 <*> v .:! "object"
46884728 <*> v .:! "ObjectMapper"
46894729 <*> v .:! "of"
4730+ <*> v .:! "OffsetDateTime"
4731+ <*> v .:! "OffsetTime"
46904732 <*> v .:! "oneway"
46914733 <*> v .:! "open"
46924734 <*> v .:! "operator"
@@ -7071,6 +7113,20 @@ instance ToJSON List where
70717113 instance FromJSON List where
70727114 parseJSON (Object _) = return List
70737115
7116+instance ToJSON UnionLocalDate where
7117+ toJSON (DoubleInUnionLocalDate x) = toJSON x
7118+ toJSON (LocalDateInUnionLocalDate x) = toJSON x
7119+
7120+instance FromJSON UnionLocalDate where
7121+ parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs
7122+ parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs
7123+
7124+instance ToJSON LocalDate where
7125+ toJSON = \_ -> emptyObject
7126+
7127+instance FromJSON LocalDate where
7128+ parseJSON (Object _) = return LocalDate
7129+
70747130 instance ToJSON UnionLocale where
70757131 toJSON (DoubleInUnionLocale x) = toJSON x
70767132 toJSON (LocaleInUnionLocale x) = toJSON x
@@ -7505,6 +7561,34 @@ instance ToJSON ObjectMapper where
75057561 instance FromJSON ObjectMapper where
75067562 parseJSON (Object _) = return ObjectMapper
75077563
7564+instance ToJSON UnionOffsetDateTime where
7565+ toJSON (DoubleInUnionOffsetDateTime x) = toJSON x
7566+ toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x
7567+
7568+instance FromJSON UnionOffsetDateTime where
7569+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs
7570+ parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs
7571+
7572+instance ToJSON OffsetDateTime where
7573+ toJSON = \_ -> emptyObject
7574+
7575+instance FromJSON OffsetDateTime where
7576+ parseJSON (Object _) = return OffsetDateTime
7577+
7578+instance ToJSON UnionOffsetTime where
7579+ toJSON (DoubleInUnionOffsetTime x) = toJSON x
7580+ toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x
7581+
7582+instance FromJSON UnionOffsetTime where
7583+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs
7584+ parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs
7585+
7586+instance ToJSON OffsetTime where
7587+ toJSON = \_ -> emptyObject
7588+
7589+instance FromJSON OffsetTime where
7590+ parseJSON (Object _) = return OffsetTime
7591+
75087592 instance ToJSON UnionOneway where
75097593 toJSON (DoubleInUnionOneway x) = toJSON x
75107594 toJSON (OnewayInUnionOneway x) = toJSON x
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.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 LocalDate {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.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 OffsetDateTime {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.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 OffsetTime {
7+}
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -182,6 +182,7 @@ public class TopLevel {
182182 private UnionLeft left;
183183 private UnionLet let;
184184 private UnionList list;
185+ private UnionLocalDate localDate;
185186 private UnionLocale locale;
186187 private UnionLock lock;
187188 private UnionLong topLevelLong;
@@ -217,6 +218,8 @@ public class TopLevel {
217218 private UnionObject object;
218219 private UnionObjectMapper objectMapper;
219220 private UnionOf of;
221+ private UnionOffsetDateTime offsetDateTime;
222+ private UnionOffsetTime offsetTime;
220223 private UnionOneway oneway;
221224 private UnionOpen open;
222225 private UnionOperator operator;
@@ -1242,6 +1245,11 @@ public class TopLevel {
12421245 @JsonProperty("list")
12431246 public void setList(UnionList value) { this.list = value; }
12441247
1248+ @JsonProperty("LocalDate")
1249+ public UnionLocalDate getLocalDate() { return localDate; }
1250+ @JsonProperty("LocalDate")
1251+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1252+
12451253 @JsonProperty("Locale")
12461254 public UnionLocale getLocale() { return locale; }
12471255 @JsonProperty("Locale")
@@ -1417,6 +1425,16 @@ public class TopLevel {
14171425 @JsonProperty("of")
14181426 public void setOf(UnionOf value) { this.of = value; }
14191427
1428+ @JsonProperty("OffsetDateTime")
1429+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1430+ @JsonProperty("OffsetDateTime")
1431+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1432+
1433+ @JsonProperty("OffsetTime")
1434+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1435+ @JsonProperty("OffsetTime")
1436+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1437+
14201438 @JsonProperty("oneway")
14211439 public UnionOneway getOneway() { return oneway; }
14221440 @JsonProperty("oneway")
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDate localDateValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
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.localDateValue = jsonParser.readValueAs(LocalDate.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateValue != null) {
44+ jsonGenerator.writeObject(obj.localDateValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTime offsetDateTimeValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
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.offsetDateTimeValue = jsonParser.readValueAs(OffsetDateTime.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTime offsetTimeValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
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.offsetTimeValue = jsonParser.readValueAs(OffsetTime.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClass.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 LocalDateClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.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 OffsetDateTimeClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.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 OffsetTimeClass {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -182,6 +182,7 @@ public class TopLevel {
182182 private UnionLeft left;
183183 private UnionLet let;
184184 private UnionList list;
185+ private UnionLocalDate localDate;
185186 private UnionLocale locale;
186187 private UnionLock lock;
187188 private UnionLong topLevelLong;
@@ -217,6 +218,8 @@ public class TopLevel {
217218 private UnionObject object;
218219 private UnionObjectMapper objectMapper;
219220 private UnionOf of;
221+ private UnionOffsetDateTime offsetDateTime;
222+ private UnionOffsetTime offsetTime;
220223 private UnionOneway oneway;
221224 private UnionOpen open;
222225 private UnionOperator operator;
@@ -1242,6 +1245,11 @@ public class TopLevel {
12421245 @JsonProperty("list")
12431246 public void setList(UnionList value) { this.list = value; }
12441247
1248+ @JsonProperty("LocalDate")
1249+ public UnionLocalDate getLocalDate() { return localDate; }
1250+ @JsonProperty("LocalDate")
1251+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1252+
12451253 @JsonProperty("Locale")
12461254 public UnionLocale getLocale() { return locale; }
12471255 @JsonProperty("Locale")
@@ -1417,6 +1425,16 @@ public class TopLevel {
14171425 @JsonProperty("of")
14181426 public void setOf(UnionOf value) { this.of = value; }
14191427
1428+ @JsonProperty("OffsetDateTime")
1429+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1430+ @JsonProperty("OffsetDateTime")
1431+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1432+
1433+ @JsonProperty("OffsetTime")
1434+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1435+ @JsonProperty("OffsetTime")
1436+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1437+
14201438 @JsonProperty("oneway")
14211439 public UnionOneway getOneway() { return oneway; }
14221440 @JsonProperty("oneway")
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDateClass localDateClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
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.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateClassValue != null) {
44+ jsonGenerator.writeObject(obj.localDateClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTimeClass offsetDateTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
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.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTimeClass offsetTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
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.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClass.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 LocalDateClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClass.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 OffsetDateTimeClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClass.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 OffsetTimeClass {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -182,6 +182,7 @@ public class TopLevel {
182182 private UnionLeft left;
183183 private UnionLet let;
184184 private UnionList list;
185+ private UnionLocalDate localDate;
185186 private UnionLocale locale;
186187 private UnionLock lock;
187188 private UnionLong topLevelLong;
@@ -217,6 +218,8 @@ public class TopLevel {
217218 private UnionObject object;
218219 private UnionObjectMapper objectMapper;
219220 private UnionOf of;
221+ private UnionOffsetDateTime offsetDateTime;
222+ private UnionOffsetTime offsetTime;
220223 private UnionOneway oneway;
221224 private UnionOpen open;
222225 private UnionOperator operator;
@@ -1242,6 +1245,11 @@ public class TopLevel {
12421245 @JsonProperty("list")
12431246 public void setList(UnionList value) { this.list = value; }
12441247
1248+ @JsonProperty("LocalDate")
1249+ public UnionLocalDate getLocalDate() { return localDate; }
1250+ @JsonProperty("LocalDate")
1251+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1252+
12451253 @JsonProperty("Locale")
12461254 public UnionLocale getLocale() { return locale; }
12471255 @JsonProperty("Locale")
@@ -1417,6 +1425,16 @@ public class TopLevel {
14171425 @JsonProperty("of")
14181426 public void setOf(UnionOf value) { this.of = value; }
14191427
1428+ @JsonProperty("OffsetDateTime")
1429+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1430+ @JsonProperty("OffsetDateTime")
1431+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1432+
1433+ @JsonProperty("OffsetTime")
1434+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1435+ @JsonProperty("OffsetTime")
1436+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1437+
14201438 @JsonProperty("oneway")
14211439 public UnionOneway getOneway() { return oneway; }
14221440 @JsonProperty("oneway")
Aschema-javadefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDateClass localDateClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
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.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateClassValue != null) {
44+ jsonGenerator.writeObject(obj.localDateClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTimeClass offsetDateTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
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.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTimeClass offsetTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
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.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
@@ -49,6 +49,7 @@ let _JSONParser;
4949 let _JSONReader;
5050 let _JSONTokenType;
5151 let _KSerializer;
52+let _LocalDate;
5253 let _Locale;
5354 let _MapEntry;
5455 let _MarshalJSON;
@@ -59,6 +60,8 @@ let _NSString;
5960 let _Null;
6061 let _None;
6162 let _ObjectMapper;
63+let _OffsetDateTime;
64+let _OffsetTime;
6265 let _PrimitiveKind;
6366 let _Protocol;
6467 let _RegExp;
@@ -427,6 +430,8 @@ _JSONTokenType = PropTypes.shape({
427430 });
428431 _KSerializer = PropTypes.shape({
429432 });
433+_LocalDate = PropTypes.shape({
434+});
430435 _Locale = PropTypes.shape({
431436 });
432437 _MapEntry = PropTypes.shape({
@@ -447,6 +452,10 @@ _None = PropTypes.shape({
447452 });
448453 _ObjectMapper = PropTypes.shape({
449454 });
455+_OffsetDateTime = PropTypes.shape({
456+});
457+_OffsetTime = PropTypes.shape({
458+});
450459 _PrimitiveKind = PropTypes.shape({
451460 });
452461 _Protocol = PropTypes.shape({
@@ -1219,6 +1228,7 @@ _TopLevel = PropTypes.shape({
12191228 "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]),
12201229 "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]),
12211230 "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]),
1231+ "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]),
12221232 "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]),
12231233 "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]),
12241234 "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1254,6 +1264,8 @@ _TopLevel = PropTypes.shape({
12541264 "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]),
12551265 "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]),
12561266 "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]),
1267+ "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]),
1268+ "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]),
12571269 "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]),
12581270 "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]),
12591271 "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]),
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -372,6 +372,7 @@ const typeMap = {
372372 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
373373 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
374374 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
375+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
375376 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
376377 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
377378 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -407,6 +408,8 @@ const typeMap = {
407408 { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) },
408409 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
409410 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
411+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
412+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
410413 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
411414 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
412415 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -609,6 +612,8 @@ const typeMap = {
609612 ], false),
610613 "KSerializer": o([
611614 ], false),
615+ "LocalDate": o([
616+ ], false),
612617 "Locale": o([
613618 ], false),
614619 "MapEntry": o([
@@ -629,6 +634,10 @@ const typeMap = {
629634 ], false),
630635 "ObjectMapper": o([
631636 ], false),
637+ "OffsetDateTime": o([
638+ ], false),
639+ "OffsetTime": o([
640+ ], false),
632641 "PrimitiveKind": o([
633642 ], false),
634643 "Protocol": o([
Mschema-objective-cdefault / QTTopLevel.h+15 −0
@@ -155,6 +155,7 @@
155155 @class QTLeft;
156156 @class QTLet;
157157 @class QTList;
158+@class QTLocalDate;
158159 @class QTLocale;
159160 @class QTLock;
160161 @class QTMap;
@@ -184,6 +185,8 @@
184185 @class QTObject;
185186 @class QTObjectMapper;
186187 @class QTOf;
188+@class QTOffsetDateTime;
189+@class QTOffsetTime;
187190 @class QTOneway;
188191 @class QTOpen;
189192 @class QTOperator;
@@ -540,6 +543,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
540543 @property (nonatomic, nullable, copy) id left;
541544 @property (nonatomic, nullable, copy) id let;
542545 @property (nonatomic, nullable, copy) id list;
546+@property (nonatomic, nullable, copy) id localDate;
543547 @property (nonatomic, nullable, copy) id locale;
544548 @property (nonatomic, nullable, copy) id lock;
545549 @property (nonatomic, nullable, copy) id qtTopLevelLong;
@@ -575,6 +579,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
575579 @property (nonatomic, nullable, copy) id object;
576580 @property (nonatomic, nullable, copy) id objectMapper;
577581 @property (nonatomic, nullable, copy) id of;
582+@property (nonatomic, nullable, copy) id offsetDateTime;
583+@property (nonatomic, nullable, copy) id offsetTime;
578584 @property (nonatomic, nullable, copy) id oneway;
579585 @property (nonatomic, nullable, copy) id open;
580586 @property (nonatomic, nullable, copy) id operator;
@@ -1158,6 +1164,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11581164 @interface QTList : NSObject
11591165 @end
11601166
1167+@interface QTLocalDate : NSObject
1168+@end
1169+
11611170 @interface QTLocale : NSObject
11621171 @end
11631172
@@ -1245,6 +1254,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12451254 @interface QTOf : NSObject
12461255 @end
12471256
1257+@interface QTOffsetDateTime : NSObject
1258+@end
1259+
1260+@interface QTOffsetTime : NSObject
1261+@end
1262+
12481263 @interface QTOneway : NSObject
12491264 @end
Mschema-objective-cdefault / QTTopLevel.m+135 −0
@@ -758,6 +758,11 @@ NS_ASSUME_NONNULL_BEGIN
758758 - (NSDictionary *)JSONDictionary;
759759 @end
760760
761+@interface QTLocalDate (JSONConversion)
762++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
763+- (NSDictionary *)JSONDictionary;
764+@end
765+
761766 @interface QTLocale (JSONConversion)
762767 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
763768 - (NSDictionary *)JSONDictionary;
@@ -903,6 +908,16 @@ NS_ASSUME_NONNULL_BEGIN
903908 - (NSDictionary *)JSONDictionary;
904909 @end
905910
911+@interface QTOffsetDateTime (JSONConversion)
912++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
913+- (NSDictionary *)JSONDictionary;
914+@end
915+
916+@interface QTOffsetTime (JSONConversion)
917++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
918+- (NSDictionary *)JSONDictionary;
919+@end
920+
906921 @interface QTOneway (JSONConversion)
907922 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
908923 - (NSDictionary *)JSONDictionary;
@@ -1943,6 +1958,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19431958 @"left": @"left",
19441959 @"let": @"let",
19451960 @"list": @"list",
1961+ @"LocalDate": @"localDate",
19461962 @"Locale": @"locale",
19471963 @"lock": @"lock",
19481964 @"long": @"qtTopLevelLong",
@@ -1978,6 +1994,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19781994 @"object": @"object",
19791995 @"ObjectMapper": @"objectMapper",
19801996 @"of": @"of",
1997+ @"OffsetDateTime": @"offsetDateTime",
1998+ @"OffsetTime": @"offsetTime",
19811999 @"oneway": @"oneway",
19822000 @"open": @"open",
19832001 @"operator": @"operator",
@@ -7982,6 +8000,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
79828000 }
79838001 @end
79848002
8003+@implementation QTLocalDate
8004++ (NSDictionary<NSString *, NSString *> *)properties
8005+{
8006+ static NSDictionary<NSString *, NSString *> *properties;
8007+ return properties = properties ? properties : @{
8008+ };
8009+}
8010+
8011++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
8012+{
8013+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
8014+}
8015+
8016+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8017+{
8018+ if (self = [super init]) {
8019+ [self setValuesForKeysWithDictionary:dict];
8020+ }
8021+ return self;
8022+}
8023+
8024+- (void)setValue:(nullable id)value forKey:(NSString *)key
8025+{
8026+ id resolved = QTLocalDate.properties[key];
8027+ if (resolved) [super setValue:value forKey:resolved];
8028+}
8029+
8030+- (void)setNilValueForKey:(NSString *)key
8031+{
8032+ id resolved = QTLocalDate.properties[key];
8033+ if (resolved) [super setValue:@(0) forKey:resolved];
8034+}
8035+
8036+- (NSDictionary *)JSONDictionary
8037+{
8038+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
8039+}
8040+@end
8041+
79858042 @implementation QTLocale
79868043 + (NSDictionary<NSString *, NSString *> *)properties
79878044 {
@@ -9113,6 +9170,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
91139170 }
91149171 @end
91159172
9173+@implementation QTOffsetDateTime
9174++ (NSDictionary<NSString *, NSString *> *)properties
9175+{
9176+ static NSDictionary<NSString *, NSString *> *properties;
9177+ return properties = properties ? properties : @{
9178+ };
9179+}
9180+
9181++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9182+{
9183+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
9184+}
9185+
9186+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9187+{
9188+ if (self = [super init]) {
9189+ [self setValuesForKeysWithDictionary:dict];
9190+ }
9191+ return self;
9192+}
9193+
9194+- (void)setValue:(nullable id)value forKey:(NSString *)key
9195+{
9196+ id resolved = QTOffsetDateTime.properties[key];
9197+ if (resolved) [super setValue:value forKey:resolved];
9198+}
9199+
9200+- (void)setNilValueForKey:(NSString *)key
9201+{
9202+ id resolved = QTOffsetDateTime.properties[key];
9203+ if (resolved) [super setValue:@(0) forKey:resolved];
9204+}
9205+
9206+- (NSDictionary *)JSONDictionary
9207+{
9208+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
9209+}
9210+@end
9211+
9212+@implementation QTOffsetTime
9213++ (NSDictionary<NSString *, NSString *> *)properties
9214+{
9215+ static NSDictionary<NSString *, NSString *> *properties;
9216+ return properties = properties ? properties : @{
9217+ };
9218+}
9219+
9220++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9221+{
9222+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
9223+}
9224+
9225+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9226+{
9227+ if (self = [super init]) {
9228+ [self setValuesForKeysWithDictionary:dict];
9229+ }
9230+ return self;
9231+}
9232+
9233+- (void)setValue:(nullable id)value forKey:(NSString *)key
9234+{
9235+ id resolved = QTOffsetTime.properties[key];
9236+ if (resolved) [super setValue:value forKey:resolved];
9237+}
9238+
9239+- (void)setNilValueForKey:(NSString *)key
9240+{
9241+ id resolved = QTOffsetTime.properties[key];
9242+ if (resolved) [super setValue:@(0) forKey:resolved];
9243+}
9244+
9245+- (NSDictionary *)JSONDictionary
9246+{
9247+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
9248+}
9249+@end
9250+
91169251 @implementation QTOneway
91179252 + (NSDictionary<NSString *, NSString *> *)properties
91189253 {
Mschema-phpdefault / TopLevel.php+549 −165
@@ -183,6 +183,7 @@ class TopLevel {
183183 private Left|float|null $left; // json:left Optional
184184 private Let|float|null $let; // json:let Optional
185185 private ListClass|float|null $list; // json:list Optional
186+ private LocalDate|float|null $localDate; // json:LocalDate Optional
186187 private LocaleClass|float|null $locale; // json:Locale Optional
187188 private Lock|float|null $lock; // json:lock Optional
188189 private Long|float|null $long; // json:long Optional
@@ -218,6 +219,8 @@ class TopLevel {
218219 private ObjectClass|float|null $object; // json:object Optional
219220 private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional
220221 private Of|float|null $of; // json:of Optional
222+ private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional
223+ private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional
221224 private Oneway|float|null $oneway; // json:oneway Optional
222225 private Open|float|null $open; // json:open Optional
223226 private Operator|float|null $operator; // json:operator Optional
@@ -528,6 +531,7 @@ class TopLevel {
528531 * @param Left|float|null $left
529532 * @param Let|float|null $let
530533 * @param ListClass|float|null $list
534+ * @param LocalDate|float|null $localDate
531535 * @param LocaleClass|float|null $locale
532536 * @param Lock|float|null $lock
533537 * @param Long|float|null $long
@@ -563,6 +567,8 @@ class TopLevel {
563567 * @param ObjectClass|float|null $object
564568 * @param ObjectMapper|float|null $objectMapper
565569 * @param Of|float|null $of
570+ * @param OffsetDateTime|float|null $offsetDateTime
571+ * @param OffsetTime|float|null $offsetTime
566572 * @param Oneway|float|null $oneway
567573 * @param Open|float|null $open
568574 * @param Operator|float|null $operator
@@ -693,7 +699,7 @@ class TopLevel {
693699 * @param Yes|float|null $yes
694700 * @param YieldClass|float|null $yield
695701 */
696- 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, MarshalJSON|float|null $marshalJSON, 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, UnmarshalJSON|float|null $unmarshalJSON, 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) {
702+ 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, LocalDate|float|null $localDate, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MarshalJSON|float|null $marshalJSON, 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, OffsetDateTime|float|null $offsetDateTime, OffsetTime|float|null $offsetTime, 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, UnmarshalJSON|float|null $unmarshalJSON, 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) {
697703 $this->empty = $empty;
698704 $this->topLevelBool = $topLevelBool;
699705 $this->complex = $complex;
@@ -873,6 +879,7 @@ class TopLevel {
873879 $this->left = $left;
874880 $this->let = $let;
875881 $this->list = $list;
882+ $this->localDate = $localDate;
876883 $this->locale = $locale;
877884 $this->lock = $lock;
878885 $this->long = $long;
@@ -908,6 +915,8 @@ class TopLevel {
908915 $this->object = $object;
909916 $this->objectMapper = $objectMapper;
910917 $this->of = $of;
918+ $this->offsetDateTime = $offsetDateTime;
919+ $this->offsetTime = $offsetTime;
911920 $this->oneway = $oneway;
912921 $this->open = $open;
913922 $this->operator = $operator;
@@ -14624,6 +14633,82 @@ class TopLevel {
1462414633 return ListClass::sample(); /*209:list*/
1462514634 }
1462614635
14636+ /**
14637+ * @param stdClass|float|null $value
14638+ * @throws Exception
14639+ * @return LocalDate|float|null
14640+ */
14641+ public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null {
14642+ if (is_null($value)) {
14643+ return $value; /*null*/
14644+ } elseif (is_object($value)) {
14645+ return LocalDate::from($value); /*class*/
14646+ } elseif (is_float($value) || is_int($value)) {
14647+ return $value; /*float*/
14648+ } else {
14649+ throw new Exception('Cannot deserialize union value in TopLevel');
14650+ }
14651+ }
14652+
14653+ /**
14654+ * @throws Exception
14655+ * @return stdClass|float|null
14656+ */
14657+ public function toLocalDate(): stdClass|float|null {
14658+ if (TopLevel::validateLocalDate($this->localDate)) {
14659+ if (is_null($this->localDate)) {
14660+ return $this->localDate; /*null*/
14661+ } elseif ($this->localDate instanceof LocalDate) {
14662+ return $this->localDate->to(); /*class*/
14663+ } elseif (is_float($this->localDate) || is_int($this->localDate)) {
14664+ return $this->localDate; /*float*/
14665+ } else {
14666+ throw new Exception('Union value has no matching member in TopLevel');
14667+ }
14668+ }
14669+ throw new Exception('never get to this TopLevel::localDate');
14670+ }
14671+
14672+ /**
14673+ * @param LocalDate|float|null
14674+ * @return bool
14675+ * @throws Exception
14676+ */
14677+ public static function validateLocalDate(LocalDate|float|null $value): bool {
14678+ if (is_null($value)) {
14679+ if (!is_null($value)) {
14680+ throw new Exception("Attribute Error:TopLevel::localDate");
14681+ }
14682+ } elseif ($value instanceof LocalDate) {
14683+ $value->validate();
14684+ } elseif (is_float($value) || is_int($value)) {
14685+ if (!is_float($value) && !is_int($value)) {
14686+ throw new Exception("Attribute Error:TopLevel::localDate");
14687+ }
14688+ } else {
14689+ throw new Exception("Attribute Error:TopLevel::localDate");
14690+ }
14691+ return true;
14692+ }
14693+
14694+ /**
14695+ * @throws Exception
14696+ * @return LocalDate|float|null
14697+ */
14698+ public function getLocalDate(): LocalDate|float|null {
14699+ if (TopLevel::validateLocalDate($this->localDate)) {
14700+ return $this->localDate;
14701+ }
14702+ throw new Exception('never get to getLocalDate TopLevel::localDate');
14703+ }
14704+
14705+ /**
14706+ * @return LocalDate|float|null
14707+ */
14708+ public static function sampleLocalDate(): LocalDate|float|null {
14709+ return LocalDate::sample(); /*210:localDate*/
14710+ }
14711+
1462714712 /**
1462814713 * @param stdClass|float|null $value
1462914714 * @throws Exception
@@ -14697,7 +14782,7 @@ class TopLevel {
1469714782 * @return LocaleClass|float|null
1469814783 */
1469914784 public static function sampleLocale(): LocaleClass|float|null {
14700- return LocaleClass::sample(); /*210:locale*/
14785+ return LocaleClass::sample(); /*211:locale*/
1470114786 }
1470214787
1470314788 /**
@@ -14773,7 +14858,7 @@ class TopLevel {
1477314858 * @return Lock|float|null
1477414859 */
1477514860 public static function sampleLock(): Lock|float|null {
14776- return Lock::sample(); /*211:lock*/
14861+ return Lock::sample(); /*212:lock*/
1477714862 }
1477814863
1477914864 /**
@@ -14849,7 +14934,7 @@ class TopLevel {
1484914934 * @return Long|float|null
1485014935 */
1485114936 public static function sampleLong(): Long|float|null {
14852- return Long::sample(); /*212:long*/
14937+ return Long::sample(); /*213:long*/
1485314938 }
1485414939
1485514940 /**
@@ -14925,7 +15010,7 @@ class TopLevel {
1492515010 * @return Map|float|null
1492615011 */
1492715012 public static function sampleMap(): Map|float|null {
14928- return Map::sample(); /*213:map*/
15013+ return Map::sample(); /*214:map*/
1492915014 }
1493015015
1493115016 /**
@@ -15001,7 +15086,7 @@ class TopLevel {
1500115086 * @return MapEntry|float|null
1500215087 */
1500315088 public static function sampleMapEntry(): MapEntry|float|null {
15004- return MapEntry::sample(); /*214:mapEntry*/
15089+ return MapEntry::sample(); /*215:mapEntry*/
1500515090 }
1500615091
1500715092 /**
@@ -15077,7 +15162,7 @@ class TopLevel {
1507715162 * @return MarshalJSON|float|null
1507815163 */
1507915164 public static function sampleMarshalJSON(): MarshalJSON|float|null {
15080- return MarshalJSON::sample(); /*215:marshalJSON*/
15165+ return MarshalJSON::sample(); /*216:marshalJSON*/
1508115166 }
1508215167
1508315168 /**
@@ -15153,7 +15238,7 @@ class TopLevel {
1515315238 * @return MetadataPropertyHandling|float|null
1515415239 */
1515515240 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
15156- return MetadataPropertyHandling::sample(); /*216:metadataPropertyHandling*/
15241+ return MetadataPropertyHandling::sample(); /*217:metadataPropertyHandling*/
1515715242 }
1515815243
1515915244 /**
@@ -15229,7 +15314,7 @@ class TopLevel {
1522915314 * @return Module|float|null
1523015315 */
1523115316 public static function sampleModule(): Module|float|null {
15232- return Module::sample(); /*217:module*/
15317+ return Module::sample(); /*218:module*/
1523315318 }
1523415319
1523515320 /**
@@ -15305,7 +15390,7 @@ class TopLevel {
1530515390 * @return Mutable|float|null
1530615391 */
1530715392 public static function sampleMutable(): Mutable|float|null {
15308- return Mutable::sample(); /*218:mutable*/
15393+ return Mutable::sample(); /*219:mutable*/
1530915394 }
1531015395
1531115396 /**
@@ -15381,7 +15466,7 @@ class TopLevel {
1538115466 * @return Mutating|float|null
1538215467 */
1538315468 public static function sampleMutating(): Mutating|float|null {
15384- return Mutating::sample(); /*219:mutating*/
15469+ return Mutating::sample(); /*220:mutating*/
1538515470 }
1538615471
1538715472 /**
@@ -15457,7 +15542,7 @@ class TopLevel {
1545715542 * @return NamespaceClass|float|null
1545815543 */
1545915544 public static function sampleNamespace(): NamespaceClass|float|null {
15460- return NamespaceClass::sample(); /*220:namespace*/
15545+ return NamespaceClass::sample(); /*221:namespace*/
1546115546 }
1546215547
1546315548 /**
@@ -15533,7 +15618,7 @@ class TopLevel {
1553315618 * @return Native|float|null
1553415619 */
1553515620 public static function sampleNative(): Native|float|null {
15536- return Native::sample(); /*221:native*/
15621+ return Native::sample(); /*222:native*/
1553715622 }
1553815623
1553915624 /**
@@ -15609,7 +15694,7 @@ class TopLevel {
1560915694 * @return NewClass|float|null
1561015695 */
1561115696 public static function sampleNew(): NewClass|float|null {
15612- return NewClass::sample(); /*222:new*/
15697+ return NewClass::sample(); /*223:new*/
1561315698 }
1561415699
1561515700 /**
@@ -15685,7 +15770,7 @@ class TopLevel {
1568515770 * @return Newtonsoft|float|null
1568615771 */
1568715772 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15688- return Newtonsoft::sample(); /*223:newtonsoft*/
15773+ return Newtonsoft::sample(); /*224:newtonsoft*/
1568915774 }
1569015775
1569115776 /**
@@ -15761,7 +15846,7 @@ class TopLevel {
1576115846 * @return Nil|float|null
1576215847 */
1576315848 public static function sampleNil(): Nil|float|null {
15764- return Nil::sample(); /*224:nil*/
15849+ return Nil::sample(); /*225:nil*/
1576515850 }
1576615851
1576715852 /**
@@ -15837,7 +15922,7 @@ class TopLevel {
1583715922 * @return No|float|null
1583815923 */
1583915924 public static function sampleNo(): No|float|null {
15840- return No::sample(); /*225:no*/
15925+ return No::sample(); /*226:no*/
1584115926 }
1584215927
1584315928 /**
@@ -15913,7 +15998,7 @@ class TopLevel {
1591315998 * @return Noexcept|float|null
1591415999 */
1591516000 public static function sampleNoexcept(): Noexcept|float|null {
15916- return Noexcept::sample(); /*226:noexcept*/
16001+ return Noexcept::sample(); /*227:noexcept*/
1591716002 }
1591816003
1591916004 /**
@@ -15989,7 +16074,7 @@ class TopLevel {
1598916074 * @return Nonatomic|float|null
1599016075 */
1599116076 public static function sampleNonatomic(): Nonatomic|float|null {
15992- return Nonatomic::sample(); /*227:nonatomic*/
16077+ return Nonatomic::sample(); /*228:nonatomic*/
1599316078 }
1599416079
1599516080 /**
@@ -16065,7 +16150,7 @@ class TopLevel {
1606516150 * @return NoneClass|float|null
1606616151 */
1606716152 public static function sampleTopLevelNone(): NoneClass|float|null {
16068- return NoneClass::sample(); /*228:topLevelNone*/
16153+ return NoneClass::sample(); /*229:topLevelNone*/
1606916154 }
1607016155
1607116156 /**
@@ -16141,7 +16226,7 @@ class TopLevel {
1614116226 * @return None|float|null
1614216227 */
1614316228 public static function sampleNone(): None|float|null {
16144- return None::sample(); /*229:none*/
16229+ return None::sample(); /*230:none*/
1614516230 }
1614616231
1614716232 /**
@@ -16217,7 +16302,7 @@ class TopLevel {
1621716302 * @return Nonlocal|float|null
1621816303 */
1621916304 public static function sampleNonlocal(): Nonlocal|float|null {
16220- return Nonlocal::sample(); /*230:nonlocal*/
16305+ return Nonlocal::sample(); /*231:nonlocal*/
1622116306 }
1622216307
1622316308 /**
@@ -16293,7 +16378,7 @@ class TopLevel {
1629316378 * @return Nonmutating|float|null
1629416379 */
1629516380 public static function sampleNonmutating(): Nonmutating|float|null {
16296- return Nonmutating::sample(); /*231:nonmutating*/
16381+ return Nonmutating::sample(); /*232:nonmutating*/
1629716382 }
1629816383
1629916384 /**
@@ -16369,7 +16454,7 @@ class TopLevel {
1636916454 * @return NoSuchMethod|float|null
1637016455 */
1637116456 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16372- return NoSuchMethod::sample(); /*232:noSuchMethod*/
16457+ return NoSuchMethod::sample(); /*233:noSuchMethod*/
1637316458 }
1637416459
1637516460 /**
@@ -16445,7 +16530,7 @@ class TopLevel {
1644516530 * @return Not|float|null
1644616531 */
1644716532 public static function sampleNot(): Not|float|null {
16448- return Not::sample(); /*233:not*/
16533+ return Not::sample(); /*234:not*/
1644916534 }
1645016535
1645116536 /**
@@ -16521,7 +16606,7 @@ class TopLevel {
1652116606 * @return NotEq|float|null
1652216607 */
1652316608 public static function sampleNotEq(): NotEq|float|null {
16524- return NotEq::sample(); /*234:notEq*/
16609+ return NotEq::sample(); /*235:notEq*/
1652516610 }
1652616611
1652716612 /**
@@ -16597,7 +16682,7 @@ class TopLevel {
1659716682 * @return NSError|float|null
1659816683 */
1659916684 public static function sampleNSError(): NSError|float|null {
16600- return NSError::sample(); /*235:nsError*/
16685+ return NSError::sample(); /*236:nsError*/
1660116686 }
1660216687
1660316688 /**
@@ -16673,7 +16758,7 @@ class TopLevel {
1667316758 * @return NSObject|float|null
1667416759 */
1667516760 public static function sampleNSObject(): NSObject|float|null {
16676- return NSObject::sample(); /*236:nsObject*/
16761+ return NSObject::sample(); /*237:nsObject*/
1667716762 }
1667816763
1667916764 /**
@@ -16749,7 +16834,7 @@ class TopLevel {
1674916834 * @return NSString|float|null
1675016835 */
1675116836 public static function sampleNSString(): NSString|float|null {
16752- return NSString::sample(); /*237:nsString*/
16837+ return NSString::sample(); /*238:nsString*/
1675316838 }
1675416839
1675516840 /**
@@ -16825,7 +16910,7 @@ class TopLevel {
1682516910 * @return NULLClass|float|null
1682616911 */
1682716912 public static function sampleNull(): NULLClass|float|null {
16828- return NULLClass::sample(); /*238:null*/
16913+ return NULLClass::sample(); /*239:null*/
1682916914 }
1683016915
1683116916 /**
@@ -16901,7 +16986,7 @@ class TopLevel {
1690116986 * @return UnionNullNull|float|null
1690216987 */
1690316988 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16904- return UnionNullNull::sample(); /*239:topLevelNull*/
16989+ return UnionNullNull::sample(); /*240:topLevelNull*/
1690516990 }
1690616991
1690716992 /**
@@ -16977,7 +17062,7 @@ class TopLevel {
1697717062 * @return Nullptr|float|null
1697817063 */
1697917064 public static function sampleNullptr(): Nullptr|float|null {
16980- return Nullptr::sample(); /*240:nullptr*/
17065+ return Nullptr::sample(); /*241:nullptr*/
1698117066 }
1698217067
1698317068 /**
@@ -17053,7 +17138,7 @@ class TopLevel {
1705317138 * @return Number|float|null
1705417139 */
1705517140 public static function sampleNumber(): Number|float|null {
17056- return Number::sample(); /*241:number*/
17141+ return Number::sample(); /*242:number*/
1705717142 }
1705817143
1705917144 /**
@@ -17129,7 +17214,7 @@ class TopLevel {
1712917214 * @return ObjectClass|float|null
1713017215 */
1713117216 public static function sampleObject(): ObjectClass|float|null {
17132- return ObjectClass::sample(); /*242:object*/
17217+ return ObjectClass::sample(); /*243:object*/
1713317218 }
1713417219
1713517220 /**
@@ -17205,7 +17290,7 @@ class TopLevel {
1720517290 * @return ObjectMapper|float|null
1720617291 */
1720717292 public static function sampleObjectMapper(): ObjectMapper|float|null {
17208- return ObjectMapper::sample(); /*243:objectMapper*/
17293+ return ObjectMapper::sample(); /*244:objectMapper*/
1720917294 }
1721017295
1721117296 /**
@@ -17281,7 +17366,159 @@ class TopLevel {
1728117366 * @return Of|float|null
1728217367 */
1728317368 public static function sampleOf(): Of|float|null {
17284- return Of::sample(); /*244:of*/
17369+ return Of::sample(); /*245:of*/
17370+ }
17371+
17372+ /**
17373+ * @param stdClass|float|null $value
17374+ * @throws Exception
17375+ * @return OffsetDateTime|float|null
17376+ */
17377+ public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null {
17378+ if (is_null($value)) {
17379+ return $value; /*null*/
17380+ } elseif (is_object($value)) {
17381+ return OffsetDateTime::from($value); /*class*/
17382+ } elseif (is_float($value) || is_int($value)) {
17383+ return $value; /*float*/
17384+ } else {
17385+ throw new Exception('Cannot deserialize union value in TopLevel');
17386+ }
17387+ }
17388+
17389+ /**
17390+ * @throws Exception
17391+ * @return stdClass|float|null
17392+ */
17393+ public function toOffsetDateTime(): stdClass|float|null {
17394+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17395+ if (is_null($this->offsetDateTime)) {
17396+ return $this->offsetDateTime; /*null*/
17397+ } elseif ($this->offsetDateTime instanceof OffsetDateTime) {
17398+ return $this->offsetDateTime->to(); /*class*/
17399+ } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) {
17400+ return $this->offsetDateTime; /*float*/
17401+ } else {
17402+ throw new Exception('Union value has no matching member in TopLevel');
17403+ }
17404+ }
17405+ throw new Exception('never get to this TopLevel::offsetDateTime');
17406+ }
17407+
17408+ /**
17409+ * @param OffsetDateTime|float|null
17410+ * @return bool
17411+ * @throws Exception
17412+ */
17413+ public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool {
17414+ if (is_null($value)) {
17415+ if (!is_null($value)) {
17416+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17417+ }
17418+ } elseif ($value instanceof OffsetDateTime) {
17419+ $value->validate();
17420+ } elseif (is_float($value) || is_int($value)) {
17421+ if (!is_float($value) && !is_int($value)) {
17422+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17423+ }
17424+ } else {
17425+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17426+ }
17427+ return true;
17428+ }
17429+
17430+ /**
17431+ * @throws Exception
17432+ * @return OffsetDateTime|float|null
17433+ */
17434+ public function getOffsetDateTime(): OffsetDateTime|float|null {
17435+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17436+ return $this->offsetDateTime;
17437+ }
17438+ throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime');
17439+ }
17440+
17441+ /**
17442+ * @return OffsetDateTime|float|null
17443+ */
17444+ public static function sampleOffsetDateTime(): OffsetDateTime|float|null {
17445+ return OffsetDateTime::sample(); /*246:offsetDateTime*/
17446+ }
17447+
17448+ /**
17449+ * @param stdClass|float|null $value
17450+ * @throws Exception
17451+ * @return OffsetTime|float|null
17452+ */
17453+ public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null {
17454+ if (is_null($value)) {
17455+ return $value; /*null*/
17456+ } elseif (is_object($value)) {
17457+ return OffsetTime::from($value); /*class*/
17458+ } elseif (is_float($value) || is_int($value)) {
17459+ return $value; /*float*/
17460+ } else {
17461+ throw new Exception('Cannot deserialize union value in TopLevel');
17462+ }
17463+ }
17464+
17465+ /**
17466+ * @throws Exception
17467+ * @return stdClass|float|null
17468+ */
17469+ public function toOffsetTime(): stdClass|float|null {
17470+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17471+ if (is_null($this->offsetTime)) {
17472+ return $this->offsetTime; /*null*/
17473+ } elseif ($this->offsetTime instanceof OffsetTime) {
17474+ return $this->offsetTime->to(); /*class*/
17475+ } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) {
17476+ return $this->offsetTime; /*float*/
17477+ } else {
17478+ throw new Exception('Union value has no matching member in TopLevel');
17479+ }
17480+ }
17481+ throw new Exception('never get to this TopLevel::offsetTime');
17482+ }
17483+
17484+ /**
17485+ * @param OffsetTime|float|null
17486+ * @return bool
17487+ * @throws Exception
17488+ */
17489+ public static function validateOffsetTime(OffsetTime|float|null $value): bool {
17490+ if (is_null($value)) {
17491+ if (!is_null($value)) {
17492+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17493+ }
17494+ } elseif ($value instanceof OffsetTime) {
17495+ $value->validate();
17496+ } elseif (is_float($value) || is_int($value)) {
17497+ if (!is_float($value) && !is_int($value)) {
17498+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17499+ }
17500+ } else {
17501+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17502+ }
17503+ return true;
17504+ }
17505+
17506+ /**
17507+ * @throws Exception
17508+ * @return OffsetTime|float|null
17509+ */
17510+ public function getOffsetTime(): OffsetTime|float|null {
17511+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17512+ return $this->offsetTime;
17513+ }
17514+ throw new Exception('never get to getOffsetTime TopLevel::offsetTime');
17515+ }
17516+
17517+ /**
17518+ * @return OffsetTime|float|null
17519+ */
17520+ public static function sampleOffsetTime(): OffsetTime|float|null {
17521+ return OffsetTime::sample(); /*247:offsetTime*/
1728517522 }
1728617523
1728717524 /**
@@ -17357,7 +17594,7 @@ class TopLevel {
1735717594 * @return Oneway|float|null
1735817595 */
1735917596 public static function sampleOneway(): Oneway|float|null {
17360- return Oneway::sample(); /*245:oneway*/
17597+ return Oneway::sample(); /*248:oneway*/
1736117598 }
1736217599
1736317600 /**
@@ -17433,7 +17670,7 @@ class TopLevel {
1743317670 * @return Open|float|null
1743417671 */
1743517672 public static function sampleOpen(): Open|float|null {
17436- return Open::sample(); /*246:open*/
17673+ return Open::sample(); /*249:open*/
1743717674 }
1743817675
1743917676 /**
@@ -17509,7 +17746,7 @@ class TopLevel {
1750917746 * @return Operator|float|null
1751017747 */
1751117748 public static function sampleOperator(): Operator|float|null {
17512- return Operator::sample(); /*247:operator*/
17749+ return Operator::sample(); /*250:operator*/
1751317750 }
1751417751
1751517752 /**
@@ -17585,7 +17822,7 @@ class TopLevel {
1758517822 * @return Optional|float|null
1758617823 */
1758717824 public static function sampleOptional(): Optional|float|null {
17588- return Optional::sample(); /*248:optional*/
17825+ return Optional::sample(); /*251:optional*/
1758917826 }
1759017827
1759117828 /**
@@ -17661,7 +17898,7 @@ class TopLevel {
1766117898 * @return OrClass|float|null
1766217899 */
1766317900 public static function sampleOr(): OrClass|float|null {
17664- return OrClass::sample(); /*249:or*/
17901+ return OrClass::sample(); /*252:or*/
1766517902 }
1766617903
1766717904 /**
@@ -17737,7 +17974,7 @@ class TopLevel {
1773717974 * @return OrEq|float|null
1773817975 */
1773917976 public static function sampleOrEq(): OrEq|float|null {
17740- return OrEq::sample(); /*250:orEq*/
17977+ return OrEq::sample(); /*253:orEq*/
1774117978 }
1774217979
1774317980 /**
@@ -17813,7 +18050,7 @@ class TopLevel {
1781318050 * @return Out|float|null
1781418051 */
1781518052 public static function sampleOut(): Out|float|null {
17816- return Out::sample(); /*251:out*/
18053+ return Out::sample(); /*254:out*/
1781718054 }
1781818055
1781918056 /**
@@ -17889,7 +18126,7 @@ class TopLevel {
1788918126 * @return OverrideClass|float|null
1789018127 */
1789118128 public static function sampleOverride(): OverrideClass|float|null {
17892- return OverrideClass::sample(); /*252:override*/
18129+ return OverrideClass::sample(); /*255:override*/
1789318130 }
1789418131
1789518132 /**
@@ -17965,7 +18202,7 @@ class TopLevel {
1796518202 * @return Package|float|null
1796618203 */
1796718204 public static function samplePackage(): Package|float|null {
17968- return Package::sample(); /*253:package*/
18205+ return Package::sample(); /*256:package*/
1796918206 }
1797018207
1797118208 /**
@@ -18041,7 +18278,7 @@ class TopLevel {
1804118278 * @return Params|float|null
1804218279 */
1804318280 public static function sampleParams(): Params|float|null {
18044- return Params::sample(); /*254:params*/
18281+ return Params::sample(); /*257:params*/
1804518282 }
1804618283
1804718284 /**
@@ -18117,7 +18354,7 @@ class TopLevel {
1811718354 * @return Pass|float|null
1811818355 */
1811918356 public static function samplePass(): Pass|float|null {
18120- return Pass::sample(); /*255:pass*/
18357+ return Pass::sample(); /*258:pass*/
1812118358 }
1812218359
1812318360 /**
@@ -18193,7 +18430,7 @@ class TopLevel {
1819318430 * @return Port|float|null
1819418431 */
1819518432 public static function samplePort(): Port|float|null {
18196- return Port::sample(); /*256:port*/
18433+ return Port::sample(); /*259:port*/
1819718434 }
1819818435
1819918436 /**
@@ -18269,7 +18506,7 @@ class TopLevel {
1826918506 * @return Postfix|float|null
1827018507 */
1827118508 public static function samplePostfix(): Postfix|float|null {
18272- return Postfix::sample(); /*257:postfix*/
18509+ return Postfix::sample(); /*260:postfix*/
1827318510 }
1827418511
1827518512 /**
@@ -18345,7 +18582,7 @@ class TopLevel {
1834518582 * @return Precedence|float|null
1834618583 */
1834718584 public static function samplePrecedence(): Precedence|float|null {
18348- return Precedence::sample(); /*258:precedence*/
18585+ return Precedence::sample(); /*261:precedence*/
1834918586 }
1835018587
1835118588 /**
@@ -18421,7 +18658,7 @@ class TopLevel {
1842118658 * @return Prefix|float|null
1842218659 */
1842318660 public static function samplePrefix(): Prefix|float|null {
18424- return Prefix::sample(); /*259:prefix*/
18661+ return Prefix::sample(); /*262:prefix*/
1842518662 }
1842618663
1842718664 /**
@@ -18497,7 +18734,7 @@ class TopLevel {
1849718734 * @return PrimitiveKind|float|null
1849818735 */
1849918736 public static function samplePrimitiveKind(): PrimitiveKind|float|null {
18500- return PrimitiveKind::sample(); /*260:primitiveKind*/
18737+ return PrimitiveKind::sample(); /*263:primitiveKind*/
1850118738 }
1850218739
1850318740 /**
@@ -18573,7 +18810,7 @@ class TopLevel {
1857318810 * @return PrintClass|float|null
1857418811 */
1857518812 public static function samplePrint(): PrintClass|float|null {
18576- return PrintClass::sample(); /*261:print*/
18813+ return PrintClass::sample(); /*264:print*/
1857718814 }
1857818815
1857918816 /**
@@ -18649,7 +18886,7 @@ class TopLevel {
1864918886 * @return Printf|float|null
1865018887 */
1865118888 public static function samplePrintf(): Printf|float|null {
18652- return Printf::sample(); /*262:printf*/
18889+ return Printf::sample(); /*265:printf*/
1865318890 }
1865418891
1865518892 /**
@@ -18725,7 +18962,7 @@ class TopLevel {
1872518962 * @return PrintMembers|float|null
1872618963 */
1872718964 public static function samplePrintMembers(): PrintMembers|float|null {
18728- return PrintMembers::sample(); /*263:printMembers*/
18965+ return PrintMembers::sample(); /*266:printMembers*/
1872918966 }
1873018967
1873118968 /**
@@ -18801,7 +19038,7 @@ class TopLevel {
1880119038 * @return PrivateClass|float|null
1880219039 */
1880319040 public static function samplePrivate(): PrivateClass|float|null {
18804- return PrivateClass::sample(); /*264:private*/
19041+ return PrivateClass::sample(); /*267:private*/
1880519042 }
1880619043
1880719044 /**
@@ -18877,7 +19114,7 @@ class TopLevel {
1887719114 * @return ProtectedClass|float|null
1887819115 */
1887919116 public static function sampleProtected(): ProtectedClass|float|null {
18880- return ProtectedClass::sample(); /*265:protected*/
19117+ return ProtectedClass::sample(); /*268:protected*/
1888119118 }
1888219119
1888319120 /**
@@ -18953,7 +19190,7 @@ class TopLevel {
1895319190 * @return Protocol|float|null
1895419191 */
1895519192 public static function sampleProtocol(): Protocol|float|null {
18956- return Protocol::sample(); /*266:protocol*/
19193+ return Protocol::sample(); /*269:protocol*/
1895719194 }
1895819195
1895919196 /**
@@ -19029,7 +19266,7 @@ class TopLevel {
1902919266 * @return ProtocolClass|float|null
1903019267 */
1903119268 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
19032- return ProtocolClass::sample(); /*267:topLevelProtocol*/
19269+ return ProtocolClass::sample(); /*270:topLevelProtocol*/
1903319270 }
1903419271
1903519272 /**
@@ -19105,7 +19342,7 @@ class TopLevel {
1910519342 * @return PublicClass|float|null
1910619343 */
1910719344 public static function samplePublic(): PublicClass|float|null {
19108- return PublicClass::sample(); /*268:public*/
19345+ return PublicClass::sample(); /*271:public*/
1910919346 }
1911019347
1911119348 /**
@@ -19181,7 +19418,7 @@ class TopLevel {
1918119418 * @return Quicktype|float|null
1918219419 */
1918319420 public static function sampleQuicktype(): Quicktype|float|null {
19184- return Quicktype::sample(); /*269:quicktype*/
19421+ return Quicktype::sample(); /*272:quicktype*/
1918519422 }
1918619423
1918719424 /**
@@ -19257,7 +19494,7 @@ class TopLevel {
1925719494 * @return Raise|float|null
1925819495 */
1925919496 public static function sampleRaise(): Raise|float|null {
19260- return Raise::sample(); /*270:raise*/
19497+ return Raise::sample(); /*273:raise*/
1926119498 }
1926219499
1926319500 /**
@@ -19333,7 +19570,7 @@ class TopLevel {
1933319570 * @return Range|float|null
1933419571 */
1933519572 public static function sampleRange(): Range|float|null {
19336- return Range::sample(); /*271:range*/
19573+ return Range::sample(); /*274:range*/
1933719574 }
1933819575
1933919576 /**
@@ -19409,7 +19646,7 @@ class TopLevel {
1940919646 * @return ReadonlyClass|float|null
1941019647 */
1941119648 public static function sampleReadonly(): ReadonlyClass|float|null {
19412- return ReadonlyClass::sample(); /*272:readonly*/
19649+ return ReadonlyClass::sample(); /*275:readonly*/
1941319650 }
1941419651
1941519652 /**
@@ -19485,7 +19722,7 @@ class TopLevel {
1948519722 * @return Ref|float|null
1948619723 */
1948719724 public static function sampleRef(): Ref|float|null {
19488- return Ref::sample(); /*273:ref*/
19725+ return Ref::sample(); /*276:ref*/
1948919726 }
1949019727
1949119728 /**
@@ -19561,7 +19798,7 @@ class TopLevel {
1956119798 * @return RegExp|float|null
1956219799 */
1956319800 public static function sampleRegExp(): RegExp|float|null {
19564- return RegExp::sample(); /*274:regExp*/
19801+ return RegExp::sample(); /*277:regExp*/
1956519802 }
1956619803
1956719804 /**
@@ -19637,7 +19874,7 @@ class TopLevel {
1963719874 * @return Register|float|null
1963819875 */
1963919876 public static function sampleRegister(): Register|float|null {
19640- return Register::sample(); /*275:register*/
19877+ return Register::sample(); /*278:register*/
1964119878 }
1964219879
1964319880 /**
@@ -19713,7 +19950,7 @@ class TopLevel {
1971319950 * @return ReinterpretCast|float|null
1971419951 */
1971519952 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19716- return ReinterpretCast::sample(); /*276:reinterpretCast*/
19953+ return ReinterpretCast::sample(); /*279:reinterpretCast*/
1971719954 }
1971819955
1971919956 /**
@@ -19789,7 +20026,7 @@ class TopLevel {
1978920026 * @return Repeat|float|null
1979020027 */
1979120028 public static function sampleRepeat(): Repeat|float|null {
19792- return Repeat::sample(); /*277:repeat*/
20029+ return Repeat::sample(); /*280:repeat*/
1979320030 }
1979420031
1979520032 /**
@@ -19865,7 +20102,7 @@ class TopLevel {
1986520102 * @return RequireClass|float|null
1986620103 */
1986720104 public static function sampleRequire(): RequireClass|float|null {
19868- return RequireClass::sample(); /*278:require*/
20105+ return RequireClass::sample(); /*281:require*/
1986920106 }
1987020107
1987120108 /**
@@ -19941,7 +20178,7 @@ class TopLevel {
1994120178 * @return Required|float|null
1994220179 */
1994320180 public static function sampleRequired(): Required|float|null {
19944- return Required::sample(); /*279:required*/
20181+ return Required::sample(); /*282:required*/
1994520182 }
1994620183
1994720184 /**
@@ -20017,7 +20254,7 @@ class TopLevel {
2001720254 * @return Requires|float|null
2001820255 */
2001920256 public static function sampleRequires(): Requires|float|null {
20020- return Requires::sample(); /*280:requires*/
20257+ return Requires::sample(); /*283:requires*/
2002120258 }
2002220259
2002320260 /**
@@ -20093,7 +20330,7 @@ class TopLevel {
2009320330 * @return Restrict|float|null
2009420331 */
2009520332 public static function sampleRestrict(): Restrict|float|null {
20096- return Restrict::sample(); /*281:restrict*/
20333+ return Restrict::sample(); /*284:restrict*/
2009720334 }
2009820335
2009920336 /**
@@ -20169,7 +20406,7 @@ class TopLevel {
2016920406 * @return Retain|float|null
2017020407 */
2017120408 public static function sampleRetain(): Retain|float|null {
20172- return Retain::sample(); /*282:retain*/
20409+ return Retain::sample(); /*285:retain*/
2017320410 }
2017420411
2017520412 /**
@@ -20245,7 +20482,7 @@ class TopLevel {
2024520482 * @return Rethrows|float|null
2024620483 */
2024720484 public static function sampleRethrows(): Rethrows|float|null {
20248- return Rethrows::sample(); /*283:rethrows*/
20485+ return Rethrows::sample(); /*286:rethrows*/
2024920486 }
2025020487
2025120488 /**
@@ -20321,7 +20558,7 @@ class TopLevel {
2032120558 * @return ReturnClass|float|null
2032220559 */
2032320560 public static function sampleReturn(): ReturnClass|float|null {
20324- return ReturnClass::sample(); /*284:return*/
20561+ return ReturnClass::sample(); /*287:return*/
2032520562 }
2032620563
2032720564 /**
@@ -20397,7 +20634,7 @@ class TopLevel {
2039720634 * @return Right|float|null
2039820635 */
2039920636 public static function sampleRight(): Right|float|null {
20400- return Right::sample(); /*285:right*/
20637+ return Right::sample(); /*288:right*/
2040120638 }
2040220639
2040320640 /**
@@ -20473,7 +20710,7 @@ class TopLevel {
2047320710 * @return RuntimeType|float|null
2047420711 */
2047520712 public static function sampleRuntimeType(): RuntimeType|float|null {
20476- return RuntimeType::sample(); /*286:runtimeType*/
20713+ return RuntimeType::sample(); /*289:runtimeType*/
2047720714 }
2047820715
2047920716 /**
@@ -20549,7 +20786,7 @@ class TopLevel {
2054920786 * @return S|float|null
2055020787 */
2055120788 public static function sampleS(): S|float|null {
20552- return S::sample(); /*287:s*/
20789+ return S::sample(); /*290:s*/
2055320790 }
2055420791
2055520792 /**
@@ -20625,7 +20862,7 @@ class TopLevel {
2062520862 * @return Sbyte|float|null
2062620863 */
2062720864 public static function sampleSbyte(): Sbyte|float|null {
20628- return Sbyte::sample(); /*288:sbyte*/
20865+ return Sbyte::sample(); /*291:sbyte*/
2062920866 }
2063020867
2063120868 /**
@@ -20701,7 +20938,7 @@ class TopLevel {
2070120938 * @return Sealed|float|null
2070220939 */
2070320940 public static function sampleSealed(): Sealed|float|null {
20704- return Sealed::sample(); /*289:sealed*/
20941+ return Sealed::sample(); /*292:sealed*/
2070520942 }
2070620943
2070720944 /**
@@ -20777,7 +21014,7 @@ class TopLevel {
2077721014 * @return Sel|float|null
2077821015 */
2077921016 public static function sampleSel(): Sel|float|null {
20780- return Sel::sample(); /*290:sel*/
21017+ return Sel::sample(); /*293:sel*/
2078121018 }
2078221019
2078321020 /**
@@ -20853,7 +21090,7 @@ class TopLevel {
2085321090 * @return Select|float|null
2085421091 */
2085521092 public static function sampleSelect(): Select|float|null {
20856- return Select::sample(); /*291:select*/
21093+ return Select::sample(); /*294:select*/
2085721094 }
2085821095
2085921096 /**
@@ -20929,7 +21166,7 @@ class TopLevel {
2092921166 * @return SelfClass|float|null
2093021167 */
2093121168 public static function sampleSelf(): SelfClass|float|null {
20932- return SelfClass::sample(); /*292:self*/
21169+ return SelfClass::sample(); /*295:self*/
2093321170 }
2093421171
2093521172 /**
@@ -21005,7 +21242,7 @@ class TopLevel {
2100521242 * @return UnionSelfSelf|float|null
2100621243 */
2100721244 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
21008- return UnionSelfSelf::sample(); /*293:topLevelSelf*/
21245+ return UnionSelfSelf::sample(); /*296:topLevelSelf*/
2100921246 }
2101021247
2101121248 /**
@@ -21081,7 +21318,7 @@ class TopLevel {
2108121318 * @return Sendable|float|null
2108221319 */
2108321320 public static function sampleSendable(): Sendable|float|null {
21084- return Sendable::sample(); /*294:sendable*/
21321+ return Sendable::sample(); /*297:sendable*/
2108521322 }
2108621323
2108721324 /**
@@ -21157,7 +21394,7 @@ class TopLevel {
2115721394 * @return SerialDescriptor|float|null
2115821395 */
2115921396 public static function sampleSerialDescriptor(): SerialDescriptor|float|null {
21160- return SerialDescriptor::sample(); /*295:serialDescriptor*/
21397+ return SerialDescriptor::sample(); /*298:serialDescriptor*/
2116121398 }
2116221399
2116321400 /**
@@ -21233,7 +21470,7 @@ class TopLevel {
2123321470 * @return SerializableClass|float|null
2123421471 */
2123521472 public static function sampleSerializable(): SerializableClass|float|null {
21236- return SerializableClass::sample(); /*296:serializable*/
21473+ return SerializableClass::sample(); /*299:serializable*/
2123721474 }
2123821475
2123921476 /**
@@ -21309,7 +21546,7 @@ class TopLevel {
2130921546 * @return Serialize|float|null
2131021547 */
2131121548 public static function sampleSerialize(): Serialize|float|null {
21312- return Serialize::sample(); /*297:serialize*/
21549+ return Serialize::sample(); /*300:serialize*/
2131321550 }
2131421551
2131521552 /**
@@ -21385,7 +21622,7 @@ class TopLevel {
2138521622 * @return SerializerProvider|float|null
2138621623 */
2138721624 public static function sampleSerializerProvider(): SerializerProvider|float|null {
21388- return SerializerProvider::sample(); /*298:serializerProvider*/
21625+ return SerializerProvider::sample(); /*301:serializerProvider*/
2138921626 }
2139021627
2139121628 /**
@@ -21461,7 +21698,7 @@ class TopLevel {
2146121698 * @return SerialName|float|null
2146221699 */
2146321700 public static function sampleSerialName(): SerialName|float|null {
21464- return SerialName::sample(); /*299:serialName*/
21701+ return SerialName::sample(); /*302:serialName*/
2146521702 }
2146621703
2146721704 /**
@@ -21537,7 +21774,7 @@ class TopLevel {
2153721774 * @return Set|float|null
2153821775 */
2153921776 public static function sampleSet(): Set|float|null {
21540- return Set::sample(); /*300:set*/
21777+ return Set::sample(); /*303:set*/
2154121778 }
2154221779
2154321780 /**
@@ -21613,7 +21850,7 @@ class TopLevel {
2161321850 * @return Short|float|null
2161421851 */
2161521852 public static function sampleShort(): Short|float|null {
21616- return Short::sample(); /*301:short*/
21853+ return Short::sample(); /*304:short*/
2161721854 }
2161821855
2161921856 /**
@@ -21689,7 +21926,7 @@ class TopLevel {
2168921926 * @return Signed|float|null
2169021927 */
2169121928 public static function sampleSigned(): Signed|float|null {
21692- return Signed::sample(); /*302:signed*/
21929+ return Signed::sample(); /*305:signed*/
2169321930 }
2169421931
2169521932 /**
@@ -21765,7 +22002,7 @@ class TopLevel {
2176522002 * @return SimpleModule|float|null
2176622003 */
2176722004 public static function sampleSimpleModule(): SimpleModule|float|null {
21768- return SimpleModule::sample(); /*303:simpleModule*/
22005+ return SimpleModule::sample(); /*306:simpleModule*/
2176922006 }
2177022007
2177122008 /**
@@ -21841,7 +22078,7 @@ class TopLevel {
2184122078 * @return Sizeof|float|null
2184222079 */
2184322080 public static function sampleSizeof(): Sizeof|float|null {
21844- return Sizeof::sample(); /*304:sizeof*/
22081+ return Sizeof::sample(); /*307:sizeof*/
2184522082 }
2184622083
2184722084 /**
@@ -21917,7 +22154,7 @@ class TopLevel {
2191722154 * @return Stackalloc|float|null
2191822155 */
2191922156 public static function sampleStackalloc(): Stackalloc|float|null {
21920- return Stackalloc::sample(); /*305:stackalloc*/
22157+ return Stackalloc::sample(); /*308:stackalloc*/
2192122158 }
2192222159
2192322160 /**
@@ -21993,7 +22230,7 @@ class TopLevel {
2199322230 * @return Standards|float|null
2199422231 */
2199522232 public static function sampleStandards(): Standards|float|null {
21996- return Standards::sample(); /*306:standards*/
22233+ return Standards::sample(); /*309:standards*/
2199722234 }
2199822235
2199922236 /**
@@ -22069,7 +22306,7 @@ class TopLevel {
2206922306 * @return StaticClass|float|null
2207022307 */
2207122308 public static function sampleStatic(): StaticClass|float|null {
22072- return StaticClass::sample(); /*307:static*/
22309+ return StaticClass::sample(); /*310:static*/
2207322310 }
2207422311
2207522312 /**
@@ -22145,7 +22382,7 @@ class TopLevel {
2214522382 * @return StaticAssert|float|null
2214622383 */
2214722384 public static function sampleStaticAssert(): StaticAssert|float|null {
22148- return StaticAssert::sample(); /*308:staticAssert*/
22385+ return StaticAssert::sample(); /*311:staticAssert*/
2214922386 }
2215022387
2215122388 /**
@@ -22221,7 +22458,7 @@ class TopLevel {
2222122458 * @return StaticCast|float|null
2222222459 */
2222322460 public static function sampleStaticCast(): StaticCast|float|null {
22224- return StaticCast::sample(); /*309:staticCast*/
22461+ return StaticCast::sample(); /*312:staticCast*/
2222522462 }
2222622463
2222722464 /**
@@ -22297,7 +22534,7 @@ class TopLevel {
2229722534 * @return StdDeserializer|float|null
2229822535 */
2229922536 public static function sampleStdDeserializer(): StdDeserializer|float|null {
22300- return StdDeserializer::sample(); /*310:stdDeserializer*/
22537+ return StdDeserializer::sample(); /*313:stdDeserializer*/
2230122538 }
2230222539
2230322540 /**
@@ -22373,7 +22610,7 @@ class TopLevel {
2237322610 * @return StdSerializer|float|null
2237422611 */
2237522612 public static function sampleStdSerializer(): StdSerializer|float|null {
22376- return StdSerializer::sample(); /*311:stdSerializer*/
22613+ return StdSerializer::sample(); /*314:stdSerializer*/
2237722614 }
2237822615
2237922616 /**
@@ -22449,7 +22686,7 @@ class TopLevel {
2244922686 * @return Strictfp|float|null
2245022687 */
2245122688 public static function sampleStrictfp(): Strictfp|float|null {
22452- return Strictfp::sample(); /*312:strictfp*/
22689+ return Strictfp::sample(); /*315:strictfp*/
2245322690 }
2245422691
2245522692 /**
@@ -22525,7 +22762,7 @@ class TopLevel {
2252522762 * @return StringClass|float|null
2252622763 */
2252722764 public static function sampleString(): StringClass|float|null {
22528- return StringClass::sample(); /*313:string*/
22765+ return StringClass::sample(); /*316:string*/
2252922766 }
2253022767
2253122768 /**
@@ -22601,7 +22838,7 @@ class TopLevel {
2260122838 * @return Struct|float|null
2260222839 */
2260322840 public static function sampleStruct(): Struct|float|null {
22604- return Struct::sample(); /*314:struct*/
22841+ return Struct::sample(); /*317:struct*/
2260522842 }
2260622843
2260722844 /**
@@ -22677,7 +22914,7 @@ class TopLevel {
2267722914 * @return Subscript|float|null
2267822915 */
2267922916 public static function sampleSubscript(): Subscript|float|null {
22680- return Subscript::sample(); /*315:subscript*/
22917+ return Subscript::sample(); /*318:subscript*/
2268122918 }
2268222919
2268322920 /**
@@ -22753,7 +22990,7 @@ class TopLevel {
2275322990 * @return Super|float|null
2275422991 */
2275522992 public static function sampleSuper(): Super|float|null {
22756- return Super::sample(); /*316:super*/
22993+ return Super::sample(); /*319:super*/
2275722994 }
2275822995
2275922996 /**
@@ -22829,7 +23066,7 @@ class TopLevel {
2282923066 * @return SwitchClass|float|null
2283023067 */
2283123068 public static function sampleSwitch(): SwitchClass|float|null {
22832- return SwitchClass::sample(); /*317:switch*/
23069+ return SwitchClass::sample(); /*320:switch*/
2283323070 }
2283423071
2283523072 /**
@@ -22905,7 +23142,7 @@ class TopLevel {
2290523142 * @return Symbol|float|null
2290623143 */
2290723144 public static function sampleSymbol(): Symbol|float|null {
22908- return Symbol::sample(); /*318:symbol*/
23145+ return Symbol::sample(); /*321:symbol*/
2290923146 }
2291023147
2291123148 /**
@@ -22981,7 +23218,7 @@ class TopLevel {
2298123218 * @return Synchronized|float|null
2298223219 */
2298323220 public static function sampleSynchronized(): Synchronized|float|null {
22984- return Synchronized::sample(); /*319:synchronized*/
23221+ return Synchronized::sample(); /*322:synchronized*/
2298523222 }
2298623223
2298723224 /**
@@ -23057,7 +23294,7 @@ class TopLevel {
2305723294 * @return System|float|null
2305823295 */
2305923296 public static function sampleSystem(): System|float|null {
23060- return System::sample(); /*320:system*/
23297+ return System::sample(); /*323:system*/
2306123298 }
2306223299
2306323300 /**
@@ -23133,7 +23370,7 @@ class TopLevel {
2313323370 * @return Template|float|null
2313423371 */
2313523372 public static function sampleTemplate(): Template|float|null {
23136- return Template::sample(); /*321:template*/
23373+ return Template::sample(); /*324:template*/
2313723374 }
2313823375
2313923376 /**
@@ -23209,7 +23446,7 @@ class TopLevel {
2320923446 * @return Then|float|null
2321023447 */
2321123448 public static function sampleThen(): Then|float|null {
23212- return Then::sample(); /*322:then*/
23449+ return Then::sample(); /*325:then*/
2321323450 }
2321423451
2321523452 /**
@@ -23285,7 +23522,7 @@ class TopLevel {
2328523522 * @return This|float|null
2328623523 */
2328723524 public static function sampleTopLevelThis(): This|float|null {
23288- return This::sample(); /*323:topLevelThis*/
23525+ return This::sample(); /*326:topLevelThis*/
2328923526 }
2329023527
2329123528 /**
@@ -23361,7 +23598,7 @@ class TopLevel {
2336123598 * @return ThreadLocal|float|null
2336223599 */
2336323600 public static function sampleThreadLocal(): ThreadLocal|float|null {
23364- return ThreadLocal::sample(); /*324:threadLocal*/
23601+ return ThreadLocal::sample(); /*327:threadLocal*/
2336523602 }
2336623603
2336723604 /**
@@ -23437,7 +23674,7 @@ class TopLevel {
2343723674 * @return ThrowClass|float|null
2343823675 */
2343923676 public static function sampleThrow(): ThrowClass|float|null {
23440- return ThrowClass::sample(); /*325:throw*/
23677+ return ThrowClass::sample(); /*328:throw*/
2344123678 }
2344223679
2344323680 /**
@@ -23513,7 +23750,7 @@ class TopLevel {
2351323750 * @return Throws|float|null
2351423751 */
2351523752 public static function sampleThrows(): Throws|float|null {
23516- return Throws::sample(); /*326:throws*/
23753+ return Throws::sample(); /*329:throws*/
2351723754 }
2351823755
2351923756 /**
@@ -23589,7 +23826,7 @@ class TopLevel {
2358923826 * @return TimeOnly|float|null
2359023827 */
2359123828 public static function sampleTimeOnly(): TimeOnly|float|null {
23592- return TimeOnly::sample(); /*327:timeOnly*/
23829+ return TimeOnly::sample(); /*330:timeOnly*/
2359323830 }
2359423831
2359523832 /**
@@ -23665,7 +23902,7 @@ class TopLevel {
2366523902 * @return TimeOnlyConverter|float|null
2366623903 */
2366723904 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23668- return TimeOnlyConverter::sample(); /*328:timeOnlyConverter*/
23905+ return TimeOnlyConverter::sample(); /*331:timeOnlyConverter*/
2366923906 }
2367023907
2367123908 /**
@@ -23741,7 +23978,7 @@ class TopLevel {
2374123978 * @return TimeZone|float|null
2374223979 */
2374323980 public static function sampleTimeZone(): TimeZone|float|null {
23744- return TimeZone::sample(); /*329:timeZone*/
23981+ return TimeZone::sample(); /*332:timeZone*/
2374523982 }
2374623983
2374723984 /**
@@ -23817,7 +24054,7 @@ class TopLevel {
2381724054 * @return ToDict|float|null
2381824055 */
2381924056 public static function sampleToDict(): ToDict|float|null {
23820- return ToDict::sample(); /*330:toDict*/
24057+ return ToDict::sample(); /*333:toDict*/
2382124058 }
2382224059
2382324060 /**
@@ -23893,7 +24130,7 @@ class TopLevel {
2389324130 * @return ToJSON|float|null
2389424131 */
2389524132 public static function sampleToJSON(): ToJSON|float|null {
23896- return ToJSON::sample(); /*331:toJSON*/
24133+ return ToJSON::sample(); /*334:toJSON*/
2389724134 }
2389824135
2389924136 /**
@@ -23969,7 +24206,7 @@ class TopLevel {
2396924206 * @return TopLevelClass|float|null
2397024207 */
2397124208 public static function sampleTopLevel(): TopLevelClass|float|null {
23972- return TopLevelClass::sample(); /*332:topLevel*/
24209+ return TopLevelClass::sample(); /*335:topLevel*/
2397324210 }
2397424211
2397524212 /**
@@ -24045,7 +24282,7 @@ class TopLevel {
2404524282 * @return ToString|float|null
2404624283 */
2404724284 public static function sampleToString(): ToString|float|null {
24048- return ToString::sample(); /*333:toString*/
24285+ return ToString::sample(); /*336:toString*/
2404924286 }
2405024287
2405124288 /**
@@ -24121,7 +24358,7 @@ class TopLevel {
2412124358 * @return Transient|float|null
2412224359 */
2412324360 public static function sampleTransient(): Transient|float|null {
24124- return Transient::sample(); /*334:transient*/
24361+ return Transient::sample(); /*337:transient*/
2412524362 }
2412624363
2412724364 /**
@@ -24197,7 +24434,7 @@ class TopLevel {
2419724434 * @return TrueClass|float|null
2419824435 */
2419924436 public static function sampleTrue(): TrueClass|float|null {
24200- return TrueClass::sample(); /*335:true*/
24437+ return TrueClass::sample(); /*338:true*/
2420124438 }
2420224439
2420324440 /**
@@ -24273,7 +24510,7 @@ class TopLevel {
2427324510 * @return UnionTrueTrue|float|null
2427424511 */
2427524512 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
24276- return UnionTrueTrue::sample(); /*336:topLevelTrue*/
24513+ return UnionTrueTrue::sample(); /*339:topLevelTrue*/
2427724514 }
2427824515
2427924516 /**
@@ -24349,7 +24586,7 @@ class TopLevel {
2434924586 * @return TryClass|float|null
2435024587 */
2435124588 public static function sampleTry(): TryClass|float|null {
24352- return TryClass::sample(); /*337:try*/
24589+ return TryClass::sample(); /*340:try*/
2435324590 }
2435424591
2435524592 /**
@@ -24425,7 +24662,7 @@ class TopLevel {
2442524662 * @return Type|float|null
2442624663 */
2442724664 public static function sampleType(): Type|float|null {
24428- return Type::sample(); /*338:type*/
24665+ return Type::sample(); /*341:type*/
2442924666 }
2443024667
2443124668 /**
@@ -24501,7 +24738,7 @@ class TopLevel {
2450124738 * @return TypeClass|float|null
2450224739 */
2450324740 public static function sampleTopLevelType(): TypeClass|float|null {
24504- return TypeClass::sample(); /*339:topLevelType*/
24741+ return TypeClass::sample(); /*342:topLevelType*/
2450524742 }
2450624743
2450724744 /**
@@ -24577,7 +24814,7 @@ class TopLevel {
2457724814 * @return Typealias|float|null
2457824815 */
2457924816 public static function sampleTypealias(): Typealias|float|null {
24580- return Typealias::sample(); /*340:typealias*/
24817+ return Typealias::sample(); /*343:typealias*/
2458124818 }
2458224819
2458324820 /**
@@ -24653,7 +24890,7 @@ class TopLevel {
2465324890 * @return Typedef|float|null
2465424891 */
2465524892 public static function sampleTypedef(): Typedef|float|null {
24656- return Typedef::sample(); /*341:typedef*/
24893+ return Typedef::sample(); /*344:typedef*/
2465724894 }
2465824895
2465924896 /**
@@ -24729,7 +24966,7 @@ class TopLevel {
2472924966 * @return Typeid|float|null
2473024967 */
2473124968 public static function sampleTypeid(): Typeid|float|null {
24732- return Typeid::sample(); /*342:typeid*/
24969+ return Typeid::sample(); /*345:typeid*/
2473324970 }
2473424971
2473524972 /**
@@ -24805,7 +25042,7 @@ class TopLevel {
2480525042 * @return Typename|float|null
2480625043 */
2480725044 public static function sampleTypename(): Typename|float|null {
24808- return Typename::sample(); /*343:typename*/
25045+ return Typename::sample(); /*346:typename*/
2480925046 }
2481025047
2481125048 /**
@@ -24881,7 +25118,7 @@ class TopLevel {
2488125118 * @return Typeof|float|null
2488225119 */
2488325120 public static function sampleTypeof(): Typeof|float|null {
24884- return Typeof::sample(); /*344:typeof*/
25121+ return Typeof::sample(); /*347:typeof*/
2488525122 }
2488625123
2488725124 /**
@@ -24957,7 +25194,7 @@ class TopLevel {
2495725194 * @return Uint|float|null
2495825195 */
2495925196 public static function sampleUint(): Uint|float|null {
24960- return Uint::sample(); /*345:uint*/
25197+ return Uint::sample(); /*348:uint*/
2496125198 }
2496225199
2496325200 /**
@@ -25033,7 +25270,7 @@ class TopLevel {
2503325270 * @return Ulong|float|null
2503425271 */
2503525272 public static function sampleUlong(): Ulong|float|null {
25036- return Ulong::sample(); /*346:ulong*/
25273+ return Ulong::sample(); /*349:ulong*/
2503725274 }
2503825275
2503925276 /**
@@ -25109,7 +25346,7 @@ class TopLevel {
2510925346 * @return Unchecked|float|null
2511025347 */
2511125348 public static function sampleUnchecked(): Unchecked|float|null {
25112- return Unchecked::sample(); /*347:unchecked*/
25349+ return Unchecked::sample(); /*350:unchecked*/
2511325350 }
2511425351
2511525352 /**
@@ -25185,7 +25422,7 @@ class TopLevel {
2518525422 * @return Undefined|float|null
2518625423 */
2518725424 public static function sampleUndefined(): Undefined|float|null {
25188- return Undefined::sample(); /*348:undefined*/
25425+ return Undefined::sample(); /*351:undefined*/
2518925426 }
2519025427
2519125428 /**
@@ -25261,7 +25498,7 @@ class TopLevel {
2526125498 * @return UnionClass|float|null
2526225499 */
2526325500 public static function sampleUnion(): UnionClass|float|null {
25264- return UnionClass::sample(); /*349:union*/
25501+ return UnionClass::sample(); /*352:union*/
2526525502 }
2526625503
2526725504 /**
@@ -25337,7 +25574,7 @@ class TopLevel {
2533725574 * @return UnmarshalJSON|float|null
2533825575 */
2533925576 public static function sampleUnmarshalJSON(): UnmarshalJSON|float|null {
25340- return UnmarshalJSON::sample(); /*350:unmarshalJSON*/
25577+ return UnmarshalJSON::sample(); /*353:unmarshalJSON*/
2534125578 }
2534225579
2534325580 /**
@@ -25413,7 +25650,7 @@ class TopLevel {
2541325650 * @return Unowned|float|null
2541425651 */
2541525652 public static function sampleUnowned(): Unowned|float|null {
25416- return Unowned::sample(); /*351:unowned*/
25653+ return Unowned::sample(); /*354:unowned*/
2541725654 }
2541825655
2541925656 /**
@@ -25489,7 +25726,7 @@ class TopLevel {
2548925726 * @return Unsafe|float|null
2549025727 */
2549125728 public static function sampleUnsafe(): Unsafe|float|null {
25492- return Unsafe::sample(); /*352:unsafe*/
25729+ return Unsafe::sample(); /*355:unsafe*/
2549325730 }
2549425731
2549525732 /**
@@ -25565,7 +25802,7 @@ class TopLevel {
2556525802 * @return Unsigned|float|null
2556625803 */
2556725804 public static function sampleUnsigned(): Unsigned|float|null {
25568- return Unsigned::sample(); /*353:unsigned*/
25805+ return Unsigned::sample(); /*356:unsigned*/
2556925806 }
2557025807
2557125808 /**
@@ -25641,7 +25878,7 @@ class TopLevel {
2564125878 * @return UseSerializers|float|null
2564225879 */
2564325880 public static function sampleUseSerializers(): UseSerializers|float|null {
25644- return UseSerializers::sample(); /*354:useSerializers*/
25881+ return UseSerializers::sample(); /*357:useSerializers*/
2564525882 }
2564625883
2564725884 /**
@@ -25717,7 +25954,7 @@ class TopLevel {
2571725954 * @return Ushort|float|null
2571825955 */
2571925956 public static function sampleUshort(): Ushort|float|null {
25720- return Ushort::sample(); /*355:ushort*/
25957+ return Ushort::sample(); /*358:ushort*/
2572125958 }
2572225959
2572325960 /**
@@ -25793,7 +26030,7 @@ class TopLevel {
2579326030 * @return Using|float|null
2579426031 */
2579526032 public static function sampleUsing(): Using|float|null {
25796- return Using::sample(); /*356:using*/
26033+ return Using::sample(); /*359:using*/
2579726034 }
2579826035
2579926036 /**
@@ -25869,7 +26106,7 @@ class TopLevel {
2586926106 * @return Utf8JSONReader|float|null
2587026107 */
2587126108 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25872- return Utf8JSONReader::sample(); /*357:utf8JSONReader*/
26109+ return Utf8JSONReader::sample(); /*360:utf8JSONReader*/
2587326110 }
2587426111
2587526112 /**
@@ -25945,7 +26182,7 @@ class TopLevel {
2594526182 * @return Utf8JSONWriter|float|null
2594626183 */
2594726184 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25948- return Utf8JSONWriter::sample(); /*358:utf8JSONWriter*/
26185+ return Utf8JSONWriter::sample(); /*361:utf8JSONWriter*/
2594926186 }
2595026187
2595126188 /**
@@ -26021,7 +26258,7 @@ class TopLevel {
2602126258 * @return UUID|float|null
2602226259 */
2602326260 public static function sampleUUID(): UUID|float|null {
26024- return UUID::sample(); /*359:uuid*/
26261+ return UUID::sample(); /*362:uuid*/
2602526262 }
2602626263
2602726264 /**
@@ -26097,7 +26334,7 @@ class TopLevel {
2609726334 * @return VarClass|float|null
2609826335 */
2609926336 public static function sampleVar(): VarClass|float|null {
26100- return VarClass::sample(); /*360:var*/
26337+ return VarClass::sample(); /*363:var*/
2610126338 }
2610226339
2610326340 /**
@@ -26173,7 +26410,7 @@ class TopLevel {
2617326410 * @return Virtual|float|null
2617426411 */
2617526412 public static function sampleVirtual(): Virtual|float|null {
26176- return Virtual::sample(); /*361:virtual*/
26413+ return Virtual::sample(); /*364:virtual*/
2617726414 }
2617826415
2617926416 /**
@@ -26249,7 +26486,7 @@ class TopLevel {
2624926486 * @return VoidClass|float|null
2625026487 */
2625126488 public static function sampleVoid(): VoidClass|float|null {
26252- return VoidClass::sample(); /*362:void*/
26489+ return VoidClass::sample(); /*365:void*/
2625326490 }
2625426491
2625526492 /**
@@ -26325,7 +26562,7 @@ class TopLevel {
2632526562 * @return Volatile|float|null
2632626563 */
2632726564 public static function sampleVolatile(): Volatile|float|null {
26328- return Volatile::sample(); /*363:volatile*/
26565+ return Volatile::sample(); /*366:volatile*/
2632926566 }
2633026567
2633126568 /**
@@ -26401,7 +26638,7 @@ class TopLevel {
2640126638 * @return WcharT|float|null
2640226639 */
2640326640 public static function sampleWcharT(): WcharT|float|null {
26404- return WcharT::sample(); /*364:wcharT*/
26641+ return WcharT::sample(); /*367:wcharT*/
2640526642 }
2640626643
2640726644 /**
@@ -26477,7 +26714,7 @@ class TopLevel {
2647726714 * @return Weak|float|null
2647826715 */
2647926716 public static function sampleWeak(): Weak|float|null {
26480- return Weak::sample(); /*365:weak*/
26717+ return Weak::sample(); /*368:weak*/
2648126718 }
2648226719
2648326720 /**
@@ -26553,7 +26790,7 @@ class TopLevel {
2655326790 * @return Where|float|null
2655426791 */
2655526792 public static function sampleWhere(): Where|float|null {
26556- return Where::sample(); /*366:where*/
26793+ return Where::sample(); /*369:where*/
2655726794 }
2655826795
2655926796 /**
@@ -26629,7 +26866,7 @@ class TopLevel {
2662926866 * @return WhileClass|float|null
2663026867 */
2663126868 public static function sampleWhile(): WhileClass|float|null {
26632- return WhileClass::sample(); /*367:while*/
26869+ return WhileClass::sample(); /*370:while*/
2663326870 }
2663426871
2663526872 /**
@@ -26705,7 +26942,7 @@ class TopLevel {
2670526942 * @return WillSet|float|null
2670626943 */
2670726944 public static function sampleWillSet(): WillSet|float|null {
26708- return WillSet::sample(); /*368:willSet*/
26945+ return WillSet::sample(); /*371:willSet*/
2670926946 }
2671026947
2671126948 /**
@@ -26781,7 +27018,7 @@ class TopLevel {
2678127018 * @return With|float|null
2678227019 */
2678327020 public static function sampleWith(): With|float|null {
26784- return With::sample(); /*369:with*/
27021+ return With::sample(); /*372:with*/
2678527022 }
2678627023
2678727024 /**
@@ -26857,7 +27094,7 @@ class TopLevel {
2685727094 * @return XorClass|float|null
2685827095 */
2685927096 public static function sampleXor(): XorClass|float|null {
26860- return XorClass::sample(); /*370:xor*/
27097+ return XorClass::sample(); /*373:xor*/
2686127098 }
2686227099
2686327100 /**
@@ -26933,7 +27170,7 @@ class TopLevel {
2693327170 * @return XorEq|float|null
2693427171 */
2693527172 public static function sampleXorEq(): XorEq|float|null {
26936- return XorEq::sample(); /*371:xorEq*/
27173+ return XorEq::sample(); /*374:xorEq*/
2693727174 }
2693827175
2693927176 /**
@@ -27009,7 +27246,7 @@ class TopLevel {
2700927246 * @return Yes|float|null
2701027247 */
2701127248 public static function sampleYes(): Yes|float|null {
27012- return Yes::sample(); /*372:yes*/
27249+ return Yes::sample(); /*375:yes*/
2701327250 }
2701427251
2701527252 /**
@@ -27085,7 +27322,7 @@ class TopLevel {
2708527322 * @return YieldClass|float|null
2708627323 */
2708727324 public static function sampleYield(): YieldClass|float|null {
27088- return YieldClass::sample(); /*373:yield*/
27325+ return YieldClass::sample(); /*376:yield*/
2708927326 }
2709027327
2709127328 /**
@@ -27272,6 +27509,7 @@ class TopLevel {
2727227509 || TopLevel::validateLeft($this->left)
2727327510 || TopLevel::validateLet($this->let)
2727427511 || TopLevel::validateList($this->list)
27512+ || TopLevel::validateLocalDate($this->localDate)
2727527513 || TopLevel::validateLocale($this->locale)
2727627514 || TopLevel::validateLock($this->lock)
2727727515 || TopLevel::validateLong($this->long)
@@ -27307,6 +27545,8 @@ class TopLevel {
2730727545 || TopLevel::validateObject($this->object)
2730827546 || TopLevel::validateObjectMapper($this->objectMapper)
2730927547 || TopLevel::validateOf($this->of)
27548+ || TopLevel::validateOffsetDateTime($this->offsetDateTime)
27549+ || TopLevel::validateOffsetTime($this->offsetTime)
2731027550 || TopLevel::validateOneway($this->oneway)
2731127551 || TopLevel::validateOpen($this->open)
2731227552 || TopLevel::validateOperator($this->operator)
@@ -27623,6 +27863,7 @@ class TopLevel {
2762327863 $out->{'left'} = $this->toLeft();
2762427864 $out->{'let'} = $this->toLet();
2762527865 $out->{'list'} = $this->toList();
27866+ $out->{'LocalDate'} = $this->toLocalDate();
2762627867 $out->{'Locale'} = $this->toLocale();
2762727868 $out->{'lock'} = $this->toLock();
2762827869 $out->{'long'} = $this->toLong();
@@ -27658,6 +27899,8 @@ class TopLevel {
2765827899 $out->{'object'} = $this->toObject();
2765927900 $out->{'ObjectMapper'} = $this->toObjectMapper();
2766027901 $out->{'of'} = $this->toOf();
27902+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
27903+ $out->{'OffsetTime'} = $this->toOffsetTime();
2766127904 $out->{'oneway'} = $this->toOneway();
2766227905 $out->{'open'} = $this->toOpen();
2766327906 $out->{'operator'} = $this->toOperator();
@@ -27976,6 +28219,7 @@ class TopLevel {
2797628219 ,TopLevel::fromLeft($obj->{'left'})
2797728220 ,TopLevel::fromLet($obj->{'let'})
2797828221 ,TopLevel::fromList($obj->{'list'})
28222+ ,TopLevel::fromLocalDate($obj->{'LocalDate'})
2797928223 ,TopLevel::fromLocale($obj->{'Locale'})
2798028224 ,TopLevel::fromLock($obj->{'lock'})
2798128225 ,TopLevel::fromLong($obj->{'long'})
@@ -28011,6 +28255,8 @@ class TopLevel {
2801128255 ,TopLevel::fromObject($obj->{'object'})
2801228256 ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'})
2801328257 ,TopLevel::fromOf($obj->{'of'})
28258+ ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'})
28259+ ,TopLevel::fromOffsetTime($obj->{'OffsetTime'})
2801428260 ,TopLevel::fromOneway($obj->{'oneway'})
2801528261 ,TopLevel::fromOpen($obj->{'open'})
2801628262 ,TopLevel::fromOperator($obj->{'operator'})
@@ -28327,6 +28573,7 @@ class TopLevel {
2832728573 ,TopLevel::sampleLeft()
2832828574 ,TopLevel::sampleLet()
2832928575 ,TopLevel::sampleList()
28576+ ,TopLevel::sampleLocalDate()
2833028577 ,TopLevel::sampleLocale()
2833128578 ,TopLevel::sampleLock()
2833228579 ,TopLevel::sampleLong()
@@ -28362,6 +28609,8 @@ class TopLevel {
2836228609 ,TopLevel::sampleObject()
2836328610 ,TopLevel::sampleObjectMapper()
2836428611 ,TopLevel::sampleOf()
28612+ ,TopLevel::sampleOffsetDateTime()
28613+ ,TopLevel::sampleOffsetTime()
2836528614 ,TopLevel::sampleOneway()
2836628615 ,TopLevel::sampleOpen()
2836728616 ,TopLevel::sampleOperator()
@@ -36280,6 +36529,51 @@ class ListClass {
3628036529 }
3628136530 }
3628236531
36532+// This is an autogenerated file:LocalDate
36533+
36534+class LocalDate {
36535+
36536+ /**
36537+ */
36538+ public function __construct() {
36539+ }
36540+
36541+ /**
36542+ * @throws Exception
36543+ * @return bool
36544+ */
36545+ public function validate(): bool {
36546+ return true;
36547+ }
36548+
36549+ /**
36550+ * @return stdClass
36551+ * @throws Exception
36552+ */
36553+ public function to(): stdClass {
36554+ $out = new stdClass();
36555+ return $out;
36556+ }
36557+
36558+ /**
36559+ * @param stdClass $obj
36560+ * @return LocalDate
36561+ * @throws Exception
36562+ */
36563+ public static function from(stdClass $obj): LocalDate {
36564+ return new LocalDate(
36565+ );
36566+ }
36567+
36568+ /**
36569+ * @return LocalDate
36570+ */
36571+ public static function sample(): LocalDate {
36572+ return new LocalDate(
36573+ );
36574+ }
36575+}
36576+
3628336577 // This is an autogenerated file:LocaleClass
3628436578
3628536579 class LocaleClass {
@@ -37765,6 +38059,96 @@ class Of {
3776538059 }
3776638060 }
3776738061
38062+// This is an autogenerated file:OffsetDateTime
38063+
38064+class OffsetDateTime {
38065+
38066+ /**
38067+ */
38068+ public function __construct() {
38069+ }
38070+
38071+ /**
38072+ * @throws Exception
38073+ * @return bool
38074+ */
38075+ public function validate(): bool {
38076+ return true;
38077+ }
38078+
38079+ /**
38080+ * @return stdClass
38081+ * @throws Exception
38082+ */
38083+ public function to(): stdClass {
38084+ $out = new stdClass();
38085+ return $out;
38086+ }
38087+
38088+ /**
38089+ * @param stdClass $obj
38090+ * @return OffsetDateTime
38091+ * @throws Exception
38092+ */
38093+ public static function from(stdClass $obj): OffsetDateTime {
38094+ return new OffsetDateTime(
38095+ );
38096+ }
38097+
38098+ /**
38099+ * @return OffsetDateTime
38100+ */
38101+ public static function sample(): OffsetDateTime {
38102+ return new OffsetDateTime(
38103+ );
38104+ }
38105+}
38106+
38107+// This is an autogenerated file:OffsetTime
38108+
38109+class OffsetTime {
38110+
38111+ /**
38112+ */
38113+ public function __construct() {
38114+ }
38115+
38116+ /**
38117+ * @throws Exception
38118+ * @return bool
38119+ */
38120+ public function validate(): bool {
38121+ return true;
38122+ }
38123+
38124+ /**
38125+ * @return stdClass
38126+ * @throws Exception
38127+ */
38128+ public function to(): stdClass {
38129+ $out = new stdClass();
38130+ return $out;
38131+ }
38132+
38133+ /**
38134+ * @param stdClass $obj
38135+ * @return OffsetTime
38136+ * @throws Exception
38137+ */
38138+ public static function from(stdClass $obj): OffsetTime {
38139+ return new OffsetTime(
38140+ );
38141+ }
38142+
38143+ /**
38144+ * @return OffsetTime
38145+ */
38146+ public static function sample(): OffsetTime {
38147+ return new OffsetTime(
38148+ );
38149+ }
38150+}
38151+
3776838152 // This is an autogenerated file:Oneway
3776938153
3777038154 class Oneway {
Mschema-pikedefault / TopLevel.pmod+78 −0
@@ -192,6 +192,7 @@ class TopLevel {
192192 UnionLeft left; // json: "left"
193193 UnionLet let; // json: "let"
194194 UnionList list; // json: "list"
195+ UnionLocalDate local_date; // json: "LocalDate"
195196 UnionLocale locale; // json: "Locale"
196197 UnionLock lock; // json: "lock"
197198 UnionLong long; // json: "long"
@@ -227,6 +228,8 @@ class TopLevel {
227228 UnionObject top_level_object; // json: "object"
228229 UnionObjectMapper object_mapper; // json: "ObjectMapper"
229230 UnionOf of; // json: "of"
231+ UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime"
232+ UnionOffsetTime offset_time; // json: "OffsetTime"
230233 UnionOneway oneway; // json: "oneway"
231234 UnionOpen open; // json: "open"
232235 UnionOperator operator; // json: "operator"
@@ -538,6 +541,7 @@ class TopLevel {
538541 "left" : left,
539542 "let" : let,
540543 "list" : list,
544+ "LocalDate" : local_date,
541545 "Locale" : locale,
542546 "lock" : lock,
543547 "long" : long,
@@ -573,6 +577,8 @@ class TopLevel {
573577 "object" : top_level_object,
574578 "ObjectMapper" : object_mapper,
575579 "of" : of,
580+ "OffsetDateTime" : offset_date_time,
581+ "OffsetTime" : offset_time,
576582 "oneway" : oneway,
577583 "open" : open,
578584 "operator" : operator,
@@ -1068,6 +1074,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
10681074 retval.let = json["let"];
10691075 if (arrayp(json["list"])) error("Unexpected array");
10701076 retval.list = json["list"];
1077+ if (arrayp(json["LocalDate"])) error("Unexpected array");
1078+ retval.local_date = json["LocalDate"];
10711079 if (arrayp(json["Locale"])) error("Unexpected array");
10721080 retval.locale = json["Locale"];
10731081 if (arrayp(json["lock"])) error("Unexpected array");
@@ -1138,6 +1146,10 @@ TopLevel TopLevel_from_JSON(mixed json) {
11381146 retval.object_mapper = json["ObjectMapper"];
11391147 if (arrayp(json["of"])) error("Unexpected array");
11401148 retval.of = json["of"];
1149+ if (arrayp(json["OffsetDateTime"])) error("Unexpected array");
1150+ retval.offset_date_time = json["OffsetDateTime"];
1151+ if (arrayp(json["OffsetTime"])) error("Unexpected array");
1152+ retval.offset_time = json["OffsetTime"];
11411153 if (arrayp(json["oneway"])) error("Unexpected array");
11421154 retval.oneway = json["oneway"];
11431155 if (arrayp(json["open"])) error("Unexpected array");
@@ -4678,6 +4690,28 @@ List List_from_JSON(mixed json) {
46784690 return retval;
46794691 }
46804692
4693+typedef float|LocalDate UnionLocalDate;
4694+
4695+UnionLocalDate UnionLocalDate_from_JSON(mixed json) {
4696+ return json;
4697+}
4698+
4699+class LocalDate {
4700+
4701+ string encode_json() {
4702+ mapping(string:mixed) json = ([
4703+ ]);
4704+
4705+ return Standards.JSON.encode(json);
4706+ }
4707+}
4708+
4709+LocalDate LocalDate_from_JSON(mixed json) {
4710+ LocalDate retval = LocalDate();
4711+
4712+ return retval;
4713+}
4714+
46814715 typedef float|Locale UnionLocale;
46824716
46834717 UnionLocale UnionLocale_from_JSON(mixed json) {
@@ -5382,6 +5416,50 @@ Of Of_from_JSON(mixed json) {
53825416 return retval;
53835417 }
53845418
5419+typedef float|OffsetDateTime UnionOffsetDateTime;
5420+
5421+UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) {
5422+ return json;
5423+}
5424+
5425+class OffsetDateTime {
5426+
5427+ string encode_json() {
5428+ mapping(string:mixed) json = ([
5429+ ]);
5430+
5431+ return Standards.JSON.encode(json);
5432+ }
5433+}
5434+
5435+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5436+ OffsetDateTime retval = OffsetDateTime();
5437+
5438+ return retval;
5439+}
5440+
5441+typedef float|OffsetTime UnionOffsetTime;
5442+
5443+UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) {
5444+ return json;
5445+}
5446+
5447+class OffsetTime {
5448+
5449+ string encode_json() {
5450+ mapping(string:mixed) json = ([
5451+ ]);
5452+
5453+ return Standards.JSON.encode(json);
5454+ }
5455+}
5456+
5457+OffsetTime OffsetTime_from_JSON(mixed json) {
5458+ OffsetTime retval = OffsetTime();
5459+
5460+ return retval;
5461+}
5462+
53855463 typedef float|Oneway UnionOneway;
53865464
53875465 UnionOneway UnionOneway_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+55 −1
@@ -2092,6 +2092,20 @@ class ListClass:
20922092 return result
20932093
20942094
2095+@dataclass
2096+class LocalDate:
2097+ pass
2098+
2099+ @staticmethod
2100+ def from_dict(obj: Any) -> 'LocalDate':
2101+ assert isinstance(obj, dict)
2102+ return LocalDate()
2103+
2104+ def to_dict(self) -> dict:
2105+ result: dict = {}
2106+ return result
2107+
2108+
20952109 @dataclass
20962110 class Locale:
20972111 pass
@@ -2526,6 +2540,34 @@ class Of:
25262540 return result
25272541
25282542
2543+@dataclass
2544+class OffsetDateTime:
2545+ pass
2546+
2547+ @staticmethod
2548+ def from_dict(obj: Any) -> 'OffsetDateTime':
2549+ assert isinstance(obj, dict)
2550+ return OffsetDateTime()
2551+
2552+ def to_dict(self) -> dict:
2553+ result: dict = {}
2554+ return result
2555+
2556+
2557+@dataclass
2558+class OffsetTime:
2559+ pass
2560+
2561+ @staticmethod
2562+ def from_dict(obj: Any) -> 'OffsetTime':
2563+ assert isinstance(obj, dict)
2564+ return OffsetTime()
2565+
2566+ def to_dict(self) -> dict:
2567+ result: dict = {}
2568+ return result
2569+
2570+
25292571 @dataclass
25302572 class Oneway:
25312573 pass
@@ -5003,6 +5045,7 @@ class TopLevel:
50035045 left: float | Left | None = None
50045046 let: float | Let | None = None
50055047 list: float | ListClass | None = None
5048+ local_date: float | LocalDate | None = None
50065049 locale: float | Locale | None = None
50075050 lock: float | Lock | None = None
50085051 long: float | Long | None = None
@@ -5038,6 +5081,8 @@ class TopLevel:
50385081 object: float | Object | None = None
50395082 object_mapper: float | ObjectMapper | None = None
50405083 of: float | Of | None = None
5084+ offset_date_time: float | OffsetDateTime | None = None
5085+ offset_time: float | OffsetTime | None = None
50415086 oneway: float | Oneway | None = None
50425087 open: float | Open | None = None
50435088 operator: float | Operator | None = None
@@ -5350,6 +5395,7 @@ class TopLevel:
53505395 left = from_union([from_float, Left.from_dict, from_none], obj.get("left"))
53515396 let = from_union([from_float, Let.from_dict, from_none], obj.get("let"))
53525397 list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list"))
5398+ local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate"))
53535399 locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale"))
53545400 lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock"))
53555401 long = from_union([from_float, Long.from_dict, from_none], obj.get("long"))
@@ -5385,6 +5431,8 @@ class TopLevel:
53855431 object = from_union([from_float, Object.from_dict, from_none], obj.get("object"))
53865432 object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper"))
53875433 of = from_union([from_float, Of.from_dict, from_none], obj.get("of"))
5434+ offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime"))
5435+ offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime"))
53885436 oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway"))
53895437 open = from_union([from_float, Open.from_dict, from_none], obj.get("open"))
53905438 operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator"))
@@ -5514,7 +5562,7 @@ class TopLevel:
55145562 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
55155563 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
55165564 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5517- 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, marshal_json, 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, unmarshal_json, 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)
5565+ 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, local_date, locale, lock, long, map, map_entry, marshal_json, 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, offset_date_time, offset_time, 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, unmarshal_json, 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)
55185566
55195567 def to_dict(self) -> dict:
55205568 result: dict = {}
@@ -5876,6 +5924,8 @@ class TopLevel:
58765924 result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let)
58775925 if self.list is not None:
58785926 result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list)
5927+ if self.local_date is not None:
5928+ result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date)
58795929 if self.locale is not None:
58805930 result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale)
58815931 if self.lock is not None:
@@ -5946,6 +5996,10 @@ class TopLevel:
59465996 result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper)
59475997 if self.of is not None:
59485998 result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of)
5999+ if self.offset_date_time is not None:
6000+ result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time)
6001+ if self.offset_time is not None:
6002+ result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time)
59496003 if self.oneway is not None:
59506004 result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway)
59516005 if self.open is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
@@ -9082,6 +9082,63 @@ class UnionList < Dry::Struct
90829082 end
90839083 end
90849084
9085+class LocalDate < Dry::Struct
9086+
9087+ def self.from_dynamic!(d)
9088+ d = Types::Hash[d]
9089+ new(
9090+ )
9091+ end
9092+
9093+ def self.from_json!(json)
9094+ from_dynamic!(JSON.parse(json))
9095+ end
9096+
9097+ def to_dynamic
9098+ {
9099+ }
9100+ end
9101+
9102+ def to_json(options = nil)
9103+ JSON.generate(to_dynamic, options)
9104+ end
9105+end
9106+
9107+class UnionLocalDate < Dry::Struct
9108+ attribute :double, Types::Double.optional
9109+ attribute :local_date, LocalDate.optional
9110+
9111+ def self.from_dynamic!(d)
9112+ if schema.key(:double).type.right.valid? d
9113+ return new(double: d, local_date: nil)
9114+ end
9115+ begin
9116+ value = LocalDate.from_dynamic!(d)
9117+ if schema.key(:local_date).type.right.valid? value
9118+ return new(local_date: value, double: nil)
9119+ end
9120+ rescue
9121+ end
9122+ raise "Invalid union"
9123+ end
9124+
9125+ def self.from_json!(json)
9126+ from_dynamic!(JSON.parse(json))
9127+ end
9128+
9129+ def to_dynamic
9130+ if double != nil
9131+ double
9132+ elsif local_date != nil
9133+ local_date.to_dynamic
9134+ end
9135+ end
9136+
9137+ def to_json(options = nil)
9138+ JSON.generate(to_dynamic, options)
9139+ end
9140+end
9141+
90859142 class Locale < Dry::Struct
90869143
90879144 def self.from_dynamic!(d)
@@ -10735,6 +10792,120 @@ class UnionOf < Dry::Struct
1073510792 end
1073610793 end
1073710794
10795+class OffsetDateTime < Dry::Struct
10796+
10797+ def self.from_dynamic!(d)
10798+ d = Types::Hash[d]
10799+ new(
10800+ )
10801+ end
10802+
10803+ def self.from_json!(json)
10804+ from_dynamic!(JSON.parse(json))
10805+ end
10806+
10807+ def to_dynamic
10808+ {
10809+ }
10810+ end
10811+
10812+ def to_json(options = nil)
10813+ JSON.generate(to_dynamic, options)
10814+ end
10815+end
10816+
10817+class UnionOffsetDateTime < Dry::Struct
10818+ attribute :double, Types::Double.optional
10819+ attribute :offset_date_time, OffsetDateTime.optional
10820+
10821+ def self.from_dynamic!(d)
10822+ if schema.key(:double).type.right.valid? d
10823+ return new(double: d, offset_date_time: nil)
10824+ end
10825+ begin
10826+ value = OffsetDateTime.from_dynamic!(d)
10827+ if schema.key(:offset_date_time).type.right.valid? value
10828+ return new(offset_date_time: value, double: nil)
10829+ end
10830+ rescue
10831+ end
10832+ raise "Invalid union"
10833+ end
10834+
10835+ def self.from_json!(json)
10836+ from_dynamic!(JSON.parse(json))
10837+ end
10838+
10839+ def to_dynamic
10840+ if double != nil
10841+ double
10842+ elsif offset_date_time != nil
10843+ offset_date_time.to_dynamic
10844+ end
10845+ end
10846+
10847+ def to_json(options = nil)
10848+ JSON.generate(to_dynamic, options)
10849+ end
10850+end
10851+
10852+class OffsetTime < Dry::Struct
10853+
10854+ def self.from_dynamic!(d)
10855+ d = Types::Hash[d]
10856+ new(
10857+ )
10858+ end
10859+
10860+ def self.from_json!(json)
10861+ from_dynamic!(JSON.parse(json))
10862+ end
10863+
10864+ def to_dynamic
10865+ {
10866+ }
10867+ end
10868+
10869+ def to_json(options = nil)
10870+ JSON.generate(to_dynamic, options)
10871+ end
10872+end
10873+
10874+class UnionOffsetTime < Dry::Struct
10875+ attribute :double, Types::Double.optional
10876+ attribute :offset_time, OffsetTime.optional
10877+
10878+ def self.from_dynamic!(d)
10879+ if schema.key(:double).type.right.valid? d
10880+ return new(double: d, offset_time: nil)
10881+ end
10882+ begin
10883+ value = OffsetTime.from_dynamic!(d)
10884+ if schema.key(:offset_time).type.right.valid? value
10885+ return new(offset_time: value, double: nil)
10886+ end
10887+ rescue
10888+ end
10889+ raise "Invalid union"
10890+ end
10891+
10892+ def self.from_json!(json)
10893+ from_dynamic!(JSON.parse(json))
10894+ end
10895+
10896+ def to_dynamic
10897+ if double != nil
10898+ double
10899+ elsif offset_time != nil
10900+ offset_time.to_dynamic
10901+ end
10902+ end
10903+
10904+ def to_json(options = nil)
10905+ JSON.generate(to_dynamic, options)
10906+ end
10907+end
10908+
1073810909 class Oneway < Dry::Struct
1073910910
1074010911 def self.from_dynamic!(d)
@@ -19693,6 +19864,7 @@ class TopLevel < Dry::Struct
1969319864 attribute :left, Types.Instance(UnionLeft).optional
1969419865 attribute :let, Types.Instance(UnionLet).optional
1969519866 attribute :list, Types.Instance(UnionList).optional
19867+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1969619868 attribute :locale, Types.Instance(UnionLocale).optional
1969719869 attribute :lock, Types.Instance(UnionLock).optional
1969819870 attribute :long, Types.Instance(UnionLong).optional
@@ -19728,6 +19900,8 @@ class TopLevel < Dry::Struct
1972819900 attribute :object, Types.Instance(UnionObject).optional
1972919901 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1973019902 attribute :of, Types.Instance(UnionOf).optional
19903+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19904+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1973119905 attribute :oneway, Types.Instance(UnionOneway).optional
1973219906 attribute :top_level_open, Types.Instance(UnionOpen).optional
1973319907 attribute :operator, Types.Instance(UnionOperator).optional
@@ -20040,6 +20214,7 @@ class TopLevel < Dry::Struct
2004020214 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
2004120215 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
2004220216 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
20217+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
2004320218 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
2004420219 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
2004520220 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -20075,6 +20250,8 @@ class TopLevel < Dry::Struct
2007520250 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
2007620251 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
2007720252 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20253+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20254+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
2007820255 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
2007920256 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
2008020257 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -20392,6 +20569,7 @@ class TopLevel < Dry::Struct
2039220569 "left" => left&.to_dynamic,
2039320570 "let" => let&.to_dynamic,
2039420571 "list" => list&.to_dynamic,
20572+ "LocalDate" => local_date&.to_dynamic,
2039520573 "Locale" => locale&.to_dynamic,
2039620574 "lock" => lock&.to_dynamic,
2039720575 "long" => long&.to_dynamic,
@@ -20427,6 +20605,8 @@ class TopLevel < Dry::Struct
2042720605 "object" => object&.to_dynamic,
2042820606 "ObjectMapper" => object_mapper&.to_dynamic,
2042920607 "of" => of&.to_dynamic,
20608+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20609+ "OffsetTime" => offset_time&.to_dynamic,
2043020610 "oneway" => oneway&.to_dynamic,
2043120611 "open" => top_level_open&.to_dynamic,
2043220612 "operator" => operator&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+180 −0
@@ -9082,6 +9082,63 @@ class UnionList < Dry::Struct
90829082 end
90839083 end
90849084
9085+class LocalDate < Dry::Struct
9086+
9087+ def self.from_dynamic!(d)
9088+ d = Types::Hash[d]
9089+ new(
9090+ )
9091+ end
9092+
9093+ def self.from_json!(json)
9094+ from_dynamic!(JSON.parse(json))
9095+ end
9096+
9097+ def to_dynamic
9098+ {
9099+ }
9100+ end
9101+
9102+ def to_json(options = nil)
9103+ JSON.generate(to_dynamic, options)
9104+ end
9105+end
9106+
9107+class UnionLocalDate < Dry::Struct
9108+ attribute :double, Types::Double.optional
9109+ attribute :local_date, LocalDate.optional
9110+
9111+ def self.from_dynamic!(d)
9112+ if schema.key(:double).type.right.valid? d
9113+ return new(double: d, local_date: nil)
9114+ end
9115+ begin
9116+ value = LocalDate.from_dynamic!(d)
9117+ if schema.key(:local_date).type.right.valid? value
9118+ return new(local_date: value, double: nil)
9119+ end
9120+ rescue
9121+ end
9122+ raise "Invalid union"
9123+ end
9124+
9125+ def self.from_json!(json)
9126+ from_dynamic!(JSON.parse(json))
9127+ end
9128+
9129+ def to_dynamic
9130+ if double != nil
9131+ double
9132+ elsif local_date != nil
9133+ local_date.to_dynamic
9134+ end
9135+ end
9136+
9137+ def to_json(options = nil)
9138+ JSON.generate(to_dynamic, options)
9139+ end
9140+end
9141+
90859142 class Locale < Dry::Struct
90869143
90879144 def self.from_dynamic!(d)
@@ -10735,6 +10792,120 @@ class UnionOf < Dry::Struct
1073510792 end
1073610793 end
1073710794
10795+class OffsetDateTime < Dry::Struct
10796+
10797+ def self.from_dynamic!(d)
10798+ d = Types::Hash[d]
10799+ new(
10800+ )
10801+ end
10802+
10803+ def self.from_json!(json)
10804+ from_dynamic!(JSON.parse(json))
10805+ end
10806+
10807+ def to_dynamic
10808+ {
10809+ }
10810+ end
10811+
10812+ def to_json(options = nil)
10813+ JSON.generate(to_dynamic, options)
10814+ end
10815+end
10816+
10817+class UnionOffsetDateTime < Dry::Struct
10818+ attribute :double, Types::Double.optional
10819+ attribute :offset_date_time, OffsetDateTime.optional
10820+
10821+ def self.from_dynamic!(d)
10822+ if schema.key(:double).type.right.valid? d
10823+ return new(double: d, offset_date_time: nil)
10824+ end
10825+ begin
10826+ value = OffsetDateTime.from_dynamic!(d)
10827+ if schema.key(:offset_date_time).type.right.valid? value
10828+ return new(offset_date_time: value, double: nil)
10829+ end
10830+ rescue
10831+ end
10832+ raise "Invalid union"
10833+ end
10834+
10835+ def self.from_json!(json)
10836+ from_dynamic!(JSON.parse(json))
10837+ end
10838+
10839+ def to_dynamic
10840+ if double != nil
10841+ double
10842+ elsif offset_date_time != nil
10843+ offset_date_time.to_dynamic
10844+ end
10845+ end
10846+
10847+ def to_json(options = nil)
10848+ JSON.generate(to_dynamic, options)
10849+ end
10850+end
10851+
10852+class OffsetTime < Dry::Struct
10853+
10854+ def self.from_dynamic!(d)
10855+ d = Types::Hash[d]
10856+ new(
10857+ )
10858+ end
10859+
10860+ def self.from_json!(json)
10861+ from_dynamic!(JSON.parse(json))
10862+ end
10863+
10864+ def to_dynamic
10865+ {
10866+ }
10867+ end
10868+
10869+ def to_json(options = nil)
10870+ JSON.generate(to_dynamic, options)
10871+ end
10872+end
10873+
10874+class UnionOffsetTime < Dry::Struct
10875+ attribute :double, Types::Double.optional
10876+ attribute :offset_time, OffsetTime.optional
10877+
10878+ def self.from_dynamic!(d)
10879+ if schema.key(:double).type.right.valid? d
10880+ return new(double: d, offset_time: nil)
10881+ end
10882+ begin
10883+ value = OffsetTime.from_dynamic!(d)
10884+ if schema.key(:offset_time).type.right.valid? value
10885+ return new(offset_time: value, double: nil)
10886+ end
10887+ rescue
10888+ end
10889+ raise "Invalid union"
10890+ end
10891+
10892+ def self.from_json!(json)
10893+ from_dynamic!(JSON.parse(json))
10894+ end
10895+
10896+ def to_dynamic
10897+ if double != nil
10898+ double
10899+ elsif offset_time != nil
10900+ offset_time.to_dynamic
10901+ end
10902+ end
10903+
10904+ def to_json(options = nil)
10905+ JSON.generate(to_dynamic, options)
10906+ end
10907+end
10908+
1073810909 class Oneway < Dry::Struct
1073910910
1074010911 def self.from_dynamic!(d)
@@ -19693,6 +19864,7 @@ class TopLevel < Dry::Struct
1969319864 attribute :left, Types.Instance(UnionLeft).optional
1969419865 attribute :let, Types.Instance(UnionLet).optional
1969519866 attribute :list, Types.Instance(UnionList).optional
19867+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1969619868 attribute :locale, Types.Instance(UnionLocale).optional
1969719869 attribute :lock, Types.Instance(UnionLock).optional
1969819870 attribute :long, Types.Instance(UnionLong).optional
@@ -19728,6 +19900,8 @@ class TopLevel < Dry::Struct
1972819900 attribute :object, Types.Instance(UnionObject).optional
1972919901 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1973019902 attribute :of, Types.Instance(UnionOf).optional
19903+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19904+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1973119905 attribute :oneway, Types.Instance(UnionOneway).optional
1973219906 attribute :top_level_open, Types.Instance(UnionOpen).optional
1973319907 attribute :operator, Types.Instance(UnionOperator).optional
@@ -20040,6 +20214,7 @@ class TopLevel < Dry::Struct
2004020214 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
2004120215 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
2004220216 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
20217+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
2004320218 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
2004420219 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
2004520220 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -20075,6 +20250,8 @@ class TopLevel < Dry::Struct
2007520250 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
2007620251 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
2007720252 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20253+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20254+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
2007820255 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
2007920256 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
2008020257 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -20392,6 +20569,7 @@ class TopLevel < Dry::Struct
2039220569 "left" => left&.to_dynamic,
2039320570 "let" => let&.to_dynamic,
2039420571 "list" => list&.to_dynamic,
20572+ "LocalDate" => local_date&.to_dynamic,
2039520573 "Locale" => locale&.to_dynamic,
2039620574 "lock" => lock&.to_dynamic,
2039720575 "long" => long&.to_dynamic,
@@ -20427,6 +20605,8 @@ class TopLevel < Dry::Struct
2042720605 "object" => object&.to_dynamic,
2042820606 "ObjectMapper" => object_mapper&.to_dynamic,
2042920607 "of" => of&.to_dynamic,
20608+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20609+ "OffsetTime" => offset_time&.to_dynamic,
2043020610 "oneway" => oneway&.to_dynamic,
2043120611 "open" => top_level_open&.to_dynamic,
2043220612 "operator" => operator&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+45 −0
@@ -439,6 +439,9 @@ pub struct TopLevel {
439439
440440 pub list: Option<UnionList>,
441441
442+ #[serde(rename = "LocalDate")]
443+ pub local_date: Option<UnionLocalDate>,
444+
442445 #[serde(rename = "Locale")]
443446 pub locale: Option<UnionLocale>,
444447
@@ -522,6 +525,12 @@ pub struct TopLevel {
522525
523526 pub of: Option<UnionOf>,
524527
528+ #[serde(rename = "OffsetDateTime")]
529+ pub offset_date_time: Option<UnionOffsetDateTime>,
530+
531+ #[serde(rename = "OffsetTime")]
532+ pub offset_time: Option<UnionOffsetTime>,
533+
525534 pub oneway: Option<UnionOneway>,
526535
527536 pub open: Option<UnionOpen>,
@@ -2676,6 +2685,18 @@ pub enum UnionList {
26762685 pub struct List {
26772686 }
26782687
2688+#[derive(Debug, Clone, Serialize, Deserialize)]
2689+#[serde(untagged)]
2690+pub enum UnionLocalDate {
2691+ Double(f64),
2692+
2693+ LocalDate(LocalDate),
2694+}
2695+
2696+#[derive(Debug, Clone, Serialize, Deserialize)]
2697+pub struct LocalDate {
2698+}
2699+
26792700 #[derive(Debug, Clone, Serialize, Deserialize)]
26802701 #[serde(untagged)]
26812702 pub enum UnionLocale {
@@ -3072,6 +3093,30 @@ pub enum UnionOf {
30723093 pub struct Of {
30733094 }
30743095
3096+#[derive(Debug, Clone, Serialize, Deserialize)]
3097+#[serde(untagged)]
3098+pub enum UnionOffsetDateTime {
3099+ Double(f64),
3100+
3101+ OffsetDateTime(OffsetDateTime),
3102+}
3103+
3104+#[derive(Debug, Clone, Serialize, Deserialize)]
3105+pub struct OffsetDateTime {
3106+}
3107+
3108+#[derive(Debug, Clone, Serialize, Deserialize)]
3109+#[serde(untagged)]
3110+pub enum UnionOffsetTime {
3111+ Double(f64),
3112+
3113+ OffsetTime(OffsetTime),
3114+}
3115+
3116+#[derive(Debug, Clone, Serialize, Deserialize)]
3117+pub struct OffsetTime {
3118+}
3119+
30753120 #[derive(Debug, Clone, Serialize, Deserialize)]
30763121 #[serde(untagged)]
30773122 pub enum UnionOneway {
Mschema-schemadefault / TopLevel.schema+57 −0
@@ -543,6 +543,9 @@
543543 "list": {
544544 "$ref": "#/definitions/UnionList"
545545 },
546+ "LocalDate": {
547+ "$ref": "#/definitions/UnionLocalDate"
548+ },
546549 "Locale": {
547550 "$ref": "#/definitions/UnionLocale"
548551 },
@@ -648,6 +651,12 @@
648651 "of": {
649652 "$ref": "#/definitions/UnionOf"
650653 },
654+ "OffsetDateTime": {
655+ "$ref": "#/definitions/UnionOffsetDateTime"
656+ },
657+ "OffsetTime": {
658+ "$ref": "#/definitions/UnionOffsetTime"
659+ },
651660 "oneway": {
652661 "$ref": "#/definitions/UnionOneway"
653662 },
@@ -1219,6 +1228,11 @@
12191228 "additionalProperties": false,
12201229 "title": "KSerializer"
12211230 },
1231+ "LocalDate": {
1232+ "type": "object",
1233+ "additionalProperties": false,
1234+ "title": "LocalDate"
1235+ },
12221236 "Locale": {
12231237 "type": "object",
12241238 "additionalProperties": false,
@@ -1269,6 +1283,16 @@
12691283 "additionalProperties": false,
12701284 "title": "ObjectMapper"
12711285 },
1286+ "OffsetDateTime": {
1287+ "type": "object",
1288+ "additionalProperties": false,
1289+ "title": "OffsetDateTime"
1290+ },
1291+ "OffsetTime": {
1292+ "type": "object",
1293+ "additionalProperties": false,
1294+ "title": "OffsetTime"
1295+ },
12721296 "PrimitiveKind": {
12731297 "type": "object",
12741298 "additionalProperties": false,
@@ -3145,6 +3169,17 @@
31453169 ],
31463170 "title": "UnionKSerializer"
31473171 },
3172+ "UnionLocalDate": {
3173+ "anyOf": [
3174+ {
3175+ "$ref": "#/definitions/LocalDate"
3176+ },
3177+ {
3178+ "type": "number"
3179+ }
3180+ ],
3181+ "title": "UnionLocalDate"
3182+ },
31483183 "UnionLocale": {
31493184 "anyOf": [
31503185 {
@@ -3255,6 +3290,28 @@
32553290 ],
32563291 "title": "UnionObjectMapper"
32573292 },
3293+ "UnionOffsetDateTime": {
3294+ "anyOf": [
3295+ {
3296+ "$ref": "#/definitions/OffsetDateTime"
3297+ },
3298+ {
3299+ "type": "number"
3300+ }
3301+ ],
3302+ "title": "UnionOffsetDateTime"
3303+ },
3304+ "UnionOffsetTime": {
3305+ "anyOf": [
3306+ {
3307+ "$ref": "#/definitions/OffsetTime"
3308+ },
3309+ {
3310+ "type": "number"
3311+ }
3312+ ],
3313+ "title": "UnionOffsetTime"
3314+ },
32583315 "UnionPrimitiveKind": {
32593316 "anyOf": [
32603317 {
Mschema-swiftdefault / quicktype.swift+225 −0
@@ -186,6 +186,7 @@ struct TopLevel: Codable {
186186 let topLevelLeft: UnionLeft?
187187 let topLevelLet: UnionLet?
188188 let list: UnionList?
189+ let localDate: UnionLocalDate?
189190 let locale: UnionLocale?
190191 let lock: UnionLock?
191192 let long: UnionLong?
@@ -221,6 +222,8 @@ struct TopLevel: Codable {
221222 let object: UnionObject?
222223 let objectMapper: UnionObjectMapper?
223224 let of: UnionOf?
225+ let offsetDateTime: UnionOffsetDateTime?
226+ let offsetTime: UnionOffsetTime?
224227 let oneway: UnionOneway?
225228 let topLevelOpen: UnionOpen?
226229 let topLevelOperator: UnionOperator?
@@ -531,6 +534,7 @@ struct TopLevel: Codable {
531534 case topLevelLeft = "left"
532535 case topLevelLet = "let"
533536 case list = "list"
537+ case localDate = "LocalDate"
534538 case locale = "Locale"
535539 case lock = "lock"
536540 case long = "long"
@@ -566,6 +570,8 @@ struct TopLevel: Codable {
566570 case object = "object"
567571 case objectMapper = "ObjectMapper"
568572 case of = "of"
573+ case offsetDateTime = "OffsetDateTime"
574+ case offsetTime = "OffsetTime"
569575 case oneway = "oneway"
570576 case topLevelOpen = "open"
571577 case topLevelOperator = "operator"
@@ -896,6 +902,7 @@ extension TopLevel {
896902 topLevelLeft: UnionLeft?? = nil,
897903 topLevelLet: UnionLet?? = nil,
898904 list: UnionList?? = nil,
905+ localDate: UnionLocalDate?? = nil,
899906 locale: UnionLocale?? = nil,
900907 lock: UnionLock?? = nil,
901908 long: UnionLong?? = nil,
@@ -931,6 +938,8 @@ extension TopLevel {
931938 object: UnionObject?? = nil,
932939 objectMapper: UnionObjectMapper?? = nil,
933940 of: UnionOf?? = nil,
941+ offsetDateTime: UnionOffsetDateTime?? = nil,
942+ offsetTime: UnionOffsetTime?? = nil,
934943 oneway: UnionOneway?? = nil,
935944 topLevelOpen: UnionOpen?? = nil,
936945 topLevelOperator: UnionOperator?? = nil,
@@ -1241,6 +1250,7 @@ extension TopLevel {
12411250 topLevelLeft: topLevelLeft ?? self.topLevelLeft,
12421251 topLevelLet: topLevelLet ?? self.topLevelLet,
12431252 list: list ?? self.list,
1253+ localDate: localDate ?? self.localDate,
12441254 locale: locale ?? self.locale,
12451255 lock: lock ?? self.lock,
12461256 long: long ?? self.long,
@@ -1276,6 +1286,8 @@ extension TopLevel {
12761286 object: object ?? self.object,
12771287 objectMapper: objectMapper ?? self.objectMapper,
12781288 of: of ?? self.of,
1289+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
1290+ offsetTime: offsetTime ?? self.offsetTime,
12791291 oneway: oneway ?? self.oneway,
12801292 topLevelOpen: topLevelOpen ?? self.topLevelOpen,
12811293 topLevelOperator: topLevelOperator ?? self.topLevelOperator,
@@ -10860,6 +10872,77 @@ extension List {
1086010872 }
1086110873 }
1086210874
10875+enum UnionLocalDate: Codable {
10876+ case double(Double)
10877+ case localDate(LocalDate)
10878+
10879+ init(from decoder: Decoder) throws {
10880+ let container = try decoder.singleValueContainer()
10881+ if let x = try? container.decode(Double.self) {
10882+ self = .double(x)
10883+ return
10884+ }
10885+ if let x = try? container.decode(LocalDate.self) {
10886+ self = .localDate(x)
10887+ return
10888+ }
10889+ throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate"))
10890+ }
10891+
10892+ func encode(to encoder: Encoder) throws {
10893+ var container = encoder.singleValueContainer()
10894+ switch self {
10895+ case .double(let x):
10896+ try container.encode(x)
10897+ case .localDate(let x):
10898+ try container.encode(x)
10899+ }
10900+ }
10901+}
10902+
10903+// MARK: - LocalDate
10904+struct LocalDate: Codable {
10905+ private enum K: String, CodingKey { case unused }
10906+ init(from decoder: Decoder) throws {
10907+ _ = try decoder.container(keyedBy: K.self)
10908+ }
10909+ init() {
10910+ }
10911+}
10912+
10913+// MARK: LocalDate convenience initializers and mutators
10914+
10915+extension LocalDate {
10916+ init(data: Data) throws {
10917+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
10918+ }
10919+
10920+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10921+ guard let data = json.data(using: encoding) else {
10922+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10923+ }
10924+ try self.init(data: data)
10925+ }
10926+
10927+ init(fromURL url: URL) throws {
10928+ try self.init(data: try Data(contentsOf: url))
10929+ }
10930+
10931+ func with(
10932+ ) -> LocalDate {
10933+ return LocalDate(
10934+ )
10935+ }
10936+
10937+ func jsonData() throws -> Data {
10938+ return try newJSONEncoder().encode(self)
10939+ }
10940+
10941+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10942+ return String(data: try self.jsonData(), encoding: encoding)
10943+ }
10944+}
10945+
1086310946 enum UnionLocale: Codable {
1086410947 case double(Double)
1086510948 case localeClass(LocaleClass)
@@ -12990,6 +13073,148 @@ extension Of {
1299013073 }
1299113074 }
1299213075
13076+enum UnionOffsetDateTime: Codable {
13077+ case double(Double)
13078+ case offsetDateTime(OffsetDateTime)
13079+
13080+ init(from decoder: Decoder) throws {
13081+ let container = try decoder.singleValueContainer()
13082+ if let x = try? container.decode(Double.self) {
13083+ self = .double(x)
13084+ return
13085+ }
13086+ if let x = try? container.decode(OffsetDateTime.self) {
13087+ self = .offsetDateTime(x)
13088+ return
13089+ }
13090+ throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime"))
13091+ }
13092+
13093+ func encode(to encoder: Encoder) throws {
13094+ var container = encoder.singleValueContainer()
13095+ switch self {
13096+ case .double(let x):
13097+ try container.encode(x)
13098+ case .offsetDateTime(let x):
13099+ try container.encode(x)
13100+ }
13101+ }
13102+}
13103+
13104+// MARK: - OffsetDateTime
13105+struct OffsetDateTime: Codable {
13106+ private enum K: String, CodingKey { case unused }
13107+ init(from decoder: Decoder) throws {
13108+ _ = try decoder.container(keyedBy: K.self)
13109+ }
13110+ init() {
13111+ }
13112+}
13113+
13114+// MARK: OffsetDateTime convenience initializers and mutators
13115+
13116+extension OffsetDateTime {
13117+ init(data: Data) throws {
13118+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
13119+ }
13120+
13121+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13122+ guard let data = json.data(using: encoding) else {
13123+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13124+ }
13125+ try self.init(data: data)
13126+ }
13127+
13128+ init(fromURL url: URL) throws {
13129+ try self.init(data: try Data(contentsOf: url))
13130+ }
13131+
13132+ func with(
13133+ ) -> OffsetDateTime {
13134+ return OffsetDateTime(
13135+ )
13136+ }
13137+
13138+ func jsonData() throws -> Data {
13139+ return try newJSONEncoder().encode(self)
13140+ }
13141+
13142+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13143+ return String(data: try self.jsonData(), encoding: encoding)
13144+ }
13145+}
13146+
13147+enum UnionOffsetTime: Codable {
13148+ case double(Double)
13149+ case offsetTime(OffsetTime)
13150+
13151+ init(from decoder: Decoder) throws {
13152+ let container = try decoder.singleValueContainer()
13153+ if let x = try? container.decode(Double.self) {
13154+ self = .double(x)
13155+ return
13156+ }
13157+ if let x = try? container.decode(OffsetTime.self) {
13158+ self = .offsetTime(x)
13159+ return
13160+ }
13161+ throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime"))
13162+ }
13163+
13164+ func encode(to encoder: Encoder) throws {
13165+ var container = encoder.singleValueContainer()
13166+ switch self {
13167+ case .double(let x):
13168+ try container.encode(x)
13169+ case .offsetTime(let x):
13170+ try container.encode(x)
13171+ }
13172+ }
13173+}
13174+
13175+// MARK: - OffsetTime
13176+struct OffsetTime: Codable {
13177+ private enum K: String, CodingKey { case unused }
13178+ init(from decoder: Decoder) throws {
13179+ _ = try decoder.container(keyedBy: K.self)
13180+ }
13181+ init() {
13182+ }
13183+}
13184+
13185+// MARK: OffsetTime convenience initializers and mutators
13186+
13187+extension OffsetTime {
13188+ init(data: Data) throws {
13189+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
13190+ }
13191+
13192+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13193+ guard let data = json.data(using: encoding) else {
13194+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13195+ }
13196+ try self.init(data: data)
13197+ }
13198+
13199+ init(fromURL url: URL) throws {
13200+ try self.init(data: try Data(contentsOf: url))
13201+ }
13202+
13203+ func with(
13204+ ) -> OffsetTime {
13205+ return OffsetTime(
13206+ )
13207+ }
13208+
13209+ func jsonData() throws -> Data {
13210+ return try newJSONEncoder().encode(self)
13211+ }
13212+
13213+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13214+ return String(data: try self.jsonData(), encoding: encoding)
13215+ }
13216+}
13217+
1299313218 enum UnionOneway: Codable {
1299413219 case double(Double)
1299513220 case oneway(Oneway)
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -409,6 +409,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value
409409 export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
410410 ) {}
411411
412+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
413+) {}
414+
415+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
416+) {}
417+
412418 export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
413419 ) {}
414420
@@ -508,6 +514,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value
508514 export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
509515 ) {}
510516
517+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
518+) {}
519+
511520 export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
512521 ) {}
513522
@@ -1207,6 +1216,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12071216 "left": S.optional(S.Union(S.Number, Left)),
12081217 "let": S.optional(S.Union(S.Number, Let)),
12091218 "list": S.optional(S.Union(S.Number, List)),
1219+ "LocalDate": S.optional(S.Union(S.Number, LocalDate)),
12101220 "Locale": S.optional(S.Union(S.Number, Locale)),
12111221 "lock": S.optional(S.Union(S.Number, Lock)),
12121222 "long": S.optional(S.Union(S.Number, Long)),
@@ -1242,6 +1252,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12421252 "object": S.optional(S.Union(S.Number, ObjectClass)),
12431253 "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)),
12441254 "of": S.optional(S.Union(S.Number, Of)),
1255+ "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)),
1256+ "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)),
12451257 "oneway": S.optional(S.Union(S.Number, Oneway)),
12461258 "open": S.optional(S.Union(S.Number, Open)),
12471259 "operator": S.optional(S.Union(S.Number, Operator)),
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -693,6 +693,10 @@ export const ListSchema = z.object({
693693 });
694694 export type List = z.infer<typeof ListSchema>;
695695
696+export const LocalDateSchema = z.object({
697+});
698+export type LocalDate = z.infer<typeof LocalDateSchema>;
699+
696700 export const LocaleSchema = z.object({
697701 });
698702 export type Locale = z.infer<typeof LocaleSchema>;
@@ -825,6 +829,14 @@ export const OfSchema = z.object({
825829 });
826830 export type Of = z.infer<typeof OfSchema>;
827831
832+export const OffsetDateTimeSchema = z.object({
833+});
834+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
835+
836+export const OffsetTimeSchema = z.object({
837+});
838+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
839+
828840 export const OnewaySchema = z.object({
829841 });
830842 export type Oneway = z.infer<typeof OnewaySchema>;
@@ -1549,6 +1561,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15491561 "left": z.union([LeftSchema, z.number()]).optional(),
15501562 "let": z.union([LetSchema, z.number()]).optional(),
15511563 "list": z.union([ListSchema, z.number()]).optional(),
1564+ "LocalDate": z.union([LocalDateSchema, z.number()]).optional(),
15521565 "Locale": z.union([LocaleSchema, z.number()]).optional(),
15531566 "lock": z.union([LockSchema, z.number()]).optional(),
15541567 "long": z.union([LongSchema, z.number()]).optional(),
@@ -1584,6 +1597,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15841597 "object": z.union([ObjectClassSchema, z.number()]).optional(),
15851598 "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(),
15861599 "of": z.union([OfSchema, z.number()]).optional(),
1600+ "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(),
1601+ "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(),
15871602 "oneway": z.union([OnewaySchema, z.number()]).optional(),
15881603 "open": z.union([OpenSchema, z.number()]).optional(),
15891604 "operator": z.union([OperatorSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+12 −0
@@ -187,6 +187,7 @@ export interface TopLevel {
187187 left?: UnionLeft;
188188 let?: UnionLet;
189189 list?: UnionList;
190+ LocalDate?: UnionLocalDate;
190191 Locale?: UnionLocale;
191192 lock?: UnionLock;
192193 long?: UnionLong;
@@ -222,6 +223,8 @@ export interface TopLevel {
222223 object?: UnionObject;
223224 ObjectMapper?: UnionObjectMapper;
224225 of?: UnionOf;
226+ OffsetDateTime?: UnionOffsetDateTime;
227+ OffsetTime?: UnionOffsetTime;
225228 oneway?: UnionOneway;
226229 open?: UnionOpen;
227230 operator?: UnionOperator;
@@ -426,6 +429,8 @@ export type UnionJSONTokenType = object | number;
426429
427430 export type UnionKSerializer = object | number;
428431
432+export type UnionLocalDate = object | number;
433+
429434 export type UnionLocale = object | number;
430435
431436 export type UnionMapEntry = object | number;
@@ -446,6 +451,10 @@ export type UnionNone = object | number;
446451
447452 export type UnionObjectMapper = object | number;
448453
454+export type UnionOffsetDateTime = object | number;
455+
456+export type UnionOffsetTime = object | number;
457+
449458 export type UnionPrimitiveKind = object | number;
450459
451460 export type UnionProtocol = object | number;
@@ -1405,6 +1414,7 @@ const typeMap: any = {
14051414 { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) },
14061415 { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) },
14071416 { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) },
1417+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) },
14081418 { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) },
14091419 { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) },
14101420 { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1440,6 +1450,8 @@ const typeMap: any = {
14401450 { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) },
14411451 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) },
14421452 { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) },
1453+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) },
1454+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) },
14431455 { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) },
14441456 { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) },
14451457 { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.