Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
1test cases
53files differ
41modified
12new
0deleted
3,202changed lines
+3,082 −120insertions / deletions
Base 8ac66f1f8496245fbd2b3abd77aa7c948124caaa · PR merge 30c280a0609651cc2472149c76f6b1f071391f73 · Head 8721e30de47925b03021562317a5dc69aead3831 · raw patch
Test case

test/inputs/json/priority/keywords.json

53 generated files · +3,082 −120
Mcjsondefault / TopLevel.c+260 −0
@@ -6045,6 +6045,61 @@ void cJSON_DeleteHasOwnProperty(struct HasOwnProperty * x) {
60456045 }
60466046 }
60476047
6048+struct HashCode * cJSON_ParseHashCode(const char * s) {
6049+ struct HashCode * x = NULL;
6050+ if (NULL != s) {
6051+ cJSON * j = cJSON_Parse(s);
6052+ if (NULL != j) {
6053+ x = cJSON_GetHashCodeValue(j);
6054+ cJSON_Delete(j);
6055+ }
6056+ }
6057+ return x;
6058+}
6059+
6060+struct HashCode * cJSON_GetHashCodeValue(const cJSON * j) {
6061+ struct HashCode * x = NULL;
6062+ if (NULL != j) {
6063+ if (NULL != (x = cJSON_malloc(sizeof(struct HashCode)))) {
6064+ memset(x, 0, sizeof(struct HashCode));
6065+ if (!cJSON_HasObjectItem(j, "hashCode")) { cJSON_DeleteHashCode(x); return NULL; }
6066+ if (cJSON_HasObjectItem(j, "hashCode")) {
6067+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "hashCode"))) { cJSON_DeleteHashCode(x); return NULL; }
6068+ x->hash_code = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "hashCode"));
6069+ }
6070+ }
6071+ }
6072+ return x;
6073+}
6074+
6075+cJSON * cJSON_CreateHashCode(const struct HashCode * x) {
6076+ cJSON * j = NULL;
6077+ if (NULL != x) {
6078+ if (NULL != (j = cJSON_CreateObject())) {
6079+ cJSON_AddNumberToObject(j, "hashCode", x->hash_code);
6080+ }
6081+ }
6082+ return j;
6083+}
6084+
6085+char * cJSON_PrintHashCode(const struct HashCode * x) {
6086+ char * s = NULL;
6087+ if (NULL != x) {
6088+ cJSON * j = cJSON_CreateHashCode(x);
6089+ if (NULL != j) {
6090+ s = cJSON_Print(j);
6091+ cJSON_Delete(j);
6092+ }
6093+ }
6094+ return s;
6095+}
6096+
6097+void cJSON_DeleteHashCode(struct HashCode * x) {
6098+ if (NULL != x) {
6099+ cJSON_free(x);
6100+ }
6101+}
6102+
60486103 struct Id * cJSON_ParseId(const char * s) {
60496104 struct Id * x = NULL;
60506105 if (NULL != s) {
@@ -8074,6 +8129,12 @@ struct Obj2 * cJSON_GetObj2Value(const cJSON * j) {
80748129 x->has_own_property = cJSON_GetHasOwnPropertyValue(cJSON_GetObjectItemCaseSensitive(j, "hasOwnProperty"));
80758130 if (NULL == x->has_own_property) { cJSON_DeleteObj2(x); return NULL; }
80768131 }
8132+ if (!cJSON_HasObjectItem(j, "hashCode")) { cJSON_DeleteObj2(x); return NULL; }
8133+ if (cJSON_HasObjectItem(j, "hashCode")) {
8134+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "hashCode"))) { cJSON_DeleteObj2(x); return NULL; }
8135+ x->hash_code = cJSON_GetHashCodeValue(cJSON_GetObjectItemCaseSensitive(j, "hashCode"));
8136+ if (NULL == x->hash_code) { cJSON_DeleteObj2(x); return NULL; }
8137+ }
80778138 if (!cJSON_HasObjectItem(j, "id")) { cJSON_DeleteObj2(x); return NULL; }
80788139 if (cJSON_HasObjectItem(j, "id")) {
80798140 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "id"))) { cJSON_DeleteObj2(x); return NULL; }
@@ -8314,6 +8375,7 @@ cJSON * cJSON_CreateObj2(const struct Obj2 * x) {
83148375 cJSON_AddItemToObject(j, "go", cJSON_CreateGo(x->go));
83158376 cJSON_AddItemToObject(j, "guard", cJSON_CreateGuard(x->guard));
83168377 cJSON_AddItemToObject(j, "hasOwnProperty", cJSON_CreateHasOwnProperty(x->has_own_property));
8378+ cJSON_AddItemToObject(j, "hashCode", cJSON_CreateHashCode(x->hash_code));
83178379 cJSON_AddItemToObject(j, "id", cJSON_CreateId(x->id));
83188380 cJSON_AddItemToObject(j, "IMP", cJSON_CreateImp(x->imp));
83198381 cJSON_AddItemToObject(j, "implements", cJSON_CreateImplements(x->implements));
@@ -8462,6 +8524,9 @@ void cJSON_DeleteObj2(struct Obj2 * x) {
84628524 if (NULL != x->has_own_property) {
84638525 cJSON_DeleteHasOwnProperty(x->has_own_property);
84648526 }
8527+ if (NULL != x->hash_code) {
8528+ cJSON_DeleteHashCode(x->hash_code);
8529+ }
84658530 if (NULL != x->id) {
84668531 cJSON_DeleteId(x->id);
84678532 }
@@ -9830,6 +9895,61 @@ void cJSON_DeleteNo(struct No * x) {
98309895 }
98319896 }
98329897
9898+struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s) {
9899+ struct NoSuchMethod * x = NULL;
9900+ if (NULL != s) {
9901+ cJSON * j = cJSON_Parse(s);
9902+ if (NULL != j) {
9903+ x = cJSON_GetNoSuchMethodValue(j);
9904+ cJSON_Delete(j);
9905+ }
9906+ }
9907+ return x;
9908+}
9909+
9910+struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j) {
9911+ struct NoSuchMethod * x = NULL;
9912+ if (NULL != j) {
9913+ if (NULL != (x = cJSON_malloc(sizeof(struct NoSuchMethod)))) {
9914+ memset(x, 0, sizeof(struct NoSuchMethod));
9915+ if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteNoSuchMethod(x); return NULL; }
9916+ if (cJSON_HasObjectItem(j, "noSuchMethod")) {
9917+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteNoSuchMethod(x); return NULL; }
9918+ x->no_such_method = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"));
9919+ }
9920+ }
9921+ }
9922+ return x;
9923+}
9924+
9925+cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x) {
9926+ cJSON * j = NULL;
9927+ if (NULL != x) {
9928+ if (NULL != (j = cJSON_CreateObject())) {
9929+ cJSON_AddNumberToObject(j, "noSuchMethod", x->no_such_method);
9930+ }
9931+ }
9932+ return j;
9933+}
9934+
9935+char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) {
9936+ char * s = NULL;
9937+ if (NULL != x) {
9938+ cJSON * j = cJSON_CreateNoSuchMethod(x);
9939+ if (NULL != j) {
9940+ s = cJSON_Print(j);
9941+ cJSON_Delete(j);
9942+ }
9943+ }
9944+ return s;
9945+}
9946+
9947+void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x) {
9948+ if (NULL != x) {
9949+ cJSON_free(x);
9950+ }
9951+}
9952+
98339953 struct Nonatomic * cJSON_ParseNonatomic(const char * s) {
98349954 struct Nonatomic * x = NULL;
98359955 if (NULL != s) {
@@ -12300,6 +12420,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1230012420 x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO"));
1230112421 if (NULL == x->no) { cJSON_DeleteObj3(x); return NULL; }
1230212422 }
12423+ if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj3(x); return NULL; }
12424+ if (cJSON_HasObjectItem(j, "noSuchMethod")) {
12425+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteObj3(x); return NULL; }
12426+ x->no_such_method = cJSON_GetNoSuchMethodValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"));
12427+ if (NULL == x->no_such_method) { cJSON_DeleteObj3(x); return NULL; }
12428+ }
1230312429 if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteObj3(x); return NULL; }
1230412430 if (cJSON_HasObjectItem(j, "nonatomic")) {
1230512431 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12585,6 +12711,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1258512711 cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft));
1258612712 cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil));
1258712713 cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no));
12714+ cJSON_AddItemToObject(j, "noSuchMethod", cJSON_CreateNoSuchMethod(x->no_such_method));
1258812715 cJSON_AddItemToObject(j, "nonatomic", cJSON_CreateNonatomic(x->nonatomic));
1258912716 cJSON_AddItemToObject(j, "None", cJSON_CreateNone(x->none));
1259012717 cJSON_AddItemToObject(j, "nonlocal", cJSON_CreateNonlocal(x->nonlocal));
@@ -12715,6 +12842,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1271512842 if (NULL != x->no) {
1271612843 cJSON_DeleteNo(x->no);
1271712844 }
12845+ if (NULL != x->no_such_method) {
12846+ cJSON_DeleteNoSuchMethod(x->no_such_method);
12847+ }
1271812848 if (NULL != x->nonatomic) {
1271912849 cJSON_DeleteNonatomic(x->nonatomic);
1272012850 }
@@ -14990,6 +15120,61 @@ void cJSON_DeleteRight(struct Right * x) {
1499015120 }
1499115121 }
1499215122
15123+struct RuntimeType * cJSON_ParseRuntimeType(const char * s) {
15124+ struct RuntimeType * x = NULL;
15125+ if (NULL != s) {
15126+ cJSON * j = cJSON_Parse(s);
15127+ if (NULL != j) {
15128+ x = cJSON_GetRuntimeTypeValue(j);
15129+ cJSON_Delete(j);
15130+ }
15131+ }
15132+ return x;
15133+}
15134+
15135+struct RuntimeType * cJSON_GetRuntimeTypeValue(const cJSON * j) {
15136+ struct RuntimeType * x = NULL;
15137+ if (NULL != j) {
15138+ if (NULL != (x = cJSON_malloc(sizeof(struct RuntimeType)))) {
15139+ memset(x, 0, sizeof(struct RuntimeType));
15140+ if (!cJSON_HasObjectItem(j, "runtimeType")) { cJSON_DeleteRuntimeType(x); return NULL; }
15141+ if (cJSON_HasObjectItem(j, "runtimeType")) {
15142+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "runtimeType"))) { cJSON_DeleteRuntimeType(x); return NULL; }
15143+ x->runtime_type = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "runtimeType"));
15144+ }
15145+ }
15146+ }
15147+ return x;
15148+}
15149+
15150+cJSON * cJSON_CreateRuntimeType(const struct RuntimeType * x) {
15151+ cJSON * j = NULL;
15152+ if (NULL != x) {
15153+ if (NULL != (j = cJSON_CreateObject())) {
15154+ cJSON_AddNumberToObject(j, "runtimeType", x->runtime_type);
15155+ }
15156+ }
15157+ return j;
15158+}
15159+
15160+char * cJSON_PrintRuntimeType(const struct RuntimeType * x) {
15161+ char * s = NULL;
15162+ if (NULL != x) {
15163+ cJSON * j = cJSON_CreateRuntimeType(x);
15164+ if (NULL != j) {
15165+ s = cJSON_Print(j);
15166+ cJSON_Delete(j);
15167+ }
15168+ }
15169+ return s;
15170+}
15171+
15172+void cJSON_DeleteRuntimeType(struct RuntimeType * x) {
15173+ if (NULL != x) {
15174+ cJSON_free(x);
15175+ }
15176+}
15177+
1499315178 struct S * cJSON_ParseS(const char * s) {
1499415179 struct S * x = NULL;
1499515180 if (NULL != s) {
@@ -15980,6 +16165,61 @@ void cJSON_DeleteToJson(struct ToJson * x) {
1598016165 }
1598116166 }
1598216167
16168+struct ToString * cJSON_ParseToString(const char * s) {
16169+ struct ToString * x = NULL;
16170+ if (NULL != s) {
16171+ cJSON * j = cJSON_Parse(s);
16172+ if (NULL != j) {
16173+ x = cJSON_GetToStringValue(j);
16174+ cJSON_Delete(j);
16175+ }
16176+ }
16177+ return x;
16178+}
16179+
16180+struct ToString * cJSON_GetToStringValue(const cJSON * j) {
16181+ struct ToString * x = NULL;
16182+ if (NULL != j) {
16183+ if (NULL != (x = cJSON_malloc(sizeof(struct ToString)))) {
16184+ memset(x, 0, sizeof(struct ToString));
16185+ if (!cJSON_HasObjectItem(j, "toString")) { cJSON_DeleteToString(x); return NULL; }
16186+ if (cJSON_HasObjectItem(j, "toString")) {
16187+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "toString"))) { cJSON_DeleteToString(x); return NULL; }
16188+ x->to_string = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "toString"));
16189+ }
16190+ }
16191+ }
16192+ return x;
16193+}
16194+
16195+cJSON * cJSON_CreateToString(const struct ToString * x) {
16196+ cJSON * j = NULL;
16197+ if (NULL != x) {
16198+ if (NULL != (j = cJSON_CreateObject())) {
16199+ cJSON_AddNumberToObject(j, "toString", x->to_string);
16200+ }
16201+ }
16202+ return j;
16203+}
16204+
16205+char * cJSON_PrintToString(const struct ToString * x) {
16206+ char * s = NULL;
16207+ if (NULL != x) {
16208+ cJSON * j = cJSON_CreateToString(x);
16209+ if (NULL != j) {
16210+ s = cJSON_Print(j);
16211+ cJSON_Delete(j);
16212+ }
16213+ }
16214+ return s;
16215+}
16216+
16217+void cJSON_DeleteToString(struct ToString * x) {
16218+ if (NULL != x) {
16219+ cJSON_free(x);
16220+ }
16221+}
16222+
1598316223 struct TopLevelClass * cJSON_ParseTopLevelClass(const char * s) {
1598416224 struct TopLevelClass * x = NULL;
1598516225 if (NULL != s) {
@@ -16676,6 +16916,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1667616916 x->right = cJSON_GetRightValue(cJSON_GetObjectItemCaseSensitive(j, "right"));
1667716917 if (NULL == x->right) { cJSON_DeleteObj4(x); return NULL; }
1667816918 }
16919+ if (!cJSON_HasObjectItem(j, "runtimeType")) { cJSON_DeleteObj4(x); return NULL; }
16920+ if (cJSON_HasObjectItem(j, "runtimeType")) {
16921+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "runtimeType"))) { cJSON_DeleteObj4(x); return NULL; }
16922+ x->runtime_type = cJSON_GetRuntimeTypeValue(cJSON_GetObjectItemCaseSensitive(j, "runtimeType"));
16923+ if (NULL == x->runtime_type) { cJSON_DeleteObj4(x); return NULL; }
16924+ }
1667916925 if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj4(x); return NULL; }
1668016926 if (cJSON_HasObjectItem(j, "s")) {
1668116927 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16784,6 +17030,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1678417030 x->to_json = cJSON_GetToJsonValue(cJSON_GetObjectItemCaseSensitive(j, "to_json"));
1678517031 if (NULL == x->to_json) { cJSON_DeleteObj4(x); return NULL; }
1678617032 }
17033+ if (!cJSON_HasObjectItem(j, "toString")) { cJSON_DeleteObj4(x); return NULL; }
17034+ if (cJSON_HasObjectItem(j, "toString")) {
17035+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "toString"))) { cJSON_DeleteObj4(x); return NULL; }
17036+ x->to_string = cJSON_GetToStringValue(cJSON_GetObjectItemCaseSensitive(j, "toString"));
17037+ if (NULL == x->to_string) { cJSON_DeleteObj4(x); return NULL; }
17038+ }
1678717039 if (!cJSON_HasObjectItem(j, "top_level")) { cJSON_DeleteObj4(x); return NULL; }
1678817040 if (cJSON_HasObjectItem(j, "top_level")) {
1678917041 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "top_level"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16881,6 +17133,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1688117133 cJSON_AddItemToObject(j, "retain", cJSON_CreateRetain(x->retain));
1688217134 cJSON_AddItemToObject(j, "rethrows", cJSON_CreateRethrows(x->rethrows));
1688317135 cJSON_AddItemToObject(j, "right", cJSON_CreateRight(x->right));
17136+ cJSON_AddItemToObject(j, "runtimeType", cJSON_CreateRuntimeType(x->runtime_type));
1688417137 cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s));
1688517138 cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte));
1688617139 cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
@@ -16899,6 +17152,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1689917152 cJSON_AddItemToObject(j, "then", cJSON_CreateThen(x->then));
1690017153 cJSON_AddItemToObject(j, "throws", cJSON_CreateThrows(x->throws));
1690117154 cJSON_AddItemToObject(j, "to_json", cJSON_CreateToJson(x->to_json));
17155+ cJSON_AddItemToObject(j, "toString", cJSON_CreateToString(x->to_string));
1690217156 cJSON_AddItemToObject(j, "top_level", cJSON_CreateTopLevelClass(x->top_level));
1690317157 cJSON_AddItemToObject(j, "transient", cJSON_CreateTransient(x->transient));
1690417158 cJSON_AddItemToObject(j, "Type", cJSON_CreateType(x->type));
@@ -17043,6 +17297,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1704317297 if (NULL != x->right) {
1704417298 cJSON_DeleteRight(x->right);
1704517299 }
17300+ if (NULL != x->runtime_type) {
17301+ cJSON_DeleteRuntimeType(x->runtime_type);
17302+ }
1704617303 if (NULL != x->s) {
1704717304 cJSON_DeleteS(x->s);
1704817305 }
@@ -17097,6 +17354,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1709717354 if (NULL != x->to_json) {
1709817355 cJSON_DeleteToJson(x->to_json);
1709917356 }
17357+ if (NULL != x->to_string) {
17358+ cJSON_DeleteToString(x->to_string);
17359+ }
1710017360 if (NULL != x->top_level) {
1710117361 cJSON_DeleteTopLevelClass(x->top_level);
1710217362 }
Mcjsondefault / TopLevel.h+44 −0
@@ -495,6 +495,10 @@ struct HasOwnProperty {
495495 int64_t has_own_property;
496496 };
497497
498+struct HashCode {
499+ int64_t hash_code;
500+};
501+
498502 struct Id {
499503 int64_t id;
500504 };
@@ -661,6 +665,7 @@ struct Obj2 {
661665 struct Go * go;
662666 struct Guard * guard;
663667 struct HasOwnProperty * has_own_property;
668+ struct HashCode * hash_code;
664669 struct Id * id;
665670 struct Imp * imp;
666671 struct Implements * implements;
@@ -788,6 +793,10 @@ struct No {
788793 int64_t no;
789794 };
790795
796+struct NoSuchMethod {
797+ int64_t no_such_method;
798+};
799+
791800 struct Nonatomic {
792801 int64_t nonatomic;
793802 };
@@ -981,6 +990,7 @@ struct Obj3 {
981990 struct Newtonsoft * newtonsoft;
982991 struct Nil * nil;
983992 struct No * no;
993+ struct NoSuchMethod * no_such_method;
984994 struct Nonatomic * nonatomic;
985995 struct None * none;
986996 struct Nonlocal * nonlocal;
@@ -1181,6 +1191,10 @@ struct Right {
11811191 int64_t right;
11821192 };
11831193
1194+struct RuntimeType {
1195+ int64_t runtime_type;
1196+};
1197+
11841198 struct S {
11851199 int64_t s;
11861200 };
@@ -1253,6 +1267,10 @@ struct ToJson {
12531267 int64_t to_json;
12541268 };
12551269
1270+struct ToString {
1271+ int64_t to_string;
1272+};
1273+
12561274 struct TopLevelClass {
12571275 int64_t top_level;
12581276 };
@@ -1326,6 +1344,7 @@ struct Obj4 {
13261344 struct Retain * retain;
13271345 struct Rethrows * rethrows;
13281346 struct Right * right;
1347+ struct RuntimeType * runtime_type;
13291348 struct S * s;
13301349 struct Sbyte * sbyte;
13311350 struct Sealed * sealed;
@@ -1344,6 +1363,7 @@ struct Obj4 {
13441363 struct Then * then;
13451364 struct Throws * throws;
13461365 struct ToJson * to_json;
1366+ struct ToString * to_string;
13471367 struct TopLevelClass * top_level;
13481368 struct Transient * transient;
13491369 struct Type * type;
@@ -2055,6 +2075,12 @@ cJSON * cJSON_CreateHasOwnProperty(const struct HasOwnProperty * x);
20552075 char * cJSON_PrintHasOwnProperty(const struct HasOwnProperty * x);
20562076 void cJSON_DeleteHasOwnProperty(struct HasOwnProperty * x);
20572077
2078+struct HashCode * cJSON_ParseHashCode(const char * s);
2079+struct HashCode * cJSON_GetHashCodeValue(const cJSON * j);
2080+cJSON * cJSON_CreateHashCode(const struct HashCode * x);
2081+char * cJSON_PrintHashCode(const struct HashCode * x);
2082+void cJSON_DeleteHashCode(struct HashCode * x);
2083+
20582084 struct Id * cJSON_ParseId(const char * s);
20592085 struct Id * cJSON_GetIdValue(const cJSON * j);
20602086 cJSON * cJSON_CreateId(const struct Id * x);
@@ -2397,6 +2423,12 @@ cJSON * cJSON_CreateNo(const struct No * x);
23972423 char * cJSON_PrintNo(const struct No * x);
23982424 void cJSON_DeleteNo(struct No * x);
23992425
2426+struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s);
2427+struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j);
2428+cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x);
2429+char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x);
2430+void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x);
2431+
24002432 struct Nonatomic * cJSON_ParseNonatomic(const char * s);
24012433 struct Nonatomic * cJSON_GetNonatomicValue(const cJSON * j);
24022434 cJSON * cJSON_CreateNonatomic(const struct Nonatomic * x);
@@ -2889,6 +2921,12 @@ cJSON * cJSON_CreateRight(const struct Right * x);
28892921 char * cJSON_PrintRight(const struct Right * x);
28902922 void cJSON_DeleteRight(struct Right * x);
28912923
2924+struct RuntimeType * cJSON_ParseRuntimeType(const char * s);
2925+struct RuntimeType * cJSON_GetRuntimeTypeValue(const cJSON * j);
2926+cJSON * cJSON_CreateRuntimeType(const struct RuntimeType * x);
2927+char * cJSON_PrintRuntimeType(const struct RuntimeType * x);
2928+void cJSON_DeleteRuntimeType(struct RuntimeType * x);
2929+
28922930 struct S * cJSON_ParseS(const char * s);
28932931 struct S * cJSON_GetSValue(const cJSON * j);
28942932 cJSON * cJSON_CreateS(const struct S * x);
@@ -2997,6 +3035,12 @@ cJSON * cJSON_CreateToJson(const struct ToJson * x);
29973035 char * cJSON_PrintToJson(const struct ToJson * x);
29983036 void cJSON_DeleteToJson(struct ToJson * x);
29993037
3038+struct ToString * cJSON_ParseToString(const char * s);
3039+struct ToString * cJSON_GetToStringValue(const cJSON * j);
3040+cJSON * cJSON_CreateToString(const struct ToString * x);
3041+char * cJSON_PrintToString(const struct ToString * x);
3042+void cJSON_DeleteToString(struct ToString * x);
3043+
30003044 struct TopLevelClass * cJSON_ParseTopLevelClass(const char * s);
30013045 struct TopLevelClass * cJSON_GetTopLevelClassValue(const cJSON * j);
30023046 cJSON * cJSON_CreateTopLevelClass(const struct TopLevelClass * x);
Mcplusplusdefault / quicktype.hpp+140 −0
@@ -1728,6 +1728,20 @@ namespace quicktype {
17281728 void set_has_own_property(const int64_t & value) { this->has_own_property = value; }
17291729 };
17301730
1731+ class HashCode {
1732+ public:
1733+ HashCode() = default;
1734+ virtual ~HashCode() = default;
1735+
1736+ private:
1737+ int64_t hash_code;
1738+
1739+ public:
1740+ const int64_t & get_hash_code() const { return hash_code; }
1741+ int64_t & get_mutable_hash_code() { return hash_code; }
1742+ void set_hash_code(const int64_t & value) { this->hash_code = value; }
1743+ };
1744+
17311745 class Id {
17321746 public:
17331747 Id() = default;
@@ -2229,6 +2243,7 @@ namespace quicktype {
22292243 Go go;
22302244 Guard guard;
22312245 HasOwnProperty has_own_property;
2246+ HashCode hash_code;
22322247 Id id;
22332248 Imp imp;
22342249 Implements implements;
@@ -2396,6 +2411,10 @@ namespace quicktype {
23962411 HasOwnProperty & get_mutable_has_own_property() { return has_own_property; }
23972412 void set_has_own_property(const HasOwnProperty & value) { this->has_own_property = value; }
23982413
2414+ const HashCode & get_hash_code() const { return hash_code; }
2415+ HashCode & get_mutable_hash_code() { return hash_code; }
2416+ void set_hash_code(const HashCode & value) { this->hash_code = value; }
2417+
23992418 const Id & get_id() const { return id; }
24002419 Id & get_mutable_id() { return id; }
24012420 void set_id(const Id & value) { this->id = value; }
@@ -2851,6 +2870,20 @@ namespace quicktype {
28512870 void set_no(const int64_t & value) { this->no = value; }
28522871 };
28532872
2873+ class NoSuchMethod {
2874+ public:
2875+ NoSuchMethod() = default;
2876+ virtual ~NoSuchMethod() = default;
2877+
2878+ private:
2879+ int64_t no_such_method;
2880+
2881+ public:
2882+ const int64_t & get_no_such_method() const { return no_such_method; }
2883+ int64_t & get_mutable_no_such_method() { return no_such_method; }
2884+ void set_no_such_method(const int64_t & value) { this->no_such_method = value; }
2885+ };
2886+
28542887 class Nonatomic {
28552888 public:
28562889 Nonatomic() = default;
@@ -3469,6 +3502,7 @@ namespace quicktype {
34693502 Newtonsoft newtonsoft;
34703503 Nil nil;
34713504 No no;
3505+ NoSuchMethod no_such_method;
34723506 Nonatomic nonatomic;
34733507 None none;
34743508 Nonlocal nonlocal;
@@ -3609,6 +3643,10 @@ namespace quicktype {
36093643 No & get_mutable_no() { return no; }
36103644 void set_no(const No & value) { this->no = value; }
36113645
3646+ const NoSuchMethod & get_no_such_method() const { return no_such_method; }
3647+ NoSuchMethod & get_mutable_no_such_method() { return no_such_method; }
3648+ void set_no_such_method(const NoSuchMethod & value) { this->no_such_method = value; }
3649+
36123650 const Nonatomic & get_nonatomic() const { return nonatomic; }
36133651 Nonatomic & get_mutable_nonatomic() { return nonatomic; }
36143652 void set_nonatomic(const Nonatomic & value) { this->nonatomic = value; }
@@ -4310,6 +4348,20 @@ namespace quicktype {
43104348 void set_right(const int64_t & value) { this->right = value; }
43114349 };
43124350
4351+ class RuntimeType {
4352+ public:
4353+ RuntimeType() = default;
4354+ virtual ~RuntimeType() = default;
4355+
4356+ private:
4357+ int64_t runtime_type;
4358+
4359+ public:
4360+ const int64_t & get_runtime_type() const { return runtime_type; }
4361+ int64_t & get_mutable_runtime_type() { return runtime_type; }
4362+ void set_runtime_type(const int64_t & value) { this->runtime_type = value; }
4363+ };
4364+
43134365 class S {
43144366 public:
43154367 S() = default;
@@ -4562,6 +4614,20 @@ namespace quicktype {
45624614 void set_to_json(const int64_t & value) { this->to_json = value; }
45634615 };
45644616
4617+ class ToString {
4618+ public:
4619+ ToString() = default;
4620+ virtual ~ToString() = default;
4621+
4622+ private:
4623+ int64_t to_string;
4624+
4625+ public:
4626+ const int64_t & get_to_string() const { return to_string; }
4627+ int64_t & get_mutable_to_string() { return to_string; }
4628+ void set_to_string(const int64_t & value) { this->to_string = value; }
4629+ };
4630+
45654631 class TopLevelClass {
45664632 public:
45674633 TopLevelClass() = default;
@@ -4733,6 +4799,7 @@ namespace quicktype {
47334799 Retain retain;
47344800 Rethrows rethrows;
47354801 Right right;
4802+ RuntimeType runtime_type;
47364803 S s;
47374804 Sbyte sbyte;
47384805 Sealed sealed;
@@ -4751,6 +4818,7 @@ namespace quicktype {
47514818 Then then;
47524819 Throws throws;
47534820 ToJson to_json;
4821+ ToString to_string;
47544822 TopLevelClass top_level;
47554823 Transient transient;
47564824 Type type;
@@ -4918,6 +4986,10 @@ namespace quicktype {
49184986 Right & get_mutable_right() { return right; }
49194987 void set_right(const Right & value) { this->right = value; }
49204988
4989+ const RuntimeType & get_runtime_type() const { return runtime_type; }
4990+ RuntimeType & get_mutable_runtime_type() { return runtime_type; }
4991+ void set_runtime_type(const RuntimeType & value) { this->runtime_type = value; }
4992+
49214993 const S & get_s() const { return s; }
49224994 S & get_mutable_s() { return s; }
49234995 void set_s(const S & value) { this->s = value; }
@@ -4990,6 +5062,10 @@ namespace quicktype {
49905062 ToJson & get_mutable_to_json() { return to_json; }
49915063 void set_to_json(const ToJson & value) { this->to_json = value; }
49925064
5065+ const ToString & get_to_string() const { return to_string; }
5066+ ToString & get_mutable_to_string() { return to_string; }
5067+ void set_to_string(const ToString & value) { this->to_string = value; }
5068+
49935069 const TopLevelClass & get_top_level() const { return top_level; }
49945070 TopLevelClass & get_mutable_top_level() { return top_level; }
49955071 void set_top_level(const TopLevelClass & value) { this->top_level = value; }
@@ -5756,6 +5832,9 @@ namespace quicktype {
57565832 void from_json(const json & j, HasOwnProperty & x);
57575833 void to_json(json & j, const HasOwnProperty & x);
57585834
5835+ void from_json(const json & j, HashCode & x);
5836+ void to_json(json & j, const HashCode & x);
5837+
57595838 void from_json(const json & j, Id & x);
57605839 void to_json(json & j, const Id & x);
57615840
@@ -5927,6 +6006,9 @@ namespace quicktype {
59276006 void from_json(const json & j, No & x);
59286007 void to_json(json & j, const No & x);
59296008
6009+ void from_json(const json & j, NoSuchMethod & x);
6010+ void to_json(json & j, const NoSuchMethod & x);
6011+
59306012 void from_json(const json & j, Nonatomic & x);
59316013 void to_json(json & j, const Nonatomic & x);
59326014
@@ -6170,6 +6252,9 @@ namespace quicktype {
61706252 void from_json(const json & j, Right & x);
61716253 void to_json(json & j, const Right & x);
61726254
6255+ void from_json(const json & j, RuntimeType & x);
6256+ void to_json(json & j, const RuntimeType & x);
6257+
61736258 void from_json(const json & j, S & x);
61746259 void to_json(json & j, const S & x);
61756260
@@ -6224,6 +6309,9 @@ namespace quicktype {
62246309 void from_json(const json & j, ToJson & x);
62256310 void to_json(json & j, const ToJson & x);
62266311
6312+ void from_json(const json & j, ToString & x);
6313+ void to_json(json & j, const ToString & x);
6314+
62276315 void from_json(const json & j, TopLevelClass & x);
62286316 void to_json(json & j, const TopLevelClass & x);
62296317
@@ -7528,6 +7616,17 @@ namespace quicktype {
75287616 j["hasOwnProperty"] = x.get_has_own_property();
75297617 }
75307618
7619+ inline void from_json(const json & j, HashCode& x) {
7620+ if (!j.is_object()) throw std::runtime_error("Expected object");
7621+ if (j.find("hashCode") != j.end() && !j.at("hashCode").is_number_integer()) throw std::runtime_error("Expected integer");
7622+ x.set_hash_code(j.at("hashCode").get<int64_t>());
7623+ }
7624+
7625+ inline void to_json(json & j, const HashCode & x) {
7626+ j = json::object();
7627+ j["hashCode"] = x.get_hash_code();
7628+ }
7629+
75317630 inline void from_json(const json & j, Id& x) {
75327631 if (!j.is_object()) throw std::runtime_error("Expected object");
75337632 if (j.find("id") != j.end() && !j.at("id").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -7927,6 +8026,7 @@ namespace quicktype {
79278026 x.set_go(j.at("go").get<Go>());
79288027 x.set_guard(j.at("guard").get<Guard>());
79298028 x.set_has_own_property(j.at("hasOwnProperty").get<HasOwnProperty>());
8029+ x.set_hash_code(j.at("hashCode").get<HashCode>());
79308030 x.set_id(j.at("id").get<Id>());
79318031 x.set_imp(j.at("IMP").get<Imp>());
79328032 x.set_implements(j.at("implements").get<Implements>());
@@ -7997,6 +8097,7 @@ namespace quicktype {
79978097 j["go"] = x.get_go();
79988098 j["guard"] = x.get_guard();
79998099 j["hasOwnProperty"] = x.get_has_own_property();
8100+ j["hashCode"] = x.get_hash_code();
80008101 j["id"] = x.get_id();
80018102 j["IMP"] = x.get_imp();
80028103 j["implements"] = x.get_implements();
@@ -8285,6 +8386,17 @@ namespace quicktype {
82858386 j["NO"] = x.get_no();
82868387 }
82878388
8389+ inline void from_json(const json & j, NoSuchMethod& x) {
8390+ if (!j.is_object()) throw std::runtime_error("Expected object");
8391+ if (j.find("noSuchMethod") != j.end() && !j.at("noSuchMethod").is_number_integer()) throw std::runtime_error("Expected integer");
8392+ x.set_no_such_method(j.at("noSuchMethod").get<int64_t>());
8393+ }
8394+
8395+ inline void to_json(json & j, const NoSuchMethod & x) {
8396+ j = json::object();
8397+ j["noSuchMethod"] = x.get_no_such_method();
8398+ }
8399+
82888400 inline void from_json(const json & j, Nonatomic& x) {
82898401 if (!j.is_object()) throw std::runtime_error("Expected object");
82908402 if (j.find("nonatomic") != j.end() && !j.at("nonatomic").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -8774,6 +8886,7 @@ namespace quicktype {
87748886 x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>());
87758887 x.set_nil(j.at("nil").get<Nil>());
87768888 x.set_no(j.at("NO").get<No>());
8889+ x.set_no_such_method(j.at("noSuchMethod").get<NoSuchMethod>());
87778890 x.set_nonatomic(j.at("nonatomic").get<Nonatomic>());
87788891 x.set_none(j.at("None").get<None>());
87798892 x.set_nonlocal(j.at("nonlocal").get<Nonlocal>());
@@ -8844,6 +8957,7 @@ namespace quicktype {
88448957 j["newtonsoft"] = x.get_newtonsoft();
88458958 j["nil"] = x.get_nil();
88468959 j["NO"] = x.get_no();
8960+ j["noSuchMethod"] = x.get_no_such_method();
88478961 j["nonatomic"] = x.get_nonatomic();
88488962 j["None"] = x.get_none();
88498963 j["nonlocal"] = x.get_nonlocal();
@@ -9306,6 +9420,17 @@ namespace quicktype {
93069420 j["right"] = x.get_right();
93079421 }
93089422
9423+ inline void from_json(const json & j, RuntimeType& x) {
9424+ if (!j.is_object()) throw std::runtime_error("Expected object");
9425+ if (j.find("runtimeType") != j.end() && !j.at("runtimeType").is_number_integer()) throw std::runtime_error("Expected integer");
9426+ x.set_runtime_type(j.at("runtimeType").get<int64_t>());
9427+ }
9428+
9429+ inline void to_json(json & j, const RuntimeType & x) {
9430+ j = json::object();
9431+ j["runtimeType"] = x.get_runtime_type();
9432+ }
9433+
93099434 inline void from_json(const json & j, S& x) {
93109435 if (!j.is_object()) throw std::runtime_error("Expected object");
93119436 if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9504,6 +9629,17 @@ namespace quicktype {
95049629 j["to_json"] = x.get_to_json();
95059630 }
95069631
9632+ inline void from_json(const json & j, ToString& x) {
9633+ if (!j.is_object()) throw std::runtime_error("Expected object");
9634+ if (j.find("toString") != j.end() && !j.at("toString").is_number_integer()) throw std::runtime_error("Expected integer");
9635+ x.set_to_string(j.at("toString").get<int64_t>());
9636+ }
9637+
9638+ inline void to_json(json & j, const ToString & x) {
9639+ j = json::object();
9640+ j["toString"] = x.get_to_string();
9641+ }
9642+
95079643 inline void from_json(const json & j, TopLevelClass& x) {
95089644 if (!j.is_object()) throw std::runtime_error("Expected object");
95099645 if (j.find("top_level") != j.end() && !j.at("top_level").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9645,6 +9781,7 @@ namespace quicktype {
96459781 x.set_retain(j.at("retain").get<Retain>());
96469782 x.set_rethrows(j.at("rethrows").get<Rethrows>());
96479783 x.set_right(j.at("right").get<Right>());
9784+ x.set_runtime_type(j.at("runtimeType").get<RuntimeType>());
96489785 x.set_s(j.at("s").get<S>());
96499786 x.set_sbyte(j.at("sbyte").get<Sbyte>());
96509787 x.set_sealed(j.at("sealed").get<Sealed>());
@@ -9663,6 +9800,7 @@ namespace quicktype {
96639800 x.set_then(j.at("then").get<Then>());
96649801 x.set_throws(j.at("throws").get<Throws>());
96659802 x.set_to_json(j.at("to_json").get<ToJson>());
9803+ x.set_to_string(j.at("toString").get<ToString>());
96669804 x.set_top_level(j.at("top_level").get<TopLevelClass>());
96679805 x.set_transient(j.at("transient").get<Transient>());
96689806 x.set_type(j.at("Type").get<Type>());
@@ -9715,6 +9853,7 @@ namespace quicktype {
97159853 j["retain"] = x.get_retain();
97169854 j["rethrows"] = x.get_rethrows();
97179855 j["right"] = x.get_right();
9856+ j["runtimeType"] = x.get_runtime_type();
97189857 j["s"] = x.get_s();
97199858 j["sbyte"] = x.get_sbyte();
97209859 j["sealed"] = x.get_sealed();
@@ -9733,6 +9872,7 @@ namespace quicktype {
97339872 j["then"] = x.get_then();
97349873 j["throws"] = x.get_throws();
97359874 j["to_json"] = x.get_to_json();
9875+ j["toString"] = x.get_to_string();
97369876 j["top_level"] = x.get_top_level();
97379877 j["transient"] = x.get_transient();
97389878 j["Type"] = x.get_type();
Mcrystaldefault / TopLevel.cr+40 −0
@@ -662,6 +662,9 @@ class Obj2
662662 @[JSON::Field(key: "hasOwnProperty")]
663663 property has_own_property : HasOwnProperty
664664
665+ @[JSON::Field(key: "hashCode")]
666+ property hash_code : HashCode
667+
665668 property id : Id
666669
667670 @[JSON::Field(key: "IMP")]
@@ -974,6 +977,13 @@ class HasOwnProperty
974977 property has_own_property : Int64
975978 end
976979
980+class HashCode
981+ include JSON::Serializable
982+
983+ @[JSON::Field(key: "hashCode")]
984+ property hash_code : Int64
985+end
986+
977987 class Id
978988 include JSON::Serializable
979989
@@ -1180,6 +1190,9 @@ class Obj3
11801190 @[JSON::Field(key: "NO")]
11811191 property no : No
11821192
1193+ @[JSON::Field(key: "noSuchMethod")]
1194+ property no_such_method : NoSuchMethod
1195+
11831196 property noexcept : Noexcept
11841197
11851198 property nonatomic : Nonatomic
@@ -1430,6 +1443,13 @@ class No
14301443 property no : Int64
14311444 end
14321445
1446+class NoSuchMethod
1447+ include JSON::Serializable
1448+
1449+ @[JSON::Field(key: "noSuchMethod")]
1450+ property no_such_method : Int64
1451+end
1452+
14331453 class Noexcept
14341454 include JSON::Serializable
14351455
@@ -1755,6 +1775,9 @@ class Obj4
17551775
17561776 property right : Right
17571777
1778+ @[JSON::Field(key: "runtimeType")]
1779+ property runtime_type : RuntimeType
1780+
17581781 property s : S
17591782
17601783 property sbyte : Sbyte
@@ -1804,6 +1827,9 @@ class Obj4
18041827
18051828 property throws : Throws
18061829
1830+ @[JSON::Field(key: "toString")]
1831+ property to_string : ToString
1832+
18071833 property top_level : TopLevelClass
18081834
18091835 property transient : Transient
@@ -2022,6 +2048,13 @@ class Right
20222048 property right : Int64
20232049 end
20242050
2051+class RuntimeType
2052+ include JSON::Serializable
2053+
2054+ @[JSON::Field(key: "runtimeType")]
2055+ property runtime_type : Int64
2056+end
2057+
20252058 class S
20262059 include JSON::Serializable
20272060
@@ -2167,6 +2200,13 @@ class Throws
21672200 property throws : Int64
21682201 end
21692202
2203+class ToString
2204+ include JSON::Serializable
2205+
2206+ @[JSON::Field(key: "toString")]
2207+ property to_string : Int64
2208+end
2209+
21702210 class TopLevelClass
21712211 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+36 −0
@@ -778,6 +778,9 @@ namespace QuickType
778778 [JsonProperty("hasOwnProperty", Required = Required.Always)]
779779 public HasOwnProperty HasOwnProperty { get; set; }
780780
781+ [JsonProperty("hashCode", Required = Required.Always)]
782+ public HashCode HashCode { get; set; }
783+
781784 [JsonProperty("id", Required = Required.Always)]
782785 public Id Id { get; set; }
783786
@@ -1112,6 +1115,12 @@ namespace QuickType
11121115 public long HasOwnPropertyHasOwnProperty { get; set; }
11131116 }
11141117
1118+ public partial record HashCode
1119+ {
1120+ [JsonProperty("hashCode", Required = Required.Always)]
1121+ public long HashCodeHashCode { get; set; }
1122+ }
1123+
11151124 public partial record Id
11161125 {
11171126 [JsonProperty("id", Required = Required.Always)]
@@ -1315,6 +1324,9 @@ namespace QuickType
13151324 [JsonProperty("NO", Required = Required.Always)]
13161325 public No No { get; set; }
13171326
1327+ [JsonProperty("noSuchMethod", Required = Required.Always)]
1328+ public NoSuchMethod NoSuchMethod { get; set; }
1329+
13181330 [JsonProperty("noexcept", Required = Required.Always)]
13191331 public Noexcept Noexcept { get; set; }
13201332
@@ -1595,6 +1607,12 @@ namespace QuickType
15951607 public long NoNo { get; set; }
15961608 }
15971609
1610+ public partial record NoSuchMethod
1611+ {
1612+ [JsonProperty("noSuchMethod", Required = Required.Always)]
1613+ public long NoSuchMethodNoSuchMethod { get; set; }
1614+ }
1615+
15981616 public partial record Noexcept
15991617 {
16001618 [JsonProperty("noexcept", Required = Required.Always)]
@@ -1831,6 +1849,9 @@ namespace QuickType
18311849 [JsonProperty("to_json", Required = Required.Always)]
18321850 public ToJson Obj4ToJson { get; set; }
18331851
1852+ [JsonProperty("toString", Required = Required.Always)]
1853+ public ToStringClass Obj4ToString { get; set; }
1854+
18341855 [JsonProperty("true", Required = Required.Always)]
18351856 public TrueClass Obj4True { get; set; }
18361857
@@ -1885,6 +1906,9 @@ namespace QuickType
18851906 [JsonProperty("right", Required = Required.Always)]
18861907 public Right Right { get; set; }
18871908
1909+ [JsonProperty("runtimeType", Required = Required.Always)]
1910+ public RuntimeType RuntimeType { get; set; }
1911+
18881912 [JsonProperty("s", Required = Required.Always)]
18891913 public S S { get; set; }
18901914
@@ -2036,6 +2060,12 @@ namespace QuickType
20362060 public long ToJsonToJson { get; set; }
20372061 }
20382062
2063+ public partial record ToStringClass
2064+ {
2065+ [JsonProperty("toString", Required = Required.Always)]
2066+ public long ToStringToString { get; set; }
2067+ }
2068+
20392069 public partial record TrueClass
20402070 {
20412071 [JsonProperty("true", Required = Required.Always)]
@@ -2144,6 +2174,12 @@ namespace QuickType
21442174 public long RightRight { get; set; }
21452175 }
21462176
2177+ public partial record RuntimeType
2178+ {
2179+ [JsonProperty("runtimeType", Required = Required.Always)]
2180+ public long RuntimeTypeRuntimeType { get; set; }
2181+ }
2182+
21472183 public partial record S
21482184 {
21492185 [JsonProperty("s", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+44 −0
@@ -963,6 +963,10 @@ namespace QuickType
963963 [JsonPropertyName("hasOwnProperty")]
964964 public HasOwnProperty HasOwnProperty { get; set; }
965965
966+ [JsonRequired]
967+ [JsonPropertyName("hashCode")]
968+ public HashCode HashCode { get; set; }
969+
966970 [JsonRequired]
967971 [JsonPropertyName("id")]
968972 public Id Id { get; set; }
@@ -1365,6 +1369,13 @@ namespace QuickType
13651369 public long HasOwnPropertyHasOwnProperty { get; set; }
13661370 }
13671371
1372+ public partial class HashCode
1373+ {
1374+ [JsonRequired]
1375+ [JsonPropertyName("hashCode")]
1376+ public long HashCodeHashCode { get; set; }
1377+ }
1378+
13681379 public partial class Id
13691380 {
13701381 [JsonRequired]
@@ -1609,6 +1620,10 @@ namespace QuickType
16091620 [JsonPropertyName("NO")]
16101621 public No No { get; set; }
16111622
1623+ [JsonRequired]
1624+ [JsonPropertyName("noSuchMethod")]
1625+ public NoSuchMethod NoSuchMethod { get; set; }
1626+
16121627 [JsonRequired]
16131628 [JsonPropertyName("noexcept")]
16141629 public Noexcept Noexcept { get; set; }
@@ -1954,6 +1969,13 @@ namespace QuickType
19541969 public long NoNo { get; set; }
19551970 }
19561971
1972+ public partial class NoSuchMethod
1973+ {
1974+ [JsonRequired]
1975+ [JsonPropertyName("noSuchMethod")]
1976+ public long NoSuchMethodNoSuchMethod { get; set; }
1977+ }
1978+
19571979 public partial class Noexcept
19581980 {
19591981 [JsonRequired]
@@ -2231,6 +2253,10 @@ namespace QuickType
22312253 [JsonPropertyName("to_json")]
22322254 public ToJson Obj4ToJson { get; set; }
22332255
2256+ [JsonRequired]
2257+ [JsonPropertyName("toString")]
2258+ public ToString Obj4ToString { get; set; }
2259+
22342260 [JsonRequired]
22352261 [JsonPropertyName("true")]
22362262 public TrueClass Obj4True { get; set; }
@@ -2303,6 +2329,10 @@ namespace QuickType
23032329 [JsonPropertyName("right")]
23042330 public Right Right { get; set; }
23052331
2332+ [JsonRequired]
2333+ [JsonPropertyName("runtimeType")]
2334+ public RuntimeType RuntimeType { get; set; }
2335+
23062336 [JsonRequired]
23072337 [JsonPropertyName("s")]
23082338 public S S { get; set; }
@@ -2501,6 +2531,13 @@ namespace QuickType
25012531 public long ToJsonToJson { get; set; }
25022532 }
25032533
2534+ public partial class ToString
2535+ {
2536+ [JsonRequired]
2537+ [JsonPropertyName("toString")]
2538+ public long ToStringToString { get; set; }
2539+ }
2540+
25042541 public partial class TrueClass
25052542 {
25062543 [JsonRequired]
@@ -2627,6 +2664,13 @@ namespace QuickType
26272664 public long RightRight { get; set; }
26282665 }
26292666
2667+ public partial class RuntimeType
2668+ {
2669+ [JsonRequired]
2670+ [JsonPropertyName("runtimeType")]
2671+ public long RuntimeTypeRuntimeType { get; set; }
2672+ }
2673+
26302674 public partial class S
26312675 {
26322676 [JsonRequired]
Mcsharpdefault / QuickType.cs+36 −0
@@ -781,6 +781,9 @@ namespace QuickType
781781 [JsonProperty("hasOwnProperty", Required = Required.Always)]
782782 public HasOwnProperty HasOwnProperty { get; set; }
783783
784+ [JsonProperty("hashCode", Required = Required.Always)]
785+ public HashCode HashCode { get; set; }
786+
784787 [JsonProperty("id", Required = Required.Always)]
785788 public Id Id { get; set; }
786789
@@ -1118,6 +1121,12 @@ namespace QuickType
11181121 public long HasOwnPropertyHasOwnProperty { get; set; }
11191122 }
11201123
1124+ public partial class HashCode
1125+ {
1126+ [JsonProperty("hashCode", Required = Required.Always)]
1127+ public long HashCodeHashCode { get; set; }
1128+ }
1129+
11211130 public partial class Id
11221131 {
11231132 [JsonProperty("id", Required = Required.Always)]
@@ -1315,6 +1324,9 @@ namespace QuickType
13151324 [JsonProperty("NO", Required = Required.Always)]
13161325 public No No { get; set; }
13171326
1327+ [JsonProperty("noSuchMethod", Required = Required.Always)]
1328+ public NoSuchMethod NoSuchMethod { get; set; }
1329+
13181330 [JsonProperty("noexcept", Required = Required.Always)]
13191331 public Noexcept Noexcept { get; set; }
13201332
@@ -1595,6 +1607,12 @@ namespace QuickType
15951607 public long NoNo { get; set; }
15961608 }
15971609
1610+ public partial class NoSuchMethod
1611+ {
1612+ [JsonProperty("noSuchMethod", Required = Required.Always)]
1613+ public long NoSuchMethodNoSuchMethod { get; set; }
1614+ }
1615+
15981616 public partial class Noexcept
15991617 {
16001618 [JsonProperty("noexcept", Required = Required.Always)]
@@ -1831,6 +1849,9 @@ namespace QuickType
18311849 [JsonProperty("to_json", Required = Required.Always)]
18321850 public ToJson Obj4ToJson { get; set; }
18331851
1852+ [JsonProperty("toString", Required = Required.Always)]
1853+ public ToString Obj4ToString { get; set; }
1854+
18341855 [JsonProperty("true", Required = Required.Always)]
18351856 public TrueClass Obj4True { get; set; }
18361857
@@ -1885,6 +1906,9 @@ namespace QuickType
18851906 [JsonProperty("right", Required = Required.Always)]
18861907 public Right Right { get; set; }
18871908
1909+ [JsonProperty("runtimeType", Required = Required.Always)]
1910+ public RuntimeType RuntimeType { get; set; }
1911+
18881912 [JsonProperty("s", Required = Required.Always)]
18891913 public S S { get; set; }
18901914
@@ -2036,6 +2060,12 @@ namespace QuickType
20362060 public long ToJsonToJson { get; set; }
20372061 }
20382062
2063+ public partial class ToString
2064+ {
2065+ [JsonProperty("toString", Required = Required.Always)]
2066+ public long ToStringToString { get; set; }
2067+ }
2068+
20392069 public partial class TrueClass
20402070 {
20412071 [JsonProperty("true", Required = Required.Always)]
@@ -2144,6 +2174,12 @@ namespace QuickType
21442174 public long RightRight { get; set; }
21452175 }
21462176
2177+ public partial class RuntimeType
2178+ {
2179+ [JsonProperty("runtimeType", Required = Required.Always)]
2180+ public long RuntimeTypeRuntimeType { get; set; }
2181+ }
2182+
21472183 public partial class S
21482184 {
21492185 [JsonProperty("s", Required = Required.Always)]
Mdartdefault / TopLevel.dart+80 −0
@@ -1420,6 +1420,7 @@ class Obj2 {
14201420 final For obj2For;
14211421 final FromJson obj2FromJson;
14221422 final Get obj2Get;
1423+ final HashCode obj2HashCode;
14231424 final If obj2If;
14241425 final Implements obj2Implements;
14251426 final Import obj2Import;
@@ -1488,6 +1489,7 @@ class Obj2 {
14881489 required this.obj2For,
14891490 required this.obj2FromJson,
14901491 required this.obj2Get,
1492+ required this.obj2HashCode,
14911493 required this.obj2If,
14921494 required this.obj2Implements,
14931495 required this.obj2Import,
@@ -1557,6 +1559,7 @@ class Obj2 {
15571559 obj2For: For.fromJson(json["for"]),
15581560 obj2FromJson: FromJson.fromJson(json["from_json"]),
15591561 obj2Get: Get.fromJson(json["get"]),
1562+ obj2HashCode: HashCode.fromJson(json["hashCode"]),
15601563 obj2If: If.fromJson(json["if"]),
15611564 obj2Implements: Implements.fromJson(json["implements"]),
15621565 obj2Import: Import.fromJson(json["import"]),
@@ -1626,6 +1629,7 @@ class Obj2 {
16261629 "for": obj2For.toJson(),
16271630 "from_json": obj2FromJson.toJson(),
16281631 "get": obj2Get.toJson(),
1632+ "hashCode": obj2HashCode.toJson(),
16291633 "if": obj2If.toJson(),
16301634 "implements": obj2Implements.toJson(),
16311635 "import": obj2Import.toJson(),
@@ -2564,6 +2568,22 @@ class Get {
25642568 };
25652569 }
25662570
2571+class HashCode {
2572+ final int hashCodeHashCode;
2573+
2574+ HashCode({
2575+ required this.hashCodeHashCode,
2576+ });
2577+
2578+ factory HashCode.fromJson(Map<String, dynamic> json) => HashCode(
2579+ hashCodeHashCode: json["hashCode"],
2580+ );
2581+
2582+ Map<String, dynamic> toJson() => {
2583+ "hashCode": hashCodeHashCode,
2584+ };
2585+}
2586+
25672587 class If {
25682588 final int ifIf;
25692589
@@ -2716,6 +2736,7 @@ class Obj3 {
27162736 final Number number;
27172737 final Is obj3Is;
27182738 final New obj3New;
2739+ final NoSuchMethod obj3NoSuchMethod;
27192740 final NoneClass obj3None;
27202741 final Null obj3Null;
27212742 final Operator obj3Operator;
@@ -2784,6 +2805,7 @@ class Obj3 {
27842805 required this.number,
27852806 required this.obj3Is,
27862807 required this.obj3New,
2808+ required this.obj3NoSuchMethod,
27872809 required this.obj3None,
27882810 required this.obj3Null,
27892811 required this.obj3Operator,
@@ -2853,6 +2875,7 @@ class Obj3 {
28532875 number: Number.fromJson(json["number"]),
28542876 obj3Is: Is.fromJson(json["is"]),
28552877 obj3New: New.fromJson(json["new"]),
2878+ obj3NoSuchMethod: NoSuchMethod.fromJson(json["noSuchMethod"]),
28562879 obj3None: NoneClass.fromJson(json["none"]),
28572880 obj3Null: Null.fromJson(json["NULL"]),
28582881 obj3Operator: Operator.fromJson(json["operator"]),
@@ -2922,6 +2945,7 @@ class Obj3 {
29222945 "number": number.toJson(),
29232946 "is": obj3Is.toJson(),
29242947 "new": obj3New.toJson(),
2948+ "noSuchMethod": obj3NoSuchMethod.toJson(),
29252949 "none": obj3None.toJson(),
29262950 "NULL": obj3Null.toJson(),
29272951 "operator": obj3Operator.toJson(),
@@ -3560,6 +3584,22 @@ class New {
35603584 };
35613585 }
35623586
3587+class NoSuchMethod {
3588+ final int noSuchMethodNoSuchMethod;
3589+
3590+ NoSuchMethod({
3591+ required this.noSuchMethodNoSuchMethod,
3592+ });
3593+
3594+ factory NoSuchMethod.fromJson(Map<String, dynamic> json) => NoSuchMethod(
3595+ noSuchMethodNoSuchMethod: json["noSuchMethod"],
3596+ );
3597+
3598+ Map<String, dynamic> toJson() => {
3599+ "noSuchMethod": noSuchMethodNoSuchMethod,
3600+ };
3601+}
3602+
35633603 class NoneClass {
35643604 final int none;
35653605
@@ -3995,6 +4035,7 @@ class NullClass {
39954035 class Obj4 {
39964036 final int dummy;
39974037 final Return obj4Return;
4038+ final RuntimeType obj4RuntimeType;
39984039 final SelfClass obj4Self;
39994040 final Set obj4Set;
40004041 final Static obj4Static;
@@ -4003,6 +4044,7 @@ class Obj4 {
40034044 final This obj4This;
40044045 final Throw obj4Throw;
40054046 final ToJson obj4ToJson;
4047+ final ToString obj4ToString;
40064048 final True obj4True;
40074049 final Try obj4Try;
40084050 final TypeClass obj4Type;
@@ -4063,6 +4105,7 @@ class Obj4 {
40634105 Obj4({
40644106 required this.dummy,
40654107 required this.obj4Return,
4108+ required this.obj4RuntimeType,
40664109 required this.obj4Self,
40674110 required this.obj4Set,
40684111 required this.obj4Static,
@@ -4071,6 +4114,7 @@ class Obj4 {
40714114 required this.obj4This,
40724115 required this.obj4Throw,
40734116 required this.obj4ToJson,
4117+ required this.obj4ToString,
40744118 required this.obj4True,
40754119 required this.obj4Try,
40764120 required this.obj4Type,
@@ -4132,6 +4176,7 @@ class Obj4 {
41324176 factory Obj4.fromJson(Map<String, dynamic> json) => Obj4(
41334177 dummy: json["dummy"],
41344178 obj4Return: Return.fromJson(json["return"]),
4179+ obj4RuntimeType: RuntimeType.fromJson(json["runtimeType"]),
41354180 obj4Self: SelfClass.fromJson(json["self"]),
41364181 obj4Set: Set.fromJson(json["set"]),
41374182 obj4Static: Static.fromJson(json["static"]),
@@ -4140,6 +4185,7 @@ class Obj4 {
41404185 obj4This: This.fromJson(json["this"]),
41414186 obj4Throw: Throw.fromJson(json["throw"]),
41424187 obj4ToJson: ToJson.fromJson(json["to_json"]),
4188+ obj4ToString: ToString.fromJson(json["toString"]),
41434189 obj4True: True.fromJson(json["True"]),
41444190 obj4Try: Try.fromJson(json["try"]),
41454191 obj4Type: TypeClass.fromJson(json["type"]),
@@ -4201,6 +4247,7 @@ class Obj4 {
42014247 Map<String, dynamic> toJson() => {
42024248 "dummy": dummy,
42034249 "return": obj4Return.toJson(),
4250+ "runtimeType": obj4RuntimeType.toJson(),
42044251 "self": obj4Self.toJson(),
42054252 "set": obj4Set.toJson(),
42064253 "static": obj4Static.toJson(),
@@ -4209,6 +4256,7 @@ class Obj4 {
42094256 "this": obj4This.toJson(),
42104257 "throw": obj4Throw.toJson(),
42114258 "to_json": obj4ToJson.toJson(),
4259+ "toString": obj4ToString.toJson(),
42124260 "True": obj4True.toJson(),
42134261 "try": obj4Try.toJson(),
42144262 "type": obj4Type.toJson(),
@@ -4284,6 +4332,22 @@ class Return {
42844332 };
42854333 }
42864334
4335+class RuntimeType {
4336+ final int runtimeTypeRuntimeType;
4337+
4338+ RuntimeType({
4339+ required this.runtimeTypeRuntimeType,
4340+ });
4341+
4342+ factory RuntimeType.fromJson(Map<String, dynamic> json) => RuntimeType(
4343+ runtimeTypeRuntimeType: json["runtimeType"],
4344+ );
4345+
4346+ Map<String, dynamic> toJson() => {
4347+ "runtimeType": runtimeTypeRuntimeType,
4348+ };
4349+}
4350+
42874351 class SelfClass {
42884352 final int self;
42894353
@@ -4412,6 +4476,22 @@ class ToJson {
44124476 };
44134477 }
44144478
4479+class ToString {
4480+ final int toStringToString;
4481+
4482+ ToString({
4483+ required this.toStringToString,
4484+ });
4485+
4486+ factory ToString.fromJson(Map<String, dynamic> json) => ToString(
4487+ toStringToString: json["toString"],
4488+ );
4489+
4490+ Map<String, dynamic> toJson() => {
4491+ "toString": toStringToString,
4492+ };
4493+}
4494+
44154495 class True {
44164496 final int trueTrue;
Melixirdefault / QuickType.ex+174 −6
@@ -4529,6 +4529,45 @@ defmodule HasOwnProperty do
45294529 end
45304530 end
45314531
4532+defmodule HashCode do
4533+ @enforce_keys [:hash_code]
4534+ defstruct [:hash_code]
4535+
4536+ @type t :: %__MODULE__{
4537+ hash_code: integer()
4538+ }
4539+
4540+ def decode_hash_code(value) when is_integer(value), do: value
4541+ def decode_hash_code(_), do: {:error, "Unexpected type when decoding HashCode.hash_code"}
4542+
4543+ def encode_hash_code(value) when is_integer(value), do: value
4544+ def encode_hash_code(_), do: {:error, "Unexpected type when encoding HashCode.hash_code"}
4545+
4546+ def from_map(m) do
4547+ %HashCode{
4548+ hash_code: decode_hash_code(m["hashCode"]),
4549+ }
4550+ end
4551+
4552+ def from_json(json) do
4553+ json
4554+ |> Jason.decode!()
4555+ |> from_map()
4556+ end
4557+
4558+ def to_map(struct) do
4559+ %{
4560+ "hashCode" => struct.hash_code,
4561+ }
4562+ end
4563+
4564+ def to_json(struct) do
4565+ struct
4566+ |> to_map()
4567+ |> Jason.encode!()
4568+ end
4569+end
4570+
45324571 defmodule ID do
45334572 @enforce_keys [:id]
45344573 defstruct [:id]
@@ -5310,8 +5349,8 @@ defmodule InClass do
53105349 end
53115350
53125351 defmodule Obj2 do
5313- @enforce_keys [:default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :enum, :equality_contract, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :has_own_property, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :obj2_def, :obj2_do, :obj2_else, :obj2_false, :obj2_import, :obj2_in]
5314- defstruct [:default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :enum, :equality_contract, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :has_own_property, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :obj2_def, :obj2_do, :obj2_else, :obj2_false, :obj2_import, :obj2_in]
5352+ @enforce_keys [:default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :enum, :equality_contract, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :obj2_def, :obj2_do, :obj2_else, :obj2_false, :obj2_import, :obj2_in]
5353+ defstruct [:default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :enum, :equality_contract, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :obj2_def, :obj2_do, :obj2_else, :obj2_false, :obj2_import, :obj2_in]
53155354
53165355 @type t :: %__MODULE__{
53175356 default: Default.t(),
@@ -5360,6 +5399,7 @@ defmodule Obj2 do
53605399 goto: Goto.t(),
53615400 guard: Guard.t(),
53625401 has_own_property: HasOwnProperty.t(),
5402+ hash_code: HashCode.t(),
53635403 id: ID.t(),
53645404 if: If.t(),
53655405 imp: Imp.t(),
@@ -5436,6 +5476,7 @@ defmodule Obj2 do
54365476 goto: Goto.from_map(m["goto"]),
54375477 guard: Guard.from_map(m["guard"]),
54385478 has_own_property: HasOwnProperty.from_map(m["hasOwnProperty"]),
5479+ hash_code: HashCode.from_map(m["hashCode"]),
54395480 id: ID.from_map(m["id"]),
54405481 if: If.from_map(m["if"]),
54415482 imp: Imp.from_map(m["IMP"]),
@@ -5513,6 +5554,7 @@ defmodule Obj2 do
55135554 "goto" => Goto.to_map(struct.goto),
55145555 "guard" => Guard.to_map(struct.guard),
55155556 "hasOwnProperty" => HasOwnProperty.to_map(struct.has_own_property),
5557+ "hashCode" => HashCode.to_map(struct.hash_code),
55165558 "id" => ID.to_map(struct.id),
55175559 "if" => If.to_map(struct.if),
55185560 "IMP" => Imp.to_map(struct.imp),
@@ -6596,6 +6638,45 @@ defmodule No do
65966638 end
65976639 end
65986640
6641+defmodule NoSuchMethod do
6642+ @enforce_keys [:no_such_method]
6643+ defstruct [:no_such_method]
6644+
6645+ @type t :: %__MODULE__{
6646+ no_such_method: integer()
6647+ }
6648+
6649+ def decode_no_such_method(value) when is_integer(value), do: value
6650+ def decode_no_such_method(_), do: {:error, "Unexpected type when decoding NoSuchMethod.no_such_method"}
6651+
6652+ def encode_no_such_method(value) when is_integer(value), do: value
6653+ def encode_no_such_method(_), do: {:error, "Unexpected type when encoding NoSuchMethod.no_such_method"}
6654+
6655+ def from_map(m) do
6656+ %NoSuchMethod{
6657+ no_such_method: decode_no_such_method(m["noSuchMethod"]),
6658+ }
6659+ end
6660+
6661+ def from_json(json) do
6662+ json
6663+ |> Jason.decode!()
6664+ |> from_map()
6665+ end
6666+
6667+ def to_map(struct) do
6668+ %{
6669+ "noSuchMethod" => struct.no_such_method,
6670+ }
6671+ end
6672+
6673+ def to_json(struct) do
6674+ struct
6675+ |> to_map()
6676+ |> Jason.encode!()
6677+ end
6678+end
6679+
65996680 defmodule Noexcept do
66006681 @enforce_keys [:noexcept]
66016682 defstruct [:noexcept]
@@ -8079,8 +8160,8 @@ defmodule ProtocolClass do
80798160 end
80808161
80818162 defmodule Obj3 do
8082- @enforce_keys [:dummy, :is, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :lambda, :lazy, :left, :let, :list, :lock, :long, :map, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_string, :null, :nullptr, :number, :obj3_nil, :obj3_none, :obj3_not, :obj3_null, :obj3_or, :obj3_protocol, :object, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol]
8083- defstruct [:dummy, :is, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :lambda, :lazy, :left, :let, :list, :lock, :long, :map, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_string, :null, :nullptr, :number, :obj3_nil, :obj3_none, :obj3_not, :obj3_null, :obj3_or, :obj3_protocol, :object, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol]
8163+ @enforce_keys [:dummy, :is, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :lambda, :lazy, :left, :let, :list, :lock, :long, :map, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_string, :null, :nullptr, :number, :obj3_nil, :obj3_none, :obj3_not, :obj3_null, :obj3_or, :obj3_protocol, :object, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol]
8164+ defstruct [:dummy, :is, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :lambda, :lazy, :left, :let, :list, :lock, :long, :map, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_string, :null, :nullptr, :number, :obj3_nil, :obj3_none, :obj3_not, :obj3_null, :obj3_or, :obj3_protocol, :object, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol]
80848165
80858166 @type t :: %__MODULE__{
80868167 dummy: integer(),
@@ -8111,6 +8192,7 @@ defmodule Obj3 do
81118192 new: New.t(),
81128193 newtonsoft: Newtonsoft.t(),
81138194 no: No.t(),
8195+ no_such_method: NoSuchMethod.t(),
81148196 noexcept: Noexcept.t(),
81158197 nonatomic: Nonatomic.t(),
81168198 none: None.t(),
@@ -8187,6 +8269,7 @@ defmodule Obj3 do
81878269 new: New.from_map(m["new"]),
81888270 newtonsoft: Newtonsoft.from_map(m["newtonsoft"]),
81898271 no: No.from_map(m["NO"]),
8272+ no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]),
81908273 noexcept: Noexcept.from_map(m["noexcept"]),
81918274 nonatomic: Nonatomic.from_map(m["nonatomic"]),
81928275 none: None.from_map(m["None"]),
@@ -8264,6 +8347,7 @@ defmodule Obj3 do
82648347 "new" => New.to_map(struct.new),
82658348 "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft),
82668349 "NO" => No.to_map(struct.no),
8350+ "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method),
82678351 "noexcept" => Noexcept.to_map(struct.noexcept),
82688352 "nonatomic" => Nonatomic.to_map(struct.nonatomic),
82698353 "None" => None.to_map(struct.none),
@@ -9092,6 +9176,45 @@ defmodule Right do
90929176 end
90939177 end
90949178
9179+defmodule RuntimeType do
9180+ @enforce_keys [:runtime_type]
9181+ defstruct [:runtime_type]
9182+
9183+ @type t :: %__MODULE__{
9184+ runtime_type: integer()
9185+ }
9186+
9187+ def decode_runtime_type(value) when is_integer(value), do: value
9188+ def decode_runtime_type(_), do: {:error, "Unexpected type when decoding RuntimeType.runtime_type"}
9189+
9190+ def encode_runtime_type(value) when is_integer(value), do: value
9191+ def encode_runtime_type(_), do: {:error, "Unexpected type when encoding RuntimeType.runtime_type"}
9192+
9193+ def from_map(m) do
9194+ %RuntimeType{
9195+ runtime_type: decode_runtime_type(m["runtimeType"]),
9196+ }
9197+ end
9198+
9199+ def from_json(json) do
9200+ json
9201+ |> Jason.decode!()
9202+ |> from_map()
9203+ end
9204+
9205+ def to_map(struct) do
9206+ %{
9207+ "runtimeType" => struct.runtime_type,
9208+ }
9209+ end
9210+
9211+ def to_json(struct) do
9212+ struct
9213+ |> to_map()
9214+ |> Jason.encode!()
9215+ end
9216+end
9217+
90959218 defmodule S do
90969219 @enforce_keys [:s]
90979220 defstruct [:s]
@@ -10301,6 +10424,45 @@ defmodule ToJSON do
1030110424 end
1030210425 end
1030310426
10427+defmodule ToString do
10428+ @enforce_keys [:to_string]
10429+ defstruct [:to_string]
10430+
10431+ @type t :: %__MODULE__{
10432+ to_string: integer()
10433+ }
10434+
10435+ def decode_to_string(value) when is_integer(value), do: value
10436+ def decode_to_string(_), do: {:error, "Unexpected type when decoding ToString.to_string"}
10437+
10438+ def encode_to_string(value) when is_integer(value), do: value
10439+ def encode_to_string(_), do: {:error, "Unexpected type when encoding ToString.to_string"}
10440+
10441+ def from_map(m) do
10442+ %ToString{
10443+ to_string: decode_to_string(m["toString"]),
10444+ }
10445+ end
10446+
10447+ def from_json(json) do
10448+ json
10449+ |> Jason.decode!()
10450+ |> from_map()
10451+ end
10452+
10453+ def to_map(struct) do
10454+ %{
10455+ "toString" => struct.to_string,
10456+ }
10457+ end
10458+
10459+ def to_json(struct) do
10460+ struct
10461+ |> to_map()
10462+ |> Jason.encode!()
10463+ end
10464+end
10465+
1030410466 defmodule TopLevelClass do
1030510467 @enforce_keys [:top_level]
1030610468 defstruct [:top_level]
@@ -10848,8 +11010,8 @@ defmodule Undefined do
1084811010 end
1084911011
1085011012 defmodule Obj4 do
10851- @enforce_keys [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :s, :sbyte, :sealed, :sel, :select, :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_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined]
10852- defstruct [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :s, :sbyte, :sealed, :sel, :select, :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_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined]
11013+ @enforce_keys [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :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_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined]
11014+ defstruct [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :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_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined]
1085311015
1085411016 @type t :: %__MODULE__{
1085511017 dummy: integer(),
@@ -10873,6 +11035,7 @@ defmodule Obj4 do
1087311035 rethrows: Rethrows.t(),
1087411036 return: Return.t(),
1087511037 right: Right.t(),
11038+ runtime_type: RuntimeType.t(),
1087611039 s: S.t(),
1087711040 sbyte: Sbyte.t(),
1087811041 sealed: Sealed.t(),
@@ -10904,6 +11067,7 @@ defmodule Obj4 do
1090411067 throw: Throw.t(),
1090511068 throws: Throws.t(),
1090611069 to_json: ToJSON.t(),
11070+ to_string: ToString.t(),
1090711071 top_level: TopLevelClass.t(),
1090811072 transient: Transient.t(),
1090911073 true_1: Obj4True.t(),
@@ -10949,6 +11113,7 @@ defmodule Obj4 do
1094911113 rethrows: Rethrows.from_map(m["rethrows"]),
1095011114 return: Return.from_map(m["return"]),
1095111115 right: Right.from_map(m["right"]),
11116+ runtime_type: RuntimeType.from_map(m["runtimeType"]),
1095211117 s: S.from_map(m["s"]),
1095311118 sbyte: Sbyte.from_map(m["sbyte"]),
1095411119 sealed: Sealed.from_map(m["sealed"]),
@@ -10980,6 +11145,7 @@ defmodule Obj4 do
1098011145 throw: Throw.from_map(m["throw"]),
1098111146 throws: Throws.from_map(m["throws"]),
1098211147 to_json: ToJSON.from_map(m["to_json"]),
11148+ to_string: ToString.from_map(m["toString"]),
1098311149 top_level: TopLevelClass.from_map(m["top_level"]),
1098411150 transient: Transient.from_map(m["transient"]),
1098511151 true_1: Obj4True.from_map(m["true"]),
@@ -11026,6 +11192,7 @@ defmodule Obj4 do
1102611192 "rethrows" => Rethrows.to_map(struct.rethrows),
1102711193 "return" => Return.to_map(struct.return),
1102811194 "right" => Right.to_map(struct.right),
11195+ "runtimeType" => RuntimeType.to_map(struct.runtime_type),
1102911196 "s" => S.to_map(struct.s),
1103011197 "sbyte" => Sbyte.to_map(struct.sbyte),
1103111198 "sealed" => Sealed.to_map(struct.sealed),
@@ -11057,6 +11224,7 @@ defmodule Obj4 do
1105711224 "throw" => Throw.to_map(struct.throw),
1105811225 "throws" => Throws.to_map(struct.throws),
1105911226 "to_json" => ToJSON.to_map(struct.to_json),
11227+ "toString" => ToString.to_map(struct.to_string),
1106011228 "top_level" => TopLevelClass.to_map(struct.top_level),
1106111229 "transient" => Transient.to_map(struct.transient),
1106211230 "true" => Obj4True.to_map(struct.true_1),
Melmdefault / QuickType.elm+76 −0
@@ -127,6 +127,7 @@ module QuickType exposing
127127 , Goto
128128 , Guard
129129 , HasOwnProperty
130+ , HashCode
130131 , ID
131132 , Imp
132133 , Implements
@@ -174,6 +175,7 @@ module QuickType exposing
174175 , Newtonsoft
175176 , Nil
176177 , No
178+ , NoSuchMethod
177179 , Noexcept
178180 , Nonatomic
179181 , None
@@ -237,6 +239,7 @@ module QuickType exposing
237239 , Rethrows
238240 , Return
239241 , Right
242+ , RuntimeType
240243 , S
241244 , Sbyte
242245 , Sealed
@@ -266,6 +269,7 @@ module QuickType exposing
266269 , Throw
267270 , Throws
268271 , ToJSON
272+ , ToString
269273 , TopLevel
270274 , Transient
271275 , TrueClass
@@ -692,6 +696,7 @@ type alias Obj2 =
692696 , goto : Goto
693697 , guard : Guard
694698 , hasOwnProperty : HasOwnProperty
699+ , hashCode : HashCode
695700 , id : ID
696701 , imp : Imp
697702 , implements : Implements
@@ -894,6 +899,10 @@ type alias HasOwnProperty =
894899 { hasOwnProperty : Int
895900 }
896901
902+type alias HashCode =
903+ { hashCode : Int
904+ }
905+
897906 type alias ID =
898907 { id : Int
899908 }
@@ -1002,6 +1011,7 @@ type alias Obj3 =
10021011 , newtonsoft : Newtonsoft
10031012 , nil : Nil
10041013 , no : No
1014+ , noSuchMethod : NoSuchMethod
10051015 , noexcept : Noexcept
10061016 , nonatomic : Nonatomic
10071017 , none : None
@@ -1147,6 +1157,10 @@ type alias No =
11471157 { no : Int
11481158 }
11491159
1160+type alias NoSuchMethod =
1161+ { noSuchMethod : Int
1162+ }
1163+
11501164 type alias Noexcept =
11511165 { noexcept : Int
11521166 }
@@ -1328,6 +1342,7 @@ type alias Obj4 =
13281342 , rethrows : Rethrows
13291343 , return : Return
13301344 , right : Right
1345+ , runtimeType : RuntimeType
13311346 , s : S
13321347 , sbyte : Sbyte
13331348 , sealed : Sealed
@@ -1357,6 +1372,7 @@ type alias Obj4 =
13571372 , throw : Throw
13581373 , throws : Throws
13591374 , toJSON : ToJSON
1375+ , toString : ToString
13601376 , topLevel : TopLevel
13611377 , transient : Transient
13621378 , true : TrueClass
@@ -1464,6 +1480,10 @@ type alias Right =
14641480 { right : Int
14651481 }
14661482
1483+type alias RuntimeType =
1484+ { runtimeType : Int
1485+ }
1486+
14671487 type alias S =
14681488 { s : Int
14691489 }
@@ -1580,6 +1600,10 @@ type alias ToJSON =
15801600 { toJSON : Int
15811601 }
15821602
1603+type alias ToString =
1604+ { toString : Int
1605+ }
1606+
15831607 type alias TopLevel =
15841608 { topLevel : Int
15851609 }
@@ -2673,6 +2697,7 @@ obj2 =
26732697 |> Jpipe.required "goto" goto
26742698 |> Jpipe.required "guard" guard
26752699 |> Jpipe.required "hasOwnProperty" hasOwnProperty
2700+ |> Jpipe.required "hashCode" hashCode
26762701 |> Jpipe.required "id" id
26772702 |> Jpipe.required "IMP" imp
26782703 |> Jpipe.required "implements" implements
@@ -2743,6 +2768,7 @@ encodeObj2 x =
27432768 , ("goto", encodeGoto x.goto)
27442769 , ("guard", encodeGuard x.guard)
27452770 , ("hasOwnProperty", encodeHasOwnProperty x.hasOwnProperty)
2771+ , ("hashCode", encodeHashCode x.hashCode)
27462772 , ("id", encodeID x.id)
27472773 , ("IMP", encodeImp x.imp)
27482774 , ("implements", encodeImplements x.implements)
@@ -3260,6 +3286,17 @@ encodeHasOwnProperty x =
32603286 [ ("hasOwnProperty", Jenc.int x.hasOwnProperty)
32613287 ]
32623288
3289+hashCode : Jdec.Decoder HashCode
3290+hashCode =
3291+ Jdec.succeed HashCode
3292+ |> Jpipe.required "hashCode" Jdec.int
3293+
3294+encodeHashCode : HashCode -> Jenc.Value
3295+encodeHashCode x =
3296+ Jenc.object
3297+ [ ("hashCode", Jenc.int x.hashCode)
3298+ ]
3299+
32633300 id : Jdec.Decoder ID
32643301 id =
32653302 Jdec.succeed ID
@@ -3510,6 +3547,7 @@ obj3 =
35103547 |> Jpipe.required "newtonsoft" newtonsoft
35113548 |> Jpipe.required "nil" nil
35123549 |> Jpipe.required "NO" no
3550+ |> Jpipe.required "noSuchMethod" noSuchMethod
35133551 |> Jpipe.required "noexcept" noexcept
35143552 |> Jpipe.required "nonatomic" nonatomic
35153553 |> Jpipe.required "None" none
@@ -3580,6 +3618,7 @@ encodeObj3 x =
35803618 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
35813619 , ("nil", encodeNil x.nil)
35823620 , ("NO", encodeNo x.no)
3621+ , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
35833622 , ("noexcept", encodeNoexcept x.noexcept)
35843623 , ("nonatomic", encodeNonatomic x.nonatomic)
35853624 , ("None", encodeNone x.none)
@@ -3907,6 +3946,17 @@ encodeNo x =
39073946 [ ("NO", Jenc.int x.no)
39083947 ]
39093948
3949+noSuchMethod : Jdec.Decoder NoSuchMethod
3950+noSuchMethod =
3951+ Jdec.succeed NoSuchMethod
3952+ |> Jpipe.required "noSuchMethod" Jdec.int
3953+
3954+encodeNoSuchMethod : NoSuchMethod -> Jenc.Value
3955+encodeNoSuchMethod x =
3956+ Jenc.object
3957+ [ ("noSuchMethod", Jenc.int x.noSuchMethod)
3958+ ]
3959+
39103960 noexcept : Jdec.Decoder Noexcept
39113961 noexcept =
39123962 Jdec.succeed Noexcept
@@ -4363,6 +4413,7 @@ obj4 =
43634413 |> Jpipe.required "rethrows" rethrows
43644414 |> Jpipe.required "return" return
43654415 |> Jpipe.required "right" right
4416+ |> Jpipe.required "runtimeType" runtimeType
43664417 |> Jpipe.required "s" s
43674418 |> Jpipe.required "sbyte" sbyte
43684419 |> Jpipe.required "sealed" sealed
@@ -4392,6 +4443,7 @@ obj4 =
43924443 |> Jpipe.required "throw" throw
43934444 |> Jpipe.required "throws" throws
43944445 |> Jpipe.required "to_json" toJSON
4446+ |> Jpipe.required "toString" toString
43954447 |> Jpipe.required "top_level" topLevel
43964448 |> Jpipe.required "transient" transient
43974449 |> Jpipe.required "True" trueClass
@@ -4433,6 +4485,7 @@ encodeObj4 x =
44334485 , ("rethrows", encodeRethrows x.rethrows)
44344486 , ("return", encodeReturn x.return)
44354487 , ("right", encodeRight x.right)
4488+ , ("runtimeType", encodeRuntimeType x.runtimeType)
44364489 , ("s", encodeS x.s)
44374490 , ("sbyte", encodeSbyte x.sbyte)
44384491 , ("sealed", encodeSealed x.sealed)
@@ -4462,6 +4515,7 @@ encodeObj4 x =
44624515 , ("throw", encodeThrow x.throw)
44634516 , ("throws", encodeThrows x.throws)
44644517 , ("to_json", encodeToJSON x.toJSON)
4518+ , ("toString", encodeToString x.toString)
44654519 , ("top_level", encodeTopLevel x.topLevel)
44664520 , ("transient", encodeTransient x.transient)
44674521 , ("True", encodeTrueClass x.true)
@@ -4730,6 +4784,17 @@ encodeRight x =
47304784 [ ("right", Jenc.int x.right)
47314785 ]
47324786
4787+runtimeType : Jdec.Decoder RuntimeType
4788+runtimeType =
4789+ Jdec.succeed RuntimeType
4790+ |> Jpipe.required "runtimeType" Jdec.int
4791+
4792+encodeRuntimeType : RuntimeType -> Jenc.Value
4793+encodeRuntimeType x =
4794+ Jenc.object
4795+ [ ("runtimeType", Jenc.int x.runtimeType)
4796+ ]
4797+
47334798 s : Jdec.Decoder S
47344799 s =
47354800 Jdec.succeed S
@@ -5049,6 +5114,17 @@ encodeToJSON x =
50495114 [ ("to_json", Jenc.int x.toJSON)
50505115 ]
50515116
5117+toString : Jdec.Decoder ToString
5118+toString =
5119+ Jdec.succeed ToString
5120+ |> Jpipe.required "toString" Jdec.int
5121+
5122+encodeToString : ToString -> Jenc.Value
5123+encodeToString x =
5124+ Jenc.object
5125+ [ ("toString", Jenc.int x.toString)
5126+ ]
5127+
50525128 topLevel : Jdec.Decoder TopLevel
50535129 topLevel =
50545130 Jdec.succeed TopLevel
Mflowdefault / TopLevel.js+36 −0
@@ -399,6 +399,7 @@ export type Obj2 = {
399399 goto: Goto;
400400 guard: Guard;
401401 hasOwnProperty: HasOwnProperty;
402+ hashCode: HashCode;
402403 id: ID;
403404 if: If;
404405 implements: Implements;
@@ -616,6 +617,10 @@ export type HasOwnProperty = {
616617 hasOwnProperty: number;
617618 };
618619
620+export type HashCode = {
621+ hashCode: number;
622+};
623+
619624 export type ID = {
620625 id: number;
621626 };
@@ -710,6 +715,7 @@ export type Obj3 = {
710715 new: New;
711716 newtonsoft: Newtonsoft;
712717 nil: Nil;
718+ noSuchMethod: NoSuchMethod;
713719 noexcept: Noexcept;
714720 nonatomic: Nonatomic;
715721 none: NoneClass;
@@ -873,6 +879,10 @@ export type Nil = {
873879 nil: number;
874880 };
875881
882+export type NoSuchMethod = {
883+ noSuchMethod: number;
884+};
885+
876886 export type Noexcept = {
877887 noexcept: number;
878888 };
@@ -1028,6 +1038,7 @@ export type Obj4 = {
10281038 rethrows: Rethrows;
10291039 return: Return;
10301040 right: Right;
1041+ runtimeType: RuntimeType;
10311042 s: S;
10321043 sbyte: Sbyte;
10331044 sealed: Sealed;
@@ -1057,6 +1068,7 @@ export type Obj4 = {
10571068 thread_local: ThreadLocal;
10581069 throw: Throw;
10591070 throws: Throws;
1071+ toString: ToString;
10601072 to_json: ToJSON;
10611073 top_level: TopLevelClass;
10621074 transient: Transient;
@@ -1158,6 +1170,10 @@ export type Right = {
11581170 right: number;
11591171 };
11601172
1173+export type RuntimeType = {
1174+ runtimeType: number;
1175+};
1176+
11611177 export type S = {
11621178 s: number;
11631179 };
@@ -1274,6 +1290,10 @@ export type Throws = {
12741290 throws: number;
12751291 };
12761292
1293+export type ToString = {
1294+ toString: number;
1295+};
1296+
12771297 export type ToJSON = {
12781298 to_json: number;
12791299 };
@@ -1946,6 +1966,7 @@ const typeMap: any = {
19461966 { json: "goto", js: "goto", typ: r("Goto") },
19471967 { json: "guard", js: "guard", typ: r("Guard") },
19481968 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
1969+ { json: "hashCode", js: "hashCode", typ: r("HashCode") },
19491970 { json: "id", js: "id", typ: r("ID") },
19501971 { json: "if", js: "if", typ: r("If") },
19511972 { json: "implements", js: "implements", typ: r("Implements") },
@@ -2112,6 +2133,9 @@ const typeMap: any = {
21122133 "HasOwnProperty": o([
21132134 { json: "hasOwnProperty", js: "hasOwnProperty", typ: i(0) },
21142135 ], false),
2136+ "HashCode": o([
2137+ { json: "hashCode", js: "hashCode", typ: i(0) },
2138+ ], false),
21152139 "ID": o([
21162140 { json: "id", js: "id", typ: i(0) },
21172141 ], false),
@@ -2191,6 +2215,7 @@ const typeMap: any = {
21912215 { json: "new", js: "new", typ: r("New") },
21922216 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
21932217 { json: "nil", js: "nil", typ: r("Nil") },
2218+ { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
21942219 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
21952220 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
21962221 { json: "none", js: "none", typ: r("NoneClass") },
@@ -2321,6 +2346,9 @@ const typeMap: any = {
23212346 "Nil": o([
23222347 { json: "nil", js: "nil", typ: i(0) },
23232348 ], false),
2349+ "NoSuchMethod": o([
2350+ { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
2351+ ], false),
23242352 "Noexcept": o([
23252353 { json: "noexcept", js: "noexcept", typ: i(0) },
23262354 ], false),
@@ -2443,6 +2471,7 @@ const typeMap: any = {
24432471 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
24442472 { json: "return", js: "return", typ: r("Return") },
24452473 { json: "right", js: "right", typ: r("Right") },
2474+ { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
24462475 { json: "s", js: "s", typ: r("S") },
24472476 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
24482477 { json: "sealed", js: "sealed", typ: r("Sealed") },
@@ -2472,6 +2501,7 @@ const typeMap: any = {
24722501 { json: "thread_local", js: "thread_local", typ: r("ThreadLocal") },
24732502 { json: "throw", js: "throw", typ: r("Throw") },
24742503 { json: "throws", js: "throws", typ: r("Throws") },
2504+ { json: "toString", js: "toString", typ: r("ToString") },
24752505 { json: "to_json", js: "to_json", typ: r("ToJSON") },
24762506 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
24772507 { json: "transient", js: "transient", typ: r("Transient") },
@@ -2551,6 +2581,9 @@ const typeMap: any = {
25512581 "Right": o([
25522582 { json: "right", js: "right", typ: i(0) },
25532583 ], false),
2584+ "RuntimeType": o([
2585+ { json: "runtimeType", js: "runtimeType", typ: i(0) },
2586+ ], false),
25542587 "S": o([
25552588 { json: "s", js: "s", typ: i(0) },
25562589 ], false),
@@ -2638,6 +2671,9 @@ const typeMap: any = {
26382671 "Throws": o([
26392672 { json: "throws", js: "throws", typ: i(0) },
26402673 ], false),
2674+ "ToString": o([
2675+ { json: "toString", js: "toString", typ: i(0) },
2676+ ], false),
26412677 "ToJSON": o([
26422678 { json: "to_json", js: "to_json", typ: i(0) },
26432679 ], false),
Mgolangdefault / quicktype.go+20 −0
@@ -406,6 +406,7 @@ type Obj2 struct {
406406 Goto Goto `json:"goto"`
407407 Guard Guard `json:"guard"`
408408 HasOwnProperty HasOwnProperty `json:"hasOwnProperty"`
409+ HashCode HashCode `json:"hashCode"`
409410 ID ID `json:"id"`
410411 If If `json:"if"`
411412 Imp Imp `json:"IMP"`
@@ -617,6 +618,10 @@ type HasOwnProperty struct {
617618 HasOwnProperty int64 `json:"hasOwnProperty"`
618619 }
619620
621+type HashCode struct {
622+ HashCode int64 `json:"hashCode"`
623+}
624+
620625 type ID struct {
621626 ID int64 `json:"id"`
622627 }
@@ -716,6 +721,7 @@ type Obj3 struct {
716721 Newtonsoft Newtonsoft `json:"newtonsoft"`
717722 Nil Nil `json:"nil"`
718723 No No `json:"NO"`
724+ NoSuchMethod NoSuchMethod `json:"noSuchMethod"`
719725 Noexcept Noexcept `json:"noexcept"`
720726 Nonatomic Nonatomic `json:"nonatomic"`
721727 None None `json:"None"`
@@ -870,6 +876,10 @@ type No struct {
870876 No int64 `json:"NO"`
871877 }
872878
879+type NoSuchMethod struct {
880+ NoSuchMethod int64 `json:"noSuchMethod"`
881+}
882+
873883 type Noexcept struct {
874884 Noexcept int64 `json:"noexcept"`
875885 }
@@ -1036,6 +1046,7 @@ type Obj4 struct {
10361046 Rethrows Rethrows `json:"rethrows"`
10371047 Return Return `json:"return"`
10381048 Right Right `json:"right"`
1049+ RuntimeType RuntimeType `json:"runtimeType"`
10391050 S S `json:"s"`
10401051 Sbyte Sbyte `json:"sbyte"`
10411052 Sealed Sealed `json:"sealed"`
@@ -1067,6 +1078,7 @@ type Obj4 struct {
10671078 Throw Throw `json:"throw"`
10681079 Throws Throws `json:"throws"`
10691080 ToJSON ToJSON `json:"to_json"`
1081+ ToString ToString `json:"toString"`
10701082 TopLevel TopLevelClass `json:"top_level"`
10711083 Transient Transient `json:"transient"`
10721084 True True `json:"True"`
@@ -1163,6 +1175,10 @@ type Right struct {
11631175 Right int64 `json:"right"`
11641176 }
11651177
1178+type RuntimeType struct {
1179+ RuntimeType int64 `json:"runtimeType"`
1180+}
1181+
11661182 type S struct {
11671183 S int64 `json:"s"`
11681184 }
@@ -1287,6 +1303,10 @@ type ToJSON struct {
12871303 ToJSON int64 `json:"to_json"`
12881304 }
12891305
1306+type ToString struct {
1307+ ToString int64 `json:"toString"`
1308+}
1309+
12901310 type TopLevelClass struct {
12911311 TopLevel int64 `json:"top_level"`
12921312 }
Mhaskelldefault / QuickType.hs+75 −3
@@ -115,6 +115,7 @@ module QuickType
115115 , Goto (..)
116116 , Guard (..)
117117 , HasOwnProperty (..)
118+ , HashCode (..)
118119 , Imp (..)
119120 , Implements (..)
120121 , Implicit (..)
@@ -162,6 +163,7 @@ module QuickType
162163 , Newtonsoft (..)
163164 , Nil (..)
164165 , No (..)
166+ , NoSuchMethod (..)
165167 , Noexcept (..)
166168 , Nonatomic (..)
167169 , None (..)
@@ -224,6 +226,7 @@ module QuickType
224226 , Rethrows (..)
225227 , Return (..)
226228 , RightClass (..)
229+ , RuntimeType (..)
227230 , S (..)
228231 , Sbyte (..)
229232 , Sealed (..)
@@ -254,6 +257,7 @@ module QuickType
254257 , Throw (..)
255258 , Throws (..)
256259 , ToJSONClass (..)
260+ , ToString (..)
257261 , TopLevel (..)
258262 , Transient (..)
259263 , TrueClass (..)
@@ -682,6 +686,7 @@ data Obj2 = Obj2
682686 , gotoObj2 :: Goto
683687 , guardObj2 :: Guard
684688 , hasOwnPropertyObj2 :: HasOwnProperty
689+ , hashCodeObj2 :: HashCode
685690 , impObj2 :: Imp
686691 , implementsObj2 :: Implements
687692 , implicitObj2 :: Implicit
@@ -884,6 +889,10 @@ data HasOwnProperty = HasOwnProperty
884889 { hasOwnPropertyHasOwnProperty :: Int
885890 } deriving (Show)
886891
892+data HashCode = HashCode
893+ { hashCodeHashCode :: Int
894+ } deriving (Show)
895+
887896 data Imp = Imp
888897 { impImp :: Int
889898 } deriving (Show)
@@ -992,6 +1001,7 @@ data Obj3 = Obj3
9921001 , newtonsoftObj3 :: Newtonsoft
9931002 , nilObj3 :: Nil
9941003 , noObj3 :: No
1004+ , noSuchMethodObj3 :: NoSuchMethod
9951005 , noexceptObj3 :: Noexcept
9961006 , nonatomicObj3 :: Nonatomic
9971007 , noneObj3 :: None
@@ -1137,6 +1147,10 @@ data No = No
11371147 { noNo :: Int
11381148 } deriving (Show)
11391149
1150+data NoSuchMethod = NoSuchMethod
1151+ { noSuchMethodNoSuchMethod :: Int
1152+ } deriving (Show)
1153+
11401154 data Noexcept = Noexcept
11411155 { noexceptNoexcept :: Int
11421156 } deriving (Show)
@@ -1317,6 +1331,7 @@ data Obj4 = Obj4
13171331 , rethrowsObj4 :: Rethrows
13181332 , returnObj4 :: Return
13191333 , rightObj4 :: RightClass
1334+ , runtimeTypeObj4 :: RuntimeType
13201335 , sObj4 :: S
13211336 , sbyteObj4 :: Sbyte
13221337 , sealedObj4 :: Sealed
@@ -1347,6 +1362,7 @@ data Obj4 = Obj4
13471362 , throwObj4 :: Throw
13481363 , throwsObj4 :: Throws
13491364 , toJSONObj4 :: ToJSONClass
1365+ , toStringObj4 :: ToString
13501366 , topLevelObj4 :: TopLevel
13511367 , transientObj4 :: Transient
13521368 , trueObj4 :: TrueClass
@@ -1450,6 +1466,10 @@ data RightClass = RightClass
14501466 { rightRightClass :: Int
14511467 } deriving (Show)
14521468
1469+data RuntimeType = RuntimeType
1470+ { runtimeTypeRuntimeType :: Int
1471+ } deriving (Show)
1472+
14531473 data S = S
14541474 { sS :: Int
14551475 } deriving (Show)
@@ -1570,6 +1590,10 @@ data ToJSONClass = ToJSONClass
15701590 { toJSONToJSONClass :: Int
15711591 } deriving (Show)
15721592
1593+data ToString = ToString
1594+ { toStringToString :: Int
1595+ } deriving (Show)
1596+
15731597 data TopLevel = TopLevel
15741598 { topLevelTopLevel :: Int
15751599 } deriving (Show)
@@ -2540,7 +2564,7 @@ instance FromJSON ClassClass where
25402564 <$> v .: "class"
25412565
25422566 instance ToJSON Obj2 where
2543- toJSON (Obj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 enumObj2 equalityContractObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 friendObj2 fromObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 gotoObj2 guardObj2 hasOwnPropertyObj2 impObj2 implementsObj2 implicitObj2 indirectObj2 initObj2 inlineObj2 inoutObj2 instanceofObj2 intObj2 interfaceObj2 internalObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2 obj2IDObj2 obj2IfObj2 obj2ImportObj2 obj2InObj2 obj2InfixObj2) =
2567+ toJSON (Obj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 enumObj2 equalityContractObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 friendObj2 fromObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 gotoObj2 guardObj2 hasOwnPropertyObj2 hashCodeObj2 impObj2 implementsObj2 implicitObj2 indirectObj2 initObj2 inlineObj2 inoutObj2 instanceofObj2 intObj2 interfaceObj2 internalObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2 obj2IDObj2 obj2IfObj2 obj2ImportObj2 obj2InObj2 obj2InfixObj2) =
25442568 object
25452569 [ "def" .= defObj2
25462570 , "defer" .= deferObj2
@@ -2588,6 +2612,7 @@ instance ToJSON Obj2 where
25882612 , "goto" .= gotoObj2
25892613 , "guard" .= guardObj2
25902614 , "hasOwnProperty" .= hasOwnPropertyObj2
2615+ , "hashCode" .= hashCodeObj2
25912616 , "IMP" .= impObj2
25922617 , "implements" .= implementsObj2
25932618 , "implicit" .= implicitObj2
@@ -2658,6 +2683,7 @@ instance FromJSON Obj2 where
26582683 <*> v .: "goto"
26592684 <*> v .: "guard"
26602685 <*> v .: "hasOwnProperty"
2686+ <*> v .: "hashCode"
26612687 <*> v .: "IMP"
26622688 <*> v .: "implements"
26632689 <*> v .: "implicit"
@@ -3129,6 +3155,16 @@ instance FromJSON HasOwnProperty where
31293155 parseJSON (Object v) = HasOwnProperty
31303156 <$> v .: "hasOwnProperty"
31313157
3158+instance ToJSON HashCode where
3159+ toJSON (HashCode hashCodeHashCode) =
3160+ object
3161+ [ "hashCode" .= hashCodeHashCode
3162+ ]
3163+
3164+instance FromJSON HashCode where
3165+ parseJSON (Object v) = HashCode
3166+ <$> v .: "hashCode"
3167+
31323168 instance ToJSON Imp where
31333169 toJSON (Imp impImp) =
31343170 object
@@ -3330,7 +3366,7 @@ instance FromJSON Infix where
33303366 <$> v .: "infix"
33313367
33323368 instance ToJSON Obj3 where
3333- toJSON (Obj3 dummyObj3 isObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonConverterObj3 jsonSerializerObj3 jsonTokenObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 lockObj3 longObj3 mapObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 noexceptObj3 nonatomicObj3 noneObj3 nonlocalObj3 nonmutatingObj3 notObj3 notEqObj3 nsStringObj3 nullObj3 nullptrObj3 numberObj3 obj3LetObj3 obj3ModuleObj3 obj3NoneObj3 obj3NullObj3 obj3OfObj3 obj3ProtocolObj3 objectObj3 onewayObj3 openObj3 operatorObj3 optionalObj3 orObj3 orEqObj3 outObj3 overrideObj3 packageObj3 paramsObj3 passObj3 portObj3 postfixObj3 precedenceObj3 prefixObj3 printObj3 printMembersObj3 printfObj3 privateObj3 protectedObj3 protocolObj3) =
3369+ toJSON (Obj3 dummyObj3 isObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonConverterObj3 jsonSerializerObj3 jsonTokenObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 lockObj3 longObj3 mapObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 noSuchMethodObj3 noexceptObj3 nonatomicObj3 noneObj3 nonlocalObj3 nonmutatingObj3 notObj3 notEqObj3 nsStringObj3 nullObj3 nullptrObj3 numberObj3 obj3LetObj3 obj3ModuleObj3 obj3NoneObj3 obj3NullObj3 obj3OfObj3 obj3ProtocolObj3 objectObj3 onewayObj3 openObj3 operatorObj3 optionalObj3 orObj3 orEqObj3 outObj3 overrideObj3 packageObj3 paramsObj3 passObj3 portObj3 postfixObj3 precedenceObj3 prefixObj3 printObj3 printMembersObj3 printfObj3 privateObj3 protectedObj3 protocolObj3) =
33343370 object
33353371 [ "dummy" .= dummyObj3
33363372 , "is" .= isObj3
@@ -3359,6 +3395,7 @@ instance ToJSON Obj3 where
33593395 , "newtonsoft" .= newtonsoftObj3
33603396 , "nil" .= nilObj3
33613397 , "NO" .= noObj3
3398+ , "noSuchMethod" .= noSuchMethodObj3
33623399 , "noexcept" .= noexceptObj3
33633400 , "nonatomic" .= nonatomicObj3
33643401 , "None" .= noneObj3
@@ -3429,6 +3466,7 @@ instance FromJSON Obj3 where
34293466 <*> v .: "newtonsoft"
34303467 <*> v .: "nil"
34313468 <*> v .: "NO"
3469+ <*> v .: "noSuchMethod"
34323470 <*> v .: "noexcept"
34333471 <*> v .: "nonatomic"
34343472 <*> v .: "None"
@@ -3729,6 +3767,16 @@ instance FromJSON No where
37293767 parseJSON (Object v) = No
37303768 <$> v .: "NO"
37313769
3770+instance ToJSON NoSuchMethod where
3771+ toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
3772+ object
3773+ [ "noSuchMethod" .= noSuchMethodNoSuchMethod
3774+ ]
3775+
3776+instance FromJSON NoSuchMethod where
3777+ parseJSON (Object v) = NoSuchMethod
3778+ <$> v .: "noSuchMethod"
3779+
37323780 instance ToJSON Noexcept where
37333781 toJSON (Noexcept noexceptNoexcept) =
37343782 object
@@ -4120,7 +4168,7 @@ instance FromJSON Protocol where
41204168 <$> v .: "Protocol"
41214169
41224170 instance ToJSON Obj4 where
4123- toJSON (Obj4 dummyObj4 obj4SelfObj4 obj4ThenObj4 obj4TrueObj4 obj4TypeObj4 publicObj4 purpleTypeObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4 selfObj4 serializeObj4 setObj4 shortObj4 signedObj4 sizeofObj4 stackallocObj4 staticObj4 staticAssertObj4 staticCastObj4 strictfpObj4 stringObj4 structObj4 subscriptObj4 superObj4 switchObj4 symbolObj4 synchronizedObj4 systemObj4 templateObj4 thisObj4 threadLocalObj4 throwObj4 throwsObj4 toJSONObj4 topLevelObj4 transientObj4 trueObj4 tryObj4 typealiasObj4 typedefObj4 typeidObj4 typenameObj4 typeofObj4 uintObj4 ulongObj4 uncheckedObj4 undefinedObj4) =
4171+ toJSON (Obj4 dummyObj4 obj4SelfObj4 obj4ThenObj4 obj4TrueObj4 obj4TypeObj4 publicObj4 purpleTypeObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4 selfObj4 serializeObj4 setObj4 shortObj4 signedObj4 sizeofObj4 stackallocObj4 staticObj4 staticAssertObj4 staticCastObj4 strictfpObj4 stringObj4 structObj4 subscriptObj4 superObj4 switchObj4 symbolObj4 synchronizedObj4 systemObj4 templateObj4 thisObj4 threadLocalObj4 throwObj4 throwsObj4 toJSONObj4 toStringObj4 topLevelObj4 transientObj4 trueObj4 tryObj4 typealiasObj4 typedefObj4 typeidObj4 typenameObj4 typeofObj4 uintObj4 ulongObj4 uncheckedObj4 undefinedObj4) =
41244172 object
41254173 [ "dummy" .= dummyObj4
41264174 , "self" .= obj4SelfObj4
@@ -4145,6 +4193,7 @@ instance ToJSON Obj4 where
41454193 , "rethrows" .= rethrowsObj4
41464194 , "return" .= returnObj4
41474195 , "right" .= rightObj4
4196+ , "runtimeType" .= runtimeTypeObj4
41484197 , "s" .= sObj4
41494198 , "sbyte" .= sbyteObj4
41504199 , "sealed" .= sealedObj4
@@ -4175,6 +4224,7 @@ instance ToJSON Obj4 where
41754224 , "throw" .= throwObj4
41764225 , "throws" .= throwsObj4
41774226 , "to_json" .= toJSONObj4
4227+ , "toString" .= toStringObj4
41784228 , "top_level" .= topLevelObj4
41794229 , "transient" .= transientObj4
41804230 , "True" .= trueObj4
@@ -4215,6 +4265,7 @@ instance FromJSON Obj4 where
42154265 <*> v .: "rethrows"
42164266 <*> v .: "return"
42174267 <*> v .: "right"
4268+ <*> v .: "runtimeType"
42184269 <*> v .: "s"
42194270 <*> v .: "sbyte"
42204271 <*> v .: "sealed"
@@ -4245,6 +4296,7 @@ instance FromJSON Obj4 where
42454296 <*> v .: "throw"
42464297 <*> v .: "throws"
42474298 <*> v .: "to_json"
4299+ <*> v .: "toString"
42484300 <*> v .: "top_level"
42494301 <*> v .: "transient"
42504302 <*> v .: "True"
@@ -4479,6 +4531,16 @@ instance FromJSON RightClass where
44794531 parseJSON (Object v) = RightClass
44804532 <$> v .: "right"
44814533
4534+instance ToJSON RuntimeType where
4535+ toJSON (RuntimeType runtimeTypeRuntimeType) =
4536+ object
4537+ [ "runtimeType" .= runtimeTypeRuntimeType
4538+ ]
4539+
4540+instance FromJSON RuntimeType where
4541+ parseJSON (Object v) = RuntimeType
4542+ <$> v .: "runtimeType"
4543+
44824544 instance ToJSON S where
44834545 toJSON (S sS) =
44844546 object
@@ -4779,6 +4841,16 @@ instance FromJSON ToJSONClass where
47794841 parseJSON (Object v) = ToJSONClass
47804842 <$> v .: "to_json"
47814843
4844+instance ToJSON ToString where
4845+ toJSON (ToString toStringToString) =
4846+ object
4847+ [ "toString" .= toStringToString
4848+ ]
4849+
4850+instance FromJSON ToString where
4851+ parseJSON (Object v) = ToString
4852+ <$> v .: "toString"
4853+
47824854 instance ToJSON TopLevel where
47834855 toJSON (TopLevel topLevelTopLevel) =
47844856 object
Ajava-datetime-legacydefault / src / main / java / io / quicktype / HashCode.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class HashCode {
6+ private long hashCode;
7+
8+ @JsonProperty("hashCode")
9+ public long getHashCode() { return hashCode; }
10+ @JsonProperty("hashCode")
11+ public void setHashCode(long value) { this.hashCode = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / NoSuchMethod.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class NoSuchMethod {
6+ private long noSuchMethod;
7+
8+ @JsonProperty("noSuchMethod")
9+ public long getNoSuchMethod() { return noSuchMethod; }
10+ @JsonProperty("noSuchMethod")
11+ public void setNoSuchMethod(long value) { this.noSuchMethod = value; }
12+}
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj2.java+6 −0
@@ -40,6 +40,7 @@ public class Obj2 {
4040 private Go go;
4141 private Guard guard;
4242 private HasOwnProperty hasOwnProperty;
43+ private HashCode hashCode;
4344 private ID id;
4445 private Imp imp;
4546 private Implicit implicit;
@@ -255,6 +256,11 @@ public class Obj2 {
255256 @JsonProperty("hasOwnProperty")
256257 public void setHasOwnProperty(HasOwnProperty value) { this.hasOwnProperty = value; }
257258
259+ @JsonProperty("hashCode")
260+ public HashCode getHashCode() { return hashCode; }
261+ @JsonProperty("hashCode")
262+ public void setHashCode(HashCode value) { this.hashCode = value; }
263+
258264 @JsonProperty("id")
259265 public ID getID() { return id; }
260266 @JsonProperty("id")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+6 −0
@@ -29,6 +29,7 @@ public class Obj3 {
2929 private Newtonsoft newtonsoft;
3030 private Nil nil;
3131 private No no;
32+ private NoSuchMethod noSuchMethod;
3233 private Noexcept noexcept;
3334 private Nonatomic nonatomic;
3435 private NoneClass none;
@@ -200,6 +201,11 @@ public class Obj3 {
200201 @JsonProperty("NO")
201202 public void setNo(No value) { this.no = value; }
202203
204+ @JsonProperty("noSuchMethod")
205+ public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
206+ @JsonProperty("noSuchMethod")
207+ public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
208+
203209 @JsonProperty("noexcept")
204210 public Noexcept getNoexcept() { return noexcept; }
205211 @JsonProperty("noexcept")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+12 −0
@@ -36,6 +36,7 @@ public class Obj4 {
3636 private Retain retain;
3737 private Rethrows rethrows;
3838 private Right right;
39+ private RuntimeType runtimeType;
3940 private S s;
4041 private Sbyte sbyte;
4142 private Sealed sealed;
@@ -58,6 +59,7 @@ public class Obj4 {
5859 private Then then;
5960 private ThreadLocal threadLocal;
6061 private ToJSON toJSON;
62+ private ToString toString;
6163 private TopLevelClass topLevel;
6264 private Type type;
6365 private Typealias typealias;
@@ -235,6 +237,11 @@ public class Obj4 {
235237 @JsonProperty("right")
236238 public void setRight(Right value) { this.right = value; }
237239
240+ @JsonProperty("runtimeType")
241+ public RuntimeType getRuntimeType() { return runtimeType; }
242+ @JsonProperty("runtimeType")
243+ public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
244+
238245 @JsonProperty("s")
239246 public S getS() { return s; }
240247 @JsonProperty("s")
@@ -345,6 +352,11 @@ public class Obj4 {
345352 @JsonProperty("to_json")
346353 public void setToJSON(ToJSON value) { this.toJSON = value; }
347354
355+ @JsonProperty("toString")
356+ public ToString getToString() { return toString; }
357+ @JsonProperty("toString")
358+ public void setToString(ToString value) { this.toString = value; }
359+
348360 @JsonProperty("top_level")
349361 public TopLevelClass getTopLevel() { return topLevel; }
350362 @JsonProperty("top_level")
Ajava-datetime-legacydefault / src / main / java / io / quicktype / RuntimeType.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class RuntimeType {
6+ private long runtimeType;
7+
8+ @JsonProperty("runtimeType")
9+ public long getRuntimeType() { return runtimeType; }
10+ @JsonProperty("runtimeType")
11+ public void setRuntimeType(long value) { this.runtimeType = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / ToString.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToString {
6+ private long toString;
7+
8+ @JsonProperty("toString")
9+ public long getToString() { return toString; }
10+ @JsonProperty("toString")
11+ public void setToString(long value) { this.toString = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / HashCode.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class HashCode {
6+ private long hashCode;
7+
8+ @JsonProperty("hashCode")
9+ public long getHashCode() { return hashCode; }
10+ @JsonProperty("hashCode")
11+ public void setHashCode(long value) { this.hashCode = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / NoSuchMethod.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class NoSuchMethod {
6+ private long noSuchMethod;
7+
8+ @JsonProperty("noSuchMethod")
9+ public long getNoSuchMethod() { return noSuchMethod; }
10+ @JsonProperty("noSuchMethod")
11+ public void setNoSuchMethod(long value) { this.noSuchMethod = value; }
12+}
Mjava-lombokdefault / src / main / java / io / quicktype / Obj2.java+6 −0
@@ -40,6 +40,7 @@ public class Obj2 {
4040 private Go go;
4141 private Guard guard;
4242 private HasOwnProperty hasOwnProperty;
43+ private HashCode hashCode;
4344 private ID id;
4445 private Imp imp;
4546 private Implicit implicit;
@@ -255,6 +256,11 @@ public class Obj2 {
255256 @JsonProperty("hasOwnProperty")
256257 public void setHasOwnProperty(HasOwnProperty value) { this.hasOwnProperty = value; }
257258
259+ @JsonProperty("hashCode")
260+ public HashCode getHashCode() { return hashCode; }
261+ @JsonProperty("hashCode")
262+ public void setHashCode(HashCode value) { this.hashCode = value; }
263+
258264 @JsonProperty("id")
259265 public ID getID() { return id; }
260266 @JsonProperty("id")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+6 −0
@@ -29,6 +29,7 @@ public class Obj3 {
2929 private Newtonsoft newtonsoft;
3030 private Nil nil;
3131 private No no;
32+ private NoSuchMethod noSuchMethod;
3233 private Noexcept noexcept;
3334 private Nonatomic nonatomic;
3435 private NoneClass none;
@@ -200,6 +201,11 @@ public class Obj3 {
200201 @JsonProperty("NO")
201202 public void setNo(No value) { this.no = value; }
202203
204+ @JsonProperty("noSuchMethod")
205+ public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
206+ @JsonProperty("noSuchMethod")
207+ public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
208+
203209 @JsonProperty("noexcept")
204210 public Noexcept getNoexcept() { return noexcept; }
205211 @JsonProperty("noexcept")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+12 −0
@@ -36,6 +36,7 @@ public class Obj4 {
3636 private Retain retain;
3737 private Rethrows rethrows;
3838 private Right right;
39+ private RuntimeType runtimeType;
3940 private S s;
4041 private Sbyte sbyte;
4142 private Sealed sealed;
@@ -58,6 +59,7 @@ public class Obj4 {
5859 private Then then;
5960 private ThreadLocal threadLocal;
6061 private ToJSON toJSON;
62+ private ToString toString;
6163 private TopLevelClass topLevel;
6264 private Type type;
6365 private Typealias typealias;
@@ -235,6 +237,11 @@ public class Obj4 {
235237 @JsonProperty("right")
236238 public void setRight(Right value) { this.right = value; }
237239
240+ @JsonProperty("runtimeType")
241+ public RuntimeType getRuntimeType() { return runtimeType; }
242+ @JsonProperty("runtimeType")
243+ public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
244+
238245 @JsonProperty("s")
239246 public S getS() { return s; }
240247 @JsonProperty("s")
@@ -345,6 +352,11 @@ public class Obj4 {
345352 @JsonProperty("to_json")
346353 public void setToJSON(ToJSON value) { this.toJSON = value; }
347354
355+ @JsonProperty("toString")
356+ public ToString getToString() { return toString; }
357+ @JsonProperty("toString")
358+ public void setToString(ToString value) { this.toString = value; }
359+
348360 @JsonProperty("top_level")
349361 public TopLevelClass getTopLevel() { return topLevel; }
350362 @JsonProperty("top_level")
Ajava-lombokdefault / src / main / java / io / quicktype / RuntimeType.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class RuntimeType {
6+ private long runtimeType;
7+
8+ @JsonProperty("runtimeType")
9+ public long getRuntimeType() { return runtimeType; }
10+ @JsonProperty("runtimeType")
11+ public void setRuntimeType(long value) { this.runtimeType = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / ToString.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToString {
6+ private long toString;
7+
8+ @JsonProperty("toString")
9+ public long getToString() { return toString; }
10+ @JsonProperty("toString")
11+ public void setToString(long value) { this.toString = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / HashCode.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class HashCode {
6+ private long hashCode;
7+
8+ @JsonProperty("hashCode")
9+ public long getHashCode() { return hashCode; }
10+ @JsonProperty("hashCode")
11+ public void setHashCode(long value) { this.hashCode = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / NoSuchMethod.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class NoSuchMethod {
6+ private long noSuchMethod;
7+
8+ @JsonProperty("noSuchMethod")
9+ public long getNoSuchMethod() { return noSuchMethod; }
10+ @JsonProperty("noSuchMethod")
11+ public void setNoSuchMethod(long value) { this.noSuchMethod = value; }
12+}
Mjavadefault / src / main / java / io / quicktype / Obj2.java+6 −0
@@ -40,6 +40,7 @@ public class Obj2 {
4040 private Go go;
4141 private Guard guard;
4242 private HasOwnProperty hasOwnProperty;
43+ private HashCode hashCode;
4344 private ID id;
4445 private Imp imp;
4546 private Implicit implicit;
@@ -255,6 +256,11 @@ public class Obj2 {
255256 @JsonProperty("hasOwnProperty")
256257 public void setHasOwnProperty(HasOwnProperty value) { this.hasOwnProperty = value; }
257258
259+ @JsonProperty("hashCode")
260+ public HashCode getHashCode() { return hashCode; }
261+ @JsonProperty("hashCode")
262+ public void setHashCode(HashCode value) { this.hashCode = value; }
263+
258264 @JsonProperty("id")
259265 public ID getID() { return id; }
260266 @JsonProperty("id")
Mjavadefault / src / main / java / io / quicktype / Obj3.java+6 −0
@@ -29,6 +29,7 @@ public class Obj3 {
2929 private Newtonsoft newtonsoft;
3030 private Nil nil;
3131 private No no;
32+ private NoSuchMethod noSuchMethod;
3233 private Noexcept noexcept;
3334 private Nonatomic nonatomic;
3435 private NoneClass none;
@@ -200,6 +201,11 @@ public class Obj3 {
200201 @JsonProperty("NO")
201202 public void setNo(No value) { this.no = value; }
202203
204+ @JsonProperty("noSuchMethod")
205+ public NoSuchMethod getNoSuchMethod() { return noSuchMethod; }
206+ @JsonProperty("noSuchMethod")
207+ public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
208+
203209 @JsonProperty("noexcept")
204210 public Noexcept getNoexcept() { return noexcept; }
205211 @JsonProperty("noexcept")
Mjavadefault / src / main / java / io / quicktype / Obj4.java+12 −0
@@ -36,6 +36,7 @@ public class Obj4 {
3636 private Retain retain;
3737 private Rethrows rethrows;
3838 private Right right;
39+ private RuntimeType runtimeType;
3940 private S s;
4041 private Sbyte sbyte;
4142 private Sealed sealed;
@@ -58,6 +59,7 @@ public class Obj4 {
5859 private Then then;
5960 private ThreadLocal threadLocal;
6061 private ToJSON toJSON;
62+ private ToString toString;
6163 private TopLevelClass topLevel;
6264 private Type type;
6365 private Typealias typealias;
@@ -235,6 +237,11 @@ public class Obj4 {
235237 @JsonProperty("right")
236238 public void setRight(Right value) { this.right = value; }
237239
240+ @JsonProperty("runtimeType")
241+ public RuntimeType getRuntimeType() { return runtimeType; }
242+ @JsonProperty("runtimeType")
243+ public void setRuntimeType(RuntimeType value) { this.runtimeType = value; }
244+
238245 @JsonProperty("s")
239246 public S getS() { return s; }
240247 @JsonProperty("s")
@@ -345,6 +352,11 @@ public class Obj4 {
345352 @JsonProperty("to_json")
346353 public void setToJSON(ToJSON value) { this.toJSON = value; }
347354
355+ @JsonProperty("toString")
356+ public ToString getToString() { return toString; }
357+ @JsonProperty("toString")
358+ public void setToString(ToString value) { this.toString = value; }
359+
348360 @JsonProperty("top_level")
349361 public TopLevelClass getTopLevel() { return topLevel; }
350362 @JsonProperty("top_level")
Ajavadefault / src / main / java / io / quicktype / RuntimeType.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class RuntimeType {
6+ private long runtimeType;
7+
8+ @JsonProperty("runtimeType")
9+ public long getRuntimeType() { return runtimeType; }
10+ @JsonProperty("runtimeType")
11+ public void setRuntimeType(long value) { this.runtimeType = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / ToString.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class ToString {
6+ private long toString;
7+
8+ @JsonProperty("toString")
9+ public long getToString() { return toString; }
10+ @JsonProperty("toString")
11+ public void setToString(long value) { this.toString = value; }
12+}
Mjavascript-prop-typesdefault / toplevel.js+20 −0
@@ -131,6 +131,7 @@ let _Go;
131131 let _Goto;
132132 let _Guard;
133133 let _HasOwnProperty;
134+let _HashCode;
134135 let _ID;
135136 let _If;
136137 let _Implements;
@@ -179,6 +180,7 @@ let _Native;
179180 let _New;
180181 let _Newtonsoft;
181182 let _Nil;
183+let _NoSuchMethod;
182184 let _Noexcept;
183185 let _Nonatomic;
184186 let _NoneClass;
@@ -234,6 +236,7 @@ let _Retain;
234236 let _Rethrows;
235237 let _Return;
236238 let _Right;
239+let _RuntimeType;
237240 let _S;
238241 let _Sbyte;
239242 let _Sealed;
@@ -263,6 +266,7 @@ let _This;
263266 let _ThreadLocal;
264267 let _Throw;
265268 let _Throws;
269+let _ToString;
266270 let _ToJSON;
267271 let _TopLevelClass;
268272 let _Transient;
@@ -712,6 +716,9 @@ _Guard = PropTypes.shape({
712716 _HasOwnProperty = PropTypes.shape({
713717 "hasOwnProperty": PropTypes.oneOfType([Integer]).isRequired,
714718 });
719+_HashCode = PropTypes.shape({
720+ "hashCode": PropTypes.oneOfType([Integer]).isRequired,
721+});
715722 _ID = PropTypes.shape({
716723 "id": PropTypes.oneOfType([Integer]).isRequired,
717724 });
@@ -809,6 +816,7 @@ _Obj2 = PropTypes.shape({
809816 "goto": _Goto,
810817 "guard": _Guard,
811818 "hasOwnProperty": _HasOwnProperty,
819+ "hashCode": _HashCode,
812820 "id": _ID,
813821 "if": _If,
814822 "implements": _Implements,
@@ -921,6 +929,9 @@ _Newtonsoft = PropTypes.shape({
921929 _Nil = PropTypes.shape({
922930 "nil": PropTypes.oneOfType([Integer]).isRequired,
923931 });
932+_NoSuchMethod = PropTypes.shape({
933+ "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
934+});
924935 _Noexcept = PropTypes.shape({
925936 "noexcept": PropTypes.oneOfType([Integer]).isRequired,
926937 });
@@ -1054,6 +1065,7 @@ _Obj3 = PropTypes.shape({
10541065 "new": _New,
10551066 "newtonsoft": _Newtonsoft,
10561067 "nil": _Nil,
1068+ "noSuchMethod": _NoSuchMethod,
10571069 "noexcept": _Noexcept,
10581070 "nonatomic": _Nonatomic,
10591071 "none": _NoneClass,
@@ -1151,6 +1163,9 @@ _Return = PropTypes.shape({
11511163 _Right = PropTypes.shape({
11521164 "right": PropTypes.oneOfType([Integer]).isRequired,
11531165 });
1166+_RuntimeType = PropTypes.shape({
1167+ "runtimeType": PropTypes.oneOfType([Integer]).isRequired,
1168+});
11541169 _S = PropTypes.shape({
11551170 "s": PropTypes.oneOfType([Integer]).isRequired,
11561171 });
@@ -1238,6 +1253,9 @@ _Throw = PropTypes.shape({
12381253 _Throws = PropTypes.shape({
12391254 "throws": PropTypes.oneOfType([Integer]).isRequired,
12401255 });
1256+_ToString = PropTypes.shape({
1257+ "toString": PropTypes.oneOfType([Integer]).isRequired,
1258+});
12411259 _ToJSON = PropTypes.shape({
12421260 "to_json": PropTypes.oneOfType([Integer]).isRequired,
12431261 });
@@ -1306,6 +1324,7 @@ _Obj4 = PropTypes.shape({
13061324 "rethrows": _Rethrows,
13071325 "return": _Return,
13081326 "right": _Right,
1327+ "runtimeType": _RuntimeType,
13091328 "s": _S,
13101329 "sbyte": _Sbyte,
13111330 "sealed": _Sealed,
@@ -1335,6 +1354,7 @@ _Obj4 = PropTypes.shape({
13351354 "thread_local": _ThreadLocal,
13361355 "throw": _Throw,
13371356 "throws": _Throws,
1357+ "toString": _ToString,
13381358 "to_json": _ToJSON,
13391359 "top_level": _TopLevelClass,
13401360 "transient": _Transient,
Mjavascriptdefault / TopLevel.js+16 −0
@@ -515,6 +515,7 @@ const typeMap = {
515515 { json: "goto", js: "goto", typ: r("Goto") },
516516 { json: "guard", js: "guard", typ: r("Guard") },
517517 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
518+ { json: "hashCode", js: "hashCode", typ: r("HashCode") },
518519 { json: "id", js: "id", typ: r("ID") },
519520 { json: "if", js: "if", typ: r("If") },
520521 { json: "implements", js: "implements", typ: r("Implements") },
@@ -681,6 +682,9 @@ const typeMap = {
681682 "HasOwnProperty": o([
682683 { json: "hasOwnProperty", js: "hasOwnProperty", typ: i(0) },
683684 ], false),
685+ "HashCode": o([
686+ { json: "hashCode", js: "hashCode", typ: i(0) },
687+ ], false),
684688 "ID": o([
685689 { json: "id", js: "id", typ: i(0) },
686690 ], false),
@@ -760,6 +764,7 @@ const typeMap = {
760764 { json: "new", js: "new", typ: r("New") },
761765 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
762766 { json: "nil", js: "nil", typ: r("Nil") },
767+ { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
763768 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
764769 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
765770 { json: "none", js: "none", typ: r("NoneClass") },
@@ -890,6 +895,9 @@ const typeMap = {
890895 "Nil": o([
891896 { json: "nil", js: "nil", typ: i(0) },
892897 ], false),
898+ "NoSuchMethod": o([
899+ { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
900+ ], false),
893901 "Noexcept": o([
894902 { json: "noexcept", js: "noexcept", typ: i(0) },
895903 ], false),
@@ -1012,6 +1020,7 @@ const typeMap = {
10121020 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
10131021 { json: "return", js: "return", typ: r("Return") },
10141022 { json: "right", js: "right", typ: r("Right") },
1023+ { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
10151024 { json: "s", js: "s", typ: r("S") },
10161025 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
10171026 { json: "sealed", js: "sealed", typ: r("Sealed") },
@@ -1041,6 +1050,7 @@ const typeMap = {
10411050 { json: "thread_local", js: "thread_local", typ: r("ThreadLocal") },
10421051 { json: "throw", js: "throw", typ: r("Throw") },
10431052 { json: "throws", js: "throws", typ: r("Throws") },
1053+ { json: "toString", js: "toString", typ: r("ToString") },
10441054 { json: "to_json", js: "to_json", typ: r("ToJSON") },
10451055 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
10461056 { json: "transient", js: "transient", typ: r("Transient") },
@@ -1120,6 +1130,9 @@ const typeMap = {
11201130 "Right": o([
11211131 { json: "right", js: "right", typ: i(0) },
11221132 ], false),
1133+ "RuntimeType": o([
1134+ { json: "runtimeType", js: "runtimeType", typ: i(0) },
1135+ ], false),
11231136 "S": o([
11241137 { json: "s", js: "s", typ: i(0) },
11251138 ], false),
@@ -1207,6 +1220,9 @@ const typeMap = {
12071220 "Throws": o([
12081221 { json: "throws", js: "throws", typ: i(0) },
12091222 ], false),
1223+ "ToString": o([
1224+ { json: "toString", js: "toString", typ: i(0) },
1225+ ], false),
12101226 "ToJSON": o([
12111227 { json: "to_json", js: "to_json", typ: i(0) },
12121228 ], false),
Mkotlin-jacksondefault / TopLevel.kt+32 −0
@@ -706,6 +706,9 @@ data class Obj2 (
706706 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
707707 val hasOwnProperty: HasOwnProperty,
708708
709+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
710+ val hashCode: HashCode,
711+
709712 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
710713 val id: ID,
711714
@@ -990,6 +993,11 @@ data class HasOwnProperty (
990993 val hasOwnProperty: Long
991994 )
992995
996+data class HashCode (
997+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
998+ val hashCode: Long
999+)
1000+
9931001 data class ID (
9941002 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
9951003 val id: Long
@@ -1180,6 +1188,9 @@ data class Obj3 (
11801188 @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
11811189 val no: No,
11821190
1191+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1192+ val noSuchMethod: NoSuchMethod,
1193+
11831194 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
11841195 val noexcept: Noexcept,
11851196
@@ -1430,6 +1441,11 @@ data class No (
14301441 val no: Long
14311442 )
14321443
1444+data class NoSuchMethod (
1445+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1446+ val noSuchMethod: Long
1447+)
1448+
14331449 data class Noexcept (
14341450 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
14351451 val noexcept: Long
@@ -1705,6 +1721,9 @@ data class Obj4 (
17051721 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17061722 val right: Right,
17071723
1724+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1725+ val runtimeType: RuntimeType,
1726+
17081727 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17091728 val s: S,
17101729
@@ -1789,6 +1808,9 @@ data class Obj4 (
17891808 @get:JsonProperty("to_json", required=true)@field:JsonProperty("to_json", required=true)
17901809 val toJSON: ToJSON,
17911810
1811+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1812+ val toString: ToString,
1813+
17921814 @get:JsonProperty("top_level", required=true)@field:JsonProperty("top_level", required=true)
17931815 val topLevel: TopLevelClass,
17941816
@@ -1955,6 +1977,11 @@ data class Right (
19551977 val right: Long
19561978 )
19571979
1980+data class RuntimeType (
1981+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1982+ val runtimeType: Long
1983+)
1984+
19581985 data class S (
19591986 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
19601987 val s: Long
@@ -2095,6 +2122,11 @@ data class ToJSON (
20952122 val toJSON: Long
20962123 )
20972124
2125+data class ToString (
2126+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2127+ val toString: Long
2128+)
2129+
20982130 data class TopLevelClass (
20992131 @get:JsonProperty("top_level", required=true)@field:JsonProperty("top_level", required=true)
21002132 val topLevel: Long
Mkotlindefault / TopLevel.kt+21 −0
@@ -489,6 +489,7 @@ data class Obj2 (
489489 val goto: Goto,
490490 val guard: Guard,
491491 val hasOwnProperty: HasOwnProperty,
492+ val hashCode: HashCode,
492493 val id: ID,
493494
494495 @Json(name = "IMP")
@@ -710,6 +711,10 @@ data class HasOwnProperty (
710711 val hasOwnProperty: Long
711712 )
712713
714+data class HashCode (
715+ val hashCode: Long
716+)
717+
713718 data class ID (
714719 val id: Long
715720 )
@@ -847,6 +852,7 @@ data class Obj3 (
847852 @Json(name = "NO")
848853 val no: No,
849854
855+ val noSuchMethod: NoSuchMethod,
850856 val noexcept: Noexcept,
851857 val nonatomic: Nonatomic,
852858
@@ -1029,6 +1035,10 @@ data class No (
10291035 val no: Long
10301036 )
10311037
1038+data class NoSuchMethod (
1039+ val noSuchMethod: Long
1040+)
1041+
10321042 data class Noexcept (
10331043 val noexcept: Long
10341044 )
@@ -1247,6 +1257,7 @@ data class Obj4 (
12471257 val retain: Retain,
12481258 val rethrows: Rethrows,
12491259 val right: Right,
1260+ val runtimeType: RuntimeType,
12501261 val s: S,
12511262 val sbyte: Sbyte,
12521263 val sealed: Sealed,
@@ -1292,6 +1303,8 @@ data class Obj4 (
12921303 @Json(name = "to_json")
12931304 val toJSON: ToJSON,
12941305
1306+ val toString: ToString,
1307+
12951308 @Json(name = "top_level")
12961309 val topLevel: TopLevelClass,
12971310
@@ -1427,6 +1440,10 @@ data class Right (
14271440 val right: Long
14281441 )
14291442
1443+data class RuntimeType (
1444+ val runtimeType: Long
1445+)
1446+
14301447 data class S (
14311448 val s: Long
14321449 )
@@ -1545,6 +1562,10 @@ data class ToJSON (
15451562 val toJSON: Long
15461563 )
15471564
1565+data class ToString (
1566+ val toString: Long
1567+)
1568+
15481569 data class TopLevelClass (
15491570 @Json(name = "top_level")
15501571 val topLevel: Long
Mkotlinxdefault / TopLevel.kt+25 −0
@@ -553,6 +553,7 @@ data class Obj2 (
553553 val goto: Goto,
554554 val guard: Guard,
555555 val hasOwnProperty: HasOwnProperty,
556+ val hashCode: HashCode,
556557 val id: ID,
557558
558559 @SerialName("IMP")
@@ -818,6 +819,11 @@ data class HasOwnProperty (
818819 val hasOwnProperty: Long
819820 )
820821
822+@Serializable
823+data class HashCode (
824+ val hashCode: Long
825+)
826+
821827 @Serializable
822828 data class ID (
823829 val id: Long
@@ -977,6 +983,7 @@ data class Obj3 (
977983 @SerialName("NO")
978984 val no: No,
979985
986+ val noSuchMethod: NoSuchMethod,
980987 val noexcept: Noexcept,
981988 val nonatomic: Nonatomic,
982989
@@ -1186,6 +1193,11 @@ data class No (
11861193 val no: Long
11871194 )
11881195
1196+@Serializable
1197+data class NoSuchMethod (
1198+ val noSuchMethod: Long
1199+)
1200+
11891201 @Serializable
11901202 data class Noexcept (
11911203 val noexcept: Long
@@ -1443,6 +1455,7 @@ data class Obj4 (
14431455 val retain: Retain,
14441456 val rethrows: Rethrows,
14451457 val right: Right,
1458+ val runtimeType: RuntimeType,
14461459 val s: S,
14471460 val sbyte: Sbyte,
14481461 val sealed: Sealed,
@@ -1488,6 +1501,8 @@ data class Obj4 (
14881501 @SerialName("to_json")
14891502 val toJSON: ToJSON,
14901503
1504+ val toString: ToString,
1505+
14911506 @SerialName("top_level")
14921507 val topLevel: TopLevelClass,
14931508
@@ -1650,6 +1665,11 @@ data class Right (
16501665 val right: Long
16511666 )
16521667
1668+@Serializable
1669+data class RuntimeType (
1670+ val runtimeType: Long
1671+)
1672+
16531673 @Serializable
16541674 data class S (
16551675 val s: Long
@@ -1796,6 +1816,11 @@ data class ToJSON (
17961816 val toJSON: Long
17971817 )
17981818
1819+@Serializable
1820+data class ToString (
1821+ val toString: Long
1822+)
1823+
17991824 @Serializable
18001825 data class TopLevelClass (
18011826 @SerialName("top_level")
Mobjective-cdefault / QTTopLevel.h+24 −0
@@ -137,6 +137,7 @@
137137 @class QTInline;
138138 @class QTInt;
139139 @class QTFalseClass;
140+@class QTHashCode;
140141 @class QTInit;
141142 @class QTObj3;
142143 @class QTIs;
@@ -164,6 +165,7 @@
164165 @class QTNative;
165166 @class QTNewtonsoft;
166167 @class QTNo;
168+@class QTNoSuchMethod;
167169 @class QTNoexcept;
168170 @class QTNone;
169171 @class QTNonlocal;
@@ -233,6 +235,7 @@
233235 @class QTRequires;
234236 @class QTRethrows;
235237 @class QTRight;
238+@class QTRuntimeType;
236239 @class QTS;
237240 @class QTSbyte;
238241 @class QTSealed;
@@ -259,6 +262,7 @@
259262 @class QTThrow;
260263 @class QTThrows;
261264 @class QTToJSON;
265+@class QTToString;
262266 @class QTTopLevelClass;
263267 @class QTTransient;
264268 @class QTTry;
@@ -712,6 +716,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
712716 @property (nonatomic, strong) QTInline *obj2Inline;
713717 @property (nonatomic, strong) QTInt *obj2Int;
714718 @property (nonatomic, strong) QTFalseClass *theFalse;
719+@property (nonatomic, strong) QTHashCode *theHashCode;
715720 @property (nonatomic, strong) QTInit *theInit;
716721 @end
717722
@@ -971,6 +976,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
971976 @property (nonatomic, assign) NSInteger falseFalse;
972977 @end
973978
979+@interface QTHashCode : NSObject
980+@property (nonatomic, assign) NSInteger theHashCode;
981+@end
982+
974983 @interface QTInit : NSObject
975984 @property (nonatomic, assign) NSInteger theInit;
976985 @end
@@ -1002,6 +1011,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10021011 @property (nonatomic, strong) QTNative *native;
10031012 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
10041013 @property (nonatomic, strong) QTNo *no;
1014+@property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
10051015 @property (nonatomic, strong) QTNoexcept *noexcept;
10061016 @property (nonatomic, strong) QTNone *none;
10071017 @property (nonatomic, strong) QTNonlocal *nonlocal;
@@ -1144,6 +1154,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11441154 @property (nonatomic, assign) NSInteger no;
11451155 @end
11461156
1157+@interface QTNoSuchMethod : NSObject
1158+@property (nonatomic, assign) NSInteger noSuchMethod;
1159+@end
1160+
11471161 @interface QTNoexcept : NSObject
11481162 @property (nonatomic, assign) NSInteger noexcept;
11491163 @end
@@ -1334,6 +1348,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13341348 @property (nonatomic, strong) QTRequires *requires;
13351349 @property (nonatomic, strong) QTRethrows *rethrows;
13361350 @property (nonatomic, strong) QTRight *right;
1351+@property (nonatomic, strong) QTRuntimeType *runtimeType;
13371352 @property (nonatomic, strong) QTS *s;
13381353 @property (nonatomic, strong) QTSbyte *sbyte;
13391354 @property (nonatomic, strong) QTSealed *sealed;
@@ -1360,6 +1375,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13601375 @property (nonatomic, strong) QTThrow *throw;
13611376 @property (nonatomic, strong) QTThrows *throws;
13621377 @property (nonatomic, strong) QTToJSON *toJSON;
1378+@property (nonatomic, strong) QTToString *toString;
13631379 @property (nonatomic, strong) QTTopLevelClass *topLevel;
13641380 @property (nonatomic, strong) QTTransient *transient;
13651381 @property (nonatomic, strong) QTTry *try;
@@ -1485,6 +1501,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14851501 @property (nonatomic, assign) NSInteger right;
14861502 @end
14871503
1504+@interface QTRuntimeType : NSObject
1505+@property (nonatomic, assign) NSInteger runtimeType;
1506+@end
1507+
14881508 @interface QTS : NSObject
14891509 @property (nonatomic, assign) NSInteger s;
14901510 @end
@@ -1589,6 +1609,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15891609 @property (nonatomic, assign) NSInteger toJSON;
15901610 @end
15911611
1612+@interface QTToString : NSObject
1613+@property (nonatomic, assign) NSInteger toString;
1614+@end
1615+
15921616 @interface QTTopLevelClass : NSObject
15931617 @property (nonatomic, assign) NSInteger topLevel;
15941618 @end
Mobjective-cdefault / QTTopLevel.m+218 −0
@@ -668,6 +668,11 @@ NS_ASSUME_NONNULL_BEGIN
668668 - (NSDictionary *)JSONDictionary;
669669 @end
670670
671+@interface QTHashCode (JSONConversion)
672++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
673+- (NSDictionary *)JSONDictionary;
674+@end
675+
671676 @interface QTInit (JSONConversion)
672677 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
673678 - (NSDictionary *)JSONDictionary;
@@ -803,6 +808,11 @@ NS_ASSUME_NONNULL_BEGIN
803808 - (NSDictionary *)JSONDictionary;
804809 @end
805810
811+@interface QTNoSuchMethod (JSONConversion)
812++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
813+- (NSDictionary *)JSONDictionary;
814+@end
815+
806816 @interface QTNoexcept (JSONConversion)
807817 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
808818 - (NSDictionary *)JSONDictionary;
@@ -1148,6 +1158,11 @@ NS_ASSUME_NONNULL_BEGIN
11481158 - (NSDictionary *)JSONDictionary;
11491159 @end
11501160
1161+@interface QTRuntimeType (JSONConversion)
1162++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1163+- (NSDictionary *)JSONDictionary;
1164+@end
1165+
11511166 @interface QTS (JSONConversion)
11521167 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
11531168 - (NSDictionary *)JSONDictionary;
@@ -1278,6 +1293,11 @@ NS_ASSUME_NONNULL_BEGIN
12781293 - (NSDictionary *)JSONDictionary;
12791294 @end
12801295
1296+@interface QTToString (JSONConversion)
1297++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1298+- (NSDictionary *)JSONDictionary;
1299+@end
1300+
12811301 @interface QTTopLevelClass (JSONConversion)
12821302 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
12831303 - (NSDictionary *)JSONDictionary;
@@ -5026,6 +5046,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
50265046 @"inline": @"obj2Inline",
50275047 @"int": @"obj2Int",
50285048 @"false": @"theFalse",
5049+ @"hashCode": @"theHashCode",
50295050 @"init": @"theInit",
50305051 };
50315052 }
@@ -5104,6 +5125,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
51045125 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
51055126 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
51065127 if (![dict[@"false"] isKindOfClass:NSDictionary.class]) return nil;
5128+ if (![dict[@"hashCode"] isKindOfClass:NSDictionary.class]) return nil;
51075129 if (![dict[@"init"] isKindOfClass:NSDictionary.class]) return nil;
51085130 [self setValuesForKeysWithDictionary:dict];
51095131 _def = [QTDef fromJSONDictionary:(id)_def];
@@ -5234,6 +5256,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
52345256 if (!_obj2Int && dict[@"int"] && ![dict[@"int"] isKindOfClass:NSNull.class]) return nil;
52355257 _theFalse = [QTFalseClass fromJSONDictionary:(id)_theFalse];
52365258 if (!_theFalse && dict[@"false"] && ![dict[@"false"] isKindOfClass:NSNull.class]) return nil;
5259+ _theHashCode = [QTHashCode fromJSONDictionary:(id)_theHashCode];
5260+ if (!_theHashCode && dict[@"hashCode"] && ![dict[@"hashCode"] isKindOfClass:NSNull.class]) return nil;
52375261 _theInit = [QTInit fromJSONDictionary:(id)_theInit];
52385262 if (!_theInit && dict[@"init"] && ![dict[@"init"] isKindOfClass:NSNull.class]) return nil;
52395263 }
@@ -5329,6 +5353,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
53295353 @"inline": [_obj2Inline JSONDictionary],
53305354 @"int": [_obj2Int JSONDictionary],
53315355 @"false": [_theFalse JSONDictionary],
5356+ @"hashCode": [_theHashCode JSONDictionary],
53325357 @"init": [_theInit JSONDictionary],
53335358 }];
53345359
@@ -8214,6 +8239,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
82148239 }
82158240 @end
82168241
8242+@implementation QTHashCode
8243++ (NSDictionary<NSString *, NSString *> *)properties
8244+{
8245+ static NSDictionary<NSString *, NSString *> *properties;
8246+ return properties = properties ? properties : @{
8247+ @"hashCode": @"theHashCode",
8248+ };
8249+}
8250+
8251++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
8252+{
8253+ return [dict isKindOfClass:NSDictionary.class] ? [[QTHashCode alloc] initWithJSONDictionary:dict] : nil;
8254+}
8255+
8256+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8257+{
8258+ if (self = [super init]) {
8259+ if (![dict[@"hashCode"] isKindOfClass:NSNumber.class]) return nil;
8260+ if ([dict[@"hashCode"] doubleValue] != [dict[@"hashCode"] longLongValue]) return nil;
8261+ [self setValuesForKeysWithDictionary:dict];
8262+ }
8263+ return self;
8264+}
8265+
8266+- (void)setValue:(nullable id)value forKey:(NSString *)key
8267+{
8268+ id resolved = QTHashCode.properties[key];
8269+ if (resolved) [super setValue:value forKey:resolved];
8270+}
8271+
8272+- (void)setNilValueForKey:(NSString *)key
8273+{
8274+ id resolved = QTHashCode.properties[key];
8275+ if (resolved) [super setValue:@(0) forKey:resolved];
8276+}
8277+
8278+- (NSDictionary *)JSONDictionary
8279+{
8280+ id dict = [[self dictionaryWithValuesForKeys:QTHashCode.properties.allValues] mutableCopy];
8281+
8282+ for (id jsonName in QTHashCode.properties) {
8283+ id propertyName = QTHashCode.properties[jsonName];
8284+ if (![jsonName isEqualToString:propertyName]) {
8285+ dict[jsonName] = dict[propertyName];
8286+ [dict removeObjectForKey:propertyName];
8287+ }
8288+ }
8289+
8290+ return dict;
8291+}
8292+@end
8293+
82178294 @implementation QTInit
82188295 + (NSDictionary<NSString *, NSString *> *)properties
82198296 {
@@ -8297,6 +8374,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
82978374 @"native": @"native",
82988375 @"newtonsoft": @"newtonsoft",
82998376 @"NO": @"no",
8377+ @"noSuchMethod": @"noSuchMethod",
83008378 @"noexcept": @"noexcept",
83018379 @"None": @"none",
83028380 @"nonlocal": @"nonlocal",
@@ -8375,6 +8453,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
83758453 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
83768454 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
83778455 if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
8456+ if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
83788457 if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
83798458 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
83808459 if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8466,6 +8545,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
84668545 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
84678546 _no = [QTNo fromJSONDictionary:(id)_no];
84688547 if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
8548+ _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
8549+ if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
84698550 _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
84708551 if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
84718552 _none = [QTNone fromJSONDictionary:(id)_none];
@@ -8600,6 +8681,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86008681 @"native": [_native JSONDictionary],
86018682 @"newtonsoft": [_newtonsoft JSONDictionary],
86028683 @"NO": [_no JSONDictionary],
8684+ @"noSuchMethod": [_noSuchMethod JSONDictionary],
86038685 @"noexcept": [_noexcept JSONDictionary],
86048686 @"None": [_none JSONDictionary],
86058687 @"nonlocal": [_nonlocal JSONDictionary],
@@ -9756,6 +9838,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
97569838 }
97579839 @end
97589840
9841+@implementation QTNoSuchMethod
9842++ (NSDictionary<NSString *, NSString *> *)properties
9843+{
9844+ static NSDictionary<NSString *, NSString *> *properties;
9845+ return properties = properties ? properties : @{
9846+ @"noSuchMethod": @"noSuchMethod",
9847+ };
9848+}
9849+
9850++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9851+{
9852+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNoSuchMethod alloc] initWithJSONDictionary:dict] : nil;
9853+}
9854+
9855+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9856+{
9857+ if (self = [super init]) {
9858+ if (![dict[@"noSuchMethod"] isKindOfClass:NSNumber.class]) return nil;
9859+ if ([dict[@"noSuchMethod"] doubleValue] != [dict[@"noSuchMethod"] longLongValue]) return nil;
9860+ [self setValuesForKeysWithDictionary:dict];
9861+ }
9862+ return self;
9863+}
9864+
9865+- (void)setValue:(nullable id)value forKey:(NSString *)key
9866+{
9867+ id resolved = QTNoSuchMethod.properties[key];
9868+ if (resolved) [super setValue:value forKey:resolved];
9869+}
9870+
9871+- (void)setNilValueForKey:(NSString *)key
9872+{
9873+ id resolved = QTNoSuchMethod.properties[key];
9874+ if (resolved) [super setValue:@(0) forKey:resolved];
9875+}
9876+
9877+- (NSDictionary *)JSONDictionary
9878+{
9879+ return [self dictionaryWithValuesForKeys:QTNoSuchMethod.properties.allValues];
9880+}
9881+@end
9882+
97599883 @implementation QTNoexcept
97609884 + (NSDictionary<NSString *, NSString *> *)properties
97619885 {
@@ -11570,6 +11694,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1157011694 @"requires": @"requires",
1157111695 @"rethrows": @"rethrows",
1157211696 @"right": @"right",
11697+ @"runtimeType": @"runtimeType",
1157311698 @"s": @"s",
1157411699 @"sbyte": @"sbyte",
1157511700 @"sealed": @"sealed",
@@ -11596,6 +11721,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1159611721 @"throw": @"throw",
1159711722 @"throws": @"throws",
1159811723 @"to_json": @"toJSON",
11724+ @"toString": @"toString",
1159911725 @"top_level": @"topLevel",
1160011726 @"transient": @"transient",
1160111727 @"try": @"try",
@@ -11648,6 +11774,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1164811774 if (![dict[@"requires"] isKindOfClass:NSDictionary.class]) return nil;
1164911775 if (![dict[@"rethrows"] isKindOfClass:NSDictionary.class]) return nil;
1165011776 if (![dict[@"right"] isKindOfClass:NSDictionary.class]) return nil;
11777+ if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil;
1165111778 if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil;
1165211779 if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
1165311780 if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
@@ -11674,6 +11801,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1167411801 if (![dict[@"throw"] isKindOfClass:NSDictionary.class]) return nil;
1167511802 if (![dict[@"throws"] isKindOfClass:NSDictionary.class]) return nil;
1167611803 if (![dict[@"to_json"] isKindOfClass:NSDictionary.class]) return nil;
11804+ if (![dict[@"toString"] isKindOfClass:NSDictionary.class]) return nil;
1167711805 if (![dict[@"top_level"] isKindOfClass:NSDictionary.class]) return nil;
1167811806 if (![dict[@"transient"] isKindOfClass:NSDictionary.class]) return nil;
1167911807 if (![dict[@"try"] isKindOfClass:NSDictionary.class]) return nil;
@@ -11742,6 +11870,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1174211870 if (!_rethrows && dict[@"rethrows"] && ![dict[@"rethrows"] isKindOfClass:NSNull.class]) return nil;
1174311871 _right = [QTRight fromJSONDictionary:(id)_right];
1174411872 if (!_right && dict[@"right"] && ![dict[@"right"] isKindOfClass:NSNull.class]) return nil;
11873+ _runtimeType = [QTRuntimeType fromJSONDictionary:(id)_runtimeType];
11874+ if (!_runtimeType && dict[@"runtimeType"] && ![dict[@"runtimeType"] isKindOfClass:NSNull.class]) return nil;
1174511875 _s = [QTS fromJSONDictionary:(id)_s];
1174611876 if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil;
1174711877 _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte];
@@ -11794,6 +11924,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1179411924 if (!_throws && dict[@"throws"] && ![dict[@"throws"] isKindOfClass:NSNull.class]) return nil;
1179511925 _toJSON = [QTToJSON fromJSONDictionary:(id)_toJSON];
1179611926 if (!_toJSON && dict[@"to_json"] && ![dict[@"to_json"] isKindOfClass:NSNull.class]) return nil;
11927+ _toString = [QTToString fromJSONDictionary:(id)_toString];
11928+ if (!_toString && dict[@"toString"] && ![dict[@"toString"] isKindOfClass:NSNull.class]) return nil;
1179711929 _topLevel = [QTTopLevelClass fromJSONDictionary:(id)_topLevel];
1179811930 if (!_topLevel && dict[@"top_level"] && ![dict[@"top_level"] isKindOfClass:NSNull.class]) return nil;
1179911931 _transient = [QTTransient fromJSONDictionary:(id)_transient];
@@ -11873,6 +12005,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1187312005 @"requires": [_requires JSONDictionary],
1187412006 @"rethrows": [_rethrows JSONDictionary],
1187512007 @"right": [_right JSONDictionary],
12008+ @"runtimeType": [_runtimeType JSONDictionary],
1187612009 @"s": [_s JSONDictionary],
1187712010 @"sbyte": [_sbyte JSONDictionary],
1187812011 @"sealed": [_sealed JSONDictionary],
@@ -11899,6 +12032,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1189912032 @"throw": [_throw JSONDictionary],
1190012033 @"throws": [_throws JSONDictionary],
1190112034 @"to_json": [_toJSON JSONDictionary],
12035+ @"toString": [_toString JSONDictionary],
1190212036 @"top_level": [_topLevel JSONDictionary],
1190312037 @"transient": [_transient JSONDictionary],
1190412038 @"try": [_try JSONDictionary],
@@ -13232,6 +13366,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1323213366 }
1323313367 @end
1323413368
13369+@implementation QTRuntimeType
13370++ (NSDictionary<NSString *, NSString *> *)properties
13371+{
13372+ static NSDictionary<NSString *, NSString *> *properties;
13373+ return properties = properties ? properties : @{
13374+ @"runtimeType": @"runtimeType",
13375+ };
13376+}
13377+
13378++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13379+{
13380+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRuntimeType alloc] initWithJSONDictionary:dict] : nil;
13381+}
13382+
13383+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13384+{
13385+ if (self = [super init]) {
13386+ if (![dict[@"runtimeType"] isKindOfClass:NSNumber.class]) return nil;
13387+ if ([dict[@"runtimeType"] doubleValue] != [dict[@"runtimeType"] longLongValue]) return nil;
13388+ [self setValuesForKeysWithDictionary:dict];
13389+ }
13390+ return self;
13391+}
13392+
13393+- (void)setValue:(nullable id)value forKey:(NSString *)key
13394+{
13395+ id resolved = QTRuntimeType.properties[key];
13396+ if (resolved) [super setValue:value forKey:resolved];
13397+}
13398+
13399+- (void)setNilValueForKey:(NSString *)key
13400+{
13401+ id resolved = QTRuntimeType.properties[key];
13402+ if (resolved) [super setValue:@(0) forKey:resolved];
13403+}
13404+
13405+- (NSDictionary *)JSONDictionary
13406+{
13407+ return [self dictionaryWithValuesForKeys:QTRuntimeType.properties.allValues];
13408+}
13409+@end
13410+
1323513411 @implementation QTS
1323613412 + (NSDictionary<NSString *, NSString *> *)properties
1323713413 {
@@ -14394,6 +14570,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1439414570 }
1439514571 @end
1439614572
14573+@implementation QTToString
14574++ (NSDictionary<NSString *, NSString *> *)properties
14575+{
14576+ static NSDictionary<NSString *, NSString *> *properties;
14577+ return properties = properties ? properties : @{
14578+ @"toString": @"toString",
14579+ };
14580+}
14581+
14582++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
14583+{
14584+ return [dict isKindOfClass:NSDictionary.class] ? [[QTToString alloc] initWithJSONDictionary:dict] : nil;
14585+}
14586+
14587+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
14588+{
14589+ if (self = [super init]) {
14590+ if (![dict[@"toString"] isKindOfClass:NSNumber.class]) return nil;
14591+ if ([dict[@"toString"] doubleValue] != [dict[@"toString"] longLongValue]) return nil;
14592+ [self setValuesForKeysWithDictionary:dict];
14593+ }
14594+ return self;
14595+}
14596+
14597+- (void)setValue:(nullable id)value forKey:(NSString *)key
14598+{
14599+ id resolved = QTToString.properties[key];
14600+ if (resolved) [super setValue:value forKey:resolved];
14601+}
14602+
14603+- (void)setNilValueForKey:(NSString *)key
14604+{
14605+ id resolved = QTToString.properties[key];
14606+ if (resolved) [super setValue:@(0) forKey:resolved];
14607+}
14608+
14609+- (NSDictionary *)JSONDictionary
14610+{
14611+ return [self dictionaryWithValuesForKeys:QTToString.properties.allValues];
14612+}
14613+@end
14614+
1439714615 @implementation QTTopLevelClass
1439814616 + (NSDictionary<NSString *, NSString *> *)properties
1439914617 {
Mphpdefault / TopLevel.php+739 −103
@@ -10880,6 +10880,7 @@ class Obj2 {
1088010880 private GotoClass $goto; // json:goto Required
1088110881 private Guard $guard; // json:guard Required
1088210882 private HasOwnProperty $hasOwnProperty; // json:hasOwnProperty Required
10883+ private HashCode $hashCode; // json:hashCode Required
1088310884 private ID $id; // json:id Required
1088410885 private IfClass $if; // json:if Required
1088510886 private Imp $imp; // json:IMP Required
@@ -10948,6 +10949,7 @@ class Obj2 {
1094810949 * @param GotoClass $goto
1094910950 * @param Guard $guard
1095010951 * @param HasOwnProperty $hasOwnProperty
10952+ * @param HashCode $hashCode
1095110953 * @param ID $id
1095210954 * @param IfClass $if
1095310955 * @param Imp $imp
@@ -10966,7 +10968,7 @@ class Obj2 {
1096610968 * @param Internal $internal
1096710969 * @param Obj2False $obj2False
1096810970 */
10969- public function __construct(Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, EnumClass $enum, EqualityContract $equalityContract, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, Friend $friend, From $from, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, 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, Obj2False $obj2False) {
10971+ public function __construct(Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, EnumClass $enum, EqualityContract $equalityContract, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, Friend $friend, From $from, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, 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, Obj2False $obj2False) {
1097010972 $this->def = $def;
1097110973 $this->default = $default;
1097210974 $this->defer = $defer;
@@ -11016,6 +11018,7 @@ class Obj2 {
1101611018 $this->goto = $goto;
1101711019 $this->guard = $guard;
1101811020 $this->hasOwnProperty = $hasOwnProperty;
11021+ $this->hashCode = $hashCode;
1101911022 $this->id = $id;
1102011023 $this->if = $if;
1102111024 $this->imp = $imp;
@@ -13386,6 +13389,54 @@ class Obj2 {
1338613389 return HasOwnProperty::sample(); /*79:hasOwnProperty*/
1338713390 }
1338813391
13392+ /**
13393+ * @param stdClass $value
13394+ * @throws Exception
13395+ * @return HashCode
13396+ */
13397+ public static function fromHashCode(stdClass $value): HashCode {
13398+ return HashCode::from($value); /*class*/
13399+ }
13400+
13401+ /**
13402+ * @throws Exception
13403+ * @return stdClass
13404+ */
13405+ public function toHashCode(): stdClass {
13406+ if (Obj2::validateHashCode($this->hashCode)) {
13407+ return $this->hashCode->to(); /*class*/
13408+ }
13409+ throw new Exception('never get to this Obj2::hashCode');
13410+ }
13411+
13412+ /**
13413+ * @param HashCode
13414+ * @return bool
13415+ * @throws Exception
13416+ */
13417+ public static function validateHashCode(HashCode $value): bool {
13418+ $value->validate();
13419+ return true;
13420+ }
13421+
13422+ /**
13423+ * @throws Exception
13424+ * @return HashCode
13425+ */
13426+ public function getHashCode(): HashCode {
13427+ if (Obj2::validateHashCode($this->hashCode)) {
13428+ return $this->hashCode;
13429+ }
13430+ throw new Exception('never get to getHashCode Obj2::hashCode');
13431+ }
13432+
13433+ /**
13434+ * @return HashCode
13435+ */
13436+ public static function sampleHashCode(): HashCode {
13437+ return HashCode::sample(); /*80:hashCode*/
13438+ }
13439+
1338913440 /**
1339013441 * @param stdClass $value
1339113442 * @throws Exception
@@ -13431,7 +13482,7 @@ class Obj2 {
1343113482 * @return ID
1343213483 */
1343313484 public static function sampleID(): ID {
13434- return ID::sample(); /*80:id*/
13485+ return ID::sample(); /*81:id*/
1343513486 }
1343613487
1343713488 /**
@@ -13479,7 +13530,7 @@ class Obj2 {
1347913530 * @return IfClass
1348013531 */
1348113532 public static function sampleIf(): IfClass {
13482- return IfClass::sample(); /*81:if*/
13533+ return IfClass::sample(); /*82:if*/
1348313534 }
1348413535
1348513536 /**
@@ -13527,7 +13578,7 @@ class Obj2 {
1352713578 * @return Imp
1352813579 */
1352913580 public static function sampleImp(): Imp {
13530- return Imp::sample(); /*82:imp*/
13581+ return Imp::sample(); /*83:imp*/
1353113582 }
1353213583
1353313584 /**
@@ -13575,7 +13626,7 @@ class Obj2 {
1357513626 * @return ImplementsClass
1357613627 */
1357713628 public static function sampleImplements(): ImplementsClass {
13578- return ImplementsClass::sample(); /*83:implements*/
13629+ return ImplementsClass::sample(); /*84:implements*/
1357913630 }
1358013631
1358113632 /**
@@ -13623,7 +13674,7 @@ class Obj2 {
1362313674 * @return Implicit
1362413675 */
1362513676 public static function sampleImplicit(): Implicit {
13626- return Implicit::sample(); /*84:implicit*/
13677+ return Implicit::sample(); /*85:implicit*/
1362713678 }
1362813679
1362913680 /**
@@ -13671,7 +13722,7 @@ class Obj2 {
1367113722 * @return Import
1367213723 */
1367313724 public static function sampleImport(): Import {
13674- return Import::sample(); /*85:import*/
13725+ return Import::sample(); /*86:import*/
1367513726 }
1367613727
1367713728 /**
@@ -13719,7 +13770,7 @@ class Obj2 {
1371913770 * @return In
1372013771 */
1372113772 public static function sampleIn(): In {
13722- return In::sample(); /*86:in*/
13773+ return In::sample(); /*87:in*/
1372313774 }
1372413775
1372513776 /**
@@ -13767,7 +13818,7 @@ class Obj2 {
1376713818 * @return Indirect
1376813819 */
1376913820 public static function sampleIndirect(): Indirect {
13770- return Indirect::sample(); /*87:indirect*/
13821+ return Indirect::sample(); /*88:indirect*/
1377113822 }
1377213823
1377313824 /**
@@ -13815,7 +13866,7 @@ class Obj2 {
1381513866 * @return Infix
1381613867 */
1381713868 public static function sampleInfix(): Infix {
13818- return Infix::sample(); /*88:infix*/
13869+ return Infix::sample(); /*89:infix*/
1381913870 }
1382013871
1382113872 /**
@@ -13863,7 +13914,7 @@ class Obj2 {
1386313914 * @return Init
1386413915 */
1386513916 public static function sampleInit(): Init {
13866- return Init::sample(); /*89:init*/
13917+ return Init::sample(); /*90:init*/
1386713918 }
1386813919
1386913920 /**
@@ -13911,7 +13962,7 @@ class Obj2 {
1391113962 * @return Inline
1391213963 */
1391313964 public static function sampleInline(): Inline {
13914- return Inline::sample(); /*90:inline*/
13965+ return Inline::sample(); /*91:inline*/
1391513966 }
1391613967
1391713968 /**
@@ -13959,7 +14010,7 @@ class Obj2 {
1395914010 * @return Inout
1396014011 */
1396114012 public static function sampleInout(): Inout {
13962- return Inout::sample(); /*91:inout*/
14013+ return Inout::sample(); /*92:inout*/
1396314014 }
1396414015
1396514016 /**
@@ -14007,7 +14058,7 @@ class Obj2 {
1400714058 * @return InstanceofClass
1400814059 */
1400914060 public static function sampleInstanceof(): InstanceofClass {
14010- return InstanceofClass::sample(); /*92:instanceof*/
14061+ return InstanceofClass::sample(); /*93:instanceof*/
1401114062 }
1401214063
1401314064 /**
@@ -14055,7 +14106,7 @@ class Obj2 {
1405514106 * @return IntClass
1405614107 */
1405714108 public static function sampleInt(): IntClass {
14058- return IntClass::sample(); /*93:int*/
14109+ return IntClass::sample(); /*94:int*/
1405914110 }
1406014111
1406114112 /**
@@ -14103,7 +14154,7 @@ class Obj2 {
1410314154 * @return InterfaceClass
1410414155 */
1410514156 public static function sampleInterface(): InterfaceClass {
14106- return InterfaceClass::sample(); /*94:interface*/
14157+ return InterfaceClass::sample(); /*95:interface*/
1410714158 }
1410814159
1410914160 /**
@@ -14151,7 +14202,7 @@ class Obj2 {
1415114202 * @return Internal
1415214203 */
1415314204 public static function sampleInternal(): Internal {
14154- return Internal::sample(); /*95:internal*/
14205+ return Internal::sample(); /*96:internal*/
1415514206 }
1415614207
1415714208 /**
@@ -14199,7 +14250,7 @@ class Obj2 {
1419914250 * @return Obj2False
1420014251 */
1420114252 public static function sampleObj2False(): Obj2False {
14202- return Obj2False::sample(); /*96:obj2False*/
14253+ return Obj2False::sample(); /*97:obj2False*/
1420314254 }
1420414255
1420514256 /**
@@ -14256,6 +14307,7 @@ class Obj2 {
1425614307 || Obj2::validateGoto($this->goto)
1425714308 || Obj2::validateGuard($this->guard)
1425814309 || Obj2::validateHasOwnProperty($this->hasOwnProperty)
14310+ || Obj2::validateHashCode($this->hashCode)
1425914311 || Obj2::validateID($this->id)
1426014312 || Obj2::validateIf($this->if)
1426114313 || Obj2::validateImp($this->imp)
@@ -14330,6 +14382,7 @@ class Obj2 {
1433014382 $out->{'goto'} = $this->toGoto();
1433114383 $out->{'guard'} = $this->toGuard();
1433214384 $out->{'hasOwnProperty'} = $this->toHasOwnProperty();
14385+ $out->{'hashCode'} = $this->toHashCode();
1433314386 $out->{'id'} = $this->toID();
1433414387 $out->{'if'} = $this->toIf();
1433514388 $out->{'IMP'} = $this->toImp();
@@ -14503,6 +14556,9 @@ class Obj2 {
1450314556 if (!property_exists($obj, 'hasOwnProperty')) {
1450414557 throw new Exception("Missing required property");
1450514558 }
14559+ if (!property_exists($obj, 'hashCode')) {
14560+ throw new Exception("Missing required property");
14561+ }
1450614562 if (!property_exists($obj, 'id')) {
1450714563 throw new Exception("Missing required property");
1450814564 }
@@ -14604,6 +14660,7 @@ class Obj2 {
1460414660 ,Obj2::fromGoto($obj->{'goto'})
1460514661 ,Obj2::fromGuard($obj->{'guard'})
1460614662 ,Obj2::fromHasOwnProperty($obj->{'hasOwnProperty'})
14663+ ,Obj2::fromHashCode($obj->{'hashCode'})
1460714664 ,Obj2::fromID($obj->{'id'})
1460814665 ,Obj2::fromIf($obj->{'if'})
1460914666 ,Obj2::fromImp($obj->{'IMP'})
@@ -14678,6 +14735,7 @@ class Obj2 {
1467814735 ,Obj2::sampleGoto()
1467914736 ,Obj2::sampleGuard()
1468014737 ,Obj2::sampleHasOwnProperty()
14738+ ,Obj2::sampleHashCode()
1468114739 ,Obj2::sampleID()
1468214740 ,Obj2::sampleIf()
1468314741 ,Obj2::sampleImp()
@@ -19547,6 +19605,107 @@ class HasOwnProperty {
1954719605 }
1954819606 }
1954919607
19608+// This is an autogenerated file:HashCode
19609+
19610+class HashCode {
19611+ private int $hashCode; // json:hashCode Required
19612+
19613+ /**
19614+ * @param int $hashCode
19615+ */
19616+ public function __construct(int $hashCode) {
19617+ $this->hashCode = $hashCode;
19618+ }
19619+
19620+ /**
19621+ * @param int $value
19622+ * @throws Exception
19623+ * @return int
19624+ */
19625+ public static function fromHashCode(int $value): int {
19626+ return $value; /*int*/
19627+ }
19628+
19629+ /**
19630+ * @throws Exception
19631+ * @return int
19632+ */
19633+ public function toHashCode(): int {
19634+ if (HashCode::validateHashCode($this->hashCode)) {
19635+ return $this->hashCode; /*int*/
19636+ }
19637+ throw new Exception('never get to this HashCode::hashCode');
19638+ }
19639+
19640+ /**
19641+ * @param int
19642+ * @return bool
19643+ * @throws Exception
19644+ */
19645+ public static function validateHashCode(int $value): bool {
19646+ return true;
19647+ }
19648+
19649+ /**
19650+ * @throws Exception
19651+ * @return int
19652+ */
19653+ public function getHashCode(): int {
19654+ if (HashCode::validateHashCode($this->hashCode)) {
19655+ return $this->hashCode;
19656+ }
19657+ throw new Exception('never get to getHashCode HashCode::hashCode');
19658+ }
19659+
19660+ /**
19661+ * @return int
19662+ */
19663+ public static function sampleHashCode(): int {
19664+ return 31; /*31:hashCode*/
19665+ }
19666+
19667+ /**
19668+ * @throws Exception
19669+ * @return bool
19670+ */
19671+ public function validate(): bool {
19672+ return HashCode::validateHashCode($this->hashCode);
19673+ }
19674+
19675+ /**
19676+ * @return stdClass
19677+ * @throws Exception
19678+ */
19679+ public function to(): stdClass {
19680+ $out = new stdClass();
19681+ $out->{'hashCode'} = $this->toHashCode();
19682+ return $out;
19683+ }
19684+
19685+ /**
19686+ * @param stdClass $obj
19687+ * @return HashCode
19688+ * @throws Exception
19689+ */
19690+ public static function from(stdClass $obj): HashCode {
19691+ if (!property_exists($obj, 'hashCode')) {
19692+ throw new Exception("Missing required property");
19693+ }
19694+ return new HashCode(
19695+ HashCode::fromHashCode($obj->{'hashCode'})
19696+ );
19697+ }
19698+
19699+ /**
19700+ * @return HashCode
19701+ */
19702+ public static function sample(): HashCode {
19703+ return new HashCode(
19704+ HashCode::sampleHashCode()
19705+ );
19706+ }
19707+}
19708+
1955019709 // This is an autogenerated file:ID
1955119710
1955219711 class ID {
@@ -21296,6 +21455,7 @@ class Obj3 {
2129621455 private Newtonsoft $newtonsoft; // json:newtonsoft Required
2129721456 private Nil $nil; // json:nil Required
2129821457 private No $no; // json:NO Required
21458+ private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required
2129921459 private Noexcept $noexcept; // json:noexcept Required
2130021460 private Nonatomic $nonatomic; // json:nonatomic Required
2130121461 private None $none; // json:None Required
@@ -21364,6 +21524,7 @@ class Obj3 {
2136421524 * @param Newtonsoft $newtonsoft
2136521525 * @param Nil $nil
2136621526 * @param No $no
21527+ * @param NoSuchMethod $noSuchMethod
2136721528 * @param Noexcept $noexcept
2136821529 * @param Nonatomic $nonatomic
2136921530 * @param None $none
@@ -21402,7 +21563,7 @@ class Obj3 {
2140221563 * @param ProtectedClass $protected
2140321564 * @param Protocol $protocol
2140421565 */
21405- public function __construct(int $dummy, Is $is, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONConverter $jsonConverter, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, Lock $lock, Long $long, Map $map, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj3None, Obj3Null $obj3Null, ProtocolClass $obj3Protocol, ObjectClass $object, 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) {
21566+ public function __construct(int $dummy, Is $is, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONConverter $jsonConverter, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, Lock $lock, Long $long, Map $map, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj3None, Obj3Null $obj3Null, ProtocolClass $obj3Protocol, ObjectClass $object, 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) {
2140621567 $this->dummy = $dummy;
2140721568 $this->is = $is;
2140821569 $this->iterable = $iterable;
@@ -21432,6 +21593,7 @@ class Obj3 {
2143221593 $this->newtonsoft = $newtonsoft;
2143321594 $this->nil = $nil;
2143421595 $this->no = $no;
21596+ $this->noSuchMethod = $noSuchMethod;
2143521597 $this->noexcept = $noexcept;
2143621598 $this->nonatomic = $nonatomic;
2143721599 $this->none = $none;
@@ -22862,6 +23024,54 @@ class Obj3 {
2286223024 return No::sample(); /*59:no*/
2286323025 }
2286423026
23027+ /**
23028+ * @param stdClass $value
23029+ * @throws Exception
23030+ * @return NoSuchMethod
23031+ */
23032+ public static function fromNoSuchMethod(stdClass $value): NoSuchMethod {
23033+ return NoSuchMethod::from($value); /*class*/
23034+ }
23035+
23036+ /**
23037+ * @throws Exception
23038+ * @return stdClass
23039+ */
23040+ public function toNoSuchMethod(): stdClass {
23041+ if (Obj3::validateNoSuchMethod($this->noSuchMethod)) {
23042+ return $this->noSuchMethod->to(); /*class*/
23043+ }
23044+ throw new Exception('never get to this Obj3::noSuchMethod');
23045+ }
23046+
23047+ /**
23048+ * @param NoSuchMethod
23049+ * @return bool
23050+ * @throws Exception
23051+ */
23052+ public static function validateNoSuchMethod(NoSuchMethod $value): bool {
23053+ $value->validate();
23054+ return true;
23055+ }
23056+
23057+ /**
23058+ * @throws Exception
23059+ * @return NoSuchMethod
23060+ */
23061+ public function getNoSuchMethod(): NoSuchMethod {
23062+ if (Obj3::validateNoSuchMethod($this->noSuchMethod)) {
23063+ return $this->noSuchMethod;
23064+ }
23065+ throw new Exception('never get to getNoSuchMethod Obj3::noSuchMethod');
23066+ }
23067+
23068+ /**
23069+ * @return NoSuchMethod
23070+ */
23071+ public static function sampleNoSuchMethod(): NoSuchMethod {
23072+ return NoSuchMethod::sample(); /*60:noSuchMethod*/
23073+ }
23074+
2286523075 /**
2286623076 * @param stdClass $value
2286723077 * @throws Exception
@@ -22907,7 +23117,7 @@ class Obj3 {
2290723117 * @return Noexcept
2290823118 */
2290923119 public static function sampleNoexcept(): Noexcept {
22910- return Noexcept::sample(); /*60:noexcept*/
23120+ return Noexcept::sample(); /*61:noexcept*/
2291123121 }
2291223122
2291323123 /**
@@ -22955,7 +23165,7 @@ class Obj3 {
2295523165 * @return Nonatomic
2295623166 */
2295723167 public static function sampleNonatomic(): Nonatomic {
22958- return Nonatomic::sample(); /*61:nonatomic*/
23168+ return Nonatomic::sample(); /*62:nonatomic*/
2295923169 }
2296023170
2296123171 /**
@@ -23003,7 +23213,7 @@ class Obj3 {
2300323213 * @return None
2300423214 */
2300523215 public static function sampleNone(): None {
23006- return None::sample(); /*62:none*/
23216+ return None::sample(); /*63:none*/
2300723217 }
2300823218
2300923219 /**
@@ -23051,7 +23261,7 @@ class Obj3 {
2305123261 * @return Nonlocal
2305223262 */
2305323263 public static function sampleNonlocal(): Nonlocal {
23054- return Nonlocal::sample(); /*63:nonlocal*/
23264+ return Nonlocal::sample(); /*64:nonlocal*/
2305523265 }
2305623266
2305723267 /**
@@ -23099,7 +23309,7 @@ class Obj3 {
2309923309 * @return Nonmutating
2310023310 */
2310123311 public static function sampleNonmutating(): Nonmutating {
23102- return Nonmutating::sample(); /*64:nonmutating*/
23312+ return Nonmutating::sample(); /*65:nonmutating*/
2310323313 }
2310423314
2310523315 /**
@@ -23147,7 +23357,7 @@ class Obj3 {
2314723357 * @return Not
2314823358 */
2314923359 public static function sampleNot(): Not {
23150- return Not::sample(); /*65:not*/
23360+ return Not::sample(); /*66:not*/
2315123361 }
2315223362
2315323363 /**
@@ -23195,7 +23405,7 @@ class Obj3 {
2319523405 * @return NotEq
2319623406 */
2319723407 public static function sampleNotEq(): NotEq {
23198- return NotEq::sample(); /*66:notEq*/
23408+ return NotEq::sample(); /*67:notEq*/
2319923409 }
2320023410
2320123411 /**
@@ -23243,7 +23453,7 @@ class Obj3 {
2324323453 * @return NSString
2324423454 */
2324523455 public static function sampleNSString(): NSString {
23246- return NSString::sample(); /*67:nsString*/
23456+ return NSString::sample(); /*68:nsString*/
2324723457 }
2324823458
2324923459 /**
@@ -23291,7 +23501,7 @@ class Obj3 {
2329123501 * @return NULLClass
2329223502 */
2329323503 public static function sampleNull(): NULLClass {
23294- return NULLClass::sample(); /*68:null*/
23504+ return NULLClass::sample(); /*69:null*/
2329523505 }
2329623506
2329723507 /**
@@ -23339,7 +23549,7 @@ class Obj3 {
2333923549 * @return Nullptr
2334023550 */
2334123551 public static function sampleNullptr(): Nullptr {
23342- return Nullptr::sample(); /*69:nullptr*/
23552+ return Nullptr::sample(); /*70:nullptr*/
2334323553 }
2334423554
2334523555 /**
@@ -23387,7 +23597,7 @@ class Obj3 {
2338723597 * @return Number
2338823598 */
2338923599 public static function sampleNumber(): Number {
23390- return Number::sample(); /*70:number*/
23600+ return Number::sample(); /*71:number*/
2339123601 }
2339223602
2339323603 /**
@@ -23435,7 +23645,7 @@ class Obj3 {
2343523645 * @return NoneClass
2343623646 */
2343723647 public static function sampleObj3None(): NoneClass {
23438- return NoneClass::sample(); /*71:obj3None*/
23648+ return NoneClass::sample(); /*72:obj3None*/
2343923649 }
2344023650
2344123651 /**
@@ -23483,7 +23693,7 @@ class Obj3 {
2348323693 * @return Obj3Null
2348423694 */
2348523695 public static function sampleObj3Null(): Obj3Null {
23486- return Obj3Null::sample(); /*72:obj3Null*/
23696+ return Obj3Null::sample(); /*73:obj3Null*/
2348723697 }
2348823698
2348923699 /**
@@ -23531,7 +23741,7 @@ class Obj3 {
2353123741 * @return ProtocolClass
2353223742 */
2353323743 public static function sampleObj3Protocol(): ProtocolClass {
23534- return ProtocolClass::sample(); /*73:obj3Protocol*/
23744+ return ProtocolClass::sample(); /*74:obj3Protocol*/
2353523745 }
2353623746
2353723747 /**
@@ -23579,7 +23789,7 @@ class Obj3 {
2357923789 * @return ObjectClass
2358023790 */
2358123791 public static function sampleObject(): ObjectClass {
23582- return ObjectClass::sample(); /*74:object*/
23792+ return ObjectClass::sample(); /*75:object*/
2358323793 }
2358423794
2358523795 /**
@@ -23627,7 +23837,7 @@ class Obj3 {
2362723837 * @return Of
2362823838 */
2362923839 public static function sampleOf(): Of {
23630- return Of::sample(); /*75:of*/
23840+ return Of::sample(); /*76:of*/
2363123841 }
2363223842
2363323843 /**
@@ -23675,7 +23885,7 @@ class Obj3 {
2367523885 * @return Oneway
2367623886 */
2367723887 public static function sampleOneway(): Oneway {
23678- return Oneway::sample(); /*76:oneway*/
23888+ return Oneway::sample(); /*77:oneway*/
2367923889 }
2368023890
2368123891 /**
@@ -23723,7 +23933,7 @@ class Obj3 {
2372323933 * @return Open
2372423934 */
2372523935 public static function sampleOpen(): Open {
23726- return Open::sample(); /*77:open*/
23936+ return Open::sample(); /*78:open*/
2372723937 }
2372823938
2372923939 /**
@@ -23771,7 +23981,7 @@ class Obj3 {
2377123981 * @return Operator
2377223982 */
2377323983 public static function sampleOperator(): Operator {
23774- return Operator::sample(); /*78:operator*/
23984+ return Operator::sample(); /*79:operator*/
2377523985 }
2377623986
2377723987 /**
@@ -23819,7 +24029,7 @@ class Obj3 {
2381924029 * @return Optional
2382024030 */
2382124031 public static function sampleOptional(): Optional {
23822- return Optional::sample(); /*79:optional*/
24032+ return Optional::sample(); /*80:optional*/
2382324033 }
2382424034
2382524035 /**
@@ -23867,7 +24077,7 @@ class Obj3 {
2386724077 * @return OrClass
2386824078 */
2386924079 public static function sampleOr(): OrClass {
23870- return OrClass::sample(); /*80:or*/
24080+ return OrClass::sample(); /*81:or*/
2387124081 }
2387224082
2387324083 /**
@@ -23915,7 +24125,7 @@ class Obj3 {
2391524125 * @return OrEq
2391624126 */
2391724127 public static function sampleOrEq(): OrEq {
23918- return OrEq::sample(); /*81:orEq*/
24128+ return OrEq::sample(); /*82:orEq*/
2391924129 }
2392024130
2392124131 /**
@@ -23963,7 +24173,7 @@ class Obj3 {
2396324173 * @return Out
2396424174 */
2396524175 public static function sampleOut(): Out {
23966- return Out::sample(); /*82:out*/
24176+ return Out::sample(); /*83:out*/
2396724177 }
2396824178
2396924179 /**
@@ -24011,7 +24221,7 @@ class Obj3 {
2401124221 * @return OverrideClass
2401224222 */
2401324223 public static function sampleOverride(): OverrideClass {
24014- return OverrideClass::sample(); /*83:override*/
24224+ return OverrideClass::sample(); /*84:override*/
2401524225 }
2401624226
2401724227 /**
@@ -24059,7 +24269,7 @@ class Obj3 {
2405924269 * @return Package
2406024270 */
2406124271 public static function samplePackage(): Package {
24062- return Package::sample(); /*84:package*/
24272+ return Package::sample(); /*85:package*/
2406324273 }
2406424274
2406524275 /**
@@ -24107,7 +24317,7 @@ class Obj3 {
2410724317 * @return Params
2410824318 */
2410924319 public static function sampleParams(): Params {
24110- return Params::sample(); /*85:params*/
24320+ return Params::sample(); /*86:params*/
2411124321 }
2411224322
2411324323 /**
@@ -24155,7 +24365,7 @@ class Obj3 {
2415524365 * @return Pass
2415624366 */
2415724367 public static function samplePass(): Pass {
24158- return Pass::sample(); /*86:pass*/
24368+ return Pass::sample(); /*87:pass*/
2415924369 }
2416024370
2416124371 /**
@@ -24203,7 +24413,7 @@ class Obj3 {
2420324413 * @return Port
2420424414 */
2420524415 public static function samplePort(): Port {
24206- return Port::sample(); /*87:port*/
24416+ return Port::sample(); /*88:port*/
2420724417 }
2420824418
2420924419 /**
@@ -24251,7 +24461,7 @@ class Obj3 {
2425124461 * @return Postfix
2425224462 */
2425324463 public static function samplePostfix(): Postfix {
24254- return Postfix::sample(); /*88:postfix*/
24464+ return Postfix::sample(); /*89:postfix*/
2425524465 }
2425624466
2425724467 /**
@@ -24299,7 +24509,7 @@ class Obj3 {
2429924509 * @return Precedence
2430024510 */
2430124511 public static function samplePrecedence(): Precedence {
24302- return Precedence::sample(); /*89:precedence*/
24512+ return Precedence::sample(); /*90:precedence*/
2430324513 }
2430424514
2430524515 /**
@@ -24347,7 +24557,7 @@ class Obj3 {
2434724557 * @return Prefix
2434824558 */
2434924559 public static function samplePrefix(): Prefix {
24350- return Prefix::sample(); /*90:prefix*/
24560+ return Prefix::sample(); /*91:prefix*/
2435124561 }
2435224562
2435324563 /**
@@ -24395,7 +24605,7 @@ class Obj3 {
2439524605 * @return PrintClass
2439624606 */
2439724607 public static function samplePrint(): PrintClass {
24398- return PrintClass::sample(); /*91:print*/
24608+ return PrintClass::sample(); /*92:print*/
2439924609 }
2440024610
2440124611 /**
@@ -24443,7 +24653,7 @@ class Obj3 {
2444324653 * @return PrintMembers
2444424654 */
2444524655 public static function samplePrintMembers(): PrintMembers {
24446- return PrintMembers::sample(); /*92:printMembers*/
24656+ return PrintMembers::sample(); /*93:printMembers*/
2444724657 }
2444824658
2444924659 /**
@@ -24491,7 +24701,7 @@ class Obj3 {
2449124701 * @return Printf
2449224702 */
2449324703 public static function samplePrintf(): Printf {
24494- return Printf::sample(); /*93:printf*/
24704+ return Printf::sample(); /*94:printf*/
2449524705 }
2449624706
2449724707 /**
@@ -24539,7 +24749,7 @@ class Obj3 {
2453924749 * @return PrivateClass
2454024750 */
2454124751 public static function samplePrivate(): PrivateClass {
24542- return PrivateClass::sample(); /*94:private*/
24752+ return PrivateClass::sample(); /*95:private*/
2454324753 }
2454424754
2454524755 /**
@@ -24587,7 +24797,7 @@ class Obj3 {
2458724797 * @return ProtectedClass
2458824798 */
2458924799 public static function sampleProtected(): ProtectedClass {
24590- return ProtectedClass::sample(); /*95:protected*/
24800+ return ProtectedClass::sample(); /*96:protected*/
2459124801 }
2459224802
2459324803 /**
@@ -24635,7 +24845,7 @@ class Obj3 {
2463524845 * @return Protocol
2463624846 */
2463724847 public static function sampleProtocol(): Protocol {
24638- return Protocol::sample(); /*96:protocol*/
24848+ return Protocol::sample(); /*97:protocol*/
2463924849 }
2464024850
2464124851 /**
@@ -24672,6 +24882,7 @@ class Obj3 {
2467224882 || Obj3::validateNewtonsoft($this->newtonsoft)
2467324883 || Obj3::validateNil($this->nil)
2467424884 || Obj3::validateNo($this->no)
24885+ || Obj3::validateNoSuchMethod($this->noSuchMethod)
2467524886 || Obj3::validateNoexcept($this->noexcept)
2467624887 || Obj3::validateNonatomic($this->nonatomic)
2467724888 || Obj3::validateNone($this->none)
@@ -24746,6 +24957,7 @@ class Obj3 {
2474624957 $out->{'newtonsoft'} = $this->toNewtonsoft();
2474724958 $out->{'nil'} = $this->toNil();
2474824959 $out->{'NO'} = $this->toNo();
24960+ $out->{'noSuchMethod'} = $this->toNoSuchMethod();
2474924961 $out->{'noexcept'} = $this->toNoexcept();
2475024962 $out->{'nonatomic'} = $this->toNonatomic();
2475124963 $out->{'None'} = $this->toNone();
@@ -24879,6 +25091,9 @@ class Obj3 {
2487925091 if (!property_exists($obj, 'NO')) {
2488025092 throw new Exception("Missing required property");
2488125093 }
25094+ if (!property_exists($obj, 'noSuchMethod')) {
25095+ throw new Exception("Missing required property");
25096+ }
2488225097 if (!property_exists($obj, 'noexcept')) {
2488325098 throw new Exception("Missing required property");
2488425099 }
@@ -25020,6 +25235,7 @@ class Obj3 {
2502025235 ,Obj3::fromNewtonsoft($obj->{'newtonsoft'})
2502125236 ,Obj3::fromNil($obj->{'nil'})
2502225237 ,Obj3::fromNo($obj->{'NO'})
25238+ ,Obj3::fromNoSuchMethod($obj->{'noSuchMethod'})
2502325239 ,Obj3::fromNoexcept($obj->{'noexcept'})
2502425240 ,Obj3::fromNonatomic($obj->{'nonatomic'})
2502525241 ,Obj3::fromNone($obj->{'None'})
@@ -25094,6 +25310,7 @@ class Obj3 {
2509425310 ,Obj3::sampleNewtonsoft()
2509525311 ,Obj3::sampleNil()
2509625312 ,Obj3::sampleNo()
25313+ ,Obj3::sampleNoSuchMethod()
2509725314 ,Obj3::sampleNoexcept()
2509825315 ,Obj3::sampleNonatomic()
2509925316 ,Obj3::sampleNone()
@@ -27963,6 +28180,107 @@ class No {
2796328180 }
2796428181 }
2796528182
28183+// This is an autogenerated file:NoSuchMethod
28184+
28185+class NoSuchMethod {
28186+ private int $noSuchMethod; // json:noSuchMethod Required
28187+
28188+ /**
28189+ * @param int $noSuchMethod
28190+ */
28191+ public function __construct(int $noSuchMethod) {
28192+ $this->noSuchMethod = $noSuchMethod;
28193+ }
28194+
28195+ /**
28196+ * @param int $value
28197+ * @throws Exception
28198+ * @return int
28199+ */
28200+ public static function fromNoSuchMethod(int $value): int {
28201+ return $value; /*int*/
28202+ }
28203+
28204+ /**
28205+ * @throws Exception
28206+ * @return int
28207+ */
28208+ public function toNoSuchMethod(): int {
28209+ if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
28210+ return $this->noSuchMethod; /*int*/
28211+ }
28212+ throw new Exception('never get to this NoSuchMethod::noSuchMethod');
28213+ }
28214+
28215+ /**
28216+ * @param int
28217+ * @return bool
28218+ * @throws Exception
28219+ */
28220+ public static function validateNoSuchMethod(int $value): bool {
28221+ return true;
28222+ }
28223+
28224+ /**
28225+ * @throws Exception
28226+ * @return int
28227+ */
28228+ public function getNoSuchMethod(): int {
28229+ if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) {
28230+ return $this->noSuchMethod;
28231+ }
28232+ throw new Exception('never get to getNoSuchMethod NoSuchMethod::noSuchMethod');
28233+ }
28234+
28235+ /**
28236+ * @return int
28237+ */
28238+ public static function sampleNoSuchMethod(): int {
28239+ return 31; /*31:noSuchMethod*/
28240+ }
28241+
28242+ /**
28243+ * @throws Exception
28244+ * @return bool
28245+ */
28246+ public function validate(): bool {
28247+ return NoSuchMethod::validateNoSuchMethod($this->noSuchMethod);
28248+ }
28249+
28250+ /**
28251+ * @return stdClass
28252+ * @throws Exception
28253+ */
28254+ public function to(): stdClass {
28255+ $out = new stdClass();
28256+ $out->{'noSuchMethod'} = $this->toNoSuchMethod();
28257+ return $out;
28258+ }
28259+
28260+ /**
28261+ * @param stdClass $obj
28262+ * @return NoSuchMethod
28263+ * @throws Exception
28264+ */
28265+ public static function from(stdClass $obj): NoSuchMethod {
28266+ if (!property_exists($obj, 'noSuchMethod')) {
28267+ throw new Exception("Missing required property");
28268+ }
28269+ return new NoSuchMethod(
28270+ NoSuchMethod::fromNoSuchMethod($obj->{'noSuchMethod'})
28271+ );
28272+ }
28273+
28274+ /**
28275+ * @return NoSuchMethod
28276+ */
28277+ public static function sample(): NoSuchMethod {
28278+ return new NoSuchMethod(
28279+ NoSuchMethod::sampleNoSuchMethod()
28280+ );
28281+ }
28282+}
28283+
2796628284 // This is an autogenerated file:Noexcept
2796728285
2796828286 class Noexcept {
@@ -31725,6 +32043,7 @@ class Obj4 {
3172532043 private Rethrows $rethrows; // json:rethrows Required
3172632044 private ReturnClass $return; // json:return Required
3172732045 private Right $right; // json:right Required
32046+ private RuntimeType $runtimeType; // json:runtimeType Required
3172832047 private S $s; // json:s Required
3172932048 private Sbyte $sbyte; // json:sbyte Required
3173032049 private Sealed $sealed; // json:sealed Required
@@ -31755,6 +32074,7 @@ class Obj4 {
3175532074 private ThrowClass $throw; // json:throw Required
3175632075 private Throws $throws; // json:throws Required
3175732076 private ToJSON $toJSON; // json:to_json Required
32077+ private ToString $toString; // json:toString Required
3175832078 private TopLevelClass $topLevel; // json:top_level Required
3175932079 private Transient $transient; // json:transient Required
3176032080 private TrueClass $true; // json:True Required
@@ -31793,6 +32113,7 @@ class Obj4 {
3179332113 * @param Rethrows $rethrows
3179432114 * @param ReturnClass $return
3179532115 * @param Right $right
32116+ * @param RuntimeType $runtimeType
3179632117 * @param S $s
3179732118 * @param Sbyte $sbyte
3179832119 * @param Sealed $sealed
@@ -31823,6 +32144,7 @@ class Obj4 {
3182332144 * @param ThrowClass $throw
3182432145 * @param Throws $throws
3182532146 * @param ToJSON $toJSON
32147+ * @param ToString $toString
3182632148 * @param TopLevelClass $topLevel
3182732149 * @param Transient $transient
3182832150 * @param TrueClass $true
@@ -31838,7 +32160,7 @@ class Obj4 {
3183832160 * @param Unchecked $unchecked
3183932161 * @param Undefined $undefined
3184032162 */
31841- public function __construct(int $dummy, Obj4Self $obj4Self, This $obj4This, Obj4True $obj4True, TypeClass $obj4Type, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Serialize $serialize, Set $set, Short $short, Signed $signed, Sizeof $sizeof, Stackalloc $stackalloc, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, 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, ToJSON $toJSON, 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) {
32163+ public function __construct(int $dummy, Obj4Self $obj4Self, This $obj4This, Obj4True $obj4True, TypeClass $obj4Type, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Serialize $serialize, Set $set, Short $short, Signed $signed, Sizeof $sizeof, Stackalloc $stackalloc, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, 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, 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) {
3184232164 $this->dummy = $dummy;
3184332165 $this->obj4Self = $obj4Self;
3184432166 $this->obj4This = $obj4This;
@@ -31861,6 +32183,7 @@ class Obj4 {
3186132183 $this->rethrows = $rethrows;
3186232184 $this->return = $return;
3186332185 $this->right = $right;
32186+ $this->runtimeType = $runtimeType;
3186432187 $this->s = $s;
3186532188 $this->sbyte = $sbyte;
3186632189 $this->sealed = $sealed;
@@ -31891,6 +32214,7 @@ class Obj4 {
3189132214 $this->throw = $throw;
3189232215 $this->throws = $throws;
3189332216 $this->toJSON = $toJSON;
32217+ $this->toString = $toString;
3189432218 $this->topLevel = $topLevel;
3189532219 $this->transient = $transient;
3189632220 $this->true = $true;
@@ -32962,6 +33286,54 @@ class Obj4 {
3296233286 return Right::sample(); /*52:right*/
3296333287 }
3296433288
33289+ /**
33290+ * @param stdClass $value
33291+ * @throws Exception
33292+ * @return RuntimeType
33293+ */
33294+ public static function fromRuntimeType(stdClass $value): RuntimeType {
33295+ return RuntimeType::from($value); /*class*/
33296+ }
33297+
33298+ /**
33299+ * @throws Exception
33300+ * @return stdClass
33301+ */
33302+ public function toRuntimeType(): stdClass {
33303+ if (Obj4::validateRuntimeType($this->runtimeType)) {
33304+ return $this->runtimeType->to(); /*class*/
33305+ }
33306+ throw new Exception('never get to this Obj4::runtimeType');
33307+ }
33308+
33309+ /**
33310+ * @param RuntimeType
33311+ * @return bool
33312+ * @throws Exception
33313+ */
33314+ public static function validateRuntimeType(RuntimeType $value): bool {
33315+ $value->validate();
33316+ return true;
33317+ }
33318+
33319+ /**
33320+ * @throws Exception
33321+ * @return RuntimeType
33322+ */
33323+ public function getRuntimeType(): RuntimeType {
33324+ if (Obj4::validateRuntimeType($this->runtimeType)) {
33325+ return $this->runtimeType;
33326+ }
33327+ throw new Exception('never get to getRuntimeType Obj4::runtimeType');
33328+ }
33329+
33330+ /**
33331+ * @return RuntimeType
33332+ */
33333+ public static function sampleRuntimeType(): RuntimeType {
33334+ return RuntimeType::sample(); /*53:runtimeType*/
33335+ }
33336+
3296533337 /**
3296633338 * @param stdClass $value
3296733339 * @throws Exception
@@ -33007,7 +33379,7 @@ class Obj4 {
3300733379 * @return S
3300833380 */
3300933381 public static function sampleS(): S {
33010- return S::sample(); /*53:s*/
33382+ return S::sample(); /*54:s*/
3301133383 }
3301233384
3301333385 /**
@@ -33055,7 +33427,7 @@ class Obj4 {
3305533427 * @return Sbyte
3305633428 */
3305733429 public static function sampleSbyte(): Sbyte {
33058- return Sbyte::sample(); /*54:sbyte*/
33430+ return Sbyte::sample(); /*55:sbyte*/
3305933431 }
3306033432
3306133433 /**
@@ -33103,7 +33475,7 @@ class Obj4 {
3310333475 * @return Sealed
3310433476 */
3310533477 public static function sampleSealed(): Sealed {
33106- return Sealed::sample(); /*55:sealed*/
33478+ return Sealed::sample(); /*56:sealed*/
3310733479 }
3310833480
3310933481 /**
@@ -33151,7 +33523,7 @@ class Obj4 {
3315133523 * @return Sel
3315233524 */
3315333525 public static function sampleSel(): Sel {
33154- return Sel::sample(); /*56:sel*/
33526+ return Sel::sample(); /*57:sel*/
3315533527 }
3315633528
3315733529 /**
@@ -33199,7 +33571,7 @@ class Obj4 {
3319933571 * @return Select
3320033572 */
3320133573 public static function sampleSelect(): Select {
33202- return Select::sample(); /*57:select*/
33574+ return Select::sample(); /*58:select*/
3320333575 }
3320433576
3320533577 /**
@@ -33247,7 +33619,7 @@ class Obj4 {
3324733619 * @return SelfClass
3324833620 */
3324933621 public static function sampleSelf(): SelfClass {
33250- return SelfClass::sample(); /*58:self*/
33622+ return SelfClass::sample(); /*59:self*/
3325133623 }
3325233624
3325333625 /**
@@ -33295,7 +33667,7 @@ class Obj4 {
3329533667 * @return Serialize
3329633668 */
3329733669 public static function sampleSerialize(): Serialize {
33298- return Serialize::sample(); /*59:serialize*/
33670+ return Serialize::sample(); /*60:serialize*/
3329933671 }
3330033672
3330133673 /**
@@ -33343,7 +33715,7 @@ class Obj4 {
3334333715 * @return Set
3334433716 */
3334533717 public static function sampleSet(): Set {
33346- return Set::sample(); /*60:set*/
33718+ return Set::sample(); /*61:set*/
3334733719 }
3334833720
3334933721 /**
@@ -33391,7 +33763,7 @@ class Obj4 {
3339133763 * @return Short
3339233764 */
3339333765 public static function sampleShort(): Short {
33394- return Short::sample(); /*61:short*/
33766+ return Short::sample(); /*62:short*/
3339533767 }
3339633768
3339733769 /**
@@ -33439,7 +33811,7 @@ class Obj4 {
3343933811 * @return Signed
3344033812 */
3344133813 public static function sampleSigned(): Signed {
33442- return Signed::sample(); /*62:signed*/
33814+ return Signed::sample(); /*63:signed*/
3344333815 }
3344433816
3344533817 /**
@@ -33487,7 +33859,7 @@ class Obj4 {
3348733859 * @return Sizeof
3348833860 */
3348933861 public static function sampleSizeof(): Sizeof {
33490- return Sizeof::sample(); /*63:sizeof*/
33862+ return Sizeof::sample(); /*64:sizeof*/
3349133863 }
3349233864
3349333865 /**
@@ -33535,7 +33907,7 @@ class Obj4 {
3353533907 * @return Stackalloc
3353633908 */
3353733909 public static function sampleStackalloc(): Stackalloc {
33538- return Stackalloc::sample(); /*64:stackalloc*/
33910+ return Stackalloc::sample(); /*65:stackalloc*/
3353933911 }
3354033912
3354133913 /**
@@ -33583,7 +33955,7 @@ class Obj4 {
3358333955 * @return StaticClass
3358433956 */
3358533957 public static function sampleStatic(): StaticClass {
33586- return StaticClass::sample(); /*65:static*/
33958+ return StaticClass::sample(); /*66:static*/
3358733959 }
3358833960
3358933961 /**
@@ -33631,7 +34003,7 @@ class Obj4 {
3363134003 * @return StaticAssert
3363234004 */
3363334005 public static function sampleStaticAssert(): StaticAssert {
33634- return StaticAssert::sample(); /*66:staticAssert*/
34006+ return StaticAssert::sample(); /*67:staticAssert*/
3363534007 }
3363634008
3363734009 /**
@@ -33679,7 +34051,7 @@ class Obj4 {
3367934051 * @return StaticCast
3368034052 */
3368134053 public static function sampleStaticCast(): StaticCast {
33682- return StaticCast::sample(); /*67:staticCast*/
34054+ return StaticCast::sample(); /*68:staticCast*/
3368334055 }
3368434056
3368534057 /**
@@ -33727,7 +34099,7 @@ class Obj4 {
3372734099 * @return Strictfp
3372834100 */
3372934101 public static function sampleStrictfp(): Strictfp {
33730- return Strictfp::sample(); /*68:strictfp*/
34102+ return Strictfp::sample(); /*69:strictfp*/
3373134103 }
3373234104
3373334105 /**
@@ -33743,7 +34115,7 @@ class Obj4 {
3374334115 * @throws Exception
3374434116 * @return stdClass
3374534117 */
33746- public function toString(): stdClass {
34118+ public function purpleToString(): stdClass {
3374734119 if (Obj4::validateString($this->string)) {
3374834120 return $this->string->to(); /*class*/
3374934121 }
@@ -33775,7 +34147,7 @@ class Obj4 {
3377534147 * @return StringClass
3377634148 */
3377734149 public static function sampleString(): StringClass {
33778- return StringClass::sample(); /*69:string*/
34150+ return StringClass::sample(); /*70:string*/
3377934151 }
3378034152
3378134153 /**
@@ -33823,7 +34195,7 @@ class Obj4 {
3382334195 * @return Struct
3382434196 */
3382534197 public static function sampleStruct(): Struct {
33826- return Struct::sample(); /*70:struct*/
34198+ return Struct::sample(); /*71:struct*/
3382734199 }
3382834200
3382934201 /**
@@ -33871,7 +34243,7 @@ class Obj4 {
3387134243 * @return Subscript
3387234244 */
3387334245 public static function sampleSubscript(): Subscript {
33874- return Subscript::sample(); /*71:subscript*/
34246+ return Subscript::sample(); /*72:subscript*/
3387534247 }
3387634248
3387734249 /**
@@ -33919,7 +34291,7 @@ class Obj4 {
3391934291 * @return Super
3392034292 */
3392134293 public static function sampleSuper(): Super {
33922- return Super::sample(); /*72:super*/
34294+ return Super::sample(); /*73:super*/
3392334295 }
3392434296
3392534297 /**
@@ -33967,7 +34339,7 @@ class Obj4 {
3396734339 * @return SwitchClass
3396834340 */
3396934341 public static function sampleSwitch(): SwitchClass {
33970- return SwitchClass::sample(); /*73:switch*/
34342+ return SwitchClass::sample(); /*74:switch*/
3397134343 }
3397234344
3397334345 /**
@@ -34015,7 +34387,7 @@ class Obj4 {
3401534387 * @return Symbol
3401634388 */
3401734389 public static function sampleSymbol(): Symbol {
34018- return Symbol::sample(); /*74:symbol*/
34390+ return Symbol::sample(); /*75:symbol*/
3401934391 }
3402034392
3402134393 /**
@@ -34063,7 +34435,7 @@ class Obj4 {
3406334435 * @return Synchronized
3406434436 */
3406534437 public static function sampleSynchronized(): Synchronized {
34066- return Synchronized::sample(); /*75:synchronized*/
34438+ return Synchronized::sample(); /*76:synchronized*/
3406734439 }
3406834440
3406934441 /**
@@ -34111,7 +34483,7 @@ class Obj4 {
3411134483 * @return System
3411234484 */
3411334485 public static function sampleSystem(): System {
34114- return System::sample(); /*76:system*/
34486+ return System::sample(); /*77:system*/
3411534487 }
3411634488
3411734489 /**
@@ -34159,7 +34531,7 @@ class Obj4 {
3415934531 * @return Template
3416034532 */
3416134533 public static function sampleTemplate(): Template {
34162- return Template::sample(); /*77:template*/
34534+ return Template::sample(); /*78:template*/
3416334535 }
3416434536
3416534537 /**
@@ -34207,7 +34579,7 @@ class Obj4 {
3420734579 * @return Then
3420834580 */
3420934581 public static function sampleThen(): Then {
34210- return Then::sample(); /*78:then*/
34582+ return Then::sample(); /*79:then*/
3421134583 }
3421234584
3421334585 /**
@@ -34255,7 +34627,7 @@ class Obj4 {
3425534627 * @return ThreadLocal
3425634628 */
3425734629 public static function sampleThreadLocal(): ThreadLocal {
34258- return ThreadLocal::sample(); /*79:threadLocal*/
34630+ return ThreadLocal::sample(); /*80:threadLocal*/
3425934631 }
3426034632
3426134633 /**
@@ -34303,7 +34675,7 @@ class Obj4 {
3430334675 * @return ThrowClass
3430434676 */
3430534677 public static function sampleThrow(): ThrowClass {
34306- return ThrowClass::sample(); /*80:throw*/
34678+ return ThrowClass::sample(); /*81:throw*/
3430734679 }
3430834680
3430934681 /**
@@ -34351,7 +34723,7 @@ class Obj4 {
3435134723 * @return Throws
3435234724 */
3435334725 public static function sampleThrows(): Throws {
34354- return Throws::sample(); /*81:throws*/
34726+ return Throws::sample(); /*82:throws*/
3435534727 }
3435634728
3435734729 /**
@@ -34399,7 +34771,55 @@ class Obj4 {
3439934771 * @return ToJSON
3440034772 */
3440134773 public static function sampleToJSON(): ToJSON {
34402- return ToJSON::sample(); /*82:toJSON*/
34774+ return ToJSON::sample(); /*83:toJSON*/
34775+ }
34776+
34777+ /**
34778+ * @param stdClass $value
34779+ * @throws Exception
34780+ * @return ToString
34781+ */
34782+ public static function fromToString(stdClass $value): ToString {
34783+ return ToString::from($value); /*class*/
34784+ }
34785+
34786+ /**
34787+ * @throws Exception
34788+ * @return stdClass
34789+ */
34790+ public function toToString(): stdClass {
34791+ if (Obj4::validateToString($this->toString)) {
34792+ return $this->toString->to(); /*class*/
34793+ }
34794+ throw new Exception('never get to this Obj4::toString');
34795+ }
34796+
34797+ /**
34798+ * @param ToString
34799+ * @return bool
34800+ * @throws Exception
34801+ */
34802+ public static function validateToString(ToString $value): bool {
34803+ $value->validate();
34804+ return true;
34805+ }
34806+
34807+ /**
34808+ * @throws Exception
34809+ * @return ToString
34810+ */
34811+ public function getToString(): ToString {
34812+ if (Obj4::validateToString($this->toString)) {
34813+ return $this->toString;
34814+ }
34815+ throw new Exception('never get to getToString Obj4::toString');
34816+ }
34817+
34818+ /**
34819+ * @return ToString
34820+ */
34821+ public static function sampleToString(): ToString {
34822+ return ToString::sample(); /*84:toString*/
3440334823 }
3440434824
3440534825 /**
@@ -34447,7 +34867,7 @@ class Obj4 {
3444734867 * @return TopLevelClass
3444834868 */
3444934869 public static function sampleTopLevel(): TopLevelClass {
34450- return TopLevelClass::sample(); /*83:topLevel*/
34870+ return TopLevelClass::sample(); /*85:topLevel*/
3445134871 }
3445234872
3445334873 /**
@@ -34495,7 +34915,7 @@ class Obj4 {
3449534915 * @return Transient
3449634916 */
3449734917 public static function sampleTransient(): Transient {
34498- return Transient::sample(); /*84:transient*/
34918+ return Transient::sample(); /*86:transient*/
3449934919 }
3450034920
3450134921 /**
@@ -34543,7 +34963,7 @@ class Obj4 {
3454334963 * @return TrueClass
3454434964 */
3454534965 public static function sampleTrue(): TrueClass {
34546- return TrueClass::sample(); /*85:true*/
34966+ return TrueClass::sample(); /*87:true*/
3454734967 }
3454834968
3454934969 /**
@@ -34591,7 +35011,7 @@ class Obj4 {
3459135011 * @return TryClass
3459235012 */
3459335013 public static function sampleTry(): TryClass {
34594- return TryClass::sample(); /*86:try*/
35014+ return TryClass::sample(); /*88:try*/
3459535015 }
3459635016
3459735017 /**
@@ -34639,7 +35059,7 @@ class Obj4 {
3463935059 * @return Type
3464035060 */
3464135061 public static function sampleType(): Type {
34642- return Type::sample(); /*87:type*/
35062+ return Type::sample(); /*89:type*/
3464335063 }
3464435064
3464535065 /**
@@ -34687,7 +35107,7 @@ class Obj4 {
3468735107 * @return Typealias
3468835108 */
3468935109 public static function sampleTypealias(): Typealias {
34690- return Typealias::sample(); /*88:typealias*/
35110+ return Typealias::sample(); /*90:typealias*/
3469135111 }
3469235112
3469335113 /**
@@ -34735,7 +35155,7 @@ class Obj4 {
3473535155 * @return Typedef
3473635156 */
3473735157 public static function sampleTypedef(): Typedef {
34738- return Typedef::sample(); /*89:typedef*/
35158+ return Typedef::sample(); /*91:typedef*/
3473935159 }
3474035160
3474135161 /**
@@ -34783,7 +35203,7 @@ class Obj4 {
3478335203 * @return Typeid
3478435204 */
3478535205 public static function sampleTypeid(): Typeid {
34786- return Typeid::sample(); /*90:typeid*/
35206+ return Typeid::sample(); /*92:typeid*/
3478735207 }
3478835208
3478935209 /**
@@ -34831,7 +35251,7 @@ class Obj4 {
3483135251 * @return Typename
3483235252 */
3483335253 public static function sampleTypename(): Typename {
34834- return Typename::sample(); /*91:typename*/
35254+ return Typename::sample(); /*93:typename*/
3483535255 }
3483635256
3483735257 /**
@@ -34879,7 +35299,7 @@ class Obj4 {
3487935299 * @return Typeof
3488035300 */
3488135301 public static function sampleTypeof(): Typeof {
34882- return Typeof::sample(); /*92:typeof*/
35302+ return Typeof::sample(); /*94:typeof*/
3488335303 }
3488435304
3488535305 /**
@@ -34927,7 +35347,7 @@ class Obj4 {
3492735347 * @return Uint
3492835348 */
3492935349 public static function sampleUint(): Uint {
34930- return Uint::sample(); /*93:uint*/
35350+ return Uint::sample(); /*95:uint*/
3493135351 }
3493235352
3493335353 /**
@@ -34975,7 +35395,7 @@ class Obj4 {
3497535395 * @return Ulong
3497635396 */
3497735397 public static function sampleUlong(): Ulong {
34978- return Ulong::sample(); /*94:ulong*/
35398+ return Ulong::sample(); /*96:ulong*/
3497935399 }
3498035400
3498135401 /**
@@ -35023,7 +35443,7 @@ class Obj4 {
3502335443 * @return Unchecked
3502435444 */
3502535445 public static function sampleUnchecked(): Unchecked {
35026- return Unchecked::sample(); /*95:unchecked*/
35446+ return Unchecked::sample(); /*97:unchecked*/
3502735447 }
3502835448
3502935449 /**
@@ -35071,7 +35491,7 @@ class Obj4 {
3507135491 * @return Undefined
3507235492 */
3507335493 public static function sampleUndefined(): Undefined {
35074- return Undefined::sample(); /*96:undefined*/
35494+ return Undefined::sample(); /*98:undefined*/
3507535495 }
3507635496
3507735497 /**
@@ -35101,6 +35521,7 @@ class Obj4 {
3510135521 || Obj4::validateRethrows($this->rethrows)
3510235522 || Obj4::validateReturn($this->return)
3510335523 || Obj4::validateRight($this->right)
35524+ || Obj4::validateRuntimeType($this->runtimeType)
3510435525 || Obj4::validateS($this->s)
3510535526 || Obj4::validateSbyte($this->sbyte)
3510635527 || Obj4::validateSealed($this->sealed)
@@ -35131,6 +35552,7 @@ class Obj4 {
3513135552 || Obj4::validateThrow($this->throw)
3513235553 || Obj4::validateThrows($this->throws)
3513335554 || Obj4::validateToJSON($this->toJSON)
35555+ || Obj4::validateToString($this->toString)
3513435556 || Obj4::validateTopLevel($this->topLevel)
3513535557 || Obj4::validateTransient($this->transient)
3513635558 || Obj4::validateTrue($this->true)
@@ -35175,6 +35597,7 @@ class Obj4 {
3517535597 $out->{'rethrows'} = $this->toRethrows();
3517635598 $out->{'return'} = $this->toReturn();
3517735599 $out->{'right'} = $this->toRight();
35600+ $out->{'runtimeType'} = $this->toRuntimeType();
3517835601 $out->{'s'} = $this->toS();
3517935602 $out->{'sbyte'} = $this->toSbyte();
3518035603 $out->{'sealed'} = $this->toSealed();
@@ -35191,7 +35614,7 @@ class Obj4 {
3519135614 $out->{'static_assert'} = $this->toStaticAssert();
3519235615 $out->{'static_cast'} = $this->toStaticCast();
3519335616 $out->{'strictfp'} = $this->toStrictfp();
35194- $out->{'string'} = $this->toString();
35617+ $out->{'string'} = $this->purpleToString();
3519535618 $out->{'struct'} = $this->toStruct();
3519635619 $out->{'subscript'} = $this->toSubscript();
3519735620 $out->{'super'} = $this->toSuper();
@@ -35205,6 +35628,7 @@ class Obj4 {
3520535628 $out->{'throw'} = $this->toThrow();
3520635629 $out->{'throws'} = $this->toThrows();
3520735630 $out->{'to_json'} = $this->toToJSON();
35631+ $out->{'toString'} = $this->toToString();
3520835632 $out->{'top_level'} = $this->toTopLevel();
3520935633 $out->{'transient'} = $this->toTransient();
3521035634 $out->{'True'} = $this->toTrue();
@@ -35294,6 +35718,9 @@ class Obj4 {
3529435718 if (!property_exists($obj, 'right')) {
3529535719 throw new Exception("Missing required property");
3529635720 }
35721+ if (!property_exists($obj, 'runtimeType')) {
35722+ throw new Exception("Missing required property");
35723+ }
3529735724 if (!property_exists($obj, 's')) {
3529835725 throw new Exception("Missing required property");
3529935726 }
@@ -35384,6 +35811,9 @@ class Obj4 {
3538435811 if (!property_exists($obj, 'to_json')) {
3538535812 throw new Exception("Missing required property");
3538635813 }
35814+ if (!property_exists($obj, 'toString')) {
35815+ throw new Exception("Missing required property");
35816+ }
3538735817 if (!property_exists($obj, 'top_level')) {
3538835818 throw new Exception("Missing required property");
3538935819 }
@@ -35449,6 +35879,7 @@ class Obj4 {
3544935879 ,Obj4::fromRethrows($obj->{'rethrows'})
3545035880 ,Obj4::fromReturn($obj->{'return'})
3545135881 ,Obj4::fromRight($obj->{'right'})
35882+ ,Obj4::fromRuntimeType($obj->{'runtimeType'})
3545235883 ,Obj4::fromS($obj->{'s'})
3545335884 ,Obj4::fromSbyte($obj->{'sbyte'})
3545435885 ,Obj4::fromSealed($obj->{'sealed'})
@@ -35479,6 +35910,7 @@ class Obj4 {
3547935910 ,Obj4::fromThrow($obj->{'throw'})
3548035911 ,Obj4::fromThrows($obj->{'throws'})
3548135912 ,Obj4::fromToJSON($obj->{'to_json'})
35913+ ,Obj4::fromToString($obj->{'toString'})
3548235914 ,Obj4::fromTopLevel($obj->{'top_level'})
3548335915 ,Obj4::fromTransient($obj->{'transient'})
3548435916 ,Obj4::fromTrue($obj->{'True'})
@@ -35523,6 +35955,7 @@ class Obj4 {
3552335955 ,Obj4::sampleRethrows()
3552435956 ,Obj4::sampleReturn()
3552535957 ,Obj4::sampleRight()
35958+ ,Obj4::sampleRuntimeType()
3552635959 ,Obj4::sampleS()
3552735960 ,Obj4::sampleSbyte()
3552835961 ,Obj4::sampleSealed()
@@ -35553,6 +35986,7 @@ class Obj4 {
3555335986 ,Obj4::sampleThrow()
3555435987 ,Obj4::sampleThrows()
3555535988 ,Obj4::sampleToJSON()
35989+ ,Obj4::sampleToString()
3555635990 ,Obj4::sampleTopLevel()
3555735991 ,Obj4::sampleTransient()
3555835992 ,Obj4::sampleTrue()
@@ -37692,6 +38126,107 @@ class Right {
3769238126 }
3769338127 }
3769438128
38129+// This is an autogenerated file:RuntimeType
38130+
38131+class RuntimeType {
38132+ private int $runtimeType; // json:runtimeType Required
38133+
38134+ /**
38135+ * @param int $runtimeType
38136+ */
38137+ public function __construct(int $runtimeType) {
38138+ $this->runtimeType = $runtimeType;
38139+ }
38140+
38141+ /**
38142+ * @param int $value
38143+ * @throws Exception
38144+ * @return int
38145+ */
38146+ public static function fromRuntimeType(int $value): int {
38147+ return $value; /*int*/
38148+ }
38149+
38150+ /**
38151+ * @throws Exception
38152+ * @return int
38153+ */
38154+ public function toRuntimeType(): int {
38155+ if (RuntimeType::validateRuntimeType($this->runtimeType)) {
38156+ return $this->runtimeType; /*int*/
38157+ }
38158+ throw new Exception('never get to this RuntimeType::runtimeType');
38159+ }
38160+
38161+ /**
38162+ * @param int
38163+ * @return bool
38164+ * @throws Exception
38165+ */
38166+ public static function validateRuntimeType(int $value): bool {
38167+ return true;
38168+ }
38169+
38170+ /**
38171+ * @throws Exception
38172+ * @return int
38173+ */
38174+ public function getRuntimeType(): int {
38175+ if (RuntimeType::validateRuntimeType($this->runtimeType)) {
38176+ return $this->runtimeType;
38177+ }
38178+ throw new Exception('never get to getRuntimeType RuntimeType::runtimeType');
38179+ }
38180+
38181+ /**
38182+ * @return int
38183+ */
38184+ public static function sampleRuntimeType(): int {
38185+ return 31; /*31:runtimeType*/
38186+ }
38187+
38188+ /**
38189+ * @throws Exception
38190+ * @return bool
38191+ */
38192+ public function validate(): bool {
38193+ return RuntimeType::validateRuntimeType($this->runtimeType);
38194+ }
38195+
38196+ /**
38197+ * @return stdClass
38198+ * @throws Exception
38199+ */
38200+ public function to(): stdClass {
38201+ $out = new stdClass();
38202+ $out->{'runtimeType'} = $this->toRuntimeType();
38203+ return $out;
38204+ }
38205+
38206+ /**
38207+ * @param stdClass $obj
38208+ * @return RuntimeType
38209+ * @throws Exception
38210+ */
38211+ public static function from(stdClass $obj): RuntimeType {
38212+ if (!property_exists($obj, 'runtimeType')) {
38213+ throw new Exception("Missing required property");
38214+ }
38215+ return new RuntimeType(
38216+ RuntimeType::fromRuntimeType($obj->{'runtimeType'})
38217+ );
38218+ }
38219+
38220+ /**
38221+ * @return RuntimeType
38222+ */
38223+ public static function sample(): RuntimeType {
38224+ return new RuntimeType(
38225+ RuntimeType::sampleRuntimeType()
38226+ );
38227+ }
38228+}
38229+
3769538230 // This is an autogenerated file:S
3769638231
3769738232 class S {
@@ -40722,6 +41257,107 @@ class ToJSON {
4072241257 }
4072341258 }
4072441259
41260+// This is an autogenerated file:ToString
41261+
41262+class ToString {
41263+ private int $toString; // json:toString Required
41264+
41265+ /**
41266+ * @param int $toString
41267+ */
41268+ public function __construct(int $toString) {
41269+ $this->toString = $toString;
41270+ }
41271+
41272+ /**
41273+ * @param int $value
41274+ * @throws Exception
41275+ * @return int
41276+ */
41277+ public static function fromToString(int $value): int {
41278+ return $value; /*int*/
41279+ }
41280+
41281+ /**
41282+ * @throws Exception
41283+ * @return int
41284+ */
41285+ public function toToString(): int {
41286+ if (ToString::validateToString($this->toString)) {
41287+ return $this->toString; /*int*/
41288+ }
41289+ throw new Exception('never get to this ToString::toString');
41290+ }
41291+
41292+ /**
41293+ * @param int
41294+ * @return bool
41295+ * @throws Exception
41296+ */
41297+ public static function validateToString(int $value): bool {
41298+ return true;
41299+ }
41300+
41301+ /**
41302+ * @throws Exception
41303+ * @return int
41304+ */
41305+ public function getToString(): int {
41306+ if (ToString::validateToString($this->toString)) {
41307+ return $this->toString;
41308+ }
41309+ throw new Exception('never get to getToString ToString::toString');
41310+ }
41311+
41312+ /**
41313+ * @return int
41314+ */
41315+ public static function sampleToString(): int {
41316+ return 31; /*31:toString*/
41317+ }
41318+
41319+ /**
41320+ * @throws Exception
41321+ * @return bool
41322+ */
41323+ public function validate(): bool {
41324+ return ToString::validateToString($this->toString);
41325+ }
41326+
41327+ /**
41328+ * @return stdClass
41329+ * @throws Exception
41330+ */
41331+ public function to(): stdClass {
41332+ $out = new stdClass();
41333+ $out->{'toString'} = $this->toToString();
41334+ return $out;
41335+ }
41336+
41337+ /**
41338+ * @param stdClass $obj
41339+ * @return ToString
41340+ * @throws Exception
41341+ */
41342+ public static function from(stdClass $obj): ToString {
41343+ if (!property_exists($obj, 'toString')) {
41344+ throw new Exception("Missing required property");
41345+ }
41346+ return new ToString(
41347+ ToString::fromToString($obj->{'toString'})
41348+ );
41349+ }
41350+
41351+ /**
41352+ * @return ToString
41353+ */
41354+ public static function sample(): ToString {
41355+ return new ToString(
41356+ ToString::sampleToString()
41357+ );
41358+ }
41359+}
41360+
4072541361 // This is an autogenerated file:TopLevelClass
4072641362
4072741363 class TopLevelClass {
Mpikedefault / TopLevel.pmod+96 −0
@@ -1668,6 +1668,7 @@ class Obj2 {
16681668 Goto goto; // json: "goto"
16691669 Guard guard; // json: "guard"
16701670 HasOwnProperty has_own_property; // json: "hasOwnProperty"
1671+ HashCode hash_code; // json: "hashCode"
16711672 Id id; // json: "id"
16721673 Imp imp; // json: "IMP"
16731674 Implements implements; // json: "implements"
@@ -1737,6 +1738,7 @@ class Obj2 {
17371738 "goto" : goto,
17381739 "guard" : guard,
17391740 "hasOwnProperty" : has_own_property,
1741+ "hashCode" : hash_code,
17401742 "id" : id,
17411743 "IMP" : imp,
17421744 "implements" : implements,
@@ -1813,6 +1815,7 @@ Obj2 Obj2_from_JSON(mixed json) {
18131815 retval.goto = json["goto"];
18141816 retval.guard = json["guard"];
18151817 retval.has_own_property = json["hasOwnProperty"];
1818+ retval.hash_code = json["hashCode"];
18161819 retval.id = json["id"];
18171820 retval.imp = json["IMP"];
18181821 retval.implements = json["implements"];
@@ -2622,6 +2625,27 @@ HasOwnProperty HasOwnProperty_from_JSON(mixed json) {
26222625 return retval;
26232626 }
26242627
2628+class HashCode {
2629+ int hash_code; // json: "hashCode"
2630+
2631+ string encode_json() {
2632+ mapping(string:mixed) json = ([
2633+ "hashCode" : hash_code,
2634+ ]);
2635+
2636+ return Standards.JSON.encode(json);
2637+ }
2638+}
2639+
2640+HashCode HashCode_from_JSON(mixed json) {
2641+ HashCode retval = HashCode();
2642+
2643+ if (!intp(json["hashCode"])) error("Expected integer");
2644+ retval.hash_code = json["hashCode"];
2645+
2646+ return retval;
2647+}
2648+
26252649 class Id {
26262650 int id; // json: "id"
26272651
@@ -3239,6 +3263,7 @@ class Obj3 {
32393263 Newtonsoft newtonsoft; // json: "newtonsoft"
32403264 Nil nil; // json: "nil"
32413265 No no; // json: "NO"
3266+ NoSuchMethod no_such_method; // json: "noSuchMethod"
32423267 Noexcept noexcept; // json: "noexcept"
32433268 Nonatomic nonatomic; // json: "nonatomic"
32443269 None none; // json: "None"
@@ -3308,6 +3333,7 @@ class Obj3 {
33083333 "newtonsoft" : newtonsoft,
33093334 "nil" : nil,
33103335 "NO" : no,
3336+ "noSuchMethod" : no_such_method,
33113337 "noexcept" : noexcept,
33123338 "nonatomic" : nonatomic,
33133339 "None" : none,
@@ -3384,6 +3410,7 @@ Obj3 Obj3_from_JSON(mixed json) {
33843410 retval.newtonsoft = json["newtonsoft"];
33853411 retval.nil = json["nil"];
33863412 retval.no = json["NO"];
3413+ retval.no_such_method = json["noSuchMethod"];
33873414 retval.noexcept = json["noexcept"];
33883415 retval.nonatomic = json["nonatomic"];
33893416 retval.none = json["None"];
@@ -3993,6 +4020,27 @@ No No_from_JSON(mixed json) {
39934020 return retval;
39944021 }
39954022
4023+class NoSuchMethod {
4024+ int no_such_method; // json: "noSuchMethod"
4025+
4026+ string encode_json() {
4027+ mapping(string:mixed) json = ([
4028+ "noSuchMethod" : no_such_method,
4029+ ]);
4030+
4031+ return Standards.JSON.encode(json);
4032+ }
4033+}
4034+
4035+NoSuchMethod NoSuchMethod_from_JSON(mixed json) {
4036+ NoSuchMethod retval = NoSuchMethod();
4037+
4038+ if (!intp(json["noSuchMethod"])) error("Expected integer");
4039+ retval.no_such_method = json["noSuchMethod"];
4040+
4041+ return retval;
4042+}
4043+
39964044 class Noexcept {
39974045 int noexcept; // json: "noexcept"
39984046
@@ -4818,6 +4866,7 @@ class Obj4 {
48184866 Retain retain; // json: "retain"
48194867 Rethrows rethrows; // json: "rethrows"
48204868 Right right; // json: "right"
4869+ RuntimeType runtime_type; // json: "runtimeType"
48214870 S s; // json: "s"
48224871 Sbyte sbyte; // json: "sbyte"
48234872 Sealed sealed; // json: "sealed"
@@ -4846,6 +4895,7 @@ class Obj4 {
48464895 Throw throw; // json: "throw"
48474896 Throws throws; // json: "throws"
48484897 ToJson to_json; // json: "to_json"
4898+ ToString to_string; // json: "toString"
48494899 TopLevelClass top_level; // json: "top_level"
48504900 Transient transient; // json: "transient"
48514901 True true; // json: "True"
@@ -4887,6 +4937,7 @@ class Obj4 {
48874937 "retain" : retain,
48884938 "rethrows" : rethrows,
48894939 "right" : right,
4940+ "runtimeType" : runtime_type,
48904941 "s" : s,
48914942 "sbyte" : sbyte,
48924943 "sealed" : sealed,
@@ -4915,6 +4966,7 @@ class Obj4 {
49154966 "throw" : throw,
49164967 "throws" : throws,
49174968 "to_json" : to_json,
4969+ "toString" : to_string,
49184970 "top_level" : top_level,
49194971 "transient" : transient,
49204972 "True" : true,
@@ -4963,6 +5015,7 @@ Obj4 Obj4_from_JSON(mixed json) {
49635015 retval.retain = json["retain"];
49645016 retval.rethrows = json["rethrows"];
49655017 retval.right = json["right"];
5018+ retval.runtime_type = json["runtimeType"];
49665019 retval.s = json["s"];
49675020 retval.sbyte = json["sbyte"];
49685021 retval.sealed = json["sealed"];
@@ -4991,6 +5044,7 @@ Obj4 Obj4_from_JSON(mixed json) {
49915044 retval.throw = json["throw"];
49925045 retval.throws = json["throws"];
49935046 retval.to_json = json["to_json"];
5047+ retval.to_string = json["toString"];
49945048 retval.top_level = json["top_level"];
49955049 retval.transient = json["transient"];
49965050 retval.true = json["True"];
@@ -5532,6 +5586,27 @@ Right Right_from_JSON(mixed json) {
55325586 return retval;
55335587 }
55345588
5589+class RuntimeType {
5590+ int runtime_type; // json: "runtimeType"
5591+
5592+ string encode_json() {
5593+ mapping(string:mixed) json = ([
5594+ "runtimeType" : runtime_type,
5595+ ]);
5596+
5597+ return Standards.JSON.encode(json);
5598+ }
5599+}
5600+
5601+RuntimeType RuntimeType_from_JSON(mixed json) {
5602+ RuntimeType retval = RuntimeType();
5603+
5604+ if (!intp(json["runtimeType"])) error("Expected integer");
5605+ retval.runtime_type = json["runtimeType"];
5606+
5607+ return retval;
5608+}
5609+
55355610 class S {
55365611 int s; // json: "s"
55375612
@@ -6120,6 +6195,27 @@ ToJson ToJson_from_JSON(mixed json) {
61206195 return retval;
61216196 }
61226197
6198+class ToString {
6199+ int to_string; // json: "toString"
6200+
6201+ string encode_json() {
6202+ mapping(string:mixed) json = ([
6203+ "toString" : to_string,
6204+ ]);
6205+
6206+ return Standards.JSON.encode(json);
6207+ }
6208+}
6209+
6210+ToString ToString_from_JSON(mixed json) {
6211+ ToString retval = ToString();
6212+
6213+ if (!intp(json["toString"])) error("Expected integer");
6214+ retval.to_string = json["toString"];
6215+
6216+ return retval;
6217+}
6218+
61236219 class TopLevelClass {
61246220 int top_level; // json: "top_level"
Mpythondefault / quicktype.py+79 −3
@@ -1858,6 +1858,22 @@ class HasOwnProperty:
18581858 return result
18591859
18601860
1861+@dataclass
1862+class HashCode:
1863+ hash_code: int
1864+
1865+ @staticmethod
1866+ def from_dict(obj: Any) -> 'HashCode':
1867+ assert isinstance(obj, dict)
1868+ hash_code = from_int(obj.get("hashCode"))
1869+ return HashCode(hash_code)
1870+
1871+ def to_dict(self) -> dict:
1872+ result: dict = {}
1873+ result["hashCode"] = from_int(self.hash_code)
1874+ return result
1875+
1876+
18611877 @dataclass
18621878 class ID:
18631879 id: int
@@ -2359,6 +2375,7 @@ class Obj2:
23592375 goto: Goto
23602376 guard: Guard
23612377 has_own_property: HasOwnProperty
2378+ hash_code: HashCode
23622379 id: ID
23632380 obj2_if: If
23642381 implements: Implements
@@ -2429,6 +2446,7 @@ class Obj2:
24292446 goto = Goto.from_dict(obj.get("goto"))
24302447 guard = Guard.from_dict(obj.get("guard"))
24312448 has_own_property = HasOwnProperty.from_dict(obj.get("hasOwnProperty"))
2449+ hash_code = HashCode.from_dict(obj.get("hashCode"))
24322450 id = ID.from_dict(obj.get("id"))
24332451 obj2_if = If.from_dict(obj.get("if"))
24342452 implements = Implements.from_dict(obj.get("implements"))
@@ -2444,7 +2462,7 @@ class Obj2:
24442462 obj2_int = Int.from_dict(obj.get("int"))
24452463 interface = Interface.from_dict(obj.get("interface"))
24462464 internal = Internal.from_dict(obj.get("internal"))
2447- return Obj2(false, imp, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, from_json, func, function, get, obj2_global, go, goto, guard, has_own_property, id, obj2_if, implements, implicit, obj2_import, obj2_in, indirect, infix, init, inline, inout, instanceof, obj2_int, interface, internal)
2465+ return Obj2(false, imp, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, from_json, func, function, get, obj2_global, go, goto, guard, has_own_property, hash_code, id, obj2_if, implements, implicit, obj2_import, obj2_in, indirect, infix, init, inline, inout, instanceof, obj2_int, interface, internal)
24482466
24492467 def to_dict(self) -> dict:
24502468 result: dict = {}
@@ -2499,6 +2517,7 @@ class Obj2:
24992517 result["goto"] = to_class(Goto, self.goto)
25002518 result["guard"] = to_class(Guard, self.guard)
25012519 result["hasOwnProperty"] = to_class(HasOwnProperty, self.has_own_property)
2520+ result["hashCode"] = to_class(HashCode, self.hash_code)
25022521 result["id"] = to_class(ID, self.id)
25032522 result["if"] = to_class(If, self.obj2_if)
25042523 result["implements"] = to_class(Implements, self.implements)
@@ -2933,6 +2952,22 @@ class No:
29332952 return result
29342953
29352954
2955+@dataclass
2956+class NoSuchMethod:
2957+ no_such_method: int
2958+
2959+ @staticmethod
2960+ def from_dict(obj: Any) -> 'NoSuchMethod':
2961+ assert isinstance(obj, dict)
2962+ no_such_method = from_int(obj.get("noSuchMethod"))
2963+ return NoSuchMethod(no_such_method)
2964+
2965+ def to_dict(self) -> dict:
2966+ result: dict = {}
2967+ result["noSuchMethod"] = from_int(self.no_such_method)
2968+ return result
2969+
2970+
29362971 @dataclass
29372972 class Noexcept:
29382973 noexcept: int
@@ -3592,6 +3627,7 @@ class Obj3:
35923627 new: New
35933628 newtonsoft: Newtonsoft
35943629 nil: Nil
3630+ no_such_method: NoSuchMethod
35953631 noexcept: Noexcept
35963632 nonatomic: Nonatomic
35973633 obj3_none: Obj3None
@@ -3662,6 +3698,7 @@ class Obj3:
36623698 new = New.from_dict(obj.get("new"))
36633699 newtonsoft = Newtonsoft.from_dict(obj.get("newtonsoft"))
36643700 nil = Nil.from_dict(obj.get("nil"))
3701+ no_such_method = NoSuchMethod.from_dict(obj.get("noSuchMethod"))
36653702 noexcept = Noexcept.from_dict(obj.get("noexcept"))
36663703 nonatomic = Nonatomic.from_dict(obj.get("nonatomic"))
36673704 obj3_none = Obj3None.from_dict(obj.get("none"))
@@ -3695,7 +3732,7 @@ class Obj3:
36953732 private = Private.from_dict(obj.get("private"))
36963733 protected = Protected.from_dict(obj.get("protected"))
36973734 obj3_protocol = ProtocolClass.from_dict(obj.get("protocol"))
3698- return Obj3(no, ns_string, null, none, protocol, dummy, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, noexcept, nonatomic, obj3_none, obj3_nonlocal, nonmutating, obj3_not, not_eq, obj3_null, nullptr, number, object, of, oneway, open, operator, optional, obj3_or, or_eq, out, override, package, params, obj3_pass, port, postfix, precedence, prefix, obj3_print, print_members, printf, private, protected, obj3_protocol)
3735+ return Obj3(no, ns_string, null, none, protocol, dummy, 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, no_such_method, noexcept, nonatomic, obj3_none, obj3_nonlocal, nonmutating, obj3_not, not_eq, obj3_null, nullptr, number, object, of, oneway, open, operator, optional, obj3_or, or_eq, out, override, package, params, obj3_pass, port, postfix, precedence, prefix, obj3_print, print_members, printf, private, protected, obj3_protocol)
36993736
37003737 def to_dict(self) -> dict:
37013738 result: dict = {}
@@ -3732,6 +3769,7 @@ class Obj3:
37323769 result["new"] = to_class(New, self.new)
37333770 result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft)
37343771 result["nil"] = to_class(Nil, self.nil)
3772+ result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method)
37353773 result["noexcept"] = to_class(Noexcept, self.noexcept)
37363774 result["nonatomic"] = to_class(Nonatomic, self.nonatomic)
37373775 result["none"] = to_class(Obj3None, self.obj3_none)
@@ -4120,6 +4158,22 @@ class Right:
41204158 return result
41214159
41224160
4161+@dataclass
4162+class RuntimeType:
4163+ runtime_type: int
4164+
4165+ @staticmethod
4166+ def from_dict(obj: Any) -> 'RuntimeType':
4167+ assert isinstance(obj, dict)
4168+ runtime_type = from_int(obj.get("runtimeType"))
4169+ return RuntimeType(runtime_type)
4170+
4171+ def to_dict(self) -> dict:
4172+ result: dict = {}
4173+ result["runtimeType"] = from_int(self.runtime_type)
4174+ return result
4175+
4176+
41234177 @dataclass
41244178 class S:
41254179 s: int
@@ -4600,6 +4654,22 @@ class ToJSON:
46004654 return result
46014655
46024656
4657+@dataclass
4658+class ToString:
4659+ to_string: int
4660+
4661+ @staticmethod
4662+ def from_dict(obj: Any) -> 'ToString':
4663+ assert isinstance(obj, dict)
4664+ to_string = from_int(obj.get("toString"))
4665+ return ToString(to_string)
4666+
4667+ def to_dict(self) -> dict:
4668+ result: dict = {}
4669+ result["toString"] = from_int(self.to_string)
4670+ return result
4671+
4672+
46034673 @dataclass
46044674 class TopLevelClass:
46054675 top_level: int
@@ -4832,6 +4902,7 @@ class Obj4:
48324902 rethrows: Rethrows
48334903 obj4_return: Return
48344904 right: Right
4905+ runtime_type: RuntimeType
48354906 s: S
48364907 sbyte: Sbyte
48374908 sealed: Sealed
@@ -4861,6 +4932,7 @@ class Obj4:
48614932 thread_local: ThreadLocal
48624933 throw: Throw
48634934 throws: Throws
4935+ to_string: ToString
48644936 to_json: ToJSON
48654937 top_level: TopLevelClass
48664938 transient: Transient
@@ -4902,6 +4974,7 @@ class Obj4:
49024974 rethrows = Rethrows.from_dict(obj.get("rethrows"))
49034975 obj4_return = Return.from_dict(obj.get("return"))
49044976 right = Right.from_dict(obj.get("right"))
4977+ runtime_type = RuntimeType.from_dict(obj.get("runtimeType"))
49054978 s = S.from_dict(obj.get("s"))
49064979 sbyte = Sbyte.from_dict(obj.get("sbyte"))
49074980 sealed = Sealed.from_dict(obj.get("sealed"))
@@ -4931,6 +5004,7 @@ class Obj4:
49315004 thread_local = ThreadLocal.from_dict(obj.get("thread_local"))
49325005 throw = Throw.from_dict(obj.get("throw"))
49335006 throws = Throws.from_dict(obj.get("throws"))
5007+ to_string = ToString.from_dict(obj.get("toString"))
49345008 to_json = ToJSON.from_dict(obj.get("to_json"))
49355009 top_level = TopLevelClass.from_dict(obj.get("top_level"))
49365010 transient = Transient.from_dict(obj.get("transient"))
@@ -4946,7 +5020,7 @@ class Obj4:
49465020 ulong = Ulong.from_dict(obj.get("ulong"))
49475021 unchecked = Unchecked.from_dict(obj.get("unchecked"))
49485022 undefined = Undefined.from_dict(obj.get("undefined"))
4949- return Obj4(sel, obj4_self, true, type, dummy, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, 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_json, top_level, transient, obj4_true, obj4_try, obj4_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined)
5023+ return Obj4(sel, obj4_self, true, type, dummy, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj4_true, obj4_try, obj4_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined)
49505024
49515025 def to_dict(self) -> dict:
49525026 result: dict = {}
@@ -4972,6 +5046,7 @@ class Obj4:
49725046 result["rethrows"] = to_class(Rethrows, self.rethrows)
49735047 result["return"] = to_class(Return, self.obj4_return)
49745048 result["right"] = to_class(Right, self.right)
5049+ result["runtimeType"] = to_class(RuntimeType, self.runtime_type)
49755050 result["s"] = to_class(S, self.s)
49765051 result["sbyte"] = to_class(Sbyte, self.sbyte)
49775052 result["sealed"] = to_class(Sealed, self.sealed)
@@ -5001,6 +5076,7 @@ class Obj4:
50015076 result["thread_local"] = to_class(ThreadLocal, self.thread_local)
50025077 result["throw"] = to_class(Throw, self.throw)
50035078 result["throws"] = to_class(Throws, self.throws)
5079+ result["toString"] = to_class(ToString, self.to_string)
50045080 result["to_json"] = to_class(ToJSON, self.to_json)
50055081 result["top_level"] = to_class(TopLevelClass, self.top_level)
50065082 result["transient"] = to_class(Transient, self.transient)
Mrubydefault / TopLevel.rb+112 −0
@@ -2914,6 +2914,31 @@ class HasOwnProperty < Dry::Struct
29142914 end
29152915 end
29162916
2917+class HashCode < Dry::Struct
2918+ attribute :hash_code, Types::Integer
2919+
2920+ def self.from_dynamic!(d)
2921+ d = Types::Hash[d]
2922+ new(
2923+ hash_code: d.fetch("hashCode"),
2924+ )
2925+ end
2926+
2927+ def self.from_json!(json)
2928+ from_dynamic!(JSON.parse(json))
2929+ end
2930+
2931+ def to_dynamic
2932+ {
2933+ "hashCode" => hash_code,
2934+ }
2935+ end
2936+
2937+ def to_json(options = nil)
2938+ JSON.generate(to_dynamic, options)
2939+ end
2940+end
2941+
29172942 class ID < Dry::Struct
29182943 attribute :id, Types::Integer
29192944
@@ -3533,6 +3558,7 @@ class Obj2 < Dry::Struct
35333558 attribute :goto, Goto
35343559 attribute :guard, Guard
35353560 attribute :has_own_property, HasOwnProperty
3561+ attribute :hash_code, HashCode
35363562 attribute :id, ID
35373563 attribute :imp, Imp
35383564 attribute :implements, Implements
@@ -3603,6 +3629,7 @@ class Obj2 < Dry::Struct
36033629 goto: Goto.from_dynamic!(d.fetch("goto")),
36043630 guard: Guard.from_dynamic!(d.fetch("guard")),
36053631 has_own_property: HasOwnProperty.from_dynamic!(d.fetch("hasOwnProperty")),
3632+ hash_code: HashCode.from_dynamic!(d.fetch("hashCode")),
36063633 id: ID.from_dynamic!(d.fetch("id")),
36073634 imp: Imp.from_dynamic!(d.fetch("IMP")),
36083635 implements: Implements.from_dynamic!(d.fetch("implements")),
@@ -3678,6 +3705,7 @@ class Obj2 < Dry::Struct
36783705 "goto" => goto.to_dynamic,
36793706 "guard" => guard.to_dynamic,
36803707 "hasOwnProperty" => has_own_property.to_dynamic,
3708+ "hashCode" => hash_code.to_dynamic,
36813709 "id" => id.to_dynamic,
36823710 "IMP" => imp.to_dynamic,
36833711 "implements" => implements.to_dynamic,
@@ -4309,6 +4337,31 @@ class No < Dry::Struct
43094337 end
43104338 end
43114339
4340+class NoSuchMethod < Dry::Struct
4341+ attribute :no_such_method, Types::Integer
4342+
4343+ def self.from_dynamic!(d)
4344+ d = Types::Hash[d]
4345+ new(
4346+ no_such_method: d.fetch("noSuchMethod"),
4347+ )
4348+ end
4349+
4350+ def self.from_json!(json)
4351+ from_dynamic!(JSON.parse(json))
4352+ end
4353+
4354+ def to_dynamic
4355+ {
4356+ "noSuchMethod" => no_such_method,
4357+ }
4358+ end
4359+
4360+ def to_json(options = nil)
4361+ JSON.generate(to_dynamic, options)
4362+ end
4363+end
4364+
43124365 class Noexcept < Dry::Struct
43134366 attribute :noexcept, Types::Integer
43144367
@@ -5360,6 +5413,7 @@ class Obj3 < Dry::Struct
53605413 attribute :native, Native
53615414 attribute :newtonsoft, Newtonsoft
53625415 attribute :no, No
5416+ attribute :no_such_method, NoSuchMethod
53635417 attribute :noexcept, Noexcept
53645418 attribute :nonatomic, Nonatomic
53655419 attribute :none, None
@@ -5430,6 +5484,7 @@ class Obj3 < Dry::Struct
54305484 native: Native.from_dynamic!(d.fetch("native")),
54315485 newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")),
54325486 no: No.from_dynamic!(d.fetch("NO")),
5487+ no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")),
54335488 noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
54345489 nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")),
54355490 none: None.from_dynamic!(d.fetch("None")),
@@ -5505,6 +5560,7 @@ class Obj3 < Dry::Struct
55055560 "native" => native.to_dynamic,
55065561 "newtonsoft" => newtonsoft.to_dynamic,
55075562 "NO" => no.to_dynamic,
5563+ "noSuchMethod" => no_such_method.to_dynamic,
55085564 "noexcept" => noexcept.to_dynamic,
55095565 "nonatomic" => nonatomic.to_dynamic,
55105566 "None" => none.to_dynamic,
@@ -6229,6 +6285,31 @@ class Right < Dry::Struct
62296285 end
62306286 end
62316287
6288+class RuntimeType < Dry::Struct
6289+ attribute :runtime_type, Types::Integer
6290+
6291+ def self.from_dynamic!(d)
6292+ d = Types::Hash[d]
6293+ new(
6294+ runtime_type: d.fetch("runtimeType"),
6295+ )
6296+ end
6297+
6298+ def self.from_json!(json)
6299+ from_dynamic!(JSON.parse(json))
6300+ end
6301+
6302+ def to_dynamic
6303+ {
6304+ "runtimeType" => runtime_type,
6305+ }
6306+ end
6307+
6308+ def to_json(options = nil)
6309+ JSON.generate(to_dynamic, options)
6310+ end
6311+end
6312+
62326313 class S < Dry::Struct
62336314 attribute :s, Types::Integer
62346315
@@ -6854,6 +6935,31 @@ class Throws < Dry::Struct
68546935 end
68556936 end
68566937
6938+class ToString < Dry::Struct
6939+ attribute :to_string, Types::Integer
6940+
6941+ def self.from_dynamic!(d)
6942+ d = Types::Hash[d]
6943+ new(
6944+ to_string: d.fetch("toString"),
6945+ )
6946+ end
6947+
6948+ def self.from_json!(json)
6949+ from_dynamic!(JSON.parse(json))
6950+ end
6951+
6952+ def to_dynamic
6953+ {
6954+ "toString" => to_string,
6955+ }
6956+ end
6957+
6958+ def to_json(options = nil)
6959+ JSON.generate(to_dynamic, options)
6960+ end
6961+end
6962+
68576963 class TopLevelClass < Dry::Struct
68586964 attribute :top_level, Types::Integer
68596965
@@ -7208,6 +7314,7 @@ class Obj4 < Dry::Struct
72087314 attribute :retain, Retain
72097315 attribute :rethrows, Rethrows
72107316 attribute :right, Right
7317+ attribute :runtime_type, RuntimeType
72117318 attribute :s, S
72127319 attribute :sbyte, Sbyte
72137320 attribute :sealed, Sealed
@@ -7233,6 +7340,7 @@ class Obj4 < Dry::Struct
72337340 attribute :this, This
72347341 attribute :thread_local, ThreadLocal
72357342 attribute :throws, Throws
7343+ attribute :to_string, ToString
72367344 attribute :top_level, TopLevelClass
72377345 attribute :transient, Transient
72387346 attribute :true_1, Obj4True
@@ -7278,6 +7386,7 @@ class Obj4 < Dry::Struct
72787386 retain: Retain.from_dynamic!(d.fetch("retain")),
72797387 rethrows: Rethrows.from_dynamic!(d.fetch("rethrows")),
72807388 right: Right.from_dynamic!(d.fetch("right")),
7389+ runtime_type: RuntimeType.from_dynamic!(d.fetch("runtimeType")),
72817390 s: S.from_dynamic!(d.fetch("s")),
72827391 sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")),
72837392 sealed: Sealed.from_dynamic!(d.fetch("sealed")),
@@ -7303,6 +7412,7 @@ class Obj4 < Dry::Struct
73037412 this: This.from_dynamic!(d.fetch("this")),
73047413 thread_local: ThreadLocal.from_dynamic!(d.fetch("thread_local")),
73057414 throws: Throws.from_dynamic!(d.fetch("throws")),
7415+ to_string: ToString.from_dynamic!(d.fetch("toString")),
73067416 top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")),
73077417 transient: Transient.from_dynamic!(d.fetch("transient")),
73087418 true_1: Obj4True.from_dynamic!(d.fetch("true")),
@@ -7353,6 +7463,7 @@ class Obj4 < Dry::Struct
73537463 "retain" => retain.to_dynamic,
73547464 "rethrows" => rethrows.to_dynamic,
73557465 "right" => right.to_dynamic,
7466+ "runtimeType" => runtime_type.to_dynamic,
73567467 "s" => s.to_dynamic,
73577468 "sbyte" => sbyte.to_dynamic,
73587469 "sealed" => sealed.to_dynamic,
@@ -7378,6 +7489,7 @@ class Obj4 < Dry::Struct
73787489 "this" => this.to_dynamic,
73797490 "thread_local" => thread_local.to_dynamic,
73807491 "throws" => throws.to_dynamic,
7492+ "toString" => to_string.to_dynamic,
73817493 "top_level" => top_level.to_dynamic,
73827494 "transient" => transient.to_dynamic,
73837495 "true" => true_1.to_dynamic,
Mrustdefault / module_under_test.rs+39 −3
@@ -522,6 +522,7 @@ pub struct Obj1Bool {
522522 }
523523
524524 #[derive(Debug, Clone, Serialize, Deserialize)]
525+#[serde(rename_all = "camelCase")]
525526 pub struct Obj2 {
526527 pub def: Def,
527528
@@ -539,7 +540,6 @@ pub struct Obj2 {
539540
540541 pub dictionary: Dictionary,
541542
542- #[serde(rename = "didSet")]
543543 pub did_set: DidSet,
544544
545545 pub double: Double,
@@ -548,13 +548,14 @@ pub struct Obj2 {
548548
549549 pub dynamic: Dynamic,
550550
551+ #[serde(rename = "dynamic_cast")]
551552 pub dynamic_cast: DynamicCast,
552553
553554 pub elif: Elif,
554555
556+ #[serde(rename = "encode_quick_type")]
555557 pub encode_quick_type: EncodeQuickType,
556558
557- #[serde(rename = "equalityContract")]
558559 pub equality_contract: EqualityContract,
559560
560561 pub event: Event,
@@ -589,6 +590,7 @@ pub struct Obj2 {
589590
590591 pub from: From,
591592
593+ #[serde(rename = "from_json")]
592594 pub from_json: FromJson,
593595
594596 pub func: Func,
@@ -605,9 +607,10 @@ pub struct Obj2 {
605607
606608 pub guard: Guard,
607609
608- #[serde(rename = "hasOwnProperty")]
609610 pub has_own_property: HasOwnProperty,
610611
612+ pub hash_code: HashCode,
613+
611614 pub id: Id,
612615
613616 #[serde(rename = "IMP")]
@@ -874,6 +877,12 @@ pub struct HasOwnProperty {
874877 pub has_own_property: i64,
875878 }
876879
880+#[derive(Debug, Clone, Serialize, Deserialize)]
881+#[serde(rename_all = "camelCase")]
882+pub struct HashCode {
883+ pub hash_code: i64,
884+}
885+
877886 #[derive(Debug, Clone, Serialize, Deserialize)]
878887 pub struct Id {
879888 pub id: i64,
@@ -1071,6 +1080,9 @@ pub struct Obj3 {
10711080 #[serde(rename = "NO")]
10721081 pub no: No,
10731082
1083+ #[serde(rename = "noSuchMethod")]
1084+ pub no_such_method: NoSuchMethod,
1085+
10741086 pub noexcept: Noexcept,
10751087
10761088 pub nonatomic: Nonatomic,
@@ -1294,6 +1306,12 @@ pub struct No {
12941306 pub no: i64,
12951307 }
12961308
1309+#[derive(Debug, Clone, Serialize, Deserialize)]
1310+#[serde(rename_all = "camelCase")]
1311+pub struct NoSuchMethod {
1312+ pub no_such_method: i64,
1313+}
1314+
12971315 #[derive(Debug, Clone, Serialize, Deserialize)]
12981316 pub struct Noexcept {
12991317 pub noexcept: i64,
@@ -1565,6 +1583,9 @@ pub struct Obj4 {
15651583
15661584 pub right: Right,
15671585
1586+ #[serde(rename = "runtimeType")]
1587+ pub runtime_type: RuntimeType,
1588+
15681589 pub s: S,
15691590
15701591 pub sbyte: Sbyte,
@@ -1618,6 +1639,9 @@ pub struct Obj4 {
16181639
16191640 pub to_json: ToJson,
16201641
1642+ #[serde(rename = "toString")]
1643+ pub to_string: ToString,
1644+
16211645 pub top_level: TopLevelClass,
16221646
16231647 pub transient: Transient,
@@ -1797,6 +1821,12 @@ pub struct Right {
17971821 pub right: i64,
17981822 }
17991823
1824+#[derive(Debug, Clone, Serialize, Deserialize)]
1825+#[serde(rename_all = "camelCase")]
1826+pub struct RuntimeType {
1827+ pub runtime_type: i64,
1828+}
1829+
18001830 #[derive(Debug, Clone, Serialize, Deserialize)]
18011831 pub struct S {
18021832 pub s: i64,
@@ -1928,6 +1958,12 @@ pub struct ToJson {
19281958 pub to_json: i64,
19291959 }
19301960
1961+#[derive(Debug, Clone, Serialize, Deserialize)]
1962+#[serde(rename_all = "camelCase")]
1963+pub struct ToString {
1964+ pub to_string: i64,
1965+}
1966+
19311967 #[derive(Debug, Clone, Serialize, Deserialize)]
19321968 pub struct TopLevelClass {
19331969 pub top_level: i64,
Mscala3-upickledefault / TopLevel.scala+24 −0
@@ -449,6 +449,8 @@ case class Obj2 (
449449 val goto : Goto,
450450 val guard : Guard,
451451 val hasOwnProperty : HasOwnProperty,
452+ @upickle.implicits.key("hashCode")
453+ val hashCodeValue : HashCode,
452454 val id : ID,
453455 val IMP : Imp,
454456 val implements : Implements,
@@ -630,6 +632,11 @@ case class HasOwnProperty (
630632 val hasOwnProperty : Long
631633 ) derives OptionPickler.ReadWriter
632634
635+case class HashCode (
636+ @upickle.implicits.key("hashCode")
637+ val hashCodeValue : Long
638+) derives OptionPickler.ReadWriter
639+
633640 case class ID (
634641 val id : Long
635642 ) derives OptionPickler.ReadWriter
@@ -766,6 +773,7 @@ case class Obj3 (
766773 val newtonsoft : Newtonsoft,
767774 val nil : Nil,
768775 val NO : No,
776+ val noSuchMethod : NoSuchMethod,
769777 val noexcept : Noexcept,
770778 val nonatomic : Nonatomic,
771779 val None : NoneClass,
@@ -911,6 +919,10 @@ case class No (
911919 val NO : Long
912920 ) derives OptionPickler.ReadWriter
913921
922+case class NoSuchMethod (
923+ val noSuchMethod : Long
924+) derives OptionPickler.ReadWriter
925+
914926 case class Noexcept (
915927 val noexcept : Long
916928 ) derives OptionPickler.ReadWriter
@@ -1097,6 +1109,7 @@ case class Obj4 (
10971109 val retain : Retain,
10981110 val rethrows : Rethrows,
10991111 val right : Right,
1112+ val runtimeType : RuntimeType,
11001113 val s : S,
11011114 val sbyte : Sbyte,
11021115 val SEL : Sel,
@@ -1124,6 +1137,8 @@ case class Obj4 (
11241137 val thread_local : ThreadLocal,
11251138 val throws : Throws,
11261139 val to_json : ToJSON,
1140+ @upickle.implicits.key("toString")
1141+ val toStringValue : ToString,
11271142 val top_level : TopLevelClass,
11281143 val transient : Transient,
11291144 val typealias : Typealias,
@@ -1249,6 +1264,10 @@ case class Right (
12491264 val right : Long
12501265 ) derives OptionPickler.ReadWriter
12511266
1267+case class RuntimeType (
1268+ val runtimeType : Long
1269+) derives OptionPickler.ReadWriter
1270+
12521271 case class S (
12531272 val s : Long
12541273 ) derives OptionPickler.ReadWriter
@@ -1354,6 +1373,11 @@ case class ToJSON (
13541373 val to_json : Long
13551374 ) derives OptionPickler.ReadWriter
13561375
1376+case class ToString (
1377+ @upickle.implicits.key("toString")
1378+ val toStringValue : Long
1379+) derives OptionPickler.ReadWriter
1380+
13571381 case class TopLevelClass (
13581382 val top_level : Long
13591383 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+50 −2
@@ -413,6 +413,7 @@ case class Obj2 (
413413 val goto : Goto,
414414 val guard : Guard,
415415 val hasOwnProperty : HasOwnProperty,
416+ val hashCodeValue : HashCode,
416417 val id : ID,
417418 val IMP : Imp,
418419 val implements : Implements,
@@ -440,7 +441,16 @@ case class Obj2 (
440441 val `implicit` : Implicit,
441442 val `import` : Import,
442443 val `false` : FalseClass
443-) derives Encoder.AsObject, Decoder
444+)
445+
446+object Obj2:
447+ given io.circe.derivation.Configuration =
448+ io.circe.derivation.Configuration.default.withTransformMemberNames(
449+ io.circe.derivation.renaming.replaceWith(
450+ "hashCodeValue" -> "hashCode"
451+ )
452+ )
453+ given io.circe.Codec.AsObject[Obj2] = io.circe.derivation.ConfiguredCodec.derived
444454
445455 case class Default (
446456 val default : Long
@@ -594,6 +604,19 @@ case class HasOwnProperty (
594604 val hasOwnProperty : Long
595605 ) derives Encoder.AsObject, Decoder
596606
607+case class HashCode (
608+ val hashCodeValue : Long
609+)
610+
611+object HashCode:
612+ given io.circe.derivation.Configuration =
613+ io.circe.derivation.Configuration.default.withTransformMemberNames(
614+ io.circe.derivation.renaming.replaceWith(
615+ "hashCodeValue" -> "hashCode"
616+ )
617+ )
618+ given io.circe.Codec.AsObject[HashCode] = io.circe.derivation.ConfiguredCodec.derived
619+
597620 case class ID (
598621 val id : Long
599622 ) derives Encoder.AsObject, Decoder
@@ -730,6 +753,7 @@ case class Obj3 (
730753 val newtonsoft : Newtonsoft,
731754 val nil : Nil,
732755 val NO : No,
756+ val noSuchMethod : NoSuchMethod,
733757 val noexcept : Noexcept,
734758 val nonatomic : Nonatomic,
735759 val None : NoneClass,
@@ -875,6 +899,10 @@ case class No (
875899 val NO : Long
876900 ) derives Encoder.AsObject, Decoder
877901
902+case class NoSuchMethod (
903+ val noSuchMethod : Long
904+) derives Encoder.AsObject, Decoder
905+
878906 case class Noexcept (
879907 val noexcept : Long
880908 ) derives Encoder.AsObject, Decoder
@@ -1061,6 +1089,7 @@ case class Obj4 (
10611089 val retain : Retain,
10621090 val rethrows : Rethrows,
10631091 val right : Right,
1092+ val runtimeType : RuntimeType,
10641093 val s : S,
10651094 val sbyte : Sbyte,
10661095 val SEL : Sel,
@@ -1087,6 +1116,7 @@ case class Obj4 (
10871116 val thread_local : ThreadLocal,
10881117 val throws : Throws,
10891118 val to_json : ToJSON,
1119+ val toStringValue : ToString,
10901120 val top_level : TopLevelClass,
10911121 val transient : Transient,
10921122 val typealias : Typealias,
@@ -1104,7 +1134,8 @@ object Obj4:
11041134 given io.circe.derivation.Configuration =
11051135 io.circe.derivation.Configuration.default.withTransformMemberNames(
11061136 io.circe.derivation.renaming.replaceWith(
1107- "synchronizedValue" -> "synchronized"
1137+ "synchronizedValue" -> "synchronized",
1138+ "toStringValue" -> "toString"
11081139 )
11091140 )
11101141 given io.circe.Codec.AsObject[Obj4] = io.circe.derivation.ConfiguredCodec.derived
@@ -1221,6 +1252,10 @@ case class Right (
12211252 val right : Long
12221253 ) derives Encoder.AsObject, Decoder
12231254
1255+case class RuntimeType (
1256+ val runtimeType : Long
1257+) derives Encoder.AsObject, Decoder
1258+
12241259 case class S (
12251260 val s : Long
12261261 ) derives Encoder.AsObject, Decoder
@@ -1334,6 +1369,19 @@ case class ToJSON (
13341369 val to_json : Long
13351370 ) derives Encoder.AsObject, Decoder
13361371
1372+case class ToString (
1373+ val toStringValue : Long
1374+)
1375+
1376+object ToString:
1377+ given io.circe.derivation.Configuration =
1378+ io.circe.derivation.Configuration.default.withTransformMemberNames(
1379+ io.circe.derivation.renaming.replaceWith(
1380+ "toStringValue" -> "toString"
1381+ )
1382+ )
1383+ given io.circe.Codec.AsObject[ToString] = io.circe.derivation.ConfiguredCodec.derived
1384+
13371385 case class TopLevelClass (
13381386 val top_level : Long
13391387 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+192 −0
@@ -3267,6 +3267,7 @@ struct Obj2: Codable {
32673267 let go: Go
32683268 let goto: Goto
32693269 let hasOwnProperty: HasOwnProperty
3270+ let hashCode: HashCode
32703271 let id: ID
32713272 let imp: Imp
32723273 let implements: Implements
@@ -3335,6 +3336,7 @@ struct Obj2: Codable {
33353336 case go = "go"
33363337 case goto = "goto"
33373338 case hasOwnProperty = "hasOwnProperty"
3339+ case hashCode = "hashCode"
33383340 case id = "id"
33393341 case imp = "IMP"
33403342 case implements = "implements"
@@ -3423,6 +3425,7 @@ extension Obj2 {
34233425 go: Go? = nil,
34243426 goto: Goto? = nil,
34253427 hasOwnProperty: HasOwnProperty? = nil,
3428+ hashCode: HashCode? = nil,
34263429 id: ID? = nil,
34273430 imp: Imp? = nil,
34283431 implements: Implements? = nil,
@@ -3491,6 +3494,7 @@ extension Obj2 {
34913494 go: go ?? self.go,
34923495 goto: goto ?? self.goto,
34933496 hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty,
3497+ hashCode: hashCode ?? self.hashCode,
34943498 id: id ?? self.id,
34953499 imp: imp ?? self.imp,
34963500 implements: implements ?? self.implements,
@@ -4901,6 +4905,50 @@ extension HasOwnProperty {
49014905 }
49024906 }
49034907
4908+// MARK: - HashCode
4909+struct HashCode: Codable {
4910+ let hashCode: Int
4911+
4912+ enum CodingKeys: String, CodingKey {
4913+ case hashCode = "hashCode"
4914+ }
4915+}
4916+
4917+// MARK: HashCode convenience initializers and mutators
4918+
4919+extension HashCode {
4920+ init(data: Data) throws {
4921+ self = try newJSONDecoder().decode(HashCode.self, from: data)
4922+ }
4923+
4924+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
4925+ guard let data = json.data(using: encoding) else {
4926+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
4927+ }
4928+ try self.init(data: data)
4929+ }
4930+
4931+ init(fromURL url: URL) throws {
4932+ try self.init(data: try Data(contentsOf: url))
4933+ }
4934+
4935+ func with(
4936+ hashCode: Int? = nil
4937+ ) -> HashCode {
4938+ return HashCode(
4939+ hashCode: hashCode ?? self.hashCode
4940+ )
4941+ }
4942+
4943+ func jsonData() throws -> Data {
4944+ return try newJSONEncoder().encode(self)
4945+ }
4946+
4947+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
4948+ return String(data: try self.jsonData(), encoding: encoding)
4949+ }
4950+}
4951+
49044952 // MARK: - ID
49054953 struct ID: Codable {
49064954 let id: Int
@@ -6421,6 +6469,7 @@ struct Obj3: Codable {
64216469 let new: New
64226470 let newtonsoft: Newtonsoft
64236471 let no: No
6472+ let noSuchMethod: NoSuchMethod
64246473 let noexcept: Noexcept
64256474 let nonatomic: Nonatomic
64266475 let none: None
@@ -6489,6 +6538,7 @@ struct Obj3: Codable {
64896538 case new = "new"
64906539 case newtonsoft = "newtonsoft"
64916540 case no = "NO"
6541+ case noSuchMethod = "noSuchMethod"
64926542 case noexcept = "noexcept"
64936543 case nonatomic = "nonatomic"
64946544 case none = "None"
@@ -6577,6 +6627,7 @@ extension Obj3 {
65776627 new: New? = nil,
65786628 newtonsoft: Newtonsoft? = nil,
65796629 no: No? = nil,
6630+ noSuchMethod: NoSuchMethod? = nil,
65806631 noexcept: Noexcept? = nil,
65816632 nonatomic: Nonatomic? = nil,
65826633 none: None? = nil,
@@ -6645,6 +6696,7 @@ extension Obj3 {
66456696 new: new ?? self.new,
66466697 newtonsoft: newtonsoft ?? self.newtonsoft,
66476698 no: no ?? self.no,
6699+ noSuchMethod: noSuchMethod ?? self.noSuchMethod,
66486700 noexcept: noexcept ?? self.noexcept,
66496701 nonatomic: nonatomic ?? self.nonatomic,
66506702 none: none ?? self.none,
@@ -7625,6 +7677,50 @@ extension No {
76257677 }
76267678 }
76277679
7680+// MARK: - NoSuchMethod
7681+struct NoSuchMethod: Codable {
7682+ let noSuchMethod: Int
7683+
7684+ enum CodingKeys: String, CodingKey {
7685+ case noSuchMethod = "noSuchMethod"
7686+ }
7687+}
7688+
7689+// MARK: NoSuchMethod convenience initializers and mutators
7690+
7691+extension NoSuchMethod {
7692+ init(data: Data) throws {
7693+ self = try newJSONDecoder().decode(NoSuchMethod.self, from: data)
7694+ }
7695+
7696+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
7697+ guard let data = json.data(using: encoding) else {
7698+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
7699+ }
7700+ try self.init(data: data)
7701+ }
7702+
7703+ init(fromURL url: URL) throws {
7704+ try self.init(data: try Data(contentsOf: url))
7705+ }
7706+
7707+ func with(
7708+ noSuchMethod: Int? = nil
7709+ ) -> NoSuchMethod {
7710+ return NoSuchMethod(
7711+ noSuchMethod: noSuchMethod ?? self.noSuchMethod
7712+ )
7713+ }
7714+
7715+ func jsonData() throws -> Data {
7716+ return try newJSONEncoder().encode(self)
7717+ }
7718+
7719+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
7720+ return String(data: try self.jsonData(), encoding: encoding)
7721+ }
7722+}
7723+
76287724 // MARK: - Noexcept
76297725 struct Noexcept: Codable {
76307726 let noexcept: Int
@@ -9596,6 +9692,7 @@ struct Obj4: Codable {
95969692 let requires: Requires
95979693 let restrict: Restrict
95989694 let retain: Retain
9695+ let runtimeType: RuntimeType
95999696 let s: S
96009697 let sbyte: Sbyte
96019698 let sealed: Sealed
@@ -9618,6 +9715,7 @@ struct Obj4: Codable {
96189715 let this: This
96199716 let threadLocal: ThreadLocal
96209717 let toJSON: ToJSON
9718+ let toString: ToString
96219719 let topLevel: TopLevelClass
96229720 let transient: Transient
96239721 let type: TypeClass
@@ -9664,6 +9762,7 @@ struct Obj4: Codable {
96649762 case requires = "requires"
96659763 case restrict = "restrict"
96669764 case retain = "retain"
9765+ case runtimeType = "runtimeType"
96679766 case s = "s"
96689767 case sbyte = "sbyte"
96699768 case sealed = "sealed"
@@ -9686,6 +9785,7 @@ struct Obj4: Codable {
96869785 case this = "this"
96879786 case threadLocal = "thread_local"
96889787 case toJSON = "to_json"
9788+ case toString = "toString"
96899789 case topLevel = "top_level"
96909790 case transient = "transient"
96919791 case type = "Type"
@@ -9752,6 +9852,7 @@ extension Obj4 {
97529852 requires: Requires? = nil,
97539853 restrict: Restrict? = nil,
97549854 retain: Retain? = nil,
9855+ runtimeType: RuntimeType? = nil,
97559856 s: S? = nil,
97569857 sbyte: Sbyte? = nil,
97579858 sealed: Sealed? = nil,
@@ -9774,6 +9875,7 @@ extension Obj4 {
97749875 this: This? = nil,
97759876 threadLocal: ThreadLocal? = nil,
97769877 toJSON: ToJSON? = nil,
9878+ toString: ToString? = nil,
97779879 topLevel: TopLevelClass? = nil,
97789880 transient: Transient? = nil,
97799881 type: TypeClass? = nil,
@@ -9820,6 +9922,7 @@ extension Obj4 {
98209922 requires: requires ?? self.requires,
98219923 restrict: restrict ?? self.restrict,
98229924 retain: retain ?? self.retain,
9925+ runtimeType: runtimeType ?? self.runtimeType,
98239926 s: s ?? self.s,
98249927 sbyte: sbyte ?? self.sbyte,
98259928 sealed: sealed ?? self.sealed,
@@ -9842,6 +9945,7 @@ extension Obj4 {
98429945 this: this ?? self.this,
98439946 threadLocal: threadLocal ?? self.threadLocal,
98449947 toJSON: toJSON ?? self.toJSON,
9948+ toString: toString ?? self.toString,
98459949 topLevel: topLevel ?? self.topLevel,
98469950 transient: transient ?? self.transient,
98479951 type: type ?? self.type,
@@ -11273,6 +11377,50 @@ extension Retain {
1127311377 }
1127411378 }
1127511379
11380+// MARK: - RuntimeType
11381+struct RuntimeType: Codable {
11382+ let runtimeType: Int
11383+
11384+ enum CodingKeys: String, CodingKey {
11385+ case runtimeType = "runtimeType"
11386+ }
11387+}
11388+
11389+// MARK: RuntimeType convenience initializers and mutators
11390+
11391+extension RuntimeType {
11392+ init(data: Data) throws {
11393+ self = try newJSONDecoder().decode(RuntimeType.self, from: data)
11394+ }
11395+
11396+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11397+ guard let data = json.data(using: encoding) else {
11398+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11399+ }
11400+ try self.init(data: data)
11401+ }
11402+
11403+ init(fromURL url: URL) throws {
11404+ try self.init(data: try Data(contentsOf: url))
11405+ }
11406+
11407+ func with(
11408+ runtimeType: Int? = nil
11409+ ) -> RuntimeType {
11410+ return RuntimeType(
11411+ runtimeType: runtimeType ?? self.runtimeType
11412+ )
11413+ }
11414+
11415+ func jsonData() throws -> Data {
11416+ return try newJSONEncoder().encode(self)
11417+ }
11418+
11419+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11420+ return String(data: try self.jsonData(), encoding: encoding)
11421+ }
11422+}
11423+
1127611424 // MARK: - S
1127711425 struct S: Codable {
1127811426 let s: Int
@@ -12241,6 +12389,50 @@ extension ToJSON {
1224112389 }
1224212390 }
1224312391
12392+// MARK: - ToString
12393+struct ToString: Codable {
12394+ let toString: Int
12395+
12396+ enum CodingKeys: String, CodingKey {
12397+ case toString = "toString"
12398+ }
12399+}
12400+
12401+// MARK: ToString convenience initializers and mutators
12402+
12403+extension ToString {
12404+ init(data: Data) throws {
12405+ self = try newJSONDecoder().decode(ToString.self, from: data)
12406+ }
12407+
12408+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12409+ guard let data = json.data(using: encoding) else {
12410+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12411+ }
12412+ try self.init(data: data)
12413+ }
12414+
12415+ init(fromURL url: URL) throws {
12416+ try self.init(data: try Data(contentsOf: url))
12417+ }
12418+
12419+ func with(
12420+ toString: Int? = nil
12421+ ) -> ToString {
12422+ return ToString(
12423+ toString: toString ?? self.toString
12424+ )
12425+ }
12426+
12427+ func jsonData() throws -> Data {
12428+ return try newJSONEncoder().encode(self)
12429+ }
12430+
12431+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12432+ return String(data: try self.jsonData(), encoding: encoding)
12433+ }
12434+}
12435+
1224412436 // MARK: - TopLevelClass
1224512437 struct TopLevelClass: Codable {
1224612438 let topLevel: Int
Mtypescript-effect-schemadefault / TopLevel.ts+22 −0
@@ -161,6 +161,11 @@ export class TopLevelClass extends S.Class<TopLevelClass>("TopLevelClass")({
161161 "top_level": S.Int,
162162 }) {}
163163
164+export class ToString extends S.Class<ToString>("ToString")({
165+ "toString": S.Int,
166+}) {}
167+Object.defineProperty(ToString.prototype, "toString", { writable: true });
168+
164169 export class ToJson extends S.Class<ToJson>("ToJson")({
165170 "to_json": S.Int,
166171 }) {}
@@ -285,6 +290,10 @@ export class SClass extends S.Class<SClass>("SClass")({
285290 "s": S.Int,
286291 }) {}
287292
293+export class RuntimeType extends S.Class<RuntimeType>("RuntimeType")({
294+ "runtimeType": S.Int,
295+}) {}
296+
288297 export class Right extends S.Class<Right>("Right")({
289298 "right": S.Int,
290299 }) {}
@@ -387,6 +396,7 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
387396 "rethrows": Rethrows,
388397 "return": Return,
389398 "right": Right,
399+ "runtimeType": RuntimeType,
390400 "s": SClass,
391401 "sbyte": Sbyte,
392402 "sealed": Sealed,
@@ -418,6 +428,7 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
418428 "throw": Throw,
419429 "throws": Throws,
420430 "to_json": ToJson,
431+ "toString": ToString,
421432 "top_level": TopLevelClass,
422433 "transient": Transient,
423434 "True": True,
@@ -433,6 +444,7 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
433444 "unchecked": Unchecked,
434445 "undefined": Undefined,
435446 }) {}
447+Object.defineProperty(Obj4.prototype, "toString", { writable: true });
436448
437449 export class Protocol extends S.Class<Protocol>("Protocol")({
438450 "Protocol": S.Int,
@@ -582,6 +594,10 @@ export class Noexcept extends S.Class<Noexcept>("Noexcept")({
582594 "noexcept": S.Int,
583595 }) {}
584596
597+export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
598+ "noSuchMethod": S.Int,
599+}) {}
600+
585601 export class No extends S.Class<No>("No")({
586602 "NO": S.Int,
587603 }) {}
@@ -724,6 +740,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
724740 "newtonsoft": Newtonsoft,
725741 "nil": Nil,
726742 "NO": No,
743+ "noSuchMethod": NoSuchMethod,
727744 "noexcept": Noexcept,
728745 "nonatomic": Nonatomic,
729746 "None": None,
@@ -831,6 +848,10 @@ export class Id extends S.Class<Id>("Id")({
831848 "id": S.Int,
832849 }) {}
833850
851+export class HashCode extends S.Class<HashCode>("HashCode")({
852+ "hashCode": S.Int,
853+}) {}
854+
834855 export class HasOwnProperty extends S.Class<HasOwnProperty>("HasOwnProperty")({
835856 "hasOwnProperty": S.Int,
836857 }) {}
@@ -1073,6 +1094,7 @@ export class Obj2 extends S.Class<Obj2>("Obj2")({
10731094 "goto": Goto,
10741095 "guard": Guard,
10751096 "hasOwnProperty": HasOwnProperty,
1097+ "hashCode": HashCode,
10761098 "id": Id,
10771099 "if": If,
10781100 "IMP": Imp,
Mtypescript-zoddefault / TopLevel.ts+24 −0
@@ -566,6 +566,11 @@ export const HasOwnPropertySchema = z.object({
566566 });
567567 export type HasOwnProperty = z.infer<typeof HasOwnPropertySchema>;
568568
569+export const HashCodeSchema = z.object({
570+ "hashCode": z.number().int(),
571+});
572+export type HashCode = z.infer<typeof HashCodeSchema>;
573+
569574 export const IdSchema = z.object({
570575 "id": z.number().int(),
571576 });
@@ -791,6 +796,11 @@ export const NoSchema = z.object({
791796 });
792797 export type No = z.infer<typeof NoSchema>;
793798
799+export const NoSuchMethodSchema = z.object({
800+ "noSuchMethod": z.number().int(),
801+});
802+export type NoSuchMethod = z.infer<typeof NoSuchMethodSchema>;
803+
794804 export const NoexceptSchema = z.object({
795805 "noexcept": z.number().int(),
796806 });
@@ -1076,6 +1086,11 @@ export const RightSchema = z.object({
10761086 });
10771087 export type Right = z.infer<typeof RightSchema>;
10781088
1089+export const RuntimeTypeSchema = z.object({
1090+ "runtimeType": z.number().int(),
1091+});
1092+export type RuntimeType = z.infer<typeof RuntimeTypeSchema>;
1093+
10791094 export const SSchema = z.object({
10801095 "s": z.number().int(),
10811096 });
@@ -1231,6 +1246,11 @@ export const ToJsonSchema = z.object({
12311246 });
12321247 export type ToJson = z.infer<typeof ToJsonSchema>;
12331248
1249+export const ToStringSchema = z.object({
1250+ "toString": z.number().int(),
1251+});
1252+export type ToString = z.infer<typeof ToStringSchema>;
1253+
12341254 export const TopLevelClassSchema = z.object({
12351255 "top_level": z.number().int(),
12361256 });
@@ -1521,6 +1541,7 @@ export const Obj2Schema = z.object({
15211541 "goto": GotoSchema,
15221542 "guard": GuardSchema,
15231543 "hasOwnProperty": HasOwnPropertySchema,
1544+ "hashCode": HashCodeSchema,
15241545 "id": IdSchema,
15251546 "if": IfSchema,
15261547 "IMP": ImpSchema,
@@ -1571,6 +1592,7 @@ export const Obj3Schema = z.object({
15711592 "newtonsoft": NewtonsoftSchema,
15721593 "nil": NilSchema,
15731594 "NO": NoSchema,
1595+ "noSuchMethod": NoSuchMethodSchema,
15741596 "noexcept": NoexceptSchema,
15751597 "nonatomic": NonatomicSchema,
15761598 "None": NoneSchema,
@@ -1633,6 +1655,7 @@ export const Obj4Schema = z.object({
16331655 "rethrows": RethrowsSchema,
16341656 "return": ReturnSchema,
16351657 "right": RightSchema,
1658+ "runtimeType": RuntimeTypeSchema,
16361659 "s": SSchema,
16371660 "sbyte": SbyteSchema,
16381661 "sealed": SealedSchema,
@@ -1664,6 +1687,7 @@ export const Obj4Schema = z.object({
16641687 "throw": ThrowSchema,
16651688 "throws": ThrowsSchema,
16661689 "to_json": ToJsonSchema,
1690+ "toString": ToStringSchema,
16671691 "top_level": TopLevelClassSchema,
16681692 "transient": TransientSchema,
16691693 "True": TrueSchema,
Mtypescriptdefault / TopLevel.ts+36 −0
@@ -397,6 +397,7 @@ export interface Obj2 {
397397 goto: Goto;
398398 guard: Guard;
399399 hasOwnProperty: HasOwnProperty;
400+ hashCode: HashCode;
400401 id: ID;
401402 if: If;
402403 implements: Implements;
@@ -614,6 +615,10 @@ export interface HasOwnProperty {
614615 hasOwnProperty: number;
615616 }
616617
618+export interface HashCode {
619+ hashCode: number;
620+}
621+
617622 export interface ID {
618623 id: number;
619624 }
@@ -708,6 +713,7 @@ export interface Obj3 {
708713 new: New;
709714 newtonsoft: Newtonsoft;
710715 nil: Nil;
716+ noSuchMethod: NoSuchMethod;
711717 noexcept: Noexcept;
712718 nonatomic: Nonatomic;
713719 none: NoneClass;
@@ -871,6 +877,10 @@ export interface Nil {
871877 nil: number;
872878 }
873879
880+export interface NoSuchMethod {
881+ noSuchMethod: number;
882+}
883+
874884 export interface Noexcept {
875885 noexcept: number;
876886 }
@@ -1026,6 +1036,7 @@ export interface Obj4 {
10261036 rethrows: Rethrows;
10271037 return: Return;
10281038 right: Right;
1039+ runtimeType: RuntimeType;
10291040 s: S;
10301041 sbyte: Sbyte;
10311042 sealed: Sealed;
@@ -1055,6 +1066,7 @@ export interface Obj4 {
10551066 thread_local: ThreadLocal;
10561067 throw: Throw;
10571068 throws: Throws;
1069+ toString: ToString;
10581070 to_json: ToJSON;
10591071 top_level: TopLevelClass;
10601072 transient: Transient;
@@ -1156,6 +1168,10 @@ export interface Right {
11561168 right: number;
11571169 }
11581170
1171+export interface RuntimeType {
1172+ runtimeType: number;
1173+}
1174+
11591175 export interface S {
11601176 s: number;
11611177 }
@@ -1272,6 +1288,10 @@ export interface Throws {
12721288 throws: number;
12731289 }
12741290
1291+export interface ToString {
1292+ toString: number;
1293+}
1294+
12751295 export interface ToJSON {
12761296 to_json: number;
12771297 }
@@ -1946,6 +1966,7 @@ const typeMap: any = {
19461966 { json: "goto", js: "goto", typ: r("Goto") },
19471967 { json: "guard", js: "guard", typ: r("Guard") },
19481968 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
1969+ { json: "hashCode", js: "hashCode", typ: r("HashCode") },
19491970 { json: "id", js: "id", typ: r("ID") },
19501971 { json: "if", js: "if", typ: r("If") },
19511972 { json: "implements", js: "implements", typ: r("Implements") },
@@ -2112,6 +2133,9 @@ const typeMap: any = {
21122133 "HasOwnProperty": o([
21132134 { json: "hasOwnProperty", js: "hasOwnProperty", typ: i(0) },
21142135 ], false),
2136+ "HashCode": o([
2137+ { json: "hashCode", js: "hashCode", typ: i(0) },
2138+ ], false),
21152139 "ID": o([
21162140 { json: "id", js: "id", typ: i(0) },
21172141 ], false),
@@ -2191,6 +2215,7 @@ const typeMap: any = {
21912215 { json: "new", js: "new", typ: r("New") },
21922216 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
21932217 { json: "nil", js: "nil", typ: r("Nil") },
2218+ { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
21942219 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
21952220 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
21962221 { json: "none", js: "none", typ: r("NoneClass") },
@@ -2321,6 +2346,9 @@ const typeMap: any = {
23212346 "Nil": o([
23222347 { json: "nil", js: "nil", typ: i(0) },
23232348 ], false),
2349+ "NoSuchMethod": o([
2350+ { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
2351+ ], false),
23242352 "Noexcept": o([
23252353 { json: "noexcept", js: "noexcept", typ: i(0) },
23262354 ], false),
@@ -2443,6 +2471,7 @@ const typeMap: any = {
24432471 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
24442472 { json: "return", js: "return", typ: r("Return") },
24452473 { json: "right", js: "right", typ: r("Right") },
2474+ { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
24462475 { json: "s", js: "s", typ: r("S") },
24472476 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
24482477 { json: "sealed", js: "sealed", typ: r("Sealed") },
@@ -2472,6 +2501,7 @@ const typeMap: any = {
24722501 { json: "thread_local", js: "thread_local", typ: r("ThreadLocal") },
24732502 { json: "throw", js: "throw", typ: r("Throw") },
24742503 { json: "throws", js: "throws", typ: r("Throws") },
2504+ { json: "toString", js: "toString", typ: r("ToString") },
24752505 { json: "to_json", js: "to_json", typ: r("ToJSON") },
24762506 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
24772507 { json: "transient", js: "transient", typ: r("Transient") },
@@ -2551,6 +2581,9 @@ const typeMap: any = {
25512581 "Right": o([
25522582 { json: "right", js: "right", typ: i(0) },
25532583 ], false),
2584+ "RuntimeType": o([
2585+ { json: "runtimeType", js: "runtimeType", typ: i(0) },
2586+ ], false),
25542587 "S": o([
25552588 { json: "s", js: "s", typ: i(0) },
25562589 ], false),
@@ -2638,6 +2671,9 @@ const typeMap: any = {
26382671 "Throws": o([
26392672 { json: "throws", js: "throws", typ: i(0) },
26402673 ], false),
2674+ "ToString": o([
2675+ { json: "toString", js: "toString", typ: i(0) },
2676+ ], false),
26412677 "ToJSON": o([
26422678 { json: "to_json", js: "to_json", typ: i(0) },
26432679 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+36 −0
@@ -397,6 +397,7 @@ export type Obj2 = {
397397 goto: Goto;
398398 guard: Guard;
399399 hasOwnProperty: HasOwnProperty;
400+ hashCode: HashCode;
400401 id: ID;
401402 if: If;
402403 implements: Implements;
@@ -614,6 +615,10 @@ export type HasOwnProperty = {
614615 hasOwnProperty: number;
615616 }
616617
618+export type HashCode = {
619+ hashCode: number;
620+}
621+
617622 export type ID = {
618623 id: number;
619624 }
@@ -708,6 +713,7 @@ export type Obj3 = {
708713 new: New;
709714 newtonsoft: Newtonsoft;
710715 nil: Nil;
716+ noSuchMethod: NoSuchMethod;
711717 noexcept: Noexcept;
712718 nonatomic: Nonatomic;
713719 none: NoneClass;
@@ -871,6 +877,10 @@ export type Nil = {
871877 nil: number;
872878 }
873879
880+export type NoSuchMethod = {
881+ noSuchMethod: number;
882+}
883+
874884 export type Noexcept = {
875885 noexcept: number;
876886 }
@@ -1026,6 +1036,7 @@ export type Obj4 = {
10261036 rethrows: Rethrows;
10271037 return: Return;
10281038 right: Right;
1039+ runtimeType: RuntimeType;
10291040 s: S;
10301041 sbyte: Sbyte;
10311042 sealed: Sealed;
@@ -1055,6 +1066,7 @@ export type Obj4 = {
10551066 thread_local: ThreadLocal;
10561067 throw: Throw;
10571068 throws: Throws;
1069+ toString: ToString;
10581070 to_json: ToJSON;
10591071 top_level: TopLevelClass;
10601072 transient: Transient;
@@ -1156,6 +1168,10 @@ export type Right = {
11561168 right: number;
11571169 }
11581170
1171+export type RuntimeType = {
1172+ runtimeType: number;
1173+}
1174+
11591175 export type S = {
11601176 s: number;
11611177 }
@@ -1272,6 +1288,10 @@ export type Throws = {
12721288 throws: number;
12731289 }
12741290
1291+export type ToString = {
1292+ toString: number;
1293+}
1294+
12751295 export type ToJSON = {
12761296 to_json: number;
12771297 }
@@ -1946,6 +1966,7 @@ const typeMap: any = {
19461966 { json: "goto", js: "goto", typ: r("Goto") },
19471967 { json: "guard", js: "guard", typ: r("Guard") },
19481968 { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") },
1969+ { json: "hashCode", js: "hashCode", typ: r("HashCode") },
19491970 { json: "id", js: "id", typ: r("ID") },
19501971 { json: "if", js: "if", typ: r("If") },
19511972 { json: "implements", js: "implements", typ: r("Implements") },
@@ -2112,6 +2133,9 @@ const typeMap: any = {
21122133 "HasOwnProperty": o([
21132134 { json: "hasOwnProperty", js: "hasOwnProperty", typ: i(0) },
21142135 ], false),
2136+ "HashCode": o([
2137+ { json: "hashCode", js: "hashCode", typ: i(0) },
2138+ ], false),
21152139 "ID": o([
21162140 { json: "id", js: "id", typ: i(0) },
21172141 ], false),
@@ -2191,6 +2215,7 @@ const typeMap: any = {
21912215 { json: "new", js: "new", typ: r("New") },
21922216 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
21932217 { json: "nil", js: "nil", typ: r("Nil") },
2218+ { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
21942219 { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
21952220 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
21962221 { json: "none", js: "none", typ: r("NoneClass") },
@@ -2321,6 +2346,9 @@ const typeMap: any = {
23212346 "Nil": o([
23222347 { json: "nil", js: "nil", typ: i(0) },
23232348 ], false),
2349+ "NoSuchMethod": o([
2350+ { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
2351+ ], false),
23242352 "Noexcept": o([
23252353 { json: "noexcept", js: "noexcept", typ: i(0) },
23262354 ], false),
@@ -2443,6 +2471,7 @@ const typeMap: any = {
24432471 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
24442472 { json: "return", js: "return", typ: r("Return") },
24452473 { json: "right", js: "right", typ: r("Right") },
2474+ { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
24462475 { json: "s", js: "s", typ: r("S") },
24472476 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
24482477 { json: "sealed", js: "sealed", typ: r("Sealed") },
@@ -2472,6 +2501,7 @@ const typeMap: any = {
24722501 { json: "thread_local", js: "thread_local", typ: r("ThreadLocal") },
24732502 { json: "throw", js: "throw", typ: r("Throw") },
24742503 { json: "throws", js: "throws", typ: r("Throws") },
2504+ { json: "toString", js: "toString", typ: r("ToString") },
24752505 { json: "to_json", js: "to_json", typ: r("ToJSON") },
24762506 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
24772507 { json: "transient", js: "transient", typ: r("Transient") },
@@ -2551,6 +2581,9 @@ const typeMap: any = {
25512581 "Right": o([
25522582 { json: "right", js: "right", typ: i(0) },
25532583 ], false),
2584+ "RuntimeType": o([
2585+ { json: "runtimeType", js: "runtimeType", typ: i(0) },
2586+ ], false),
25542587 "S": o([
25552588 { json: "s", js: "s", typ: i(0) },
25562589 ], false),
@@ -2638,6 +2671,9 @@ const typeMap: any = {
26382671 "Throws": o([
26392672 { json: "throws", js: "throws", typ: i(0) },
26402673 ], false),
2674+ "ToString": o([
2675+ { json: "toString", js: "toString", typ: i(0) },
2676+ ], false),
26412677 "ToJSON": o([
26422678 { json: "to_json", js: "to_json", typ: i(0) },
26432679 ], false),
No generated files match these filters.