Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
3test cases
160files differ
106modified
54new
0deleted
25,604changed lines
+19,250 −6,354insertions / deletions
Base 4fae346ba5a108350e23f153a6e0d2edc996fc3f · PR merge abced299f0e2e3cbec2db1ab1936ff0437045530 · Head 8faf659086f8edd83c9712dac1147ea5905c4aef · raw patch
Test case

test/inputs/json/priority/keywords.json

59 generated files · +11,591 −6,177
Mcjsondefault / TopLevel.c+712 −322
@@ -16944,6 +16944,61 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1694416944 }
1694516945 }
1694616946
16947+struct KSerializer * cJSON_ParseKSerializer(const char * s) {
16948+ struct KSerializer * x = NULL;
16949+ if (NULL != s) {
16950+ cJSON * j = cJSON_Parse(s);
16951+ if (NULL != j) {
16952+ x = cJSON_GetKSerializerValue(j);
16953+ cJSON_Delete(j);
16954+ }
16955+ }
16956+ return x;
16957+}
16958+
16959+struct KSerializer * cJSON_GetKSerializerValue(const cJSON * j) {
16960+ struct KSerializer * x = NULL;
16961+ if (NULL != j) {
16962+ if (NULL != (x = cJSON_malloc(sizeof(struct KSerializer)))) {
16963+ memset(x, 0, sizeof(struct KSerializer));
16964+ if (!cJSON_HasObjectItem(j, "KSerializer")) { cJSON_DeleteKSerializer(x); return NULL; }
16965+ if (cJSON_HasObjectItem(j, "KSerializer")) {
16966+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"))) { cJSON_DeleteKSerializer(x); return NULL; }
16967+ x->k_serializer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"));
16968+ }
16969+ }
16970+ }
16971+ return x;
16972+}
16973+
16974+cJSON * cJSON_CreateKSerializer(const struct KSerializer * x) {
16975+ cJSON * j = NULL;
16976+ if (NULL != x) {
16977+ if (NULL != (j = cJSON_CreateObject())) {
16978+ cJSON_AddNumberToObject(j, "KSerializer", x->k_serializer);
16979+ }
16980+ }
16981+ return j;
16982+}
16983+
16984+char * cJSON_PrintKSerializer(const struct KSerializer * x) {
16985+ char * s = NULL;
16986+ if (NULL != x) {
16987+ cJSON * j = cJSON_CreateKSerializer(x);
16988+ if (NULL != j) {
16989+ s = cJSON_Print(j);
16990+ cJSON_Delete(j);
16991+ }
16992+ }
16993+ return s;
16994+}
16995+
16996+void cJSON_DeleteKSerializer(struct KSerializer * x) {
16997+ if (NULL != x) {
16998+ cJSON_free(x);
16999+ }
17000+}
17001+
1694717002 struct SelfClass * cJSON_ParseSelfClass(const char * s) {
1694817003 struct SelfClass * x = NULL;
1694917004 if (NULL != s) {
@@ -18209,102 +18264,47 @@ void cJSON_DeleteUnsigned(struct Unsigned * x) {
1820918264 }
1821018265 }
1821118266
18212-struct Using * cJSON_ParseUsing(const char * s) {
18213- struct Using * x = NULL;
18214- if (NULL != s) {
18215- cJSON * j = cJSON_Parse(s);
18216- if (NULL != j) {
18217- x = cJSON_GetUsingValue(j);
18218- cJSON_Delete(j);
18219- }
18220- }
18221- return x;
18222-}
18223-
18224-struct Using * cJSON_GetUsingValue(const cJSON * j) {
18225- struct Using * x = NULL;
18226- if (NULL != j) {
18227- if (NULL != (x = cJSON_malloc(sizeof(struct Using)))) {
18228- memset(x, 0, sizeof(struct Using));
18229- if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteUsing(x); return NULL; }
18230- if (cJSON_HasObjectItem(j, "using")) {
18231- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteUsing(x); return NULL; }
18232- x->using_using = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
18233- }
18234- }
18235- }
18236- return x;
18237-}
18238-
18239-cJSON * cJSON_CreateUsing(const struct Using * x) {
18240- cJSON * j = NULL;
18241- if (NULL != x) {
18242- if (NULL != (j = cJSON_CreateObject())) {
18243- cJSON_AddNumberToObject(j, "using", x->using_using);
18244- }
18245- }
18246- return j;
18247-}
18248-
18249-char * cJSON_PrintUsing(const struct Using * x) {
18250- char * s = NULL;
18251- if (NULL != x) {
18252- cJSON * j = cJSON_CreateUsing(x);
18253- if (NULL != j) {
18254- s = cJSON_Print(j);
18255- cJSON_Delete(j);
18256- }
18257- }
18258- return s;
18259-}
18260-
18261-void cJSON_DeleteUsing(struct Using * x) {
18262- if (NULL != x) {
18263- cJSON_free(x);
18264- }
18265-}
18266-
18267-struct Virtual * cJSON_ParseVirtual(const char * s) {
18268- struct Virtual * x = NULL;
18267+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18268+ struct PrimitiveKind * x = NULL;
1826918269 if (NULL != s) {
1827018270 cJSON * j = cJSON_Parse(s);
1827118271 if (NULL != j) {
18272- x = cJSON_GetVirtualValue(j);
18272+ x = cJSON_GetPrimitiveKindValue(j);
1827318273 cJSON_Delete(j);
1827418274 }
1827518275 }
1827618276 return x;
1827718277 }
1827818278
18279-struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
18280- struct Virtual * x = NULL;
18279+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18280+ struct PrimitiveKind * x = NULL;
1828118281 if (NULL != j) {
18282- if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
18283- memset(x, 0, sizeof(struct Virtual));
18284- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
18285- if (cJSON_HasObjectItem(j, "virtual")) {
18286- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
18287- x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
18282+ if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18283+ memset(x, 0, sizeof(struct PrimitiveKind));
18284+ if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18285+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18286+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18287+ x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
1828818288 }
1828918289 }
1829018290 }
1829118291 return x;
1829218292 }
1829318293
18294-cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
18294+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
1829518295 cJSON * j = NULL;
1829618296 if (NULL != x) {
1829718297 if (NULL != (j = cJSON_CreateObject())) {
18298- cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
18298+ cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
1829918299 }
1830018300 }
1830118301 return j;
1830218302 }
1830318303
18304-char * cJSON_PrintVirtual(const struct Virtual * x) {
18304+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1830518305 char * s = NULL;
1830618306 if (NULL != x) {
18307- cJSON * j = cJSON_CreateVirtual(x);
18307+ cJSON * j = cJSON_CreatePrimitiveKind(x);
1830818308 if (NULL != j) {
1830918309 s = cJSON_Print(j);
1831018310 cJSON_Delete(j);
@@ -18313,7 +18313,7 @@ char * cJSON_PrintVirtual(const struct Virtual * x) {
1831318313 return s;
1831418314 }
1831518315
18316-void cJSON_DeleteVirtual(struct Virtual * x) {
18316+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
1831718317 if (NULL != x) {
1831818318 cJSON_free(x);
1831918319 }
@@ -18484,6 +18484,171 @@ void cJSON_DeleteSendable(struct Sendable * x) {
1848418484 }
1848518485 }
1848618486
18487+struct SerialDescriptor * cJSON_ParseSerialDescriptor(const char * s) {
18488+ struct SerialDescriptor * x = NULL;
18489+ if (NULL != s) {
18490+ cJSON * j = cJSON_Parse(s);
18491+ if (NULL != j) {
18492+ x = cJSON_GetSerialDescriptorValue(j);
18493+ cJSON_Delete(j);
18494+ }
18495+ }
18496+ return x;
18497+}
18498+
18499+struct SerialDescriptor * cJSON_GetSerialDescriptorValue(const cJSON * j) {
18500+ struct SerialDescriptor * x = NULL;
18501+ if (NULL != j) {
18502+ if (NULL != (x = cJSON_malloc(sizeof(struct SerialDescriptor)))) {
18503+ memset(x, 0, sizeof(struct SerialDescriptor));
18504+ if (!cJSON_HasObjectItem(j, "SerialDescriptor")) { cJSON_DeleteSerialDescriptor(x); return NULL; }
18505+ if (cJSON_HasObjectItem(j, "SerialDescriptor")) {
18506+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"))) { cJSON_DeleteSerialDescriptor(x); return NULL; }
18507+ x->serial_descriptor = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"));
18508+ }
18509+ }
18510+ }
18511+ return x;
18512+}
18513+
18514+cJSON * cJSON_CreateSerialDescriptor(const struct SerialDescriptor * x) {
18515+ cJSON * j = NULL;
18516+ if (NULL != x) {
18517+ if (NULL != (j = cJSON_CreateObject())) {
18518+ cJSON_AddNumberToObject(j, "SerialDescriptor", x->serial_descriptor);
18519+ }
18520+ }
18521+ return j;
18522+}
18523+
18524+char * cJSON_PrintSerialDescriptor(const struct SerialDescriptor * x) {
18525+ char * s = NULL;
18526+ if (NULL != x) {
18527+ cJSON * j = cJSON_CreateSerialDescriptor(x);
18528+ if (NULL != j) {
18529+ s = cJSON_Print(j);
18530+ cJSON_Delete(j);
18531+ }
18532+ }
18533+ return s;
18534+}
18535+
18536+void cJSON_DeleteSerialDescriptor(struct SerialDescriptor * x) {
18537+ if (NULL != x) {
18538+ cJSON_free(x);
18539+ }
18540+}
18541+
18542+struct SerialName * cJSON_ParseSerialName(const char * s) {
18543+ struct SerialName * x = NULL;
18544+ if (NULL != s) {
18545+ cJSON * j = cJSON_Parse(s);
18546+ if (NULL != j) {
18547+ x = cJSON_GetSerialNameValue(j);
18548+ cJSON_Delete(j);
18549+ }
18550+ }
18551+ return x;
18552+}
18553+
18554+struct SerialName * cJSON_GetSerialNameValue(const cJSON * j) {
18555+ struct SerialName * x = NULL;
18556+ if (NULL != j) {
18557+ if (NULL != (x = cJSON_malloc(sizeof(struct SerialName)))) {
18558+ memset(x, 0, sizeof(struct SerialName));
18559+ if (!cJSON_HasObjectItem(j, "SerialName")) { cJSON_DeleteSerialName(x); return NULL; }
18560+ if (cJSON_HasObjectItem(j, "SerialName")) {
18561+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SerialName"))) { cJSON_DeleteSerialName(x); return NULL; }
18562+ x->serial_name = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SerialName"));
18563+ }
18564+ }
18565+ }
18566+ return x;
18567+}
18568+
18569+cJSON * cJSON_CreateSerialName(const struct SerialName * x) {
18570+ cJSON * j = NULL;
18571+ if (NULL != x) {
18572+ if (NULL != (j = cJSON_CreateObject())) {
18573+ cJSON_AddNumberToObject(j, "SerialName", x->serial_name);
18574+ }
18575+ }
18576+ return j;
18577+}
18578+
18579+char * cJSON_PrintSerialName(const struct SerialName * x) {
18580+ char * s = NULL;
18581+ if (NULL != x) {
18582+ cJSON * j = cJSON_CreateSerialName(x);
18583+ if (NULL != j) {
18584+ s = cJSON_Print(j);
18585+ cJSON_Delete(j);
18586+ }
18587+ }
18588+ return s;
18589+}
18590+
18591+void cJSON_DeleteSerialName(struct SerialName * x) {
18592+ if (NULL != x) {
18593+ cJSON_free(x);
18594+ }
18595+}
18596+
18597+struct Serializable * cJSON_ParseSerializable(const char * s) {
18598+ struct Serializable * x = NULL;
18599+ if (NULL != s) {
18600+ cJSON * j = cJSON_Parse(s);
18601+ if (NULL != j) {
18602+ x = cJSON_GetSerializableValue(j);
18603+ cJSON_Delete(j);
18604+ }
18605+ }
18606+ return x;
18607+}
18608+
18609+struct Serializable * cJSON_GetSerializableValue(const cJSON * j) {
18610+ struct Serializable * x = NULL;
18611+ if (NULL != j) {
18612+ if (NULL != (x = cJSON_malloc(sizeof(struct Serializable)))) {
18613+ memset(x, 0, sizeof(struct Serializable));
18614+ if (!cJSON_HasObjectItem(j, "Serializable")) { cJSON_DeleteSerializable(x); return NULL; }
18615+ if (cJSON_HasObjectItem(j, "Serializable")) {
18616+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Serializable"))) { cJSON_DeleteSerializable(x); return NULL; }
18617+ x->serializable = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Serializable"));
18618+ }
18619+ }
18620+ }
18621+ return x;
18622+}
18623+
18624+cJSON * cJSON_CreateSerializable(const struct Serializable * x) {
18625+ cJSON * j = NULL;
18626+ if (NULL != x) {
18627+ if (NULL != (j = cJSON_CreateObject())) {
18628+ cJSON_AddNumberToObject(j, "Serializable", x->serializable);
18629+ }
18630+ }
18631+ return j;
18632+}
18633+
18634+char * cJSON_PrintSerializable(const struct Serializable * x) {
18635+ char * s = NULL;
18636+ if (NULL != x) {
18637+ cJSON * j = cJSON_CreateSerializable(x);
18638+ if (NULL != j) {
18639+ s = cJSON_Print(j);
18640+ cJSON_Delete(j);
18641+ }
18642+ }
18643+ return s;
18644+}
18645+
18646+void cJSON_DeleteSerializable(struct Serializable * x) {
18647+ if (NULL != x) {
18648+ cJSON_free(x);
18649+ }
18650+}
18651+
1848718652 struct Serialize * cJSON_ParseSerialize(const char * s) {
1848818653 struct Serialize * x = NULL;
1848918654 if (NULL != s) {
@@ -20189,47 +20354,47 @@ void cJSON_DeleteUnsafe(struct Unsafe * x) {
2018920354 }
2019020355 }
2019120356
20192-struct Ushort * cJSON_ParseUshort(const char * s) {
20193- struct Ushort * x = NULL;
20357+struct UseSerializers * cJSON_ParseUseSerializers(const char * s) {
20358+ struct UseSerializers * x = NULL;
2019420359 if (NULL != s) {
2019520360 cJSON * j = cJSON_Parse(s);
2019620361 if (NULL != j) {
20197- x = cJSON_GetUshortValue(j);
20362+ x = cJSON_GetUseSerializersValue(j);
2019820363 cJSON_Delete(j);
2019920364 }
2020020365 }
2020120366 return x;
2020220367 }
2020320368
20204-struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
20205- struct Ushort * x = NULL;
20369+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) {
20370+ struct UseSerializers * x = NULL;
2020620371 if (NULL != j) {
20207- if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
20208- memset(x, 0, sizeof(struct Ushort));
20209- if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
20210- if (cJSON_HasObjectItem(j, "ushort")) {
20211- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
20212- x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
20372+ if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) {
20373+ memset(x, 0, sizeof(struct UseSerializers));
20374+ if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteUseSerializers(x); return NULL; }
20375+ if (cJSON_HasObjectItem(j, "UseSerializers")) {
20376+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteUseSerializers(x); return NULL; }
20377+ x->use_serializers = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
2021320378 }
2021420379 }
2021520380 }
2021620381 return x;
2021720382 }
2021820383
20219-cJSON * cJSON_CreateUshort(const struct Ushort * x) {
20384+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) {
2022020385 cJSON * j = NULL;
2022120386 if (NULL != x) {
2022220387 if (NULL != (j = cJSON_CreateObject())) {
20223- cJSON_AddNumberToObject(j, "ushort", x->ushort);
20388+ cJSON_AddNumberToObject(j, "UseSerializers", x->use_serializers);
2022420389 }
2022520390 }
2022620391 return j;
2022720392 }
2022820393
20229-char * cJSON_PrintUshort(const struct Ushort * x) {
20394+char * cJSON_PrintUseSerializers(const struct UseSerializers * x) {
2023020395 char * s = NULL;
2023120396 if (NULL != x) {
20232- cJSON * j = cJSON_CreateUshort(x);
20397+ cJSON * j = cJSON_CreateUseSerializers(x);
2023320398 if (NULL != j) {
2023420399 s = cJSON_Print(j);
2023520400 cJSON_Delete(j);
@@ -20238,218 +20403,53 @@ char * cJSON_PrintUshort(const struct Ushort * x) {
2023820403 return s;
2023920404 }
2024020405
20241-void cJSON_DeleteUshort(struct Ushort * x) {
20406+void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
2024220407 if (NULL != x) {
2024320408 cJSON_free(x);
2024420409 }
2024520410 }
2024620411
20247-struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s) {
20248- struct Utf8JsonReader * x = NULL;
20412+struct Ushort * cJSON_ParseUshort(const char * s) {
20413+ struct Ushort * x = NULL;
2024920414 if (NULL != s) {
2025020415 cJSON * j = cJSON_Parse(s);
2025120416 if (NULL != j) {
20252- x = cJSON_GetUtf8JsonReaderValue(j);
20417+ x = cJSON_GetUshortValue(j);
2025320418 cJSON_Delete(j);
2025420419 }
2025520420 }
2025620421 return x;
2025720422 }
2025820423
20259-struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j) {
20260- struct Utf8JsonReader * x = NULL;
20424+struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
20425+ struct Ushort * x = NULL;
2026120426 if (NULL != j) {
20262- if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonReader)))) {
20263- memset(x, 0, sizeof(struct Utf8JsonReader));
20264- if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteUtf8JsonReader(x); return NULL; }
20265- if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
20266- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteUtf8JsonReader(x); return NULL; }
20267- x->utf8_json_reader = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"));
20268- }
20269- }
20270- }
20271- return x;
20272-}
20273-
20274-cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x) {
20275- cJSON * j = NULL;
20276- if (NULL != x) {
20277- if (NULL != (j = cJSON_CreateObject())) {
20278- cJSON_AddNumberToObject(j, "Utf8JsonReader", x->utf8_json_reader);
20279- }
20280- }
20281- return j;
20282-}
20283-
20284-char * cJSON_PrintUtf8JsonReader(const struct Utf8JsonReader * x) {
20285- char * s = NULL;
20286- if (NULL != x) {
20287- cJSON * j = cJSON_CreateUtf8JsonReader(x);
20288- if (NULL != j) {
20289- s = cJSON_Print(j);
20290- cJSON_Delete(j);
20291- }
20292- }
20293- return s;
20294-}
20295-
20296-void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x) {
20297- if (NULL != x) {
20298- cJSON_free(x);
20299- }
20300-}
20301-
20302-struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s) {
20303- struct Utf8JsonWriter * x = NULL;
20304- if (NULL != s) {
20305- cJSON * j = cJSON_Parse(s);
20306- if (NULL != j) {
20307- x = cJSON_GetUtf8JsonWriterValue(j);
20308- cJSON_Delete(j);
20309- }
20310- }
20311- return x;
20312-}
20313-
20314-struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j) {
20315- struct Utf8JsonWriter * x = NULL;
20316- if (NULL != j) {
20317- if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonWriter)))) {
20318- memset(x, 0, sizeof(struct Utf8JsonWriter));
20319- if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteUtf8JsonWriter(x); return NULL; }
20320- if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) {
20321- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteUtf8JsonWriter(x); return NULL; }
20322- x->utf8_json_writer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"));
20323- }
20324- }
20325- }
20326- return x;
20327-}
20328-
20329-cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x) {
20330- cJSON * j = NULL;
20331- if (NULL != x) {
20332- if (NULL != (j = cJSON_CreateObject())) {
20333- cJSON_AddNumberToObject(j, "Utf8JsonWriter", x->utf8_json_writer);
20334- }
20335- }
20336- return j;
20337-}
20338-
20339-char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x) {
20340- char * s = NULL;
20341- if (NULL != x) {
20342- cJSON * j = cJSON_CreateUtf8JsonWriter(x);
20343- if (NULL != j) {
20344- s = cJSON_Print(j);
20345- cJSON_Delete(j);
20346- }
20347- }
20348- return s;
20349-}
20350-
20351-void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x) {
20352- if (NULL != x) {
20353- cJSON_free(x);
20354- }
20355-}
20356-
20357-struct Uuid * cJSON_ParseUuid(const char * s) {
20358- struct Uuid * x = NULL;
20359- if (NULL != s) {
20360- cJSON * j = cJSON_Parse(s);
20361- if (NULL != j) {
20362- x = cJSON_GetUuidValue(j);
20363- cJSON_Delete(j);
20364- }
20365- }
20366- return x;
20367-}
20368-
20369-struct Uuid * cJSON_GetUuidValue(const cJSON * j) {
20370- struct Uuid * x = NULL;
20371- if (NULL != j) {
20372- if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) {
20373- memset(x, 0, sizeof(struct Uuid));
20374- if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; }
20375- if (cJSON_HasObjectItem(j, "UUID")) {
20376- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; }
20377- x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
20378- }
20379- }
20380- }
20381- return x;
20382-}
20383-
20384-cJSON * cJSON_CreateUuid(const struct Uuid * x) {
20385- cJSON * j = NULL;
20386- if (NULL != x) {
20387- if (NULL != (j = cJSON_CreateObject())) {
20388- cJSON_AddNumberToObject(j, "UUID", x->uuid);
20389- }
20390- }
20391- return j;
20392-}
20393-
20394-char * cJSON_PrintUuid(const struct Uuid * x) {
20395- char * s = NULL;
20396- if (NULL != x) {
20397- cJSON * j = cJSON_CreateUuid(x);
20398- if (NULL != j) {
20399- s = cJSON_Print(j);
20400- cJSON_Delete(j);
20401- }
20402- }
20403- return s;
20404-}
20405-
20406-void cJSON_DeleteUuid(struct Uuid * x) {
20407- if (NULL != x) {
20408- cJSON_free(x);
20409- }
20410-}
20411-
20412-struct Var * cJSON_ParseVar(const char * s) {
20413- struct Var * x = NULL;
20414- if (NULL != s) {
20415- cJSON * j = cJSON_Parse(s);
20416- if (NULL != j) {
20417- x = cJSON_GetVarValue(j);
20418- cJSON_Delete(j);
20419- }
20420- }
20421- return x;
20422-}
20423-
20424-struct Var * cJSON_GetVarValue(const cJSON * j) {
20425- struct Var * x = NULL;
20426- if (NULL != j) {
20427- if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
20428- memset(x, 0, sizeof(struct Var));
20429- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
20430- if (cJSON_HasObjectItem(j, "var")) {
20431- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
20432- x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20427+ if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
20428+ memset(x, 0, sizeof(struct Ushort));
20429+ if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
20430+ if (cJSON_HasObjectItem(j, "ushort")) {
20431+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
20432+ x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
2043320433 }
2043420434 }
2043520435 }
2043620436 return x;
2043720437 }
2043820438
20439-cJSON * cJSON_CreateVar(const struct Var * x) {
20439+cJSON * cJSON_CreateUshort(const struct Ushort * x) {
2044020440 cJSON * j = NULL;
2044120441 if (NULL != x) {
2044220442 if (NULL != (j = cJSON_CreateObject())) {
20443- cJSON_AddNumberToObject(j, "var", x->var);
20443+ cJSON_AddNumberToObject(j, "ushort", x->ushort);
2044420444 }
2044520445 }
2044620446 return j;
2044720447 }
2044820448
20449-char * cJSON_PrintVar(const struct Var * x) {
20449+char * cJSON_PrintUshort(const struct Ushort * x) {
2045020450 char * s = NULL;
2045120451 if (NULL != x) {
20452- cJSON * j = cJSON_CreateVar(x);
20452+ cJSON * j = cJSON_CreateUshort(x);
2045320453 if (NULL != j) {
2045420454 s = cJSON_Print(j);
2045520455 cJSON_Delete(j);
@@ -20458,7 +20458,7 @@ char * cJSON_PrintVar(const struct Var * x) {
2045820458 return s;
2045920459 }
2046020460
20461-void cJSON_DeleteVar(struct Var * x) {
20461+void cJSON_DeleteUshort(struct Ushort * x) {
2046220462 if (NULL != x) {
2046320463 cJSON_free(x);
2046420464 }
@@ -20486,6 +20486,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2048620486 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; }
2048720487 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2048820488 }
20489+ if (!cJSON_HasObjectItem(j, "KSerializer")) { cJSON_DeleteObj5(x); return NULL; }
20490+ if (cJSON_HasObjectItem(j, "KSerializer")) {
20491+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"))) { cJSON_DeleteObj5(x); return NULL; }
20492+ x->k_serializer = cJSON_GetKSerializerValue(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"));
20493+ if (NULL == x->k_serializer) { cJSON_DeleteObj5(x); return NULL; }
20494+ }
2048920495 if (!cJSON_HasObjectItem(j, "self")) { cJSON_DeleteObj5(x); return NULL; }
2049020496 if (cJSON_HasObjectItem(j, "self")) {
2049120497 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "self"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20624,17 +20630,11 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2062420630 x->obj5_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
2062520631 if (NULL == x->obj5_unsigned) { cJSON_DeleteObj5(x); return NULL; }
2062620632 }
20627- if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteObj5(x); return NULL; }
20628- if (cJSON_HasObjectItem(j, "using")) {
20629- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteObj5(x); return NULL; }
20630- x->obj5_using = cJSON_GetUsingValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
20631- if (NULL == x->obj5_using) { cJSON_DeleteObj5(x); return NULL; }
20632- }
20633- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj5(x); return NULL; }
20634- if (cJSON_HasObjectItem(j, "virtual")) {
20635- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj5(x); return NULL; }
20636- x->obj5_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
20637- if (NULL == x->obj5_virtual) { cJSON_DeleteObj5(x); return NULL; }
20633+ if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; }
20634+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
20635+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; }
20636+ x->primitive_kind = cJSON_GetPrimitiveKindValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
20637+ if (NULL == x->primitive_kind) { cJSON_DeleteObj5(x); return NULL; }
2063820638 }
2063920639 if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5(x); return NULL; }
2064020640 if (cJSON_HasObjectItem(j, "true")) {
@@ -20654,6 +20654,24 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2065420654 x->sendable = cJSON_GetSendableValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable"));
2065520655 if (NULL == x->sendable) { cJSON_DeleteObj5(x); return NULL; }
2065620656 }
20657+ if (!cJSON_HasObjectItem(j, "SerialDescriptor")) { cJSON_DeleteObj5(x); return NULL; }
20658+ if (cJSON_HasObjectItem(j, "SerialDescriptor")) {
20659+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"))) { cJSON_DeleteObj5(x); return NULL; }
20660+ x->serial_descriptor = cJSON_GetSerialDescriptorValue(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"));
20661+ if (NULL == x->serial_descriptor) { cJSON_DeleteObj5(x); return NULL; }
20662+ }
20663+ if (!cJSON_HasObjectItem(j, "SerialName")) { cJSON_DeleteObj5(x); return NULL; }
20664+ if (cJSON_HasObjectItem(j, "SerialName")) {
20665+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SerialName"))) { cJSON_DeleteObj5(x); return NULL; }
20666+ x->serial_name = cJSON_GetSerialNameValue(cJSON_GetObjectItemCaseSensitive(j, "SerialName"));
20667+ if (NULL == x->serial_name) { cJSON_DeleteObj5(x); return NULL; }
20668+ }
20669+ if (!cJSON_HasObjectItem(j, "Serializable")) { cJSON_DeleteObj5(x); return NULL; }
20670+ if (cJSON_HasObjectItem(j, "Serializable")) {
20671+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Serializable"))) { cJSON_DeleteObj5(x); return NULL; }
20672+ x->serializable = cJSON_GetSerializableValue(cJSON_GetObjectItemCaseSensitive(j, "Serializable"));
20673+ if (NULL == x->serializable) { cJSON_DeleteObj5(x); return NULL; }
20674+ }
2065720675 if (!cJSON_HasObjectItem(j, "serialize")) { cJSON_DeleteObj5(x); return NULL; }
2065820676 if (cJSON_HasObjectItem(j, "serialize")) {
2065920677 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20840,36 +20858,18 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2084020858 x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
2084120859 if (NULL == x->unsafe) { cJSON_DeleteObj5(x); return NULL; }
2084220860 }
20861+ if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj5(x); return NULL; }
20862+ if (cJSON_HasObjectItem(j, "UseSerializers")) {
20863+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj5(x); return NULL; }
20864+ x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
20865+ if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; }
20866+ }
2084320867 if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj5(x); return NULL; }
2084420868 if (cJSON_HasObjectItem(j, "ushort")) {
2084520869 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj5(x); return NULL; }
2084620870 x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
2084720871 if (NULL == x->ushort) { cJSON_DeleteObj5(x); return NULL; }
2084820872 }
20849- if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteObj5(x); return NULL; }
20850- if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
20851- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteObj5(x); return NULL; }
20852- x->utf8_json_reader = cJSON_GetUtf8JsonReaderValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"));
20853- if (NULL == x->utf8_json_reader) { cJSON_DeleteObj5(x); return NULL; }
20854- }
20855- if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteObj5(x); return NULL; }
20856- if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) {
20857- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteObj5(x); return NULL; }
20858- x->utf8_json_writer = cJSON_GetUtf8JsonWriterValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"));
20859- if (NULL == x->utf8_json_writer) { cJSON_DeleteObj5(x); return NULL; }
20860- }
20861- if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj5(x); return NULL; }
20862- if (cJSON_HasObjectItem(j, "UUID")) {
20863- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj5(x); return NULL; }
20864- x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
20865- if (NULL == x->uuid) { cJSON_DeleteObj5(x); return NULL; }
20866- }
20867- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj5(x); return NULL; }
20868- if (cJSON_HasObjectItem(j, "var")) {
20869- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj5(x); return NULL; }
20870- x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20871- if (NULL == x->var) { cJSON_DeleteObj5(x); return NULL; }
20872- }
2087320873 }
2087420874 }
2087520875 return x;
@@ -20880,6 +20880,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2088020880 if (NULL != x) {
2088120881 if (NULL != (j = cJSON_CreateObject())) {
2088220882 cJSON_AddNumberToObject(j, "dummy", x->dummy);
20883+ cJSON_AddItemToObject(j, "KSerializer", cJSON_CreateKSerializer(x->k_serializer));
2088320884 cJSON_AddItemToObject(j, "self", cJSON_CreateSelfClass(x->obj5_self));
2088420885 cJSON_AddItemToObject(j, "short", cJSON_CreateShort(x->obj5_short));
2088520886 cJSON_AddItemToObject(j, "signed", cJSON_CreateSigned(x->obj5_signed));
@@ -20903,11 +20904,13 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2090320904 cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof));
2090420905 cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
2090520906 cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned));
20906- cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj5_using));
20907- cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj5_virtual));
20907+ cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind));
2090820908 cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true));
2090920909 cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self));
2091020910 cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable));
20911+ cJSON_AddItemToObject(j, "SerialDescriptor", cJSON_CreateSerialDescriptor(x->serial_descriptor));
20912+ cJSON_AddItemToObject(j, "SerialName", cJSON_CreateSerialName(x->serial_name));
20913+ cJSON_AddItemToObject(j, "Serializable", cJSON_CreateSerializable(x->serializable));
2091120914 cJSON_AddItemToObject(j, "serialize", cJSON_CreateSerialize(x->serialize));
2091220915 cJSON_AddItemToObject(j, "SerializerProvider", cJSON_CreateSerializerProvider(x->serializer_provider));
2091320916 cJSON_AddItemToObject(j, "set", cJSON_CreateSet(x->set));
@@ -20939,11 +20942,8 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2093920942 cJSON_AddItemToObject(j, "undefined", cJSON_CreateUndefined(x->undefined));
2094020943 cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned));
2094120944 cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
20945+ cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers));
2094220946 cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
20943- cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
20944- cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
20945- cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
20946- cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2094720947 }
2094820948 }
2094920949 return j;
@@ -20963,6 +20963,9 @@ char * cJSON_PrintObj5(const struct Obj5 * x) {
2096320963
2096420964 void cJSON_DeleteObj5(struct Obj5 * x) {
2096520965 if (NULL != x) {
20966+ if (NULL != x->k_serializer) {
20967+ cJSON_DeleteKSerializer(x->k_serializer);
20968+ }
2096620969 if (NULL != x->obj5_self) {
2096720970 cJSON_DeleteSelfClass(x->obj5_self);
2096820971 }
@@ -21032,11 +21035,8 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103221035 if (NULL != x->obj5_unsigned) {
2103321036 cJSON_DeleteUnsigned(x->obj5_unsigned);
2103421037 }
21035- if (NULL != x->obj5_using) {
21036- cJSON_DeleteUsing(x->obj5_using);
21037- }
21038- if (NULL != x->obj5_virtual) {
21039- cJSON_DeleteVirtual(x->obj5_virtual);
21038+ if (NULL != x->primitive_kind) {
21039+ cJSON_DeletePrimitiveKind(x->primitive_kind);
2104021040 }
2104121041 if (NULL != x->purple_true) {
2104221042 cJSON_DeleteObj5True(x->purple_true);
@@ -21047,6 +21047,15 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2104721047 if (NULL != x->sendable) {
2104821048 cJSON_DeleteSendable(x->sendable);
2104921049 }
21050+ if (NULL != x->serial_descriptor) {
21051+ cJSON_DeleteSerialDescriptor(x->serial_descriptor);
21052+ }
21053+ if (NULL != x->serial_name) {
21054+ cJSON_DeleteSerialName(x->serial_name);
21055+ }
21056+ if (NULL != x->serializable) {
21057+ cJSON_DeleteSerializable(x->serializable);
21058+ }
2105021059 if (NULL != x->serialize) {
2105121060 cJSON_DeleteSerialize(x->serialize);
2105221061 }
@@ -21140,21 +21149,122 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2114021149 if (NULL != x->unsafe) {
2114121150 cJSON_DeleteUnsafe(x->unsafe);
2114221151 }
21152+ if (NULL != x->use_serializers) {
21153+ cJSON_DeleteUseSerializers(x->use_serializers);
21154+ }
2114321155 if (NULL != x->ushort) {
2114421156 cJSON_DeleteUshort(x->ushort);
2114521157 }
21146- if (NULL != x->utf8_json_reader) {
21147- cJSON_DeleteUtf8JsonReader(x->utf8_json_reader);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Using * cJSON_ParseUsing(const char * s) {
21163+ struct Using * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetUsingValue(j);
21168+ cJSON_Delete(j);
2114821169 }
21149- if (NULL != x->utf8_json_writer) {
21150- cJSON_DeleteUtf8JsonWriter(x->utf8_json_writer);
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Using * cJSON_GetUsingValue(const cJSON * j) {
21175+ struct Using * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Using)))) {
21178+ memset(x, 0, sizeof(struct Using));
21179+ if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteUsing(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "using")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteUsing(x); return NULL; }
21182+ x->using_using = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
21183+ }
2115121184 }
21152- if (NULL != x->uuid) {
21153- cJSON_DeleteUuid(x->uuid);
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateUsing(const struct Using * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "using", x->using_using);
2115421194 }
21155- if (NULL != x->var) {
21156- cJSON_DeleteVar(x->var);
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintUsing(const struct Using * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateUsing(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
21206+ }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteUsing(struct Using * x) {
21212+ if (NULL != x) {
21213+ cJSON_free(x);
21214+ }
21215+}
21216+
21217+struct Virtual * cJSON_ParseVirtual(const char * s) {
21218+ struct Virtual * x = NULL;
21219+ if (NULL != s) {
21220+ cJSON * j = cJSON_Parse(s);
21221+ if (NULL != j) {
21222+ x = cJSON_GetVirtualValue(j);
21223+ cJSON_Delete(j);
2115721224 }
21225+ }
21226+ return x;
21227+}
21228+
21229+struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
21230+ struct Virtual * x = NULL;
21231+ if (NULL != j) {
21232+ if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
21233+ memset(x, 0, sizeof(struct Virtual));
21234+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
21235+ if (cJSON_HasObjectItem(j, "virtual")) {
21236+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
21237+ x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
21238+ }
21239+ }
21240+ }
21241+ return x;
21242+}
21243+
21244+cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
21245+ cJSON * j = NULL;
21246+ if (NULL != x) {
21247+ if (NULL != (j = cJSON_CreateObject())) {
21248+ cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
21249+ }
21250+ }
21251+ return j;
21252+}
21253+
21254+char * cJSON_PrintVirtual(const struct Virtual * x) {
21255+ char * s = NULL;
21256+ if (NULL != x) {
21257+ cJSON * j = cJSON_CreateVirtual(x);
21258+ if (NULL != j) {
21259+ s = cJSON_Print(j);
21260+ cJSON_Delete(j);
21261+ }
21262+ }
21263+ return s;
21264+}
21265+
21266+void cJSON_DeleteVirtual(struct Virtual * x) {
21267+ if (NULL != x) {
2115821268 cJSON_free(x);
2115921269 }
2116021270 }
@@ -21489,6 +21599,226 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2148921599 }
2149021600 }
2149121601
21602+struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s) {
21603+ struct Utf8JsonReader * x = NULL;
21604+ if (NULL != s) {
21605+ cJSON * j = cJSON_Parse(s);
21606+ if (NULL != j) {
21607+ x = cJSON_GetUtf8JsonReaderValue(j);
21608+ cJSON_Delete(j);
21609+ }
21610+ }
21611+ return x;
21612+}
21613+
21614+struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j) {
21615+ struct Utf8JsonReader * x = NULL;
21616+ if (NULL != j) {
21617+ if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonReader)))) {
21618+ memset(x, 0, sizeof(struct Utf8JsonReader));
21619+ if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteUtf8JsonReader(x); return NULL; }
21620+ if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
21621+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteUtf8JsonReader(x); return NULL; }
21622+ x->utf8_json_reader = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"));
21623+ }
21624+ }
21625+ }
21626+ return x;
21627+}
21628+
21629+cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x) {
21630+ cJSON * j = NULL;
21631+ if (NULL != x) {
21632+ if (NULL != (j = cJSON_CreateObject())) {
21633+ cJSON_AddNumberToObject(j, "Utf8JsonReader", x->utf8_json_reader);
21634+ }
21635+ }
21636+ return j;
21637+}
21638+
21639+char * cJSON_PrintUtf8JsonReader(const struct Utf8JsonReader * x) {
21640+ char * s = NULL;
21641+ if (NULL != x) {
21642+ cJSON * j = cJSON_CreateUtf8JsonReader(x);
21643+ if (NULL != j) {
21644+ s = cJSON_Print(j);
21645+ cJSON_Delete(j);
21646+ }
21647+ }
21648+ return s;
21649+}
21650+
21651+void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x) {
21652+ if (NULL != x) {
21653+ cJSON_free(x);
21654+ }
21655+}
21656+
21657+struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s) {
21658+ struct Utf8JsonWriter * x = NULL;
21659+ if (NULL != s) {
21660+ cJSON * j = cJSON_Parse(s);
21661+ if (NULL != j) {
21662+ x = cJSON_GetUtf8JsonWriterValue(j);
21663+ cJSON_Delete(j);
21664+ }
21665+ }
21666+ return x;
21667+}
21668+
21669+struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j) {
21670+ struct Utf8JsonWriter * x = NULL;
21671+ if (NULL != j) {
21672+ if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonWriter)))) {
21673+ memset(x, 0, sizeof(struct Utf8JsonWriter));
21674+ if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteUtf8JsonWriter(x); return NULL; }
21675+ if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) {
21676+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteUtf8JsonWriter(x); return NULL; }
21677+ x->utf8_json_writer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"));
21678+ }
21679+ }
21680+ }
21681+ return x;
21682+}
21683+
21684+cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x) {
21685+ cJSON * j = NULL;
21686+ if (NULL != x) {
21687+ if (NULL != (j = cJSON_CreateObject())) {
21688+ cJSON_AddNumberToObject(j, "Utf8JsonWriter", x->utf8_json_writer);
21689+ }
21690+ }
21691+ return j;
21692+}
21693+
21694+char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x) {
21695+ char * s = NULL;
21696+ if (NULL != x) {
21697+ cJSON * j = cJSON_CreateUtf8JsonWriter(x);
21698+ if (NULL != j) {
21699+ s = cJSON_Print(j);
21700+ cJSON_Delete(j);
21701+ }
21702+ }
21703+ return s;
21704+}
21705+
21706+void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x) {
21707+ if (NULL != x) {
21708+ cJSON_free(x);
21709+ }
21710+}
21711+
21712+struct Uuid * cJSON_ParseUuid(const char * s) {
21713+ struct Uuid * x = NULL;
21714+ if (NULL != s) {
21715+ cJSON * j = cJSON_Parse(s);
21716+ if (NULL != j) {
21717+ x = cJSON_GetUuidValue(j);
21718+ cJSON_Delete(j);
21719+ }
21720+ }
21721+ return x;
21722+}
21723+
21724+struct Uuid * cJSON_GetUuidValue(const cJSON * j) {
21725+ struct Uuid * x = NULL;
21726+ if (NULL != j) {
21727+ if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) {
21728+ memset(x, 0, sizeof(struct Uuid));
21729+ if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; }
21730+ if (cJSON_HasObjectItem(j, "UUID")) {
21731+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; }
21732+ x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
21733+ }
21734+ }
21735+ }
21736+ return x;
21737+}
21738+
21739+cJSON * cJSON_CreateUuid(const struct Uuid * x) {
21740+ cJSON * j = NULL;
21741+ if (NULL != x) {
21742+ if (NULL != (j = cJSON_CreateObject())) {
21743+ cJSON_AddNumberToObject(j, "UUID", x->uuid);
21744+ }
21745+ }
21746+ return j;
21747+}
21748+
21749+char * cJSON_PrintUuid(const struct Uuid * x) {
21750+ char * s = NULL;
21751+ if (NULL != x) {
21752+ cJSON * j = cJSON_CreateUuid(x);
21753+ if (NULL != j) {
21754+ s = cJSON_Print(j);
21755+ cJSON_Delete(j);
21756+ }
21757+ }
21758+ return s;
21759+}
21760+
21761+void cJSON_DeleteUuid(struct Uuid * x) {
21762+ if (NULL != x) {
21763+ cJSON_free(x);
21764+ }
21765+}
21766+
21767+struct Var * cJSON_ParseVar(const char * s) {
21768+ struct Var * x = NULL;
21769+ if (NULL != s) {
21770+ cJSON * j = cJSON_Parse(s);
21771+ if (NULL != j) {
21772+ x = cJSON_GetVarValue(j);
21773+ cJSON_Delete(j);
21774+ }
21775+ }
21776+ return x;
21777+}
21778+
21779+struct Var * cJSON_GetVarValue(const cJSON * j) {
21780+ struct Var * x = NULL;
21781+ if (NULL != j) {
21782+ if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
21783+ memset(x, 0, sizeof(struct Var));
21784+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
21785+ if (cJSON_HasObjectItem(j, "var")) {
21786+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
21787+ x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
21788+ }
21789+ }
21790+ }
21791+ return x;
21792+}
21793+
21794+cJSON * cJSON_CreateVar(const struct Var * x) {
21795+ cJSON * j = NULL;
21796+ if (NULL != x) {
21797+ if (NULL != (j = cJSON_CreateObject())) {
21798+ cJSON_AddNumberToObject(j, "var", x->var);
21799+ }
21800+ }
21801+ return j;
21802+}
21803+
21804+char * cJSON_PrintVar(const struct Var * x) {
21805+ char * s = NULL;
21806+ if (NULL != x) {
21807+ cJSON * j = cJSON_CreateVar(x);
21808+ if (NULL != j) {
21809+ s = cJSON_Print(j);
21810+ cJSON_Delete(j);
21811+ }
21812+ }
21813+ return s;
21814+}
21815+
21816+void cJSON_DeleteVar(struct Var * x) {
21817+ if (NULL != x) {
21818+ cJSON_free(x);
21819+ }
21820+}
21821+
2149221822 struct Weak * cJSON_ParseWeak(const char * s) {
2149321823 struct Weak * x = NULL;
2149421824 if (NULL != s) {
@@ -21841,6 +22171,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2184122171 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2184222172 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2184322173 }
22174+ if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteObj6(x); return NULL; }
22175+ if (cJSON_HasObjectItem(j, "using")) {
22176+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteObj6(x); return NULL; }
22177+ x->obj6_using = cJSON_GetUsingValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
22178+ if (NULL == x->obj6_using) { cJSON_DeleteObj6(x); return NULL; }
22179+ }
22180+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj6(x); return NULL; }
22181+ if (cJSON_HasObjectItem(j, "virtual")) {
22182+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj6(x); return NULL; }
22183+ x->obj6_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
22184+ if (NULL == x->obj6_virtual) { cJSON_DeleteObj6(x); return NULL; }
22185+ }
2184422186 if (!cJSON_HasObjectItem(j, "void")) { cJSON_DeleteObj6(x); return NULL; }
2184522187 if (cJSON_HasObjectItem(j, "void")) {
2184622188 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "void"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21877,6 +22219,30 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2187722219 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2187822220 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2187922221 }
22222+ if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteObj6(x); return NULL; }
22223+ if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
22224+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteObj6(x); return NULL; }
22225+ x->utf8_json_reader = cJSON_GetUtf8JsonReaderValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"));
22226+ if (NULL == x->utf8_json_reader) { cJSON_DeleteObj6(x); return NULL; }
22227+ }
22228+ if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteObj6(x); return NULL; }
22229+ if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) {
22230+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteObj6(x); return NULL; }
22231+ x->utf8_json_writer = cJSON_GetUtf8JsonWriterValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"));
22232+ if (NULL == x->utf8_json_writer) { cJSON_DeleteObj6(x); return NULL; }
22233+ }
22234+ if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj6(x); return NULL; }
22235+ if (cJSON_HasObjectItem(j, "UUID")) {
22236+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj6(x); return NULL; }
22237+ x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
22238+ if (NULL == x->uuid) { cJSON_DeleteObj6(x); return NULL; }
22239+ }
22240+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj6(x); return NULL; }
22241+ if (cJSON_HasObjectItem(j, "var")) {
22242+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj6(x); return NULL; }
22243+ x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
22244+ if (NULL == x->var) { cJSON_DeleteObj6(x); return NULL; }
22245+ }
2188022246 if (!cJSON_HasObjectItem(j, "weak")) { cJSON_DeleteObj6(x); return NULL; }
2188122247 if (cJSON_HasObjectItem(j, "weak")) {
2188222248 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "weak"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21923,12 +22289,18 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2192322289 if (NULL != x) {
2192422290 if (NULL != (j = cJSON_CreateObject())) {
2192522291 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22292+ cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using));
22293+ cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
2192622294 cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void));
2192722295 cJSON_AddItemToObject(j, "volatile", cJSON_CreateVolatile(x->obj6_volatile));
2192822296 cJSON_AddItemToObject(j, "wchar_t", cJSON_CreateWcharT(x->obj6_wchar_t));
2192922297 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2193022298 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2193122299 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22300+ cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
22301+ cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
22302+ cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
22303+ cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2193222304 cJSON_AddItemToObject(j, "weak", cJSON_CreateWeak(x->weak));
2193322305 cJSON_AddItemToObject(j, "where", cJSON_CreateWhere(x->where));
2193422306 cJSON_AddItemToObject(j, "willSet", cJSON_CreateWillSet(x->will_set));
@@ -21954,6 +22326,12 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2195422326
2195522327 void cJSON_DeleteObj6(struct Obj6 * x) {
2195622328 if (NULL != x) {
22329+ if (NULL != x->obj6_using) {
22330+ cJSON_DeleteUsing(x->obj6_using);
22331+ }
22332+ if (NULL != x->obj6_virtual) {
22333+ cJSON_DeleteVirtual(x->obj6_virtual);
22334+ }
2195722335 if (NULL != x->obj6_void) {
2195822336 cJSON_DeleteVoid(x->obj6_void);
2195922337 }
@@ -21972,6 +22350,18 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2197222350 if (NULL != x->obj6_xor_eq) {
2197322351 cJSON_DeleteXorEq(x->obj6_xor_eq);
2197422352 }
22353+ if (NULL != x->utf8_json_reader) {
22354+ cJSON_DeleteUtf8JsonReader(x->utf8_json_reader);
22355+ }
22356+ if (NULL != x->utf8_json_writer) {
22357+ cJSON_DeleteUtf8JsonWriter(x->utf8_json_writer);
22358+ }
22359+ if (NULL != x->uuid) {
22360+ cJSON_DeleteUuid(x->uuid);
22361+ }
22362+ if (NULL != x->var) {
22363+ cJSON_DeleteVar(x->var);
22364+ }
2197522365 if (NULL != x->weak) {
2197622366 cJSON_DeleteWeak(x->weak);
2197722367 }
Mcjsondefault / TopLevel.h+129 −63
@@ -1349,6 +1349,10 @@ struct Obj4 {
13491349 struct Select * select;
13501350 };
13511351
1352+struct KSerializer {
1353+ int64_t k_serializer;
1354+};
1355+
13521356 struct SelfClass {
13531357 int64_t self;
13541358 };
@@ -1441,12 +1445,8 @@ struct Unsigned {
14411445 int64_t unsigned_unsigned;
14421446 };
14431447
1444-struct Using {
1445- int64_t using_using;
1446-};
1447-
1448-struct Virtual {
1449- int64_t virtual_virtual;
1448+struct PrimitiveKind {
1449+ int64_t primitive_kind;
14501450 };
14511451
14521452 struct Obj5True {
@@ -1461,6 +1461,18 @@ struct Sendable {
14611461 int64_t sendable;
14621462 };
14631463
1464+struct SerialDescriptor {
1465+ int64_t serial_descriptor;
1466+};
1467+
1468+struct SerialName {
1469+ int64_t serial_name;
1470+};
1471+
1472+struct Serializable {
1473+ int64_t serializable;
1474+};
1475+
14641476 struct Serialize {
14651477 int64_t serialize;
14661478 };
@@ -1585,28 +1597,17 @@ struct Unsafe {
15851597 int64_t unsafe;
15861598 };
15871599
1588-struct Ushort {
1589- int64_t ushort;
1600+struct UseSerializers {
1601+ int64_t use_serializers;
15901602 };
15911603
1592-struct Utf8JsonReader {
1593- int64_t utf8_json_reader;
1594-};
1595-
1596-struct Utf8JsonWriter {
1597- int64_t utf8_json_writer;
1598-};
1599-
1600-struct Uuid {
1601- int64_t uuid;
1602-};
1603-
1604-struct Var {
1605- int64_t var;
1604+struct Ushort {
1605+ int64_t ushort;
16061606 };
16071607
16081608 struct Obj5 {
16091609 int64_t dummy;
1610+ struct KSerializer * k_serializer;
16101611 struct SelfClass * obj5_self;
16111612 struct Short * obj5_short;
16121613 struct Signed * obj5_signed;
@@ -1630,11 +1631,13 @@ struct Obj5 {
16301631 struct Typeof * obj5_typeof;
16311632 struct Union * obj5_union;
16321633 struct Unsigned * obj5_unsigned;
1633- struct Using * obj5_using;
1634- struct Virtual * obj5_virtual;
1634+ struct PrimitiveKind * primitive_kind;
16351635 struct Obj5True * purple_true;
16361636 struct Self * self;
16371637 struct Sendable * sendable;
1638+ struct SerialDescriptor * serial_descriptor;
1639+ struct SerialName * serial_name;
1640+ struct Serializable * serializable;
16381641 struct Serialize * serialize;
16391642 struct SerializerProvider * serializer_provider;
16401643 struct Set * set;
@@ -1666,11 +1669,16 @@ struct Obj5 {
16661669 struct Undefined * undefined;
16671670 struct Unowned * unowned;
16681671 struct Unsafe * unsafe;
1672+ struct UseSerializers * use_serializers;
16691673 struct Ushort * ushort;
1670- struct Utf8JsonReader * utf8_json_reader;
1671- struct Utf8JsonWriter * utf8_json_writer;
1672- struct Uuid * uuid;
1673- struct Var * var;
1674+};
1675+
1676+struct Using {
1677+ int64_t using_using;
1678+};
1679+
1680+struct Virtual {
1681+ int64_t virtual_virtual;
16741682 };
16751683
16761684 struct Void {
@@ -1697,6 +1705,22 @@ struct XorEq {
16971705 int64_t xor_eq_xor_eq;
16981706 };
16991707
1708+struct Utf8JsonReader {
1709+ int64_t utf8_json_reader;
1710+};
1711+
1712+struct Utf8JsonWriter {
1713+ int64_t utf8_json_writer;
1714+};
1715+
1716+struct Uuid {
1717+ int64_t uuid;
1718+};
1719+
1720+struct Var {
1721+ int64_t var;
1722+};
1723+
17001724 struct Weak {
17011725 int64_t weak;
17021726 };
@@ -1723,12 +1747,18 @@ struct Yield {
17231747
17241748 struct Obj6 {
17251749 int64_t dummy;
1750+ struct Using * obj6_using;
1751+ struct Virtual * obj6_virtual;
17261752 struct Void * obj6_void;
17271753 struct Volatile * obj6_volatile;
17281754 struct WcharT * obj6_wchar_t;
17291755 struct While * obj6_while;
17301756 struct Xor * obj6_xor;
17311757 struct XorEq * obj6_xor_eq;
1758+ struct Utf8JsonReader * utf8_json_reader;
1759+ struct Utf8JsonWriter * utf8_json_writer;
1760+ struct Uuid * uuid;
1761+ struct Var * var;
17321762 struct Weak * weak;
17331763 struct Where * where;
17341764 struct WillSet * will_set;
@@ -3310,6 +3340,12 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x);
33103340 char * cJSON_PrintObj4(const struct Obj4 * x);
33113341 void cJSON_DeleteObj4(struct Obj4 * x);
33123342
3343+struct KSerializer * cJSON_ParseKSerializer(const char * s);
3344+struct KSerializer * cJSON_GetKSerializerValue(const cJSON * j);
3345+cJSON * cJSON_CreateKSerializer(const struct KSerializer * x);
3346+char * cJSON_PrintKSerializer(const struct KSerializer * x);
3347+void cJSON_DeleteKSerializer(struct KSerializer * x);
3348+
33133349 struct SelfClass * cJSON_ParseSelfClass(const char * s);
33143350 struct SelfClass * cJSON_GetSelfClassValue(const cJSON * j);
33153351 cJSON * cJSON_CreateSelfClass(const struct SelfClass * x);
@@ -3448,17 +3484,11 @@ cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
34483484 char * cJSON_PrintUnsigned(const struct Unsigned * x);
34493485 void cJSON_DeleteUnsigned(struct Unsigned * x);
34503486
3451-struct Using * cJSON_ParseUsing(const char * s);
3452-struct Using * cJSON_GetUsingValue(const cJSON * j);
3453-cJSON * cJSON_CreateUsing(const struct Using * x);
3454-char * cJSON_PrintUsing(const struct Using * x);
3455-void cJSON_DeleteUsing(struct Using * x);
3456-
3457-struct Virtual * cJSON_ParseVirtual(const char * s);
3458-struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3459-cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3460-char * cJSON_PrintVirtual(const struct Virtual * x);
3461-void cJSON_DeleteVirtual(struct Virtual * x);
3487+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
3488+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
3489+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
3490+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x);
3491+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x);
34623492
34633493 struct Obj5True * cJSON_ParseObj5True(const char * s);
34643494 struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j);
@@ -3478,6 +3508,24 @@ cJSON * cJSON_CreateSendable(const struct Sendable * x);
34783508 char * cJSON_PrintSendable(const struct Sendable * x);
34793509 void cJSON_DeleteSendable(struct Sendable * x);
34803510
3511+struct SerialDescriptor * cJSON_ParseSerialDescriptor(const char * s);
3512+struct SerialDescriptor * cJSON_GetSerialDescriptorValue(const cJSON * j);
3513+cJSON * cJSON_CreateSerialDescriptor(const struct SerialDescriptor * x);
3514+char * cJSON_PrintSerialDescriptor(const struct SerialDescriptor * x);
3515+void cJSON_DeleteSerialDescriptor(struct SerialDescriptor * x);
3516+
3517+struct SerialName * cJSON_ParseSerialName(const char * s);
3518+struct SerialName * cJSON_GetSerialNameValue(const cJSON * j);
3519+cJSON * cJSON_CreateSerialName(const struct SerialName * x);
3520+char * cJSON_PrintSerialName(const struct SerialName * x);
3521+void cJSON_DeleteSerialName(struct SerialName * x);
3522+
3523+struct Serializable * cJSON_ParseSerializable(const char * s);
3524+struct Serializable * cJSON_GetSerializableValue(const cJSON * j);
3525+cJSON * cJSON_CreateSerializable(const struct Serializable * x);
3526+char * cJSON_PrintSerializable(const struct Serializable * x);
3527+void cJSON_DeleteSerializable(struct Serializable * x);
3528+
34813529 struct Serialize * cJSON_ParseSerialize(const char * s);
34823530 struct Serialize * cJSON_GetSerializeValue(const cJSON * j);
34833531 cJSON * cJSON_CreateSerialize(const struct Serialize * x);
@@ -3664,42 +3712,36 @@ cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
36643712 char * cJSON_PrintUnsafe(const struct Unsafe * x);
36653713 void cJSON_DeleteUnsafe(struct Unsafe * x);
36663714
3715+struct UseSerializers * cJSON_ParseUseSerializers(const char * s);
3716+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j);
3717+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
3718+char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
3719+void cJSON_DeleteUseSerializers(struct UseSerializers * x);
3720+
36673721 struct Ushort * cJSON_ParseUshort(const char * s);
36683722 struct Ushort * cJSON_GetUshortValue(const cJSON * j);
36693723 cJSON * cJSON_CreateUshort(const struct Ushort * x);
36703724 char * cJSON_PrintUshort(const struct Ushort * x);
36713725 void cJSON_DeleteUshort(struct Ushort * x);
36723726
3673-struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s);
3674-struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j);
3675-cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x);
3676-char * cJSON_PrintUtf8JsonReader(const struct Utf8JsonReader * x);
3677-void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x);
3678-
3679-struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s);
3680-struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j);
3681-cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x);
3682-char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x);
3683-void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x);
3684-
3685-struct Uuid * cJSON_ParseUuid(const char * s);
3686-struct Uuid * cJSON_GetUuidValue(const cJSON * j);
3687-cJSON * cJSON_CreateUuid(const struct Uuid * x);
3688-char * cJSON_PrintUuid(const struct Uuid * x);
3689-void cJSON_DeleteUuid(struct Uuid * x);
3690-
3691-struct Var * cJSON_ParseVar(const char * s);
3692-struct Var * cJSON_GetVarValue(const cJSON * j);
3693-cJSON * cJSON_CreateVar(const struct Var * x);
3694-char * cJSON_PrintVar(const struct Var * x);
3695-void cJSON_DeleteVar(struct Var * x);
3696-
36973727 struct Obj5 * cJSON_ParseObj5(const char * s);
36983728 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
36993729 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37003730 char * cJSON_PrintObj5(const struct Obj5 * x);
37013731 void cJSON_DeleteObj5(struct Obj5 * x);
37023732
3733+struct Using * cJSON_ParseUsing(const char * s);
3734+struct Using * cJSON_GetUsingValue(const cJSON * j);
3735+cJSON * cJSON_CreateUsing(const struct Using * x);
3736+char * cJSON_PrintUsing(const struct Using * x);
3737+void cJSON_DeleteUsing(struct Using * x);
3738+
3739+struct Virtual * cJSON_ParseVirtual(const char * s);
3740+struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3741+cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3742+char * cJSON_PrintVirtual(const struct Virtual * x);
3743+void cJSON_DeleteVirtual(struct Virtual * x);
3744+
37033745 struct Void * cJSON_ParseVoid(const char * s);
37043746 struct Void * cJSON_GetVoidValue(const cJSON * j);
37053747 cJSON * cJSON_CreateVoid(const struct Void * x);
@@ -3736,6 +3778,30 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
37363778 char * cJSON_PrintXorEq(const struct XorEq * x);
37373779 void cJSON_DeleteXorEq(struct XorEq * x);
37383780
3781+struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s);
3782+struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j);
3783+cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x);
3784+char * cJSON_PrintUtf8JsonReader(const struct Utf8JsonReader * x);
3785+void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x);
3786+
3787+struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s);
3788+struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j);
3789+cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x);
3790+char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x);
3791+void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x);
3792+
3793+struct Uuid * cJSON_ParseUuid(const char * s);
3794+struct Uuid * cJSON_GetUuidValue(const cJSON * j);
3795+cJSON * cJSON_CreateUuid(const struct Uuid * x);
3796+char * cJSON_PrintUuid(const struct Uuid * x);
3797+void cJSON_DeleteUuid(struct Uuid * x);
3798+
3799+struct Var * cJSON_ParseVar(const char * s);
3800+struct Var * cJSON_GetVarValue(const cJSON * j);
3801+cJSON * cJSON_CreateVar(const struct Var * x);
3802+char * cJSON_PrintVar(const struct Var * x);
3803+void cJSON_DeleteVar(struct Var * x);
3804+
37393805 struct Weak * cJSON_ParseWeak(const char * s);
37403806 struct Weak * cJSON_GetWeakValue(const cJSON * j);
37413807 cJSON * cJSON_CreateWeak(const struct Weak * x);
Mcplusplusdefault / quicktype.hpp+400 −190
@@ -4953,6 +4953,20 @@ namespace quicktype {
49534953 void set_select(const Select & value) { this->select = value; }
49544954 };
49554955
4956+ class KSerializer {
4957+ public:
4958+ KSerializer() = default;
4959+ virtual ~KSerializer() = default;
4960+
4961+ private:
4962+ int64_t k_serializer;
4963+
4964+ public:
4965+ const int64_t & get_k_serializer() const { return k_serializer; }
4966+ int64_t & get_mutable_k_serializer() { return k_serializer; }
4967+ void set_k_serializer(const int64_t & value) { this->k_serializer = value; }
4968+ };
4969+
49564970 class SelfClass {
49574971 public:
49584972 SelfClass() = default;
@@ -5261,32 +5275,18 @@ namespace quicktype {
52615275 void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; }
52625276 };
52635277
5264- class Using {
5265- public:
5266- Using() = default;
5267- virtual ~Using() = default;
5268-
5269- private:
5270- int64_t using_using;
5271-
5272- public:
5273- const int64_t & get_using_using() const { return using_using; }
5274- int64_t & get_mutable_using_using() { return using_using; }
5275- void set_using_using(const int64_t & value) { this->using_using = value; }
5276- };
5277-
5278- class Virtual {
5278+ class PrimitiveKind {
52795279 public:
5280- Virtual() = default;
5281- virtual ~Virtual() = default;
5280+ PrimitiveKind() = default;
5281+ virtual ~PrimitiveKind() = default;
52825282
52835283 private:
5284- int64_t virtual_virtual;
5284+ int64_t primitive_kind;
52855285
52865286 public:
5287- const int64_t & get_virtual_virtual() const { return virtual_virtual; }
5288- int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
5289- void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
5287+ const int64_t & get_primitive_kind() const { return primitive_kind; }
5288+ int64_t & get_mutable_primitive_kind() { return primitive_kind; }
5289+ void set_primitive_kind(const int64_t & value) { this->primitive_kind = value; }
52905290 };
52915291
52925292 class TrueClass {
@@ -5331,6 +5331,48 @@ namespace quicktype {
53315331 void set_sendable(const int64_t & value) { this->sendable = value; }
53325332 };
53335333
5334+ class SerialDescriptor {
5335+ public:
5336+ SerialDescriptor() = default;
5337+ virtual ~SerialDescriptor() = default;
5338+
5339+ private:
5340+ int64_t serial_descriptor;
5341+
5342+ public:
5343+ const int64_t & get_serial_descriptor() const { return serial_descriptor; }
5344+ int64_t & get_mutable_serial_descriptor() { return serial_descriptor; }
5345+ void set_serial_descriptor(const int64_t & value) { this->serial_descriptor = value; }
5346+ };
5347+
5348+ class SerialName {
5349+ public:
5350+ SerialName() = default;
5351+ virtual ~SerialName() = default;
5352+
5353+ private:
5354+ int64_t serial_name;
5355+
5356+ public:
5357+ const int64_t & get_serial_name() const { return serial_name; }
5358+ int64_t & get_mutable_serial_name() { return serial_name; }
5359+ void set_serial_name(const int64_t & value) { this->serial_name = value; }
5360+ };
5361+
5362+ class Serializable {
5363+ public:
5364+ Serializable() = default;
5365+ virtual ~Serializable() = default;
5366+
5367+ private:
5368+ int64_t serializable;
5369+
5370+ public:
5371+ const int64_t & get_serializable() const { return serializable; }
5372+ int64_t & get_mutable_serializable() { return serializable; }
5373+ void set_serializable(const int64_t & value) { this->serializable = value; }
5374+ };
5375+
53345376 class Serialize {
53355377 public:
53365378 Serialize() = default;
@@ -5779,74 +5821,32 @@ namespace quicktype {
57795821 void set_unsafe(const int64_t & value) { this->unsafe = value; }
57805822 };
57815823
5782- class Ushort {
5783- public:
5784- Ushort() = default;
5785- virtual ~Ushort() = default;
5786-
5787- private:
5788- int64_t ushort;
5789-
5790- public:
5791- const int64_t & get_ushort() const { return ushort; }
5792- int64_t & get_mutable_ushort() { return ushort; }
5793- void set_ushort(const int64_t & value) { this->ushort = value; }
5794- };
5795-
5796- class Utf8JsonReader {
5797- public:
5798- Utf8JsonReader() = default;
5799- virtual ~Utf8JsonReader() = default;
5800-
5801- private:
5802- int64_t utf8_json_reader;
5803-
5804- public:
5805- const int64_t & get_utf8_json_reader() const { return utf8_json_reader; }
5806- int64_t & get_mutable_utf8_json_reader() { return utf8_json_reader; }
5807- void set_utf8_json_reader(const int64_t & value) { this->utf8_json_reader = value; }
5808- };
5809-
5810- class Utf8JsonWriter {
5811- public:
5812- Utf8JsonWriter() = default;
5813- virtual ~Utf8JsonWriter() = default;
5814-
5815- private:
5816- int64_t utf8_json_writer;
5817-
5818- public:
5819- const int64_t & get_utf8_json_writer() const { return utf8_json_writer; }
5820- int64_t & get_mutable_utf8_json_writer() { return utf8_json_writer; }
5821- void set_utf8_json_writer(const int64_t & value) { this->utf8_json_writer = value; }
5822- };
5823-
5824- class Uuid {
5824+ class UseSerializers {
58255825 public:
5826- Uuid() = default;
5827- virtual ~Uuid() = default;
5826+ UseSerializers() = default;
5827+ virtual ~UseSerializers() = default;
58285828
58295829 private:
5830- int64_t uuid;
5830+ int64_t use_serializers;
58315831
58325832 public:
5833- const int64_t & get_uuid() const { return uuid; }
5834- int64_t & get_mutable_uuid() { return uuid; }
5835- void set_uuid(const int64_t & value) { this->uuid = value; }
5833+ const int64_t & get_use_serializers() const { return use_serializers; }
5834+ int64_t & get_mutable_use_serializers() { return use_serializers; }
5835+ void set_use_serializers(const int64_t & value) { this->use_serializers = value; }
58365836 };
58375837
5838- class Var {
5838+ class Ushort {
58395839 public:
5840- Var() = default;
5841- virtual ~Var() = default;
5840+ Ushort() = default;
5841+ virtual ~Ushort() = default;
58425842
58435843 private:
5844- int64_t var;
5844+ int64_t ushort;
58455845
58465846 public:
5847- const int64_t & get_var() const { return var; }
5848- int64_t & get_mutable_var() { return var; }
5849- void set_var(const int64_t & value) { this->var = value; }
5847+ const int64_t & get_ushort() const { return ushort; }
5848+ int64_t & get_mutable_ushort() { return ushort; }
5849+ void set_ushort(const int64_t & value) { this->ushort = value; }
58505850 };
58515851
58525852 class Obj5 {
@@ -5856,6 +5856,7 @@ namespace quicktype {
58565856
58575857 private:
58585858 int64_t dummy;
5859+ KSerializer k_serializer;
58595860 SelfClass obj5_self;
58605861 Short obj5_short;
58615862 Signed obj5_signed;
@@ -5878,11 +5879,13 @@ namespace quicktype {
58785879 Typename obj5_typename;
58795880 Union obj5_union;
58805881 Unsigned obj5_unsigned;
5881- Using obj5_using;
5882- Virtual obj5_virtual;
5882+ PrimitiveKind primitive_kind;
58835883 TrueClass purple_true;
58845884 Self self;
58855885 Sendable sendable;
5886+ SerialDescriptor serial_descriptor;
5887+ SerialName serial_name;
5888+ Serializable serializable;
58865889 Serialize serialize;
58875890 SerializerProvider serializer_provider;
58885891 Set set;
@@ -5915,17 +5918,18 @@ namespace quicktype {
59155918 Undefined undefined;
59165919 Unowned unowned;
59175920 Unsafe unsafe;
5921+ UseSerializers use_serializers;
59185922 Ushort ushort;
5919- Utf8JsonReader utf8_json_reader;
5920- Utf8JsonWriter utf8_json_writer;
5921- Uuid uuid;
5922- Var var;
59235923
59245924 public:
59255925 const int64_t & get_dummy() const { return dummy; }
59265926 int64_t & get_mutable_dummy() { return dummy; }
59275927 void set_dummy(const int64_t & value) { this->dummy = value; }
59285928
5929+ const KSerializer & get_k_serializer() const { return k_serializer; }
5930+ KSerializer & get_mutable_k_serializer() { return k_serializer; }
5931+ void set_k_serializer(const KSerializer & value) { this->k_serializer = value; }
5932+
59295933 const SelfClass & get_obj5_self() const { return obj5_self; }
59305934 SelfClass & get_mutable_obj5_self() { return obj5_self; }
59315935 void set_obj5_self(const SelfClass & value) { this->obj5_self = value; }
@@ -6014,13 +6018,9 @@ namespace quicktype {
60146018 Unsigned & get_mutable_obj5_unsigned() { return obj5_unsigned; }
60156019 void set_obj5_unsigned(const Unsigned & value) { this->obj5_unsigned = value; }
60166020
6017- const Using & get_obj5_using() const { return obj5_using; }
6018- Using & get_mutable_obj5_using() { return obj5_using; }
6019- void set_obj5_using(const Using & value) { this->obj5_using = value; }
6020-
6021- const Virtual & get_obj5_virtual() const { return obj5_virtual; }
6022- Virtual & get_mutable_obj5_virtual() { return obj5_virtual; }
6023- void set_obj5_virtual(const Virtual & value) { this->obj5_virtual = value; }
6021+ const PrimitiveKind & get_primitive_kind() const { return primitive_kind; }
6022+ PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; }
6023+ void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; }
60246024
60256025 const TrueClass & get_purple_true() const { return purple_true; }
60266026 TrueClass & get_mutable_purple_true() { return purple_true; }
@@ -6034,6 +6034,18 @@ namespace quicktype {
60346034 Sendable & get_mutable_sendable() { return sendable; }
60356035 void set_sendable(const Sendable & value) { this->sendable = value; }
60366036
6037+ const SerialDescriptor & get_serial_descriptor() const { return serial_descriptor; }
6038+ SerialDescriptor & get_mutable_serial_descriptor() { return serial_descriptor; }
6039+ void set_serial_descriptor(const SerialDescriptor & value) { this->serial_descriptor = value; }
6040+
6041+ const SerialName & get_serial_name() const { return serial_name; }
6042+ SerialName & get_mutable_serial_name() { return serial_name; }
6043+ void set_serial_name(const SerialName & value) { this->serial_name = value; }
6044+
6045+ const Serializable & get_serializable() const { return serializable; }
6046+ Serializable & get_mutable_serializable() { return serializable; }
6047+ void set_serializable(const Serializable & value) { this->serializable = value; }
6048+
60376049 const Serialize & get_serialize() const { return serialize; }
60386050 Serialize & get_mutable_serialize() { return serialize; }
60396051 void set_serialize(const Serialize & value) { this->serialize = value; }
@@ -6162,25 +6174,41 @@ namespace quicktype {
61626174 Unsafe & get_mutable_unsafe() { return unsafe; }
61636175 void set_unsafe(const Unsafe & value) { this->unsafe = value; }
61646176
6177+ const UseSerializers & get_use_serializers() const { return use_serializers; }
6178+ UseSerializers & get_mutable_use_serializers() { return use_serializers; }
6179+ void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; }
6180+
61656181 const Ushort & get_ushort() const { return ushort; }
61666182 Ushort & get_mutable_ushort() { return ushort; }
61676183 void set_ushort(const Ushort & value) { this->ushort = value; }
6184+ };
61686185
6169- const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; }
6170- Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; }
6171- void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; }
6186+ class Using {
6187+ public:
6188+ Using() = default;
6189+ virtual ~Using() = default;
61726190
6173- const Utf8JsonWriter & get_utf8_json_writer() const { return utf8_json_writer; }
6174- Utf8JsonWriter & get_mutable_utf8_json_writer() { return utf8_json_writer; }
6175- void set_utf8_json_writer(const Utf8JsonWriter & value) { this->utf8_json_writer = value; }
6191+ private:
6192+ int64_t using_using;
61766193
6177- const Uuid & get_uuid() const { return uuid; }
6178- Uuid & get_mutable_uuid() { return uuid; }
6179- void set_uuid(const Uuid & value) { this->uuid = value; }
6194+ public:
6195+ const int64_t & get_using_using() const { return using_using; }
6196+ int64_t & get_mutable_using_using() { return using_using; }
6197+ void set_using_using(const int64_t & value) { this->using_using = value; }
6198+ };
61806199
6181- const Var & get_var() const { return var; }
6182- Var & get_mutable_var() { return var; }
6183- void set_var(const Var & value) { this->var = value; }
6200+ class Virtual {
6201+ public:
6202+ Virtual() = default;
6203+ virtual ~Virtual() = default;
6204+
6205+ private:
6206+ int64_t virtual_virtual;
6207+
6208+ public:
6209+ const int64_t & get_virtual_virtual() const { return virtual_virtual; }
6210+ int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
6211+ void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
61846212 };
61856213
61866214 class Void {
@@ -6267,6 +6295,62 @@ namespace quicktype {
62676295 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
62686296 };
62696297
6298+ class Utf8JsonReader {
6299+ public:
6300+ Utf8JsonReader() = default;
6301+ virtual ~Utf8JsonReader() = default;
6302+
6303+ private:
6304+ int64_t utf8_json_reader;
6305+
6306+ public:
6307+ const int64_t & get_utf8_json_reader() const { return utf8_json_reader; }
6308+ int64_t & get_mutable_utf8_json_reader() { return utf8_json_reader; }
6309+ void set_utf8_json_reader(const int64_t & value) { this->utf8_json_reader = value; }
6310+ };
6311+
6312+ class Utf8JsonWriter {
6313+ public:
6314+ Utf8JsonWriter() = default;
6315+ virtual ~Utf8JsonWriter() = default;
6316+
6317+ private:
6318+ int64_t utf8_json_writer;
6319+
6320+ public:
6321+ const int64_t & get_utf8_json_writer() const { return utf8_json_writer; }
6322+ int64_t & get_mutable_utf8_json_writer() { return utf8_json_writer; }
6323+ void set_utf8_json_writer(const int64_t & value) { this->utf8_json_writer = value; }
6324+ };
6325+
6326+ class Uuid {
6327+ public:
6328+ Uuid() = default;
6329+ virtual ~Uuid() = default;
6330+
6331+ private:
6332+ int64_t uuid;
6333+
6334+ public:
6335+ const int64_t & get_uuid() const { return uuid; }
6336+ int64_t & get_mutable_uuid() { return uuid; }
6337+ void set_uuid(const int64_t & value) { this->uuid = value; }
6338+ };
6339+
6340+ class Var {
6341+ public:
6342+ Var() = default;
6343+ virtual ~Var() = default;
6344+
6345+ private:
6346+ int64_t var;
6347+
6348+ public:
6349+ const int64_t & get_var() const { return var; }
6350+ int64_t & get_mutable_var() { return var; }
6351+ void set_var(const int64_t & value) { this->var = value; }
6352+ };
6353+
62706354 class Weak {
62716355 public:
62726356 Weak() = default;
@@ -6358,12 +6442,18 @@ namespace quicktype {
63586442
63596443 private:
63606444 int64_t dummy;
6445+ Using obj6_using;
6446+ Virtual obj6_virtual;
63616447 Void obj6_void;
63626448 Volatile obj6_volatile;
63636449 WcharT obj6_wchar_t;
63646450 While obj6_while;
63656451 Xor obj6_xor;
63666452 XorEq obj6_xor_eq;
6453+ Utf8JsonReader utf8_json_reader;
6454+ Utf8JsonWriter utf8_json_writer;
6455+ Uuid uuid;
6456+ Var var;
63676457 Weak weak;
63686458 Where where;
63696459 WillSet will_set;
@@ -6376,6 +6466,14 @@ namespace quicktype {
63766466 int64_t & get_mutable_dummy() { return dummy; }
63776467 void set_dummy(const int64_t & value) { this->dummy = value; }
63786468
6469+ const Using & get_obj6_using() const { return obj6_using; }
6470+ Using & get_mutable_obj6_using() { return obj6_using; }
6471+ void set_obj6_using(const Using & value) { this->obj6_using = value; }
6472+
6473+ const Virtual & get_obj6_virtual() const { return obj6_virtual; }
6474+ Virtual & get_mutable_obj6_virtual() { return obj6_virtual; }
6475+ void set_obj6_virtual(const Virtual & value) { this->obj6_virtual = value; }
6476+
63796477 const Void & get_obj6_void() const { return obj6_void; }
63806478 Void & get_mutable_obj6_void() { return obj6_void; }
63816479 void set_obj6_void(const Void & value) { this->obj6_void = value; }
@@ -6400,6 +6498,22 @@ namespace quicktype {
64006498 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
64016499 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
64026500
6501+ const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; }
6502+ Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; }
6503+ void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; }
6504+
6505+ const Utf8JsonWriter & get_utf8_json_writer() const { return utf8_json_writer; }
6506+ Utf8JsonWriter & get_mutable_utf8_json_writer() { return utf8_json_writer; }
6507+ void set_utf8_json_writer(const Utf8JsonWriter & value) { this->utf8_json_writer = value; }
6508+
6509+ const Uuid & get_uuid() const { return uuid; }
6510+ Uuid & get_mutable_uuid() { return uuid; }
6511+ void set_uuid(const Uuid & value) { this->uuid = value; }
6512+
6513+ const Var & get_var() const { return var; }
6514+ Var & get_mutable_var() { return var; }
6515+ void set_var(const Var & value) { this->var = value; }
6516+
64036517 const Weak & get_weak() const { return weak; }
64046518 Weak & get_mutable_weak() { return weak; }
64056519 void set_weak(const Weak & value) { this->weak = value; }
@@ -7251,6 +7365,9 @@ namespace quicktype {
72517365 void from_json(const json & j, Obj4 & x);
72527366 void to_json(json & j, const Obj4 & x);
72537367
7368+ void from_json(const json & j, KSerializer & x);
7369+ void to_json(json & j, const KSerializer & x);
7370+
72547371 void from_json(const json & j, SelfClass & x);
72557372 void to_json(json & j, const SelfClass & x);
72567373
@@ -7317,11 +7434,8 @@ namespace quicktype {
73177434 void from_json(const json & j, Unsigned & x);
73187435 void to_json(json & j, const Unsigned & x);
73197436
7320- void from_json(const json & j, Using & x);
7321- void to_json(json & j, const Using & x);
7322-
7323- void from_json(const json & j, Virtual & x);
7324- void to_json(json & j, const Virtual & x);
7437+ void from_json(const json & j, PrimitiveKind & x);
7438+ void to_json(json & j, const PrimitiveKind & x);
73257439
73267440 void from_json(const json & j, TrueClass & x);
73277441 void to_json(json & j, const TrueClass & x);
@@ -7332,6 +7446,15 @@ namespace quicktype {
73327446 void from_json(const json & j, Sendable & x);
73337447 void to_json(json & j, const Sendable & x);
73347448
7449+ void from_json(const json & j, SerialDescriptor & x);
7450+ void to_json(json & j, const SerialDescriptor & x);
7451+
7452+ void from_json(const json & j, SerialName & x);
7453+ void to_json(json & j, const SerialName & x);
7454+
7455+ void from_json(const json & j, Serializable & x);
7456+ void to_json(json & j, const Serializable & x);
7457+
73357458 void from_json(const json & j, Serialize & x);
73367459 void to_json(json & j, const Serialize & x);
73377460
@@ -7428,24 +7551,21 @@ namespace quicktype {
74287551 void from_json(const json & j, Unsafe & x);
74297552 void to_json(json & j, const Unsafe & x);
74307553
7554+ void from_json(const json & j, UseSerializers & x);
7555+ void to_json(json & j, const UseSerializers & x);
7556+
74317557 void from_json(const json & j, Ushort & x);
74327558 void to_json(json & j, const Ushort & x);
74337559
7434- void from_json(const json & j, Utf8JsonReader & x);
7435- void to_json(json & j, const Utf8JsonReader & x);
7436-
7437- void from_json(const json & j, Utf8JsonWriter & x);
7438- void to_json(json & j, const Utf8JsonWriter & x);
7439-
7440- void from_json(const json & j, Uuid & x);
7441- void to_json(json & j, const Uuid & x);
7442-
7443- void from_json(const json & j, Var & x);
7444- void to_json(json & j, const Var & x);
7445-
74467560 void from_json(const json & j, Obj5 & x);
74477561 void to_json(json & j, const Obj5 & x);
74487562
7563+ void from_json(const json & j, Using & x);
7564+ void to_json(json & j, const Using & x);
7565+
7566+ void from_json(const json & j, Virtual & x);
7567+ void to_json(json & j, const Virtual & x);
7568+
74497569 void from_json(const json & j, Void & x);
74507570 void to_json(json & j, const Void & x);
74517571
@@ -7464,6 +7584,18 @@ namespace quicktype {
74647584 void from_json(const json & j, XorEq & x);
74657585 void to_json(json & j, const XorEq & x);
74667586
7587+ void from_json(const json & j, Utf8JsonReader & x);
7588+ void to_json(json & j, const Utf8JsonReader & x);
7589+
7590+ void from_json(const json & j, Utf8JsonWriter & x);
7591+ void to_json(json & j, const Utf8JsonWriter & x);
7592+
7593+ void from_json(const json & j, Uuid & x);
7594+ void to_json(json & j, const Uuid & x);
7595+
7596+ void from_json(const json & j, Var & x);
7597+ void to_json(json & j, const Var & x);
7598+
74677599 void from_json(const json & j, Weak & x);
74687600 void to_json(json & j, const Weak & x);
74697601
@@ -10861,6 +10993,17 @@ namespace quicktype {
1086110993 j["select"] = x.get_select();
1086210994 }
1086310995
10996+ inline void from_json(const json & j, KSerializer& x) {
10997+ if (!j.is_object()) throw std::runtime_error("Expected object");
10998+ if (j.find("KSerializer") != j.end() && !j.at("KSerializer").is_number_integer()) throw std::runtime_error("Expected integer");
10999+ x.set_k_serializer(j.at("KSerializer").get<int64_t>());
11000+ }
11001+
11002+ inline void to_json(json & j, const KSerializer & x) {
11003+ j = json::object();
11004+ j["KSerializer"] = x.get_k_serializer();
11005+ }
11006+
1086411007 inline void from_json(const json & j, SelfClass& x) {
1086511008 if (!j.is_object()) throw std::runtime_error("Expected object");
1086611009 if (j.find("self") != j.end() && !j.at("self").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11103,26 +11246,15 @@ namespace quicktype {
1110311246 j["unsigned"] = x.get_unsigned_unsigned();
1110411247 }
1110511248
11106- inline void from_json(const json & j, Using& x) {
11107- if (!j.is_object()) throw std::runtime_error("Expected object");
11108- if (j.find("using") != j.end() && !j.at("using").is_number_integer()) throw std::runtime_error("Expected integer");
11109- x.set_using_using(j.at("using").get<int64_t>());
11110- }
11111-
11112- inline void to_json(json & j, const Using & x) {
11113- j = json::object();
11114- j["using"] = x.get_using_using();
11115- }
11116-
11117- inline void from_json(const json & j, Virtual& x) {
11249+ inline void from_json(const json & j, PrimitiveKind& x) {
1111811250 if (!j.is_object()) throw std::runtime_error("Expected object");
11119- if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11120- x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11251+ if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
11252+ x.set_primitive_kind(j.at("PrimitiveKind").get<int64_t>());
1112111253 }
1112211254
11123- inline void to_json(json & j, const Virtual & x) {
11255+ inline void to_json(json & j, const PrimitiveKind & x) {
1112411256 j = json::object();
11125- j["virtual"] = x.get_virtual_virtual();
11257+ j["PrimitiveKind"] = x.get_primitive_kind();
1112611258 }
1112711259
1112811260 inline void from_json(const json & j, TrueClass& x) {
@@ -11158,6 +11290,39 @@ namespace quicktype {
1115811290 j["Sendable"] = x.get_sendable();
1115911291 }
1116011292
11293+ inline void from_json(const json & j, SerialDescriptor& x) {
11294+ if (!j.is_object()) throw std::runtime_error("Expected object");
11295+ if (j.find("SerialDescriptor") != j.end() && !j.at("SerialDescriptor").is_number_integer()) throw std::runtime_error("Expected integer");
11296+ x.set_serial_descriptor(j.at("SerialDescriptor").get<int64_t>());
11297+ }
11298+
11299+ inline void to_json(json & j, const SerialDescriptor & x) {
11300+ j = json::object();
11301+ j["SerialDescriptor"] = x.get_serial_descriptor();
11302+ }
11303+
11304+ inline void from_json(const json & j, SerialName& x) {
11305+ if (!j.is_object()) throw std::runtime_error("Expected object");
11306+ if (j.find("SerialName") != j.end() && !j.at("SerialName").is_number_integer()) throw std::runtime_error("Expected integer");
11307+ x.set_serial_name(j.at("SerialName").get<int64_t>());
11308+ }
11309+
11310+ inline void to_json(json & j, const SerialName & x) {
11311+ j = json::object();
11312+ j["SerialName"] = x.get_serial_name();
11313+ }
11314+
11315+ inline void from_json(const json & j, Serializable& x) {
11316+ if (!j.is_object()) throw std::runtime_error("Expected object");
11317+ if (j.find("Serializable") != j.end() && !j.at("Serializable").is_number_integer()) throw std::runtime_error("Expected integer");
11318+ x.set_serializable(j.at("Serializable").get<int64_t>());
11319+ }
11320+
11321+ inline void to_json(json & j, const Serializable & x) {
11322+ j = json::object();
11323+ j["Serializable"] = x.get_serializable();
11324+ }
11325+
1116111326 inline void from_json(const json & j, Serialize& x) {
1116211327 if (!j.is_object()) throw std::runtime_error("Expected object");
1116311328 if (j.find("serialize") != j.end() && !j.at("serialize").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11510,65 +11675,33 @@ namespace quicktype {
1151011675 j["unsafe"] = x.get_unsafe();
1151111676 }
1151211677
11513- inline void from_json(const json & j, Ushort& x) {
11514- if (!j.is_object()) throw std::runtime_error("Expected object");
11515- if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
11516- x.set_ushort(j.at("ushort").get<int64_t>());
11517- }
11518-
11519- inline void to_json(json & j, const Ushort & x) {
11520- j = json::object();
11521- j["ushort"] = x.get_ushort();
11522- }
11523-
11524- inline void from_json(const json & j, Utf8JsonReader& x) {
11678+ inline void from_json(const json & j, UseSerializers& x) {
1152511679 if (!j.is_object()) throw std::runtime_error("Expected object");
11526- if (j.find("Utf8JsonReader") != j.end() && !j.at("Utf8JsonReader").is_number_integer()) throw std::runtime_error("Expected integer");
11527- x.set_utf8_json_reader(j.at("Utf8JsonReader").get<int64_t>());
11680+ if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer");
11681+ x.set_use_serializers(j.at("UseSerializers").get<int64_t>());
1152811682 }
1152911683
11530- inline void to_json(json & j, const Utf8JsonReader & x) {
11684+ inline void to_json(json & j, const UseSerializers & x) {
1153111685 j = json::object();
11532- j["Utf8JsonReader"] = x.get_utf8_json_reader();
11686+ j["UseSerializers"] = x.get_use_serializers();
1153311687 }
1153411688
11535- inline void from_json(const json & j, Utf8JsonWriter& x) {
11536- if (!j.is_object()) throw std::runtime_error("Expected object");
11537- if (j.find("Utf8JsonWriter") != j.end() && !j.at("Utf8JsonWriter").is_number_integer()) throw std::runtime_error("Expected integer");
11538- x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<int64_t>());
11539- }
11540-
11541- inline void to_json(json & j, const Utf8JsonWriter & x) {
11542- j = json::object();
11543- j["Utf8JsonWriter"] = x.get_utf8_json_writer();
11544- }
11545-
11546- inline void from_json(const json & j, Uuid& x) {
11547- if (!j.is_object()) throw std::runtime_error("Expected object");
11548- if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer");
11549- x.set_uuid(j.at("UUID").get<int64_t>());
11550- }
11551-
11552- inline void to_json(json & j, const Uuid & x) {
11553- j = json::object();
11554- j["UUID"] = x.get_uuid();
11555- }
11556-
11557- inline void from_json(const json & j, Var& x) {
11689+ inline void from_json(const json & j, Ushort& x) {
1155811690 if (!j.is_object()) throw std::runtime_error("Expected object");
11559- if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11560- x.set_var(j.at("var").get<int64_t>());
11691+ if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
11692+ x.set_ushort(j.at("ushort").get<int64_t>());
1156111693 }
1156211694
11563- inline void to_json(json & j, const Var & x) {
11695+ inline void to_json(json & j, const Ushort & x) {
1156411696 j = json::object();
11565- j["var"] = x.get_var();
11697+ j["ushort"] = x.get_ushort();
1156611698 }
1156711699
1156811700 inline void from_json(const json & j, Obj5& x) {
1156911701 if (!j.is_object()) throw std::runtime_error("Expected object");
1157011702 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1157111703 x.set_dummy(j.at("dummy").get<int64_t>());
11704+ x.set_k_serializer(j.at("KSerializer").get<KSerializer>());
1157211705 x.set_obj5_self(j.at("self").get<SelfClass>());
1157311706 x.set_obj5_short(j.at("short").get<Short>());
1157411707 x.set_obj5_signed(j.at("signed").get<Signed>());
@@ -11591,11 +11724,13 @@ namespace quicktype {
1159111724 x.set_obj5_typename(j.at("typename").get<Typename>());
1159211725 x.set_obj5_union(j.at("union").get<Union>());
1159311726 x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>());
11594- x.set_obj5_using(j.at("using").get<Using>());
11595- x.set_obj5_virtual(j.at("virtual").get<Virtual>());
11727+ x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>());
1159611728 x.set_purple_true(j.at("true").get<TrueClass>());
1159711729 x.set_self(j.at("Self").get<Self>());
1159811730 x.set_sendable(j.at("Sendable").get<Sendable>());
11731+ x.set_serial_descriptor(j.at("SerialDescriptor").get<SerialDescriptor>());
11732+ x.set_serial_name(j.at("SerialName").get<SerialName>());
11733+ x.set_serializable(j.at("Serializable").get<Serializable>());
1159911734 x.set_serialize(j.at("serialize").get<Serialize>());
1160011735 x.set_serializer_provider(j.at("SerializerProvider").get<SerializerProvider>());
1160111736 x.set_set(j.at("set").get<Set>());
@@ -11628,16 +11763,14 @@ namespace quicktype {
1162811763 x.set_undefined(j.at("undefined").get<Undefined>());
1162911764 x.set_unowned(j.at("unowned").get<Unowned>());
1163011765 x.set_unsafe(j.at("unsafe").get<Unsafe>());
11766+ x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>());
1163111767 x.set_ushort(j.at("ushort").get<Ushort>());
11632- x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
11633- x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
11634- x.set_uuid(j.at("UUID").get<Uuid>());
11635- x.set_var(j.at("var").get<Var>());
1163611768 }
1163711769
1163811770 inline void to_json(json & j, const Obj5 & x) {
1163911771 j = json::object();
1164011772 j["dummy"] = x.get_dummy();
11773+ j["KSerializer"] = x.get_k_serializer();
1164111774 j["self"] = x.get_obj5_self();
1164211775 j["short"] = x.get_obj5_short();
1164311776 j["signed"] = x.get_obj5_signed();
@@ -11660,11 +11793,13 @@ namespace quicktype {
1166011793 j["typename"] = x.get_obj5_typename();
1166111794 j["union"] = x.get_obj5_union();
1166211795 j["unsigned"] = x.get_obj5_unsigned();
11663- j["using"] = x.get_obj5_using();
11664- j["virtual"] = x.get_obj5_virtual();
11796+ j["PrimitiveKind"] = x.get_primitive_kind();
1166511797 j["true"] = x.get_purple_true();
1166611798 j["Self"] = x.get_self();
1166711799 j["Sendable"] = x.get_sendable();
11800+ j["SerialDescriptor"] = x.get_serial_descriptor();
11801+ j["SerialName"] = x.get_serial_name();
11802+ j["Serializable"] = x.get_serializable();
1166811803 j["serialize"] = x.get_serialize();
1166911804 j["SerializerProvider"] = x.get_serializer_provider();
1167011805 j["set"] = x.get_set();
@@ -11697,11 +11832,30 @@ namespace quicktype {
1169711832 j["undefined"] = x.get_undefined();
1169811833 j["unowned"] = x.get_unowned();
1169911834 j["unsafe"] = x.get_unsafe();
11835+ j["UseSerializers"] = x.get_use_serializers();
1170011836 j["ushort"] = x.get_ushort();
11701- j["Utf8JsonReader"] = x.get_utf8_json_reader();
11702- j["Utf8JsonWriter"] = x.get_utf8_json_writer();
11703- j["UUID"] = x.get_uuid();
11704- j["var"] = x.get_var();
11837+ }
11838+
11839+ inline void from_json(const json & j, Using& x) {
11840+ if (!j.is_object()) throw std::runtime_error("Expected object");
11841+ if (j.find("using") != j.end() && !j.at("using").is_number_integer()) throw std::runtime_error("Expected integer");
11842+ x.set_using_using(j.at("using").get<int64_t>());
11843+ }
11844+
11845+ inline void to_json(json & j, const Using & x) {
11846+ j = json::object();
11847+ j["using"] = x.get_using_using();
11848+ }
11849+
11850+ inline void from_json(const json & j, Virtual& x) {
11851+ if (!j.is_object()) throw std::runtime_error("Expected object");
11852+ if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11853+ x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11854+ }
11855+
11856+ inline void to_json(json & j, const Virtual & x) {
11857+ j = json::object();
11858+ j["virtual"] = x.get_virtual_virtual();
1170511859 }
1170611860
1170711861 inline void from_json(const json & j, Void& x) {
@@ -11770,6 +11924,50 @@ namespace quicktype {
1177011924 j["xor_eq"] = x.get_xor_eq_xor_eq();
1177111925 }
1177211926
11927+ inline void from_json(const json & j, Utf8JsonReader& x) {
11928+ if (!j.is_object()) throw std::runtime_error("Expected object");
11929+ if (j.find("Utf8JsonReader") != j.end() && !j.at("Utf8JsonReader").is_number_integer()) throw std::runtime_error("Expected integer");
11930+ x.set_utf8_json_reader(j.at("Utf8JsonReader").get<int64_t>());
11931+ }
11932+
11933+ inline void to_json(json & j, const Utf8JsonReader & x) {
11934+ j = json::object();
11935+ j["Utf8JsonReader"] = x.get_utf8_json_reader();
11936+ }
11937+
11938+ inline void from_json(const json & j, Utf8JsonWriter& x) {
11939+ if (!j.is_object()) throw std::runtime_error("Expected object");
11940+ if (j.find("Utf8JsonWriter") != j.end() && !j.at("Utf8JsonWriter").is_number_integer()) throw std::runtime_error("Expected integer");
11941+ x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<int64_t>());
11942+ }
11943+
11944+ inline void to_json(json & j, const Utf8JsonWriter & x) {
11945+ j = json::object();
11946+ j["Utf8JsonWriter"] = x.get_utf8_json_writer();
11947+ }
11948+
11949+ inline void from_json(const json & j, Uuid& x) {
11950+ if (!j.is_object()) throw std::runtime_error("Expected object");
11951+ if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer");
11952+ x.set_uuid(j.at("UUID").get<int64_t>());
11953+ }
11954+
11955+ inline void to_json(json & j, const Uuid & x) {
11956+ j = json::object();
11957+ j["UUID"] = x.get_uuid();
11958+ }
11959+
11960+ inline void from_json(const json & j, Var& x) {
11961+ if (!j.is_object()) throw std::runtime_error("Expected object");
11962+ if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11963+ x.set_var(j.at("var").get<int64_t>());
11964+ }
11965+
11966+ inline void to_json(json & j, const Var & x) {
11967+ j = json::object();
11968+ j["var"] = x.get_var();
11969+ }
11970+
1177311971 inline void from_json(const json & j, Weak& x) {
1177411972 if (!j.is_object()) throw std::runtime_error("Expected object");
1177511973 if (j.find("weak") != j.end() && !j.at("weak").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11840,12 +12038,18 @@ namespace quicktype {
1184012038 if (!j.is_object()) throw std::runtime_error("Expected object");
1184112039 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1184212040 x.set_dummy(j.at("dummy").get<int64_t>());
12041+ x.set_obj6_using(j.at("using").get<Using>());
12042+ x.set_obj6_virtual(j.at("virtual").get<Virtual>());
1184312043 x.set_obj6_void(j.at("void").get<Void>());
1184412044 x.set_obj6_volatile(j.at("volatile").get<Volatile>());
1184512045 x.set_obj6_wchar_t(j.at("wchar_t").get<WcharT>());
1184612046 x.set_obj6_while(j.at("while").get<While>());
1184712047 x.set_obj6_xor(j.at("xor").get<Xor>());
1184812048 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
12049+ x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
12050+ x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
12051+ x.set_uuid(j.at("UUID").get<Uuid>());
12052+ x.set_var(j.at("var").get<Var>());
1184912053 x.set_weak(j.at("weak").get<Weak>());
1185012054 x.set_where(j.at("where").get<Where>());
1185112055 x.set_will_set(j.at("willSet").get<WillSet>());
@@ -11857,12 +12061,18 @@ namespace quicktype {
1185712061 inline void to_json(json & j, const Obj6 & x) {
1185812062 j = json::object();
1185912063 j["dummy"] = x.get_dummy();
12064+ j["using"] = x.get_obj6_using();
12065+ j["virtual"] = x.get_obj6_virtual();
1186012066 j["void"] = x.get_obj6_void();
1186112067 j["volatile"] = x.get_obj6_volatile();
1186212068 j["wchar_t"] = x.get_obj6_wchar_t();
1186312069 j["while"] = x.get_obj6_while();
1186412070 j["xor"] = x.get_obj6_xor();
1186512071 j["xor_eq"] = x.get_obj6_xor_eq();
12072+ j["Utf8JsonReader"] = x.get_utf8_json_reader();
12073+ j["Utf8JsonWriter"] = x.get_utf8_json_writer();
12074+ j["UUID"] = x.get_uuid();
12075+ j["var"] = x.get_var();
1186612076 j["weak"] = x.get_weak();
1186712077 j["where"] = x.get_where();
1186812078 j["willSet"] = x.get_will_set();
Mcrystaldefault / TopLevel.cr+110 −50
@@ -2262,6 +2262,9 @@ class Obj5
22622262
22632263 property dummy : Int64
22642264
2265+ @[JSON::Field(key: "KSerializer")]
2266+ property k_serializer : KSerializer
2267+
22652268 @[JSON::Field(key: "Self")]
22662269 property obj5_self : Self
22672270
@@ -2292,6 +2295,9 @@ class Obj5
22922295 @[JSON::Field(key: "union")]
22932296 property obj5_union : UnionClass
22942297
2298+ @[JSON::Field(key: "PrimitiveKind")]
2299+ property primitive_kind : PrimitiveKind
2300+
22952301 @[JSON::Field(key: "self")]
22962302 property purple_self : SelfClass
22972303
@@ -2304,6 +2310,15 @@ class Obj5
23042310 @[JSON::Field(key: "Sendable")]
23052311 property sendable : Sendable
23062312
2313+ @[JSON::Field(key: "SerialDescriptor")]
2314+ property serial_descriptor : SerialDescriptor
2315+
2316+ @[JSON::Field(key: "SerialName")]
2317+ property serial_name : SerialName
2318+
2319+ @[JSON::Field(key: "Serializable")]
2320+ property serializable : Serializable
2321+
23072322 property serialize : Serialize
23082323
23092324 @[JSON::Field(key: "SerializerProvider")]
@@ -2399,22 +2414,17 @@ class Obj5
23992414
24002415 property unsigned : Unsigned
24012416
2402- property ushort : Ushort
2403-
2404- property using : Using
2417+ @[JSON::Field(key: "UseSerializers")]
2418+ property use_serializers : UseSerializers
24052419
2406- @[JSON::Field(key: "Utf8JsonReader")]
2407- property utf8_json_reader : Utf8JsonReader
2408-
2409- @[JSON::Field(key: "Utf8JsonWriter")]
2410- property utf8_json_writer : Utf8JsonWriter
2411-
2412- @[JSON::Field(key: "UUID")]
2413- property uuid : Uuid
2420+ property ushort : Ushort
2421+end
24142422
2415- property var : Var
2423+class KSerializer
2424+ include JSON::Serializable
24162425
2417- property virtual : Virtual
2426+ @[JSON::Field(key: "KSerializer")]
2427+ property k_serializer : Int64
24182428 end
24192429
24202430 class Self
@@ -2487,6 +2497,13 @@ class UnionClass
24872497 property union_union : Int64
24882498 end
24892499
2500+class PrimitiveKind
2501+ include JSON::Serializable
2502+
2503+ @[JSON::Field(key: "PrimitiveKind")]
2504+ property primitive_kind : Int64
2505+end
2506+
24902507 class SelfClass
24912508 include JSON::Serializable
24922509
@@ -2515,6 +2532,27 @@ class Sendable
25152532 property sendable : Int64
25162533 end
25172534
2535+class SerialDescriptor
2536+ include JSON::Serializable
2537+
2538+ @[JSON::Field(key: "SerialDescriptor")]
2539+ property serial_descriptor : Int64
2540+end
2541+
2542+class SerialName
2543+ include JSON::Serializable
2544+
2545+ @[JSON::Field(key: "SerialName")]
2546+ property serial_name : Int64
2547+end
2548+
2549+class Serializable
2550+ include JSON::Serializable
2551+
2552+ @[JSON::Field(key: "Serializable")]
2553+ property serializable : Int64
2554+end
2555+
25182556 class Serialize
25192557 include JSON::Serializable
25202558
@@ -2782,49 +2820,17 @@ class Unsigned
27822820 property unsigned : Int64
27832821 end
27842822
2785-class Ushort
2786- include JSON::Serializable
2787-
2788- property ushort : Int64
2789-end
2790-
2791-class Using
2792- include JSON::Serializable
2793-
2794- property using : Int64
2795-end
2796-
2797-class Utf8JsonReader
2798- include JSON::Serializable
2799-
2800- @[JSON::Field(key: "Utf8JsonReader")]
2801- property utf8_json_reader : Int64
2802-end
2803-
2804-class Utf8JsonWriter
2805- include JSON::Serializable
2806-
2807- @[JSON::Field(key: "Utf8JsonWriter")]
2808- property utf8_json_writer : Int64
2809-end
2810-
2811-class Uuid
2812- include JSON::Serializable
2813-
2814- @[JSON::Field(key: "UUID")]
2815- property uuid : Int64
2816-end
2817-
2818-class Var
2823+class UseSerializers
28192824 include JSON::Serializable
28202825
2821- property var : Int64
2826+ @[JSON::Field(key: "UseSerializers")]
2827+ property use_serializers : Int64
28222828 end
28232829
2824-class Virtual
2830+class Ushort
28252831 include JSON::Serializable
28262832
2827- property virtual : Int64
2833+ property ushort : Int64
28282834 end
28292835
28302836 class Obj6
@@ -2841,6 +2847,21 @@ class Obj6
28412847 @[JSON::Field(key: "yield")]
28422848 property obj6_yield : Yield
28432849
2850+ property using : Using
2851+
2852+ @[JSON::Field(key: "Utf8JsonReader")]
2853+ property utf8_json_reader : Utf8JsonReader
2854+
2855+ @[JSON::Field(key: "Utf8JsonWriter")]
2856+ property utf8_json_writer : Utf8JsonWriter
2857+
2858+ @[JSON::Field(key: "UUID")]
2859+ property uuid : Uuid
2860+
2861+ property var : Var
2862+
2863+ property virtual : Virtual
2864+
28442865 property void : VoidClass
28452866
28462867 property volatile : Volatile
@@ -2883,6 +2904,45 @@ class Yield
28832904 property yield_yield : Int64
28842905 end
28852906
2907+class Using
2908+ include JSON::Serializable
2909+
2910+ property using : Int64
2911+end
2912+
2913+class Utf8JsonReader
2914+ include JSON::Serializable
2915+
2916+ @[JSON::Field(key: "Utf8JsonReader")]
2917+ property utf8_json_reader : Int64
2918+end
2919+
2920+class Utf8JsonWriter
2921+ include JSON::Serializable
2922+
2923+ @[JSON::Field(key: "Utf8JsonWriter")]
2924+ property utf8_json_writer : Int64
2925+end
2926+
2927+class Uuid
2928+ include JSON::Serializable
2929+
2930+ @[JSON::Field(key: "UUID")]
2931+ property uuid : Int64
2932+end
2933+
2934+class Var
2935+ include JSON::Serializable
2936+
2937+ property var : Int64
2938+end
2939+
2940+class Virtual
2941+ include JSON::Serializable
2942+
2943+ property virtual : Int64
2944+end
2945+
28862946 class VoidClass
28872947 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+99 −45
@@ -2380,6 +2380,9 @@ namespace QuickType
23802380 [JsonProperty("dummy", Required = Required.Always)]
23812381 public long Dummy { get; set; }
23822382
2383+ [JsonProperty("KSerializer", Required = Required.Always)]
2384+ public KSerializer KSerializer { get; set; }
2385+
23832386 [JsonProperty("self", Required = Required.Always)]
23842387 public SelfClass Obj5Self { get; set; }
23852388
@@ -2395,12 +2398,24 @@ namespace QuickType
23952398 [JsonProperty("type", Required = Required.Always)]
23962399 public Obj5Type Obj5Type { get; set; }
23972400
2401+ [JsonProperty("PrimitiveKind", Required = Required.Always)]
2402+ public PrimitiveKind PrimitiveKind { get; set; }
2403+
23982404 [JsonProperty("Self", Required = Required.Always)]
23992405 public Self Self { get; set; }
24002406
24012407 [JsonProperty("Sendable", Required = Required.Always)]
24022408 public Sendable Sendable { get; set; }
24032409
2410+ [JsonProperty("SerialDescriptor", Required = Required.Always)]
2411+ public SerialDescriptor SerialDescriptor { get; set; }
2412+
2413+ [JsonProperty("SerialName", Required = Required.Always)]
2414+ public SerialName SerialName { get; set; }
2415+
2416+ [JsonProperty("Serializable", Required = Required.Always)]
2417+ public Serializable Serializable { get; set; }
2418+
24042419 [JsonProperty("serialize", Required = Required.Always)]
24052420 public SerializeClass Serialize { get; set; }
24062421
@@ -2551,26 +2566,17 @@ namespace QuickType
25512566 [JsonProperty("unsigned", Required = Required.Always)]
25522567 public Unsigned Unsigned { get; set; }
25532568
2569+ [JsonProperty("UseSerializers", Required = Required.Always)]
2570+ public UseSerializers UseSerializers { get; set; }
2571+
25542572 [JsonProperty("ushort", Required = Required.Always)]
25552573 public Ushort Ushort { get; set; }
2574+ }
25562575
2557- [JsonProperty("using", Required = Required.Always)]
2558- public Using Using { get; set; }
2559-
2560- [JsonProperty("Utf8JsonReader", Required = Required.Always)]
2561- public Utf8JsonReader Utf8JsonReader { get; set; }
2562-
2563- [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
2564- public Utf8JsonWriter Utf8JsonWriter { get; set; }
2565-
2566- [JsonProperty("UUID", Required = Required.Always)]
2567- public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
2576+ public partial record KSerializer
2577+ {
2578+ [JsonProperty("KSerializer", Required = Required.Always)]
2579+ public long KSerializerKSerializer { get; set; }
25742580 }
25752581
25762582 public partial record SelfClass
@@ -2603,6 +2609,12 @@ namespace QuickType
26032609 public long Type { get; set; }
26042610 }
26052611
2612+ public partial record PrimitiveKind
2613+ {
2614+ [JsonProperty("PrimitiveKind", Required = Required.Always)]
2615+ public long PrimitiveKindPrimitiveKind { get; set; }
2616+ }
2617+
26062618 public partial record Self
26072619 {
26082620 [JsonProperty("Self", Required = Required.Always)]
@@ -2615,6 +2627,24 @@ namespace QuickType
26152627 public long SendableSendable { get; set; }
26162628 }
26172629
2630+ public partial record SerialDescriptor
2631+ {
2632+ [JsonProperty("SerialDescriptor", Required = Required.Always)]
2633+ public long SerialDescriptorSerialDescriptor { get; set; }
2634+ }
2635+
2636+ public partial record SerialName
2637+ {
2638+ [JsonProperty("SerialName", Required = Required.Always)]
2639+ public long SerialNameSerialName { get; set; }
2640+ }
2641+
2642+ public partial record Serializable
2643+ {
2644+ [JsonProperty("Serializable", Required = Required.Always)]
2645+ public long SerializableSerializable { get; set; }
2646+ }
2647+
26182648 public partial record SerializeClass
26192649 {
26202650 [JsonProperty("serialize", Required = Required.Always)]
@@ -2915,52 +2945,40 @@ namespace QuickType
29152945 public long UnsignedUnsigned { get; set; }
29162946 }
29172947
2948+ public partial record UseSerializers
2949+ {
2950+ [JsonProperty("UseSerializers", Required = Required.Always)]
2951+ public long UseSerializersUseSerializers { get; set; }
2952+ }
2953+
29182954 public partial record Ushort
29192955 {
29202956 [JsonProperty("ushort", Required = Required.Always)]
29212957 public long UshortUshort { get; set; }
29222958 }
29232959
2924- public partial record Using
2960+ public partial record Obj6
29252961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29262965 [JsonProperty("using", Required = Required.Always)]
2927- public long UsingUsing { get; set; }
2928- }
2966+ public Using Using { get; set; }
29292967
2930- public partial record Utf8JsonReader
2931- {
29322968 [JsonProperty("Utf8JsonReader", Required = Required.Always)]
2933- public long Utf8JsonReaderUtf8JsonReader { get; set; }
2934- }
2969+ public Utf8JsonReader Utf8JsonReader { get; set; }
29352970
2936- public partial record Utf8JsonWriter
2937- {
29382971 [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
2939- public long Utf8JsonWriterUtf8JsonWriter { get; set; }
2940- }
2972+ public Utf8JsonWriter Utf8JsonWriter { get; set; }
29412973
2942- public partial record Uuid
2943- {
29442974 [JsonProperty("UUID", Required = Required.Always)]
2945- public long UuidUuid { get; set; }
2946- }
2975+ public Uuid Uuid { get; set; }
29472976
2948- public partial record Var
2949- {
29502977 [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2978+ public Var Var { get; set; }
29532979
2954- public partial record Virtual
2955- {
29562980 [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
2960- public partial record Obj6
2961- {
2962- [JsonProperty("dummy", Required = Required.Always)]
2963- public long Dummy { get; set; }
2981+ public Virtual Virtual { get; set; }
29642982
29652983 [JsonProperty("void", Required = Required.Always)]
29662984 public Void Void { get; set; }
@@ -2999,6 +3017,42 @@ namespace QuickType
29993017 public Yield Yield { get; set; }
30003018 }
30013019
3020+ public partial record Using
3021+ {
3022+ [JsonProperty("using", Required = Required.Always)]
3023+ public long UsingUsing { get; set; }
3024+ }
3025+
3026+ public partial record Utf8JsonReader
3027+ {
3028+ [JsonProperty("Utf8JsonReader", Required = Required.Always)]
3029+ public long Utf8JsonReaderUtf8JsonReader { get; set; }
3030+ }
3031+
3032+ public partial record Utf8JsonWriter
3033+ {
3034+ [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
3035+ public long Utf8JsonWriterUtf8JsonWriter { get; set; }
3036+ }
3037+
3038+ public partial record Uuid
3039+ {
3040+ [JsonProperty("UUID", Required = Required.Always)]
3041+ public long UuidUuid { get; set; }
3042+ }
3043+
3044+ public partial record Var
3045+ {
3046+ [JsonProperty("var", Required = Required.Always)]
3047+ public long VarVar { get; set; }
3048+ }
3049+
3050+ public partial record Virtual
3051+ {
3052+ [JsonProperty("virtual", Required = Required.Always)]
3053+ public long VirtualVirtual { get; set; }
3054+ }
3055+
30023056 public partial record Void
30033057 {
30043058 [JsonProperty("void", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+117 −51
@@ -2901,6 +2901,10 @@ namespace QuickType
29012901 [JsonPropertyName("dummy")]
29022902 public long Dummy { get; set; }
29032903
2904+ [JsonRequired]
2905+ [JsonPropertyName("KSerializer")]
2906+ public KSerializer KSerializer { get; set; }
2907+
29042908 [JsonRequired]
29052909 [JsonPropertyName("self")]
29062910 public SelfClass Obj5Self { get; set; }
@@ -2921,6 +2925,10 @@ namespace QuickType
29212925 [JsonPropertyName("type")]
29222926 public Obj5Type Obj5Type { get; set; }
29232927
2928+ [JsonRequired]
2929+ [JsonPropertyName("PrimitiveKind")]
2930+ public PrimitiveKind PrimitiveKind { get; set; }
2931+
29242932 [JsonRequired]
29252933 [JsonPropertyName("Self")]
29262934 public Self Self { get; set; }
@@ -2929,6 +2937,18 @@ namespace QuickType
29292937 [JsonPropertyName("Sendable")]
29302938 public Sendable Sendable { get; set; }
29312939
2940+ [JsonRequired]
2941+ [JsonPropertyName("SerialDescriptor")]
2942+ public SerialDescriptor SerialDescriptor { get; set; }
2943+
2944+ [JsonRequired]
2945+ [JsonPropertyName("SerialName")]
2946+ public SerialName SerialName { get; set; }
2947+
2948+ [JsonRequired]
2949+ [JsonPropertyName("Serializable")]
2950+ public Serializable Serializable { get; set; }
2951+
29322952 [JsonRequired]
29332953 [JsonPropertyName("serialize")]
29342954 public SerializeClass Serialize { get; set; }
@@ -3130,32 +3150,19 @@ namespace QuickType
31303150 public Unsigned Unsigned { get; set; }
31313151
31323152 [JsonRequired]
3133- [JsonPropertyName("ushort")]
3134- public Ushort Ushort { get; set; }
3153+ [JsonPropertyName("UseSerializers")]
3154+ public UseSerializers UseSerializers { get; set; }
31353155
31363156 [JsonRequired]
3137- [JsonPropertyName("using")]
3138- public Using Using { get; set; }
3139-
3140- [JsonRequired]
3141- [JsonPropertyName("Utf8JsonReader")]
3142- public Utf8JsonReaderClass Utf8JsonReader { get; set; }
3143-
3144- [JsonRequired]
3145- [JsonPropertyName("Utf8JsonWriter")]
3146- public Utf8JsonWriterClass Utf8JsonWriter { get; set; }
3147-
3148- [JsonRequired]
3149- [JsonPropertyName("UUID")]
3150- public Uuid Uuid { get; set; }
3151-
3152- [JsonRequired]
3153- [JsonPropertyName("var")]
3154- public Var Var { get; set; }
3157+ [JsonPropertyName("ushort")]
3158+ public Ushort Ushort { get; set; }
3159+ }
31553160
3161+ public partial class KSerializer
3162+ {
31563163 [JsonRequired]
3157- [JsonPropertyName("virtual")]
3158- public Virtual Virtual { get; set; }
3164+ [JsonPropertyName("KSerializer")]
3165+ public long KSerializerKSerializer { get; set; }
31593166 }
31603167
31613168 public partial class SelfClass
@@ -3193,6 +3200,13 @@ namespace QuickType
31933200 public long Type { get; set; }
31943201 }
31953202
3203+ public partial class PrimitiveKind
3204+ {
3205+ [JsonRequired]
3206+ [JsonPropertyName("PrimitiveKind")]
3207+ public long PrimitiveKindPrimitiveKind { get; set; }
3208+ }
3209+
31963210 public partial class Self
31973211 {
31983212 [JsonRequired]
@@ -3207,6 +3221,27 @@ namespace QuickType
32073221 public long SendableSendable { get; set; }
32083222 }
32093223
3224+ public partial class SerialDescriptor
3225+ {
3226+ [JsonRequired]
3227+ [JsonPropertyName("SerialDescriptor")]
3228+ public long SerialDescriptorSerialDescriptor { get; set; }
3229+ }
3230+
3231+ public partial class SerialName
3232+ {
3233+ [JsonRequired]
3234+ [JsonPropertyName("SerialName")]
3235+ public long SerialNameSerialName { get; set; }
3236+ }
3237+
3238+ public partial class Serializable
3239+ {
3240+ [JsonRequired]
3241+ [JsonPropertyName("Serializable")]
3242+ public long SerializableSerializable { get; set; }
3243+ }
3244+
32103245 public partial class SerializeClass
32113246 {
32123247 [JsonRequired]
@@ -3557,6 +3592,13 @@ namespace QuickType
35573592 public long UnsignedUnsigned { get; set; }
35583593 }
35593594
3595+ public partial class UseSerializers
3596+ {
3597+ [JsonRequired]
3598+ [JsonPropertyName("UseSerializers")]
3599+ public long UseSerializersUseSerializers { get; set; }
3600+ }
3601+
35603602 public partial class Ushort
35613603 {
35623604 [JsonRequired]
@@ -3564,53 +3606,35 @@ namespace QuickType
35643606 public long UshortUshort { get; set; }
35653607 }
35663608
3567- public partial class Using
3609+ public partial class Obj6
35683610 {
3611+ [JsonRequired]
3612+ [JsonPropertyName("dummy")]
3613+ public long Dummy { get; set; }
3614+
35693615 [JsonRequired]
35703616 [JsonPropertyName("using")]
3571- public long UsingUsing { get; set; }
3572- }
3617+ public Using Using { get; set; }
35733618
3574- public partial class Utf8JsonReaderClass
3575- {
35763619 [JsonRequired]
35773620 [JsonPropertyName("Utf8JsonReader")]
3578- public long Utf8JsonReader { get; set; }
3579- }
3621+ public Utf8JsonReaderClass Utf8JsonReader { get; set; }
35803622
3581- public partial class Utf8JsonWriterClass
3582- {
35833623 [JsonRequired]
35843624 [JsonPropertyName("Utf8JsonWriter")]
3585- public long Utf8JsonWriter { get; set; }
3586- }
3625+ public Utf8JsonWriterClass Utf8JsonWriter { get; set; }
35873626
3588- public partial class Uuid
3589- {
35903627 [JsonRequired]
35913628 [JsonPropertyName("UUID")]
3592- public long UuidUuid { get; set; }
3593- }
3629+ public Uuid Uuid { get; set; }
35943630
3595- public partial class Var
3596- {
35973631 [JsonRequired]
35983632 [JsonPropertyName("var")]
3599- public long VarVar { get; set; }
3600- }
3633+ public Var Var { get; set; }
36013634
3602- public partial class Virtual
3603- {
36043635 [JsonRequired]
36053636 [JsonPropertyName("virtual")]
3606- public long VirtualVirtual { get; set; }
3607- }
3608-
3609- public partial class Obj6
3610- {
3611- [JsonRequired]
3612- [JsonPropertyName("dummy")]
3613- public long Dummy { get; set; }
3637+ public Virtual Virtual { get; set; }
36143638
36153639 [JsonRequired]
36163640 [JsonPropertyName("void")]
@@ -3661,6 +3685,48 @@ namespace QuickType
36613685 public Yield Yield { get; set; }
36623686 }
36633687
3688+ public partial class Using
3689+ {
3690+ [JsonRequired]
3691+ [JsonPropertyName("using")]
3692+ public long UsingUsing { get; set; }
3693+ }
3694+
3695+ public partial class Utf8JsonReaderClass
3696+ {
3697+ [JsonRequired]
3698+ [JsonPropertyName("Utf8JsonReader")]
3699+ public long Utf8JsonReader { get; set; }
3700+ }
3701+
3702+ public partial class Utf8JsonWriterClass
3703+ {
3704+ [JsonRequired]
3705+ [JsonPropertyName("Utf8JsonWriter")]
3706+ public long Utf8JsonWriter { get; set; }
3707+ }
3708+
3709+ public partial class Uuid
3710+ {
3711+ [JsonRequired]
3712+ [JsonPropertyName("UUID")]
3713+ public long UuidUuid { get; set; }
3714+ }
3715+
3716+ public partial class Var
3717+ {
3718+ [JsonRequired]
3719+ [JsonPropertyName("var")]
3720+ public long VarVar { get; set; }
3721+ }
3722+
3723+ public partial class Virtual
3724+ {
3725+ [JsonRequired]
3726+ [JsonPropertyName("virtual")]
3727+ public long VirtualVirtual { get; set; }
3728+ }
3729+
36643730 public partial class Void
36653731 {
36663732 [JsonRequired]
Mcsharpdefault / QuickType.cs+99 −45
@@ -2380,6 +2380,9 @@ namespace QuickType
23802380 [JsonProperty("dummy", Required = Required.Always)]
23812381 public long Dummy { get; set; }
23822382
2383+ [JsonProperty("KSerializer", Required = Required.Always)]
2384+ public KSerializer KSerializer { get; set; }
2385+
23832386 [JsonProperty("self", Required = Required.Always)]
23842387 public SelfClass Obj5Self { get; set; }
23852388
@@ -2395,12 +2398,24 @@ namespace QuickType
23952398 [JsonProperty("type", Required = Required.Always)]
23962399 public Obj5Type Obj5Type { get; set; }
23972400
2401+ [JsonProperty("PrimitiveKind", Required = Required.Always)]
2402+ public PrimitiveKind PrimitiveKind { get; set; }
2403+
23982404 [JsonProperty("Self", Required = Required.Always)]
23992405 public Self Self { get; set; }
24002406
24012407 [JsonProperty("Sendable", Required = Required.Always)]
24022408 public Sendable Sendable { get; set; }
24032409
2410+ [JsonProperty("SerialDescriptor", Required = Required.Always)]
2411+ public SerialDescriptor SerialDescriptor { get; set; }
2412+
2413+ [JsonProperty("SerialName", Required = Required.Always)]
2414+ public SerialName SerialName { get; set; }
2415+
2416+ [JsonProperty("Serializable", Required = Required.Always)]
2417+ public Serializable Serializable { get; set; }
2418+
24042419 [JsonProperty("serialize", Required = Required.Always)]
24052420 public SerializeClass Serialize { get; set; }
24062421
@@ -2551,26 +2566,17 @@ namespace QuickType
25512566 [JsonProperty("unsigned", Required = Required.Always)]
25522567 public Unsigned Unsigned { get; set; }
25532568
2569+ [JsonProperty("UseSerializers", Required = Required.Always)]
2570+ public UseSerializers UseSerializers { get; set; }
2571+
25542572 [JsonProperty("ushort", Required = Required.Always)]
25552573 public Ushort Ushort { get; set; }
2574+ }
25562575
2557- [JsonProperty("using", Required = Required.Always)]
2558- public Using Using { get; set; }
2559-
2560- [JsonProperty("Utf8JsonReader", Required = Required.Always)]
2561- public Utf8JsonReader Utf8JsonReader { get; set; }
2562-
2563- [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
2564- public Utf8JsonWriter Utf8JsonWriter { get; set; }
2565-
2566- [JsonProperty("UUID", Required = Required.Always)]
2567- public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
2576+ public partial class KSerializer
2577+ {
2578+ [JsonProperty("KSerializer", Required = Required.Always)]
2579+ public long KSerializerKSerializer { get; set; }
25742580 }
25752581
25762582 public partial class SelfClass
@@ -2603,6 +2609,12 @@ namespace QuickType
26032609 public long Type { get; set; }
26042610 }
26052611
2612+ public partial class PrimitiveKind
2613+ {
2614+ [JsonProperty("PrimitiveKind", Required = Required.Always)]
2615+ public long PrimitiveKindPrimitiveKind { get; set; }
2616+ }
2617+
26062618 public partial class Self
26072619 {
26082620 [JsonProperty("Self", Required = Required.Always)]
@@ -2615,6 +2627,24 @@ namespace QuickType
26152627 public long SendableSendable { get; set; }
26162628 }
26172629
2630+ public partial class SerialDescriptor
2631+ {
2632+ [JsonProperty("SerialDescriptor", Required = Required.Always)]
2633+ public long SerialDescriptorSerialDescriptor { get; set; }
2634+ }
2635+
2636+ public partial class SerialName
2637+ {
2638+ [JsonProperty("SerialName", Required = Required.Always)]
2639+ public long SerialNameSerialName { get; set; }
2640+ }
2641+
2642+ public partial class Serializable
2643+ {
2644+ [JsonProperty("Serializable", Required = Required.Always)]
2645+ public long SerializableSerializable { get; set; }
2646+ }
2647+
26182648 public partial class SerializeClass
26192649 {
26202650 [JsonProperty("serialize", Required = Required.Always)]
@@ -2915,52 +2945,40 @@ namespace QuickType
29152945 public long UnsignedUnsigned { get; set; }
29162946 }
29172947
2948+ public partial class UseSerializers
2949+ {
2950+ [JsonProperty("UseSerializers", Required = Required.Always)]
2951+ public long UseSerializersUseSerializers { get; set; }
2952+ }
2953+
29182954 public partial class Ushort
29192955 {
29202956 [JsonProperty("ushort", Required = Required.Always)]
29212957 public long UshortUshort { get; set; }
29222958 }
29232959
2924- public partial class Using
2960+ public partial class Obj6
29252961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29262965 [JsonProperty("using", Required = Required.Always)]
2927- public long UsingUsing { get; set; }
2928- }
2966+ public Using Using { get; set; }
29292967
2930- public partial class Utf8JsonReader
2931- {
29322968 [JsonProperty("Utf8JsonReader", Required = Required.Always)]
2933- public long Utf8JsonReaderUtf8JsonReader { get; set; }
2934- }
2969+ public Utf8JsonReader Utf8JsonReader { get; set; }
29352970
2936- public partial class Utf8JsonWriter
2937- {
29382971 [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
2939- public long Utf8JsonWriterUtf8JsonWriter { get; set; }
2940- }
2972+ public Utf8JsonWriter Utf8JsonWriter { get; set; }
29412973
2942- public partial class Uuid
2943- {
29442974 [JsonProperty("UUID", Required = Required.Always)]
2945- public long UuidUuid { get; set; }
2946- }
2975+ public Uuid Uuid { get; set; }
29472976
2948- public partial class Var
2949- {
29502977 [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2978+ public Var Var { get; set; }
29532979
2954- public partial class Virtual
2955- {
29562980 [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
2960- public partial class Obj6
2961- {
2962- [JsonProperty("dummy", Required = Required.Always)]
2963- public long Dummy { get; set; }
2981+ public Virtual Virtual { get; set; }
29642982
29652983 [JsonProperty("void", Required = Required.Always)]
29662984 public Void Void { get; set; }
@@ -2999,6 +3017,42 @@ namespace QuickType
29993017 public Yield Yield { get; set; }
30003018 }
30013019
3020+ public partial class Using
3021+ {
3022+ [JsonProperty("using", Required = Required.Always)]
3023+ public long UsingUsing { get; set; }
3024+ }
3025+
3026+ public partial class Utf8JsonReader
3027+ {
3028+ [JsonProperty("Utf8JsonReader", Required = Required.Always)]
3029+ public long Utf8JsonReaderUtf8JsonReader { get; set; }
3030+ }
3031+
3032+ public partial class Utf8JsonWriter
3033+ {
3034+ [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
3035+ public long Utf8JsonWriterUtf8JsonWriter { get; set; }
3036+ }
3037+
3038+ public partial class Uuid
3039+ {
3040+ [JsonProperty("UUID", Required = Required.Always)]
3041+ public long UuidUuid { get; set; }
3042+ }
3043+
3044+ public partial class Var
3045+ {
3046+ [JsonProperty("var", Required = Required.Always)]
3047+ public long VarVar { get; set; }
3048+ }
3049+
3050+ public partial class Virtual
3051+ {
3052+ [JsonProperty("virtual", Required = Required.Always)]
3053+ public long VirtualVirtual { get; set; }
3054+ }
3055+
30023056 public partial class Void
30033057 {
30043058 [JsonProperty("void", Required = Required.Always)]
Mdartdefault / TopLevel.dart+229 −109
@@ -5244,6 +5244,7 @@ class Select {
52445244
52455245 class Obj5 {
52465246 final int dummy;
5247+ final KSerializer kSerializer;
52475248 final SelfClass obj5Self;
52485249 final Set obj5Set;
52495250 final Static obj5Static;
@@ -5257,10 +5258,13 @@ class Obj5 {
52575258 final Try obj5Try;
52585259 final TypeClass obj5Type;
52595260 final Typedef obj5Typedef;
5260- final Var obj5Var;
5261+ final PrimitiveKind primitiveKind;
52615262 final TrueClass purpleTrue;
52625263 final Self self;
52635264 final Sendable sendable;
5265+ final SerialDescriptor serialDescriptor;
5266+ final SerialName serialName;
5267+ final Serializable serializable;
52645268 final Serialize serialize;
52655269 final SerializerProvider serializerProvider;
52665270 final Short short;
@@ -5302,15 +5306,12 @@ class Obj5 {
53025306 final Unowned unowned;
53035307 final Unsafe unsafe;
53045308 final Unsigned unsigned;
5309+ final UseSerializers useSerializers;
53055310 final Ushort ushort;
5306- final Using using;
5307- final Utf8JsonReader utf8JsonReader;
5308- final Utf8JsonWriter utf8JsonWriter;
5309- final Uuid uuid;
5310- final Virtual virtual;
53115311
53125312 Obj5({
53135313 required this.dummy,
5314+ required this.kSerializer,
53145315 required this.obj5Self,
53155316 required this.obj5Set,
53165317 required this.obj5Static,
@@ -5324,10 +5325,13 @@ class Obj5 {
53245325 required this.obj5Try,
53255326 required this.obj5Type,
53265327 required this.obj5Typedef,
5327- required this.obj5Var,
5328+ required this.primitiveKind,
53285329 required this.purpleTrue,
53295330 required this.self,
53305331 required this.sendable,
5332+ required this.serialDescriptor,
5333+ required this.serialName,
5334+ required this.serializable,
53315335 required this.serialize,
53325336 required this.serializerProvider,
53335337 required this.short,
@@ -5369,16 +5373,13 @@ class Obj5 {
53695373 required this.unowned,
53705374 required this.unsafe,
53715375 required this.unsigned,
5376+ required this.useSerializers,
53725377 required this.ushort,
5373- required this.using,
5374- required this.utf8JsonReader,
5375- required this.utf8JsonWriter,
5376- required this.uuid,
5377- required this.virtual,
53785378 });
53795379
53805380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
53815381 dummy: json["dummy"],
5382+ kSerializer: KSerializer.fromJson(json["KSerializer"]),
53825383 obj5Self: SelfClass.fromJson(json["self"]),
53835384 obj5Set: Set.fromJson(json["set"]),
53845385 obj5Static: Static.fromJson(json["static"]),
@@ -5392,10 +5393,13 @@ class Obj5 {
53925393 obj5Try: Try.fromJson(json["try"]),
53935394 obj5Type: TypeClass.fromJson(json["type"]),
53945395 obj5Typedef: Typedef.fromJson(json["typedef"]),
5395- obj5Var: Var.fromJson(json["var"]),
5396+ primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]),
53965397 purpleTrue: TrueClass.fromJson(json["true"]),
53975398 self: Self.fromJson(json["Self"]),
53985399 sendable: Sendable.fromJson(json["Sendable"]),
5400+ serialDescriptor: SerialDescriptor.fromJson(json["SerialDescriptor"]),
5401+ serialName: SerialName.fromJson(json["SerialName"]),
5402+ serializable: Serializable.fromJson(json["Serializable"]),
53995403 serialize: Serialize.fromJson(json["serialize"]),
54005404 serializerProvider: SerializerProvider.fromJson(json["SerializerProvider"]),
54015405 short: Short.fromJson(json["short"]),
@@ -5437,16 +5441,13 @@ class Obj5 {
54375441 unowned: Unowned.fromJson(json["unowned"]),
54385442 unsafe: Unsafe.fromJson(json["unsafe"]),
54395443 unsigned: Unsigned.fromJson(json["unsigned"]),
5444+ useSerializers: UseSerializers.fromJson(json["UseSerializers"]),
54405445 ushort: Ushort.fromJson(json["ushort"]),
5441- using: Using.fromJson(json["using"]),
5442- utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
5443- utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
5444- uuid: Uuid.fromJson(json["UUID"]),
5445- virtual: Virtual.fromJson(json["virtual"]),
54465446 );
54475447
54485448 Map<String, dynamic> toJson() => {
54495449 "dummy": dummy,
5450+ "KSerializer": kSerializer.toJson(),
54505451 "self": obj5Self.toJson(),
54515452 "set": obj5Set.toJson(),
54525453 "static": obj5Static.toJson(),
@@ -5460,10 +5461,13 @@ class Obj5 {
54605461 "try": obj5Try.toJson(),
54615462 "type": obj5Type.toJson(),
54625463 "typedef": obj5Typedef.toJson(),
5463- "var": obj5Var.toJson(),
5464+ "PrimitiveKind": primitiveKind.toJson(),
54645465 "true": purpleTrue.toJson(),
54655466 "Self": self.toJson(),
54665467 "Sendable": sendable.toJson(),
5468+ "SerialDescriptor": serialDescriptor.toJson(),
5469+ "SerialName": serialName.toJson(),
5470+ "Serializable": serializable.toJson(),
54675471 "serialize": serialize.toJson(),
54685472 "SerializerProvider": serializerProvider.toJson(),
54695473 "short": short.toJson(),
@@ -5505,12 +5509,24 @@ class Obj5 {
55055509 "unowned": unowned.toJson(),
55065510 "unsafe": unsafe.toJson(),
55075511 "unsigned": unsigned.toJson(),
5512+ "UseSerializers": useSerializers.toJson(),
55085513 "ushort": ushort.toJson(),
5509- "using": using.toJson(),
5510- "Utf8JsonReader": utf8JsonReader.toJson(),
5511- "Utf8JsonWriter": utf8JsonWriter.toJson(),
5512- "UUID": uuid.toJson(),
5513- "virtual": virtual.toJson(),
5514+ };
5515+}
5516+
5517+class KSerializer {
5518+ final int kSerializer;
5519+
5520+ KSerializer({
5521+ required this.kSerializer,
5522+ });
5523+
5524+ factory KSerializer.fromJson(Map<String, dynamic> json) => KSerializer(
5525+ kSerializer: json["KSerializer"],
5526+ );
5527+
5528+ Map<String, dynamic> toJson() => {
5529+ "KSerializer": kSerializer,
55145530 };
55155531 }
55165532
@@ -5722,19 +5738,19 @@ class Typedef {
57225738 };
57235739 }
57245740
5725-class Var {
5726- final int varVar;
5741+class PrimitiveKind {
5742+ final int primitiveKind;
57275743
5728- Var({
5729- required this.varVar,
5744+ PrimitiveKind({
5745+ required this.primitiveKind,
57305746 });
57315747
5732- factory Var.fromJson(Map<String, dynamic> json) => Var(
5733- varVar: json["var"],
5748+ factory PrimitiveKind.fromJson(Map<String, dynamic> json) => PrimitiveKind(
5749+ primitiveKind: json["PrimitiveKind"],
57345750 );
57355751
57365752 Map<String, dynamic> toJson() => {
5737- "var": varVar,
5753+ "PrimitiveKind": primitiveKind,
57385754 };
57395755 }
57405756
@@ -5786,6 +5802,54 @@ class Sendable {
57865802 };
57875803 }
57885804
5805+class SerialDescriptor {
5806+ final int serialDescriptor;
5807+
5808+ SerialDescriptor({
5809+ required this.serialDescriptor,
5810+ });
5811+
5812+ factory SerialDescriptor.fromJson(Map<String, dynamic> json) => SerialDescriptor(
5813+ serialDescriptor: json["SerialDescriptor"],
5814+ );
5815+
5816+ Map<String, dynamic> toJson() => {
5817+ "SerialDescriptor": serialDescriptor,
5818+ };
5819+}
5820+
5821+class SerialName {
5822+ final int serialName;
5823+
5824+ SerialName({
5825+ required this.serialName,
5826+ });
5827+
5828+ factory SerialName.fromJson(Map<String, dynamic> json) => SerialName(
5829+ serialName: json["SerialName"],
5830+ );
5831+
5832+ Map<String, dynamic> toJson() => {
5833+ "SerialName": serialName,
5834+ };
5835+}
5836+
5837+class Serializable {
5838+ final int serializable;
5839+
5840+ Serializable({
5841+ required this.serializable,
5842+ });
5843+
5844+ factory Serializable.fromJson(Map<String, dynamic> json) => Serializable(
5845+ serializable: json["Serializable"],
5846+ );
5847+
5848+ Map<String, dynamic> toJson() => {
5849+ "Serializable": serializable,
5850+ };
5851+}
5852+
57895853 class Serialize {
57905854 final int serialize;
57915855
@@ -6442,108 +6506,50 @@ class Unsigned {
64426506 };
64436507 }
64446508
6445-class Ushort {
6446- final int ushort;
6447-
6448- Ushort({
6449- required this.ushort,
6450- });
6451-
6452- factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6453- ushort: json["ushort"],
6454- );
6455-
6456- Map<String, dynamic> toJson() => {
6457- "ushort": ushort,
6458- };
6459-}
6460-
6461-class Using {
6462- final int using;
6463-
6464- Using({
6465- required this.using,
6466- });
6467-
6468- factory Using.fromJson(Map<String, dynamic> json) => Using(
6469- using: json["using"],
6470- );
6471-
6472- Map<String, dynamic> toJson() => {
6473- "using": using,
6474- };
6475-}
6476-
6477-class Utf8JsonReader {
6478- final int utf8JsonReader;
6479-
6480- Utf8JsonReader({
6481- required this.utf8JsonReader,
6482- });
6483-
6484- factory Utf8JsonReader.fromJson(Map<String, dynamic> json) => Utf8JsonReader(
6485- utf8JsonReader: json["Utf8JsonReader"],
6486- );
6487-
6488- Map<String, dynamic> toJson() => {
6489- "Utf8JsonReader": utf8JsonReader,
6490- };
6491-}
6492-
6493-class Utf8JsonWriter {
6494- final int utf8JsonWriter;
6509+class UseSerializers {
6510+ final int useSerializers;
64956511
6496- Utf8JsonWriter({
6497- required this.utf8JsonWriter,
6512+ UseSerializers({
6513+ required this.useSerializers,
64986514 });
64996515
6500- factory Utf8JsonWriter.fromJson(Map<String, dynamic> json) => Utf8JsonWriter(
6501- utf8JsonWriter: json["Utf8JsonWriter"],
6502- );
6503-
6504- Map<String, dynamic> toJson() => {
6505- "Utf8JsonWriter": utf8JsonWriter,
6506- };
6507-}
6508-
6509-class Uuid {
6510- final int uuid;
6511-
6512- Uuid({
6513- required this.uuid,
6514- });
6515-
6516- factory Uuid.fromJson(Map<String, dynamic> json) => Uuid(
6517- uuid: json["UUID"],
6516+ factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers(
6517+ useSerializers: json["UseSerializers"],
65186518 );
65196519
65206520 Map<String, dynamic> toJson() => {
6521- "UUID": uuid,
6521+ "UseSerializers": useSerializers,
65226522 };
65236523 }
65246524
6525-class Virtual {
6526- final int virtual;
6525+class Ushort {
6526+ final int ushort;
65276527
6528- Virtual({
6529- required this.virtual,
6528+ Ushort({
6529+ required this.ushort,
65306530 });
65316531
6532- factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6533- virtual: json["virtual"],
6532+ factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6533+ ushort: json["ushort"],
65346534 );
65356535
65366536 Map<String, dynamic> toJson() => {
6537- "virtual": virtual,
6537+ "ushort": ushort,
65386538 };
65396539 }
65406540
65416541 class Obj6 {
65426542 final int dummy;
6543+ final Var obj6Var;
65436544 final Void obj6Void;
65446545 final While obj6While;
65456546 final With obj6With;
65466547 final Yield obj6Yield;
6548+ final Using using;
6549+ final Utf8JsonReader utf8JsonReader;
6550+ final Utf8JsonWriter utf8JsonWriter;
6551+ final Uuid uuid;
6552+ final Virtual virtual;
65476553 final Volatile volatile;
65486554 final WcharT wcharT;
65496555 final Weak weak;
@@ -6555,10 +6561,16 @@ class Obj6 {
65556561
65566562 Obj6({
65576563 required this.dummy,
6564+ required this.obj6Var,
65586565 required this.obj6Void,
65596566 required this.obj6While,
65606567 required this.obj6With,
65616568 required this.obj6Yield,
6569+ required this.using,
6570+ required this.utf8JsonReader,
6571+ required this.utf8JsonWriter,
6572+ required this.uuid,
6573+ required this.virtual,
65626574 required this.volatile,
65636575 required this.wcharT,
65646576 required this.weak,
@@ -6571,10 +6583,16 @@ class Obj6 {
65716583
65726584 factory Obj6.fromJson(Map<String, dynamic> json) => Obj6(
65736585 dummy: json["dummy"],
6586+ obj6Var: Var.fromJson(json["var"]),
65746587 obj6Void: Void.fromJson(json["void"]),
65756588 obj6While: While.fromJson(json["while"]),
65766589 obj6With: With.fromJson(json["with"]),
65776590 obj6Yield: Yield.fromJson(json["yield"]),
6591+ using: Using.fromJson(json["using"]),
6592+ utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
6593+ utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
6594+ uuid: Uuid.fromJson(json["UUID"]),
6595+ virtual: Virtual.fromJson(json["virtual"]),
65786596 volatile: Volatile.fromJson(json["volatile"]),
65796597 wcharT: WcharT.fromJson(json["wchar_t"]),
65806598 weak: Weak.fromJson(json["weak"]),
@@ -6587,10 +6605,16 @@ class Obj6 {
65876605
65886606 Map<String, dynamic> toJson() => {
65896607 "dummy": dummy,
6608+ "var": obj6Var.toJson(),
65906609 "void": obj6Void.toJson(),
65916610 "while": obj6While.toJson(),
65926611 "with": obj6With.toJson(),
65936612 "yield": obj6Yield.toJson(),
6613+ "using": using.toJson(),
6614+ "Utf8JsonReader": utf8JsonReader.toJson(),
6615+ "Utf8JsonWriter": utf8JsonWriter.toJson(),
6616+ "UUID": uuid.toJson(),
6617+ "virtual": virtual.toJson(),
65946618 "volatile": volatile.toJson(),
65956619 "wchar_t": wcharT.toJson(),
65966620 "weak": weak.toJson(),
@@ -6602,6 +6626,22 @@ class Obj6 {
66026626 };
66036627 }
66046628
6629+class Var {
6630+ final int varVar;
6631+
6632+ Var({
6633+ required this.varVar,
6634+ });
6635+
6636+ factory Var.fromJson(Map<String, dynamic> json) => Var(
6637+ varVar: json["var"],
6638+ );
6639+
6640+ Map<String, dynamic> toJson() => {
6641+ "var": varVar,
6642+ };
6643+}
6644+
66056645 class Void {
66066646 final int voidVoid;
66076647
@@ -6666,6 +6706,86 @@ class Yield {
66666706 };
66676707 }
66686708
6709+class Using {
6710+ final int using;
6711+
6712+ Using({
6713+ required this.using,
6714+ });
6715+
6716+ factory Using.fromJson(Map<String, dynamic> json) => Using(
6717+ using: json["using"],
6718+ );
6719+
6720+ Map<String, dynamic> toJson() => {
6721+ "using": using,
6722+ };
6723+}
6724+
6725+class Utf8JsonReader {
6726+ final int utf8JsonReader;
6727+
6728+ Utf8JsonReader({
6729+ required this.utf8JsonReader,
6730+ });
6731+
6732+ factory Utf8JsonReader.fromJson(Map<String, dynamic> json) => Utf8JsonReader(
6733+ utf8JsonReader: json["Utf8JsonReader"],
6734+ );
6735+
6736+ Map<String, dynamic> toJson() => {
6737+ "Utf8JsonReader": utf8JsonReader,
6738+ };
6739+}
6740+
6741+class Utf8JsonWriter {
6742+ final int utf8JsonWriter;
6743+
6744+ Utf8JsonWriter({
6745+ required this.utf8JsonWriter,
6746+ });
6747+
6748+ factory Utf8JsonWriter.fromJson(Map<String, dynamic> json) => Utf8JsonWriter(
6749+ utf8JsonWriter: json["Utf8JsonWriter"],
6750+ );
6751+
6752+ Map<String, dynamic> toJson() => {
6753+ "Utf8JsonWriter": utf8JsonWriter,
6754+ };
6755+}
6756+
6757+class Uuid {
6758+ final int uuid;
6759+
6760+ Uuid({
6761+ required this.uuid,
6762+ });
6763+
6764+ factory Uuid.fromJson(Map<String, dynamic> json) => Uuid(
6765+ uuid: json["UUID"],
6766+ );
6767+
6768+ Map<String, dynamic> toJson() => {
6769+ "UUID": uuid,
6770+ };
6771+}
6772+
6773+class Virtual {
6774+ final int virtual;
6775+
6776+ Virtual({
6777+ required this.virtual,
6778+ });
6779+
6780+ factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6781+ virtual: json["virtual"],
6782+ );
6783+
6784+ Map<String, dynamic> toJson() => {
6785+ "virtual": virtual,
6786+ };
6787+}
6788+
66696789 class Volatile {
66706790 final int volatile;
Melixirdefault / QuickType.ex+527 −275
@@ -10959,6 +10959,45 @@ defmodule Obj4 do
1095910959 end
1096010960 end
1096110961
10962+defmodule KSerializer do
10963+ @enforce_keys [:k_serializer]
10964+ defstruct [:k_serializer]
10965+
10966+ @type t :: %__MODULE__{
10967+ k_serializer: integer()
10968+ }
10969+
10970+ def decode_k_serializer(value) when is_integer(value), do: value
10971+ def decode_k_serializer(_), do: {:error, "Unexpected type when decoding KSerializer.k_serializer"}
10972+
10973+ def encode_k_serializer(value) when is_integer(value), do: value
10974+ def encode_k_serializer(_), do: {:error, "Unexpected type when encoding KSerializer.k_serializer"}
10975+
10976+ def from_map(m) do
10977+ %KSerializer{
10978+ k_serializer: decode_k_serializer(m["KSerializer"]),
10979+ }
10980+ end
10981+
10982+ def from_json(json) do
10983+ json
10984+ |> Jason.decode!()
10985+ |> from_map()
10986+ end
10987+
10988+ def to_map(struct) do
10989+ %{
10990+ "KSerializer" => struct.k_serializer,
10991+ }
10992+ end
10993+
10994+ def to_json(struct) do
10995+ struct
10996+ |> to_map()
10997+ |> Jason.encode!()
10998+ end
10999+end
11000+
1096211001 defmodule SelfClass do
1096311002 @enforce_keys [:self]
1096411003 defstruct [:self]
@@ -11076,6 +11115,45 @@ defmodule TypeClass do
1107611115 end
1107711116 end
1107811117
11118+defmodule PrimitiveKind do
11119+ @enforce_keys [:primitive_kind]
11120+ defstruct [:primitive_kind]
11121+
11122+ @type t :: %__MODULE__{
11123+ primitive_kind: integer()
11124+ }
11125+
11126+ def decode_primitive_kind(value) when is_integer(value), do: value
11127+ def decode_primitive_kind(_), do: {:error, "Unexpected type when decoding PrimitiveKind.primitive_kind"}
11128+
11129+ def encode_primitive_kind(value) when is_integer(value), do: value
11130+ def encode_primitive_kind(_), do: {:error, "Unexpected type when encoding PrimitiveKind.primitive_kind"}
11131+
11132+ def from_map(m) do
11133+ %PrimitiveKind{
11134+ primitive_kind: decode_primitive_kind(m["PrimitiveKind"]),
11135+ }
11136+ end
11137+
11138+ def from_json(json) do
11139+ json
11140+ |> Jason.decode!()
11141+ |> from_map()
11142+ end
11143+
11144+ def to_map(struct) do
11145+ %{
11146+ "PrimitiveKind" => struct.primitive_kind,
11147+ }
11148+ end
11149+
11150+ def to_json(struct) do
11151+ struct
11152+ |> to_map()
11153+ |> Jason.encode!()
11154+ end
11155+end
11156+
1107911157 defmodule Self do
1108011158 @enforce_keys [:self]
1108111159 defstruct [:self]
@@ -11154,6 +11232,123 @@ defmodule Sendable do
1115411232 end
1115511233 end
1115611234
11235+defmodule SerialDescriptor do
11236+ @enforce_keys [:serial_descriptor]
11237+ defstruct [:serial_descriptor]
11238+
11239+ @type t :: %__MODULE__{
11240+ serial_descriptor: integer()
11241+ }
11242+
11243+ def decode_serial_descriptor(value) when is_integer(value), do: value
11244+ def decode_serial_descriptor(_), do: {:error, "Unexpected type when decoding SerialDescriptor.serial_descriptor"}
11245+
11246+ def encode_serial_descriptor(value) when is_integer(value), do: value
11247+ def encode_serial_descriptor(_), do: {:error, "Unexpected type when encoding SerialDescriptor.serial_descriptor"}
11248+
11249+ def from_map(m) do
11250+ %SerialDescriptor{
11251+ serial_descriptor: decode_serial_descriptor(m["SerialDescriptor"]),
11252+ }
11253+ end
11254+
11255+ def from_json(json) do
11256+ json
11257+ |> Jason.decode!()
11258+ |> from_map()
11259+ end
11260+
11261+ def to_map(struct) do
11262+ %{
11263+ "SerialDescriptor" => struct.serial_descriptor,
11264+ }
11265+ end
11266+
11267+ def to_json(struct) do
11268+ struct
11269+ |> to_map()
11270+ |> Jason.encode!()
11271+ end
11272+end
11273+
11274+defmodule SerialName do
11275+ @enforce_keys [:serial_name]
11276+ defstruct [:serial_name]
11277+
11278+ @type t :: %__MODULE__{
11279+ serial_name: integer()
11280+ }
11281+
11282+ def decode_serial_name(value) when is_integer(value), do: value
11283+ def decode_serial_name(_), do: {:error, "Unexpected type when decoding SerialName.serial_name"}
11284+
11285+ def encode_serial_name(value) when is_integer(value), do: value
11286+ def encode_serial_name(_), do: {:error, "Unexpected type when encoding SerialName.serial_name"}
11287+
11288+ def from_map(m) do
11289+ %SerialName{
11290+ serial_name: decode_serial_name(m["SerialName"]),
11291+ }
11292+ end
11293+
11294+ def from_json(json) do
11295+ json
11296+ |> Jason.decode!()
11297+ |> from_map()
11298+ end
11299+
11300+ def to_map(struct) do
11301+ %{
11302+ "SerialName" => struct.serial_name,
11303+ }
11304+ end
11305+
11306+ def to_json(struct) do
11307+ struct
11308+ |> to_map()
11309+ |> Jason.encode!()
11310+ end
11311+end
11312+
11313+defmodule Serializable do
11314+ @enforce_keys [:serializable]
11315+ defstruct [:serializable]
11316+
11317+ @type t :: %__MODULE__{
11318+ serializable: integer()
11319+ }
11320+
11321+ def decode_serializable(value) when is_integer(value), do: value
11322+ def decode_serializable(_), do: {:error, "Unexpected type when decoding Serializable.serializable"}
11323+
11324+ def encode_serializable(value) when is_integer(value), do: value
11325+ def encode_serializable(_), do: {:error, "Unexpected type when encoding Serializable.serializable"}
11326+
11327+ def from_map(m) do
11328+ %Serializable{
11329+ serializable: decode_serializable(m["Serializable"]),
11330+ }
11331+ end
11332+
11333+ def from_json(json) do
11334+ json
11335+ |> Jason.decode!()
11336+ |> from_map()
11337+ end
11338+
11339+ def to_map(struct) do
11340+ %{
11341+ "Serializable" => struct.serializable,
11342+ }
11343+ end
11344+
11345+ def to_json(struct) do
11346+ struct
11347+ |> to_map()
11348+ |> Jason.encode!()
11349+ end
11350+end
11351+
1115711352 defmodule Serialize do
1115811353 @enforce_keys [:serialize]
1115911354 defstruct [:serialize]
@@ -13182,23 +13377,23 @@ defmodule Unsigned do
1318213377 end
1318313378 end
1318413379
13185-defmodule Ushort do
13186- @enforce_keys [:ushort]
13187- defstruct [:ushort]
13380+defmodule UseSerializers do
13381+ @enforce_keys [:use_serializers]
13382+ defstruct [:use_serializers]
1318813383
1318913384 @type t :: %__MODULE__{
13190- ushort: integer()
13385+ use_serializers: integer()
1319113386 }
1319213387
13193- def decode_ushort(value) when is_integer(value), do: value
13194- def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13388+ def decode_use_serializers(value) when is_integer(value), do: value
13389+ def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"}
1319513390
13196- def encode_ushort(value) when is_integer(value), do: value
13197- def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13391+ def encode_use_serializers(value) when is_integer(value), do: value
13392+ def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"}
1319813393
1319913394 def from_map(m) do
13200- %Ushort{
13201- ushort: decode_ushort(m["ushort"]),
13395+ %UseSerializers{
13396+ use_serializers: decode_use_serializers(m["UseSerializers"]),
1320213397 }
1320313398 end
1320413399
@@ -13210,7 +13405,7 @@ defmodule Ushort do
1321013405
1321113406 def to_map(struct) do
1321213407 %{
13213- "ushort" => struct.ushort,
13408+ "UseSerializers" => struct.use_serializers,
1321413409 }
1321513410 end
1321613411
@@ -13221,23 +13416,23 @@ defmodule Ushort do
1322113416 end
1322213417 end
1322313418
13224-defmodule Using do
13225- @enforce_keys [:using]
13226- defstruct [:using]
13419+defmodule Ushort do
13420+ @enforce_keys [:ushort]
13421+ defstruct [:ushort]
1322713422
1322813423 @type t :: %__MODULE__{
13229- using: integer()
13424+ ushort: integer()
1323013425 }
1323113426
13232- def decode_using(value) when is_integer(value), do: value
13233- def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"}
13427+ def decode_ushort(value) when is_integer(value), do: value
13428+ def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
1323413429
13235- def encode_using(value) when is_integer(value), do: value
13236- def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"}
13430+ def encode_ushort(value) when is_integer(value), do: value
13431+ def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
1323713432
1323813433 def from_map(m) do
13239- %Using{
13240- using: decode_using(m["using"]),
13434+ %Ushort{
13435+ ushort: decode_ushort(m["ushort"]),
1324113436 }
1324213437 end
1324313438
@@ -13249,7 +13444,7 @@ defmodule Using do
1324913444
1325013445 def to_map(struct) do
1325113446 %{
13252- "using" => struct.using,
13447+ "ushort" => struct.ushort,
1325313448 }
1325413449 end
1325513450
@@ -13260,33 +13455,303 @@ defmodule Using do
1326013455 end
1326113456 end
1326213457
13263-defmodule Utf8JSONReader do
13264- @enforce_keys [:utf8_json_reader]
13265- defstruct [:utf8_json_reader]
13458+defmodule Obj5 do
13459+ @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :use_serializers, :ushort]
13460+ defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :use_serializers, :ushort]
1326613461
1326713462 @type t :: %__MODULE__{
13268- utf8_json_reader: integer()
13463+ dummy: integer(),
13464+ k_serializer: KSerializer.t(),
13465+ obj5_self: SelfClass.t(),
13466+ obj5_true: TrueClass.t(),
13467+ obj5_type: TypeClass.t(),
13468+ primitive_kind: PrimitiveKind.t(),
13469+ self: Self.t(),
13470+ sendable: Sendable.t(),
13471+ serial_descriptor: SerialDescriptor.t(),
13472+ serial_name: SerialName.t(),
13473+ serializable: Serializable.t(),
13474+ serialize: Serialize.t(),
13475+ serializer_provider: SerializerProvider.t(),
13476+ set: SetClass.t(),
13477+ short: Short.t(),
13478+ signed: Signed.t(),
13479+ simple_module: SimpleModule.t(),
13480+ sizeof: Sizeof.t(),
13481+ stackalloc: Stackalloc.t(),
13482+ standards: Standards.t(),
13483+ static: Static.t(),
13484+ static_assert: StaticAssert.t(),
13485+ static_cast: StaticCast.t(),
13486+ std_deserializer: StdDeserializer.t(),
13487+ std_serializer: StdSerializer.t(),
13488+ strictfp: Strictfp.t(),
13489+ string: StringClass.t(),
13490+ struct: Struct.t(),
13491+ subscript: Subscript.t(),
13492+ super: Super.t(),
13493+ switch: Switch.t(),
13494+ symbol: Symbol.t(),
13495+ synchronized: Synchronized.t(),
13496+ system: SystemClass.t(),
13497+ template: Template.t(),
13498+ then: Then.t(),
13499+ this: This.t(),
13500+ thread_local: ThreadLocal.t(),
13501+ throw: Throw.t(),
13502+ throws: Throws.t(),
13503+ time_only: TimeOnly.t(),
13504+ time_only_converter: TimeOnlyConverter.t(),
13505+ time_zone: TimeZone.t(),
13506+ to_json: ToJSON.t(),
13507+ to_string: ToString.t(),
13508+ top_level: TopLevelClass.t(),
13509+ transient: Transient.t(),
13510+ true_1: Obj5True.t(),
13511+ try: Try.t(),
13512+ type: Type.t(),
13513+ typealias: Typealias.t(),
13514+ typedef: Typedef.t(),
13515+ typeid: Typeid.t(),
13516+ typename: Typename.t(),
13517+ typeof: Typeof.t(),
13518+ uint: Uint.t(),
13519+ ulong: Ulong.t(),
13520+ unchecked: Unchecked.t(),
13521+ undefined: Undefined.t(),
13522+ union: Union.t(),
13523+ unowned: Unowned.t(),
13524+ unsafe: Unsafe.t(),
13525+ unsigned: Unsigned.t(),
13526+ use_serializers: UseSerializers.t(),
13527+ ushort: Ushort.t()
1326913528 }
1327013529
13271- def decode_utf8_json_reader(value) when is_integer(value), do: value
13272- def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"}
13530+ def decode_dummy(value) when is_integer(value), do: value
13531+ def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj5.dummy"}
1327313532
13274- def encode_utf8_json_reader(value) when is_integer(value), do: value
13275- def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"}
13533+ def encode_dummy(value) when is_integer(value), do: value
13534+ def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj5.dummy"}
1327613535
1327713536 def from_map(m) do
13278- %Utf8JSONReader{
13279- utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]),
13280- }
13281- end
13282-
13283- def from_json(json) do
13284- json
13285- |> Jason.decode!()
13286- |> from_map()
13287- end
13288-
13289- def to_map(struct) do
13537+ %Obj5{
13538+ dummy: decode_dummy(m["dummy"]),
13539+ k_serializer: KSerializer.from_map(m["KSerializer"]),
13540+ obj5_self: SelfClass.from_map(m["self"]),
13541+ obj5_true: TrueClass.from_map(m["True"]),
13542+ obj5_type: TypeClass.from_map(m["type"]),
13543+ primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]),
13544+ self: Self.from_map(m["Self"]),
13545+ sendable: Sendable.from_map(m["Sendable"]),
13546+ serial_descriptor: SerialDescriptor.from_map(m["SerialDescriptor"]),
13547+ serial_name: SerialName.from_map(m["SerialName"]),
13548+ serializable: Serializable.from_map(m["Serializable"]),
13549+ serialize: Serialize.from_map(m["serialize"]),
13550+ serializer_provider: SerializerProvider.from_map(m["SerializerProvider"]),
13551+ set: SetClass.from_map(m["set"]),
13552+ short: Short.from_map(m["short"]),
13553+ signed: Signed.from_map(m["signed"]),
13554+ simple_module: SimpleModule.from_map(m["SimpleModule"]),
13555+ sizeof: Sizeof.from_map(m["sizeof"]),
13556+ stackalloc: Stackalloc.from_map(m["stackalloc"]),
13557+ standards: Standards.from_map(m["Standards"]),
13558+ static: Static.from_map(m["static"]),
13559+ static_assert: StaticAssert.from_map(m["static_assert"]),
13560+ static_cast: StaticCast.from_map(m["static_cast"]),
13561+ std_deserializer: StdDeserializer.from_map(m["StdDeserializer"]),
13562+ std_serializer: StdSerializer.from_map(m["StdSerializer"]),
13563+ strictfp: Strictfp.from_map(m["strictfp"]),
13564+ string: StringClass.from_map(m["string"]),
13565+ struct: Struct.from_map(m["struct"]),
13566+ subscript: Subscript.from_map(m["subscript"]),
13567+ super: Super.from_map(m["super"]),
13568+ switch: Switch.from_map(m["switch"]),
13569+ symbol: Symbol.from_map(m["symbol"]),
13570+ synchronized: Synchronized.from_map(m["synchronized"]),
13571+ system: SystemClass.from_map(m["system"]),
13572+ template: Template.from_map(m["template"]),
13573+ then: Then.from_map(m["then"]),
13574+ this: This.from_map(m["this"]),
13575+ thread_local: ThreadLocal.from_map(m["thread_local"]),
13576+ throw: Throw.from_map(m["throw"]),
13577+ throws: Throws.from_map(m["throws"]),
13578+ time_only: TimeOnly.from_map(m["TimeOnly"]),
13579+ time_only_converter: TimeOnlyConverter.from_map(m["TimeOnlyConverter"]),
13580+ time_zone: TimeZone.from_map(m["TimeZone"]),
13581+ to_json: ToJSON.from_map(m["to_json"]),
13582+ to_string: ToString.from_map(m["toString"]),
13583+ top_level: TopLevelClass.from_map(m["top_level"]),
13584+ transient: Transient.from_map(m["transient"]),
13585+ true_1: Obj5True.from_map(m["true"]),
13586+ try: Try.from_map(m["try"]),
13587+ type: Type.from_map(m["Type"]),
13588+ typealias: Typealias.from_map(m["typealias"]),
13589+ typedef: Typedef.from_map(m["typedef"]),
13590+ typeid: Typeid.from_map(m["typeid"]),
13591+ typename: Typename.from_map(m["typename"]),
13592+ typeof: Typeof.from_map(m["typeof"]),
13593+ uint: Uint.from_map(m["uint"]),
13594+ ulong: Ulong.from_map(m["ulong"]),
13595+ unchecked: Unchecked.from_map(m["unchecked"]),
13596+ undefined: Undefined.from_map(m["undefined"]),
13597+ union: Union.from_map(m["union"]),
13598+ unowned: Unowned.from_map(m["unowned"]),
13599+ unsafe: Unsafe.from_map(m["unsafe"]),
13600+ unsigned: Unsigned.from_map(m["unsigned"]),
13601+ use_serializers: UseSerializers.from_map(m["UseSerializers"]),
13602+ ushort: Ushort.from_map(m["ushort"]),
13603+ }
13604+ end
13605+
13606+ def from_json(json) do
13607+ json
13608+ |> Jason.decode!()
13609+ |> from_map()
13610+ end
13611+
13612+ def to_map(struct) do
13613+ %{
13614+ "dummy" => struct.dummy,
13615+ "KSerializer" => KSerializer.to_map(struct.k_serializer),
13616+ "self" => SelfClass.to_map(struct.obj5_self),
13617+ "True" => TrueClass.to_map(struct.obj5_true),
13618+ "type" => TypeClass.to_map(struct.obj5_type),
13619+ "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind),
13620+ "Self" => Self.to_map(struct.self),
13621+ "Sendable" => Sendable.to_map(struct.sendable),
13622+ "SerialDescriptor" => SerialDescriptor.to_map(struct.serial_descriptor),
13623+ "SerialName" => SerialName.to_map(struct.serial_name),
13624+ "Serializable" => Serializable.to_map(struct.serializable),
13625+ "serialize" => Serialize.to_map(struct.serialize),
13626+ "SerializerProvider" => SerializerProvider.to_map(struct.serializer_provider),
13627+ "set" => SetClass.to_map(struct.set),
13628+ "short" => Short.to_map(struct.short),
13629+ "signed" => Signed.to_map(struct.signed),
13630+ "SimpleModule" => SimpleModule.to_map(struct.simple_module),
13631+ "sizeof" => Sizeof.to_map(struct.sizeof),
13632+ "stackalloc" => Stackalloc.to_map(struct.stackalloc),
13633+ "Standards" => Standards.to_map(struct.standards),
13634+ "static" => Static.to_map(struct.static),
13635+ "static_assert" => StaticAssert.to_map(struct.static_assert),
13636+ "static_cast" => StaticCast.to_map(struct.static_cast),
13637+ "StdDeserializer" => StdDeserializer.to_map(struct.std_deserializer),
13638+ "StdSerializer" => StdSerializer.to_map(struct.std_serializer),
13639+ "strictfp" => Strictfp.to_map(struct.strictfp),
13640+ "string" => StringClass.to_map(struct.string),
13641+ "struct" => Struct.to_map(struct.struct),
13642+ "subscript" => Subscript.to_map(struct.subscript),
13643+ "super" => Super.to_map(struct.super),
13644+ "switch" => Switch.to_map(struct.switch),
13645+ "symbol" => Symbol.to_map(struct.symbol),
13646+ "synchronized" => Synchronized.to_map(struct.synchronized),
13647+ "system" => SystemClass.to_map(struct.system),
13648+ "template" => Template.to_map(struct.template),
13649+ "then" => Then.to_map(struct.then),
13650+ "this" => This.to_map(struct.this),
13651+ "thread_local" => ThreadLocal.to_map(struct.thread_local),
13652+ "throw" => Throw.to_map(struct.throw),
13653+ "throws" => Throws.to_map(struct.throws),
13654+ "TimeOnly" => TimeOnly.to_map(struct.time_only),
13655+ "TimeOnlyConverter" => TimeOnlyConverter.to_map(struct.time_only_converter),
13656+ "TimeZone" => TimeZone.to_map(struct.time_zone),
13657+ "to_json" => ToJSON.to_map(struct.to_json),
13658+ "toString" => ToString.to_map(struct.to_string),
13659+ "top_level" => TopLevelClass.to_map(struct.top_level),
13660+ "transient" => Transient.to_map(struct.transient),
13661+ "true" => Obj5True.to_map(struct.true_1),
13662+ "try" => Try.to_map(struct.try),
13663+ "Type" => Type.to_map(struct.type),
13664+ "typealias" => Typealias.to_map(struct.typealias),
13665+ "typedef" => Typedef.to_map(struct.typedef),
13666+ "typeid" => Typeid.to_map(struct.typeid),
13667+ "typename" => Typename.to_map(struct.typename),
13668+ "typeof" => Typeof.to_map(struct.typeof),
13669+ "uint" => Uint.to_map(struct.uint),
13670+ "ulong" => Ulong.to_map(struct.ulong),
13671+ "unchecked" => Unchecked.to_map(struct.unchecked),
13672+ "undefined" => Undefined.to_map(struct.undefined),
13673+ "union" => Union.to_map(struct.union),
13674+ "unowned" => Unowned.to_map(struct.unowned),
13675+ "unsafe" => Unsafe.to_map(struct.unsafe),
13676+ "unsigned" => Unsigned.to_map(struct.unsigned),
13677+ "UseSerializers" => UseSerializers.to_map(struct.use_serializers),
13678+ "ushort" => Ushort.to_map(struct.ushort),
13679+ }
13680+ end
13681+
13682+ def to_json(struct) do
13683+ struct
13684+ |> to_map()
13685+ |> Jason.encode!()
13686+ end
13687+end
13688+
13689+defmodule Using do
13690+ @enforce_keys [:using]
13691+ defstruct [:using]
13692+
13693+ @type t :: %__MODULE__{
13694+ using: integer()
13695+ }
13696+
13697+ def decode_using(value) when is_integer(value), do: value
13698+ def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"}
13699+
13700+ def encode_using(value) when is_integer(value), do: value
13701+ def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"}
13702+
13703+ def from_map(m) do
13704+ %Using{
13705+ using: decode_using(m["using"]),
13706+ }
13707+ end
13708+
13709+ def from_json(json) do
13710+ json
13711+ |> Jason.decode!()
13712+ |> from_map()
13713+ end
13714+
13715+ def to_map(struct) do
13716+ %{
13717+ "using" => struct.using,
13718+ }
13719+ end
13720+
13721+ def to_json(struct) do
13722+ struct
13723+ |> to_map()
13724+ |> Jason.encode!()
13725+ end
13726+end
13727+
13728+defmodule Utf8JSONReader do
13729+ @enforce_keys [:utf8_json_reader]
13730+ defstruct [:utf8_json_reader]
13731+
13732+ @type t :: %__MODULE__{
13733+ utf8_json_reader: integer()
13734+ }
13735+
13736+ def decode_utf8_json_reader(value) when is_integer(value), do: value
13737+ def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"}
13738+
13739+ def encode_utf8_json_reader(value) when is_integer(value), do: value
13740+ def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"}
13741+
13742+ def from_map(m) do
13743+ %Utf8JSONReader{
13744+ utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]),
13745+ }
13746+ end
13747+
13748+ def from_json(json) do
13749+ json
13750+ |> Jason.decode!()
13751+ |> from_map()
13752+ end
13753+
13754+ def to_map(struct) do
1329013755 %{
1329113756 "Utf8JsonReader" => struct.utf8_json_reader,
1329213757 }
@@ -13455,237 +13920,6 @@ defmodule Virtual do
1345513920 end
1345613921 end
1345713922
13458-defmodule Obj5 do
13459- @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13460- defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13461-
13462- @type t :: %__MODULE__{
13463- dummy: integer(),
13464- obj5_self: SelfClass.t(),
13465- obj5_true: TrueClass.t(),
13466- obj5_type: TypeClass.t(),
13467- self: Self.t(),
13468- sendable: Sendable.t(),
13469- serialize: Serialize.t(),
13470- serializer_provider: SerializerProvider.t(),
13471- set: SetClass.t(),
13472- short: Short.t(),
13473- signed: Signed.t(),
13474- simple_module: SimpleModule.t(),
13475- sizeof: Sizeof.t(),
13476- stackalloc: Stackalloc.t(),
13477- standards: Standards.t(),
13478- static: Static.t(),
13479- static_assert: StaticAssert.t(),
13480- static_cast: StaticCast.t(),
13481- std_deserializer: StdDeserializer.t(),
13482- std_serializer: StdSerializer.t(),
13483- strictfp: Strictfp.t(),
13484- string: StringClass.t(),
13485- struct: Struct.t(),
13486- subscript: Subscript.t(),
13487- super: Super.t(),
13488- switch: Switch.t(),
13489- symbol: Symbol.t(),
13490- synchronized: Synchronized.t(),
13491- system: SystemClass.t(),
13492- template: Template.t(),
13493- then: Then.t(),
13494- this: This.t(),
13495- thread_local: ThreadLocal.t(),
13496- throw: Throw.t(),
13497- throws: Throws.t(),
13498- time_only: TimeOnly.t(),
13499- time_only_converter: TimeOnlyConverter.t(),
13500- time_zone: TimeZone.t(),
13501- to_json: ToJSON.t(),
13502- to_string: ToString.t(),
13503- top_level: TopLevelClass.t(),
13504- transient: Transient.t(),
13505- true_1: Obj5True.t(),
13506- try: Try.t(),
13507- type: Type.t(),
13508- typealias: Typealias.t(),
13509- typedef: Typedef.t(),
13510- typeid: Typeid.t(),
13511- typename: Typename.t(),
13512- typeof: Typeof.t(),
13513- uint: Uint.t(),
13514- ulong: Ulong.t(),
13515- unchecked: Unchecked.t(),
13516- undefined: Undefined.t(),
13517- union: Union.t(),
13518- unowned: Unowned.t(),
13519- unsafe: Unsafe.t(),
13520- unsigned: Unsigned.t(),
13521- ushort: Ushort.t(),
13522- using: Using.t(),
13523- utf8_json_reader: Utf8JSONReader.t(),
13524- utf8_json_writer: Utf8JSONWriter.t(),
13525- uuid: UUID.t(),
13526- var: Var.t(),
13527- virtual: Virtual.t()
13528- }
13529-
13530- def decode_dummy(value) when is_integer(value), do: value
13531- def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj5.dummy"}
13532-
13533- def encode_dummy(value) when is_integer(value), do: value
13534- def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj5.dummy"}
13535-
13536- def from_map(m) do
13537- %Obj5{
13538- dummy: decode_dummy(m["dummy"]),
13539- obj5_self: SelfClass.from_map(m["self"]),
13540- obj5_true: TrueClass.from_map(m["True"]),
13541- obj5_type: TypeClass.from_map(m["type"]),
13542- self: Self.from_map(m["Self"]),
13543- sendable: Sendable.from_map(m["Sendable"]),
13544- serialize: Serialize.from_map(m["serialize"]),
13545- serializer_provider: SerializerProvider.from_map(m["SerializerProvider"]),
13546- set: SetClass.from_map(m["set"]),
13547- short: Short.from_map(m["short"]),
13548- signed: Signed.from_map(m["signed"]),
13549- simple_module: SimpleModule.from_map(m["SimpleModule"]),
13550- sizeof: Sizeof.from_map(m["sizeof"]),
13551- stackalloc: Stackalloc.from_map(m["stackalloc"]),
13552- standards: Standards.from_map(m["Standards"]),
13553- static: Static.from_map(m["static"]),
13554- static_assert: StaticAssert.from_map(m["static_assert"]),
13555- static_cast: StaticCast.from_map(m["static_cast"]),
13556- std_deserializer: StdDeserializer.from_map(m["StdDeserializer"]),
13557- std_serializer: StdSerializer.from_map(m["StdSerializer"]),
13558- strictfp: Strictfp.from_map(m["strictfp"]),
13559- string: StringClass.from_map(m["string"]),
13560- struct: Struct.from_map(m["struct"]),
13561- subscript: Subscript.from_map(m["subscript"]),
13562- super: Super.from_map(m["super"]),
13563- switch: Switch.from_map(m["switch"]),
13564- symbol: Symbol.from_map(m["symbol"]),
13565- synchronized: Synchronized.from_map(m["synchronized"]),
13566- system: SystemClass.from_map(m["system"]),
13567- template: Template.from_map(m["template"]),
13568- then: Then.from_map(m["then"]),
13569- this: This.from_map(m["this"]),
13570- thread_local: ThreadLocal.from_map(m["thread_local"]),
13571- throw: Throw.from_map(m["throw"]),
13572- throws: Throws.from_map(m["throws"]),
13573- time_only: TimeOnly.from_map(m["TimeOnly"]),
13574- time_only_converter: TimeOnlyConverter.from_map(m["TimeOnlyConverter"]),
13575- time_zone: TimeZone.from_map(m["TimeZone"]),
13576- to_json: ToJSON.from_map(m["to_json"]),
13577- to_string: ToString.from_map(m["toString"]),
13578- top_level: TopLevelClass.from_map(m["top_level"]),
13579- transient: Transient.from_map(m["transient"]),
13580- true_1: Obj5True.from_map(m["true"]),
13581- try: Try.from_map(m["try"]),
13582- type: Type.from_map(m["Type"]),
13583- typealias: Typealias.from_map(m["typealias"]),
13584- typedef: Typedef.from_map(m["typedef"]),
13585- typeid: Typeid.from_map(m["typeid"]),
13586- typename: Typename.from_map(m["typename"]),
13587- typeof: Typeof.from_map(m["typeof"]),
13588- uint: Uint.from_map(m["uint"]),
13589- ulong: Ulong.from_map(m["ulong"]),
13590- unchecked: Unchecked.from_map(m["unchecked"]),
13591- undefined: Undefined.from_map(m["undefined"]),
13592- union: Union.from_map(m["union"]),
13593- unowned: Unowned.from_map(m["unowned"]),
13594- unsafe: Unsafe.from_map(m["unsafe"]),
13595- unsigned: Unsigned.from_map(m["unsigned"]),
13596- ushort: Ushort.from_map(m["ushort"]),
13597- using: Using.from_map(m["using"]),
13598- utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
13599- utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
13600- uuid: UUID.from_map(m["UUID"]),
13601- var: Var.from_map(m["var"]),
13602- virtual: Virtual.from_map(m["virtual"]),
13603- }
13604- end
13605-
13606- def from_json(json) do
13607- json
13608- |> Jason.decode!()
13609- |> from_map()
13610- end
13611-
13612- def to_map(struct) do
13613- %{
13614- "dummy" => struct.dummy,
13615- "self" => SelfClass.to_map(struct.obj5_self),
13616- "True" => TrueClass.to_map(struct.obj5_true),
13617- "type" => TypeClass.to_map(struct.obj5_type),
13618- "Self" => Self.to_map(struct.self),
13619- "Sendable" => Sendable.to_map(struct.sendable),
13620- "serialize" => Serialize.to_map(struct.serialize),
13621- "SerializerProvider" => SerializerProvider.to_map(struct.serializer_provider),
13622- "set" => SetClass.to_map(struct.set),
13623- "short" => Short.to_map(struct.short),
13624- "signed" => Signed.to_map(struct.signed),
13625- "SimpleModule" => SimpleModule.to_map(struct.simple_module),
13626- "sizeof" => Sizeof.to_map(struct.sizeof),
13627- "stackalloc" => Stackalloc.to_map(struct.stackalloc),
13628- "Standards" => Standards.to_map(struct.standards),
13629- "static" => Static.to_map(struct.static),
13630- "static_assert" => StaticAssert.to_map(struct.static_assert),
13631- "static_cast" => StaticCast.to_map(struct.static_cast),
13632- "StdDeserializer" => StdDeserializer.to_map(struct.std_deserializer),
13633- "StdSerializer" => StdSerializer.to_map(struct.std_serializer),
13634- "strictfp" => Strictfp.to_map(struct.strictfp),
13635- "string" => StringClass.to_map(struct.string),
13636- "struct" => Struct.to_map(struct.struct),
13637- "subscript" => Subscript.to_map(struct.subscript),
13638- "super" => Super.to_map(struct.super),
13639- "switch" => Switch.to_map(struct.switch),
13640- "symbol" => Symbol.to_map(struct.symbol),
13641- "synchronized" => Synchronized.to_map(struct.synchronized),
13642- "system" => SystemClass.to_map(struct.system),
13643- "template" => Template.to_map(struct.template),
13644- "then" => Then.to_map(struct.then),
13645- "this" => This.to_map(struct.this),
13646- "thread_local" => ThreadLocal.to_map(struct.thread_local),
13647- "throw" => Throw.to_map(struct.throw),
13648- "throws" => Throws.to_map(struct.throws),
13649- "TimeOnly" => TimeOnly.to_map(struct.time_only),
13650- "TimeOnlyConverter" => TimeOnlyConverter.to_map(struct.time_only_converter),
13651- "TimeZone" => TimeZone.to_map(struct.time_zone),
13652- "to_json" => ToJSON.to_map(struct.to_json),
13653- "toString" => ToString.to_map(struct.to_string),
13654- "top_level" => TopLevelClass.to_map(struct.top_level),
13655- "transient" => Transient.to_map(struct.transient),
13656- "true" => Obj5True.to_map(struct.true_1),
13657- "try" => Try.to_map(struct.try),
13658- "Type" => Type.to_map(struct.type),
13659- "typealias" => Typealias.to_map(struct.typealias),
13660- "typedef" => Typedef.to_map(struct.typedef),
13661- "typeid" => Typeid.to_map(struct.typeid),
13662- "typename" => Typename.to_map(struct.typename),
13663- "typeof" => Typeof.to_map(struct.typeof),
13664- "uint" => Uint.to_map(struct.uint),
13665- "ulong" => Ulong.to_map(struct.ulong),
13666- "unchecked" => Unchecked.to_map(struct.unchecked),
13667- "undefined" => Undefined.to_map(struct.undefined),
13668- "union" => Union.to_map(struct.union),
13669- "unowned" => Unowned.to_map(struct.unowned),
13670- "unsafe" => Unsafe.to_map(struct.unsafe),
13671- "unsigned" => Unsigned.to_map(struct.unsigned),
13672- "ushort" => Ushort.to_map(struct.ushort),
13673- "using" => Using.to_map(struct.using),
13674- "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
13675- "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
13676- "UUID" => UUID.to_map(struct.uuid),
13677- "var" => Var.to_map(struct.var),
13678- "virtual" => Virtual.to_map(struct.virtual),
13679- }
13680- end
13681-
13682- def to_json(struct) do
13683- struct
13684- |> to_map()
13685- |> Jason.encode!()
13686- end
13687-end
13688-
1368913923 defmodule Void do
1369013924 @enforce_keys [:void]
1369113925 defstruct [:void]
@@ -14155,11 +14389,17 @@ defmodule Yield do
1415514389 end
1415614390
1415714391 defmodule Obj6 do
14158- @enforce_keys [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14159- defstruct [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14392+ @enforce_keys [:dummy, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14393+ defstruct [:dummy, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
1416014394
1416114395 @type t :: %__MODULE__{
1416214396 dummy: integer(),
14397+ using: Using.t(),
14398+ utf8_json_reader: Utf8JSONReader.t(),
14399+ utf8_json_writer: Utf8JSONWriter.t(),
14400+ uuid: UUID.t(),
14401+ var: Var.t(),
14402+ virtual: Virtual.t(),
1416314403 void: Void.t(),
1416414404 volatile: Volatile.t(),
1416514405 wchar_t: WcharT.t(),
@@ -14183,6 +14423,12 @@ defmodule Obj6 do
1418314423 def from_map(m) do
1418414424 %Obj6{
1418514425 dummy: decode_dummy(m["dummy"]),
14426+ using: Using.from_map(m["using"]),
14427+ utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
14428+ utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
14429+ uuid: UUID.from_map(m["UUID"]),
14430+ var: Var.from_map(m["var"]),
14431+ virtual: Virtual.from_map(m["virtual"]),
1418614432 void: Void.from_map(m["void"]),
1418714433 volatile: Volatile.from_map(m["volatile"]),
1418814434 wchar_t: WcharT.from_map(m["wchar_t"]),
@@ -14207,6 +14453,12 @@ defmodule Obj6 do
1420714453 def to_map(struct) do
1420814454 %{
1420914455 "dummy" => struct.dummy,
14456+ "using" => Using.to_map(struct.using),
14457+ "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
14458+ "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
14459+ "UUID" => UUID.to_map(struct.uuid),
14460+ "var" => Var.to_map(struct.var),
14461+ "virtual" => Virtual.to_map(struct.virtual),
1421014462 "void" => Void.to_map(struct.void),
1421114463 "volatile" => Volatile.to_map(struct.volatile),
1421214464 "wchar_t" => WcharT.to_map(struct.wchar_t),
Melmdefault / QuickType.elm+200 −86
@@ -276,14 +276,19 @@ module QuickType exposing
276276 , Sel
277277 , Select
278278 , Obj5
279+ , KSerializer
279280 , SelfClass
280281 , StringClass
281282 , Then
282283 , Obj5True
283284 , Type
285+ , PrimitiveKind
284286 , TypeClass
285287 , Self
286288 , Sendable
289+ , SerialDescriptor
290+ , SerialName
291+ , Serializable
287292 , Serialize
288293 , SerializerProvider
289294 , Set
@@ -333,15 +338,16 @@ module QuickType exposing
333338 , Unowned
334339 , Unsafe
335340 , Unsigned
341+ , UseSerializers
336342 , Ushort
343+ , Obj6
344+ , Where
337345 , Using
338346 , Utf8JSONReader
339347 , Utf8JSONWriter
340348 , UUID
341349 , Var
342350 , Virtual
343- , Obj6
344- , Where
345351 , Void
346352 , Volatile
347353 , WcharT
@@ -1673,14 +1679,19 @@ type alias Select =
16731679
16741680 type alias Obj5 =
16751681 { dummy : Int
1682+ , kSerializer : KSerializer
16761683 , obj5Self : SelfClass
16771684 , obj5String : StringClass
16781685 , obj5Then : Then
16791686 , obj5True : Obj5True
16801687 , obj5Type : Type
1688+ , primitiveKind : PrimitiveKind
16811689 , purpleType : TypeClass
16821690 , self : Self
16831691 , sendable : Sendable
1692+ , serialDescriptor : SerialDescriptor
1693+ , serialName : SerialName
1694+ , serializable : Serializable
16841695 , serialize : Serialize
16851696 , serializerProvider : SerializerProvider
16861697 , set : Set
@@ -1730,13 +1741,12 @@ type alias Obj5 =
17301741 , unowned : Unowned
17311742 , unsafe : Unsafe
17321743 , unsigned : Unsigned
1744+ , useSerializers : UseSerializers
17331745 , ushort : Ushort
1734- , using : Using
1735- , utf8JSONReader : Utf8JSONReader
1736- , utf8JSONWriter : Utf8JSONWriter
1737- , uuid : UUID
1738- , var : Var
1739- , virtual : Virtual
1746+ }
1747+
1748+type alias KSerializer =
1749+ { kSerializer : Int
17401750 }
17411751
17421752 type alias SelfClass =
@@ -1759,6 +1769,10 @@ type alias Type =
17591769 { typeType : Int
17601770 }
17611771
1772+type alias PrimitiveKind =
1773+ { primitiveKind : Int
1774+ }
1775+
17621776 type alias TypeClass =
17631777 { typeType : Int
17641778 }
@@ -1771,6 +1785,18 @@ type alias Sendable =
17711785 { sendable : Int
17721786 }
17731787
1788+type alias SerialDescriptor =
1789+ { serialDescriptor : Int
1790+ }
1791+
1792+type alias SerialName =
1793+ { serialName : Int
1794+ }
1795+
1796+type alias Serializable =
1797+ { serializable : Int
1798+ }
1799+
17741800 type alias Serialize =
17751801 { serialize : Int
17761802 }
@@ -1967,10 +1993,40 @@ type alias Unsigned =
19671993 { unsigned : Int
19681994 }
19691995
1996+type alias UseSerializers =
1997+ { useSerializers : Int
1998+ }
1999+
19702000 type alias Ushort =
19712001 { ushort : Int
19722002 }
19732003
2004+type alias Obj6 =
2005+ { dummy : Int
2006+ , obj6Where : Where
2007+ , using : Using
2008+ , utf8JSONReader : Utf8JSONReader
2009+ , utf8JSONWriter : Utf8JSONWriter
2010+ , uuid : UUID
2011+ , var : Var
2012+ , virtual : Virtual
2013+ , void : Void
2014+ , volatile : Volatile
2015+ , wcharT : WcharT
2016+ , weak : Weak
2017+ , while : While
2018+ , willSet : WillSet
2019+ , with : With
2020+ , xor : Xor
2021+ , xorEq : XorEq
2022+ , yes : Yes
2023+ , yield : Yield
2024+ }
2025+
2026+type alias Where =
2027+ { whereWhere : Int
2028+ }
2029+
19742030 type alias Using =
19752031 { using : Int
19762032 }
@@ -1995,26 +2051,6 @@ type alias Virtual =
19952051 { virtual : Int
19962052 }
19972053
1998-type alias Obj6 =
1999- { dummy : Int
2000- , obj6Where : Where
2001- , void : Void
2002- , volatile : Volatile
2003- , wcharT : WcharT
2004- , weak : Weak
2005- , while : While
2006- , willSet : WillSet
2007- , with : With
2008- , xor : Xor
2009- , xorEq : XorEq
2010- , yes : Yes
2011- , yield : Yield
2012- }
2013-
2014-type alias Where =
2015- { whereWhere : Int
2016- }
2017-
20182054 type alias Void =
20192055 { void : Int
20202056 }
@@ -5484,14 +5520,19 @@ obj5 : Jdec.Decoder Obj5
54845520 obj5 =
54855521 Jdec.succeed Obj5
54865522 |> Jpipe.required "dummy" Jdec.int
5523+ |> Jpipe.required "KSerializer" kSerializer
54875524 |> Jpipe.required "self" selfClass
54885525 |> Jpipe.required "string" stringClass
54895526 |> Jpipe.required "then" purpleThen
54905527 |> Jpipe.required "true" obj5True
54915528 |> Jpipe.required "Type" purpleType
5529+ |> Jpipe.required "PrimitiveKind" primitiveKind
54925530 |> Jpipe.required "type" typeClass
54935531 |> Jpipe.required "Self" self
54945532 |> Jpipe.required "Sendable" sendable
5533+ |> Jpipe.required "SerialDescriptor" serialDescriptor
5534+ |> Jpipe.required "SerialName" serialName
5535+ |> Jpipe.required "Serializable" serializable
54955536 |> Jpipe.required "serialize" serialize
54965537 |> Jpipe.required "SerializerProvider" serializerProvider
54975538 |> Jpipe.required "set" set
@@ -5541,26 +5582,26 @@ obj5 =
55415582 |> Jpipe.required "unowned" unowned
55425583 |> Jpipe.required "unsafe" unsafe
55435584 |> Jpipe.required "unsigned" unsigned
5585+ |> Jpipe.required "UseSerializers" useSerializers
55445586 |> Jpipe.required "ushort" ushort
5545- |> Jpipe.required "using" using
5546- |> Jpipe.required "Utf8JsonReader" utf8JSONReader
5547- |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
5548- |> Jpipe.required "UUID" uuid
5549- |> Jpipe.required "var" var
5550- |> Jpipe.required "virtual" virtual
55515587
55525588 encodeObj5 : Obj5 -> Jenc.Value
55535589 encodeObj5 x =
55545590 Jenc.object
55555591 [ ("dummy", Jenc.int x.dummy)
5592+ , ("KSerializer", encodeKSerializer x.kSerializer)
55565593 , ("self", encodeSelfClass x.obj5Self)
55575594 , ("string", encodeStringClass x.obj5String)
55585595 , ("then", encodeThen x.obj5Then)
55595596 , ("true", encodeObj5True x.obj5True)
55605597 , ("Type", encodeType x.obj5Type)
5598+ , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind)
55615599 , ("type", encodeTypeClass x.purpleType)
55625600 , ("Self", encodeSelf x.self)
55635601 , ("Sendable", encodeSendable x.sendable)
5602+ , ("SerialDescriptor", encodeSerialDescriptor x.serialDescriptor)
5603+ , ("SerialName", encodeSerialName x.serialName)
5604+ , ("Serializable", encodeSerializable x.serializable)
55645605 , ("serialize", encodeSerialize x.serialize)
55655606 , ("SerializerProvider", encodeSerializerProvider x.serializerProvider)
55665607 , ("set", encodeSet x.set)
@@ -5610,13 +5651,19 @@ encodeObj5 x =
56105651 , ("unowned", encodeUnowned x.unowned)
56115652 , ("unsafe", encodeUnsafe x.unsafe)
56125653 , ("unsigned", encodeUnsigned x.unsigned)
5654+ , ("UseSerializers", encodeUseSerializers x.useSerializers)
56135655 , ("ushort", encodeUshort x.ushort)
5614- , ("using", encodeUsing x.using)
5615- , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
5616- , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
5617- , ("UUID", encodeUUID x.uuid)
5618- , ("var", encodeVar x.var)
5619- , ("virtual", encodeVirtual x.virtual)
5656+ ]
5657+
5658+kSerializer : Jdec.Decoder KSerializer
5659+kSerializer =
5660+ Jdec.succeed KSerializer
5661+ |> Jpipe.required "KSerializer" Jdec.int
5662+
5663+encodeKSerializer : KSerializer -> Jenc.Value
5664+encodeKSerializer x =
5665+ Jenc.object
5666+ [ ("KSerializer", Jenc.int x.kSerializer)
56205667 ]
56215668
56225669 selfClass : Jdec.Decoder SelfClass
@@ -5674,6 +5721,17 @@ encodeType x =
56745721 [ ("Type", Jenc.int x.typeType)
56755722 ]
56765723
5724+primitiveKind : Jdec.Decoder PrimitiveKind
5725+primitiveKind =
5726+ Jdec.succeed PrimitiveKind
5727+ |> Jpipe.required "PrimitiveKind" Jdec.int
5728+
5729+encodePrimitiveKind : PrimitiveKind -> Jenc.Value
5730+encodePrimitiveKind x =
5731+ Jenc.object
5732+ [ ("PrimitiveKind", Jenc.int x.primitiveKind)
5733+ ]
5734+
56775735 typeClass : Jdec.Decoder TypeClass
56785736 typeClass =
56795737 Jdec.succeed TypeClass
@@ -5707,6 +5765,39 @@ encodeSendable x =
57075765 [ ("Sendable", Jenc.int x.sendable)
57085766 ]
57095767
5768+serialDescriptor : Jdec.Decoder SerialDescriptor
5769+serialDescriptor =
5770+ Jdec.succeed SerialDescriptor
5771+ |> Jpipe.required "SerialDescriptor" Jdec.int
5772+
5773+encodeSerialDescriptor : SerialDescriptor -> Jenc.Value
5774+encodeSerialDescriptor x =
5775+ Jenc.object
5776+ [ ("SerialDescriptor", Jenc.int x.serialDescriptor)
5777+ ]
5778+
5779+serialName : Jdec.Decoder SerialName
5780+serialName =
5781+ Jdec.succeed SerialName
5782+ |> Jpipe.required "SerialName" Jdec.int
5783+
5784+encodeSerialName : SerialName -> Jenc.Value
5785+encodeSerialName x =
5786+ Jenc.object
5787+ [ ("SerialName", Jenc.int x.serialName)
5788+ ]
5789+
5790+serializable : Jdec.Decoder Serializable
5791+serializable =
5792+ Jdec.succeed Serializable
5793+ |> Jpipe.required "Serializable" Jdec.int
5794+
5795+encodeSerializable : Serializable -> Jenc.Value
5796+encodeSerializable x =
5797+ Jenc.object
5798+ [ ("Serializable", Jenc.int x.serializable)
5799+ ]
5800+
57105801 serialize : Jdec.Decoder Serialize
57115802 serialize =
57125803 Jdec.succeed Serialize
@@ -6246,6 +6337,17 @@ encodeUnsigned x =
62466337 [ ("unsigned", Jenc.int x.unsigned)
62476338 ]
62486339
6340+useSerializers : Jdec.Decoder UseSerializers
6341+useSerializers =
6342+ Jdec.succeed UseSerializers
6343+ |> Jpipe.required "UseSerializers" Jdec.int
6344+
6345+encodeUseSerializers : UseSerializers -> Jenc.Value
6346+encodeUseSerializers x =
6347+ Jenc.object
6348+ [ ("UseSerializers", Jenc.int x.useSerializers)
6349+ ]
6350+
62496351 ushort : Jdec.Decoder Ushort
62506352 ushort =
62516353 Jdec.succeed Ushort
@@ -6257,6 +6359,64 @@ encodeUshort x =
62576359 [ ("ushort", Jenc.int x.ushort)
62586360 ]
62596361
6362+obj6 : Jdec.Decoder Obj6
6363+obj6 =
6364+ Jdec.succeed Obj6
6365+ |> Jpipe.required "dummy" Jdec.int
6366+ |> Jpipe.required "where" purpleWhere
6367+ |> Jpipe.required "using" using
6368+ |> Jpipe.required "Utf8JsonReader" utf8JSONReader
6369+ |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
6370+ |> Jpipe.required "UUID" uuid
6371+ |> Jpipe.required "var" var
6372+ |> Jpipe.required "virtual" virtual
6373+ |> Jpipe.required "void" void
6374+ |> Jpipe.required "volatile" volatile
6375+ |> Jpipe.required "wchar_t" wcharT
6376+ |> Jpipe.required "weak" weak
6377+ |> Jpipe.required "while" while
6378+ |> Jpipe.required "willSet" willSet
6379+ |> Jpipe.required "with" with
6380+ |> Jpipe.required "xor" xor
6381+ |> Jpipe.required "xor_eq" xorEq
6382+ |> Jpipe.required "YES" yes
6383+ |> Jpipe.required "yield" yield
6384+
6385+encodeObj6 : Obj6 -> Jenc.Value
6386+encodeObj6 x =
6387+ Jenc.object
6388+ [ ("dummy", Jenc.int x.dummy)
6389+ , ("where", encodeWhere x.obj6Where)
6390+ , ("using", encodeUsing x.using)
6391+ , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
6392+ , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
6393+ , ("UUID", encodeUUID x.uuid)
6394+ , ("var", encodeVar x.var)
6395+ , ("virtual", encodeVirtual x.virtual)
6396+ , ("void", encodeVoid x.void)
6397+ , ("volatile", encodeVolatile x.volatile)
6398+ , ("wchar_t", encodeWcharT x.wcharT)
6399+ , ("weak", encodeWeak x.weak)
6400+ , ("while", encodeWhile x.while)
6401+ , ("willSet", encodeWillSet x.willSet)
6402+ , ("with", encodeWith x.with)
6403+ , ("xor", encodeXor x.xor)
6404+ , ("xor_eq", encodeXorEq x.xorEq)
6405+ , ("YES", encodeYes x.yes)
6406+ , ("yield", encodeYield x.yield)
6407+ ]
6408+
6409+purpleWhere : Jdec.Decoder Where
6410+purpleWhere =
6411+ Jdec.succeed Where
6412+ |> Jpipe.required "where" Jdec.int
6413+
6414+encodeWhere : Where -> Jenc.Value
6415+encodeWhere x =
6416+ Jenc.object
6417+ [ ("where", Jenc.int x.whereWhere)
6418+ ]
6419+
62606420 using : Jdec.Decoder Using
62616421 using =
62626422 Jdec.succeed Using
@@ -6323,52 +6483,6 @@ encodeVirtual x =
63236483 [ ("virtual", Jenc.int x.virtual)
63246484 ]
63256485
6326-obj6 : Jdec.Decoder Obj6
6327-obj6 =
6328- Jdec.succeed Obj6
6329- |> Jpipe.required "dummy" Jdec.int
6330- |> Jpipe.required "where" purpleWhere
6331- |> Jpipe.required "void" void
6332- |> Jpipe.required "volatile" volatile
6333- |> Jpipe.required "wchar_t" wcharT
6334- |> Jpipe.required "weak" weak
6335- |> Jpipe.required "while" while
6336- |> Jpipe.required "willSet" willSet
6337- |> Jpipe.required "with" with
6338- |> Jpipe.required "xor" xor
6339- |> Jpipe.required "xor_eq" xorEq
6340- |> Jpipe.required "YES" yes
6341- |> Jpipe.required "yield" yield
6342-
6343-encodeObj6 : Obj6 -> Jenc.Value
6344-encodeObj6 x =
6345- Jenc.object
6346- [ ("dummy", Jenc.int x.dummy)
6347- , ("where", encodeWhere x.obj6Where)
6348- , ("void", encodeVoid x.void)
6349- , ("volatile", encodeVolatile x.volatile)
6350- , ("wchar_t", encodeWcharT x.wcharT)
6351- , ("weak", encodeWeak x.weak)
6352- , ("while", encodeWhile x.while)
6353- , ("willSet", encodeWillSet x.willSet)
6354- , ("with", encodeWith x.with)
6355- , ("xor", encodeXor x.xor)
6356- , ("xor_eq", encodeXorEq x.xorEq)
6357- , ("YES", encodeYes x.yes)
6358- , ("yield", encodeYield x.yield)
6359- ]
6360-
6361-purpleWhere : Jdec.Decoder Where
6362-purpleWhere =
6363- Jdec.succeed Where
6364- |> Jpipe.required "where" Jdec.int
6365-
6366-encodeWhere : Where -> Jenc.Value
6367-encodeWhere x =
6368- Jenc.object
6369- [ ("where", Jenc.int x.whereWhere)
6370- ]
6371-
63726486 void : Jdec.Decoder Void
63736487 void =
63746488 Jdec.succeed Void
Mflowdefault / TopLevel.js+113 −59
@@ -1320,8 +1320,13 @@ export type Select = {
13201320 };
13211321
13221322 export type Obj5 = {
1323+ KSerializer: KSerializer;
1324+ PrimitiveKind: PrimitiveKind;
13231325 Self: Self;
13241326 Sendable: Sendable;
1327+ SerialDescriptor: SerialDescriptor;
1328+ SerialName: SerialName;
1329+ Serializable: Serializable;
13251330 SerializerProvider: SerializerProvider;
13261331 SimpleModule: SimpleModule;
13271332 Standards: Standards;
@@ -1332,9 +1337,7 @@ export type Obj5 = {
13321337 TimeZone: TimeZone;
13331338 True: True;
13341339 Type: Type;
1335- UUID: UUID;
1336- Utf8JsonReader: Utf8JSONReader;
1337- Utf8JsonWriter: Utf8JSONWriter;
1340+ UseSerializers: UseSerializers;
13381341 dummy: number;
13391342 self: SelfClass;
13401343 serialize: Serialize;
@@ -1382,9 +1385,14 @@ export type Obj5 = {
13821385 unsafe: Unsafe;
13831386 unsigned: Unsigned;
13841387 ushort: Ushort;
1385- using: Using;
1386- var: Var;
1387- virtual: Virtual;
1388+};
1389+
1390+export type KSerializer = {
1391+ KSerializer: number;
1392+};
1393+
1394+export type PrimitiveKind = {
1395+ PrimitiveKind: number;
13881396 };
13891397
13901398 export type Self = {
@@ -1395,6 +1403,18 @@ export type Sendable = {
13951403 Sendable: number;
13961404 };
13971405
1406+export type SerialDescriptor = {
1407+ SerialDescriptor: number;
1408+};
1409+
1410+export type SerialName = {
1411+ SerialName: number;
1412+};
1413+
1414+export type Serializable = {
1415+ Serializable: number;
1416+};
1417+
13981418 export type SerializerProvider = {
13991419 SerializerProvider: number;
14001420 };
@@ -1435,16 +1455,8 @@ export type Type = {
14351455 Type: number;
14361456 };
14371457
1438-export type UUID = {
1439- UUID: number;
1440-};
1441-
1442-export type Utf8JSONReader = {
1443- Utf8JsonReader: number;
1444-};
1445-
1446-export type Utf8JSONWriter = {
1447- Utf8JsonWriter: number;
1458+export type UseSerializers = {
1459+ UseSerializers: number;
14481460 };
14491461
14501462 export type SelfClass = {
@@ -1631,38 +1643,56 @@ export type Ushort = {
16311643 ushort: number;
16321644 };
16331645
1634-export type Using = {
1635- using: number;
1646+export type Obj6 = {
1647+ UUID: UUID;
1648+ Utf8JsonReader: Utf8JSONReader;
1649+ Utf8JsonWriter: Utf8JSONWriter;
1650+ YES: Yes;
1651+ dummy: number;
1652+ using: Using;
1653+ var: Var;
1654+ virtual: Virtual;
1655+ void: Void;
1656+ volatile: Volatile;
1657+ wchar_t: WcharT;
1658+ weak: Weak;
1659+ where: Where;
1660+ while: While;
1661+ willSet: WillSet;
1662+ with: With;
1663+ xor: Xor;
1664+ xor_eq: XorEq;
1665+ yield: Yield;
16361666 };
16371667
1638-export type Var = {
1639- var: number;
1668+export type UUID = {
1669+ UUID: number;
16401670 };
16411671
1642-export type Virtual = {
1643- virtual: number;
1672+export type Utf8JSONReader = {
1673+ Utf8JsonReader: number;
16441674 };
16451675
1646-export type Obj6 = {
1647- YES: Yes;
1648- dummy: number;
1649- void: Void;
1650- volatile: Volatile;
1651- wchar_t: WcharT;
1652- weak: Weak;
1653- where: Where;
1654- while: While;
1655- willSet: WillSet;
1656- with: With;
1657- xor: Xor;
1658- xor_eq: XorEq;
1659- yield: Yield;
1676+export type Utf8JSONWriter = {
1677+ Utf8JsonWriter: number;
16601678 };
16611679
16621680 export type Yes = {
16631681 YES: number;
16641682 };
16651683
1684+export type Using = {
1685+ using: number;
1686+};
1687+
1688+export type Var = {
1689+ var: number;
1690+};
1691+
1692+export type Virtual = {
1693+ virtual: number;
1694+};
1695+
16661696 export type Void = {
16671697 void: number;
16681698 };
@@ -2939,8 +2969,13 @@ const typeMap: any = {
29392969 { json: "select", js: "select", typ: i(0) },
29402970 ], false),
29412971 "Obj5": o([
2972+ { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
2973+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
29422974 { json: "Self", js: "Self", typ: r("Self") },
29432975 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
2976+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
2977+ { json: "SerialName", js: "SerialName", typ: r("SerialName") },
2978+ { json: "Serializable", js: "Serializable", typ: r("Serializable") },
29442979 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
29452980 { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") },
29462981 { json: "Standards", js: "Standards", typ: r("Standards") },
@@ -2951,9 +2986,7 @@ const typeMap: any = {
29512986 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29522987 { json: "True", js: "True", typ: r("True") },
29532988 { json: "Type", js: "Type", typ: r("Type") },
2954- { json: "UUID", js: "UUID", typ: r("UUID") },
2955- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
2956- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
2989+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29572990 { json: "dummy", js: "dummy", typ: i(0) },
29582991 { json: "self", js: "self", typ: r("SelfClass") },
29592992 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -3001,9 +3034,12 @@ const typeMap: any = {
30013034 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30023035 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30033036 { json: "ushort", js: "ushort", typ: r("Ushort") },
3004- { json: "using", js: "using", typ: r("Using") },
3005- { json: "var", js: "var", typ: r("Var") },
3006- { json: "virtual", js: "virtual", typ: r("Virtual") },
3037+ ], false),
3038+ "KSerializer": o([
3039+ { json: "KSerializer", js: "KSerializer", typ: i(0) },
3040+ ], false),
3041+ "PrimitiveKind": o([
3042+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30073043 ], false),
30083044 "Self": o([
30093045 { json: "Self", js: "Self", typ: i(0) },
@@ -3011,6 +3047,15 @@ const typeMap: any = {
30113047 "Sendable": o([
30123048 { json: "Sendable", js: "Sendable", typ: i(0) },
30133049 ], false),
3050+ "SerialDescriptor": o([
3051+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: i(0) },
3052+ ], false),
3053+ "SerialName": o([
3054+ { json: "SerialName", js: "SerialName", typ: i(0) },
3055+ ], false),
3056+ "Serializable": o([
3057+ { json: "Serializable", js: "Serializable", typ: i(0) },
3058+ ], false),
30143059 "SerializerProvider": o([
30153060 { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) },
30163061 ], false),
@@ -3041,14 +3086,8 @@ const typeMap: any = {
30413086 "Type": o([
30423087 { json: "Type", js: "Type", typ: i(0) },
30433088 ], false),
3044- "UUID": o([
3045- { json: "UUID", js: "UUID", typ: i(0) },
3046- ], false),
3047- "Utf8JSONReader": o([
3048- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3049- ], false),
3050- "Utf8JSONWriter": o([
3051- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3089+ "UseSerializers": o([
3090+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30523091 ], false),
30533092 "SelfClass": o([
30543093 { json: "self", js: "self", typ: i(0) },
@@ -3188,18 +3227,15 @@ const typeMap: any = {
31883227 "Ushort": o([
31893228 { json: "ushort", js: "ushort", typ: i(0) },
31903229 ], false),
3191- "Using": o([
3192- { json: "using", js: "using", typ: i(0) },
3193- ], false),
3194- "Var": o([
3195- { json: "var", js: "var", typ: i(0) },
3196- ], false),
3197- "Virtual": o([
3198- { json: "virtual", js: "virtual", typ: i(0) },
3199- ], false),
32003230 "Obj6": o([
3231+ { json: "UUID", js: "UUID", typ: r("UUID") },
3232+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
3233+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32013234 { json: "YES", js: "YES", typ: r("Yes") },
32023235 { json: "dummy", js: "dummy", typ: i(0) },
3236+ { json: "using", js: "using", typ: r("Using") },
3237+ { json: "var", js: "var", typ: r("Var") },
3238+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32033239 { json: "void", js: "void", typ: r("Void") },
32043240 { json: "volatile", js: "volatile", typ: r("Volatile") },
32053241 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3212,9 +3248,27 @@ const typeMap: any = {
32123248 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32133249 { json: "yield", js: "yield", typ: r("Yield") },
32143250 ], false),
3251+ "UUID": o([
3252+ { json: "UUID", js: "UUID", typ: i(0) },
3253+ ], false),
3254+ "Utf8JSONReader": o([
3255+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3256+ ], false),
3257+ "Utf8JSONWriter": o([
3258+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3259+ ], false),
32153260 "Yes": o([
32163261 { json: "YES", js: "YES", typ: i(0) },
32173262 ], false),
3263+ "Using": o([
3264+ { json: "using", js: "using", typ: i(0) },
3265+ ], false),
3266+ "Var": o([
3267+ { json: "var", js: "var", typ: i(0) },
3268+ ], false),
3269+ "Virtual": o([
3270+ { json: "virtual", js: "virtual", typ: i(0) },
3271+ ], false),
32183272 "Void": o([
32193273 { json: "void", js: "void", typ: i(0) },
32203274 ], false),
Mgolangdefault / quicktype.go+56 −26
@@ -1328,11 +1328,16 @@ type Select struct {
13281328
13291329 type Obj5 struct {
13301330 Dummy int64 `json:"dummy"`
1331+ KSerializer KSerializer `json:"KSerializer"`
13311332 Obj5Self SelfClass `json:"self"`
13321333 Obj5True TrueClass `json:"true"`
13331334 Obj5Type TypeClass `json:"type"`
1335+ PrimitiveKind PrimitiveKind `json:"PrimitiveKind"`
13341336 Self Self `json:"Self"`
13351337 Sendable Sendable `json:"Sendable"`
1338+ SerialDescriptor SerialDescriptor `json:"SerialDescriptor"`
1339+ SerialName SerialName `json:"SerialName"`
1340+ Serializable Serializable `json:"Serializable"`
13361341 Serialize Serialize `json:"serialize"`
13371342 SerializerProvider SerializerProvider `json:"SerializerProvider"`
13381343 Set Set `json:"set"`
@@ -1377,7 +1382,6 @@ type Obj5 struct {
13771382 Typeid Typeid `json:"typeid"`
13781383 Typename Typename `json:"typename"`
13791384 Typeof Typeof `json:"typeof"`
1380- UUID UUID `json:"UUID"`
13811385 Uint Uint `json:"uint"`
13821386 Ulong Ulong `json:"ulong"`
13831387 Unchecked Unchecked `json:"unchecked"`
@@ -1386,12 +1390,12 @@ type Obj5 struct {
13861390 Unowned Unowned `json:"unowned"`
13871391 Unsafe Unsafe `json:"unsafe"`
13881392 Unsigned Unsigned `json:"unsigned"`
1393+ UseSerializers UseSerializers `json:"UseSerializers"`
13891394 Ushort Ushort `json:"ushort"`
1390- Using Using `json:"using"`
1391- Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
1392- Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
1393- Var Var `json:"var"`
1394- Virtual Virtual `json:"virtual"`
1395+}
1396+
1397+type KSerializer struct {
1398+ KSerializer int64 `json:"KSerializer"`
13951399 }
13961400
13971401 type SelfClass struct {
@@ -1406,6 +1410,10 @@ type TypeClass struct {
14061410 Type int64 `json:"type"`
14071411 }
14081412
1413+type PrimitiveKind struct {
1414+ PrimitiveKind int64 `json:"PrimitiveKind"`
1415+}
1416+
14091417 type Self struct {
14101418 Self int64 `json:"Self"`
14111419 }
@@ -1414,6 +1422,18 @@ type Sendable struct {
14141422 Sendable int64 `json:"Sendable"`
14151423 }
14161424
1425+type SerialDescriptor struct {
1426+ SerialDescriptor int64 `json:"SerialDescriptor"`
1427+}
1428+
1429+type SerialName struct {
1430+ SerialName int64 `json:"SerialName"`
1431+}
1432+
1433+type Serializable struct {
1434+ Serializable int64 `json:"Serializable"`
1435+}
1436+
14171437 type Serialize struct {
14181438 Serialize int64 `json:"serialize"`
14191439 }
@@ -1590,10 +1610,6 @@ type Typeof struct {
15901610 Typeof int64 `json:"typeof"`
15911611 }
15921612
1593-type UUID struct {
1594- UUID int64 `json:"UUID"`
1595-}
1596-
15971613 type Uint struct {
15981614 Uint int64 `json:"uint"`
15991615 }
@@ -1626,10 +1642,40 @@ type Unsigned struct {
16261642 Unsigned int64 `json:"unsigned"`
16271643 }
16281644
1645+type UseSerializers struct {
1646+ UseSerializers int64 `json:"UseSerializers"`
1647+}
1648+
16291649 type Ushort struct {
16301650 Ushort int64 `json:"ushort"`
16311651 }
16321652
1653+type Obj6 struct {
1654+ Dummy int64 `json:"dummy"`
1655+ UUID UUID `json:"UUID"`
1656+ Using Using `json:"using"`
1657+ Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
1658+ Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
1659+ Var Var `json:"var"`
1660+ Virtual Virtual `json:"virtual"`
1661+ Void Void `json:"void"`
1662+ Volatile Volatile `json:"volatile"`
1663+ WcharT WcharT `json:"wchar_t"`
1664+ Weak Weak `json:"weak"`
1665+ Where Where `json:"where"`
1666+ While While `json:"while"`
1667+ WillSet WillSet `json:"willSet"`
1668+ With With `json:"with"`
1669+ Xor Xor `json:"xor"`
1670+ XorEq XorEq `json:"xor_eq"`
1671+ Yes Yes `json:"YES"`
1672+ Yield Yield `json:"yield"`
1673+}
1674+
1675+type UUID struct {
1676+ UUID int64 `json:"UUID"`
1677+}
1678+
16331679 type Using struct {
16341680 Using int64 `json:"using"`
16351681 }
@@ -1650,22 +1696,6 @@ type Virtual struct {
16501696 Virtual int64 `json:"virtual"`
16511697 }
16521698
1653-type Obj6 struct {
1654- Dummy int64 `json:"dummy"`
1655- Void Void `json:"void"`
1656- Volatile Volatile `json:"volatile"`
1657- WcharT WcharT `json:"wchar_t"`
1658- Weak Weak `json:"weak"`
1659- Where Where `json:"where"`
1660- While While `json:"while"`
1661- WillSet WillSet `json:"willSet"`
1662- With With `json:"with"`
1663- Xor Xor `json:"xor"`
1664- XorEq XorEq `json:"xor_eq"`
1665- Yes Yes `json:"YES"`
1666- Yield Yield `json:"yield"`
1667-}
1668-
16691699 type Void struct {
16701700 Void int64 `json:"void"`
16711701 }
Mhaskelldefault / QuickType.hs+193 −85
@@ -264,13 +264,18 @@ module QuickType
264264 , Sel (..)
265265 , Select (..)
266266 , Obj5 (..)
267+ , KSerializer (..)
267268 , SelfClass (..)
268269 , Then (..)
269270 , Obj5True (..)
270271 , Type (..)
272+ , PrimitiveKind (..)
271273 , TypeClass (..)
272274 , Self (..)
273275 , Sendable (..)
276+ , SerialDescriptor (..)
277+ , SerialName (..)
278+ , Serializable (..)
274279 , Serialize (..)
275280 , SerializerProvider (..)
276281 , Set (..)
@@ -321,15 +326,16 @@ module QuickType
321326 , Unowned (..)
322327 , Unsafe (..)
323328 , Unsigned (..)
329+ , UseSerializers (..)
324330 , Ushort (..)
331+ , Obj6 (..)
332+ , Where (..)
325333 , Using (..)
326334 , Utf8JSONReader (..)
327335 , Utf8JSONWriter (..)
328336 , UUID (..)
329337 , Var (..)
330338 , Virtual (..)
331- , Obj6 (..)
332- , Where (..)
333339 , Void (..)
334340 , Volatile (..)
335341 , WcharT (..)
@@ -1664,13 +1670,18 @@ data Select = Select
16641670
16651671 data Obj5 = Obj5
16661672 { dummyObj5 :: Int
1673+ , kSerializerObj5 :: KSerializer
16671674 , obj5SelfObj5 :: SelfClass
16681675 , obj5ThenObj5 :: Then
16691676 , obj5TrueObj5 :: Obj5True
16701677 , obj5TypeObj5 :: Type
1678+ , primitiveKindObj5 :: PrimitiveKind
16711679 , purpleTypeObj5 :: TypeClass
16721680 , selfObj5 :: Self
16731681 , sendableObj5 :: Sendable
1682+ , serialDescriptorObj5 :: SerialDescriptor
1683+ , serialNameObj5 :: SerialName
1684+ , serializableObj5 :: Serializable
16741685 , serializeObj5 :: Serialize
16751686 , serializerProviderObj5 :: SerializerProvider
16761687 , setObj5 :: Set
@@ -1721,13 +1732,12 @@ data Obj5 = Obj5
17211732 , unownedObj5 :: Unowned
17221733 , unsafeObj5 :: Unsafe
17231734 , unsignedObj5 :: Unsigned
1735+ , useSerializersObj5 :: UseSerializers
17241736 , ushortObj5 :: Ushort
1725- , usingObj5 :: Using
1726- , utf8JSONReaderObj5 :: Utf8JSONReader
1727- , utf8JSONWriterObj5 :: Utf8JSONWriter
1728- , uuidObj5 :: UUID
1729- , varObj5 :: Var
1730- , virtualObj5 :: Virtual
1737+ } deriving (Show)
1738+
1739+data KSerializer = KSerializer
1740+ { kSerializerKSerializer :: Int
17311741 } deriving (Show)
17321742
17331743 data SelfClass = SelfClass
@@ -1746,6 +1756,10 @@ data Type = Type
17461756 { typeTypeType :: Int
17471757 } deriving (Show)
17481758
1759+data PrimitiveKind = PrimitiveKind
1760+ { primitiveKindPrimitiveKind :: Int
1761+ } deriving (Show)
1762+
17491763 data TypeClass = TypeClass
17501764 { typeTypeTypeClass :: Int
17511765 } deriving (Show)
@@ -1758,6 +1772,18 @@ data Sendable = Sendable
17581772 { sendableSendable :: Int
17591773 } deriving (Show)
17601774
1775+data SerialDescriptor = SerialDescriptor
1776+ { serialDescriptorSerialDescriptor :: Int
1777+ } deriving (Show)
1778+
1779+data SerialName = SerialName
1780+ { serialNameSerialName :: Int
1781+ } deriving (Show)
1782+
1783+data Serializable = Serializable
1784+ { serializableSerializable :: Int
1785+ } deriving (Show)
1786+
17611787 data Serialize = Serialize
17621788 { serializeSerialize :: Int
17631789 } deriving (Show)
@@ -1958,10 +1984,40 @@ data Unsigned = Unsigned
19581984 { unsignedUnsigned :: Int
19591985 } deriving (Show)
19601986
1987+data UseSerializers = UseSerializers
1988+ { useSerializersUseSerializers :: Int
1989+ } deriving (Show)
1990+
19611991 data Ushort = Ushort
19621992 { ushortUshort :: Int
19631993 } deriving (Show)
19641994
1995+data Obj6 = Obj6
1996+ { dummyObj6 :: Int
1997+ , obj6WhereObj6 :: Where
1998+ , usingObj6 :: Using
1999+ , utf8JSONReaderObj6 :: Utf8JSONReader
2000+ , utf8JSONWriterObj6 :: Utf8JSONWriter
2001+ , uuidObj6 :: UUID
2002+ , varObj6 :: Var
2003+ , virtualObj6 :: Virtual
2004+ , voidObj6 :: Void
2005+ , volatileObj6 :: Volatile
2006+ , wcharTObj6 :: WcharT
2007+ , weakObj6 :: Weak
2008+ , whileObj6 :: While
2009+ , willSetObj6 :: WillSet
2010+ , withObj6 :: With
2011+ , xorObj6 :: Xor
2012+ , xorEqObj6 :: XorEq
2013+ , yesObj6 :: Yes
2014+ , yieldObj6 :: Yield
2015+ } deriving (Show)
2016+
2017+data Where = Where
2018+ { whereWhereWhere :: Int
2019+ } deriving (Show)
2020+
19652021 data Using = Using
19662022 { usingUsing :: Int
19672023 } deriving (Show)
@@ -1986,26 +2042,6 @@ data Virtual = Virtual
19862042 { virtualVirtual :: Int
19872043 } deriving (Show)
19882044
1989-data Obj6 = Obj6
1990- { dummyObj6 :: Int
1991- , obj6WhereObj6 :: Where
1992- , voidObj6 :: Void
1993- , volatileObj6 :: Volatile
1994- , wcharTObj6 :: WcharT
1995- , weakObj6 :: Weak
1996- , whileObj6 :: While
1997- , willSetObj6 :: WillSet
1998- , withObj6 :: With
1999- , xorObj6 :: Xor
2000- , xorEqObj6 :: XorEq
2001- , yesObj6 :: Yes
2002- , yieldObj6 :: Yield
2003- } deriving (Show)
2004-
2005-data Where = Where
2006- { whereWhereWhere :: Int
2007- } deriving (Show)
2008-
20092045 data Void = Void
20102046 { voidVoid :: Int
20112047 } deriving (Show)
@@ -5198,16 +5234,21 @@ instance FromJSON Select where
51985234 <$> v .: "select"
51995235
52005236 instance ToJSON Obj5 where
5201- toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 selfObj5 sendableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5 uuidObj5 varObj5 virtualObj5) =
5237+ toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 useSerializersObj5 ushortObj5) =
52025238 object $ foldMap (maybe [] pure)
52035239 [ Just $ "dummy" .= dummyObj5
5240+ , Just $ "KSerializer" .= kSerializerObj5
52045241 , Just $ "self" .= obj5SelfObj5
52055242 , Just $ "then" .= obj5ThenObj5
52065243 , Just $ "true" .= obj5TrueObj5
52075244 , Just $ "Type" .= obj5TypeObj5
5245+ , Just $ "PrimitiveKind" .= primitiveKindObj5
52085246 , Just $ "type" .= purpleTypeObj5
52095247 , Just $ "Self" .= selfObj5
52105248 , Just $ "Sendable" .= sendableObj5
5249+ , Just $ "SerialDescriptor" .= serialDescriptorObj5
5250+ , Just $ "SerialName" .= serialNameObj5
5251+ , Just $ "Serializable" .= serializableObj5
52115252 , Just $ "serialize" .= serializeObj5
52125253 , Just $ "SerializerProvider" .= serializerProviderObj5
52135254 , Just $ "set" .= setObj5
@@ -5258,25 +5299,25 @@ instance ToJSON Obj5 where
52585299 , Just $ "unowned" .= unownedObj5
52595300 , Just $ "unsafe" .= unsafeObj5
52605301 , Just $ "unsigned" .= unsignedObj5
5302+ , Just $ "UseSerializers" .= useSerializersObj5
52615303 , Just $ "ushort" .= ushortObj5
5262- , Just $ "using" .= usingObj5
5263- , Just $ "Utf8JsonReader" .= utf8JSONReaderObj5
5264- , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj5
5265- , Just $ "UUID" .= uuidObj5
5266- , Just $ "var" .= varObj5
5267- , Just $ "virtual" .= virtualObj5
52685304 ]
52695305
52705306 instance FromJSON Obj5 where
52715307 parseJSON (Object v) = Obj5
52725308 <$> v .: "dummy"
5309+ <*> v .: "KSerializer"
52735310 <*> v .: "self"
52745311 <*> v .: "then"
52755312 <*> v .: "true"
52765313 <*> v .: "Type"
5314+ <*> v .: "PrimitiveKind"
52775315 <*> v .: "type"
52785316 <*> v .: "Self"
52795317 <*> v .: "Sendable"
5318+ <*> v .: "SerialDescriptor"
5319+ <*> v .: "SerialName"
5320+ <*> v .: "Serializable"
52805321 <*> v .: "serialize"
52815322 <*> v .: "SerializerProvider"
52825323 <*> v .: "set"
@@ -5327,13 +5368,18 @@ instance FromJSON Obj5 where
53275368 <*> v .: "unowned"
53285369 <*> v .: "unsafe"
53295370 <*> v .: "unsigned"
5371+ <*> v .: "UseSerializers"
53305372 <*> v .: "ushort"
5331- <*> v .: "using"
5332- <*> v .: "Utf8JsonReader"
5333- <*> v .: "Utf8JsonWriter"
5334- <*> v .: "UUID"
5335- <*> v .: "var"
5336- <*> v .: "virtual"
5373+
5374+instance ToJSON KSerializer where
5375+ toJSON (KSerializer kSerializerKSerializer) =
5376+ object $ foldMap (maybe [] pure)
5377+ [ Just $ "KSerializer" .= kSerializerKSerializer
5378+ ]
5379+
5380+instance FromJSON KSerializer where
5381+ parseJSON (Object v) = KSerializer
5382+ <$> v .: "KSerializer"
53375383
53385384 instance ToJSON SelfClass where
53395385 toJSON (SelfClass selfSelfClass) =
@@ -5375,6 +5421,16 @@ instance FromJSON Type where
53755421 parseJSON (Object v) = Type
53765422 <$> v .: "Type"
53775423
5424+instance ToJSON PrimitiveKind where
5425+ toJSON (PrimitiveKind primitiveKindPrimitiveKind) =
5426+ object $ foldMap (maybe [] pure)
5427+ [ Just $ "PrimitiveKind" .= primitiveKindPrimitiveKind
5428+ ]
5429+
5430+instance FromJSON PrimitiveKind where
5431+ parseJSON (Object v) = PrimitiveKind
5432+ <$> v .: "PrimitiveKind"
5433+
53785434 instance ToJSON TypeClass where
53795435 toJSON (TypeClass typeTypeTypeClass) =
53805436 object $ foldMap (maybe [] pure)
@@ -5405,6 +5461,36 @@ instance FromJSON Sendable where
54055461 parseJSON (Object v) = Sendable
54065462 <$> v .: "Sendable"
54075463
5464+instance ToJSON SerialDescriptor where
5465+ toJSON (SerialDescriptor serialDescriptorSerialDescriptor) =
5466+ object $ foldMap (maybe [] pure)
5467+ [ Just $ "SerialDescriptor" .= serialDescriptorSerialDescriptor
5468+ ]
5469+
5470+instance FromJSON SerialDescriptor where
5471+ parseJSON (Object v) = SerialDescriptor
5472+ <$> v .: "SerialDescriptor"
5473+
5474+instance ToJSON SerialName where
5475+ toJSON (SerialName serialNameSerialName) =
5476+ object $ foldMap (maybe [] pure)
5477+ [ Just $ "SerialName" .= serialNameSerialName
5478+ ]
5479+
5480+instance FromJSON SerialName where
5481+ parseJSON (Object v) = SerialName
5482+ <$> v .: "SerialName"
5483+
5484+instance ToJSON Serializable where
5485+ toJSON (Serializable serializableSerializable) =
5486+ object $ foldMap (maybe [] pure)
5487+ [ Just $ "Serializable" .= serializableSerializable
5488+ ]
5489+
5490+instance FromJSON Serializable where
5491+ parseJSON (Object v) = Serializable
5492+ <$> v .: "Serializable"
5493+
54085494 instance ToJSON Serialize where
54095495 toJSON (Serialize serializeSerialize) =
54105496 object $ foldMap (maybe [] pure)
@@ -5905,6 +5991,16 @@ instance FromJSON Unsigned where
59055991 parseJSON (Object v) = Unsigned
59065992 <$> v .: "unsigned"
59075993
5994+instance ToJSON UseSerializers where
5995+ toJSON (UseSerializers useSerializersUseSerializers) =
5996+ object $ foldMap (maybe [] pure)
5997+ [ Just $ "UseSerializers" .= useSerializersUseSerializers
5998+ ]
5999+
6000+instance FromJSON UseSerializers where
6001+ parseJSON (Object v) = UseSerializers
6002+ <$> v .: "UseSerializers"
6003+
59086004 instance ToJSON Ushort where
59096005 toJSON (Ushort ushortUshort) =
59106006 object $ foldMap (maybe [] pure)
@@ -5915,6 +6011,62 @@ instance FromJSON Ushort where
59156011 parseJSON (Object v) = Ushort
59166012 <$> v .: "ushort"
59176013
6014+instance ToJSON Obj6 where
6015+ toJSON (Obj6 dummyObj6 obj6WhereObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
6016+ object $ foldMap (maybe [] pure)
6017+ [ Just $ "dummy" .= dummyObj6
6018+ , Just $ "where" .= obj6WhereObj6
6019+ , Just $ "using" .= usingObj6
6020+ , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6
6021+ , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj6
6022+ , Just $ "UUID" .= uuidObj6
6023+ , Just $ "var" .= varObj6
6024+ , Just $ "virtual" .= virtualObj6
6025+ , Just $ "void" .= voidObj6
6026+ , Just $ "volatile" .= volatileObj6
6027+ , Just $ "wchar_t" .= wcharTObj6
6028+ , Just $ "weak" .= weakObj6
6029+ , Just $ "while" .= whileObj6
6030+ , Just $ "willSet" .= willSetObj6
6031+ , Just $ "with" .= withObj6
6032+ , Just $ "xor" .= xorObj6
6033+ , Just $ "xor_eq" .= xorEqObj6
6034+ , Just $ "YES" .= yesObj6
6035+ , Just $ "yield" .= yieldObj6
6036+ ]
6037+
6038+instance FromJSON Obj6 where
6039+ parseJSON (Object v) = Obj6
6040+ <$> v .: "dummy"
6041+ <*> v .: "where"
6042+ <*> v .: "using"
6043+ <*> v .: "Utf8JsonReader"
6044+ <*> v .: "Utf8JsonWriter"
6045+ <*> v .: "UUID"
6046+ <*> v .: "var"
6047+ <*> v .: "virtual"
6048+ <*> v .: "void"
6049+ <*> v .: "volatile"
6050+ <*> v .: "wchar_t"
6051+ <*> v .: "weak"
6052+ <*> v .: "while"
6053+ <*> v .: "willSet"
6054+ <*> v .: "with"
6055+ <*> v .: "xor"
6056+ <*> v .: "xor_eq"
6057+ <*> v .: "YES"
6058+ <*> v .: "yield"
6059+
6060+instance ToJSON Where where
6061+ toJSON (Where whereWhereWhere) =
6062+ object $ foldMap (maybe [] pure)
6063+ [ Just $ "where" .= whereWhereWhere
6064+ ]
6065+
6066+instance FromJSON Where where
6067+ parseJSON (Object v) = Where
6068+ <$> v .: "where"
6069+
59186070 instance ToJSON Using where
59196071 toJSON (Using usingUsing) =
59206072 object $ foldMap (maybe [] pure)
@@ -5975,50 +6127,6 @@ instance FromJSON Virtual where
59756127 parseJSON (Object v) = Virtual
59766128 <$> v .: "virtual"
59776129
5978-instance ToJSON Obj6 where
5979- toJSON (Obj6 dummyObj6 obj6WhereObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
5980- object $ foldMap (maybe [] pure)
5981- [ Just $ "dummy" .= dummyObj6
5982- , Just $ "where" .= obj6WhereObj6
5983- , Just $ "void" .= voidObj6
5984- , Just $ "volatile" .= volatileObj6
5985- , Just $ "wchar_t" .= wcharTObj6
5986- , Just $ "weak" .= weakObj6
5987- , Just $ "while" .= whileObj6
5988- , Just $ "willSet" .= willSetObj6
5989- , Just $ "with" .= withObj6
5990- , Just $ "xor" .= xorObj6
5991- , Just $ "xor_eq" .= xorEqObj6
5992- , Just $ "YES" .= yesObj6
5993- , Just $ "yield" .= yieldObj6
5994- ]
5995-
5996-instance FromJSON Obj6 where
5997- parseJSON (Object v) = Obj6
5998- <$> v .: "dummy"
5999- <*> v .: "where"
6000- <*> v .: "void"
6001- <*> v .: "volatile"
6002- <*> v .: "wchar_t"
6003- <*> v .: "weak"
6004- <*> v .: "while"
6005- <*> v .: "willSet"
6006- <*> v .: "with"
6007- <*> v .: "xor"
6008- <*> v .: "xor_eq"
6009- <*> v .: "YES"
6010- <*> v .: "yield"
6011-
6012-instance ToJSON Where where
6013- toJSON (Where whereWhereWhere) =
6014- object $ foldMap (maybe [] pure)
6015- [ Just $ "where" .= whereWhereWhere
6016- ]
6017-
6018-instance FromJSON Where where
6019- parseJSON (Object v) = Where
6020- <$> v .: "where"
6021-
60226130 instance ToJSON Void where
60236131 toJSON (Void voidVoid) =
60246132 object $ foldMap (maybe [] pure)
Ajava-datetime-legacydefault / src / main / java / io / quicktype / KSerializer.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class KSerializer {
6+ private long kSerializer;
7+
8+ @JsonProperty("KSerializer")
9+ public long getKSerializer() { return kSerializer; }
10+ @JsonProperty("KSerializer")
11+ public void setKSerializer(long value) { this.kSerializer = value; }
12+}
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+36 −36
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj5 {
66 private long dummy;
7+ private KSerializer kSerializer;
78 private SelfClass obj5Self;
89 private Short obj5Short;
910 private Static obj5Static;
@@ -18,9 +19,13 @@ public class Obj5 {
1819 private True obj5True;
1920 private Try obj5Try;
2021 private TypeClass obj5Type;
22+ private PrimitiveKind primitiveKind;
2123 private TrueClass purpleTrue;
2224 private Self self;
2325 private Sendable sendable;
26+ private SerialDescriptor serialDescriptor;
27+ private SerialName serialName;
28+ private Serializable serializable;
2429 private Serialize serialize;
2530 private SerializerProviderClass serializerProvider;
2631 private Set set;
@@ -61,19 +66,19 @@ public class Obj5 {
6166 private Unowned unowned;
6267 private Unsafe unsafe;
6368 private Unsigned unsigned;
69+ private UseSerializers useSerializers;
6470 private Ushort ushort;
65- private Using using;
66- private Utf8JSONReader utf8JSONReader;
67- private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("KSerializer")
78+ public KSerializer getKSerializer() { return kSerializer; }
79+ @JsonProperty("KSerializer")
80+ public void setKSerializer(KSerializer value) { this.kSerializer = value; }
81+
7782 @JsonProperty("self")
7883 public SelfClass getObj5Self() { return obj5Self; }
7984 @JsonProperty("self")
@@ -144,6 +149,11 @@ public class Obj5 {
144149 @JsonProperty("type")
145150 public void setObj5Type(TypeClass value) { this.obj5Type = value; }
146151
152+ @JsonProperty("PrimitiveKind")
153+ public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
154+ @JsonProperty("PrimitiveKind")
155+ public void setPrimitiveKind(PrimitiveKind value) { this.primitiveKind = value; }
156+
147157 @JsonProperty("true")
148158 public TrueClass getPurpleTrue() { return purpleTrue; }
149159 @JsonProperty("true")
@@ -159,6 +169,21 @@ public class Obj5 {
159169 @JsonProperty("Sendable")
160170 public void setSendable(Sendable value) { this.sendable = value; }
161171
172+ @JsonProperty("SerialDescriptor")
173+ public SerialDescriptor getSerialDescriptor() { return serialDescriptor; }
174+ @JsonProperty("SerialDescriptor")
175+ public void setSerialDescriptor(SerialDescriptor value) { this.serialDescriptor = value; }
176+
177+ @JsonProperty("SerialName")
178+ public SerialName getSerialName() { return serialName; }
179+ @JsonProperty("SerialName")
180+ public void setSerialName(SerialName value) { this.serialName = value; }
181+
182+ @JsonProperty("Serializable")
183+ public Serializable getSerializable() { return serializable; }
184+ @JsonProperty("Serializable")
185+ public void setSerializable(Serializable value) { this.serializable = value; }
186+
162187 @JsonProperty("serialize")
163188 public Serialize getSerialize() { return serialize; }
164189 @JsonProperty("serialize")
@@ -359,38 +384,13 @@ public class Obj5 {
359384 @JsonProperty("unsigned")
360385 public void setUnsigned(Unsigned value) { this.unsigned = value; }
361386
387+ @JsonProperty("UseSerializers")
388+ public UseSerializers getUseSerializers() { return useSerializers; }
389+ @JsonProperty("UseSerializers")
390+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391+
362392 @JsonProperty("ushort")
363393 public Ushort getUshort() { return ushort; }
364394 @JsonProperty("ushort")
365395 public void setUshort(Ushort value) { this.ushort = value; }
366-
367- @JsonProperty("using")
368- public Using getUsing() { return using; }
369- @JsonProperty("using")
370- public void setUsing(Using value) { this.using = value; }
371-
372- @JsonProperty("Utf8JsonReader")
373- public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
374- @JsonProperty("Utf8JsonReader")
375- public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
376-
377- @JsonProperty("Utf8JsonWriter")
378- public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379- @JsonProperty("Utf8JsonWriter")
380- public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+36 −0
@@ -7,6 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Using using;
11+ private Utf8JSONReader utf8JSONReader;
12+ private Utf8JSONWriter utf8JSONWriter;
13+ private UUIDClass uuid;
14+ private Var var;
15+ private Virtual virtual;
1016 private WcharT wcharT;
1117 private Weak weak;
1218 private Where where;
@@ -37,6 +43,36 @@ public class Obj6 {
3743 @JsonProperty("while")
3844 public void setObj6While(While value) { this.obj6While = value; }
3945
46+ @JsonProperty("using")
47+ public Using getUsing() { return using; }
48+ @JsonProperty("using")
49+ public void setUsing(Using value) { this.using = value; }
50+
51+ @JsonProperty("Utf8JsonReader")
52+ public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
53+ @JsonProperty("Utf8JsonReader")
54+ public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
55+
56+ @JsonProperty("Utf8JsonWriter")
57+ public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
58+ @JsonProperty("Utf8JsonWriter")
59+ public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
60+
61+ @JsonProperty("UUID")
62+ public UUIDClass getUUID() { return uuid; }
63+ @JsonProperty("UUID")
64+ public void setUUID(UUIDClass value) { this.uuid = value; }
65+
66+ @JsonProperty("var")
67+ public Var getVar() { return var; }
68+ @JsonProperty("var")
69+ public void setVar(Var value) { this.var = value; }
70+
71+ @JsonProperty("virtual")
72+ public Virtual getVirtual() { return virtual; }
73+ @JsonProperty("virtual")
74+ public void setVirtual(Virtual value) { this.virtual = value; }
75+
4076 @JsonProperty("wchar_t")
4177 public WcharT getWcharT() { return wcharT; }
4278 @JsonProperty("wchar_t")
Ajava-datetime-legacydefault / src / main / java / io / quicktype / PrimitiveKind.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class PrimitiveKind {
6+ private long primitiveKind;
7+
8+ @JsonProperty("PrimitiveKind")
9+ public long getPrimitiveKind() { return primitiveKind; }
10+ @JsonProperty("PrimitiveKind")
11+ public void setPrimitiveKind(long value) { this.primitiveKind = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / SerialDescriptor.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialDescriptor {
6+ private long serialDescriptor;
7+
8+ @JsonProperty("SerialDescriptor")
9+ public long getSerialDescriptor() { return serialDescriptor; }
10+ @JsonProperty("SerialDescriptor")
11+ public void setSerialDescriptor(long value) { this.serialDescriptor = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / Serializable.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class Serializable {
6+ private long serializable;
7+
8+ @JsonProperty("Serializable")
9+ public long getSerializable() { return serializable; }
10+ @JsonProperty("Serializable")
11+ public void setSerializable(long value) { this.serializable = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / SerialName.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialName {
6+ private long serialName;
7+
8+ @JsonProperty("SerialName")
9+ public long getSerialName() { return serialName; }
10+ @JsonProperty("SerialName")
11+ public void setSerialName(long value) { this.serialName = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / UseSerializers.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class UseSerializers {
6+ private long useSerializers;
7+
8+ @JsonProperty("UseSerializers")
9+ public long getUseSerializers() { return useSerializers; }
10+ @JsonProperty("UseSerializers")
11+ public void setUseSerializers(long value) { this.useSerializers = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / KSerializer.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class KSerializer {
6+ private long kSerializer;
7+
8+ @JsonProperty("KSerializer")
9+ public long getKSerializer() { return kSerializer; }
10+ @JsonProperty("KSerializer")
11+ public void setKSerializer(long value) { this.kSerializer = value; }
12+}
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+36 −36
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj5 {
66 private long dummy;
7+ private KSerializer kSerializer;
78 private SelfClass obj5Self;
89 private Short obj5Short;
910 private Static obj5Static;
@@ -18,9 +19,13 @@ public class Obj5 {
1819 private True obj5True;
1920 private Try obj5Try;
2021 private TypeClass obj5Type;
22+ private PrimitiveKind primitiveKind;
2123 private TrueClass purpleTrue;
2224 private Self self;
2325 private Sendable sendable;
26+ private SerialDescriptor serialDescriptor;
27+ private SerialName serialName;
28+ private Serializable serializable;
2429 private Serialize serialize;
2530 private SerializerProviderClass serializerProvider;
2631 private Set set;
@@ -61,19 +66,19 @@ public class Obj5 {
6166 private Unowned unowned;
6267 private Unsafe unsafe;
6368 private Unsigned unsigned;
69+ private UseSerializers useSerializers;
6470 private Ushort ushort;
65- private Using using;
66- private Utf8JSONReader utf8JSONReader;
67- private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("KSerializer")
78+ public KSerializer getKSerializer() { return kSerializer; }
79+ @JsonProperty("KSerializer")
80+ public void setKSerializer(KSerializer value) { this.kSerializer = value; }
81+
7782 @JsonProperty("self")
7883 public SelfClass getObj5Self() { return obj5Self; }
7984 @JsonProperty("self")
@@ -144,6 +149,11 @@ public class Obj5 {
144149 @JsonProperty("type")
145150 public void setObj5Type(TypeClass value) { this.obj5Type = value; }
146151
152+ @JsonProperty("PrimitiveKind")
153+ public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
154+ @JsonProperty("PrimitiveKind")
155+ public void setPrimitiveKind(PrimitiveKind value) { this.primitiveKind = value; }
156+
147157 @JsonProperty("true")
148158 public TrueClass getPurpleTrue() { return purpleTrue; }
149159 @JsonProperty("true")
@@ -159,6 +169,21 @@ public class Obj5 {
159169 @JsonProperty("Sendable")
160170 public void setSendable(Sendable value) { this.sendable = value; }
161171
172+ @JsonProperty("SerialDescriptor")
173+ public SerialDescriptor getSerialDescriptor() { return serialDescriptor; }
174+ @JsonProperty("SerialDescriptor")
175+ public void setSerialDescriptor(SerialDescriptor value) { this.serialDescriptor = value; }
176+
177+ @JsonProperty("SerialName")
178+ public SerialName getSerialName() { return serialName; }
179+ @JsonProperty("SerialName")
180+ public void setSerialName(SerialName value) { this.serialName = value; }
181+
182+ @JsonProperty("Serializable")
183+ public Serializable getSerializable() { return serializable; }
184+ @JsonProperty("Serializable")
185+ public void setSerializable(Serializable value) { this.serializable = value; }
186+
162187 @JsonProperty("serialize")
163188 public Serialize getSerialize() { return serialize; }
164189 @JsonProperty("serialize")
@@ -359,38 +384,13 @@ public class Obj5 {
359384 @JsonProperty("unsigned")
360385 public void setUnsigned(Unsigned value) { this.unsigned = value; }
361386
387+ @JsonProperty("UseSerializers")
388+ public UseSerializers getUseSerializers() { return useSerializers; }
389+ @JsonProperty("UseSerializers")
390+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391+
362392 @JsonProperty("ushort")
363393 public Ushort getUshort() { return ushort; }
364394 @JsonProperty("ushort")
365395 public void setUshort(Ushort value) { this.ushort = value; }
366-
367- @JsonProperty("using")
368- public Using getUsing() { return using; }
369- @JsonProperty("using")
370- public void setUsing(Using value) { this.using = value; }
371-
372- @JsonProperty("Utf8JsonReader")
373- public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
374- @JsonProperty("Utf8JsonReader")
375- public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
376-
377- @JsonProperty("Utf8JsonWriter")
378- public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379- @JsonProperty("Utf8JsonWriter")
380- public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+36 −0
@@ -7,6 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Using using;
11+ private Utf8JSONReader utf8JSONReader;
12+ private Utf8JSONWriter utf8JSONWriter;
13+ private UUIDClass uuid;
14+ private Var var;
15+ private Virtual virtual;
1016 private WcharT wcharT;
1117 private Weak weak;
1218 private Where where;
@@ -37,6 +43,36 @@ public class Obj6 {
3743 @JsonProperty("while")
3844 public void setObj6While(While value) { this.obj6While = value; }
3945
46+ @JsonProperty("using")
47+ public Using getUsing() { return using; }
48+ @JsonProperty("using")
49+ public void setUsing(Using value) { this.using = value; }
50+
51+ @JsonProperty("Utf8JsonReader")
52+ public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
53+ @JsonProperty("Utf8JsonReader")
54+ public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
55+
56+ @JsonProperty("Utf8JsonWriter")
57+ public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
58+ @JsonProperty("Utf8JsonWriter")
59+ public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
60+
61+ @JsonProperty("UUID")
62+ public UUIDClass getUUID() { return uuid; }
63+ @JsonProperty("UUID")
64+ public void setUUID(UUIDClass value) { this.uuid = value; }
65+
66+ @JsonProperty("var")
67+ public Var getVar() { return var; }
68+ @JsonProperty("var")
69+ public void setVar(Var value) { this.var = value; }
70+
71+ @JsonProperty("virtual")
72+ public Virtual getVirtual() { return virtual; }
73+ @JsonProperty("virtual")
74+ public void setVirtual(Virtual value) { this.virtual = value; }
75+
4076 @JsonProperty("wchar_t")
4177 public WcharT getWcharT() { return wcharT; }
4278 @JsonProperty("wchar_t")
Ajava-lombokdefault / src / main / java / io / quicktype / PrimitiveKind.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class PrimitiveKind {
6+ private long primitiveKind;
7+
8+ @JsonProperty("PrimitiveKind")
9+ public long getPrimitiveKind() { return primitiveKind; }
10+ @JsonProperty("PrimitiveKind")
11+ public void setPrimitiveKind(long value) { this.primitiveKind = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / SerialDescriptor.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialDescriptor {
6+ private long serialDescriptor;
7+
8+ @JsonProperty("SerialDescriptor")
9+ public long getSerialDescriptor() { return serialDescriptor; }
10+ @JsonProperty("SerialDescriptor")
11+ public void setSerialDescriptor(long value) { this.serialDescriptor = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / Serializable.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class Serializable {
6+ private long serializable;
7+
8+ @JsonProperty("Serializable")
9+ public long getSerializable() { return serializable; }
10+ @JsonProperty("Serializable")
11+ public void setSerializable(long value) { this.serializable = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / SerialName.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialName {
6+ private long serialName;
7+
8+ @JsonProperty("SerialName")
9+ public long getSerialName() { return serialName; }
10+ @JsonProperty("SerialName")
11+ public void setSerialName(long value) { this.serialName = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / UseSerializers.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class UseSerializers {
6+ private long useSerializers;
7+
8+ @JsonProperty("UseSerializers")
9+ public long getUseSerializers() { return useSerializers; }
10+ @JsonProperty("UseSerializers")
11+ public void setUseSerializers(long value) { this.useSerializers = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / KSerializer.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class KSerializer {
6+ private long kSerializer;
7+
8+ @JsonProperty("KSerializer")
9+ public long getKSerializer() { return kSerializer; }
10+ @JsonProperty("KSerializer")
11+ public void setKSerializer(long value) { this.kSerializer = value; }
12+}
Mjavadefault / src / main / java / io / quicktype / Obj5.java+36 −36
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj5 {
66 private long dummy;
7+ private KSerializer kSerializer;
78 private SelfClass obj5Self;
89 private Short obj5Short;
910 private Static obj5Static;
@@ -18,9 +19,13 @@ public class Obj5 {
1819 private True obj5True;
1920 private Try obj5Try;
2021 private TypeClass obj5Type;
22+ private PrimitiveKind primitiveKind;
2123 private TrueClass purpleTrue;
2224 private Self self;
2325 private Sendable sendable;
26+ private SerialDescriptor serialDescriptor;
27+ private SerialName serialName;
28+ private Serializable serializable;
2429 private Serialize serialize;
2530 private SerializerProviderClass serializerProvider;
2631 private Set set;
@@ -61,19 +66,19 @@ public class Obj5 {
6166 private Unowned unowned;
6267 private Unsafe unsafe;
6368 private Unsigned unsigned;
69+ private UseSerializers useSerializers;
6470 private Ushort ushort;
65- private Using using;
66- private Utf8JSONReader utf8JSONReader;
67- private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("KSerializer")
78+ public KSerializer getKSerializer() { return kSerializer; }
79+ @JsonProperty("KSerializer")
80+ public void setKSerializer(KSerializer value) { this.kSerializer = value; }
81+
7782 @JsonProperty("self")
7883 public SelfClass getObj5Self() { return obj5Self; }
7984 @JsonProperty("self")
@@ -144,6 +149,11 @@ public class Obj5 {
144149 @JsonProperty("type")
145150 public void setObj5Type(TypeClass value) { this.obj5Type = value; }
146151
152+ @JsonProperty("PrimitiveKind")
153+ public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
154+ @JsonProperty("PrimitiveKind")
155+ public void setPrimitiveKind(PrimitiveKind value) { this.primitiveKind = value; }
156+
147157 @JsonProperty("true")
148158 public TrueClass getPurpleTrue() { return purpleTrue; }
149159 @JsonProperty("true")
@@ -159,6 +169,21 @@ public class Obj5 {
159169 @JsonProperty("Sendable")
160170 public void setSendable(Sendable value) { this.sendable = value; }
161171
172+ @JsonProperty("SerialDescriptor")
173+ public SerialDescriptor getSerialDescriptor() { return serialDescriptor; }
174+ @JsonProperty("SerialDescriptor")
175+ public void setSerialDescriptor(SerialDescriptor value) { this.serialDescriptor = value; }
176+
177+ @JsonProperty("SerialName")
178+ public SerialName getSerialName() { return serialName; }
179+ @JsonProperty("SerialName")
180+ public void setSerialName(SerialName value) { this.serialName = value; }
181+
182+ @JsonProperty("Serializable")
183+ public Serializable getSerializable() { return serializable; }
184+ @JsonProperty("Serializable")
185+ public void setSerializable(Serializable value) { this.serializable = value; }
186+
162187 @JsonProperty("serialize")
163188 public Serialize getSerialize() { return serialize; }
164189 @JsonProperty("serialize")
@@ -359,38 +384,13 @@ public class Obj5 {
359384 @JsonProperty("unsigned")
360385 public void setUnsigned(Unsigned value) { this.unsigned = value; }
361386
387+ @JsonProperty("UseSerializers")
388+ public UseSerializers getUseSerializers() { return useSerializers; }
389+ @JsonProperty("UseSerializers")
390+ public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391+
362392 @JsonProperty("ushort")
363393 public Ushort getUshort() { return ushort; }
364394 @JsonProperty("ushort")
365395 public void setUshort(Ushort value) { this.ushort = value; }
366-
367- @JsonProperty("using")
368- public Using getUsing() { return using; }
369- @JsonProperty("using")
370- public void setUsing(Using value) { this.using = value; }
371-
372- @JsonProperty("Utf8JsonReader")
373- public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
374- @JsonProperty("Utf8JsonReader")
375- public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
376-
377- @JsonProperty("Utf8JsonWriter")
378- public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379- @JsonProperty("Utf8JsonWriter")
380- public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj6.java+36 −0
@@ -7,6 +7,12 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Using using;
11+ private Utf8JSONReader utf8JSONReader;
12+ private Utf8JSONWriter utf8JSONWriter;
13+ private UUIDClass uuid;
14+ private Var var;
15+ private Virtual virtual;
1016 private WcharT wcharT;
1117 private Weak weak;
1218 private Where where;
@@ -37,6 +43,36 @@ public class Obj6 {
3743 @JsonProperty("while")
3844 public void setObj6While(While value) { this.obj6While = value; }
3945
46+ @JsonProperty("using")
47+ public Using getUsing() { return using; }
48+ @JsonProperty("using")
49+ public void setUsing(Using value) { this.using = value; }
50+
51+ @JsonProperty("Utf8JsonReader")
52+ public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; }
53+ @JsonProperty("Utf8JsonReader")
54+ public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; }
55+
56+ @JsonProperty("Utf8JsonWriter")
57+ public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
58+ @JsonProperty("Utf8JsonWriter")
59+ public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
60+
61+ @JsonProperty("UUID")
62+ public UUIDClass getUUID() { return uuid; }
63+ @JsonProperty("UUID")
64+ public void setUUID(UUIDClass value) { this.uuid = value; }
65+
66+ @JsonProperty("var")
67+ public Var getVar() { return var; }
68+ @JsonProperty("var")
69+ public void setVar(Var value) { this.var = value; }
70+
71+ @JsonProperty("virtual")
72+ public Virtual getVirtual() { return virtual; }
73+ @JsonProperty("virtual")
74+ public void setVirtual(Virtual value) { this.virtual = value; }
75+
4076 @JsonProperty("wchar_t")
4177 public WcharT getWcharT() { return wcharT; }
4278 @JsonProperty("wchar_t")
Ajavadefault / src / main / java / io / quicktype / PrimitiveKind.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class PrimitiveKind {
6+ private long primitiveKind;
7+
8+ @JsonProperty("PrimitiveKind")
9+ public long getPrimitiveKind() { return primitiveKind; }
10+ @JsonProperty("PrimitiveKind")
11+ public void setPrimitiveKind(long value) { this.primitiveKind = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / SerialDescriptor.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialDescriptor {
6+ private long serialDescriptor;
7+
8+ @JsonProperty("SerialDescriptor")
9+ public long getSerialDescriptor() { return serialDescriptor; }
10+ @JsonProperty("SerialDescriptor")
11+ public void setSerialDescriptor(long value) { this.serialDescriptor = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / Serializable.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class Serializable {
6+ private long serializable;
7+
8+ @JsonProperty("Serializable")
9+ public long getSerializable() { return serializable; }
10+ @JsonProperty("Serializable")
11+ public void setSerializable(long value) { this.serializable = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / SerialName.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class SerialName {
6+ private long serialName;
7+
8+ @JsonProperty("SerialName")
9+ public long getSerialName() { return serialName; }
10+ @JsonProperty("SerialName")
11+ public void setSerialName(long value) { this.serialName = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / UseSerializers.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class UseSerializers {
6+ private long useSerializers;
7+
8+ @JsonProperty("UseSerializers")
9+ public long getUseSerializers() { return useSerializers; }
10+ @JsonProperty("UseSerializers")
11+ public void setUseSerializers(long value) { this.useSerializers = value; }
12+}
Mjavascript-prop-typesdefault / toplevel.js+58 −28
@@ -275,8 +275,13 @@ let _Sbyte;
275275 let _Sealed;
276276 let _Select;
277277 let _Obj5;
278+let _KSerializer;
279+let _PrimitiveKind;
278280 let _Self;
279281 let _Sendable;
282+let _SerialDescriptor;
283+let _SerialName;
284+let _Serializable;
280285 let _SerializerProvider;
281286 let _SimpleModule;
282287 let _Standards;
@@ -287,9 +292,7 @@ let _TimeOnlyConverter;
287292 let _TimeZone;
288293 let _True;
289294 let _Type;
290-let _UUID;
291-let _Utf8JSONReader;
292-let _Utf8JSONWriter;
295+let _UseSerializers;
293296 let _SelfClass;
294297 let _Serialize;
295298 let _Set;
@@ -336,11 +339,14 @@ let _Unowned;
336339 let _Unsafe;
337340 let _Unsigned;
338341 let _Ushort;
342+let _Obj6;
343+let _UUID;
344+let _Utf8JSONReader;
345+let _Utf8JSONWriter;
346+let _Yes;
339347 let _Using;
340348 let _Var;
341349 let _Virtual;
342-let _Obj6;
343-let _Yes;
344350 let _Void;
345351 let _Volatile;
346352 let _WcharT;
@@ -1389,12 +1395,27 @@ _Obj4 = PropTypes.shape({
13891395 "sealed": _Sealed,
13901396 "select": _Select,
13911397 });
1398+_KSerializer = PropTypes.shape({
1399+ "KSerializer": PropTypes.oneOfType([Integer]).isRequired,
1400+});
1401+_PrimitiveKind = PropTypes.shape({
1402+ "PrimitiveKind": PropTypes.oneOfType([Integer]).isRequired,
1403+});
13921404 _Self = PropTypes.shape({
13931405 "Self": PropTypes.oneOfType([Integer]).isRequired,
13941406 });
13951407 _Sendable = PropTypes.shape({
13961408 "Sendable": PropTypes.oneOfType([Integer]).isRequired,
13971409 });
1410+_SerialDescriptor = PropTypes.shape({
1411+ "SerialDescriptor": PropTypes.oneOfType([Integer]).isRequired,
1412+});
1413+_SerialName = PropTypes.shape({
1414+ "SerialName": PropTypes.oneOfType([Integer]).isRequired,
1415+});
1416+_Serializable = PropTypes.shape({
1417+ "Serializable": PropTypes.oneOfType([Integer]).isRequired,
1418+});
13981419 _SerializerProvider = PropTypes.shape({
13991420 "SerializerProvider": PropTypes.oneOfType([Integer]).isRequired,
14001421 });
@@ -1425,14 +1446,8 @@ _True = PropTypes.shape({
14251446 _Type = PropTypes.shape({
14261447 "Type": PropTypes.oneOfType([Integer]).isRequired,
14271448 });
1428-_UUID = PropTypes.shape({
1429- "UUID": PropTypes.oneOfType([Integer]).isRequired,
1430-});
1431-_Utf8JSONReader = PropTypes.shape({
1432- "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired,
1433-});
1434-_Utf8JSONWriter = PropTypes.shape({
1435- "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired,
1449+_UseSerializers = PropTypes.shape({
1450+ "UseSerializers": PropTypes.oneOfType([Integer]).isRequired,
14361451 });
14371452 _SelfClass = PropTypes.shape({
14381453 "self": PropTypes.oneOfType([Integer]).isRequired,
@@ -1572,18 +1587,14 @@ _Unsigned = PropTypes.shape({
15721587 _Ushort = PropTypes.shape({
15731588 "ushort": PropTypes.oneOfType([Integer]).isRequired,
15741589 });
1575-_Using = PropTypes.shape({
1576- "using": PropTypes.oneOfType([Integer]).isRequired,
1577-});
1578-_Var = PropTypes.shape({
1579- "var": PropTypes.oneOfType([Integer]).isRequired,
1580-});
1581-_Virtual = PropTypes.shape({
1582- "virtual": PropTypes.oneOfType([Integer]).isRequired,
1583-});
15841590 _Obj5 = PropTypes.shape({
1591+ "KSerializer": _KSerializer,
1592+ "PrimitiveKind": _PrimitiveKind,
15851593 "Self": _Self,
15861594 "Sendable": _Sendable,
1595+ "SerialDescriptor": _SerialDescriptor,
1596+ "SerialName": _SerialName,
1597+ "Serializable": _Serializable,
15871598 "SerializerProvider": _SerializerProvider,
15881599 "SimpleModule": _SimpleModule,
15891600 "Standards": _Standards,
@@ -1594,9 +1605,7 @@ _Obj5 = PropTypes.shape({
15941605 "TimeZone": _TimeZone,
15951606 "True": _True,
15961607 "Type": _Type,
1597- "UUID": _UUID,
1598- "Utf8JsonReader": _Utf8JSONReader,
1599- "Utf8JsonWriter": _Utf8JSONWriter,
1608+ "UseSerializers": _UseSerializers,
16001609 "dummy": PropTypes.oneOfType([Integer]).isRequired,
16011610 "self": _SelfClass,
16021611 "serialize": _Serialize,
@@ -1644,13 +1653,28 @@ _Obj5 = PropTypes.shape({
16441653 "unsafe": _Unsafe,
16451654 "unsigned": _Unsigned,
16461655 "ushort": _Ushort,
1647- "using": _Using,
1648- "var": _Var,
1649- "virtual": _Virtual,
1656+});
1657+_UUID = PropTypes.shape({
1658+ "UUID": PropTypes.oneOfType([Integer]).isRequired,
1659+});
1660+_Utf8JSONReader = PropTypes.shape({
1661+ "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired,
1662+});
1663+_Utf8JSONWriter = PropTypes.shape({
1664+ "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired,
16501665 });
16511666 _Yes = PropTypes.shape({
16521667 "YES": PropTypes.oneOfType([Integer]).isRequired,
16531668 });
1669+_Using = PropTypes.shape({
1670+ "using": PropTypes.oneOfType([Integer]).isRequired,
1671+});
1672+_Var = PropTypes.shape({
1673+ "var": PropTypes.oneOfType([Integer]).isRequired,
1674+});
1675+_Virtual = PropTypes.shape({
1676+ "virtual": PropTypes.oneOfType([Integer]).isRequired,
1677+});
16541678 _Void = PropTypes.shape({
16551679 "void": PropTypes.oneOfType([Integer]).isRequired,
16561680 });
@@ -1685,8 +1709,14 @@ _Yield = PropTypes.shape({
16851709 "yield": PropTypes.oneOfType([Integer]).isRequired,
16861710 });
16871711 _Obj6 = PropTypes.shape({
1712+ "UUID": _UUID,
1713+ "Utf8JsonReader": _Utf8JSONReader,
1714+ "Utf8JsonWriter": _Utf8JSONWriter,
16881715 "YES": _Yes,
16891716 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1717+ "using": _Using,
1718+ "var": _Var,
1719+ "virtual": _Virtual,
16901720 "void": _Void,
16911721 "volatile": _Volatile,
16921722 "wchar_t": _WcharT,
Mjavascriptdefault / TopLevel.js+47 −23
@@ -1239,8 +1239,13 @@ const typeMap = {
12391239 { json: "select", js: "select", typ: i(0) },
12401240 ], false),
12411241 "Obj5": o([
1242+ { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
1243+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
12421244 { json: "Self", js: "Self", typ: r("Self") },
12431245 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
1246+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
1247+ { json: "SerialName", js: "SerialName", typ: r("SerialName") },
1248+ { json: "Serializable", js: "Serializable", typ: r("Serializable") },
12441249 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
12451250 { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") },
12461251 { json: "Standards", js: "Standards", typ: r("Standards") },
@@ -1251,9 +1256,7 @@ const typeMap = {
12511256 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
12521257 { json: "True", js: "True", typ: r("True") },
12531258 { json: "Type", js: "Type", typ: r("Type") },
1254- { json: "UUID", js: "UUID", typ: r("UUID") },
1255- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
1256- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
1259+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
12571260 { json: "dummy", js: "dummy", typ: i(0) },
12581261 { json: "self", js: "self", typ: r("SelfClass") },
12591262 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -1301,9 +1304,12 @@ const typeMap = {
13011304 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
13021305 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
13031306 { json: "ushort", js: "ushort", typ: r("Ushort") },
1304- { json: "using", js: "using", typ: r("Using") },
1305- { json: "var", js: "var", typ: r("Var") },
1306- { json: "virtual", js: "virtual", typ: r("Virtual") },
1307+ ], false),
1308+ "KSerializer": o([
1309+ { json: "KSerializer", js: "KSerializer", typ: i(0) },
1310+ ], false),
1311+ "PrimitiveKind": o([
1312+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
13071313 ], false),
13081314 "Self": o([
13091315 { json: "Self", js: "Self", typ: i(0) },
@@ -1311,6 +1317,15 @@ const typeMap = {
13111317 "Sendable": o([
13121318 { json: "Sendable", js: "Sendable", typ: i(0) },
13131319 ], false),
1320+ "SerialDescriptor": o([
1321+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: i(0) },
1322+ ], false),
1323+ "SerialName": o([
1324+ { json: "SerialName", js: "SerialName", typ: i(0) },
1325+ ], false),
1326+ "Serializable": o([
1327+ { json: "Serializable", js: "Serializable", typ: i(0) },
1328+ ], false),
13141329 "SerializerProvider": o([
13151330 { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) },
13161331 ], false),
@@ -1341,14 +1356,8 @@ const typeMap = {
13411356 "Type": o([
13421357 { json: "Type", js: "Type", typ: i(0) },
13431358 ], false),
1344- "UUID": o([
1345- { json: "UUID", js: "UUID", typ: i(0) },
1346- ], false),
1347- "Utf8JSONReader": o([
1348- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
1349- ], false),
1350- "Utf8JSONWriter": o([
1351- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
1359+ "UseSerializers": o([
1360+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
13521361 ], false),
13531362 "SelfClass": o([
13541363 { json: "self", js: "self", typ: i(0) },
@@ -1488,18 +1497,15 @@ const typeMap = {
14881497 "Ushort": o([
14891498 { json: "ushort", js: "ushort", typ: i(0) },
14901499 ], false),
1491- "Using": o([
1492- { json: "using", js: "using", typ: i(0) },
1493- ], false),
1494- "Var": o([
1495- { json: "var", js: "var", typ: i(0) },
1496- ], false),
1497- "Virtual": o([
1498- { json: "virtual", js: "virtual", typ: i(0) },
1499- ], false),
15001500 "Obj6": o([
1501+ { json: "UUID", js: "UUID", typ: r("UUID") },
1502+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
1503+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
15011504 { json: "YES", js: "YES", typ: r("Yes") },
15021505 { json: "dummy", js: "dummy", typ: i(0) },
1506+ { json: "using", js: "using", typ: r("Using") },
1507+ { json: "var", js: "var", typ: r("Var") },
1508+ { json: "virtual", js: "virtual", typ: r("Virtual") },
15031509 { json: "void", js: "void", typ: r("Void") },
15041510 { json: "volatile", js: "volatile", typ: r("Volatile") },
15051511 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -1512,9 +1518,27 @@ const typeMap = {
15121518 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
15131519 { json: "yield", js: "yield", typ: r("Yield") },
15141520 ], false),
1521+ "UUID": o([
1522+ { json: "UUID", js: "UUID", typ: i(0) },
1523+ ], false),
1524+ "Utf8JSONReader": o([
1525+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
1526+ ], false),
1527+ "Utf8JSONWriter": o([
1528+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
1529+ ], false),
15151530 "Yes": o([
15161531 { json: "YES", js: "YES", typ: i(0) },
15171532 ], false),
1533+ "Using": o([
1534+ { json: "using", js: "using", typ: i(0) },
1535+ ], false),
1536+ "Var": o([
1537+ { json: "var", js: "var", typ: i(0) },
1538+ ], false),
1539+ "Virtual": o([
1540+ { json: "virtual", js: "virtual", typ: i(0) },
1541+ ], false),
15181542 "Void": o([
15191543 { json: "void", js: "void", typ: i(0) },
15201544 ], false),
Mkotlin-jacksondefault / TopLevel.kt+89 −41
@@ -2148,6 +2148,9 @@ data class Obj5 (
21482148 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21492149 val dummy: Long,
21502150
2151+ @get:JsonProperty("KSerializer", required=true)@field:JsonProperty("KSerializer", required=true)
2152+ val kSerializer: KSerializer,
2153+
21512154 @get:JsonProperty("self", required=true)@field:JsonProperty("self", required=true)
21522155 val obj5Self: SelfClass,
21532156
@@ -2175,8 +2178,8 @@ data class Obj5 (
21752178 @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true)
21762179 val obj5Typeof: Typeof,
21772180
2178- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2179- val obj5Var: Var,
2181+ @get:JsonProperty("PrimitiveKind", required=true)@field:JsonProperty("PrimitiveKind", required=true)
2182+ val primitiveKind: PrimitiveKind,
21802183
21812184 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21822185 val purpleTrue: TrueClass,
@@ -2187,6 +2190,15 @@ data class Obj5 (
21872190 @get:JsonProperty("Sendable", required=true)@field:JsonProperty("Sendable", required=true)
21882191 val sendable: Sendable,
21892192
2193+ @get:JsonProperty("SerialDescriptor", required=true)@field:JsonProperty("SerialDescriptor", required=true)
2194+ val serialDescriptor: SerialDescriptor,
2195+
2196+ @get:JsonProperty("SerialName", required=true)@field:JsonProperty("SerialName", required=true)
2197+ val serialName: SerialName,
2198+
2199+ @get:JsonProperty("Serializable", required=true)@field:JsonProperty("Serializable", required=true)
2200+ val serializable: Serializable,
2201+
21902202 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21912203 val serialize: Serialize,
21922204
@@ -2322,23 +2334,16 @@ data class Obj5 (
23222334 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
23232335 val unsigned: Unsigned,
23242336
2325- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2326- val ushort: Ushort,
2337+ @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2338+ val useSerializers: UseSerializers,
23272339
23282340 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2329- val using: Using,
2330-
2331- @get:JsonProperty("Utf8JsonReader", required=true)@field:JsonProperty("Utf8JsonReader", required=true)
2332- val utf8JSONReader: Utf8JSONReader,
2333-
2334- @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true)
2335- val utf8JSONWriter: Utf8JSONWriter,
2336-
2337- @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2338- val uuid: UUID,
2341+ val ushort: Ushort
2342+)
23392343
2340- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2341- val virtual: Virtual
2344+data class KSerializer (
2345+ @get:JsonProperty("KSerializer", required=true)@field:JsonProperty("KSerializer", required=true)
2346+ val kSerializer: Long
23422347 )
23432348
23442349 data class SelfClass (
@@ -2386,9 +2391,9 @@ data class Typeof (
23862391 val typeofTypeof: Long
23872392 )
23882393
2389-data class Var (
2390- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2391- val varVar: Long
2394+data class PrimitiveKind (
2395+ @get:JsonProperty("PrimitiveKind", required=true)@field:JsonProperty("PrimitiveKind", required=true)
2396+ val primitiveKind: Long
23922397 )
23932398
23942399 data class TrueClass (
@@ -2406,6 +2411,21 @@ data class Sendable (
24062411 val sendable: Long
24072412 )
24082413
2414+data class SerialDescriptor (
2415+ @get:JsonProperty("SerialDescriptor", required=true)@field:JsonProperty("SerialDescriptor", required=true)
2416+ val serialDescriptor: Long
2417+)
2418+
2419+data class SerialName (
2420+ @get:JsonProperty("SerialName", required=true)@field:JsonProperty("SerialName", required=true)
2421+ val serialName: Long
2422+)
2423+
2424+data class Serializable (
2425+ @get:JsonProperty("Serializable", required=true)@field:JsonProperty("Serializable", required=true)
2426+ val serializable: Long
2427+)
2428+
24092429 data class Serialize (
24102430 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
24112431 val serialize: Long
@@ -2631,42 +2651,40 @@ data class Unsigned (
26312651 val unsigned: Long
26322652 )
26332653
2654+data class UseSerializers (
2655+ @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2656+ val useSerializers: Long
2657+)
2658+
26342659 data class Ushort (
26352660 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26362661 val ushort: Long
26372662 )
26382663
2639-data class Using (
2664+data class Obj6 (
26402665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2641- val using: Long
2642-)
2666+ val dummy: Long,
2667+
2668+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2669+ val obj6Var: Var,
2670+
2671+ @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
2672+ val obj6While: While,
2673+
2674+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2675+ val using: Using,
26432676
2644-data class Utf8JSONReader (
26452677 @get:JsonProperty("Utf8JsonReader", required=true)@field:JsonProperty("Utf8JsonReader", required=true)
2646- val utf8JSONReader: Long
2647-)
2678+ val utf8JSONReader: Utf8JSONReader,
26482679
2649-data class Utf8JSONWriter (
26502680 @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true)
2651- val utf8JSONWriter: Long
2652-)
2681+ val utf8JSONWriter: Utf8JSONWriter,
26532682
2654-data class UUID (
26552683 @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2656- val uuid: Long
2657-)
2658-
2659-data class Virtual (
2660- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2661- val virtual: Long
2662-)
2684+ val uuid: UUID,
26632685
2664-data class Obj6 (
26652686 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2666- val dummy: Long,
2667-
2668- @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
2669- val obj6While: While,
2687+ val virtual: Virtual,
26702688
26712689 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26722690 val void: Void,
@@ -2702,11 +2720,41 @@ data class Obj6 (
27022720 val yield: Yield
27032721 )
27042722
2723+data class Var (
2724+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2725+ val varVar: Long
2726+)
2727+
27052728 data class While (
27062729 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
27072730 val whileWhile: Long
27082731 )
27092732
2733+data class Using (
2734+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2735+ val using: Long
2736+)
2737+
2738+data class Utf8JSONReader (
2739+ @get:JsonProperty("Utf8JsonReader", required=true)@field:JsonProperty("Utf8JsonReader", required=true)
2740+ val utf8JSONReader: Long
2741+)
2742+
2743+data class Utf8JSONWriter (
2744+ @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true)
2745+ val utf8JSONWriter: Long
2746+)
2747+
2748+data class UUID (
2749+ @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2750+ val uuid: Long
2751+)
2752+
2753+data class Virtual (
2754+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2755+ val virtual: Long
2756+)
2757+
27102758 data class Void (
27112759 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27122760 val void: Long
Mkotlindefault / TopLevel.kt+86 −37
@@ -1657,6 +1657,9 @@ data class Select (
16571657 data class Obj5 (
16581658 val dummy: Long,
16591659
1660+ @Json(name = "KSerializer")
1661+ val kSerializer: KSerializer,
1662+
16601663 @Json(name = "self")
16611664 val obj5Self: SelfClass,
16621665
@@ -1684,8 +1687,8 @@ data class Obj5 (
16841687 @Json(name = "typeof")
16851688 val obj5Typeof: Typeof,
16861689
1687- @Json(name = "var")
1688- val obj5Var: Var,
1690+ @Json(name = "PrimitiveKind")
1691+ val primitiveKind: PrimitiveKind,
16891692
16901693 @Json(name = "true")
16911694 val purpleTrue: TrueClass,
@@ -1696,6 +1699,15 @@ data class Obj5 (
16961699 @Json(name = "Sendable")
16971700 val sendable: Sendable,
16981701
1702+ @Json(name = "SerialDescriptor")
1703+ val serialDescriptor: SerialDescriptor,
1704+
1705+ @Json(name = "SerialName")
1706+ val serialName: SerialName,
1707+
1708+ @Json(name = "Serializable")
1709+ val serializable: Serializable,
1710+
16991711 val serialize: Serialize,
17001712
17011713 @Json(name = "SerializerProvider")
@@ -1777,19 +1789,16 @@ data class Obj5 (
17771789 val unowned: Unowned,
17781790 val unsafe: Unsafe,
17791791 val unsigned: Unsigned,
1780- val ushort: Ushort,
1781- val using: Using,
17821792
1783- @Json(name = "Utf8JsonReader")
1784- val utf8JSONReader: Utf8JSONReader,
1785-
1786- @Json(name = "Utf8JsonWriter")
1787- val utf8JSONWriter: Utf8JSONWriter,
1793+ @Json(name = "UseSerializers")
1794+ val useSerializers: UseSerializers,
17881795
1789- @Json(name = "UUID")
1790- val uuid: UUID,
1796+ val ushort: Ushort
1797+)
17911798
1792- val virtual: Virtual
1799+data class KSerializer (
1800+ @Json(name = "KSerializer")
1801+ val kSerializer: Long
17931802 )
17941803
17951804 data class SelfClass (
@@ -1835,9 +1844,9 @@ data class Typeof (
18351844 val typeofTypeof: Long
18361845 )
18371846
1838-data class Var (
1839- @Json(name = "var")
1840- val varVar: Long
1847+data class PrimitiveKind (
1848+ @Json(name = "PrimitiveKind")
1849+ val primitiveKind: Long
18411850 )
18421851
18431852 data class TrueClass (
@@ -1855,6 +1864,21 @@ data class Sendable (
18551864 val sendable: Long
18561865 )
18571866
1867+data class SerialDescriptor (
1868+ @Json(name = "SerialDescriptor")
1869+ val serialDescriptor: Long
1870+)
1871+
1872+data class SerialName (
1873+ @Json(name = "SerialName")
1874+ val serialName: Long
1875+)
1876+
1877+data class Serializable (
1878+ @Json(name = "Serializable")
1879+ val serializable: Long
1880+)
1881+
18581882 data class Serialize (
18591883 val serialize: Long
18601884 )
@@ -2049,39 +2073,36 @@ data class Unsigned (
20492073 val unsigned: Long
20502074 )
20512075
2076+data class UseSerializers (
2077+ @Json(name = "UseSerializers")
2078+ val useSerializers: Long
2079+)
2080+
20522081 data class Ushort (
20532082 val ushort: Long
20542083 )
20552084
2056-data class Using (
2057- val using: Long
2058-)
2085+data class Obj6 (
2086+ val dummy: Long,
20592087
2060-data class Utf8JSONReader (
2061- @Json(name = "Utf8JsonReader")
2062- val utf8JSONReader: Long
2063-)
2088+ @Json(name = "var")
2089+ val obj6Var: Var,
20642090
2065-data class Utf8JSONWriter (
2066- @Json(name = "Utf8JsonWriter")
2067- val utf8JSONWriter: Long
2068-)
2091+ @Json(name = "while")
2092+ val obj6While: While,
20692093
2070-data class UUID (
2071- @Json(name = "UUID")
2072- val uuid: Long
2073-)
2094+ val using: Using,
20742095
2075-data class Virtual (
2076- val virtual: Long
2077-)
2096+ @Json(name = "Utf8JsonReader")
2097+ val utf8JSONReader: Utf8JSONReader,
20782098
2079-data class Obj6 (
2080- val dummy: Long,
2099+ @Json(name = "Utf8JsonWriter")
2100+ val utf8JSONWriter: Utf8JSONWriter,
20812101
2082- @Json(name = "while")
2083- val obj6While: While,
2102+ @Json(name = "UUID")
2103+ val uuid: UUID,
20842104
2105+ val virtual: Virtual,
20852106 val void: Void,
20862107 val volatile: Volatile,
20872108
@@ -2103,11 +2124,39 @@ data class Obj6 (
21032124 val yield: Yield
21042125 )
21052126
2127+data class Var (
2128+ @Json(name = "var")
2129+ val varVar: Long
2130+)
2131+
21062132 data class While (
21072133 @Json(name = "while")
21082134 val whileWhile: Long
21092135 )
21102136
2137+data class Using (
2138+ val using: Long
2139+)
2140+
2141+data class Utf8JSONReader (
2142+ @Json(name = "Utf8JsonReader")
2143+ val utf8JSONReader: Long
2144+)
2145+
2146+data class Utf8JSONWriter (
2147+ @Json(name = "Utf8JsonWriter")
2148+ val utf8JSONWriter: Long
2149+)
2150+
2151+data class UUID (
2152+ @Json(name = "UUID")
2153+ val uuid: Long
2154+)
2155+
2156+data class Virtual (
2157+ val virtual: Long
2158+)
2159+
21112160 data class Void (
21122161 val void: Long
21132162 )
Mkotlinxdefault / TopLevel.kt+97 −42
@@ -1900,6 +1900,9 @@ data class Select (
19001900 data class Obj5 (
19011901 val dummy: Long,
19021902
1903+ @SerialName("KSerializer")
1904+ val kSerializer: KSerializerClass,
1905+
19031906 @SerialName("self")
19041907 val obj5Self: SelfClass,
19051908
@@ -1927,8 +1930,8 @@ data class Obj5 (
19271930 @SerialName("typeof")
19281931 val obj5Typeof: Typeof,
19291932
1930- @SerialName("var")
1931- val obj5Var: Var,
1933+ @SerialName("PrimitiveKind")
1934+ val primitiveKind: PrimitiveKindClass,
19321935
19331936 @SerialName("true")
19341937 val purpleTrue: TrueClass,
@@ -1939,6 +1942,15 @@ data class Obj5 (
19391942 @SerialName("Sendable")
19401943 val sendable: Sendable,
19411944
1945+ @SerialName("SerialDescriptor")
1946+ val serialDescriptor: SerialDescriptorClass,
1947+
1948+ @SerialName("SerialName")
1949+ val serialName: SerialNameClass,
1950+
1951+ @SerialName("Serializable")
1952+ val serializable: SerializableClass,
1953+
19421954 val serialize: Serialize,
19431955
19441956 @SerialName("SerializerProvider")
@@ -2020,19 +2032,17 @@ data class Obj5 (
20202032 val unowned: Unowned,
20212033 val unsafe: Unsafe,
20222034 val unsigned: Unsigned,
2023- val ushort: Ushort,
2024- val using: Using,
20252035
2026- @SerialName("Utf8JsonReader")
2027- val utf8JSONReader: Utf8JSONReader,
2028-
2029- @SerialName("Utf8JsonWriter")
2030- val utf8JSONWriter: Utf8JSONWriter,
2036+ @SerialName("UseSerializers")
2037+ val useSerializers: UseSerializersClass,
20312038
2032- @SerialName("UUID")
2033- val uuid: UUID,
2039+ val ushort: Ushort
2040+)
20342041
2035- val virtual: Virtual
2042+@Serializable
2043+data class KSerializerClass (
2044+ @SerialName("KSerializer")
2045+ val kSerializer: Long
20362046 )
20372047
20382048 @Serializable
@@ -2088,9 +2098,9 @@ data class Typeof (
20882098 )
20892099
20902100 @Serializable
2091-data class Var (
2092- @SerialName("var")
2093- val varVar: Long
2101+data class PrimitiveKindClass (
2102+ @SerialName("PrimitiveKind")
2103+ val primitiveKind: Long
20942104 )
20952105
20962106 @Serializable
@@ -2111,6 +2121,24 @@ data class Sendable (
21112121 val sendable: Long
21122122 )
21132123
2124+@Serializable
2125+data class SerialDescriptorClass (
2126+ @SerialName("SerialDescriptor")
2127+ val serialDescriptor: Long
2128+)
2129+
2130+@Serializable
2131+data class SerialNameClass (
2132+ @SerialName("SerialName")
2133+ val serialName: Long
2134+)
2135+
2136+@Serializable
2137+data class SerializableClass (
2138+ @SerialName("Serializable")
2139+ val serializable: Long
2140+)
2141+
21142142 @Serializable
21152143 data class Serialize (
21162144 val serialize: Long
@@ -2351,45 +2379,38 @@ data class Unsigned (
23512379 )
23522380
23532381 @Serializable
2354-data class Ushort (
2355- val ushort: Long
2356-)
2357-
2358-@Serializable
2359-data class Using (
2360- val using: Long
2361-)
2362-
2363-@Serializable
2364-data class Utf8JSONReader (
2365- @SerialName("Utf8JsonReader")
2366- val utf8JSONReader: Long
2367-)
2368-
2369-@Serializable
2370-data class Utf8JSONWriter (
2371- @SerialName("Utf8JsonWriter")
2372- val utf8JSONWriter: Long
2373-)
2374-
2375-@Serializable
2376-data class UUID (
2377- @SerialName("UUID")
2378- val uuid: Long
2382+data class UseSerializersClass (
2383+ @SerialName("UseSerializers")
2384+ val useSerializers: Long
23792385 )
23802386
23812387 @Serializable
2382-data class Virtual (
2383- val virtual: Long
2388+data class Ushort (
2389+ val ushort: Long
23842390 )
23852391
23862392 @Serializable
23872393 data class Obj6 (
23882394 val dummy: Long,
23892395
2396+ @SerialName("var")
2397+ val obj6Var: Var,
2398+
23902399 @SerialName("while")
23912400 val obj6While: While,
23922401
2402+ val using: Using,
2403+
2404+ @SerialName("Utf8JsonReader")
2405+ val utf8JSONReader: Utf8JSONReader,
2406+
2407+ @SerialName("Utf8JsonWriter")
2408+ val utf8JSONWriter: Utf8JSONWriter,
2409+
2410+ @SerialName("UUID")
2411+ val uuid: UUID,
2412+
2413+ val virtual: Virtual,
23932414 val void: Void,
23942415 val volatile: Volatile,
23952416
@@ -2411,12 +2432,46 @@ data class Obj6 (
24112432 val yield: Yield
24122433 )
24132434
2435+@Serializable
2436+data class Var (
2437+ @SerialName("var")
2438+ val varVar: Long
2439+)
2440+
24142441 @Serializable
24152442 data class While (
24162443 @SerialName("while")
24172444 val whileWhile: Long
24182445 )
24192446
2447+@Serializable
2448+data class Using (
2449+ val using: Long
2450+)
2451+
2452+@Serializable
2453+data class Utf8JSONReader (
2454+ @SerialName("Utf8JsonReader")
2455+ val utf8JSONReader: Long
2456+)
2457+
2458+@Serializable
2459+data class Utf8JSONWriter (
2460+ @SerialName("Utf8JsonWriter")
2461+ val utf8JSONWriter: Long
2462+)
2463+
2464+@Serializable
2465+data class UUID (
2466+ @SerialName("UUID")
2467+ val uuid: Long
2468+)
2469+
2470+@Serializable
2471+data class Virtual (
2472+ val virtual: Long
2473+)
2474+
24202475 @Serializable
24212476 data class Void (
24222477 val void: Long
Mobjective-cdefault / QTTopLevel.h+70 −34
@@ -268,6 +268,7 @@
268268 @class QTSel;
269269 @class QTSelect;
270270 @class QTObj5;
271+@class QTKSerializer;
271272 @class QTSelfClass;
272273 @class QTShort;
273274 @class QTSigned;
@@ -281,8 +282,12 @@
281282 @class QTTypeof;
282283 @class QTUnion;
283284 @class QTUnsigned;
285+@class QTPrimitiveKind;
284286 @class QTSelf;
285287 @class QTSendable;
288+@class QTSerialDescriptor;
289+@class QTSerialName;
290+@class QTSerializable;
286291 @class QTSerialize;
287292 @class QTSerializerProvider;
288293 @class QTSet;
@@ -325,17 +330,18 @@
325330 @class QTUndefined;
326331 @class QTUnowned;
327332 @class QTUnsafe;
333+@class QTUseSerializers;
328334 @class QTUshort;
335+@class QTObj6;
336+@class QTVoid;
337+@class QTVolatile;
338+@class QTWhile;
329339 @class QTUsing;
330340 @class QTUtf8JSONReader;
331341 @class QTUtf8JSONWriter;
332342 @class QTUUID;
333343 @class QTVar;
334344 @class QTVirtual;
335-@class QTObj6;
336-@class QTVoid;
337-@class QTVolatile;
338-@class QTWhile;
339345 @class QTWcharT;
340346 @class QTWeak;
341347 @class QTWhere;
@@ -1679,6 +1685,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16791685
16801686 @interface QTObj5 : NSObject
16811687 @property (nonatomic, assign) NSInteger dummy;
1688+@property (nonatomic, strong) QTKSerializer *kSerializer;
16821689 @property (nonatomic, strong) QTSelfClass *obj5Self;
16831690 @property (nonatomic, strong) QTShort *obj5Short;
16841691 @property (nonatomic, strong) QTSigned *obj5Signed;
@@ -1692,8 +1699,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16921699 @property (nonatomic, strong) QTTypeof *obj5Typeof;
16931700 @property (nonatomic, strong) QTUnion *obj5Union;
16941701 @property (nonatomic, strong) QTUnsigned *obj5Unsigned;
1702+@property (nonatomic, strong) QTPrimitiveKind *primitiveKind;
16951703 @property (nonatomic, strong) QTSelf *self;
16961704 @property (nonatomic, strong) QTSendable *sendable;
1705+@property (nonatomic, strong) QTSerialDescriptor *serialDescriptor;
1706+@property (nonatomic, strong) QTSerialName *serialName;
1707+@property (nonatomic, strong) QTSerializable *serializable;
16971708 @property (nonatomic, strong) QTSerialize *serialize;
16981709 @property (nonatomic, strong) QTSerializerProvider *serializerProvider;
16991710 @property (nonatomic, strong) QTSet *set;
@@ -1736,13 +1747,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17361747 @property (nonatomic, strong) QTUndefined *undefined;
17371748 @property (nonatomic, strong) QTUnowned *unowned;
17381749 @property (nonatomic, strong) QTUnsafe *unsafe;
1750+@property (nonatomic, strong) QTUseSerializers *useSerializers;
17391751 @property (nonatomic, strong) QTUshort *ushort;
1740-@property (nonatomic, strong) QTUsing *using;
1741-@property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
1742-@property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
1743-@property (nonatomic, strong) QTUUID *uuid;
1744-@property (nonatomic, strong) QTVar *var;
1745-@property (nonatomic, strong) QTVirtual *virtual;
1752+@end
1753+
1754+@interface QTKSerializer : NSObject
1755+@property (nonatomic, assign) NSInteger kSerializer;
17461756 @end
17471757
17481758 @interface QTSelfClass : NSObject
@@ -1797,6 +1807,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17971807 @property (nonatomic, assign) NSInteger unsignedUnsigned;
17981808 @end
17991809
1810+@interface QTPrimitiveKind : NSObject
1811+@property (nonatomic, assign) NSInteger primitiveKind;
1812+@end
1813+
18001814 @interface QTSelf : NSObject
18011815 @property (nonatomic, assign) NSInteger self;
18021816 @end
@@ -1805,6 +1819,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
18051819 @property (nonatomic, assign) NSInteger sendable;
18061820 @end
18071821
1822+@interface QTSerialDescriptor : NSObject
1823+@property (nonatomic, assign) NSInteger serialDescriptor;
1824+@end
1825+
1826+@interface QTSerialName : NSObject
1827+@property (nonatomic, assign) NSInteger serialName;
1828+@end
1829+
1830+@interface QTSerializable : NSObject
1831+@property (nonatomic, assign) NSInteger serializable;
1832+@end
1833+
18081834 @interface QTSerialize : NSObject
18091835 @property (nonatomic, assign) NSInteger serialize;
18101836 @end
@@ -1973,32 +1999,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19731999 @property (nonatomic, assign) NSInteger unsafe;
19742000 @end
19752001
1976-@interface QTUshort : NSObject
1977-@property (nonatomic, assign) NSInteger ushort;
1978-@end
1979-
1980-@interface QTUsing : NSObject
1981-@property (nonatomic, assign) NSInteger using;
1982-@end
1983-
1984-@interface QTUtf8JSONReader : NSObject
1985-@property (nonatomic, assign) NSInteger utf8JSONReader;
1986-@end
1987-
1988-@interface QTUtf8JSONWriter : NSObject
1989-@property (nonatomic, assign) NSInteger utf8JSONWriter;
1990-@end
1991-
1992-@interface QTUUID : NSObject
1993-@property (nonatomic, assign) NSInteger uuid;
1994-@end
1995-
1996-@interface QTVar : NSObject
1997-@property (nonatomic, assign) NSInteger var;
2002+@interface QTUseSerializers : NSObject
2003+@property (nonatomic, assign) NSInteger useSerializers;
19982004 @end
19992005
2000-@interface QTVirtual : NSObject
2001-@property (nonatomic, assign) NSInteger virtual;
2006+@interface QTUshort : NSObject
2007+@property (nonatomic, assign) NSInteger ushort;
20022008 @end
20032009
20042010 @interface QTObj6 : NSObject
@@ -2006,6 +2012,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20062012 @property (nonatomic, strong) QTVoid *obj6Void;
20072013 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20082014 @property (nonatomic, strong) QTWhile *obj6While;
2015+@property (nonatomic, strong) QTUsing *using;
2016+@property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
2017+@property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
2018+@property (nonatomic, strong) QTUUID *uuid;
2019+@property (nonatomic, strong) QTVar *var;
2020+@property (nonatomic, strong) QTVirtual *virtual;
20092021 @property (nonatomic, strong) QTWcharT *wcharT;
20102022 @property (nonatomic, strong) QTWeak *weak;
20112023 @property (nonatomic, strong) QTWhere *where;
@@ -2029,6 +2041,30 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20292041 @property (nonatomic, assign) NSInteger whileWhile;
20302042 @end
20312043
2044+@interface QTUsing : NSObject
2045+@property (nonatomic, assign) NSInteger using;
2046+@end
2047+
2048+@interface QTUtf8JSONReader : NSObject
2049+@property (nonatomic, assign) NSInteger utf8JSONReader;
2050+@end
2051+
2052+@interface QTUtf8JSONWriter : NSObject
2053+@property (nonatomic, assign) NSInteger utf8JSONWriter;
2054+@end
2055+
2056+@interface QTUUID : NSObject
2057+@property (nonatomic, assign) NSInteger uuid;
2058+@end
2059+
2060+@interface QTVar : NSObject
2061+@property (nonatomic, assign) NSInteger var;
2062+@end
2063+
2064+@interface QTVirtual : NSObject
2065+@property (nonatomic, assign) NSInteger virtual;
2066+@end
2067+
20322068 @interface QTWcharT : NSObject
20332069 @property (nonatomic, assign) NSInteger wcharT;
20342070 @end
Mobjective-cdefault / QTTopLevel.m+672 −300
@@ -1318,6 +1318,11 @@ NS_ASSUME_NONNULL_BEGIN
13181318 - (NSDictionary *)JSONDictionary;
13191319 @end
13201320
1321+@interface QTKSerializer (JSONConversion)
1322++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1323+- (NSDictionary *)JSONDictionary;
1324+@end
1325+
13211326 @interface QTSelfClass (JSONConversion)
13221327 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13231328 - (NSDictionary *)JSONDictionary;
@@ -1383,6 +1388,11 @@ NS_ASSUME_NONNULL_BEGIN
13831388 - (NSDictionary *)JSONDictionary;
13841389 @end
13851390
1391+@interface QTPrimitiveKind (JSONConversion)
1392++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1393+- (NSDictionary *)JSONDictionary;
1394+@end
1395+
13861396 @interface QTSelf (JSONConversion)
13871397 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881398 - (NSDictionary *)JSONDictionary;
@@ -1393,6 +1403,21 @@ NS_ASSUME_NONNULL_BEGIN
13931403 - (NSDictionary *)JSONDictionary;
13941404 @end
13951405
1406+@interface QTSerialDescriptor (JSONConversion)
1407++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1408+- (NSDictionary *)JSONDictionary;
1409+@end
1410+
1411+@interface QTSerialName (JSONConversion)
1412++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1413+- (NSDictionary *)JSONDictionary;
1414+@end
1415+
1416+@interface QTSerializable (JSONConversion)
1417++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1418+- (NSDictionary *)JSONDictionary;
1419+@end
1420+
13961421 @interface QTSerialize (JSONConversion)
13971422 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13981423 - (NSDictionary *)JSONDictionary;
@@ -1603,57 +1628,62 @@ NS_ASSUME_NONNULL_BEGIN
16031628 - (NSDictionary *)JSONDictionary;
16041629 @end
16051630
1631+@interface QTUseSerializers (JSONConversion)
1632++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1633+- (NSDictionary *)JSONDictionary;
1634+@end
1635+
16061636 @interface QTUshort (JSONConversion)
16071637 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16081638 - (NSDictionary *)JSONDictionary;
16091639 @end
16101640
1611-@interface QTUsing (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16121642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16131643 - (NSDictionary *)JSONDictionary;
16141644 @end
16151645
1616-@interface QTUtf8JSONReader (JSONConversion)
1646+@interface QTVoid (JSONConversion)
16171647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16181648 - (NSDictionary *)JSONDictionary;
16191649 @end
16201650
1621-@interface QTUtf8JSONWriter (JSONConversion)
1651+@interface QTVolatile (JSONConversion)
16221652 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16231653 - (NSDictionary *)JSONDictionary;
16241654 @end
16251655
1626-@interface QTUUID (JSONConversion)
1656+@interface QTWhile (JSONConversion)
16271657 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16281658 - (NSDictionary *)JSONDictionary;
16291659 @end
16301660
1631-@interface QTVar (JSONConversion)
1661+@interface QTUsing (JSONConversion)
16321662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331663 - (NSDictionary *)JSONDictionary;
16341664 @end
16351665
1636-@interface QTVirtual (JSONConversion)
1666+@interface QTUtf8JSONReader (JSONConversion)
16371667 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381668 - (NSDictionary *)JSONDictionary;
16391669 @end
16401670
1641-@interface QTObj6 (JSONConversion)
1671+@interface QTUtf8JSONWriter (JSONConversion)
16421672 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431673 - (NSDictionary *)JSONDictionary;
16441674 @end
16451675
1646-@interface QTVoid (JSONConversion)
1676+@interface QTUUID (JSONConversion)
16471677 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16481678 - (NSDictionary *)JSONDictionary;
16491679 @end
16501680
1651-@interface QTVolatile (JSONConversion)
1681+@interface QTVar (JSONConversion)
16521682 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16531683 - (NSDictionary *)JSONDictionary;
16541684 @end
16551685
1656-@interface QTWhile (JSONConversion)
1686+@interface QTVirtual (JSONConversion)
16571687 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16581688 - (NSDictionary *)JSONDictionary;
16591689 @end
@@ -15206,6 +15236,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1520615236 static NSDictionary<NSString *, NSString *> *properties;
1520715237 return properties = properties ? properties : @{
1520815238 @"dummy": @"dummy",
15239+ @"KSerializer": @"kSerializer",
1520915240 @"self": @"obj5Self",
1521015241 @"short": @"obj5Short",
1521115242 @"signed": @"obj5Signed",
@@ -15219,8 +15250,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1521915250 @"typeof": @"obj5Typeof",
1522015251 @"union": @"obj5Union",
1522115252 @"unsigned": @"obj5Unsigned",
15253+ @"PrimitiveKind": @"primitiveKind",
1522215254 @"Self": @"self",
1522315255 @"Sendable": @"sendable",
15256+ @"SerialDescriptor": @"serialDescriptor",
15257+ @"SerialName": @"serialName",
15258+ @"Serializable": @"serializable",
1522415259 @"serialize": @"serialize",
1522515260 @"SerializerProvider": @"serializerProvider",
1522615261 @"set": @"set",
@@ -15263,13 +15298,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1526315298 @"undefined": @"undefined",
1526415299 @"unowned": @"unowned",
1526515300 @"unsafe": @"unsafe",
15301+ @"UseSerializers": @"useSerializers",
1526615302 @"ushort": @"ushort",
15267- @"using": @"using",
15268- @"Utf8JsonReader": @"utf8JSONReader",
15269- @"Utf8JsonWriter": @"utf8JSONWriter",
15270- @"UUID": @"uuid",
15271- @"var": @"var",
15272- @"virtual": @"virtual",
1527315303 };
1527415304 }
1527515305
@@ -15283,6 +15313,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1528315313 if (self = [super init]) {
1528415314 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1528515315 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
15316+ if (![dict[@"KSerializer"] isKindOfClass:NSDictionary.class]) return nil;
1528615317 if (![dict[@"self"] isKindOfClass:NSDictionary.class]) return nil;
1528715318 if (![dict[@"short"] isKindOfClass:NSDictionary.class]) return nil;
1528815319 if (![dict[@"signed"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15296,8 +15327,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1529615327 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1529715328 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
1529815329 if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
15330+ if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil;
1529915331 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1530015332 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
15333+ if (![dict[@"SerialDescriptor"] isKindOfClass:NSDictionary.class]) return nil;
15334+ if (![dict[@"SerialName"] isKindOfClass:NSDictionary.class]) return nil;
15335+ if (![dict[@"Serializable"] isKindOfClass:NSDictionary.class]) return nil;
1530115336 if (![dict[@"serialize"] isKindOfClass:NSDictionary.class]) return nil;
1530215337 if (![dict[@"SerializerProvider"] isKindOfClass:NSDictionary.class]) return nil;
1530315338 if (![dict[@"set"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15340,14 +15375,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1534015375 if (![dict[@"undefined"] isKindOfClass:NSDictionary.class]) return nil;
1534115376 if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil;
1534215377 if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
15378+ if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil;
1534315379 if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
15344- if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
15345- if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
15346- if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
15347- if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
15348- if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
15349- if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
1535015380 [self setValuesForKeysWithDictionary:dict];
15381+ _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer];
15382+ if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil;
1535115383 _obj5Self = [QTSelfClass fromJSONDictionary:(id)_obj5Self];
1535215384 if (!_obj5Self && dict[@"self"] && ![dict[@"self"] isKindOfClass:NSNull.class]) return nil;
1535315385 _obj5Short = [QTShort fromJSONDictionary:(id)_obj5Short];
@@ -15374,10 +15406,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1537415406 if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
1537515407 _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned];
1537615408 if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
15409+ _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind];
15410+ if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil;
1537715411 _self = [QTSelf fromJSONDictionary:(id)_self];
1537815412 if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil;
1537915413 _sendable = [QTSendable fromJSONDictionary:(id)_sendable];
1538015414 if (!_sendable && dict[@"Sendable"] && ![dict[@"Sendable"] isKindOfClass:NSNull.class]) return nil;
15415+ _serialDescriptor = [QTSerialDescriptor fromJSONDictionary:(id)_serialDescriptor];
15416+ if (!_serialDescriptor && dict[@"SerialDescriptor"] && ![dict[@"SerialDescriptor"] isKindOfClass:NSNull.class]) return nil;
15417+ _serialName = [QTSerialName fromJSONDictionary:(id)_serialName];
15418+ if (!_serialName && dict[@"SerialName"] && ![dict[@"SerialName"] isKindOfClass:NSNull.class]) return nil;
15419+ _serializable = [QTSerializable fromJSONDictionary:(id)_serializable];
15420+ if (!_serializable && dict[@"Serializable"] && ![dict[@"Serializable"] isKindOfClass:NSNull.class]) return nil;
1538115421 _serialize = [QTSerialize fromJSONDictionary:(id)_serialize];
1538215422 if (!_serialize && dict[@"serialize"] && ![dict[@"serialize"] isKindOfClass:NSNull.class]) return nil;
1538315423 _serializerProvider = [QTSerializerProvider fromJSONDictionary:(id)_serializerProvider];
@@ -15462,20 +15502,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1546215502 if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil;
1546315503 _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe];
1546415504 if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
15505+ _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers];
15506+ if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil;
1546515507 _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
1546615508 if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
15467- _using = [QTUsing fromJSONDictionary:(id)_using];
15468- if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
15469- _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
15470- if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil;
15471- _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter];
15472- if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
15473- _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
15474- if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
15475- _var = [QTVar fromJSONDictionary:(id)_var];
15476- if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
15477- _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
15478- if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
1547915509 }
1548015510 return self;
1548115511 }
@@ -15505,6 +15535,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1550515535 }
1550615536
1550715537 [dict addEntriesFromDictionary:@{
15538+ @"KSerializer": [_kSerializer JSONDictionary],
1550815539 @"self": [_obj5Self JSONDictionary],
1550915540 @"short": [_obj5Short JSONDictionary],
1551015541 @"signed": [_obj5Signed JSONDictionary],
@@ -15518,8 +15549,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1551815549 @"typeof": [_obj5Typeof JSONDictionary],
1551915550 @"union": [_obj5Union JSONDictionary],
1552015551 @"unsigned": [_obj5Unsigned JSONDictionary],
15552+ @"PrimitiveKind": [_primitiveKind JSONDictionary],
1552115553 @"Self": [_self JSONDictionary],
1552215554 @"Sendable": [_sendable JSONDictionary],
15555+ @"SerialDescriptor": [_serialDescriptor JSONDictionary],
15556+ @"SerialName": [_serialName JSONDictionary],
15557+ @"Serializable": [_serializable JSONDictionary],
1552315558 @"serialize": [_serialize JSONDictionary],
1552415559 @"SerializerProvider": [_serializerProvider JSONDictionary],
1552515560 @"set": [_set JSONDictionary],
@@ -15562,19 +15597,66 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1556215597 @"undefined": [_undefined JSONDictionary],
1556315598 @"unowned": [_unowned JSONDictionary],
1556415599 @"unsafe": [_unsafe JSONDictionary],
15600+ @"UseSerializers": [_useSerializers JSONDictionary],
1556515601 @"ushort": [_ushort JSONDictionary],
15566- @"using": [_using JSONDictionary],
15567- @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
15568- @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
15569- @"UUID": [_uuid JSONDictionary],
15570- @"var": [_var JSONDictionary],
15571- @"virtual": [_virtual JSONDictionary],
1557215602 }];
1557315603
1557415604 return dict;
1557515605 }
1557615606 @end
1557715607
15608+@implementation QTKSerializer
15609++ (NSDictionary<NSString *, NSString *> *)properties
15610+{
15611+ static NSDictionary<NSString *, NSString *> *properties;
15612+ return properties = properties ? properties : @{
15613+ @"KSerializer": @"kSerializer",
15614+ };
15615+}
15616+
15617++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15618+{
15619+ return [dict isKindOfClass:NSDictionary.class] ? [[QTKSerializer alloc] initWithJSONDictionary:dict] : nil;
15620+}
15621+
15622+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15623+{
15624+ if (self = [super init]) {
15625+ if (![dict[@"KSerializer"] isKindOfClass:NSNumber.class]) return nil;
15626+ if ([dict[@"KSerializer"] doubleValue] != [dict[@"KSerializer"] longLongValue]) return nil;
15627+ [self setValuesForKeysWithDictionary:dict];
15628+ }
15629+ return self;
15630+}
15631+
15632+- (void)setValue:(nullable id)value forKey:(NSString *)key
15633+{
15634+ id resolved = QTKSerializer.properties[key];
15635+ if (resolved) [super setValue:value forKey:resolved];
15636+}
15637+
15638+- (void)setNilValueForKey:(NSString *)key
15639+{
15640+ id resolved = QTKSerializer.properties[key];
15641+ if (resolved) [super setValue:@(0) forKey:resolved];
15642+}
15643+
15644+- (NSDictionary *)JSONDictionary
15645+{
15646+ id dict = [[self dictionaryWithValuesForKeys:QTKSerializer.properties.allValues] mutableCopy];
15647+
15648+ for (id jsonName in QTKSerializer.properties) {
15649+ id propertyName = QTKSerializer.properties[jsonName];
15650+ if (![jsonName isEqualToString:propertyName]) {
15651+ dict[jsonName] = dict[propertyName];
15652+ [dict removeObjectForKey:propertyName];
15653+ }
15654+ }
15655+
15656+ return dict;
15657+}
15658+@end
15659+
1557815660 @implementation QTSelfClass
1557915661 + (NSDictionary<NSString *, NSString *> *)properties
1558015662 {
@@ -16231,25 +16313,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1623116313 }
1623216314 @end
1623316315
16234-@implementation QTSelf
16316+@implementation QTPrimitiveKind
1623516317 + (NSDictionary<NSString *, NSString *> *)properties
1623616318 {
1623716319 static NSDictionary<NSString *, NSString *> *properties;
1623816320 return properties = properties ? properties : @{
16239- @"Self": @"self",
16321+ @"PrimitiveKind": @"primitiveKind",
1624016322 };
1624116323 }
1624216324
1624316325 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1624416326 {
16245- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
16327+ return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
1624616328 }
1624716329
1624816330 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1624916331 {
1625016332 if (self = [super init]) {
16251- if (![dict[@"Self"] isKindOfClass:NSNumber.class]) return nil;
16252- if ([dict[@"Self"] doubleValue] != [dict[@"Self"] longLongValue]) return nil;
16333+ if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16334+ if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
1625316335 [self setValuesForKeysWithDictionary:dict];
1625416336 }
1625516337 return self;
@@ -16257,22 +16339,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1625716339
1625816340 - (void)setValue:(nullable id)value forKey:(NSString *)key
1625916341 {
16260- id resolved = QTSelf.properties[key];
16342+ id resolved = QTPrimitiveKind.properties[key];
1626116343 if (resolved) [super setValue:value forKey:resolved];
1626216344 }
1626316345
1626416346 - (void)setNilValueForKey:(NSString *)key
1626516347 {
16266- id resolved = QTSelf.properties[key];
16348+ id resolved = QTPrimitiveKind.properties[key];
1626716349 if (resolved) [super setValue:@(0) forKey:resolved];
1626816350 }
1626916351
1627016352 - (NSDictionary *)JSONDictionary
1627116353 {
16272- id dict = [[self dictionaryWithValuesForKeys:QTSelf.properties.allValues] mutableCopy];
16354+ id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
1627316355
16274- for (id jsonName in QTSelf.properties) {
16275- id propertyName = QTSelf.properties[jsonName];
16356+ for (id jsonName in QTPrimitiveKind.properties) {
16357+ id propertyName = QTPrimitiveKind.properties[jsonName];
1627616358 if (![jsonName isEqualToString:propertyName]) {
1627716359 dict[jsonName] = dict[propertyName];
1627816360 [dict removeObjectForKey:propertyName];
@@ -16283,25 +16365,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1628316365 }
1628416366 @end
1628516367
16286-@implementation QTSendable
16368+@implementation QTSelf
1628716369 + (NSDictionary<NSString *, NSString *> *)properties
1628816370 {
1628916371 static NSDictionary<NSString *, NSString *> *properties;
1629016372 return properties = properties ? properties : @{
16291- @"Sendable": @"sendable",
16373+ @"Self": @"self",
1629216374 };
1629316375 }
1629416376
1629516377 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1629616378 {
16297- return [dict isKindOfClass:NSDictionary.class] ? [[QTSendable alloc] initWithJSONDictionary:dict] : nil;
16379+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
1629816380 }
1629916381
1630016382 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1630116383 {
1630216384 if (self = [super init]) {
16303- if (![dict[@"Sendable"] isKindOfClass:NSNumber.class]) return nil;
16304- if ([dict[@"Sendable"] doubleValue] != [dict[@"Sendable"] longLongValue]) return nil;
16385+ if (![dict[@"Self"] isKindOfClass:NSNumber.class]) return nil;
16386+ if ([dict[@"Self"] doubleValue] != [dict[@"Self"] longLongValue]) return nil;
1630516387 [self setValuesForKeysWithDictionary:dict];
1630616388 }
1630716389 return self;
@@ -16309,22 +16391,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1630916391
1631016392 - (void)setValue:(nullable id)value forKey:(NSString *)key
1631116393 {
16312- id resolved = QTSendable.properties[key];
16394+ id resolved = QTSelf.properties[key];
1631316395 if (resolved) [super setValue:value forKey:resolved];
1631416396 }
1631516397
1631616398 - (void)setNilValueForKey:(NSString *)key
1631716399 {
16318- id resolved = QTSendable.properties[key];
16400+ id resolved = QTSelf.properties[key];
1631916401 if (resolved) [super setValue:@(0) forKey:resolved];
1632016402 }
1632116403
1632216404 - (NSDictionary *)JSONDictionary
1632316405 {
16324- id dict = [[self dictionaryWithValuesForKeys:QTSendable.properties.allValues] mutableCopy];
16406+ id dict = [[self dictionaryWithValuesForKeys:QTSelf.properties.allValues] mutableCopy];
1632516407
16326- for (id jsonName in QTSendable.properties) {
16327- id propertyName = QTSendable.properties[jsonName];
16408+ for (id jsonName in QTSelf.properties) {
16409+ id propertyName = QTSelf.properties[jsonName];
1632816410 if (![jsonName isEqualToString:propertyName]) {
1632916411 dict[jsonName] = dict[propertyName];
1633016412 [dict removeObjectForKey:propertyName];
@@ -16335,25 +16417,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1633516417 }
1633616418 @end
1633716419
16338-@implementation QTSerialize
16420+@implementation QTSendable
1633916421 + (NSDictionary<NSString *, NSString *> *)properties
1634016422 {
1634116423 static NSDictionary<NSString *, NSString *> *properties;
1634216424 return properties = properties ? properties : @{
16343- @"serialize": @"serialize",
16425+ @"Sendable": @"sendable",
1634416426 };
1634516427 }
1634616428
1634716429 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1634816430 {
16349- return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialize alloc] initWithJSONDictionary:dict] : nil;
16431+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSendable alloc] initWithJSONDictionary:dict] : nil;
1635016432 }
1635116433
1635216434 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1635316435 {
1635416436 if (self = [super init]) {
16355- if (![dict[@"serialize"] isKindOfClass:NSNumber.class]) return nil;
16356- if ([dict[@"serialize"] doubleValue] != [dict[@"serialize"] longLongValue]) return nil;
16437+ if (![dict[@"Sendable"] isKindOfClass:NSNumber.class]) return nil;
16438+ if ([dict[@"Sendable"] doubleValue] != [dict[@"Sendable"] longLongValue]) return nil;
1635716439 [self setValuesForKeysWithDictionary:dict];
1635816440 }
1635916441 return self;
@@ -16361,41 +16443,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1636116443
1636216444 - (void)setValue:(nullable id)value forKey:(NSString *)key
1636316445 {
16364- id resolved = QTSerialize.properties[key];
16446+ id resolved = QTSendable.properties[key];
1636516447 if (resolved) [super setValue:value forKey:resolved];
1636616448 }
1636716449
1636816450 - (void)setNilValueForKey:(NSString *)key
1636916451 {
16370- id resolved = QTSerialize.properties[key];
16452+ id resolved = QTSendable.properties[key];
1637116453 if (resolved) [super setValue:@(0) forKey:resolved];
1637216454 }
1637316455
1637416456 - (NSDictionary *)JSONDictionary
1637516457 {
16376- return [self dictionaryWithValuesForKeys:QTSerialize.properties.allValues];
16458+ id dict = [[self dictionaryWithValuesForKeys:QTSendable.properties.allValues] mutableCopy];
16459+
16460+ for (id jsonName in QTSendable.properties) {
16461+ id propertyName = QTSendable.properties[jsonName];
16462+ if (![jsonName isEqualToString:propertyName]) {
16463+ dict[jsonName] = dict[propertyName];
16464+ [dict removeObjectForKey:propertyName];
16465+ }
16466+ }
16467+
16468+ return dict;
1637716469 }
1637816470 @end
1637916471
16380-@implementation QTSerializerProvider
16472+@implementation QTSerialDescriptor
1638116473 + (NSDictionary<NSString *, NSString *> *)properties
1638216474 {
1638316475 static NSDictionary<NSString *, NSString *> *properties;
1638416476 return properties = properties ? properties : @{
16385- @"SerializerProvider": @"serializerProvider",
16477+ @"SerialDescriptor": @"serialDescriptor",
1638616478 };
1638716479 }
1638816480
1638916481 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1639016482 {
16391- return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializerProvider alloc] initWithJSONDictionary:dict] : nil;
16483+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialDescriptor alloc] initWithJSONDictionary:dict] : nil;
1639216484 }
1639316485
1639416486 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1639516487 {
1639616488 if (self = [super init]) {
16397- if (![dict[@"SerializerProvider"] isKindOfClass:NSNumber.class]) return nil;
16398- if ([dict[@"SerializerProvider"] doubleValue] != [dict[@"SerializerProvider"] longLongValue]) return nil;
16489+ if (![dict[@"SerialDescriptor"] isKindOfClass:NSNumber.class]) return nil;
16490+ if ([dict[@"SerialDescriptor"] doubleValue] != [dict[@"SerialDescriptor"] longLongValue]) return nil;
1639916491 [self setValuesForKeysWithDictionary:dict];
1640016492 }
1640116493 return self;
@@ -16403,22 +16495,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1640316495
1640416496 - (void)setValue:(nullable id)value forKey:(NSString *)key
1640516497 {
16406- id resolved = QTSerializerProvider.properties[key];
16498+ id resolved = QTSerialDescriptor.properties[key];
1640716499 if (resolved) [super setValue:value forKey:resolved];
1640816500 }
1640916501
1641016502 - (void)setNilValueForKey:(NSString *)key
1641116503 {
16412- id resolved = QTSerializerProvider.properties[key];
16504+ id resolved = QTSerialDescriptor.properties[key];
1641316505 if (resolved) [super setValue:@(0) forKey:resolved];
1641416506 }
1641516507
1641616508 - (NSDictionary *)JSONDictionary
1641716509 {
16418- id dict = [[self dictionaryWithValuesForKeys:QTSerializerProvider.properties.allValues] mutableCopy];
16510+ id dict = [[self dictionaryWithValuesForKeys:QTSerialDescriptor.properties.allValues] mutableCopy];
1641916511
16420- for (id jsonName in QTSerializerProvider.properties) {
16421- id propertyName = QTSerializerProvider.properties[jsonName];
16512+ for (id jsonName in QTSerialDescriptor.properties) {
16513+ id propertyName = QTSerialDescriptor.properties[jsonName];
1642216514 if (![jsonName isEqualToString:propertyName]) {
1642316515 dict[jsonName] = dict[propertyName];
1642416516 [dict removeObjectForKey:propertyName];
@@ -16429,25 +16521,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1642916521 }
1643016522 @end
1643116523
16432-@implementation QTSet
16524+@implementation QTSerialName
1643316525 + (NSDictionary<NSString *, NSString *> *)properties
1643416526 {
1643516527 static NSDictionary<NSString *, NSString *> *properties;
1643616528 return properties = properties ? properties : @{
16437- @"set": @"set",
16529+ @"SerialName": @"serialName",
1643816530 };
1643916531 }
1644016532
1644116533 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1644216534 {
16443- return [dict isKindOfClass:NSDictionary.class] ? [[QTSet alloc] initWithJSONDictionary:dict] : nil;
16535+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialName alloc] initWithJSONDictionary:dict] : nil;
1644416536 }
1644516537
1644616538 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1644716539 {
1644816540 if (self = [super init]) {
16449- if (![dict[@"set"] isKindOfClass:NSNumber.class]) return nil;
16450- if ([dict[@"set"] doubleValue] != [dict[@"set"] longLongValue]) return nil;
16541+ if (![dict[@"SerialName"] isKindOfClass:NSNumber.class]) return nil;
16542+ if ([dict[@"SerialName"] doubleValue] != [dict[@"SerialName"] longLongValue]) return nil;
1645116543 [self setValuesForKeysWithDictionary:dict];
1645216544 }
1645316545 return self;
@@ -16455,41 +16547,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1645516547
1645616548 - (void)setValue:(nullable id)value forKey:(NSString *)key
1645716549 {
16458- id resolved = QTSet.properties[key];
16550+ id resolved = QTSerialName.properties[key];
1645916551 if (resolved) [super setValue:value forKey:resolved];
1646016552 }
1646116553
1646216554 - (void)setNilValueForKey:(NSString *)key
1646316555 {
16464- id resolved = QTSet.properties[key];
16556+ id resolved = QTSerialName.properties[key];
1646516557 if (resolved) [super setValue:@(0) forKey:resolved];
1646616558 }
1646716559
1646816560 - (NSDictionary *)JSONDictionary
1646916561 {
16470- return [self dictionaryWithValuesForKeys:QTSet.properties.allValues];
16562+ id dict = [[self dictionaryWithValuesForKeys:QTSerialName.properties.allValues] mutableCopy];
16563+
16564+ for (id jsonName in QTSerialName.properties) {
16565+ id propertyName = QTSerialName.properties[jsonName];
16566+ if (![jsonName isEqualToString:propertyName]) {
16567+ dict[jsonName] = dict[propertyName];
16568+ [dict removeObjectForKey:propertyName];
16569+ }
16570+ }
16571+
16572+ return dict;
1647116573 }
1647216574 @end
1647316575
16474-@implementation QTSimpleModule
16576+@implementation QTSerializable
1647516577 + (NSDictionary<NSString *, NSString *> *)properties
1647616578 {
1647716579 static NSDictionary<NSString *, NSString *> *properties;
1647816580 return properties = properties ? properties : @{
16479- @"SimpleModule": @"simpleModule",
16581+ @"Serializable": @"serializable",
1648016582 };
1648116583 }
1648216584
1648316585 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1648416586 {
16485- return [dict isKindOfClass:NSDictionary.class] ? [[QTSimpleModule alloc] initWithJSONDictionary:dict] : nil;
16587+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializable alloc] initWithJSONDictionary:dict] : nil;
1648616588 }
1648716589
1648816590 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1648916591 {
1649016592 if (self = [super init]) {
16491- if (![dict[@"SimpleModule"] isKindOfClass:NSNumber.class]) return nil;
16492- if ([dict[@"SimpleModule"] doubleValue] != [dict[@"SimpleModule"] longLongValue]) return nil;
16593+ if (![dict[@"Serializable"] isKindOfClass:NSNumber.class]) return nil;
16594+ if ([dict[@"Serializable"] doubleValue] != [dict[@"Serializable"] longLongValue]) return nil;
1649316595 [self setValuesForKeysWithDictionary:dict];
1649416596 }
1649516597 return self;
@@ -16497,22 +16599,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1649716599
1649816600 - (void)setValue:(nullable id)value forKey:(NSString *)key
1649916601 {
16500- id resolved = QTSimpleModule.properties[key];
16602+ id resolved = QTSerializable.properties[key];
1650116603 if (resolved) [super setValue:value forKey:resolved];
1650216604 }
1650316605
1650416606 - (void)setNilValueForKey:(NSString *)key
1650516607 {
16506- id resolved = QTSimpleModule.properties[key];
16608+ id resolved = QTSerializable.properties[key];
1650716609 if (resolved) [super setValue:@(0) forKey:resolved];
1650816610 }
1650916611
1651016612 - (NSDictionary *)JSONDictionary
1651116613 {
16512- id dict = [[self dictionaryWithValuesForKeys:QTSimpleModule.properties.allValues] mutableCopy];
16614+ id dict = [[self dictionaryWithValuesForKeys:QTSerializable.properties.allValues] mutableCopy];
1651316615
16514- for (id jsonName in QTSimpleModule.properties) {
16515- id propertyName = QTSimpleModule.properties[jsonName];
16616+ for (id jsonName in QTSerializable.properties) {
16617+ id propertyName = QTSerializable.properties[jsonName];
1651616618 if (![jsonName isEqualToString:propertyName]) {
1651716619 dict[jsonName] = dict[propertyName];
1651816620 [dict removeObjectForKey:propertyName];
@@ -16523,25 +16625,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1652316625 }
1652416626 @end
1652516627
16526-@implementation QTStackalloc
16628+@implementation QTSerialize
1652716629 + (NSDictionary<NSString *, NSString *> *)properties
1652816630 {
1652916631 static NSDictionary<NSString *, NSString *> *properties;
1653016632 return properties = properties ? properties : @{
16531- @"stackalloc": @"stackalloc",
16633+ @"serialize": @"serialize",
1653216634 };
1653316635 }
1653416636
1653516637 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1653616638 {
16537- return [dict isKindOfClass:NSDictionary.class] ? [[QTStackalloc alloc] initWithJSONDictionary:dict] : nil;
16639+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialize alloc] initWithJSONDictionary:dict] : nil;
1653816640 }
1653916641
1654016642 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1654116643 {
1654216644 if (self = [super init]) {
16543- if (![dict[@"stackalloc"] isKindOfClass:NSNumber.class]) return nil;
16544- if ([dict[@"stackalloc"] doubleValue] != [dict[@"stackalloc"] longLongValue]) return nil;
16645+ if (![dict[@"serialize"] isKindOfClass:NSNumber.class]) return nil;
16646+ if ([dict[@"serialize"] doubleValue] != [dict[@"serialize"] longLongValue]) return nil;
1654516647 [self setValuesForKeysWithDictionary:dict];
1654616648 }
1654716649 return self;
@@ -16549,41 +16651,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1654916651
1655016652 - (void)setValue:(nullable id)value forKey:(NSString *)key
1655116653 {
16552- id resolved = QTStackalloc.properties[key];
16654+ id resolved = QTSerialize.properties[key];
1655316655 if (resolved) [super setValue:value forKey:resolved];
1655416656 }
1655516657
1655616658 - (void)setNilValueForKey:(NSString *)key
1655716659 {
16558- id resolved = QTStackalloc.properties[key];
16660+ id resolved = QTSerialize.properties[key];
1655916661 if (resolved) [super setValue:@(0) forKey:resolved];
1656016662 }
1656116663
1656216664 - (NSDictionary *)JSONDictionary
1656316665 {
16564- return [self dictionaryWithValuesForKeys:QTStackalloc.properties.allValues];
16666+ return [self dictionaryWithValuesForKeys:QTSerialize.properties.allValues];
1656516667 }
1656616668 @end
1656716669
16568-@implementation QTStandards
16670+@implementation QTSerializerProvider
1656916671 + (NSDictionary<NSString *, NSString *> *)properties
1657016672 {
1657116673 static NSDictionary<NSString *, NSString *> *properties;
1657216674 return properties = properties ? properties : @{
16573- @"Standards": @"standards",
16675+ @"SerializerProvider": @"serializerProvider",
1657416676 };
1657516677 }
1657616678
1657716679 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1657816680 {
16579- return [dict isKindOfClass:NSDictionary.class] ? [[QTStandards alloc] initWithJSONDictionary:dict] : nil;
16681+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializerProvider alloc] initWithJSONDictionary:dict] : nil;
1658016682 }
1658116683
1658216684 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1658316685 {
1658416686 if (self = [super init]) {
16585- if (![dict[@"Standards"] isKindOfClass:NSNumber.class]) return nil;
16586- if ([dict[@"Standards"] doubleValue] != [dict[@"Standards"] longLongValue]) return nil;
16687+ if (![dict[@"SerializerProvider"] isKindOfClass:NSNumber.class]) return nil;
16688+ if ([dict[@"SerializerProvider"] doubleValue] != [dict[@"SerializerProvider"] longLongValue]) return nil;
1658716689 [self setValuesForKeysWithDictionary:dict];
1658816690 }
1658916691 return self;
@@ -16591,22 +16693,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1659116693
1659216694 - (void)setValue:(nullable id)value forKey:(NSString *)key
1659316695 {
16594- id resolved = QTStandards.properties[key];
16696+ id resolved = QTSerializerProvider.properties[key];
1659516697 if (resolved) [super setValue:value forKey:resolved];
1659616698 }
1659716699
1659816700 - (void)setNilValueForKey:(NSString *)key
1659916701 {
16600- id resolved = QTStandards.properties[key];
16702+ id resolved = QTSerializerProvider.properties[key];
1660116703 if (resolved) [super setValue:@(0) forKey:resolved];
1660216704 }
1660316705
1660416706 - (NSDictionary *)JSONDictionary
1660516707 {
16606- id dict = [[self dictionaryWithValuesForKeys:QTStandards.properties.allValues] mutableCopy];
16708+ id dict = [[self dictionaryWithValuesForKeys:QTSerializerProvider.properties.allValues] mutableCopy];
1660716709
16608- for (id jsonName in QTStandards.properties) {
16609- id propertyName = QTStandards.properties[jsonName];
16710+ for (id jsonName in QTSerializerProvider.properties) {
16711+ id propertyName = QTSerializerProvider.properties[jsonName];
1661016712 if (![jsonName isEqualToString:propertyName]) {
1661116713 dict[jsonName] = dict[propertyName];
1661216714 [dict removeObjectForKey:propertyName];
@@ -16617,25 +16719,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1661716719 }
1661816720 @end
1661916721
16620-@implementation QTStaticAssert
16722+@implementation QTSet
1662116723 + (NSDictionary<NSString *, NSString *> *)properties
1662216724 {
1662316725 static NSDictionary<NSString *, NSString *> *properties;
1662416726 return properties = properties ? properties : @{
16625- @"static_assert": @"staticAssert",
16727+ @"set": @"set",
1662616728 };
1662716729 }
1662816730
1662916731 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1663016732 {
16631- return [dict isKindOfClass:NSDictionary.class] ? [[QTStaticAssert alloc] initWithJSONDictionary:dict] : nil;
16733+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSet alloc] initWithJSONDictionary:dict] : nil;
1663216734 }
1663316735
1663416736 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1663516737 {
1663616738 if (self = [super init]) {
16637- if (![dict[@"static_assert"] isKindOfClass:NSNumber.class]) return nil;
16638- if ([dict[@"static_assert"] doubleValue] != [dict[@"static_assert"] longLongValue]) return nil;
16739+ if (![dict[@"set"] isKindOfClass:NSNumber.class]) return nil;
16740+ if ([dict[@"set"] doubleValue] != [dict[@"set"] longLongValue]) return nil;
1663916741 [self setValuesForKeysWithDictionary:dict];
1664016742 }
1664116743 return self;
@@ -16643,7 +16745,195 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1664316745
1664416746 - (void)setValue:(nullable id)value forKey:(NSString *)key
1664516747 {
16646- id resolved = QTStaticAssert.properties[key];
16748+ id resolved = QTSet.properties[key];
16749+ if (resolved) [super setValue:value forKey:resolved];
16750+}
16751+
16752+- (void)setNilValueForKey:(NSString *)key
16753+{
16754+ id resolved = QTSet.properties[key];
16755+ if (resolved) [super setValue:@(0) forKey:resolved];
16756+}
16757+
16758+- (NSDictionary *)JSONDictionary
16759+{
16760+ return [self dictionaryWithValuesForKeys:QTSet.properties.allValues];
16761+}
16762+@end
16763+
16764+@implementation QTSimpleModule
16765++ (NSDictionary<NSString *, NSString *> *)properties
16766+{
16767+ static NSDictionary<NSString *, NSString *> *properties;
16768+ return properties = properties ? properties : @{
16769+ @"SimpleModule": @"simpleModule",
16770+ };
16771+}
16772+
16773++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16774+{
16775+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSimpleModule alloc] initWithJSONDictionary:dict] : nil;
16776+}
16777+
16778+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16779+{
16780+ if (self = [super init]) {
16781+ if (![dict[@"SimpleModule"] isKindOfClass:NSNumber.class]) return nil;
16782+ if ([dict[@"SimpleModule"] doubleValue] != [dict[@"SimpleModule"] longLongValue]) return nil;
16783+ [self setValuesForKeysWithDictionary:dict];
16784+ }
16785+ return self;
16786+}
16787+
16788+- (void)setValue:(nullable id)value forKey:(NSString *)key
16789+{
16790+ id resolved = QTSimpleModule.properties[key];
16791+ if (resolved) [super setValue:value forKey:resolved];
16792+}
16793+
16794+- (void)setNilValueForKey:(NSString *)key
16795+{
16796+ id resolved = QTSimpleModule.properties[key];
16797+ if (resolved) [super setValue:@(0) forKey:resolved];
16798+}
16799+
16800+- (NSDictionary *)JSONDictionary
16801+{
16802+ id dict = [[self dictionaryWithValuesForKeys:QTSimpleModule.properties.allValues] mutableCopy];
16803+
16804+ for (id jsonName in QTSimpleModule.properties) {
16805+ id propertyName = QTSimpleModule.properties[jsonName];
16806+ if (![jsonName isEqualToString:propertyName]) {
16807+ dict[jsonName] = dict[propertyName];
16808+ [dict removeObjectForKey:propertyName];
16809+ }
16810+ }
16811+
16812+ return dict;
16813+}
16814+@end
16815+
16816+@implementation QTStackalloc
16817++ (NSDictionary<NSString *, NSString *> *)properties
16818+{
16819+ static NSDictionary<NSString *, NSString *> *properties;
16820+ return properties = properties ? properties : @{
16821+ @"stackalloc": @"stackalloc",
16822+ };
16823+}
16824+
16825++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16826+{
16827+ return [dict isKindOfClass:NSDictionary.class] ? [[QTStackalloc alloc] initWithJSONDictionary:dict] : nil;
16828+}
16829+
16830+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16831+{
16832+ if (self = [super init]) {
16833+ if (![dict[@"stackalloc"] isKindOfClass:NSNumber.class]) return nil;
16834+ if ([dict[@"stackalloc"] doubleValue] != [dict[@"stackalloc"] longLongValue]) return nil;
16835+ [self setValuesForKeysWithDictionary:dict];
16836+ }
16837+ return self;
16838+}
16839+
16840+- (void)setValue:(nullable id)value forKey:(NSString *)key
16841+{
16842+ id resolved = QTStackalloc.properties[key];
16843+ if (resolved) [super setValue:value forKey:resolved];
16844+}
16845+
16846+- (void)setNilValueForKey:(NSString *)key
16847+{
16848+ id resolved = QTStackalloc.properties[key];
16849+ if (resolved) [super setValue:@(0) forKey:resolved];
16850+}
16851+
16852+- (NSDictionary *)JSONDictionary
16853+{
16854+ return [self dictionaryWithValuesForKeys:QTStackalloc.properties.allValues];
16855+}
16856+@end
16857+
16858+@implementation QTStandards
16859++ (NSDictionary<NSString *, NSString *> *)properties
16860+{
16861+ static NSDictionary<NSString *, NSString *> *properties;
16862+ return properties = properties ? properties : @{
16863+ @"Standards": @"standards",
16864+ };
16865+}
16866+
16867++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16868+{
16869+ return [dict isKindOfClass:NSDictionary.class] ? [[QTStandards alloc] initWithJSONDictionary:dict] : nil;
16870+}
16871+
16872+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16873+{
16874+ if (self = [super init]) {
16875+ if (![dict[@"Standards"] isKindOfClass:NSNumber.class]) return nil;
16876+ if ([dict[@"Standards"] doubleValue] != [dict[@"Standards"] longLongValue]) return nil;
16877+ [self setValuesForKeysWithDictionary:dict];
16878+ }
16879+ return self;
16880+}
16881+
16882+- (void)setValue:(nullable id)value forKey:(NSString *)key
16883+{
16884+ id resolved = QTStandards.properties[key];
16885+ if (resolved) [super setValue:value forKey:resolved];
16886+}
16887+
16888+- (void)setNilValueForKey:(NSString *)key
16889+{
16890+ id resolved = QTStandards.properties[key];
16891+ if (resolved) [super setValue:@(0) forKey:resolved];
16892+}
16893+
16894+- (NSDictionary *)JSONDictionary
16895+{
16896+ id dict = [[self dictionaryWithValuesForKeys:QTStandards.properties.allValues] mutableCopy];
16897+
16898+ for (id jsonName in QTStandards.properties) {
16899+ id propertyName = QTStandards.properties[jsonName];
16900+ if (![jsonName isEqualToString:propertyName]) {
16901+ dict[jsonName] = dict[propertyName];
16902+ [dict removeObjectForKey:propertyName];
16903+ }
16904+ }
16905+
16906+ return dict;
16907+}
16908+@end
16909+
16910+@implementation QTStaticAssert
16911++ (NSDictionary<NSString *, NSString *> *)properties
16912+{
16913+ static NSDictionary<NSString *, NSString *> *properties;
16914+ return properties = properties ? properties : @{
16915+ @"static_assert": @"staticAssert",
16916+ };
16917+}
16918+
16919++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16920+{
16921+ return [dict isKindOfClass:NSDictionary.class] ? [[QTStaticAssert alloc] initWithJSONDictionary:dict] : nil;
16922+}
16923+
16924+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16925+{
16926+ if (self = [super init]) {
16927+ if (![dict[@"static_assert"] isKindOfClass:NSNumber.class]) return nil;
16928+ if ([dict[@"static_assert"] doubleValue] != [dict[@"static_assert"] longLongValue]) return nil;
16929+ [self setValuesForKeysWithDictionary:dict];
16930+ }
16931+ return self;
16932+}
16933+
16934+- (void)setValue:(nullable id)value forKey:(NSString *)key
16935+{
16936+ id resolved = QTStaticAssert.properties[key];
1664716937 if (resolved) [super setValue:value forKey:resolved];
1664816938 }
1664916939
@@ -18249,25 +18539,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1824918539 }
1825018540 @end
1825118541
18252-@implementation QTUshort
18542+@implementation QTUseSerializers
1825318543 + (NSDictionary<NSString *, NSString *> *)properties
1825418544 {
1825518545 static NSDictionary<NSString *, NSString *> *properties;
1825618546 return properties = properties ? properties : @{
18257- @"ushort": @"ushort",
18547+ @"UseSerializers": @"useSerializers",
1825818548 };
1825918549 }
1826018550
1826118551 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1826218552 {
18263- return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
18553+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil;
1826418554 }
1826518555
1826618556 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1826718557 {
1826818558 if (self = [super init]) {
18269- if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
18270- if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
18559+ if (![dict[@"UseSerializers"] isKindOfClass:NSNumber.class]) return nil;
18560+ if ([dict[@"UseSerializers"] doubleValue] != [dict[@"UseSerializers"] longLongValue]) return nil;
1827118561 [self setValuesForKeysWithDictionary:dict];
1827218562 }
1827318563 return self;
@@ -18275,41 +18565,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1827518565
1827618566 - (void)setValue:(nullable id)value forKey:(NSString *)key
1827718567 {
18278- id resolved = QTUshort.properties[key];
18568+ id resolved = QTUseSerializers.properties[key];
1827918569 if (resolved) [super setValue:value forKey:resolved];
1828018570 }
1828118571
1828218572 - (void)setNilValueForKey:(NSString *)key
1828318573 {
18284- id resolved = QTUshort.properties[key];
18574+ id resolved = QTUseSerializers.properties[key];
1828518575 if (resolved) [super setValue:@(0) forKey:resolved];
1828618576 }
1828718577
1828818578 - (NSDictionary *)JSONDictionary
1828918579 {
18290- return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
18580+ id dict = [[self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues] mutableCopy];
18581+
18582+ for (id jsonName in QTUseSerializers.properties) {
18583+ id propertyName = QTUseSerializers.properties[jsonName];
18584+ if (![jsonName isEqualToString:propertyName]) {
18585+ dict[jsonName] = dict[propertyName];
18586+ [dict removeObjectForKey:propertyName];
18587+ }
18588+ }
18589+
18590+ return dict;
1829118591 }
1829218592 @end
1829318593
18294-@implementation QTUsing
18594+@implementation QTUshort
1829518595 + (NSDictionary<NSString *, NSString *> *)properties
1829618596 {
1829718597 static NSDictionary<NSString *, NSString *> *properties;
1829818598 return properties = properties ? properties : @{
18299- @"using": @"using",
18599+ @"ushort": @"ushort",
1830018600 };
1830118601 }
1830218602
1830318603 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1830418604 {
18305- return [dict isKindOfClass:NSDictionary.class] ? [[QTUsing alloc] initWithJSONDictionary:dict] : nil;
18605+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
1830618606 }
1830718607
1830818608 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1830918609 {
1831018610 if (self = [super init]) {
18311- if (![dict[@"using"] isKindOfClass:NSNumber.class]) return nil;
18312- if ([dict[@"using"] doubleValue] != [dict[@"using"] longLongValue]) return nil;
18611+ if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
18612+ if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
1831318613 [self setValuesForKeysWithDictionary:dict];
1831418614 }
1831518615 return self;
@@ -18317,93 +18617,186 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1831718617
1831818618 - (void)setValue:(nullable id)value forKey:(NSString *)key
1831918619 {
18320- id resolved = QTUsing.properties[key];
18620+ id resolved = QTUshort.properties[key];
1832118621 if (resolved) [super setValue:value forKey:resolved];
1832218622 }
1832318623
1832418624 - (void)setNilValueForKey:(NSString *)key
1832518625 {
18326- id resolved = QTUsing.properties[key];
18626+ id resolved = QTUshort.properties[key];
1832718627 if (resolved) [super setValue:@(0) forKey:resolved];
1832818628 }
1832918629
1833018630 - (NSDictionary *)JSONDictionary
1833118631 {
18332- return [self dictionaryWithValuesForKeys:QTUsing.properties.allValues];
18632+ return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
1833318633 }
1833418634 @end
1833518635
18336-@implementation QTUtf8JSONReader
18636+@implementation QTObj6
1833718637 + (NSDictionary<NSString *, NSString *> *)properties
1833818638 {
1833918639 static NSDictionary<NSString *, NSString *> *properties;
1834018640 return properties = properties ? properties : @{
18641+ @"dummy": @"dummy",
18642+ @"void": @"obj6Void",
18643+ @"volatile": @"obj6Volatile",
18644+ @"while": @"obj6While",
18645+ @"using": @"using",
1834118646 @"Utf8JsonReader": @"utf8JSONReader",
18647+ @"Utf8JsonWriter": @"utf8JSONWriter",
18648+ @"UUID": @"uuid",
18649+ @"var": @"var",
18650+ @"virtual": @"virtual",
18651+ @"wchar_t": @"wcharT",
18652+ @"weak": @"weak",
18653+ @"where": @"where",
18654+ @"willSet": @"willSet",
18655+ @"with": @"with",
18656+ @"xor": @"xor",
18657+ @"xor_eq": @"xorEq",
18658+ @"YES": @"yes",
18659+ @"yield": @"yield",
1834218660 };
1834318661 }
1834418662
1834518663 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1834618664 {
18347- return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONReader alloc] initWithJSONDictionary:dict] : nil;
18665+ return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil;
1834818666 }
1834918667
1835018668 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1835118669 {
1835218670 if (self = [super init]) {
18353- if (![dict[@"Utf8JsonReader"] isKindOfClass:NSNumber.class]) return nil;
18354- if ([dict[@"Utf8JsonReader"] doubleValue] != [dict[@"Utf8JsonReader"] longLongValue]) return nil;
18355- [self setValuesForKeysWithDictionary:dict];
18356- }
18357- return self;
18358-}
18359-
18360-- (void)setValue:(nullable id)value forKey:(NSString *)key
18361-{
18362- id resolved = QTUtf8JSONReader.properties[key];
18363- if (resolved) [super setValue:value forKey:resolved];
18364-}
18365-
18366-- (void)setNilValueForKey:(NSString *)key
18671+ if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
18672+ if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18673+ if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
18674+ if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
18675+ if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18676+ if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
18677+ if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
18678+ if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
18679+ if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
18680+ if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
18681+ if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
18682+ if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
18683+ if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
18684+ if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
18685+ if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil;
18686+ if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil;
18687+ if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil;
18688+ if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil;
18689+ if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
18690+ if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
18691+ [self setValuesForKeysWithDictionary:dict];
18692+ _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
18693+ if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
18694+ _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
18695+ if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
18696+ _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
18697+ if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18698+ _using = [QTUsing fromJSONDictionary:(id)_using];
18699+ if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
18700+ _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
18701+ if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil;
18702+ _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter];
18703+ if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
18704+ _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
18705+ if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
18706+ _var = [QTVar fromJSONDictionary:(id)_var];
18707+ if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
18708+ _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
18709+ if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
18710+ _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
18711+ if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
18712+ _weak = [QTWeak fromJSONDictionary:(id)_weak];
18713+ if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil;
18714+ _where = [QTWhere fromJSONDictionary:(id)_where];
18715+ if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil;
18716+ _willSet = [QTWillSet fromJSONDictionary:(id)_willSet];
18717+ if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil;
18718+ _with = [QTWith fromJSONDictionary:(id)_with];
18719+ if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil;
18720+ _xor = [QTXor fromJSONDictionary:(id)_xor];
18721+ if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil;
18722+ _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq];
18723+ if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil;
18724+ _yes = [QTYes fromJSONDictionary:(id)_yes];
18725+ if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil;
18726+ _yield = [QTYield fromJSONDictionary:(id)_yield];
18727+ if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil;
18728+ }
18729+ return self;
18730+}
18731+
18732+- (void)setValue:(nullable id)value forKey:(NSString *)key
1836718733 {
18368- id resolved = QTUtf8JSONReader.properties[key];
18734+ id resolved = QTObj6.properties[key];
18735+ if (resolved) [super setValue:value forKey:resolved];
18736+}
18737+
18738+- (void)setNilValueForKey:(NSString *)key
18739+{
18740+ id resolved = QTObj6.properties[key];
1836918741 if (resolved) [super setValue:@(0) forKey:resolved];
1837018742 }
1837118743
1837218744 - (NSDictionary *)JSONDictionary
1837318745 {
18374- id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONReader.properties.allValues] mutableCopy];
18746+ id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy];
1837518747
18376- for (id jsonName in QTUtf8JSONReader.properties) {
18377- id propertyName = QTUtf8JSONReader.properties[jsonName];
18748+ for (id jsonName in QTObj6.properties) {
18749+ id propertyName = QTObj6.properties[jsonName];
1837818750 if (![jsonName isEqualToString:propertyName]) {
1837918751 dict[jsonName] = dict[propertyName];
1838018752 [dict removeObjectForKey:propertyName];
1838118753 }
1838218754 }
1838318755
18756+ [dict addEntriesFromDictionary:@{
18757+ @"void": [_obj6Void JSONDictionary],
18758+ @"volatile": [_obj6Volatile JSONDictionary],
18759+ @"while": [_obj6While JSONDictionary],
18760+ @"using": [_using JSONDictionary],
18761+ @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
18762+ @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
18763+ @"UUID": [_uuid JSONDictionary],
18764+ @"var": [_var JSONDictionary],
18765+ @"virtual": [_virtual JSONDictionary],
18766+ @"wchar_t": [_wcharT JSONDictionary],
18767+ @"weak": [_weak JSONDictionary],
18768+ @"where": [_where JSONDictionary],
18769+ @"willSet": [_willSet JSONDictionary],
18770+ @"with": [_with JSONDictionary],
18771+ @"xor": [_xor JSONDictionary],
18772+ @"xor_eq": [_xorEq JSONDictionary],
18773+ @"YES": [_yes JSONDictionary],
18774+ @"yield": [_yield JSONDictionary],
18775+ }];
18776+
1838418777 return dict;
1838518778 }
1838618779 @end
1838718780
18388-@implementation QTUtf8JSONWriter
18781+@implementation QTVoid
1838918782 + (NSDictionary<NSString *, NSString *> *)properties
1839018783 {
1839118784 static NSDictionary<NSString *, NSString *> *properties;
1839218785 return properties = properties ? properties : @{
18393- @"Utf8JsonWriter": @"utf8JSONWriter",
18786+ @"void": @"voidVoid",
1839418787 };
1839518788 }
1839618789
1839718790 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1839818791 {
18399- return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONWriter alloc] initWithJSONDictionary:dict] : nil;
18792+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil;
1840018793 }
1840118794
1840218795 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1840318796 {
1840418797 if (self = [super init]) {
18405- if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSNumber.class]) return nil;
18406- if ([dict[@"Utf8JsonWriter"] doubleValue] != [dict[@"Utf8JsonWriter"] longLongValue]) return nil;
18798+ if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil;
18799+ if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil;
1840718800 [self setValuesForKeysWithDictionary:dict];
1840818801 }
1840918802 return self;
@@ -18411,22 +18804,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1841118804
1841218805 - (void)setValue:(nullable id)value forKey:(NSString *)key
1841318806 {
18414- id resolved = QTUtf8JSONWriter.properties[key];
18807+ id resolved = QTVoid.properties[key];
1841518808 if (resolved) [super setValue:value forKey:resolved];
1841618809 }
1841718810
1841818811 - (void)setNilValueForKey:(NSString *)key
1841918812 {
18420- id resolved = QTUtf8JSONWriter.properties[key];
18813+ id resolved = QTVoid.properties[key];
1842118814 if (resolved) [super setValue:@(0) forKey:resolved];
1842218815 }
1842318816
1842418817 - (NSDictionary *)JSONDictionary
1842518818 {
18426- id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONWriter.properties.allValues] mutableCopy];
18819+ id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy];
1842718820
18428- for (id jsonName in QTUtf8JSONWriter.properties) {
18429- id propertyName = QTUtf8JSONWriter.properties[jsonName];
18821+ for (id jsonName in QTVoid.properties) {
18822+ id propertyName = QTVoid.properties[jsonName];
1843018823 if (![jsonName isEqualToString:propertyName]) {
1843118824 dict[jsonName] = dict[propertyName];
1843218825 [dict removeObjectForKey:propertyName];
@@ -18437,25 +18830,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1843718830 }
1843818831 @end
1843918832
18440-@implementation QTUUID
18833+@implementation QTVolatile
1844118834 + (NSDictionary<NSString *, NSString *> *)properties
1844218835 {
1844318836 static NSDictionary<NSString *, NSString *> *properties;
1844418837 return properties = properties ? properties : @{
18445- @"UUID": @"uuid",
18838+ @"volatile": @"volatileVolatile",
1844618839 };
1844718840 }
1844818841
1844918842 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1845018843 {
18451- return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil;
18844+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil;
1845218845 }
1845318846
1845418847 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1845518848 {
1845618849 if (self = [super init]) {
18457- if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil;
18458- if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil;
18850+ if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil;
18851+ if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil;
1845918852 [self setValuesForKeysWithDictionary:dict];
1846018853 }
1846118854 return self;
@@ -18463,22 +18856,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1846318856
1846418857 - (void)setValue:(nullable id)value forKey:(NSString *)key
1846518858 {
18466- id resolved = QTUUID.properties[key];
18859+ id resolved = QTVolatile.properties[key];
1846718860 if (resolved) [super setValue:value forKey:resolved];
1846818861 }
1846918862
1847018863 - (void)setNilValueForKey:(NSString *)key
1847118864 {
18472- id resolved = QTUUID.properties[key];
18865+ id resolved = QTVolatile.properties[key];
1847318866 if (resolved) [super setValue:@(0) forKey:resolved];
1847418867 }
1847518868
1847618869 - (NSDictionary *)JSONDictionary
1847718870 {
18478- id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy];
18871+ id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy];
1847918872
18480- for (id jsonName in QTUUID.properties) {
18481- id propertyName = QTUUID.properties[jsonName];
18873+ for (id jsonName in QTVolatile.properties) {
18874+ id propertyName = QTVolatile.properties[jsonName];
1848218875 if (![jsonName isEqualToString:propertyName]) {
1848318876 dict[jsonName] = dict[propertyName];
1848418877 [dict removeObjectForKey:propertyName];
@@ -18489,25 +18882,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1848918882 }
1849018883 @end
1849118884
18492-@implementation QTVar
18885+@implementation QTWhile
1849318886 + (NSDictionary<NSString *, NSString *> *)properties
1849418887 {
1849518888 static NSDictionary<NSString *, NSString *> *properties;
1849618889 return properties = properties ? properties : @{
18497- @"var": @"var",
18890+ @"while": @"whileWhile",
1849818891 };
1849918892 }
1850018893
1850118894 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1850218895 {
18503- return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
18896+ return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil;
1850418897 }
1850518898
1850618899 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1850718900 {
1850818901 if (self = [super init]) {
18509- if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
18510- if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
18902+ if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil;
18903+ if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil;
1851118904 [self setValuesForKeysWithDictionary:dict];
1851218905 }
1851318906 return self;
@@ -18515,41 +18908,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1851518908
1851618909 - (void)setValue:(nullable id)value forKey:(NSString *)key
1851718910 {
18518- id resolved = QTVar.properties[key];
18911+ id resolved = QTWhile.properties[key];
1851918912 if (resolved) [super setValue:value forKey:resolved];
1852018913 }
1852118914
1852218915 - (void)setNilValueForKey:(NSString *)key
1852318916 {
18524- id resolved = QTVar.properties[key];
18917+ id resolved = QTWhile.properties[key];
1852518918 if (resolved) [super setValue:@(0) forKey:resolved];
1852618919 }
1852718920
1852818921 - (NSDictionary *)JSONDictionary
1852918922 {
18530- return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
18923+ id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy];
18924+
18925+ for (id jsonName in QTWhile.properties) {
18926+ id propertyName = QTWhile.properties[jsonName];
18927+ if (![jsonName isEqualToString:propertyName]) {
18928+ dict[jsonName] = dict[propertyName];
18929+ [dict removeObjectForKey:propertyName];
18930+ }
18931+ }
18932+
18933+ return dict;
1853118934 }
1853218935 @end
1853318936
18534-@implementation QTVirtual
18937+@implementation QTUsing
1853518938 + (NSDictionary<NSString *, NSString *> *)properties
1853618939 {
1853718940 static NSDictionary<NSString *, NSString *> *properties;
1853818941 return properties = properties ? properties : @{
18539- @"virtual": @"virtual",
18942+ @"using": @"using",
1854018943 };
1854118944 }
1854218945
1854318946 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1854418947 {
18545- return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
18948+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUsing alloc] initWithJSONDictionary:dict] : nil;
1854618949 }
1854718950
1854818951 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1854918952 {
1855018953 if (self = [super init]) {
18551- if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
18552- if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
18954+ if (![dict[@"using"] isKindOfClass:NSNumber.class]) return nil;
18955+ if ([dict[@"using"] doubleValue] != [dict[@"using"] longLongValue]) return nil;
1855318956 [self setValuesForKeysWithDictionary:dict];
1855418957 }
1855518958 return self;
@@ -18557,156 +18960,93 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1855718960
1855818961 - (void)setValue:(nullable id)value forKey:(NSString *)key
1855918962 {
18560- id resolved = QTVirtual.properties[key];
18963+ id resolved = QTUsing.properties[key];
1856118964 if (resolved) [super setValue:value forKey:resolved];
1856218965 }
1856318966
1856418967 - (void)setNilValueForKey:(NSString *)key
1856518968 {
18566- id resolved = QTVirtual.properties[key];
18969+ id resolved = QTUsing.properties[key];
1856718970 if (resolved) [super setValue:@(0) forKey:resolved];
1856818971 }
1856918972
1857018973 - (NSDictionary *)JSONDictionary
1857118974 {
18572- return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
18975+ return [self dictionaryWithValuesForKeys:QTUsing.properties.allValues];
1857318976 }
1857418977 @end
1857518978
18576-@implementation QTObj6
18979+@implementation QTUtf8JSONReader
1857718980 + (NSDictionary<NSString *, NSString *> *)properties
1857818981 {
1857918982 static NSDictionary<NSString *, NSString *> *properties;
1858018983 return properties = properties ? properties : @{
18581- @"dummy": @"dummy",
18582- @"void": @"obj6Void",
18583- @"volatile": @"obj6Volatile",
18584- @"while": @"obj6While",
18585- @"wchar_t": @"wcharT",
18586- @"weak": @"weak",
18587- @"where": @"where",
18588- @"willSet": @"willSet",
18589- @"with": @"with",
18590- @"xor": @"xor",
18591- @"xor_eq": @"xorEq",
18592- @"YES": @"yes",
18593- @"yield": @"yield",
18984+ @"Utf8JsonReader": @"utf8JSONReader",
1859418985 };
1859518986 }
1859618987
1859718988 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1859818989 {
18599- return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil;
18990+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONReader alloc] initWithJSONDictionary:dict] : nil;
1860018991 }
1860118992
1860218993 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1860318994 {
1860418995 if (self = [super init]) {
18605- if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
18606- if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18607- if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
18608- if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
18609- if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18610- if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
18611- if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
18612- if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
18613- if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil;
18614- if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil;
18615- if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil;
18616- if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil;
18617- if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
18618- if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
18996+ if (![dict[@"Utf8JsonReader"] isKindOfClass:NSNumber.class]) return nil;
18997+ if ([dict[@"Utf8JsonReader"] doubleValue] != [dict[@"Utf8JsonReader"] longLongValue]) return nil;
1861918998 [self setValuesForKeysWithDictionary:dict];
18620- _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
18621- if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
18622- _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
18623- if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
18624- _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
18625- if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18626- _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
18627- if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
18628- _weak = [QTWeak fromJSONDictionary:(id)_weak];
18629- if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil;
18630- _where = [QTWhere fromJSONDictionary:(id)_where];
18631- if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil;
18632- _willSet = [QTWillSet fromJSONDictionary:(id)_willSet];
18633- if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil;
18634- _with = [QTWith fromJSONDictionary:(id)_with];
18635- if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil;
18636- _xor = [QTXor fromJSONDictionary:(id)_xor];
18637- if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil;
18638- _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq];
18639- if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil;
18640- _yes = [QTYes fromJSONDictionary:(id)_yes];
18641- if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil;
18642- _yield = [QTYield fromJSONDictionary:(id)_yield];
18643- if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil;
1864418999 }
1864519000 return self;
1864619001 }
1864719002
1864819003 - (void)setValue:(nullable id)value forKey:(NSString *)key
1864919004 {
18650- id resolved = QTObj6.properties[key];
19005+ id resolved = QTUtf8JSONReader.properties[key];
1865119006 if (resolved) [super setValue:value forKey:resolved];
1865219007 }
1865319008
1865419009 - (void)setNilValueForKey:(NSString *)key
1865519010 {
18656- id resolved = QTObj6.properties[key];
19011+ id resolved = QTUtf8JSONReader.properties[key];
1865719012 if (resolved) [super setValue:@(0) forKey:resolved];
1865819013 }
1865919014
1866019015 - (NSDictionary *)JSONDictionary
1866119016 {
18662- id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy];
19017+ id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONReader.properties.allValues] mutableCopy];
1866319018
18664- for (id jsonName in QTObj6.properties) {
18665- id propertyName = QTObj6.properties[jsonName];
19019+ for (id jsonName in QTUtf8JSONReader.properties) {
19020+ id propertyName = QTUtf8JSONReader.properties[jsonName];
1866619021 if (![jsonName isEqualToString:propertyName]) {
1866719022 dict[jsonName] = dict[propertyName];
1866819023 [dict removeObjectForKey:propertyName];
1866919024 }
1867019025 }
1867119026
18672- [dict addEntriesFromDictionary:@{
18673- @"void": [_obj6Void JSONDictionary],
18674- @"volatile": [_obj6Volatile JSONDictionary],
18675- @"while": [_obj6While JSONDictionary],
18676- @"wchar_t": [_wcharT JSONDictionary],
18677- @"weak": [_weak JSONDictionary],
18678- @"where": [_where JSONDictionary],
18679- @"willSet": [_willSet JSONDictionary],
18680- @"with": [_with JSONDictionary],
18681- @"xor": [_xor JSONDictionary],
18682- @"xor_eq": [_xorEq JSONDictionary],
18683- @"YES": [_yes JSONDictionary],
18684- @"yield": [_yield JSONDictionary],
18685- }];
18686-
1868719027 return dict;
1868819028 }
1868919029 @end
1869019030
18691-@implementation QTVoid
19031+@implementation QTUtf8JSONWriter
1869219032 + (NSDictionary<NSString *, NSString *> *)properties
1869319033 {
1869419034 static NSDictionary<NSString *, NSString *> *properties;
1869519035 return properties = properties ? properties : @{
18696- @"void": @"voidVoid",
19036+ @"Utf8JsonWriter": @"utf8JSONWriter",
1869719037 };
1869819038 }
1869919039
1870019040 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1870119041 {
18702- return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil;
19042+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONWriter alloc] initWithJSONDictionary:dict] : nil;
1870319043 }
1870419044
1870519045 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1870619046 {
1870719047 if (self = [super init]) {
18708- if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil;
18709- if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil;
19048+ if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSNumber.class]) return nil;
19049+ if ([dict[@"Utf8JsonWriter"] doubleValue] != [dict[@"Utf8JsonWriter"] longLongValue]) return nil;
1871019050 [self setValuesForKeysWithDictionary:dict];
1871119051 }
1871219052 return self;
@@ -18714,22 +19054,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1871419054
1871519055 - (void)setValue:(nullable id)value forKey:(NSString *)key
1871619056 {
18717- id resolved = QTVoid.properties[key];
19057+ id resolved = QTUtf8JSONWriter.properties[key];
1871819058 if (resolved) [super setValue:value forKey:resolved];
1871919059 }
1872019060
1872119061 - (void)setNilValueForKey:(NSString *)key
1872219062 {
18723- id resolved = QTVoid.properties[key];
19063+ id resolved = QTUtf8JSONWriter.properties[key];
1872419064 if (resolved) [super setValue:@(0) forKey:resolved];
1872519065 }
1872619066
1872719067 - (NSDictionary *)JSONDictionary
1872819068 {
18729- id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy];
19069+ id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONWriter.properties.allValues] mutableCopy];
1873019070
18731- for (id jsonName in QTVoid.properties) {
18732- id propertyName = QTVoid.properties[jsonName];
19071+ for (id jsonName in QTUtf8JSONWriter.properties) {
19072+ id propertyName = QTUtf8JSONWriter.properties[jsonName];
1873319073 if (![jsonName isEqualToString:propertyName]) {
1873419074 dict[jsonName] = dict[propertyName];
1873519075 [dict removeObjectForKey:propertyName];
@@ -18740,25 +19080,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1874019080 }
1874119081 @end
1874219082
18743-@implementation QTVolatile
19083+@implementation QTUUID
1874419084 + (NSDictionary<NSString *, NSString *> *)properties
1874519085 {
1874619086 static NSDictionary<NSString *, NSString *> *properties;
1874719087 return properties = properties ? properties : @{
18748- @"volatile": @"volatileVolatile",
19088+ @"UUID": @"uuid",
1874919089 };
1875019090 }
1875119091
1875219092 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1875319093 {
18754- return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil;
19094+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil;
1875519095 }
1875619096
1875719097 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1875819098 {
1875919099 if (self = [super init]) {
18760- if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil;
18761- if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil;
19100+ if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil;
19101+ if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil;
1876219102 [self setValuesForKeysWithDictionary:dict];
1876319103 }
1876419104 return self;
@@ -18766,22 +19106,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1876619106
1876719107 - (void)setValue:(nullable id)value forKey:(NSString *)key
1876819108 {
18769- id resolved = QTVolatile.properties[key];
19109+ id resolved = QTUUID.properties[key];
1877019110 if (resolved) [super setValue:value forKey:resolved];
1877119111 }
1877219112
1877319113 - (void)setNilValueForKey:(NSString *)key
1877419114 {
18775- id resolved = QTVolatile.properties[key];
19115+ id resolved = QTUUID.properties[key];
1877619116 if (resolved) [super setValue:@(0) forKey:resolved];
1877719117 }
1877819118
1877919119 - (NSDictionary *)JSONDictionary
1878019120 {
18781- id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy];
19121+ id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy];
1878219122
18783- for (id jsonName in QTVolatile.properties) {
18784- id propertyName = QTVolatile.properties[jsonName];
19123+ for (id jsonName in QTUUID.properties) {
19124+ id propertyName = QTUUID.properties[jsonName];
1878519125 if (![jsonName isEqualToString:propertyName]) {
1878619126 dict[jsonName] = dict[propertyName];
1878719127 [dict removeObjectForKey:propertyName];
@@ -18792,25 +19132,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1879219132 }
1879319133 @end
1879419134
18795-@implementation QTWhile
19135+@implementation QTVar
1879619136 + (NSDictionary<NSString *, NSString *> *)properties
1879719137 {
1879819138 static NSDictionary<NSString *, NSString *> *properties;
1879919139 return properties = properties ? properties : @{
18800- @"while": @"whileWhile",
19140+ @"var": @"var",
1880119141 };
1880219142 }
1880319143
1880419144 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1880519145 {
18806- return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil;
19146+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
1880719147 }
1880819148
1880919149 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1881019150 {
1881119151 if (self = [super init]) {
18812- if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil;
18813- if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil;
19152+ if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
19153+ if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
1881419154 [self setValuesForKeysWithDictionary:dict];
1881519155 }
1881619156 return self;
@@ -18818,29 +19158,61 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1881819158
1881919159 - (void)setValue:(nullable id)value forKey:(NSString *)key
1882019160 {
18821- id resolved = QTWhile.properties[key];
19161+ id resolved = QTVar.properties[key];
1882219162 if (resolved) [super setValue:value forKey:resolved];
1882319163 }
1882419164
1882519165 - (void)setNilValueForKey:(NSString *)key
1882619166 {
18827- id resolved = QTWhile.properties[key];
19167+ id resolved = QTVar.properties[key];
1882819168 if (resolved) [super setValue:@(0) forKey:resolved];
1882919169 }
1883019170
1883119171 - (NSDictionary *)JSONDictionary
1883219172 {
18833- id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy];
19173+ return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
19174+}
19175+@end
1883419176
18835- for (id jsonName in QTWhile.properties) {
18836- id propertyName = QTWhile.properties[jsonName];
18837- if (![jsonName isEqualToString:propertyName]) {
18838- dict[jsonName] = dict[propertyName];
18839- [dict removeObjectForKey:propertyName];
18840- }
19177+@implementation QTVirtual
19178++ (NSDictionary<NSString *, NSString *> *)properties
19179+{
19180+ static NSDictionary<NSString *, NSString *> *properties;
19181+ return properties = properties ? properties : @{
19182+ @"virtual": @"virtual",
19183+ };
19184+}
19185+
19186++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19187+{
19188+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
19189+}
19190+
19191+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19192+{
19193+ if (self = [super init]) {
19194+ if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
19195+ if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
19196+ [self setValuesForKeysWithDictionary:dict];
1884119197 }
19198+ return self;
19199+}
1884219200
18843- return dict;
19201+- (void)setValue:(nullable id)value forKey:(NSString *)key
19202+{
19203+ id resolved = QTVirtual.properties[key];
19204+ if (resolved) [super setValue:value forKey:resolved];
19205+}
19206+
19207+- (void)setNilValueForKey:(NSString *)key
19208+{
19209+ id resolved = QTVirtual.properties[key];
19210+ if (resolved) [super setValue:@(0) forKey:resolved];
19211+}
19212+
19213+- (NSDictionary *)JSONDictionary
19214+{
19215+ return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
1884419216 }
1884519217 @end
Mphpdefault / TopLevel.php+3,517 −2,563
@@ -41636,12 +41636,17 @@ class Select {
4163641636
4163741637 class Obj5 {
4163841638 private int $dummy; // json:dummy Required
41639+ private KSerializer $kSerializer; // json:KSerializer Required
4163941640 private Obj5Self $obj5Self; // json:self Required
4164041641 private This $obj5This; // json:this Required
4164141642 private Obj5True $obj5True; // json:true Required
4164241643 private TypeClass $obj5Type; // json:type Required
41644+ private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
4164341645 private SelfClass $self; // json:Self Required
4164441646 private Sendable $sendable; // json:Sendable Required
41647+ private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required
41648+ private SerialName $serialName; // json:SerialName Required
41649+ private SerializableClass $serializable; // json:Serializable Required
4164541650 private Serialize $serialize; // json:serialize Required
4164641651 private SerializerProvider $serializerProvider; // json:SerializerProvider Required
4164741652 private Set $set; // json:set Required
@@ -41693,22 +41698,22 @@ class Obj5 {
4169341698 private Unowned $unowned; // json:unowned Required
4169441699 private Unsafe $unsafe; // json:unsafe Required
4169541700 private Unsigned $unsigned; // json:unsigned Required
41701+ private UseSerializers $useSerializers; // json:UseSerializers Required
4169641702 private Ushort $ushort; // json:ushort Required
41697- private Using $using; // json:using Required
41698- private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
41699- private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
41700- private UUID $uuid; // json:UUID Required
41701- private VarClass $var; // json:var Required
41702- private Virtual $virtual; // json:virtual Required
4170341703
4170441704 /**
4170541705 * @param int $dummy
41706+ * @param KSerializer $kSerializer
4170641707 * @param Obj5Self $obj5Self
4170741708 * @param This $obj5This
4170841709 * @param Obj5True $obj5True
4170941710 * @param TypeClass $obj5Type
41711+ * @param PrimitiveKind $primitiveKind
4171041712 * @param SelfClass $self
4171141713 * @param Sendable $sendable
41714+ * @param SerialDescriptor $serialDescriptor
41715+ * @param SerialName $serialName
41716+ * @param SerializableClass $serializable
4171241717 * @param Serialize $serialize
4171341718 * @param SerializerProvider $serializerProvider
4171441719 * @param Set $set
@@ -41760,22 +41765,22 @@ class Obj5 {
4176041765 * @param Unowned $unowned
4176141766 * @param Unsafe $unsafe
4176241767 * @param Unsigned $unsigned
41768+ * @param UseSerializers $useSerializers
4176341769 * @param Ushort $ushort
41764- * @param Using $using
41765- * @param Utf8JSONReader $utf8JSONReader
41766- * @param Utf8JSONWriter $utf8JSONWriter
41767- * @param UUID $uuid
41768- * @param VarClass $var
41769- * @param Virtual $virtual
4177041770 */
41771- public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, SelfClass $self, Sendable $sendable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual) {
41771+ public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, Ushort $ushort) {
4177241772 $this->dummy = $dummy;
41773+ $this->kSerializer = $kSerializer;
4177341774 $this->obj5Self = $obj5Self;
4177441775 $this->obj5This = $obj5This;
4177541776 $this->obj5True = $obj5True;
4177641777 $this->obj5Type = $obj5Type;
41778+ $this->primitiveKind = $primitiveKind;
4177741779 $this->self = $self;
4177841780 $this->sendable = $sendable;
41781+ $this->serialDescriptor = $serialDescriptor;
41782+ $this->serialName = $serialName;
41783+ $this->serializable = $serializable;
4177941784 $this->serialize = $serialize;
4178041785 $this->serializerProvider = $serializerProvider;
4178141786 $this->set = $set;
@@ -41827,13 +41832,8 @@ class Obj5 {
4182741832 $this->unowned = $unowned;
4182841833 $this->unsafe = $unsafe;
4182941834 $this->unsigned = $unsigned;
41835+ $this->useSerializers = $useSerializers;
4183041836 $this->ushort = $ushort;
41831- $this->using = $using;
41832- $this->utf8JSONReader = $utf8JSONReader;
41833- $this->utf8JSONWriter = $utf8JSONWriter;
41834- $this->uuid = $uuid;
41835- $this->var = $var;
41836- $this->virtual = $virtual;
4183741837 }
4183841838
4183941839 /**
@@ -41883,6 +41883,54 @@ class Obj5 {
4188341883 return 31; /*31:dummy*/
4188441884 }
4188541885
41886+ /**
41887+ * @param stdClass $value
41888+ * @throws Exception
41889+ * @return KSerializer
41890+ */
41891+ public static function fromKSerializer(stdClass $value): KSerializer {
41892+ return KSerializer::from($value); /*class*/
41893+ }
41894+
41895+ /**
41896+ * @throws Exception
41897+ * @return stdClass
41898+ */
41899+ public function toKSerializer(): stdClass {
41900+ if (Obj5::validateKSerializer($this->kSerializer)) {
41901+ return $this->kSerializer->to(); /*class*/
41902+ }
41903+ throw new Exception('never get to this Obj5::kSerializer');
41904+ }
41905+
41906+ /**
41907+ * @param KSerializer
41908+ * @return bool
41909+ * @throws Exception
41910+ */
41911+ public static function validateKSerializer(KSerializer $value): bool {
41912+ $value->validate();
41913+ return true;
41914+ }
41915+
41916+ /**
41917+ * @throws Exception
41918+ * @return KSerializer
41919+ */
41920+ public function getKSerializer(): KSerializer {
41921+ if (Obj5::validateKSerializer($this->kSerializer)) {
41922+ return $this->kSerializer;
41923+ }
41924+ throw new Exception('never get to getKSerializer Obj5::kSerializer');
41925+ }
41926+
41927+ /**
41928+ * @return KSerializer
41929+ */
41930+ public static function sampleKSerializer(): KSerializer {
41931+ return KSerializer::sample(); /*32:kSerializer*/
41932+ }
41933+
4188641934 /**
4188741935 * @param stdClass $value
4188841936 * @throws Exception
@@ -41928,7 +41976,7 @@ class Obj5 {
4192841976 * @return Obj5Self
4192941977 */
4193041978 public static function sampleObj5Self(): Obj5Self {
41931- return Obj5Self::sample(); /*32:obj5Self*/
41979+ return Obj5Self::sample(); /*33:obj5Self*/
4193241980 }
4193341981
4193441982 /**
@@ -41976,7 +42024,7 @@ class Obj5 {
4197642024 * @return This
4197742025 */
4197842026 public static function sampleObj5This(): This {
41979- return This::sample(); /*33:obj5This*/
42027+ return This::sample(); /*34:obj5This*/
4198042028 }
4198142029
4198242030 /**
@@ -42024,7 +42072,7 @@ class Obj5 {
4202442072 * @return Obj5True
4202542073 */
4202642074 public static function sampleObj5True(): Obj5True {
42027- return Obj5True::sample(); /*34:obj5True*/
42075+ return Obj5True::sample(); /*35:obj5True*/
4202842076 }
4202942077
4203042078 /**
@@ -42072,7 +42120,55 @@ class Obj5 {
4207242120 * @return TypeClass
4207342121 */
4207442122 public static function sampleObj5Type(): TypeClass {
42075- return TypeClass::sample(); /*35:obj5Type*/
42123+ return TypeClass::sample(); /*36:obj5Type*/
42124+ }
42125+
42126+ /**
42127+ * @param stdClass $value
42128+ * @throws Exception
42129+ * @return PrimitiveKind
42130+ */
42131+ public static function fromPrimitiveKind(stdClass $value): PrimitiveKind {
42132+ return PrimitiveKind::from($value); /*class*/
42133+ }
42134+
42135+ /**
42136+ * @throws Exception
42137+ * @return stdClass
42138+ */
42139+ public function toPrimitiveKind(): stdClass {
42140+ if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42141+ return $this->primitiveKind->to(); /*class*/
42142+ }
42143+ throw new Exception('never get to this Obj5::primitiveKind');
42144+ }
42145+
42146+ /**
42147+ * @param PrimitiveKind
42148+ * @return bool
42149+ * @throws Exception
42150+ */
42151+ public static function validatePrimitiveKind(PrimitiveKind $value): bool {
42152+ $value->validate();
42153+ return true;
42154+ }
42155+
42156+ /**
42157+ * @throws Exception
42158+ * @return PrimitiveKind
42159+ */
42160+ public function getPrimitiveKind(): PrimitiveKind {
42161+ if (Obj5::validatePrimitiveKind($this->primitiveKind)) {
42162+ return $this->primitiveKind;
42163+ }
42164+ throw new Exception('never get to getPrimitiveKind Obj5::primitiveKind');
42165+ }
42166+
42167+ /**
42168+ * @return PrimitiveKind
42169+ */
42170+ public static function samplePrimitiveKind(): PrimitiveKind {
42171+ return PrimitiveKind::sample(); /*37:primitiveKind*/
4207642172 }
4207742173
4207842174 /**
@@ -42120,7 +42216,7 @@ class Obj5 {
4212042216 * @return SelfClass
4212142217 */
4212242218 public static function sampleSelf(): SelfClass {
42123- return SelfClass::sample(); /*36:self*/
42219+ return SelfClass::sample(); /*38:self*/
4212442220 }
4212542221
4212642222 /**
@@ -42168,7 +42264,151 @@ class Obj5 {
4216842264 * @return Sendable
4216942265 */
4217042266 public static function sampleSendable(): Sendable {
42171- return Sendable::sample(); /*37:sendable*/
42267+ return Sendable::sample(); /*39:sendable*/
42268+ }
42269+
42270+ /**
42271+ * @param stdClass $value
42272+ * @throws Exception
42273+ * @return SerialDescriptor
42274+ */
42275+ public static function fromSerialDescriptor(stdClass $value): SerialDescriptor {
42276+ return SerialDescriptor::from($value); /*class*/
42277+ }
42278+
42279+ /**
42280+ * @throws Exception
42281+ * @return stdClass
42282+ */
42283+ public function toSerialDescriptor(): stdClass {
42284+ if (Obj5::validateSerialDescriptor($this->serialDescriptor)) {
42285+ return $this->serialDescriptor->to(); /*class*/
42286+ }
42287+ throw new Exception('never get to this Obj5::serialDescriptor');
42288+ }
42289+
42290+ /**
42291+ * @param SerialDescriptor
42292+ * @return bool
42293+ * @throws Exception
42294+ */
42295+ public static function validateSerialDescriptor(SerialDescriptor $value): bool {
42296+ $value->validate();
42297+ return true;
42298+ }
42299+
42300+ /**
42301+ * @throws Exception
42302+ * @return SerialDescriptor
42303+ */
42304+ public function getSerialDescriptor(): SerialDescriptor {
42305+ if (Obj5::validateSerialDescriptor($this->serialDescriptor)) {
42306+ return $this->serialDescriptor;
42307+ }
42308+ throw new Exception('never get to getSerialDescriptor Obj5::serialDescriptor');
42309+ }
42310+
42311+ /**
42312+ * @return SerialDescriptor
42313+ */
42314+ public static function sampleSerialDescriptor(): SerialDescriptor {
42315+ return SerialDescriptor::sample(); /*40:serialDescriptor*/
42316+ }
42317+
42318+ /**
42319+ * @param stdClass $value
42320+ * @throws Exception
42321+ * @return SerialName
42322+ */
42323+ public static function fromSerialName(stdClass $value): SerialName {
42324+ return SerialName::from($value); /*class*/
42325+ }
42326+
42327+ /**
42328+ * @throws Exception
42329+ * @return stdClass
42330+ */
42331+ public function toSerialName(): stdClass {
42332+ if (Obj5::validateSerialName($this->serialName)) {
42333+ return $this->serialName->to(); /*class*/
42334+ }
42335+ throw new Exception('never get to this Obj5::serialName');
42336+ }
42337+
42338+ /**
42339+ * @param SerialName
42340+ * @return bool
42341+ * @throws Exception
42342+ */
42343+ public static function validateSerialName(SerialName $value): bool {
42344+ $value->validate();
42345+ return true;
42346+ }
42347+
42348+ /**
42349+ * @throws Exception
42350+ * @return SerialName
42351+ */
42352+ public function getSerialName(): SerialName {
42353+ if (Obj5::validateSerialName($this->serialName)) {
42354+ return $this->serialName;
42355+ }
42356+ throw new Exception('never get to getSerialName Obj5::serialName');
42357+ }
42358+
42359+ /**
42360+ * @return SerialName
42361+ */
42362+ public static function sampleSerialName(): SerialName {
42363+ return SerialName::sample(); /*41:serialName*/
42364+ }
42365+
42366+ /**
42367+ * @param stdClass $value
42368+ * @throws Exception
42369+ * @return SerializableClass
42370+ */
42371+ public static function fromSerializable(stdClass $value): SerializableClass {
42372+ return SerializableClass::from($value); /*class*/
42373+ }
42374+
42375+ /**
42376+ * @throws Exception
42377+ * @return stdClass
42378+ */
42379+ public function toSerializable(): stdClass {
42380+ if (Obj5::validateSerializable($this->serializable)) {
42381+ return $this->serializable->to(); /*class*/
42382+ }
42383+ throw new Exception('never get to this Obj5::serializable');
42384+ }
42385+
42386+ /**
42387+ * @param SerializableClass
42388+ * @return bool
42389+ * @throws Exception
42390+ */
42391+ public static function validateSerializable(SerializableClass $value): bool {
42392+ $value->validate();
42393+ return true;
42394+ }
42395+
42396+ /**
42397+ * @throws Exception
42398+ * @return SerializableClass
42399+ */
42400+ public function getSerializable(): SerializableClass {
42401+ if (Obj5::validateSerializable($this->serializable)) {
42402+ return $this->serializable;
42403+ }
42404+ throw new Exception('never get to getSerializable Obj5::serializable');
42405+ }
42406+
42407+ /**
42408+ * @return SerializableClass
42409+ */
42410+ public static function sampleSerializable(): SerializableClass {
42411+ return SerializableClass::sample(); /*42:serializable*/
4217242412 }
4217342413
4217442414 /**
@@ -42216,7 +42456,7 @@ class Obj5 {
4221642456 * @return Serialize
4221742457 */
4221842458 public static function sampleSerialize(): Serialize {
42219- return Serialize::sample(); /*38:serialize*/
42459+ return Serialize::sample(); /*43:serialize*/
4222042460 }
4222142461
4222242462 /**
@@ -42264,7 +42504,7 @@ class Obj5 {
4226442504 * @return SerializerProvider
4226542505 */
4226642506 public static function sampleSerializerProvider(): SerializerProvider {
42267- return SerializerProvider::sample(); /*39:serializerProvider*/
42507+ return SerializerProvider::sample(); /*44:serializerProvider*/
4226842508 }
4226942509
4227042510 /**
@@ -42312,7 +42552,7 @@ class Obj5 {
4231242552 * @return Set
4231342553 */
4231442554 public static function sampleSet(): Set {
42315- return Set::sample(); /*40:set*/
42555+ return Set::sample(); /*45:set*/
4231642556 }
4231742557
4231842558 /**
@@ -42360,7 +42600,7 @@ class Obj5 {
4236042600 * @return Short
4236142601 */
4236242602 public static function sampleShort(): Short {
42363- return Short::sample(); /*41:short*/
42603+ return Short::sample(); /*46:short*/
4236442604 }
4236542605
4236642606 /**
@@ -42408,7 +42648,7 @@ class Obj5 {
4240842648 * @return Signed
4240942649 */
4241042650 public static function sampleSigned(): Signed {
42411- return Signed::sample(); /*42:signed*/
42651+ return Signed::sample(); /*47:signed*/
4241242652 }
4241342653
4241442654 /**
@@ -42456,7 +42696,7 @@ class Obj5 {
4245642696 * @return SimpleModule
4245742697 */
4245842698 public static function sampleSimpleModule(): SimpleModule {
42459- return SimpleModule::sample(); /*43:simpleModule*/
42699+ return SimpleModule::sample(); /*48:simpleModule*/
4246042700 }
4246142701
4246242702 /**
@@ -42504,7 +42744,7 @@ class Obj5 {
4250442744 * @return Sizeof
4250542745 */
4250642746 public static function sampleSizeof(): Sizeof {
42507- return Sizeof::sample(); /*44:sizeof*/
42747+ return Sizeof::sample(); /*49:sizeof*/
4250842748 }
4250942749
4251042750 /**
@@ -42552,7 +42792,7 @@ class Obj5 {
4255242792 * @return Stackalloc
4255342793 */
4255442794 public static function sampleStackalloc(): Stackalloc {
42555- return Stackalloc::sample(); /*45:stackalloc*/
42795+ return Stackalloc::sample(); /*50:stackalloc*/
4255642796 }
4255742797
4255842798 /**
@@ -42600,7 +42840,7 @@ class Obj5 {
4260042840 * @return Standards
4260142841 */
4260242842 public static function sampleStandards(): Standards {
42603- return Standards::sample(); /*46:standards*/
42843+ return Standards::sample(); /*51:standards*/
4260442844 }
4260542845
4260642846 /**
@@ -42648,7 +42888,7 @@ class Obj5 {
4264842888 * @return StaticClass
4264942889 */
4265042890 public static function sampleStatic(): StaticClass {
42651- return StaticClass::sample(); /*47:static*/
42891+ return StaticClass::sample(); /*52:static*/
4265242892 }
4265342893
4265442894 /**
@@ -42696,7 +42936,7 @@ class Obj5 {
4269642936 * @return StaticAssert
4269742937 */
4269842938 public static function sampleStaticAssert(): StaticAssert {
42699- return StaticAssert::sample(); /*48:staticAssert*/
42939+ return StaticAssert::sample(); /*53:staticAssert*/
4270042940 }
4270142941
4270242942 /**
@@ -42744,7 +42984,7 @@ class Obj5 {
4274442984 * @return StaticCast
4274542985 */
4274642986 public static function sampleStaticCast(): StaticCast {
42747- return StaticCast::sample(); /*49:staticCast*/
42987+ return StaticCast::sample(); /*54:staticCast*/
4274842988 }
4274942989
4275042990 /**
@@ -42792,7 +43032,7 @@ class Obj5 {
4279243032 * @return StdDeserializer
4279343033 */
4279443034 public static function sampleStdDeserializer(): StdDeserializer {
42795- return StdDeserializer::sample(); /*50:stdDeserializer*/
43035+ return StdDeserializer::sample(); /*55:stdDeserializer*/
4279643036 }
4279743037
4279843038 /**
@@ -42840,7 +43080,7 @@ class Obj5 {
4284043080 * @return StdSerializer
4284143081 */
4284243082 public static function sampleStdSerializer(): StdSerializer {
42843- return StdSerializer::sample(); /*51:stdSerializer*/
43083+ return StdSerializer::sample(); /*56:stdSerializer*/
4284443084 }
4284543085
4284643086 /**
@@ -42888,7 +43128,7 @@ class Obj5 {
4288843128 * @return Strictfp
4288943129 */
4289043130 public static function sampleStrictfp(): Strictfp {
42891- return Strictfp::sample(); /*52:strictfp*/
43131+ return Strictfp::sample(); /*57:strictfp*/
4289243132 }
4289343133
4289443134 /**
@@ -42936,7 +43176,7 @@ class Obj5 {
4293643176 * @return StringClass
4293743177 */
4293843178 public static function sampleString(): StringClass {
42939- return StringClass::sample(); /*53:string*/
43179+ return StringClass::sample(); /*58:string*/
4294043180 }
4294143181
4294243182 /**
@@ -42984,7 +43224,7 @@ class Obj5 {
4298443224 * @return Struct
4298543225 */
4298643226 public static function sampleStruct(): Struct {
42987- return Struct::sample(); /*54:struct*/
43227+ return Struct::sample(); /*59:struct*/
4298843228 }
4298943229
4299043230 /**
@@ -43032,7 +43272,7 @@ class Obj5 {
4303243272 * @return Subscript
4303343273 */
4303443274 public static function sampleSubscript(): Subscript {
43035- return Subscript::sample(); /*55:subscript*/
43275+ return Subscript::sample(); /*60:subscript*/
4303643276 }
4303743277
4303843278 /**
@@ -43080,7 +43320,7 @@ class Obj5 {
4308043320 * @return Super
4308143321 */
4308243322 public static function sampleSuper(): Super {
43083- return Super::sample(); /*56:super*/
43323+ return Super::sample(); /*61:super*/
4308443324 }
4308543325
4308643326 /**
@@ -43128,7 +43368,7 @@ class Obj5 {
4312843368 * @return SwitchClass
4312943369 */
4313043370 public static function sampleSwitch(): SwitchClass {
43131- return SwitchClass::sample(); /*57:switch*/
43371+ return SwitchClass::sample(); /*62:switch*/
4313243372 }
4313343373
4313443374 /**
@@ -43176,7 +43416,7 @@ class Obj5 {
4317643416 * @return Symbol
4317743417 */
4317843418 public static function sampleSymbol(): Symbol {
43179- return Symbol::sample(); /*58:symbol*/
43419+ return Symbol::sample(); /*63:symbol*/
4318043420 }
4318143421
4318243422 /**
@@ -43224,7 +43464,7 @@ class Obj5 {
4322443464 * @return Synchronized
4322543465 */
4322643466 public static function sampleSynchronized(): Synchronized {
43227- return Synchronized::sample(); /*59:synchronized*/
43467+ return Synchronized::sample(); /*64:synchronized*/
4322843468 }
4322943469
4323043470 /**
@@ -43272,7 +43512,7 @@ class Obj5 {
4327243512 * @return System
4327343513 */
4327443514 public static function sampleSystem(): System {
43275- return System::sample(); /*60:system*/
43515+ return System::sample(); /*65:system*/
4327643516 }
4327743517
4327843518 /**
@@ -43320,7 +43560,7 @@ class Obj5 {
4332043560 * @return Template
4332143561 */
4332243562 public static function sampleTemplate(): Template {
43323- return Template::sample(); /*61:template*/
43563+ return Template::sample(); /*66:template*/
4332443564 }
4332543565
4332643566 /**
@@ -43368,7 +43608,7 @@ class Obj5 {
4336843608 * @return Then
4336943609 */
4337043610 public static function sampleThen(): Then {
43371- return Then::sample(); /*62:then*/
43611+ return Then::sample(); /*67:then*/
4337243612 }
4337343613
4337443614 /**
@@ -43416,7 +43656,7 @@ class Obj5 {
4341643656 * @return ThreadLocal
4341743657 */
4341843658 public static function sampleThreadLocal(): ThreadLocal {
43419- return ThreadLocal::sample(); /*63:threadLocal*/
43659+ return ThreadLocal::sample(); /*68:threadLocal*/
4342043660 }
4342143661
4342243662 /**
@@ -43464,7 +43704,7 @@ class Obj5 {
4346443704 * @return ThrowClass
4346543705 */
4346643706 public static function sampleThrow(): ThrowClass {
43467- return ThrowClass::sample(); /*64:throw*/
43707+ return ThrowClass::sample(); /*69:throw*/
4346843708 }
4346943709
4347043710 /**
@@ -43512,7 +43752,7 @@ class Obj5 {
4351243752 * @return Throws
4351343753 */
4351443754 public static function sampleThrows(): Throws {
43515- return Throws::sample(); /*65:throws*/
43755+ return Throws::sample(); /*70:throws*/
4351643756 }
4351743757
4351843758 /**
@@ -43560,7 +43800,7 @@ class Obj5 {
4356043800 * @return TimeOnly
4356143801 */
4356243802 public static function sampleTimeOnly(): TimeOnly {
43563- return TimeOnly::sample(); /*66:timeOnly*/
43803+ return TimeOnly::sample(); /*71:timeOnly*/
4356443804 }
4356543805
4356643806 /**
@@ -43608,7 +43848,7 @@ class Obj5 {
4360843848 * @return TimeOnlyConverter
4360943849 */
4361043850 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
43611- return TimeOnlyConverter::sample(); /*67:timeOnlyConverter*/
43851+ return TimeOnlyConverter::sample(); /*72:timeOnlyConverter*/
4361243852 }
4361343853
4361443854 /**
@@ -43656,7 +43896,7 @@ class Obj5 {
4365643896 * @return TimeZone
4365743897 */
4365843898 public static function sampleTimeZone(): TimeZone {
43659- return TimeZone::sample(); /*68:timeZone*/
43899+ return TimeZone::sample(); /*73:timeZone*/
4366043900 }
4366143901
4366243902 /**
@@ -43704,7 +43944,7 @@ class Obj5 {
4370443944 * @return ToJSON
4370543945 */
4370643946 public static function sampleToJSON(): ToJSON {
43707- return ToJSON::sample(); /*69:toJSON*/
43947+ return ToJSON::sample(); /*74:toJSON*/
4370843948 }
4370943949
4371043950 /**
@@ -43752,7 +43992,7 @@ class Obj5 {
4375243992 * @return ToString
4375343993 */
4375443994 public static function sampleToString(): ToString {
43755- return ToString::sample(); /*70:toString*/
43995+ return ToString::sample(); /*75:toString*/
4375643996 }
4375743997
4375843998 /**
@@ -43800,7 +44040,7 @@ class Obj5 {
4380044040 * @return TopLevelClass
4380144041 */
4380244042 public static function sampleTopLevel(): TopLevelClass {
43803- return TopLevelClass::sample(); /*71:topLevel*/
44043+ return TopLevelClass::sample(); /*76:topLevel*/
4380444044 }
4380544045
4380644046 /**
@@ -43848,7 +44088,7 @@ class Obj5 {
4384844088 * @return Transient
4384944089 */
4385044090 public static function sampleTransient(): Transient {
43851- return Transient::sample(); /*72:transient*/
44091+ return Transient::sample(); /*77:transient*/
4385244092 }
4385344093
4385444094 /**
@@ -43896,7 +44136,7 @@ class Obj5 {
4389644136 * @return TrueClass
4389744137 */
4389844138 public static function sampleTrue(): TrueClass {
43899- return TrueClass::sample(); /*73:true*/
44139+ return TrueClass::sample(); /*78:true*/
4390044140 }
4390144141
4390244142 /**
@@ -43944,7 +44184,7 @@ class Obj5 {
4394444184 * @return TryClass
4394544185 */
4394644186 public static function sampleTry(): TryClass {
43947- return TryClass::sample(); /*74:try*/
44187+ return TryClass::sample(); /*79:try*/
4394844188 }
4394944189
4395044190 /**
@@ -43992,7 +44232,7 @@ class Obj5 {
4399244232 * @return Type
4399344233 */
4399444234 public static function sampleType(): Type {
43995- return Type::sample(); /*75:type*/
44235+ return Type::sample(); /*80:type*/
4399644236 }
4399744237
4399844238 /**
@@ -44040,7 +44280,7 @@ class Obj5 {
4404044280 * @return Typealias
4404144281 */
4404244282 public static function sampleTypealias(): Typealias {
44043- return Typealias::sample(); /*76:typealias*/
44283+ return Typealias::sample(); /*81:typealias*/
4404444284 }
4404544285
4404644286 /**
@@ -44088,7 +44328,7 @@ class Obj5 {
4408844328 * @return Typedef
4408944329 */
4409044330 public static function sampleTypedef(): Typedef {
44091- return Typedef::sample(); /*77:typedef*/
44331+ return Typedef::sample(); /*82:typedef*/
4409244332 }
4409344333
4409444334 /**
@@ -44136,7 +44376,7 @@ class Obj5 {
4413644376 * @return Typeid
4413744377 */
4413844378 public static function sampleTypeid(): Typeid {
44139- return Typeid::sample(); /*78:typeid*/
44379+ return Typeid::sample(); /*83:typeid*/
4414044380 }
4414144381
4414244382 /**
@@ -44184,7 +44424,7 @@ class Obj5 {
4418444424 * @return Typename
4418544425 */
4418644426 public static function sampleTypename(): Typename {
44187- return Typename::sample(); /*79:typename*/
44427+ return Typename::sample(); /*84:typename*/
4418844428 }
4418944429
4419044430 /**
@@ -44232,7 +44472,7 @@ class Obj5 {
4423244472 * @return Typeof
4423344473 */
4423444474 public static function sampleTypeof(): Typeof {
44235- return Typeof::sample(); /*80:typeof*/
44475+ return Typeof::sample(); /*85:typeof*/
4423644476 }
4423744477
4423844478 /**
@@ -44280,7 +44520,7 @@ class Obj5 {
4428044520 * @return Uint
4428144521 */
4428244522 public static function sampleUint(): Uint {
44283- return Uint::sample(); /*81:uint*/
44523+ return Uint::sample(); /*86:uint*/
4428444524 }
4428544525
4428644526 /**
@@ -44328,7 +44568,7 @@ class Obj5 {
4432844568 * @return Ulong
4432944569 */
4433044570 public static function sampleUlong(): Ulong {
44331- return Ulong::sample(); /*82:ulong*/
44571+ return Ulong::sample(); /*87:ulong*/
4433244572 }
4433344573
4433444574 /**
@@ -44376,7 +44616,7 @@ class Obj5 {
4437644616 * @return Unchecked
4437744617 */
4437844618 public static function sampleUnchecked(): Unchecked {
44379- return Unchecked::sample(); /*83:unchecked*/
44619+ return Unchecked::sample(); /*88:unchecked*/
4438044620 }
4438144621
4438244622 /**
@@ -44424,7 +44664,7 @@ class Obj5 {
4442444664 * @return Undefined
4442544665 */
4442644666 public static function sampleUndefined(): Undefined {
44427- return Undefined::sample(); /*84:undefined*/
44667+ return Undefined::sample(); /*89:undefined*/
4442844668 }
4442944669
4443044670 /**
@@ -44472,7 +44712,7 @@ class Obj5 {
4447244712 * @return Union
4447344713 */
4447444714 public static function sampleUnion(): Union {
44475- return Union::sample(); /*85:union*/
44715+ return Union::sample(); /*90:union*/
4447644716 }
4447744717
4447844718 /**
@@ -44520,7 +44760,7 @@ class Obj5 {
4452044760 * @return Unowned
4452144761 */
4452244762 public static function sampleUnowned(): Unowned {
44523- return Unowned::sample(); /*86:unowned*/
44763+ return Unowned::sample(); /*91:unowned*/
4452444764 }
4452544765
4452644766 /**
@@ -44568,7 +44808,7 @@ class Obj5 {
4456844808 * @return Unsafe
4456944809 */
4457044810 public static function sampleUnsafe(): Unsafe {
44571- return Unsafe::sample(); /*87:unsafe*/
44811+ return Unsafe::sample(); /*92:unsafe*/
4457244812 }
4457344813
4457444814 /**
@@ -44616,343 +44856,103 @@ class Obj5 {
4461644856 * @return Unsigned
4461744857 */
4461844858 public static function sampleUnsigned(): Unsigned {
44619- return Unsigned::sample(); /*88:unsigned*/
44859+ return Unsigned::sample(); /*93:unsigned*/
4462044860 }
4462144861
4462244862 /**
4462344863 * @param stdClass $value
4462444864 * @throws Exception
44625- * @return Ushort
44865+ * @return UseSerializers
4462644866 */
44627- public static function fromUshort(stdClass $value): Ushort {
44628- return Ushort::from($value); /*class*/
44867+ public static function fromUseSerializers(stdClass $value): UseSerializers {
44868+ return UseSerializers::from($value); /*class*/
4462944869 }
4463044870
4463144871 /**
4463244872 * @throws Exception
4463344873 * @return stdClass
4463444874 */
44635- public function toUshort(): stdClass {
44636- if (Obj5::validateUshort($this->ushort)) {
44637- return $this->ushort->to(); /*class*/
44875+ public function toUseSerializers(): stdClass {
44876+ if (Obj5::validateUseSerializers($this->useSerializers)) {
44877+ return $this->useSerializers->to(); /*class*/
4463844878 }
44639- throw new Exception('never get to this Obj5::ushort');
44879+ throw new Exception('never get to this Obj5::useSerializers');
4464044880 }
4464144881
4464244882 /**
44643- * @param Ushort
44883+ * @param UseSerializers
4464444884 * @return bool
4464544885 * @throws Exception
4464644886 */
44647- public static function validateUshort(Ushort $value): bool {
44887+ public static function validateUseSerializers(UseSerializers $value): bool {
4464844888 $value->validate();
4464944889 return true;
4465044890 }
4465144891
4465244892 /**
4465344893 * @throws Exception
44654- * @return Ushort
44894+ * @return UseSerializers
4465544895 */
44656- public function getUshort(): Ushort {
44657- if (Obj5::validateUshort($this->ushort)) {
44658- return $this->ushort;
44896+ public function getUseSerializers(): UseSerializers {
44897+ if (Obj5::validateUseSerializers($this->useSerializers)) {
44898+ return $this->useSerializers;
4465944899 }
44660- throw new Exception('never get to getUshort Obj5::ushort');
44900+ throw new Exception('never get to getUseSerializers Obj5::useSerializers');
4466144901 }
4466244902
4466344903 /**
44664- * @return Ushort
44904+ * @return UseSerializers
4466544905 */
44666- public static function sampleUshort(): Ushort {
44667- return Ushort::sample(); /*89:ushort*/
44906+ public static function sampleUseSerializers(): UseSerializers {
44907+ return UseSerializers::sample(); /*94:useSerializers*/
4466844908 }
4466944909
4467044910 /**
4467144911 * @param stdClass $value
4467244912 * @throws Exception
44673- * @return Using
44913+ * @return Ushort
4467444914 */
44675- public static function fromUsing(stdClass $value): Using {
44676- return Using::from($value); /*class*/
44915+ public static function fromUshort(stdClass $value): Ushort {
44916+ return Ushort::from($value); /*class*/
4467744917 }
4467844918
4467944919 /**
4468044920 * @throws Exception
4468144921 * @return stdClass
4468244922 */
44683- public function toUsing(): stdClass {
44684- if (Obj5::validateUsing($this->using)) {
44685- return $this->using->to(); /*class*/
44923+ public function toUshort(): stdClass {
44924+ if (Obj5::validateUshort($this->ushort)) {
44925+ return $this->ushort->to(); /*class*/
4468644926 }
44687- throw new Exception('never get to this Obj5::using');
44927+ throw new Exception('never get to this Obj5::ushort');
4468844928 }
4468944929
4469044930 /**
44691- * @param Using
44931+ * @param Ushort
4469244932 * @return bool
4469344933 * @throws Exception
4469444934 */
44695- public static function validateUsing(Using $value): bool {
44935+ public static function validateUshort(Ushort $value): bool {
4469644936 $value->validate();
4469744937 return true;
4469844938 }
4469944939
4470044940 /**
4470144941 * @throws Exception
44702- * @return Using
44942+ * @return Ushort
4470344943 */
44704- public function getUsing(): Using {
44705- if (Obj5::validateUsing($this->using)) {
44706- return $this->using;
44944+ public function getUshort(): Ushort {
44945+ if (Obj5::validateUshort($this->ushort)) {
44946+ return $this->ushort;
4470744947 }
44708- throw new Exception('never get to getUsing Obj5::using');
44709- }
44710-
44711- /**
44712- * @return Using
44713- */
44714- public static function sampleUsing(): Using {
44715- return Using::sample(); /*90:using*/
44948+ throw new Exception('never get to getUshort Obj5::ushort');
4471644949 }
4471744950
4471844951 /**
44719- * @param stdClass $value
44720- * @throws Exception
44721- * @return Utf8JSONReader
44952+ * @return Ushort
4472244953 */
44723- public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
44724- return Utf8JSONReader::from($value); /*class*/
44725- }
44726-
44727- /**
44728- * @throws Exception
44729- * @return stdClass
44730- */
44731- public function toUtf8JSONReader(): stdClass {
44732- if (Obj5::validateUtf8JSONReader($this->utf8JSONReader)) {
44733- return $this->utf8JSONReader->to(); /*class*/
44734- }
44735- throw new Exception('never get to this Obj5::utf8JSONReader');
44736- }
44737-
44738- /**
44739- * @param Utf8JSONReader
44740- * @return bool
44741- * @throws Exception
44742- */
44743- public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
44744- $value->validate();
44745- return true;
44746- }
44747-
44748- /**
44749- * @throws Exception
44750- * @return Utf8JSONReader
44751- */
44752- public function getUtf8JSONReader(): Utf8JSONReader {
44753- if (Obj5::validateUtf8JSONReader($this->utf8JSONReader)) {
44754- return $this->utf8JSONReader;
44755- }
44756- throw new Exception('never get to getUtf8JSONReader Obj5::utf8JSONReader');
44757- }
44758-
44759- /**
44760- * @return Utf8JSONReader
44761- */
44762- public static function sampleUtf8JSONReader(): Utf8JSONReader {
44763- return Utf8JSONReader::sample(); /*91:utf8JSONReader*/
44764- }
44765-
44766- /**
44767- * @param stdClass $value
44768- * @throws Exception
44769- * @return Utf8JSONWriter
44770- */
44771- public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
44772- return Utf8JSONWriter::from($value); /*class*/
44773- }
44774-
44775- /**
44776- * @throws Exception
44777- * @return stdClass
44778- */
44779- public function toUtf8JSONWriter(): stdClass {
44780- if (Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)) {
44781- return $this->utf8JSONWriter->to(); /*class*/
44782- }
44783- throw new Exception('never get to this Obj5::utf8JSONWriter');
44784- }
44785-
44786- /**
44787- * @param Utf8JSONWriter
44788- * @return bool
44789- * @throws Exception
44790- */
44791- public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
44792- $value->validate();
44793- return true;
44794- }
44795-
44796- /**
44797- * @throws Exception
44798- * @return Utf8JSONWriter
44799- */
44800- public function getUtf8JSONWriter(): Utf8JSONWriter {
44801- if (Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)) {
44802- return $this->utf8JSONWriter;
44803- }
44804- throw new Exception('never get to getUtf8JSONWriter Obj5::utf8JSONWriter');
44805- }
44806-
44807- /**
44808- * @return Utf8JSONWriter
44809- */
44810- public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
44811- return Utf8JSONWriter::sample(); /*92:utf8JSONWriter*/
44812- }
44813-
44814- /**
44815- * @param stdClass $value
44816- * @throws Exception
44817- * @return UUID
44818- */
44819- public static function fromUUID(stdClass $value): UUID {
44820- return UUID::from($value); /*class*/
44821- }
44822-
44823- /**
44824- * @throws Exception
44825- * @return stdClass
44826- */
44827- public function toUUID(): stdClass {
44828- if (Obj5::validateUUID($this->uuid)) {
44829- return $this->uuid->to(); /*class*/
44830- }
44831- throw new Exception('never get to this Obj5::uuid');
44832- }
44833-
44834- /**
44835- * @param UUID
44836- * @return bool
44837- * @throws Exception
44838- */
44839- public static function validateUUID(UUID $value): bool {
44840- $value->validate();
44841- return true;
44842- }
44843-
44844- /**
44845- * @throws Exception
44846- * @return UUID
44847- */
44848- public function getUUID(): UUID {
44849- if (Obj5::validateUUID($this->uuid)) {
44850- return $this->uuid;
44851- }
44852- throw new Exception('never get to getUUID Obj5::uuid');
44853- }
44854-
44855- /**
44856- * @return UUID
44857- */
44858- public static function sampleUUID(): UUID {
44859- return UUID::sample(); /*93:uuid*/
44860- }
44861-
44862- /**
44863- * @param stdClass $value
44864- * @throws Exception
44865- * @return VarClass
44866- */
44867- public static function fromVar(stdClass $value): VarClass {
44868- return VarClass::from($value); /*class*/
44869- }
44870-
44871- /**
44872- * @throws Exception
44873- * @return stdClass
44874- */
44875- public function toVar(): stdClass {
44876- if (Obj5::validateVar($this->var)) {
44877- return $this->var->to(); /*class*/
44878- }
44879- throw new Exception('never get to this Obj5::var');
44880- }
44881-
44882- /**
44883- * @param VarClass
44884- * @return bool
44885- * @throws Exception
44886- */
44887- public static function validateVar(VarClass $value): bool {
44888- $value->validate();
44889- return true;
44890- }
44891-
44892- /**
44893- * @throws Exception
44894- * @return VarClass
44895- */
44896- public function getVar(): VarClass {
44897- if (Obj5::validateVar($this->var)) {
44898- return $this->var;
44899- }
44900- throw new Exception('never get to getVar Obj5::var');
44901- }
44902-
44903- /**
44904- * @return VarClass
44905- */
44906- public static function sampleVar(): VarClass {
44907- return VarClass::sample(); /*94:var*/
44908- }
44909-
44910- /**
44911- * @param stdClass $value
44912- * @throws Exception
44913- * @return Virtual
44914- */
44915- public static function fromVirtual(stdClass $value): Virtual {
44916- return Virtual::from($value); /*class*/
44917- }
44918-
44919- /**
44920- * @throws Exception
44921- * @return stdClass
44922- */
44923- public function toVirtual(): stdClass {
44924- if (Obj5::validateVirtual($this->virtual)) {
44925- return $this->virtual->to(); /*class*/
44926- }
44927- throw new Exception('never get to this Obj5::virtual');
44928- }
44929-
44930- /**
44931- * @param Virtual
44932- * @return bool
44933- * @throws Exception
44934- */
44935- public static function validateVirtual(Virtual $value): bool {
44936- $value->validate();
44937- return true;
44938- }
44939-
44940- /**
44941- * @throws Exception
44942- * @return Virtual
44943- */
44944- public function getVirtual(): Virtual {
44945- if (Obj5::validateVirtual($this->virtual)) {
44946- return $this->virtual;
44947- }
44948- throw new Exception('never get to getVirtual Obj5::virtual');
44949- }
44950-
44951- /**
44952- * @return Virtual
44953- */
44954- public static function sampleVirtual(): Virtual {
44955- return Virtual::sample(); /*95:virtual*/
44954+ public static function sampleUshort(): Ushort {
44955+ return Ushort::sample(); /*95:ushort*/
4495644956 }
4495744957
4495844958 /**
@@ -44961,12 +44961,17 @@ class Obj5 {
4496144961 */
4496244962 public function validate(): bool {
4496344963 return Obj5::validateDummy($this->dummy)
44964+ || Obj5::validateKSerializer($this->kSerializer)
4496444965 || Obj5::validateObj5Self($this->obj5Self)
4496544966 || Obj5::validateObj5This($this->obj5This)
4496644967 || Obj5::validateObj5True($this->obj5True)
4496744968 || Obj5::validateObj5Type($this->obj5Type)
44969+ || Obj5::validatePrimitiveKind($this->primitiveKind)
4496844970 || Obj5::validateSelf($this->self)
4496944971 || Obj5::validateSendable($this->sendable)
44972+ || Obj5::validateSerialDescriptor($this->serialDescriptor)
44973+ || Obj5::validateSerialName($this->serialName)
44974+ || Obj5::validateSerializable($this->serializable)
4497044975 || Obj5::validateSerialize($this->serialize)
4497144976 || Obj5::validateSerializerProvider($this->serializerProvider)
4497244977 || Obj5::validateSet($this->set)
@@ -45018,13 +45023,8 @@ class Obj5 {
4501845023 || Obj5::validateUnowned($this->unowned)
4501945024 || Obj5::validateUnsafe($this->unsafe)
4502045025 || Obj5::validateUnsigned($this->unsigned)
45021- || Obj5::validateUshort($this->ushort)
45022- || Obj5::validateUsing($this->using)
45023- || Obj5::validateUtf8JSONReader($this->utf8JSONReader)
45024- || Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)
45025- || Obj5::validateUUID($this->uuid)
45026- || Obj5::validateVar($this->var)
45027- || Obj5::validateVirtual($this->virtual);
45026+ || Obj5::validateUseSerializers($this->useSerializers)
45027+ || Obj5::validateUshort($this->ushort);
4502845028 }
4502945029
4503045030 /**
@@ -45034,12 +45034,17 @@ class Obj5 {
4503445034 public function to(): stdClass {
4503545035 $out = new stdClass();
4503645036 $out->{'dummy'} = $this->toDummy();
45037+ $out->{'KSerializer'} = $this->toKSerializer();
4503745038 $out->{'self'} = $this->toObj5Self();
4503845039 $out->{'this'} = $this->toObj5This();
4503945040 $out->{'true'} = $this->toObj5True();
4504045041 $out->{'type'} = $this->toObj5Type();
45042+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
4504145043 $out->{'Self'} = $this->toSelf();
4504245044 $out->{'Sendable'} = $this->toSendable();
45045+ $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
45046+ $out->{'SerialName'} = $this->toSerialName();
45047+ $out->{'Serializable'} = $this->toSerializable();
4504345048 $out->{'serialize'} = $this->toSerialize();
4504445049 $out->{'SerializerProvider'} = $this->toSerializerProvider();
4504545050 $out->{'set'} = $this->toSet();
@@ -45091,13 +45096,8 @@ class Obj5 {
4509145096 $out->{'unowned'} = $this->toUnowned();
4509245097 $out->{'unsafe'} = $this->toUnsafe();
4509345098 $out->{'unsigned'} = $this->toUnsigned();
45099+ $out->{'UseSerializers'} = $this->toUseSerializers();
4509445100 $out->{'ushort'} = $this->toUshort();
45095- $out->{'using'} = $this->toUsing();
45096- $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
45097- $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
45098- $out->{'UUID'} = $this->toUUID();
45099- $out->{'var'} = $this->toVar();
45100- $out->{'virtual'} = $this->toVirtual();
4510145101 return $out;
4510245102 }
4510345103
@@ -45110,6 +45110,9 @@ class Obj5 {
4511045110 if (!property_exists($obj, 'dummy')) {
4511145111 throw new Exception("Missing required property");
4511245112 }
45113+ if (!property_exists($obj, 'KSerializer')) {
45114+ throw new Exception("Missing required property");
45115+ }
4511345116 if (!property_exists($obj, 'self')) {
4511445117 throw new Exception("Missing required property");
4511545118 }
@@ -45122,12 +45125,24 @@ class Obj5 {
4512245125 if (!property_exists($obj, 'type')) {
4512345126 throw new Exception("Missing required property");
4512445127 }
45128+ if (!property_exists($obj, 'PrimitiveKind')) {
45129+ throw new Exception("Missing required property");
45130+ }
4512545131 if (!property_exists($obj, 'Self')) {
4512645132 throw new Exception("Missing required property");
4512745133 }
4512845134 if (!property_exists($obj, 'Sendable')) {
4512945135 throw new Exception("Missing required property");
4513045136 }
45137+ if (!property_exists($obj, 'SerialDescriptor')) {
45138+ throw new Exception("Missing required property");
45139+ }
45140+ if (!property_exists($obj, 'SerialName')) {
45141+ throw new Exception("Missing required property");
45142+ }
45143+ if (!property_exists($obj, 'Serializable')) {
45144+ throw new Exception("Missing required property");
45145+ }
4513145146 if (!property_exists($obj, 'serialize')) {
4513245147 throw new Exception("Missing required property");
4513345148 }
@@ -45281,35 +45296,25 @@ class Obj5 {
4528145296 if (!property_exists($obj, 'unsigned')) {
4528245297 throw new Exception("Missing required property");
4528345298 }
45284- if (!property_exists($obj, 'ushort')) {
45285- throw new Exception("Missing required property");
45286- }
45287- if (!property_exists($obj, 'using')) {
45288- throw new Exception("Missing required property");
45289- }
45290- if (!property_exists($obj, 'Utf8JsonReader')) {
45291- throw new Exception("Missing required property");
45292- }
45293- if (!property_exists($obj, 'Utf8JsonWriter')) {
45294- throw new Exception("Missing required property");
45295- }
45296- if (!property_exists($obj, 'UUID')) {
45297- throw new Exception("Missing required property");
45298- }
45299- if (!property_exists($obj, 'var')) {
45299+ if (!property_exists($obj, 'UseSerializers')) {
4530045300 throw new Exception("Missing required property");
4530145301 }
45302- if (!property_exists($obj, 'virtual')) {
45302+ if (!property_exists($obj, 'ushort')) {
4530345303 throw new Exception("Missing required property");
4530445304 }
4530545305 return new Obj5(
4530645306 Obj5::fromDummy($obj->{'dummy'})
45307+ ,Obj5::fromKSerializer($obj->{'KSerializer'})
4530745308 ,Obj5::fromObj5Self($obj->{'self'})
4530845309 ,Obj5::fromObj5This($obj->{'this'})
4530945310 ,Obj5::fromObj5True($obj->{'true'})
4531045311 ,Obj5::fromObj5Type($obj->{'type'})
45312+ ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
4531145313 ,Obj5::fromSelf($obj->{'Self'})
4531245314 ,Obj5::fromSendable($obj->{'Sendable'})
45315+ ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'})
45316+ ,Obj5::fromSerialName($obj->{'SerialName'})
45317+ ,Obj5::fromSerializable($obj->{'Serializable'})
4531345318 ,Obj5::fromSerialize($obj->{'serialize'})
4531445319 ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'})
4531545320 ,Obj5::fromSet($obj->{'set'})
@@ -45361,13 +45366,8 @@ class Obj5 {
4536145366 ,Obj5::fromUnowned($obj->{'unowned'})
4536245367 ,Obj5::fromUnsafe($obj->{'unsafe'})
4536345368 ,Obj5::fromUnsigned($obj->{'unsigned'})
45369+ ,Obj5::fromUseSerializers($obj->{'UseSerializers'})
4536445370 ,Obj5::fromUshort($obj->{'ushort'})
45365- ,Obj5::fromUsing($obj->{'using'})
45366- ,Obj5::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
45367- ,Obj5::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
45368- ,Obj5::fromUUID($obj->{'UUID'})
45369- ,Obj5::fromVar($obj->{'var'})
45370- ,Obj5::fromVirtual($obj->{'virtual'})
4537145371 );
4537245372 }
4537345373
@@ -45377,12 +45377,17 @@ class Obj5 {
4537745377 public static function sample(): Obj5 {
4537845378 return new Obj5(
4537945379 Obj5::sampleDummy()
45380+ ,Obj5::sampleKSerializer()
4538045381 ,Obj5::sampleObj5Self()
4538145382 ,Obj5::sampleObj5This()
4538245383 ,Obj5::sampleObj5True()
4538345384 ,Obj5::sampleObj5Type()
45385+ ,Obj5::samplePrimitiveKind()
4538445386 ,Obj5::sampleSelf()
4538545387 ,Obj5::sampleSendable()
45388+ ,Obj5::sampleSerialDescriptor()
45389+ ,Obj5::sampleSerialName()
45390+ ,Obj5::sampleSerializable()
4538645391 ,Obj5::sampleSerialize()
4538745392 ,Obj5::sampleSerializerProvider()
4538845393 ,Obj5::sampleSet()
@@ -45434,27 +45439,22 @@ class Obj5 {
4543445439 ,Obj5::sampleUnowned()
4543545440 ,Obj5::sampleUnsafe()
4543645441 ,Obj5::sampleUnsigned()
45442+ ,Obj5::sampleUseSerializers()
4543745443 ,Obj5::sampleUshort()
45438- ,Obj5::sampleUsing()
45439- ,Obj5::sampleUtf8JSONReader()
45440- ,Obj5::sampleUtf8JSONWriter()
45441- ,Obj5::sampleUUID()
45442- ,Obj5::sampleVar()
45443- ,Obj5::sampleVirtual()
4544445444 );
4544545445 }
4544645446 }
4544745447
45448-// This is an autogenerated file:Obj5Self
45448+// This is an autogenerated file:KSerializer
4544945449
45450-class Obj5Self {
45451- private int $self; // json:self Required
45450+class KSerializer {
45451+ private int $kSerializer; // json:KSerializer Required
4545245452
4545345453 /**
45454- * @param int $self
45454+ * @param int $kSerializer
4545545455 */
45456- public function __construct(int $self) {
45457- $this->self = $self;
45456+ public function __construct(int $kSerializer) {
45457+ $this->kSerializer = $kSerializer;
4545845458 }
4545945459
4546045460 /**
@@ -45462,7 +45462,7 @@ class Obj5Self {
4546245462 * @throws Exception
4546345463 * @return int
4546445464 */
45465- public static function fromSelf(int $value): int {
45465+ public static function fromKSerializer(int $value): int {
4546645466 return $value; /*int*/
4546745467 }
4546845468
@@ -45470,11 +45470,11 @@ class Obj5Self {
4547045470 * @throws Exception
4547145471 * @return int
4547245472 */
45473- public function toSelf(): int {
45474- if (Obj5Self::validateSelf($this->self)) {
45475- return $this->self; /*int*/
45473+ public function toKSerializer(): int {
45474+ if (KSerializer::validateKSerializer($this->kSerializer)) {
45475+ return $this->kSerializer; /*int*/
4547645476 }
45477- throw new Exception('never get to this Obj5Self::self');
45477+ throw new Exception('never get to this KSerializer::kSerializer');
4547845478 }
4547945479
4548045480 /**
@@ -45482,7 +45482,7 @@ class Obj5Self {
4548245482 * @return bool
4548345483 * @throws Exception
4548445484 */
45485- public static function validateSelf(int $value): bool {
45485+ public static function validateKSerializer(int $value): bool {
4548645486 return true;
4548745487 }
4548845488
@@ -45490,18 +45490,18 @@ class Obj5Self {
4549045490 * @throws Exception
4549145491 * @return int
4549245492 */
45493- public function getSelf(): int {
45494- if (Obj5Self::validateSelf($this->self)) {
45495- return $this->self;
45493+ public function getKSerializer(): int {
45494+ if (KSerializer::validateKSerializer($this->kSerializer)) {
45495+ return $this->kSerializer;
4549645496 }
45497- throw new Exception('never get to getSelf Obj5Self::self');
45497+ throw new Exception('never get to getKSerializer KSerializer::kSerializer');
4549845498 }
4549945499
4550045500 /**
4550145501 * @return int
4550245502 */
45503- public static function sampleSelf(): int {
45504- return 31; /*31:self*/
45503+ public static function sampleKSerializer(): int {
45504+ return 31; /*31:kSerializer*/
4550545505 }
4550645506
4550745507 /**
@@ -45509,7 +45509,7 @@ class Obj5Self {
4550945509 * @return bool
4551045510 */
4551145511 public function validate(): bool {
45512- return Obj5Self::validateSelf($this->self);
45512+ return KSerializer::validateKSerializer($this->kSerializer);
4551345513 }
4551445514
4551545515 /**
@@ -45518,44 +45518,44 @@ class Obj5Self {
4551845518 */
4551945519 public function to(): stdClass {
4552045520 $out = new stdClass();
45521- $out->{'self'} = $this->toSelf();
45521+ $out->{'KSerializer'} = $this->toKSerializer();
4552245522 return $out;
4552345523 }
4552445524
4552545525 /**
4552645526 * @param stdClass $obj
45527- * @return Obj5Self
45527+ * @return KSerializer
4552845528 * @throws Exception
4552945529 */
45530- public static function from(stdClass $obj): Obj5Self {
45531- if (!property_exists($obj, 'self')) {
45530+ public static function from(stdClass $obj): KSerializer {
45531+ if (!property_exists($obj, 'KSerializer')) {
4553245532 throw new Exception("Missing required property");
4553345533 }
45534- return new Obj5Self(
45535- Obj5Self::fromSelf($obj->{'self'})
45534+ return new KSerializer(
45535+ KSerializer::fromKSerializer($obj->{'KSerializer'})
4553645536 );
4553745537 }
4553845538
4553945539 /**
45540- * @return Obj5Self
45540+ * @return KSerializer
4554145541 */
45542- public static function sample(): Obj5Self {
45543- return new Obj5Self(
45544- Obj5Self::sampleSelf()
45542+ public static function sample(): KSerializer {
45543+ return new KSerializer(
45544+ KSerializer::sampleKSerializer()
4554545545 );
4554645546 }
4554745547 }
4554845548
45549-// This is an autogenerated file:This
45549+// This is an autogenerated file:Obj5Self
4555045550
45551-class This {
45552- private int $thisThis; // json:this Required
45551+class Obj5Self {
45552+ private int $self; // json:self Required
4555345553
4555445554 /**
45555- * @param int $thisThis
45555+ * @param int $self
4555645556 */
45557- public function __construct(int $thisThis) {
45558- $this->thisThis = $thisThis;
45557+ public function __construct(int $self) {
45558+ $this->self = $self;
4555945559 }
4556045560
4556145561 /**
@@ -45563,7 +45563,7 @@ class This {
4556345563 * @throws Exception
4556445564 * @return int
4556545565 */
45566- public static function fromThisThis(int $value): int {
45566+ public static function fromSelf(int $value): int {
4556745567 return $value; /*int*/
4556845568 }
4556945569
@@ -45571,9 +45571,110 @@ class This {
4557145571 * @throws Exception
4557245572 * @return int
4557345573 */
45574- public function toThisThis(): int {
45575- if (This::validateThisThis($this->thisThis)) {
45576- return $this->thisThis; /*int*/
45574+ public function toSelf(): int {
45575+ if (Obj5Self::validateSelf($this->self)) {
45576+ return $this->self; /*int*/
45577+ }
45578+ throw new Exception('never get to this Obj5Self::self');
45579+ }
45580+
45581+ /**
45582+ * @param int
45583+ * @return bool
45584+ * @throws Exception
45585+ */
45586+ public static function validateSelf(int $value): bool {
45587+ return true;
45588+ }
45589+
45590+ /**
45591+ * @throws Exception
45592+ * @return int
45593+ */
45594+ public function getSelf(): int {
45595+ if (Obj5Self::validateSelf($this->self)) {
45596+ return $this->self;
45597+ }
45598+ throw new Exception('never get to getSelf Obj5Self::self');
45599+ }
45600+
45601+ /**
45602+ * @return int
45603+ */
45604+ public static function sampleSelf(): int {
45605+ return 31; /*31:self*/
45606+ }
45607+
45608+ /**
45609+ * @throws Exception
45610+ * @return bool
45611+ */
45612+ public function validate(): bool {
45613+ return Obj5Self::validateSelf($this->self);
45614+ }
45615+
45616+ /**
45617+ * @return stdClass
45618+ * @throws Exception
45619+ */
45620+ public function to(): stdClass {
45621+ $out = new stdClass();
45622+ $out->{'self'} = $this->toSelf();
45623+ return $out;
45624+ }
45625+
45626+ /**
45627+ * @param stdClass $obj
45628+ * @return Obj5Self
45629+ * @throws Exception
45630+ */
45631+ public static function from(stdClass $obj): Obj5Self {
45632+ if (!property_exists($obj, 'self')) {
45633+ throw new Exception("Missing required property");
45634+ }
45635+ return new Obj5Self(
45636+ Obj5Self::fromSelf($obj->{'self'})
45637+ );
45638+ }
45639+
45640+ /**
45641+ * @return Obj5Self
45642+ */
45643+ public static function sample(): Obj5Self {
45644+ return new Obj5Self(
45645+ Obj5Self::sampleSelf()
45646+ );
45647+ }
45648+}
45649+
45650+// This is an autogenerated file:This
45651+
45652+class This {
45653+ private int $thisThis; // json:this Required
45654+
45655+ /**
45656+ * @param int $thisThis
45657+ */
45658+ public function __construct(int $thisThis) {
45659+ $this->thisThis = $thisThis;
45660+ }
45661+
45662+ /**
45663+ * @param int $value
45664+ * @throws Exception
45665+ * @return int
45666+ */
45667+ public static function fromThisThis(int $value): int {
45668+ return $value; /*int*/
45669+ }
45670+
45671+ /**
45672+ * @throws Exception
45673+ * @return int
45674+ */
45675+ public function toThisThis(): int {
45676+ if (This::validateThisThis($this->thisThis)) {
45677+ return $this->thisThis; /*int*/
4557745678 }
4557845679 throw new Exception('never get to this This::thisThis');
4557945680 }
@@ -45849,6 +45950,107 @@ class TypeClass {
4584945950 }
4585045951 }
4585145952
45953+// This is an autogenerated file:PrimitiveKind
45954+
45955+class PrimitiveKind {
45956+ private int $primitiveKind; // json:PrimitiveKind Required
45957+
45958+ /**
45959+ * @param int $primitiveKind
45960+ */
45961+ public function __construct(int $primitiveKind) {
45962+ $this->primitiveKind = $primitiveKind;
45963+ }
45964+
45965+ /**
45966+ * @param int $value
45967+ * @throws Exception
45968+ * @return int
45969+ */
45970+ public static function fromPrimitiveKind(int $value): int {
45971+ return $value; /*int*/
45972+ }
45973+
45974+ /**
45975+ * @throws Exception
45976+ * @return int
45977+ */
45978+ public function toPrimitiveKind(): int {
45979+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45980+ return $this->primitiveKind; /*int*/
45981+ }
45982+ throw new Exception('never get to this PrimitiveKind::primitiveKind');
45983+ }
45984+
45985+ /**
45986+ * @param int
45987+ * @return bool
45988+ * @throws Exception
45989+ */
45990+ public static function validatePrimitiveKind(int $value): bool {
45991+ return true;
45992+ }
45993+
45994+ /**
45995+ * @throws Exception
45996+ * @return int
45997+ */
45998+ public function getPrimitiveKind(): int {
45999+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46000+ return $this->primitiveKind;
46001+ }
46002+ throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
46003+ }
46004+
46005+ /**
46006+ * @return int
46007+ */
46008+ public static function samplePrimitiveKind(): int {
46009+ return 31; /*31:primitiveKind*/
46010+ }
46011+
46012+ /**
46013+ * @throws Exception
46014+ * @return bool
46015+ */
46016+ public function validate(): bool {
46017+ return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
46018+ }
46019+
46020+ /**
46021+ * @return stdClass
46022+ * @throws Exception
46023+ */
46024+ public function to(): stdClass {
46025+ $out = new stdClass();
46026+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
46027+ return $out;
46028+ }
46029+
46030+ /**
46031+ * @param stdClass $obj
46032+ * @return PrimitiveKind
46033+ * @throws Exception
46034+ */
46035+ public static function from(stdClass $obj): PrimitiveKind {
46036+ if (!property_exists($obj, 'PrimitiveKind')) {
46037+ throw new Exception("Missing required property");
46038+ }
46039+ return new PrimitiveKind(
46040+ PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
46041+ );
46042+ }
46043+
46044+ /**
46045+ * @return PrimitiveKind
46046+ */
46047+ public static function sample(): PrimitiveKind {
46048+ return new PrimitiveKind(
46049+ PrimitiveKind::samplePrimitiveKind()
46050+ );
46051+ }
46052+}
46053+
4585246054 // This is an autogenerated file:SelfClass
4585346055
4585446056 class SelfClass {
@@ -46051,16 +46253,16 @@ class Sendable {
4605146253 }
4605246254 }
4605346255
46054-// This is an autogenerated file:Serialize
46256+// This is an autogenerated file:SerialDescriptor
4605546257
46056-class Serialize {
46057- private int $serialize; // json:serialize Required
46258+class SerialDescriptor {
46259+ private int $serialDescriptor; // json:SerialDescriptor Required
4605846260
4605946261 /**
46060- * @param int $serialize
46262+ * @param int $serialDescriptor
4606146263 */
46062- public function __construct(int $serialize) {
46063- $this->serialize = $serialize;
46264+ public function __construct(int $serialDescriptor) {
46265+ $this->serialDescriptor = $serialDescriptor;
4606446266 }
4606546267
4606646268 /**
@@ -46068,7 +46270,7 @@ class Serialize {
4606846270 * @throws Exception
4606946271 * @return int
4607046272 */
46071- public static function fromSerialize(int $value): int {
46273+ public static function fromSerialDescriptor(int $value): int {
4607246274 return $value; /*int*/
4607346275 }
4607446276
@@ -46076,11 +46278,11 @@ class Serialize {
4607646278 * @throws Exception
4607746279 * @return int
4607846280 */
46079- public function toSerialize(): int {
46080- if (Serialize::validateSerialize($this->serialize)) {
46081- return $this->serialize; /*int*/
46281+ public function toSerialDescriptor(): int {
46282+ if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46283+ return $this->serialDescriptor; /*int*/
4608246284 }
46083- throw new Exception('never get to this Serialize::serialize');
46285+ throw new Exception('never get to this SerialDescriptor::serialDescriptor');
4608446286 }
4608546287
4608646288 /**
@@ -46088,7 +46290,7 @@ class Serialize {
4608846290 * @return bool
4608946291 * @throws Exception
4609046292 */
46091- public static function validateSerialize(int $value): bool {
46293+ public static function validateSerialDescriptor(int $value): bool {
4609246294 return true;
4609346295 }
4609446296
@@ -46096,18 +46298,18 @@ class Serialize {
4609646298 * @throws Exception
4609746299 * @return int
4609846300 */
46099- public function getSerialize(): int {
46100- if (Serialize::validateSerialize($this->serialize)) {
46101- return $this->serialize;
46301+ public function getSerialDescriptor(): int {
46302+ if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) {
46303+ return $this->serialDescriptor;
4610246304 }
46103- throw new Exception('never get to getSerialize Serialize::serialize');
46305+ throw new Exception('never get to getSerialDescriptor SerialDescriptor::serialDescriptor');
4610446306 }
4610546307
4610646308 /**
4610746309 * @return int
4610846310 */
46109- public static function sampleSerialize(): int {
46110- return 31; /*31:serialize*/
46311+ public static function sampleSerialDescriptor(): int {
46312+ return 31; /*31:serialDescriptor*/
4611146313 }
4611246314
4611346315 /**
@@ -46115,7 +46317,7 @@ class Serialize {
4611546317 * @return bool
4611646318 */
4611746319 public function validate(): bool {
46118- return Serialize::validateSerialize($this->serialize);
46320+ return SerialDescriptor::validateSerialDescriptor($this->serialDescriptor);
4611946321 }
4612046322
4612146323 /**
@@ -46124,44 +46326,44 @@ class Serialize {
4612446326 */
4612546327 public function to(): stdClass {
4612646328 $out = new stdClass();
46127- $out->{'serialize'} = $this->toSerialize();
46329+ $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
4612846330 return $out;
4612946331 }
4613046332
4613146333 /**
4613246334 * @param stdClass $obj
46133- * @return Serialize
46335+ * @return SerialDescriptor
4613446336 * @throws Exception
4613546337 */
46136- public static function from(stdClass $obj): Serialize {
46137- if (!property_exists($obj, 'serialize')) {
46338+ public static function from(stdClass $obj): SerialDescriptor {
46339+ if (!property_exists($obj, 'SerialDescriptor')) {
4613846340 throw new Exception("Missing required property");
4613946341 }
46140- return new Serialize(
46141- Serialize::fromSerialize($obj->{'serialize'})
46342+ return new SerialDescriptor(
46343+ SerialDescriptor::fromSerialDescriptor($obj->{'SerialDescriptor'})
4614246344 );
4614346345 }
4614446346
4614546347 /**
46146- * @return Serialize
46348+ * @return SerialDescriptor
4614746349 */
46148- public static function sample(): Serialize {
46149- return new Serialize(
46150- Serialize::sampleSerialize()
46350+ public static function sample(): SerialDescriptor {
46351+ return new SerialDescriptor(
46352+ SerialDescriptor::sampleSerialDescriptor()
4615146353 );
4615246354 }
4615346355 }
4615446356
46155-// This is an autogenerated file:SerializerProvider
46357+// This is an autogenerated file:SerialName
4615646358
46157-class SerializerProvider {
46158- private int $serializerProvider; // json:SerializerProvider Required
46359+class SerialName {
46360+ private int $serialName; // json:SerialName Required
4615946361
4616046362 /**
46161- * @param int $serializerProvider
46363+ * @param int $serialName
4616246364 */
46163- public function __construct(int $serializerProvider) {
46164- $this->serializerProvider = $serializerProvider;
46365+ public function __construct(int $serialName) {
46366+ $this->serialName = $serialName;
4616546367 }
4616646368
4616746369 /**
@@ -46169,7 +46371,7 @@ class SerializerProvider {
4616946371 * @throws Exception
4617046372 * @return int
4617146373 */
46172- public static function fromSerializerProvider(int $value): int {
46374+ public static function fromSerialName(int $value): int {
4617346375 return $value; /*int*/
4617446376 }
4617546377
@@ -46177,11 +46379,11 @@ class SerializerProvider {
4617746379 * @throws Exception
4617846380 * @return int
4617946381 */
46180- public function toSerializerProvider(): int {
46181- if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
46182- return $this->serializerProvider; /*int*/
46382+ public function toSerialName(): int {
46383+ if (SerialName::validateSerialName($this->serialName)) {
46384+ return $this->serialName; /*int*/
4618346385 }
46184- throw new Exception('never get to this SerializerProvider::serializerProvider');
46386+ throw new Exception('never get to this SerialName::serialName');
4618546387 }
4618646388
4618746389 /**
@@ -46189,7 +46391,7 @@ class SerializerProvider {
4618946391 * @return bool
4619046392 * @throws Exception
4619146393 */
46192- public static function validateSerializerProvider(int $value): bool {
46394+ public static function validateSerialName(int $value): bool {
4619346395 return true;
4619446396 }
4619546397
@@ -46197,18 +46399,18 @@ class SerializerProvider {
4619746399 * @throws Exception
4619846400 * @return int
4619946401 */
46200- public function getSerializerProvider(): int {
46201- if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
46202- return $this->serializerProvider;
46402+ public function getSerialName(): int {
46403+ if (SerialName::validateSerialName($this->serialName)) {
46404+ return $this->serialName;
4620346405 }
46204- throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider');
46406+ throw new Exception('never get to getSerialName SerialName::serialName');
4620546407 }
4620646408
4620746409 /**
4620846410 * @return int
4620946411 */
46210- public static function sampleSerializerProvider(): int {
46211- return 31; /*31:serializerProvider*/
46412+ public static function sampleSerialName(): int {
46413+ return 31; /*31:serialName*/
4621246414 }
4621346415
4621446416 /**
@@ -46216,7 +46418,7 @@ class SerializerProvider {
4621646418 * @return bool
4621746419 */
4621846420 public function validate(): bool {
46219- return SerializerProvider::validateSerializerProvider($this->serializerProvider);
46421+ return SerialName::validateSerialName($this->serialName);
4622046422 }
4622146423
4622246424 /**
@@ -46225,44 +46427,44 @@ class SerializerProvider {
4622546427 */
4622646428 public function to(): stdClass {
4622746429 $out = new stdClass();
46228- $out->{'SerializerProvider'} = $this->toSerializerProvider();
46430+ $out->{'SerialName'} = $this->toSerialName();
4622946431 return $out;
4623046432 }
4623146433
4623246434 /**
4623346435 * @param stdClass $obj
46234- * @return SerializerProvider
46436+ * @return SerialName
4623546437 * @throws Exception
4623646438 */
46237- public static function from(stdClass $obj): SerializerProvider {
46238- if (!property_exists($obj, 'SerializerProvider')) {
46439+ public static function from(stdClass $obj): SerialName {
46440+ if (!property_exists($obj, 'SerialName')) {
4623946441 throw new Exception("Missing required property");
4624046442 }
46241- return new SerializerProvider(
46242- SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'})
46443+ return new SerialName(
46444+ SerialName::fromSerialName($obj->{'SerialName'})
4624346445 );
4624446446 }
4624546447
4624646448 /**
46247- * @return SerializerProvider
46449+ * @return SerialName
4624846450 */
46249- public static function sample(): SerializerProvider {
46250- return new SerializerProvider(
46251- SerializerProvider::sampleSerializerProvider()
46451+ public static function sample(): SerialName {
46452+ return new SerialName(
46453+ SerialName::sampleSerialName()
4625246454 );
4625346455 }
4625446456 }
4625546457
46256-// This is an autogenerated file:Set
46458+// This is an autogenerated file:SerializableClass
4625746459
46258-class Set {
46259- private int $set; // json:set Required
46460+class SerializableClass {
46461+ private int $serializable; // json:Serializable Required
4626046462
4626146463 /**
46262- * @param int $set
46464+ * @param int $serializable
4626346465 */
46264- public function __construct(int $set) {
46265- $this->set = $set;
46466+ public function __construct(int $serializable) {
46467+ $this->serializable = $serializable;
4626646468 }
4626746469
4626846470 /**
@@ -46270,7 +46472,7 @@ class Set {
4627046472 * @throws Exception
4627146473 * @return int
4627246474 */
46273- public static function fromSet(int $value): int {
46475+ public static function fromSerializable(int $value): int {
4627446476 return $value; /*int*/
4627546477 }
4627646478
@@ -46278,11 +46480,11 @@ class Set {
4627846480 * @throws Exception
4627946481 * @return int
4628046482 */
46281- public function toSet(): int {
46282- if (Set::validateSet($this->set)) {
46283- return $this->set; /*int*/
46483+ public function toSerializable(): int {
46484+ if (SerializableClass::validateSerializable($this->serializable)) {
46485+ return $this->serializable; /*int*/
4628446486 }
46285- throw new Exception('never get to this Set::set');
46487+ throw new Exception('never get to this SerializableClass::serializable');
4628646488 }
4628746489
4628846490 /**
@@ -46290,7 +46492,7 @@ class Set {
4629046492 * @return bool
4629146493 * @throws Exception
4629246494 */
46293- public static function validateSet(int $value): bool {
46495+ public static function validateSerializable(int $value): bool {
4629446496 return true;
4629546497 }
4629646498
@@ -46298,18 +46500,18 @@ class Set {
4629846500 * @throws Exception
4629946501 * @return int
4630046502 */
46301- public function getSet(): int {
46302- if (Set::validateSet($this->set)) {
46303- return $this->set;
46503+ public function getSerializable(): int {
46504+ if (SerializableClass::validateSerializable($this->serializable)) {
46505+ return $this->serializable;
4630446506 }
46305- throw new Exception('never get to getSet Set::set');
46507+ throw new Exception('never get to getSerializable SerializableClass::serializable');
4630646508 }
4630746509
4630846510 /**
4630946511 * @return int
4631046512 */
46311- public static function sampleSet(): int {
46312- return 31; /*31:set*/
46513+ public static function sampleSerializable(): int {
46514+ return 31; /*31:serializable*/
4631346515 }
4631446516
4631546517 /**
@@ -46317,7 +46519,7 @@ class Set {
4631746519 * @return bool
4631846520 */
4631946521 public function validate(): bool {
46320- return Set::validateSet($this->set);
46522+ return SerializableClass::validateSerializable($this->serializable);
4632146523 }
4632246524
4632346525 /**
@@ -46326,44 +46528,44 @@ class Set {
4632646528 */
4632746529 public function to(): stdClass {
4632846530 $out = new stdClass();
46329- $out->{'set'} = $this->toSet();
46531+ $out->{'Serializable'} = $this->toSerializable();
4633046532 return $out;
4633146533 }
4633246534
4633346535 /**
4633446536 * @param stdClass $obj
46335- * @return Set
46537+ * @return SerializableClass
4633646538 * @throws Exception
4633746539 */
46338- public static function from(stdClass $obj): Set {
46339- if (!property_exists($obj, 'set')) {
46540+ public static function from(stdClass $obj): SerializableClass {
46541+ if (!property_exists($obj, 'Serializable')) {
4634046542 throw new Exception("Missing required property");
4634146543 }
46342- return new Set(
46343- Set::fromSet($obj->{'set'})
46544+ return new SerializableClass(
46545+ SerializableClass::fromSerializable($obj->{'Serializable'})
4634446546 );
4634546547 }
4634646548
4634746549 /**
46348- * @return Set
46550+ * @return SerializableClass
4634946551 */
46350- public static function sample(): Set {
46351- return new Set(
46352- Set::sampleSet()
46552+ public static function sample(): SerializableClass {
46553+ return new SerializableClass(
46554+ SerializableClass::sampleSerializable()
4635346555 );
4635446556 }
4635546557 }
4635646558
46357-// This is an autogenerated file:Short
46559+// This is an autogenerated file:Serialize
4635846560
46359-class Short {
46360- private int $short; // json:short Required
46561+class Serialize {
46562+ private int $serialize; // json:serialize Required
4636146563
4636246564 /**
46363- * @param int $short
46565+ * @param int $serialize
4636446566 */
46365- public function __construct(int $short) {
46366- $this->short = $short;
46567+ public function __construct(int $serialize) {
46568+ $this->serialize = $serialize;
4636746569 }
4636846570
4636946571 /**
@@ -46371,7 +46573,7 @@ class Short {
4637146573 * @throws Exception
4637246574 * @return int
4637346575 */
46374- public static function fromShort(int $value): int {
46576+ public static function fromSerialize(int $value): int {
4637546577 return $value; /*int*/
4637646578 }
4637746579
@@ -46379,11 +46581,11 @@ class Short {
4637946581 * @throws Exception
4638046582 * @return int
4638146583 */
46382- public function toShort(): int {
46383- if (Short::validateShort($this->short)) {
46384- return $this->short; /*int*/
46584+ public function toSerialize(): int {
46585+ if (Serialize::validateSerialize($this->serialize)) {
46586+ return $this->serialize; /*int*/
4638546587 }
46386- throw new Exception('never get to this Short::short');
46588+ throw new Exception('never get to this Serialize::serialize');
4638746589 }
4638846590
4638946591 /**
@@ -46391,7 +46593,7 @@ class Short {
4639146593 * @return bool
4639246594 * @throws Exception
4639346595 */
46394- public static function validateShort(int $value): bool {
46596+ public static function validateSerialize(int $value): bool {
4639546597 return true;
4639646598 }
4639746599
@@ -46399,18 +46601,18 @@ class Short {
4639946601 * @throws Exception
4640046602 * @return int
4640146603 */
46402- public function getShort(): int {
46403- if (Short::validateShort($this->short)) {
46404- return $this->short;
46604+ public function getSerialize(): int {
46605+ if (Serialize::validateSerialize($this->serialize)) {
46606+ return $this->serialize;
4640546607 }
46406- throw new Exception('never get to getShort Short::short');
46608+ throw new Exception('never get to getSerialize Serialize::serialize');
4640746609 }
4640846610
4640946611 /**
4641046612 * @return int
4641146613 */
46412- public static function sampleShort(): int {
46413- return 31; /*31:short*/
46614+ public static function sampleSerialize(): int {
46615+ return 31; /*31:serialize*/
4641446616 }
4641546617
4641646618 /**
@@ -46418,7 +46620,7 @@ class Short {
4641846620 * @return bool
4641946621 */
4642046622 public function validate(): bool {
46421- return Short::validateShort($this->short);
46623+ return Serialize::validateSerialize($this->serialize);
4642246624 }
4642346625
4642446626 /**
@@ -46427,44 +46629,44 @@ class Short {
4642746629 */
4642846630 public function to(): stdClass {
4642946631 $out = new stdClass();
46430- $out->{'short'} = $this->toShort();
46632+ $out->{'serialize'} = $this->toSerialize();
4643146633 return $out;
4643246634 }
4643346635
4643446636 /**
4643546637 * @param stdClass $obj
46436- * @return Short
46638+ * @return Serialize
4643746639 * @throws Exception
4643846640 */
46439- public static function from(stdClass $obj): Short {
46440- if (!property_exists($obj, 'short')) {
46641+ public static function from(stdClass $obj): Serialize {
46642+ if (!property_exists($obj, 'serialize')) {
4644146643 throw new Exception("Missing required property");
4644246644 }
46443- return new Short(
46444- Short::fromShort($obj->{'short'})
46645+ return new Serialize(
46646+ Serialize::fromSerialize($obj->{'serialize'})
4644546647 );
4644646648 }
4644746649
4644846650 /**
46449- * @return Short
46651+ * @return Serialize
4645046652 */
46451- public static function sample(): Short {
46452- return new Short(
46453- Short::sampleShort()
46653+ public static function sample(): Serialize {
46654+ return new Serialize(
46655+ Serialize::sampleSerialize()
4645446656 );
4645546657 }
4645646658 }
4645746659
46458-// This is an autogenerated file:Signed
46660+// This is an autogenerated file:SerializerProvider
4645946661
46460-class Signed {
46461- private int $signed; // json:signed Required
46662+class SerializerProvider {
46663+ private int $serializerProvider; // json:SerializerProvider Required
4646246664
4646346665 /**
46464- * @param int $signed
46666+ * @param int $serializerProvider
4646546667 */
46466- public function __construct(int $signed) {
46467- $this->signed = $signed;
46668+ public function __construct(int $serializerProvider) {
46669+ $this->serializerProvider = $serializerProvider;
4646846670 }
4646946671
4647046672 /**
@@ -46472,7 +46674,7 @@ class Signed {
4647246674 * @throws Exception
4647346675 * @return int
4647446676 */
46475- public static function fromSigned(int $value): int {
46677+ public static function fromSerializerProvider(int $value): int {
4647646678 return $value; /*int*/
4647746679 }
4647846680
@@ -46480,11 +46682,11 @@ class Signed {
4648046682 * @throws Exception
4648146683 * @return int
4648246684 */
46483- public function toSigned(): int {
46484- if (Signed::validateSigned($this->signed)) {
46485- return $this->signed; /*int*/
46685+ public function toSerializerProvider(): int {
46686+ if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
46687+ return $this->serializerProvider; /*int*/
4648646688 }
46487- throw new Exception('never get to this Signed::signed');
46689+ throw new Exception('never get to this SerializerProvider::serializerProvider');
4648846690 }
4648946691
4649046692 /**
@@ -46492,7 +46694,7 @@ class Signed {
4649246694 * @return bool
4649346695 * @throws Exception
4649446696 */
46495- public static function validateSigned(int $value): bool {
46697+ public static function validateSerializerProvider(int $value): bool {
4649646698 return true;
4649746699 }
4649846700
@@ -46500,18 +46702,18 @@ class Signed {
4650046702 * @throws Exception
4650146703 * @return int
4650246704 */
46503- public function getSigned(): int {
46504- if (Signed::validateSigned($this->signed)) {
46505- return $this->signed;
46705+ public function getSerializerProvider(): int {
46706+ if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) {
46707+ return $this->serializerProvider;
4650646708 }
46507- throw new Exception('never get to getSigned Signed::signed');
46709+ throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider');
4650846710 }
4650946711
4651046712 /**
4651146713 * @return int
4651246714 */
46513- public static function sampleSigned(): int {
46514- return 31; /*31:signed*/
46715+ public static function sampleSerializerProvider(): int {
46716+ return 31; /*31:serializerProvider*/
4651546717 }
4651646718
4651746719 /**
@@ -46519,7 +46721,7 @@ class Signed {
4651946721 * @return bool
4652046722 */
4652146723 public function validate(): bool {
46522- return Signed::validateSigned($this->signed);
46724+ return SerializerProvider::validateSerializerProvider($this->serializerProvider);
4652346725 }
4652446726
4652546727 /**
@@ -46528,44 +46730,44 @@ class Signed {
4652846730 */
4652946731 public function to(): stdClass {
4653046732 $out = new stdClass();
46531- $out->{'signed'} = $this->toSigned();
46733+ $out->{'SerializerProvider'} = $this->toSerializerProvider();
4653246734 return $out;
4653346735 }
4653446736
4653546737 /**
4653646738 * @param stdClass $obj
46537- * @return Signed
46739+ * @return SerializerProvider
4653846740 * @throws Exception
4653946741 */
46540- public static function from(stdClass $obj): Signed {
46541- if (!property_exists($obj, 'signed')) {
46742+ public static function from(stdClass $obj): SerializerProvider {
46743+ if (!property_exists($obj, 'SerializerProvider')) {
4654246744 throw new Exception("Missing required property");
4654346745 }
46544- return new Signed(
46545- Signed::fromSigned($obj->{'signed'})
46746+ return new SerializerProvider(
46747+ SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'})
4654646748 );
4654746749 }
4654846750
4654946751 /**
46550- * @return Signed
46752+ * @return SerializerProvider
4655146753 */
46552- public static function sample(): Signed {
46553- return new Signed(
46554- Signed::sampleSigned()
46754+ public static function sample(): SerializerProvider {
46755+ return new SerializerProvider(
46756+ SerializerProvider::sampleSerializerProvider()
4655546757 );
4655646758 }
4655746759 }
4655846760
46559-// This is an autogenerated file:SimpleModule
46761+// This is an autogenerated file:Set
4656046762
46561-class SimpleModule {
46562- private int $simpleModule; // json:SimpleModule Required
46763+class Set {
46764+ private int $set; // json:set Required
4656346765
4656446766 /**
46565- * @param int $simpleModule
46767+ * @param int $set
4656646768 */
46567- public function __construct(int $simpleModule) {
46568- $this->simpleModule = $simpleModule;
46769+ public function __construct(int $set) {
46770+ $this->set = $set;
4656946771 }
4657046772
4657146773 /**
@@ -46573,7 +46775,7 @@ class SimpleModule {
4657346775 * @throws Exception
4657446776 * @return int
4657546777 */
46576- public static function fromSimpleModule(int $value): int {
46778+ public static function fromSet(int $value): int {
4657746779 return $value; /*int*/
4657846780 }
4657946781
@@ -46581,11 +46783,11 @@ class SimpleModule {
4658146783 * @throws Exception
4658246784 * @return int
4658346785 */
46584- public function toSimpleModule(): int {
46585- if (SimpleModule::validateSimpleModule($this->simpleModule)) {
46586- return $this->simpleModule; /*int*/
46786+ public function toSet(): int {
46787+ if (Set::validateSet($this->set)) {
46788+ return $this->set; /*int*/
4658746789 }
46588- throw new Exception('never get to this SimpleModule::simpleModule');
46790+ throw new Exception('never get to this Set::set');
4658946791 }
4659046792
4659146793 /**
@@ -46593,7 +46795,7 @@ class SimpleModule {
4659346795 * @return bool
4659446796 * @throws Exception
4659546797 */
46596- public static function validateSimpleModule(int $value): bool {
46798+ public static function validateSet(int $value): bool {
4659746799 return true;
4659846800 }
4659946801
@@ -46601,18 +46803,18 @@ class SimpleModule {
4660146803 * @throws Exception
4660246804 * @return int
4660346805 */
46604- public function getSimpleModule(): int {
46605- if (SimpleModule::validateSimpleModule($this->simpleModule)) {
46606- return $this->simpleModule;
46806+ public function getSet(): int {
46807+ if (Set::validateSet($this->set)) {
46808+ return $this->set;
4660746809 }
46608- throw new Exception('never get to getSimpleModule SimpleModule::simpleModule');
46810+ throw new Exception('never get to getSet Set::set');
4660946811 }
4661046812
4661146813 /**
4661246814 * @return int
4661346815 */
46614- public static function sampleSimpleModule(): int {
46615- return 31; /*31:simpleModule*/
46816+ public static function sampleSet(): int {
46817+ return 31; /*31:set*/
4661646818 }
4661746819
4661846820 /**
@@ -46620,7 +46822,7 @@ class SimpleModule {
4662046822 * @return bool
4662146823 */
4662246824 public function validate(): bool {
46623- return SimpleModule::validateSimpleModule($this->simpleModule);
46825+ return Set::validateSet($this->set);
4662446826 }
4662546827
4662646828 /**
@@ -46629,44 +46831,44 @@ class SimpleModule {
4662946831 */
4663046832 public function to(): stdClass {
4663146833 $out = new stdClass();
46632- $out->{'SimpleModule'} = $this->toSimpleModule();
46834+ $out->{'set'} = $this->toSet();
4663346835 return $out;
4663446836 }
4663546837
4663646838 /**
4663746839 * @param stdClass $obj
46638- * @return SimpleModule
46840+ * @return Set
4663946841 * @throws Exception
4664046842 */
46641- public static function from(stdClass $obj): SimpleModule {
46642- if (!property_exists($obj, 'SimpleModule')) {
46843+ public static function from(stdClass $obj): Set {
46844+ if (!property_exists($obj, 'set')) {
4664346845 throw new Exception("Missing required property");
4664446846 }
46645- return new SimpleModule(
46646- SimpleModule::fromSimpleModule($obj->{'SimpleModule'})
46847+ return new Set(
46848+ Set::fromSet($obj->{'set'})
4664746849 );
4664846850 }
4664946851
4665046852 /**
46651- * @return SimpleModule
46853+ * @return Set
4665246854 */
46653- public static function sample(): SimpleModule {
46654- return new SimpleModule(
46655- SimpleModule::sampleSimpleModule()
46855+ public static function sample(): Set {
46856+ return new Set(
46857+ Set::sampleSet()
4665646858 );
4665746859 }
4665846860 }
4665946861
46660-// This is an autogenerated file:Sizeof
46862+// This is an autogenerated file:Short
4666146863
46662-class Sizeof {
46663- private int $sizeof; // json:sizeof Required
46864+class Short {
46865+ private int $short; // json:short Required
4666446866
4666546867 /**
46666- * @param int $sizeof
46868+ * @param int $short
4666746869 */
46668- public function __construct(int $sizeof) {
46669- $this->sizeof = $sizeof;
46870+ public function __construct(int $short) {
46871+ $this->short = $short;
4667046872 }
4667146873
4667246874 /**
@@ -46674,7 +46876,7 @@ class Sizeof {
4667446876 * @throws Exception
4667546877 * @return int
4667646878 */
46677- public static function fromSizeof(int $value): int {
46879+ public static function fromShort(int $value): int {
4667846880 return $value; /*int*/
4667946881 }
4668046882
@@ -46682,11 +46884,11 @@ class Sizeof {
4668246884 * @throws Exception
4668346885 * @return int
4668446886 */
46685- public function toSizeof(): int {
46686- if (Sizeof::validateSizeof($this->sizeof)) {
46687- return $this->sizeof; /*int*/
46887+ public function toShort(): int {
46888+ if (Short::validateShort($this->short)) {
46889+ return $this->short; /*int*/
4668846890 }
46689- throw new Exception('never get to this Sizeof::sizeof');
46891+ throw new Exception('never get to this Short::short');
4669046892 }
4669146893
4669246894 /**
@@ -46694,7 +46896,7 @@ class Sizeof {
4669446896 * @return bool
4669546897 * @throws Exception
4669646898 */
46697- public static function validateSizeof(int $value): bool {
46899+ public static function validateShort(int $value): bool {
4669846900 return true;
4669946901 }
4670046902
@@ -46702,18 +46904,18 @@ class Sizeof {
4670246904 * @throws Exception
4670346905 * @return int
4670446906 */
46705- public function getSizeof(): int {
46706- if (Sizeof::validateSizeof($this->sizeof)) {
46707- return $this->sizeof;
46907+ public function getShort(): int {
46908+ if (Short::validateShort($this->short)) {
46909+ return $this->short;
4670846910 }
46709- throw new Exception('never get to getSizeof Sizeof::sizeof');
46911+ throw new Exception('never get to getShort Short::short');
4671046912 }
4671146913
4671246914 /**
4671346915 * @return int
4671446916 */
46715- public static function sampleSizeof(): int {
46716- return 31; /*31:sizeof*/
46917+ public static function sampleShort(): int {
46918+ return 31; /*31:short*/
4671746919 }
4671846920
4671946921 /**
@@ -46721,7 +46923,7 @@ class Sizeof {
4672146923 * @return bool
4672246924 */
4672346925 public function validate(): bool {
46724- return Sizeof::validateSizeof($this->sizeof);
46926+ return Short::validateShort($this->short);
4672546927 }
4672646928
4672746929 /**
@@ -46730,44 +46932,44 @@ class Sizeof {
4673046932 */
4673146933 public function to(): stdClass {
4673246934 $out = new stdClass();
46733- $out->{'sizeof'} = $this->toSizeof();
46935+ $out->{'short'} = $this->toShort();
4673446936 return $out;
4673546937 }
4673646938
4673746939 /**
4673846940 * @param stdClass $obj
46739- * @return Sizeof
46941+ * @return Short
4674046942 * @throws Exception
4674146943 */
46742- public static function from(stdClass $obj): Sizeof {
46743- if (!property_exists($obj, 'sizeof')) {
46944+ public static function from(stdClass $obj): Short {
46945+ if (!property_exists($obj, 'short')) {
4674446946 throw new Exception("Missing required property");
4674546947 }
46746- return new Sizeof(
46747- Sizeof::fromSizeof($obj->{'sizeof'})
46948+ return new Short(
46949+ Short::fromShort($obj->{'short'})
4674846950 );
4674946951 }
4675046952
4675146953 /**
46752- * @return Sizeof
46954+ * @return Short
4675346955 */
46754- public static function sample(): Sizeof {
46755- return new Sizeof(
46756- Sizeof::sampleSizeof()
46956+ public static function sample(): Short {
46957+ return new Short(
46958+ Short::sampleShort()
4675746959 );
4675846960 }
4675946961 }
4676046962
46761-// This is an autogenerated file:Stackalloc
46963+// This is an autogenerated file:Signed
4676246964
46763-class Stackalloc {
46764- private int $stackalloc; // json:stackalloc Required
46965+class Signed {
46966+ private int $signed; // json:signed Required
4676546967
4676646968 /**
46767- * @param int $stackalloc
46969+ * @param int $signed
4676846970 */
46769- public function __construct(int $stackalloc) {
46770- $this->stackalloc = $stackalloc;
46971+ public function __construct(int $signed) {
46972+ $this->signed = $signed;
4677146973 }
4677246974
4677346975 /**
@@ -46775,7 +46977,7 @@ class Stackalloc {
4677546977 * @throws Exception
4677646978 * @return int
4677746979 */
46778- public static function fromStackalloc(int $value): int {
46980+ public static function fromSigned(int $value): int {
4677946981 return $value; /*int*/
4678046982 }
4678146983
@@ -46783,11 +46985,11 @@ class Stackalloc {
4678346985 * @throws Exception
4678446986 * @return int
4678546987 */
46786- public function toStackalloc(): int {
46787- if (Stackalloc::validateStackalloc($this->stackalloc)) {
46788- return $this->stackalloc; /*int*/
46988+ public function toSigned(): int {
46989+ if (Signed::validateSigned($this->signed)) {
46990+ return $this->signed; /*int*/
4678946991 }
46790- throw new Exception('never get to this Stackalloc::stackalloc');
46992+ throw new Exception('never get to this Signed::signed');
4679146993 }
4679246994
4679346995 /**
@@ -46795,7 +46997,7 @@ class Stackalloc {
4679546997 * @return bool
4679646998 * @throws Exception
4679746999 */
46798- public static function validateStackalloc(int $value): bool {
47000+ public static function validateSigned(int $value): bool {
4679947001 return true;
4680047002 }
4680147003
@@ -46803,18 +47005,18 @@ class Stackalloc {
4680347005 * @throws Exception
4680447006 * @return int
4680547007 */
46806- public function getStackalloc(): int {
46807- if (Stackalloc::validateStackalloc($this->stackalloc)) {
46808- return $this->stackalloc;
47008+ public function getSigned(): int {
47009+ if (Signed::validateSigned($this->signed)) {
47010+ return $this->signed;
4680947011 }
46810- throw new Exception('never get to getStackalloc Stackalloc::stackalloc');
47012+ throw new Exception('never get to getSigned Signed::signed');
4681147013 }
4681247014
4681347015 /**
4681447016 * @return int
4681547017 */
46816- public static function sampleStackalloc(): int {
46817- return 31; /*31:stackalloc*/
47018+ public static function sampleSigned(): int {
47019+ return 31; /*31:signed*/
4681847020 }
4681947021
4682047022 /**
@@ -46822,7 +47024,7 @@ class Stackalloc {
4682247024 * @return bool
4682347025 */
4682447026 public function validate(): bool {
46825- return Stackalloc::validateStackalloc($this->stackalloc);
47027+ return Signed::validateSigned($this->signed);
4682647028 }
4682747029
4682847030 /**
@@ -46831,44 +47033,44 @@ class Stackalloc {
4683147033 */
4683247034 public function to(): stdClass {
4683347035 $out = new stdClass();
46834- $out->{'stackalloc'} = $this->toStackalloc();
47036+ $out->{'signed'} = $this->toSigned();
4683547037 return $out;
4683647038 }
4683747039
4683847040 /**
4683947041 * @param stdClass $obj
46840- * @return Stackalloc
47042+ * @return Signed
4684147043 * @throws Exception
4684247044 */
46843- public static function from(stdClass $obj): Stackalloc {
46844- if (!property_exists($obj, 'stackalloc')) {
47045+ public static function from(stdClass $obj): Signed {
47046+ if (!property_exists($obj, 'signed')) {
4684547047 throw new Exception("Missing required property");
4684647048 }
46847- return new Stackalloc(
46848- Stackalloc::fromStackalloc($obj->{'stackalloc'})
47049+ return new Signed(
47050+ Signed::fromSigned($obj->{'signed'})
4684947051 );
4685047052 }
4685147053
4685247054 /**
46853- * @return Stackalloc
47055+ * @return Signed
4685447056 */
46855- public static function sample(): Stackalloc {
46856- return new Stackalloc(
46857- Stackalloc::sampleStackalloc()
47057+ public static function sample(): Signed {
47058+ return new Signed(
47059+ Signed::sampleSigned()
4685847060 );
4685947061 }
4686047062 }
4686147063
46862-// This is an autogenerated file:Standards
47064+// This is an autogenerated file:SimpleModule
4686347065
46864-class Standards {
46865- private int $standards; // json:Standards Required
47066+class SimpleModule {
47067+ private int $simpleModule; // json:SimpleModule Required
4686647068
4686747069 /**
46868- * @param int $standards
47070+ * @param int $simpleModule
4686947071 */
46870- public function __construct(int $standards) {
46871- $this->standards = $standards;
47072+ public function __construct(int $simpleModule) {
47073+ $this->simpleModule = $simpleModule;
4687247074 }
4687347075
4687447076 /**
@@ -46876,7 +47078,7 @@ class Standards {
4687647078 * @throws Exception
4687747079 * @return int
4687847080 */
46879- public static function fromStandards(int $value): int {
47081+ public static function fromSimpleModule(int $value): int {
4688047082 return $value; /*int*/
4688147083 }
4688247084
@@ -46884,11 +47086,11 @@ class Standards {
4688447086 * @throws Exception
4688547087 * @return int
4688647088 */
46887- public function toStandards(): int {
46888- if (Standards::validateStandards($this->standards)) {
46889- return $this->standards; /*int*/
47089+ public function toSimpleModule(): int {
47090+ if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47091+ return $this->simpleModule; /*int*/
4689047092 }
46891- throw new Exception('never get to this Standards::standards');
47093+ throw new Exception('never get to this SimpleModule::simpleModule');
4689247094 }
4689347095
4689447096 /**
@@ -46896,7 +47098,7 @@ class Standards {
4689647098 * @return bool
4689747099 * @throws Exception
4689847100 */
46899- public static function validateStandards(int $value): bool {
47101+ public static function validateSimpleModule(int $value): bool {
4690047102 return true;
4690147103 }
4690247104
@@ -46904,18 +47106,18 @@ class Standards {
4690447106 * @throws Exception
4690547107 * @return int
4690647108 */
46907- public function getStandards(): int {
46908- if (Standards::validateStandards($this->standards)) {
46909- return $this->standards;
47109+ public function getSimpleModule(): int {
47110+ if (SimpleModule::validateSimpleModule($this->simpleModule)) {
47111+ return $this->simpleModule;
4691047112 }
46911- throw new Exception('never get to getStandards Standards::standards');
47113+ throw new Exception('never get to getSimpleModule SimpleModule::simpleModule');
4691247114 }
4691347115
4691447116 /**
4691547117 * @return int
4691647118 */
46917- public static function sampleStandards(): int {
46918- return 31; /*31:standards*/
47119+ public static function sampleSimpleModule(): int {
47120+ return 31; /*31:simpleModule*/
4691947121 }
4692047122
4692147123 /**
@@ -46923,7 +47125,7 @@ class Standards {
4692347125 * @return bool
4692447126 */
4692547127 public function validate(): bool {
46926- return Standards::validateStandards($this->standards);
47128+ return SimpleModule::validateSimpleModule($this->simpleModule);
4692747129 }
4692847130
4692947131 /**
@@ -46932,44 +47134,44 @@ class Standards {
4693247134 */
4693347135 public function to(): stdClass {
4693447136 $out = new stdClass();
46935- $out->{'Standards'} = $this->toStandards();
47137+ $out->{'SimpleModule'} = $this->toSimpleModule();
4693647138 return $out;
4693747139 }
4693847140
4693947141 /**
4694047142 * @param stdClass $obj
46941- * @return Standards
47143+ * @return SimpleModule
4694247144 * @throws Exception
4694347145 */
46944- public static function from(stdClass $obj): Standards {
46945- if (!property_exists($obj, 'Standards')) {
47146+ public static function from(stdClass $obj): SimpleModule {
47147+ if (!property_exists($obj, 'SimpleModule')) {
4694647148 throw new Exception("Missing required property");
4694747149 }
46948- return new Standards(
46949- Standards::fromStandards($obj->{'Standards'})
47150+ return new SimpleModule(
47151+ SimpleModule::fromSimpleModule($obj->{'SimpleModule'})
4695047152 );
4695147153 }
4695247154
4695347155 /**
46954- * @return Standards
47156+ * @return SimpleModule
4695547157 */
46956- public static function sample(): Standards {
46957- return new Standards(
46958- Standards::sampleStandards()
47158+ public static function sample(): SimpleModule {
47159+ return new SimpleModule(
47160+ SimpleModule::sampleSimpleModule()
4695947161 );
4696047162 }
4696147163 }
4696247164
46963-// This is an autogenerated file:StaticClass
47165+// This is an autogenerated file:Sizeof
4696447166
46965-class StaticClass {
46966- private int $static; // json:static Required
47167+class Sizeof {
47168+ private int $sizeof; // json:sizeof Required
4696747169
4696847170 /**
46969- * @param int $static
47171+ * @param int $sizeof
4697047172 */
46971- public function __construct(int $static) {
46972- $this->static = $static;
47173+ public function __construct(int $sizeof) {
47174+ $this->sizeof = $sizeof;
4697347175 }
4697447176
4697547177 /**
@@ -46977,7 +47179,7 @@ class StaticClass {
4697747179 * @throws Exception
4697847180 * @return int
4697947181 */
46980- public static function fromStatic(int $value): int {
47182+ public static function fromSizeof(int $value): int {
4698147183 return $value; /*int*/
4698247184 }
4698347185
@@ -46985,11 +47187,11 @@ class StaticClass {
4698547187 * @throws Exception
4698647188 * @return int
4698747189 */
46988- public function toStatic(): int {
46989- if (StaticClass::validateStatic($this->static)) {
46990- return $this->static; /*int*/
47190+ public function toSizeof(): int {
47191+ if (Sizeof::validateSizeof($this->sizeof)) {
47192+ return $this->sizeof; /*int*/
4699147193 }
46992- throw new Exception('never get to this StaticClass::static');
47194+ throw new Exception('never get to this Sizeof::sizeof');
4699347195 }
4699447196
4699547197 /**
@@ -46997,7 +47199,7 @@ class StaticClass {
4699747199 * @return bool
4699847200 * @throws Exception
4699947201 */
47000- public static function validateStatic(int $value): bool {
47202+ public static function validateSizeof(int $value): bool {
4700147203 return true;
4700247204 }
4700347205
@@ -47005,18 +47207,18 @@ class StaticClass {
4700547207 * @throws Exception
4700647208 * @return int
4700747209 */
47008- public function getStatic(): int {
47009- if (StaticClass::validateStatic($this->static)) {
47010- return $this->static;
47210+ public function getSizeof(): int {
47211+ if (Sizeof::validateSizeof($this->sizeof)) {
47212+ return $this->sizeof;
4701147213 }
47012- throw new Exception('never get to getStatic StaticClass::static');
47214+ throw new Exception('never get to getSizeof Sizeof::sizeof');
4701347215 }
4701447216
4701547217 /**
4701647218 * @return int
4701747219 */
47018- public static function sampleStatic(): int {
47019- return 31; /*31:static*/
47220+ public static function sampleSizeof(): int {
47221+ return 31; /*31:sizeof*/
4702047222 }
4702147223
4702247224 /**
@@ -47024,7 +47226,7 @@ class StaticClass {
4702447226 * @return bool
4702547227 */
4702647228 public function validate(): bool {
47027- return StaticClass::validateStatic($this->static);
47229+ return Sizeof::validateSizeof($this->sizeof);
4702847230 }
4702947231
4703047232 /**
@@ -47033,44 +47235,44 @@ class StaticClass {
4703347235 */
4703447236 public function to(): stdClass {
4703547237 $out = new stdClass();
47036- $out->{'static'} = $this->toStatic();
47238+ $out->{'sizeof'} = $this->toSizeof();
4703747239 return $out;
4703847240 }
4703947241
4704047242 /**
4704147243 * @param stdClass $obj
47042- * @return StaticClass
47244+ * @return Sizeof
4704347245 * @throws Exception
4704447246 */
47045- public static function from(stdClass $obj): StaticClass {
47046- if (!property_exists($obj, 'static')) {
47247+ public static function from(stdClass $obj): Sizeof {
47248+ if (!property_exists($obj, 'sizeof')) {
4704747249 throw new Exception("Missing required property");
4704847250 }
47049- return new StaticClass(
47050- StaticClass::fromStatic($obj->{'static'})
47251+ return new Sizeof(
47252+ Sizeof::fromSizeof($obj->{'sizeof'})
4705147253 );
4705247254 }
4705347255
4705447256 /**
47055- * @return StaticClass
47257+ * @return Sizeof
4705647258 */
47057- public static function sample(): StaticClass {
47058- return new StaticClass(
47059- StaticClass::sampleStatic()
47259+ public static function sample(): Sizeof {
47260+ return new Sizeof(
47261+ Sizeof::sampleSizeof()
4706047262 );
4706147263 }
4706247264 }
4706347265
47064-// This is an autogenerated file:StaticAssert
47266+// This is an autogenerated file:Stackalloc
4706547267
47066-class StaticAssert {
47067- private int $staticAssert; // json:static_assert Required
47268+class Stackalloc {
47269+ private int $stackalloc; // json:stackalloc Required
4706847270
4706947271 /**
47070- * @param int $staticAssert
47272+ * @param int $stackalloc
4707147273 */
47072- public function __construct(int $staticAssert) {
47073- $this->staticAssert = $staticAssert;
47274+ public function __construct(int $stackalloc) {
47275+ $this->stackalloc = $stackalloc;
4707447276 }
4707547277
4707647278 /**
@@ -47078,7 +47280,7 @@ class StaticAssert {
4707847280 * @throws Exception
4707947281 * @return int
4708047282 */
47081- public static function fromStaticAssert(int $value): int {
47283+ public static function fromStackalloc(int $value): int {
4708247284 return $value; /*int*/
4708347285 }
4708447286
@@ -47086,11 +47288,11 @@ class StaticAssert {
4708647288 * @throws Exception
4708747289 * @return int
4708847290 */
47089- public function toStaticAssert(): int {
47090- if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47091- return $this->staticAssert; /*int*/
47291+ public function toStackalloc(): int {
47292+ if (Stackalloc::validateStackalloc($this->stackalloc)) {
47293+ return $this->stackalloc; /*int*/
4709247294 }
47093- throw new Exception('never get to this StaticAssert::staticAssert');
47295+ throw new Exception('never get to this Stackalloc::stackalloc');
4709447296 }
4709547297
4709647298 /**
@@ -47098,7 +47300,7 @@ class StaticAssert {
4709847300 * @return bool
4709947301 * @throws Exception
4710047302 */
47101- public static function validateStaticAssert(int $value): bool {
47303+ public static function validateStackalloc(int $value): bool {
4710247304 return true;
4710347305 }
4710447306
@@ -47106,18 +47308,18 @@ class StaticAssert {
4710647308 * @throws Exception
4710747309 * @return int
4710847310 */
47109- public function getStaticAssert(): int {
47110- if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47111- return $this->staticAssert;
47311+ public function getStackalloc(): int {
47312+ if (Stackalloc::validateStackalloc($this->stackalloc)) {
47313+ return $this->stackalloc;
4711247314 }
47113- throw new Exception('never get to getStaticAssert StaticAssert::staticAssert');
47315+ throw new Exception('never get to getStackalloc Stackalloc::stackalloc');
4711447316 }
4711547317
4711647318 /**
4711747319 * @return int
4711847320 */
47119- public static function sampleStaticAssert(): int {
47120- return 31; /*31:staticAssert*/
47321+ public static function sampleStackalloc(): int {
47322+ return 31; /*31:stackalloc*/
4712147323 }
4712247324
4712347325 /**
@@ -47125,7 +47327,7 @@ class StaticAssert {
4712547327 * @return bool
4712647328 */
4712747329 public function validate(): bool {
47128- return StaticAssert::validateStaticAssert($this->staticAssert);
47330+ return Stackalloc::validateStackalloc($this->stackalloc);
4712947331 }
4713047332
4713147333 /**
@@ -47134,44 +47336,44 @@ class StaticAssert {
4713447336 */
4713547337 public function to(): stdClass {
4713647338 $out = new stdClass();
47137- $out->{'static_assert'} = $this->toStaticAssert();
47339+ $out->{'stackalloc'} = $this->toStackalloc();
4713847340 return $out;
4713947341 }
4714047342
4714147343 /**
4714247344 * @param stdClass $obj
47143- * @return StaticAssert
47345+ * @return Stackalloc
4714447346 * @throws Exception
4714547347 */
47146- public static function from(stdClass $obj): StaticAssert {
47147- if (!property_exists($obj, 'static_assert')) {
47348+ public static function from(stdClass $obj): Stackalloc {
47349+ if (!property_exists($obj, 'stackalloc')) {
4714847350 throw new Exception("Missing required property");
4714947351 }
47150- return new StaticAssert(
47151- StaticAssert::fromStaticAssert($obj->{'static_assert'})
47352+ return new Stackalloc(
47353+ Stackalloc::fromStackalloc($obj->{'stackalloc'})
4715247354 );
4715347355 }
4715447356
4715547357 /**
47156- * @return StaticAssert
47358+ * @return Stackalloc
4715747359 */
47158- public static function sample(): StaticAssert {
47159- return new StaticAssert(
47160- StaticAssert::sampleStaticAssert()
47360+ public static function sample(): Stackalloc {
47361+ return new Stackalloc(
47362+ Stackalloc::sampleStackalloc()
4716147363 );
4716247364 }
4716347365 }
4716447366
47165-// This is an autogenerated file:StaticCast
47367+// This is an autogenerated file:Standards
4716647368
47167-class StaticCast {
47168- private int $staticCast; // json:static_cast Required
47369+class Standards {
47370+ private int $standards; // json:Standards Required
4716947371
4717047372 /**
47171- * @param int $staticCast
47373+ * @param int $standards
4717247374 */
47173- public function __construct(int $staticCast) {
47174- $this->staticCast = $staticCast;
47375+ public function __construct(int $standards) {
47376+ $this->standards = $standards;
4717547377 }
4717647378
4717747379 /**
@@ -47179,7 +47381,7 @@ class StaticCast {
4717947381 * @throws Exception
4718047382 * @return int
4718147383 */
47182- public static function fromStaticCast(int $value): int {
47384+ public static function fromStandards(int $value): int {
4718347385 return $value; /*int*/
4718447386 }
4718547387
@@ -47187,11 +47389,11 @@ class StaticCast {
4718747389 * @throws Exception
4718847390 * @return int
4718947391 */
47190- public function toStaticCast(): int {
47191- if (StaticCast::validateStaticCast($this->staticCast)) {
47192- return $this->staticCast; /*int*/
47392+ public function toStandards(): int {
47393+ if (Standards::validateStandards($this->standards)) {
47394+ return $this->standards; /*int*/
4719347395 }
47194- throw new Exception('never get to this StaticCast::staticCast');
47396+ throw new Exception('never get to this Standards::standards');
4719547397 }
4719647398
4719747399 /**
@@ -47199,7 +47401,7 @@ class StaticCast {
4719947401 * @return bool
4720047402 * @throws Exception
4720147403 */
47202- public static function validateStaticCast(int $value): bool {
47404+ public static function validateStandards(int $value): bool {
4720347405 return true;
4720447406 }
4720547407
@@ -47207,18 +47409,18 @@ class StaticCast {
4720747409 * @throws Exception
4720847410 * @return int
4720947411 */
47210- public function getStaticCast(): int {
47211- if (StaticCast::validateStaticCast($this->staticCast)) {
47212- return $this->staticCast;
47412+ public function getStandards(): int {
47413+ if (Standards::validateStandards($this->standards)) {
47414+ return $this->standards;
4721347415 }
47214- throw new Exception('never get to getStaticCast StaticCast::staticCast');
47416+ throw new Exception('never get to getStandards Standards::standards');
4721547417 }
4721647418
4721747419 /**
4721847420 * @return int
4721947421 */
47220- public static function sampleStaticCast(): int {
47221- return 31; /*31:staticCast*/
47422+ public static function sampleStandards(): int {
47423+ return 31; /*31:standards*/
4722247424 }
4722347425
4722447426 /**
@@ -47226,7 +47428,7 @@ class StaticCast {
4722647428 * @return bool
4722747429 */
4722847430 public function validate(): bool {
47229- return StaticCast::validateStaticCast($this->staticCast);
47431+ return Standards::validateStandards($this->standards);
4723047432 }
4723147433
4723247434 /**
@@ -47235,44 +47437,44 @@ class StaticCast {
4723547437 */
4723647438 public function to(): stdClass {
4723747439 $out = new stdClass();
47238- $out->{'static_cast'} = $this->toStaticCast();
47440+ $out->{'Standards'} = $this->toStandards();
4723947441 return $out;
4724047442 }
4724147443
4724247444 /**
4724347445 * @param stdClass $obj
47244- * @return StaticCast
47446+ * @return Standards
4724547447 * @throws Exception
4724647448 */
47247- public static function from(stdClass $obj): StaticCast {
47248- if (!property_exists($obj, 'static_cast')) {
47449+ public static function from(stdClass $obj): Standards {
47450+ if (!property_exists($obj, 'Standards')) {
4724947451 throw new Exception("Missing required property");
4725047452 }
47251- return new StaticCast(
47252- StaticCast::fromStaticCast($obj->{'static_cast'})
47453+ return new Standards(
47454+ Standards::fromStandards($obj->{'Standards'})
4725347455 );
4725447456 }
4725547457
4725647458 /**
47257- * @return StaticCast
47459+ * @return Standards
4725847460 */
47259- public static function sample(): StaticCast {
47260- return new StaticCast(
47261- StaticCast::sampleStaticCast()
47461+ public static function sample(): Standards {
47462+ return new Standards(
47463+ Standards::sampleStandards()
4726247464 );
4726347465 }
4726447466 }
4726547467
47266-// This is an autogenerated file:StdDeserializer
47468+// This is an autogenerated file:StaticClass
4726747469
47268-class StdDeserializer {
47269- private int $stdDeserializer; // json:StdDeserializer Required
47470+class StaticClass {
47471+ private int $static; // json:static Required
4727047472
4727147473 /**
47272- * @param int $stdDeserializer
47474+ * @param int $static
4727347475 */
47274- public function __construct(int $stdDeserializer) {
47275- $this->stdDeserializer = $stdDeserializer;
47476+ public function __construct(int $static) {
47477+ $this->static = $static;
4727647478 }
4727747479
4727847480 /**
@@ -47280,7 +47482,7 @@ class StdDeserializer {
4728047482 * @throws Exception
4728147483 * @return int
4728247484 */
47283- public static function fromStdDeserializer(int $value): int {
47485+ public static function fromStatic(int $value): int {
4728447486 return $value; /*int*/
4728547487 }
4728647488
@@ -47288,11 +47490,11 @@ class StdDeserializer {
4728847490 * @throws Exception
4728947491 * @return int
4729047492 */
47291- public function toStdDeserializer(): int {
47292- if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
47293- return $this->stdDeserializer; /*int*/
47493+ public function toStatic(): int {
47494+ if (StaticClass::validateStatic($this->static)) {
47495+ return $this->static; /*int*/
4729447496 }
47295- throw new Exception('never get to this StdDeserializer::stdDeserializer');
47497+ throw new Exception('never get to this StaticClass::static');
4729647498 }
4729747499
4729847500 /**
@@ -47300,7 +47502,7 @@ class StdDeserializer {
4730047502 * @return bool
4730147503 * @throws Exception
4730247504 */
47303- public static function validateStdDeserializer(int $value): bool {
47505+ public static function validateStatic(int $value): bool {
4730447506 return true;
4730547507 }
4730647508
@@ -47308,18 +47510,18 @@ class StdDeserializer {
4730847510 * @throws Exception
4730947511 * @return int
4731047512 */
47311- public function getStdDeserializer(): int {
47312- if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
47313- return $this->stdDeserializer;
47513+ public function getStatic(): int {
47514+ if (StaticClass::validateStatic($this->static)) {
47515+ return $this->static;
4731447516 }
47315- throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer');
47517+ throw new Exception('never get to getStatic StaticClass::static');
4731647518 }
4731747519
4731847520 /**
4731947521 * @return int
4732047522 */
47321- public static function sampleStdDeserializer(): int {
47322- return 31; /*31:stdDeserializer*/
47523+ public static function sampleStatic(): int {
47524+ return 31; /*31:static*/
4732347525 }
4732447526
4732547527 /**
@@ -47327,7 +47529,7 @@ class StdDeserializer {
4732747529 * @return bool
4732847530 */
4732947531 public function validate(): bool {
47330- return StdDeserializer::validateStdDeserializer($this->stdDeserializer);
47532+ return StaticClass::validateStatic($this->static);
4733147533 }
4733247534
4733347535 /**
@@ -47336,44 +47538,44 @@ class StdDeserializer {
4733647538 */
4733747539 public function to(): stdClass {
4733847540 $out = new stdClass();
47339- $out->{'StdDeserializer'} = $this->toStdDeserializer();
47541+ $out->{'static'} = $this->toStatic();
4734047542 return $out;
4734147543 }
4734247544
4734347545 /**
4734447546 * @param stdClass $obj
47345- * @return StdDeserializer
47547+ * @return StaticClass
4734647548 * @throws Exception
4734747549 */
47348- public static function from(stdClass $obj): StdDeserializer {
47349- if (!property_exists($obj, 'StdDeserializer')) {
47550+ public static function from(stdClass $obj): StaticClass {
47551+ if (!property_exists($obj, 'static')) {
4735047552 throw new Exception("Missing required property");
4735147553 }
47352- return new StdDeserializer(
47353- StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'})
47554+ return new StaticClass(
47555+ StaticClass::fromStatic($obj->{'static'})
4735447556 );
4735547557 }
4735647558
4735747559 /**
47358- * @return StdDeserializer
47560+ * @return StaticClass
4735947561 */
47360- public static function sample(): StdDeserializer {
47361- return new StdDeserializer(
47362- StdDeserializer::sampleStdDeserializer()
47562+ public static function sample(): StaticClass {
47563+ return new StaticClass(
47564+ StaticClass::sampleStatic()
4736347565 );
4736447566 }
4736547567 }
4736647568
47367-// This is an autogenerated file:StdSerializer
47569+// This is an autogenerated file:StaticAssert
4736847570
47369-class StdSerializer {
47370- private int $stdSerializer; // json:StdSerializer Required
47571+class StaticAssert {
47572+ private int $staticAssert; // json:static_assert Required
4737147573
4737247574 /**
47373- * @param int $stdSerializer
47575+ * @param int $staticAssert
4737447576 */
47375- public function __construct(int $stdSerializer) {
47376- $this->stdSerializer = $stdSerializer;
47577+ public function __construct(int $staticAssert) {
47578+ $this->staticAssert = $staticAssert;
4737747579 }
4737847580
4737947581 /**
@@ -47381,7 +47583,7 @@ class StdSerializer {
4738147583 * @throws Exception
4738247584 * @return int
4738347585 */
47384- public static function fromStdSerializer(int $value): int {
47586+ public static function fromStaticAssert(int $value): int {
4738547587 return $value; /*int*/
4738647588 }
4738747589
@@ -47389,11 +47591,11 @@ class StdSerializer {
4738947591 * @throws Exception
4739047592 * @return int
4739147593 */
47392- public function toStdSerializer(): int {
47393- if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
47394- return $this->stdSerializer; /*int*/
47594+ public function toStaticAssert(): int {
47595+ if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47596+ return $this->staticAssert; /*int*/
4739547597 }
47396- throw new Exception('never get to this StdSerializer::stdSerializer');
47598+ throw new Exception('never get to this StaticAssert::staticAssert');
4739747599 }
4739847600
4739947601 /**
@@ -47401,7 +47603,7 @@ class StdSerializer {
4740147603 * @return bool
4740247604 * @throws Exception
4740347605 */
47404- public static function validateStdSerializer(int $value): bool {
47606+ public static function validateStaticAssert(int $value): bool {
4740547607 return true;
4740647608 }
4740747609
@@ -47409,18 +47611,18 @@ class StdSerializer {
4740947611 * @throws Exception
4741047612 * @return int
4741147613 */
47412- public function getStdSerializer(): int {
47413- if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
47414- return $this->stdSerializer;
47614+ public function getStaticAssert(): int {
47615+ if (StaticAssert::validateStaticAssert($this->staticAssert)) {
47616+ return $this->staticAssert;
4741547617 }
47416- throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer');
47618+ throw new Exception('never get to getStaticAssert StaticAssert::staticAssert');
4741747619 }
4741847620
4741947621 /**
4742047622 * @return int
4742147623 */
47422- public static function sampleStdSerializer(): int {
47423- return 31; /*31:stdSerializer*/
47624+ public static function sampleStaticAssert(): int {
47625+ return 31; /*31:staticAssert*/
4742447626 }
4742547627
4742647628 /**
@@ -47428,7 +47630,7 @@ class StdSerializer {
4742847630 * @return bool
4742947631 */
4743047632 public function validate(): bool {
47431- return StdSerializer::validateStdSerializer($this->stdSerializer);
47633+ return StaticAssert::validateStaticAssert($this->staticAssert);
4743247634 }
4743347635
4743447636 /**
@@ -47437,44 +47639,44 @@ class StdSerializer {
4743747639 */
4743847640 public function to(): stdClass {
4743947641 $out = new stdClass();
47440- $out->{'StdSerializer'} = $this->toStdSerializer();
47642+ $out->{'static_assert'} = $this->toStaticAssert();
4744147643 return $out;
4744247644 }
4744347645
4744447646 /**
4744547647 * @param stdClass $obj
47446- * @return StdSerializer
47648+ * @return StaticAssert
4744747649 * @throws Exception
4744847650 */
47449- public static function from(stdClass $obj): StdSerializer {
47450- if (!property_exists($obj, 'StdSerializer')) {
47651+ public static function from(stdClass $obj): StaticAssert {
47652+ if (!property_exists($obj, 'static_assert')) {
4745147653 throw new Exception("Missing required property");
4745247654 }
47453- return new StdSerializer(
47454- StdSerializer::fromStdSerializer($obj->{'StdSerializer'})
47655+ return new StaticAssert(
47656+ StaticAssert::fromStaticAssert($obj->{'static_assert'})
4745547657 );
4745647658 }
4745747659
4745847660 /**
47459- * @return StdSerializer
47661+ * @return StaticAssert
4746047662 */
47461- public static function sample(): StdSerializer {
47462- return new StdSerializer(
47463- StdSerializer::sampleStdSerializer()
47663+ public static function sample(): StaticAssert {
47664+ return new StaticAssert(
47665+ StaticAssert::sampleStaticAssert()
4746447666 );
4746547667 }
4746647668 }
4746747669
47468-// This is an autogenerated file:Strictfp
47670+// This is an autogenerated file:StaticCast
4746947671
47470-class Strictfp {
47471- private int $strictfp; // json:strictfp Required
47672+class StaticCast {
47673+ private int $staticCast; // json:static_cast Required
4747247674
4747347675 /**
47474- * @param int $strictfp
47676+ * @param int $staticCast
4747547677 */
47476- public function __construct(int $strictfp) {
47477- $this->strictfp = $strictfp;
47678+ public function __construct(int $staticCast) {
47679+ $this->staticCast = $staticCast;
4747847680 }
4747947681
4748047682 /**
@@ -47482,7 +47684,7 @@ class Strictfp {
4748247684 * @throws Exception
4748347685 * @return int
4748447686 */
47485- public static function fromStrictfp(int $value): int {
47687+ public static function fromStaticCast(int $value): int {
4748647688 return $value; /*int*/
4748747689 }
4748847690
@@ -47490,11 +47692,11 @@ class Strictfp {
4749047692 * @throws Exception
4749147693 * @return int
4749247694 */
47493- public function toStrictfp(): int {
47494- if (Strictfp::validateStrictfp($this->strictfp)) {
47495- return $this->strictfp; /*int*/
47695+ public function toStaticCast(): int {
47696+ if (StaticCast::validateStaticCast($this->staticCast)) {
47697+ return $this->staticCast; /*int*/
4749647698 }
47497- throw new Exception('never get to this Strictfp::strictfp');
47699+ throw new Exception('never get to this StaticCast::staticCast');
4749847700 }
4749947701
4750047702 /**
@@ -47502,7 +47704,7 @@ class Strictfp {
4750247704 * @return bool
4750347705 * @throws Exception
4750447706 */
47505- public static function validateStrictfp(int $value): bool {
47707+ public static function validateStaticCast(int $value): bool {
4750647708 return true;
4750747709 }
4750847710
@@ -47510,18 +47712,18 @@ class Strictfp {
4751047712 * @throws Exception
4751147713 * @return int
4751247714 */
47513- public function getStrictfp(): int {
47514- if (Strictfp::validateStrictfp($this->strictfp)) {
47515- return $this->strictfp;
47715+ public function getStaticCast(): int {
47716+ if (StaticCast::validateStaticCast($this->staticCast)) {
47717+ return $this->staticCast;
4751647718 }
47517- throw new Exception('never get to getStrictfp Strictfp::strictfp');
47719+ throw new Exception('never get to getStaticCast StaticCast::staticCast');
4751847720 }
4751947721
4752047722 /**
4752147723 * @return int
4752247724 */
47523- public static function sampleStrictfp(): int {
47524- return 31; /*31:strictfp*/
47725+ public static function sampleStaticCast(): int {
47726+ return 31; /*31:staticCast*/
4752547727 }
4752647728
4752747729 /**
@@ -47529,7 +47731,7 @@ class Strictfp {
4752947731 * @return bool
4753047732 */
4753147733 public function validate(): bool {
47532- return Strictfp::validateStrictfp($this->strictfp);
47734+ return StaticCast::validateStaticCast($this->staticCast);
4753347735 }
4753447736
4753547737 /**
@@ -47538,44 +47740,44 @@ class Strictfp {
4753847740 */
4753947741 public function to(): stdClass {
4754047742 $out = new stdClass();
47541- $out->{'strictfp'} = $this->toStrictfp();
47743+ $out->{'static_cast'} = $this->toStaticCast();
4754247744 return $out;
4754347745 }
4754447746
4754547747 /**
4754647748 * @param stdClass $obj
47547- * @return Strictfp
47749+ * @return StaticCast
4754847750 * @throws Exception
4754947751 */
47550- public static function from(stdClass $obj): Strictfp {
47551- if (!property_exists($obj, 'strictfp')) {
47752+ public static function from(stdClass $obj): StaticCast {
47753+ if (!property_exists($obj, 'static_cast')) {
4755247754 throw new Exception("Missing required property");
4755347755 }
47554- return new Strictfp(
47555- Strictfp::fromStrictfp($obj->{'strictfp'})
47756+ return new StaticCast(
47757+ StaticCast::fromStaticCast($obj->{'static_cast'})
4755647758 );
4755747759 }
4755847760
4755947761 /**
47560- * @return Strictfp
47762+ * @return StaticCast
4756147763 */
47562- public static function sample(): Strictfp {
47563- return new Strictfp(
47564- Strictfp::sampleStrictfp()
47764+ public static function sample(): StaticCast {
47765+ return new StaticCast(
47766+ StaticCast::sampleStaticCast()
4756547767 );
4756647768 }
4756747769 }
4756847770
47569-// This is an autogenerated file:StringClass
47771+// This is an autogenerated file:StdDeserializer
4757047772
47571-class StringClass {
47572- private int $string; // json:string Required
47773+class StdDeserializer {
47774+ private int $stdDeserializer; // json:StdDeserializer Required
4757347775
4757447776 /**
47575- * @param int $string
47777+ * @param int $stdDeserializer
4757647778 */
47577- public function __construct(int $string) {
47578- $this->string = $string;
47779+ public function __construct(int $stdDeserializer) {
47780+ $this->stdDeserializer = $stdDeserializer;
4757947781 }
4758047782
4758147783 /**
@@ -47583,7 +47785,7 @@ class StringClass {
4758347785 * @throws Exception
4758447786 * @return int
4758547787 */
47586- public static function fromString(int $value): int {
47788+ public static function fromStdDeserializer(int $value): int {
4758747789 return $value; /*int*/
4758847790 }
4758947791
@@ -47591,11 +47793,11 @@ class StringClass {
4759147793 * @throws Exception
4759247794 * @return int
4759347795 */
47594- public function toString(): int {
47595- if (StringClass::validateString($this->string)) {
47596- return $this->string; /*int*/
47796+ public function toStdDeserializer(): int {
47797+ if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
47798+ return $this->stdDeserializer; /*int*/
4759747799 }
47598- throw new Exception('never get to this StringClass::string');
47800+ throw new Exception('never get to this StdDeserializer::stdDeserializer');
4759947801 }
4760047802
4760147803 /**
@@ -47603,7 +47805,7 @@ class StringClass {
4760347805 * @return bool
4760447806 * @throws Exception
4760547807 */
47606- public static function validateString(int $value): bool {
47808+ public static function validateStdDeserializer(int $value): bool {
4760747809 return true;
4760847810 }
4760947811
@@ -47611,18 +47813,18 @@ class StringClass {
4761147813 * @throws Exception
4761247814 * @return int
4761347815 */
47614- public function getString(): int {
47615- if (StringClass::validateString($this->string)) {
47616- return $this->string;
47816+ public function getStdDeserializer(): int {
47817+ if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) {
47818+ return $this->stdDeserializer;
4761747819 }
47618- throw new Exception('never get to getString StringClass::string');
47820+ throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer');
4761947821 }
4762047822
4762147823 /**
4762247824 * @return int
4762347825 */
47624- public static function sampleString(): int {
47625- return 31; /*31:string*/
47826+ public static function sampleStdDeserializer(): int {
47827+ return 31; /*31:stdDeserializer*/
4762647828 }
4762747829
4762847830 /**
@@ -47630,7 +47832,7 @@ class StringClass {
4763047832 * @return bool
4763147833 */
4763247834 public function validate(): bool {
47633- return StringClass::validateString($this->string);
47835+ return StdDeserializer::validateStdDeserializer($this->stdDeserializer);
4763447836 }
4763547837
4763647838 /**
@@ -47639,44 +47841,44 @@ class StringClass {
4763947841 */
4764047842 public function to(): stdClass {
4764147843 $out = new stdClass();
47642- $out->{'string'} = $this->toString();
47844+ $out->{'StdDeserializer'} = $this->toStdDeserializer();
4764347845 return $out;
4764447846 }
4764547847
4764647848 /**
4764747849 * @param stdClass $obj
47648- * @return StringClass
47850+ * @return StdDeserializer
4764947851 * @throws Exception
4765047852 */
47651- public static function from(stdClass $obj): StringClass {
47652- if (!property_exists($obj, 'string')) {
47853+ public static function from(stdClass $obj): StdDeserializer {
47854+ if (!property_exists($obj, 'StdDeserializer')) {
4765347855 throw new Exception("Missing required property");
4765447856 }
47655- return new StringClass(
47656- StringClass::fromString($obj->{'string'})
47857+ return new StdDeserializer(
47858+ StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'})
4765747859 );
4765847860 }
4765947861
4766047862 /**
47661- * @return StringClass
47863+ * @return StdDeserializer
4766247864 */
47663- public static function sample(): StringClass {
47664- return new StringClass(
47665- StringClass::sampleString()
47865+ public static function sample(): StdDeserializer {
47866+ return new StdDeserializer(
47867+ StdDeserializer::sampleStdDeserializer()
4766647868 );
4766747869 }
4766847870 }
4766947871
47670-// This is an autogenerated file:Struct
47872+// This is an autogenerated file:StdSerializer
4767147873
47672-class Struct {
47673- private int $struct; // json:struct Required
47874+class StdSerializer {
47875+ private int $stdSerializer; // json:StdSerializer Required
4767447876
4767547877 /**
47676- * @param int $struct
47878+ * @param int $stdSerializer
4767747879 */
47678- public function __construct(int $struct) {
47679- $this->struct = $struct;
47880+ public function __construct(int $stdSerializer) {
47881+ $this->stdSerializer = $stdSerializer;
4768047882 }
4768147883
4768247884 /**
@@ -47684,7 +47886,7 @@ class Struct {
4768447886 * @throws Exception
4768547887 * @return int
4768647888 */
47687- public static function fromStruct(int $value): int {
47889+ public static function fromStdSerializer(int $value): int {
4768847890 return $value; /*int*/
4768947891 }
4769047892
@@ -47692,11 +47894,11 @@ class Struct {
4769247894 * @throws Exception
4769347895 * @return int
4769447896 */
47695- public function toStruct(): int {
47696- if (Struct::validateStruct($this->struct)) {
47697- return $this->struct; /*int*/
47897+ public function toStdSerializer(): int {
47898+ if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
47899+ return $this->stdSerializer; /*int*/
4769847900 }
47699- throw new Exception('never get to this Struct::struct');
47901+ throw new Exception('never get to this StdSerializer::stdSerializer');
4770047902 }
4770147903
4770247904 /**
@@ -47704,7 +47906,7 @@ class Struct {
4770447906 * @return bool
4770547907 * @throws Exception
4770647908 */
47707- public static function validateStruct(int $value): bool {
47909+ public static function validateStdSerializer(int $value): bool {
4770847910 return true;
4770947911 }
4771047912
@@ -47712,18 +47914,18 @@ class Struct {
4771247914 * @throws Exception
4771347915 * @return int
4771447916 */
47715- public function getStruct(): int {
47716- if (Struct::validateStruct($this->struct)) {
47717- return $this->struct;
47917+ public function getStdSerializer(): int {
47918+ if (StdSerializer::validateStdSerializer($this->stdSerializer)) {
47919+ return $this->stdSerializer;
4771847920 }
47719- throw new Exception('never get to getStruct Struct::struct');
47921+ throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer');
4772047922 }
4772147923
4772247924 /**
4772347925 * @return int
4772447926 */
47725- public static function sampleStruct(): int {
47726- return 31; /*31:struct*/
47927+ public static function sampleStdSerializer(): int {
47928+ return 31; /*31:stdSerializer*/
4772747929 }
4772847930
4772947931 /**
@@ -47731,7 +47933,7 @@ class Struct {
4773147933 * @return bool
4773247934 */
4773347935 public function validate(): bool {
47734- return Struct::validateStruct($this->struct);
47936+ return StdSerializer::validateStdSerializer($this->stdSerializer);
4773547937 }
4773647938
4773747939 /**
@@ -47740,44 +47942,44 @@ class Struct {
4774047942 */
4774147943 public function to(): stdClass {
4774247944 $out = new stdClass();
47743- $out->{'struct'} = $this->toStruct();
47945+ $out->{'StdSerializer'} = $this->toStdSerializer();
4774447946 return $out;
4774547947 }
4774647948
4774747949 /**
4774847950 * @param stdClass $obj
47749- * @return Struct
47951+ * @return StdSerializer
4775047952 * @throws Exception
4775147953 */
47752- public static function from(stdClass $obj): Struct {
47753- if (!property_exists($obj, 'struct')) {
47954+ public static function from(stdClass $obj): StdSerializer {
47955+ if (!property_exists($obj, 'StdSerializer')) {
4775447956 throw new Exception("Missing required property");
4775547957 }
47756- return new Struct(
47757- Struct::fromStruct($obj->{'struct'})
47958+ return new StdSerializer(
47959+ StdSerializer::fromStdSerializer($obj->{'StdSerializer'})
4775847960 );
4775947961 }
4776047962
4776147963 /**
47762- * @return Struct
47964+ * @return StdSerializer
4776347965 */
47764- public static function sample(): Struct {
47765- return new Struct(
47766- Struct::sampleStruct()
47966+ public static function sample(): StdSerializer {
47967+ return new StdSerializer(
47968+ StdSerializer::sampleStdSerializer()
4776747969 );
4776847970 }
4776947971 }
4777047972
47771-// This is an autogenerated file:Subscript
47973+// This is an autogenerated file:Strictfp
4777247974
47773-class Subscript {
47774- private int $subscript; // json:subscript Required
47975+class Strictfp {
47976+ private int $strictfp; // json:strictfp Required
4777547977
4777647978 /**
47777- * @param int $subscript
47979+ * @param int $strictfp
4777847980 */
47779- public function __construct(int $subscript) {
47780- $this->subscript = $subscript;
47981+ public function __construct(int $strictfp) {
47982+ $this->strictfp = $strictfp;
4778147983 }
4778247984
4778347985 /**
@@ -47785,7 +47987,7 @@ class Subscript {
4778547987 * @throws Exception
4778647988 * @return int
4778747989 */
47788- public static function fromSubscript(int $value): int {
47990+ public static function fromStrictfp(int $value): int {
4778947991 return $value; /*int*/
4779047992 }
4779147993
@@ -47793,11 +47995,11 @@ class Subscript {
4779347995 * @throws Exception
4779447996 * @return int
4779547997 */
47796- public function toSubscript(): int {
47797- if (Subscript::validateSubscript($this->subscript)) {
47798- return $this->subscript; /*int*/
47998+ public function toStrictfp(): int {
47999+ if (Strictfp::validateStrictfp($this->strictfp)) {
48000+ return $this->strictfp; /*int*/
4779948001 }
47800- throw new Exception('never get to this Subscript::subscript');
48002+ throw new Exception('never get to this Strictfp::strictfp');
4780148003 }
4780248004
4780348005 /**
@@ -47805,7 +48007,7 @@ class Subscript {
4780548007 * @return bool
4780648008 * @throws Exception
4780748009 */
47808- public static function validateSubscript(int $value): bool {
48010+ public static function validateStrictfp(int $value): bool {
4780948011 return true;
4781048012 }
4781148013
@@ -47813,18 +48015,18 @@ class Subscript {
4781348015 * @throws Exception
4781448016 * @return int
4781548017 */
47816- public function getSubscript(): int {
47817- if (Subscript::validateSubscript($this->subscript)) {
47818- return $this->subscript;
48018+ public function getStrictfp(): int {
48019+ if (Strictfp::validateStrictfp($this->strictfp)) {
48020+ return $this->strictfp;
4781948021 }
47820- throw new Exception('never get to getSubscript Subscript::subscript');
48022+ throw new Exception('never get to getStrictfp Strictfp::strictfp');
4782148023 }
4782248024
4782348025 /**
4782448026 * @return int
4782548027 */
47826- public static function sampleSubscript(): int {
47827- return 31; /*31:subscript*/
48028+ public static function sampleStrictfp(): int {
48029+ return 31; /*31:strictfp*/
4782848030 }
4782948031
4783048032 /**
@@ -47832,7 +48034,7 @@ class Subscript {
4783248034 * @return bool
4783348035 */
4783448036 public function validate(): bool {
47835- return Subscript::validateSubscript($this->subscript);
48037+ return Strictfp::validateStrictfp($this->strictfp);
4783648038 }
4783748039
4783848040 /**
@@ -47841,44 +48043,44 @@ class Subscript {
4784148043 */
4784248044 public function to(): stdClass {
4784348045 $out = new stdClass();
47844- $out->{'subscript'} = $this->toSubscript();
48046+ $out->{'strictfp'} = $this->toStrictfp();
4784548047 return $out;
4784648048 }
4784748049
4784848050 /**
4784948051 * @param stdClass $obj
47850- * @return Subscript
48052+ * @return Strictfp
4785148053 * @throws Exception
4785248054 */
47853- public static function from(stdClass $obj): Subscript {
47854- if (!property_exists($obj, 'subscript')) {
48055+ public static function from(stdClass $obj): Strictfp {
48056+ if (!property_exists($obj, 'strictfp')) {
4785548057 throw new Exception("Missing required property");
4785648058 }
47857- return new Subscript(
47858- Subscript::fromSubscript($obj->{'subscript'})
48059+ return new Strictfp(
48060+ Strictfp::fromStrictfp($obj->{'strictfp'})
4785948061 );
4786048062 }
4786148063
4786248064 /**
47863- * @return Subscript
48065+ * @return Strictfp
4786448066 */
47865- public static function sample(): Subscript {
47866- return new Subscript(
47867- Subscript::sampleSubscript()
48067+ public static function sample(): Strictfp {
48068+ return new Strictfp(
48069+ Strictfp::sampleStrictfp()
4786848070 );
4786948071 }
4787048072 }
4787148073
47872-// This is an autogenerated file:Super
48074+// This is an autogenerated file:StringClass
4787348075
47874-class Super {
47875- private int $super; // json:super Required
48076+class StringClass {
48077+ private int $string; // json:string Required
4787648078
4787748079 /**
47878- * @param int $super
48080+ * @param int $string
4787948081 */
47880- public function __construct(int $super) {
47881- $this->super = $super;
48082+ public function __construct(int $string) {
48083+ $this->string = $string;
4788248084 }
4788348085
4788448086 /**
@@ -47886,7 +48088,7 @@ class Super {
4788648088 * @throws Exception
4788748089 * @return int
4788848090 */
47889- public static function fromSuper(int $value): int {
48091+ public static function fromString(int $value): int {
4789048092 return $value; /*int*/
4789148093 }
4789248094
@@ -47894,11 +48096,11 @@ class Super {
4789448096 * @throws Exception
4789548097 * @return int
4789648098 */
47897- public function toSuper(): int {
47898- if (Super::validateSuper($this->super)) {
47899- return $this->super; /*int*/
48099+ public function toString(): int {
48100+ if (StringClass::validateString($this->string)) {
48101+ return $this->string; /*int*/
4790048102 }
47901- throw new Exception('never get to this Super::super');
48103+ throw new Exception('never get to this StringClass::string');
4790248104 }
4790348105
4790448106 /**
@@ -47906,7 +48108,7 @@ class Super {
4790648108 * @return bool
4790748109 * @throws Exception
4790848110 */
47909- public static function validateSuper(int $value): bool {
48111+ public static function validateString(int $value): bool {
4791048112 return true;
4791148113 }
4791248114
@@ -47914,18 +48116,18 @@ class Super {
4791448116 * @throws Exception
4791548117 * @return int
4791648118 */
47917- public function getSuper(): int {
47918- if (Super::validateSuper($this->super)) {
47919- return $this->super;
48119+ public function getString(): int {
48120+ if (StringClass::validateString($this->string)) {
48121+ return $this->string;
4792048122 }
47921- throw new Exception('never get to getSuper Super::super');
48123+ throw new Exception('never get to getString StringClass::string');
4792248124 }
4792348125
4792448126 /**
4792548127 * @return int
4792648128 */
47927- public static function sampleSuper(): int {
47928- return 31; /*31:super*/
48129+ public static function sampleString(): int {
48130+ return 31; /*31:string*/
4792948131 }
4793048132
4793148133 /**
@@ -47933,7 +48135,7 @@ class Super {
4793348135 * @return bool
4793448136 */
4793548137 public function validate(): bool {
47936- return Super::validateSuper($this->super);
48138+ return StringClass::validateString($this->string);
4793748139 }
4793848140
4793948141 /**
@@ -47942,44 +48144,44 @@ class Super {
4794248144 */
4794348145 public function to(): stdClass {
4794448146 $out = new stdClass();
47945- $out->{'super'} = $this->toSuper();
48147+ $out->{'string'} = $this->toString();
4794648148 return $out;
4794748149 }
4794848150
4794948151 /**
4795048152 * @param stdClass $obj
47951- * @return Super
48153+ * @return StringClass
4795248154 * @throws Exception
4795348155 */
47954- public static function from(stdClass $obj): Super {
47955- if (!property_exists($obj, 'super')) {
48156+ public static function from(stdClass $obj): StringClass {
48157+ if (!property_exists($obj, 'string')) {
4795648158 throw new Exception("Missing required property");
4795748159 }
47958- return new Super(
47959- Super::fromSuper($obj->{'super'})
48160+ return new StringClass(
48161+ StringClass::fromString($obj->{'string'})
4796048162 );
4796148163 }
4796248164
4796348165 /**
47964- * @return Super
48166+ * @return StringClass
4796548167 */
47966- public static function sample(): Super {
47967- return new Super(
47968- Super::sampleSuper()
48168+ public static function sample(): StringClass {
48169+ return new StringClass(
48170+ StringClass::sampleString()
4796948171 );
4797048172 }
4797148173 }
4797248174
47973-// This is an autogenerated file:SwitchClass
48175+// This is an autogenerated file:Struct
4797448176
47975-class SwitchClass {
47976- private int $switch; // json:switch Required
48177+class Struct {
48178+ private int $struct; // json:struct Required
4797748179
4797848180 /**
47979- * @param int $switch
48181+ * @param int $struct
4798048182 */
47981- public function __construct(int $switch) {
47982- $this->switch = $switch;
48183+ public function __construct(int $struct) {
48184+ $this->struct = $struct;
4798348185 }
4798448186
4798548187 /**
@@ -47987,7 +48189,7 @@ class SwitchClass {
4798748189 * @throws Exception
4798848190 * @return int
4798948191 */
47990- public static function fromSwitch(int $value): int {
48192+ public static function fromStruct(int $value): int {
4799148193 return $value; /*int*/
4799248194 }
4799348195
@@ -47995,11 +48197,11 @@ class SwitchClass {
4799548197 * @throws Exception
4799648198 * @return int
4799748199 */
47998- public function toSwitch(): int {
47999- if (SwitchClass::validateSwitch($this->switch)) {
48000- return $this->switch; /*int*/
48200+ public function toStruct(): int {
48201+ if (Struct::validateStruct($this->struct)) {
48202+ return $this->struct; /*int*/
4800148203 }
48002- throw new Exception('never get to this SwitchClass::switch');
48204+ throw new Exception('never get to this Struct::struct');
4800348205 }
4800448206
4800548207 /**
@@ -48007,7 +48209,7 @@ class SwitchClass {
4800748209 * @return bool
4800848210 * @throws Exception
4800948211 */
48010- public static function validateSwitch(int $value): bool {
48212+ public static function validateStruct(int $value): bool {
4801148213 return true;
4801248214 }
4801348215
@@ -48015,18 +48217,18 @@ class SwitchClass {
4801548217 * @throws Exception
4801648218 * @return int
4801748219 */
48018- public function getSwitch(): int {
48019- if (SwitchClass::validateSwitch($this->switch)) {
48020- return $this->switch;
48220+ public function getStruct(): int {
48221+ if (Struct::validateStruct($this->struct)) {
48222+ return $this->struct;
4802148223 }
48022- throw new Exception('never get to getSwitch SwitchClass::switch');
48224+ throw new Exception('never get to getStruct Struct::struct');
4802348225 }
4802448226
4802548227 /**
4802648228 * @return int
4802748229 */
48028- public static function sampleSwitch(): int {
48029- return 31; /*31:switch*/
48230+ public static function sampleStruct(): int {
48231+ return 31; /*31:struct*/
4803048232 }
4803148233
4803248234 /**
@@ -48034,7 +48236,7 @@ class SwitchClass {
4803448236 * @return bool
4803548237 */
4803648238 public function validate(): bool {
48037- return SwitchClass::validateSwitch($this->switch);
48239+ return Struct::validateStruct($this->struct);
4803848240 }
4803948241
4804048242 /**
@@ -48043,44 +48245,44 @@ class SwitchClass {
4804348245 */
4804448246 public function to(): stdClass {
4804548247 $out = new stdClass();
48046- $out->{'switch'} = $this->toSwitch();
48248+ $out->{'struct'} = $this->toStruct();
4804748249 return $out;
4804848250 }
4804948251
4805048252 /**
4805148253 * @param stdClass $obj
48052- * @return SwitchClass
48254+ * @return Struct
4805348255 * @throws Exception
4805448256 */
48055- public static function from(stdClass $obj): SwitchClass {
48056- if (!property_exists($obj, 'switch')) {
48257+ public static function from(stdClass $obj): Struct {
48258+ if (!property_exists($obj, 'struct')) {
4805748259 throw new Exception("Missing required property");
4805848260 }
48059- return new SwitchClass(
48060- SwitchClass::fromSwitch($obj->{'switch'})
48261+ return new Struct(
48262+ Struct::fromStruct($obj->{'struct'})
4806148263 );
4806248264 }
4806348265
4806448266 /**
48065- * @return SwitchClass
48267+ * @return Struct
4806648268 */
48067- public static function sample(): SwitchClass {
48068- return new SwitchClass(
48069- SwitchClass::sampleSwitch()
48269+ public static function sample(): Struct {
48270+ return new Struct(
48271+ Struct::sampleStruct()
4807048272 );
4807148273 }
4807248274 }
4807348275
48074-// This is an autogenerated file:Symbol
48276+// This is an autogenerated file:Subscript
4807548277
48076-class Symbol {
48077- private int $symbol; // json:symbol Required
48278+class Subscript {
48279+ private int $subscript; // json:subscript Required
4807848280
4807948281 /**
48080- * @param int $symbol
48282+ * @param int $subscript
4808148283 */
48082- public function __construct(int $symbol) {
48083- $this->symbol = $symbol;
48284+ public function __construct(int $subscript) {
48285+ $this->subscript = $subscript;
4808448286 }
4808548287
4808648288 /**
@@ -48088,7 +48290,7 @@ class Symbol {
4808848290 * @throws Exception
4808948291 * @return int
4809048292 */
48091- public static function fromSymbol(int $value): int {
48293+ public static function fromSubscript(int $value): int {
4809248294 return $value; /*int*/
4809348295 }
4809448296
@@ -48096,11 +48298,11 @@ class Symbol {
4809648298 * @throws Exception
4809748299 * @return int
4809848300 */
48099- public function toSymbol(): int {
48100- if (Symbol::validateSymbol($this->symbol)) {
48101- return $this->symbol; /*int*/
48301+ public function toSubscript(): int {
48302+ if (Subscript::validateSubscript($this->subscript)) {
48303+ return $this->subscript; /*int*/
4810248304 }
48103- throw new Exception('never get to this Symbol::symbol');
48305+ throw new Exception('never get to this Subscript::subscript');
4810448306 }
4810548307
4810648308 /**
@@ -48108,7 +48310,7 @@ class Symbol {
4810848310 * @return bool
4810948311 * @throws Exception
4811048312 */
48111- public static function validateSymbol(int $value): bool {
48313+ public static function validateSubscript(int $value): bool {
4811248314 return true;
4811348315 }
4811448316
@@ -48116,18 +48318,18 @@ class Symbol {
4811648318 * @throws Exception
4811748319 * @return int
4811848320 */
48119- public function getSymbol(): int {
48120- if (Symbol::validateSymbol($this->symbol)) {
48121- return $this->symbol;
48321+ public function getSubscript(): int {
48322+ if (Subscript::validateSubscript($this->subscript)) {
48323+ return $this->subscript;
4812248324 }
48123- throw new Exception('never get to getSymbol Symbol::symbol');
48325+ throw new Exception('never get to getSubscript Subscript::subscript');
4812448326 }
4812548327
4812648328 /**
4812748329 * @return int
4812848330 */
48129- public static function sampleSymbol(): int {
48130- return 31; /*31:symbol*/
48331+ public static function sampleSubscript(): int {
48332+ return 31; /*31:subscript*/
4813148333 }
4813248334
4813348335 /**
@@ -48135,7 +48337,7 @@ class Symbol {
4813548337 * @return bool
4813648338 */
4813748339 public function validate(): bool {
48138- return Symbol::validateSymbol($this->symbol);
48340+ return Subscript::validateSubscript($this->subscript);
4813948341 }
4814048342
4814148343 /**
@@ -48144,44 +48346,44 @@ class Symbol {
4814448346 */
4814548347 public function to(): stdClass {
4814648348 $out = new stdClass();
48147- $out->{'symbol'} = $this->toSymbol();
48349+ $out->{'subscript'} = $this->toSubscript();
4814848350 return $out;
4814948351 }
4815048352
4815148353 /**
4815248354 * @param stdClass $obj
48153- * @return Symbol
48355+ * @return Subscript
4815448356 * @throws Exception
4815548357 */
48156- public static function from(stdClass $obj): Symbol {
48157- if (!property_exists($obj, 'symbol')) {
48358+ public static function from(stdClass $obj): Subscript {
48359+ if (!property_exists($obj, 'subscript')) {
4815848360 throw new Exception("Missing required property");
4815948361 }
48160- return new Symbol(
48161- Symbol::fromSymbol($obj->{'symbol'})
48362+ return new Subscript(
48363+ Subscript::fromSubscript($obj->{'subscript'})
4816248364 );
4816348365 }
4816448366
4816548367 /**
48166- * @return Symbol
48368+ * @return Subscript
4816748369 */
48168- public static function sample(): Symbol {
48169- return new Symbol(
48170- Symbol::sampleSymbol()
48370+ public static function sample(): Subscript {
48371+ return new Subscript(
48372+ Subscript::sampleSubscript()
4817148373 );
4817248374 }
4817348375 }
4817448376
48175-// This is an autogenerated file:Synchronized
48377+// This is an autogenerated file:Super
4817648378
48177-class Synchronized {
48178- private int $synchronized; // json:synchronized Required
48379+class Super {
48380+ private int $super; // json:super Required
4817948381
4818048382 /**
48181- * @param int $synchronized
48383+ * @param int $super
4818248384 */
48183- public function __construct(int $synchronized) {
48184- $this->synchronized = $synchronized;
48385+ public function __construct(int $super) {
48386+ $this->super = $super;
4818548387 }
4818648388
4818748389 /**
@@ -48189,7 +48391,7 @@ class Synchronized {
4818948391 * @throws Exception
4819048392 * @return int
4819148393 */
48192- public static function fromSynchronized(int $value): int {
48394+ public static function fromSuper(int $value): int {
4819348395 return $value; /*int*/
4819448396 }
4819548397
@@ -48197,11 +48399,11 @@ class Synchronized {
4819748399 * @throws Exception
4819848400 * @return int
4819948401 */
48200- public function toSynchronized(): int {
48201- if (Synchronized::validateSynchronized($this->synchronized)) {
48202- return $this->synchronized; /*int*/
48402+ public function toSuper(): int {
48403+ if (Super::validateSuper($this->super)) {
48404+ return $this->super; /*int*/
4820348405 }
48204- throw new Exception('never get to this Synchronized::synchronized');
48406+ throw new Exception('never get to this Super::super');
4820548407 }
4820648408
4820748409 /**
@@ -48209,7 +48411,7 @@ class Synchronized {
4820948411 * @return bool
4821048412 * @throws Exception
4821148413 */
48212- public static function validateSynchronized(int $value): bool {
48414+ public static function validateSuper(int $value): bool {
4821348415 return true;
4821448416 }
4821548417
@@ -48217,18 +48419,18 @@ class Synchronized {
4821748419 * @throws Exception
4821848420 * @return int
4821948421 */
48220- public function getSynchronized(): int {
48221- if (Synchronized::validateSynchronized($this->synchronized)) {
48222- return $this->synchronized;
48422+ public function getSuper(): int {
48423+ if (Super::validateSuper($this->super)) {
48424+ return $this->super;
4822348425 }
48224- throw new Exception('never get to getSynchronized Synchronized::synchronized');
48426+ throw new Exception('never get to getSuper Super::super');
4822548427 }
4822648428
4822748429 /**
4822848430 * @return int
4822948431 */
48230- public static function sampleSynchronized(): int {
48231- return 31; /*31:synchronized*/
48432+ public static function sampleSuper(): int {
48433+ return 31; /*31:super*/
4823248434 }
4823348435
4823448436 /**
@@ -48236,7 +48438,7 @@ class Synchronized {
4823648438 * @return bool
4823748439 */
4823848440 public function validate(): bool {
48239- return Synchronized::validateSynchronized($this->synchronized);
48441+ return Super::validateSuper($this->super);
4824048442 }
4824148443
4824248444 /**
@@ -48245,44 +48447,44 @@ class Synchronized {
4824548447 */
4824648448 public function to(): stdClass {
4824748449 $out = new stdClass();
48248- $out->{'synchronized'} = $this->toSynchronized();
48450+ $out->{'super'} = $this->toSuper();
4824948451 return $out;
4825048452 }
4825148453
4825248454 /**
4825348455 * @param stdClass $obj
48254- * @return Synchronized
48456+ * @return Super
4825548457 * @throws Exception
4825648458 */
48257- public static function from(stdClass $obj): Synchronized {
48258- if (!property_exists($obj, 'synchronized')) {
48459+ public static function from(stdClass $obj): Super {
48460+ if (!property_exists($obj, 'super')) {
4825948461 throw new Exception("Missing required property");
4826048462 }
48261- return new Synchronized(
48262- Synchronized::fromSynchronized($obj->{'synchronized'})
48463+ return new Super(
48464+ Super::fromSuper($obj->{'super'})
4826348465 );
4826448466 }
4826548467
4826648468 /**
48267- * @return Synchronized
48469+ * @return Super
4826848470 */
48269- public static function sample(): Synchronized {
48270- return new Synchronized(
48271- Synchronized::sampleSynchronized()
48471+ public static function sample(): Super {
48472+ return new Super(
48473+ Super::sampleSuper()
4827248474 );
4827348475 }
4827448476 }
4827548477
48276-// This is an autogenerated file:System
48478+// This is an autogenerated file:SwitchClass
4827748479
48278-class System {
48279- private int $system; // json:system Required
48480+class SwitchClass {
48481+ private int $switch; // json:switch Required
4828048482
4828148483 /**
48282- * @param int $system
48484+ * @param int $switch
4828348485 */
48284- public function __construct(int $system) {
48285- $this->system = $system;
48486+ public function __construct(int $switch) {
48487+ $this->switch = $switch;
4828648488 }
4828748489
4828848490 /**
@@ -48290,7 +48492,7 @@ class System {
4829048492 * @throws Exception
4829148493 * @return int
4829248494 */
48293- public static function fromSystem(int $value): int {
48495+ public static function fromSwitch(int $value): int {
4829448496 return $value; /*int*/
4829548497 }
4829648498
@@ -48298,11 +48500,11 @@ class System {
4829848500 * @throws Exception
4829948501 * @return int
4830048502 */
48301- public function toSystem(): int {
48302- if (System::validateSystem($this->system)) {
48303- return $this->system; /*int*/
48503+ public function toSwitch(): int {
48504+ if (SwitchClass::validateSwitch($this->switch)) {
48505+ return $this->switch; /*int*/
4830448506 }
48305- throw new Exception('never get to this System::system');
48507+ throw new Exception('never get to this SwitchClass::switch');
4830648508 }
4830748509
4830848510 /**
@@ -48310,7 +48512,7 @@ class System {
4831048512 * @return bool
4831148513 * @throws Exception
4831248514 */
48313- public static function validateSystem(int $value): bool {
48515+ public static function validateSwitch(int $value): bool {
4831448516 return true;
4831548517 }
4831648518
@@ -48318,18 +48520,18 @@ class System {
4831848520 * @throws Exception
4831948521 * @return int
4832048522 */
48321- public function getSystem(): int {
48322- if (System::validateSystem($this->system)) {
48323- return $this->system;
48523+ public function getSwitch(): int {
48524+ if (SwitchClass::validateSwitch($this->switch)) {
48525+ return $this->switch;
4832448526 }
48325- throw new Exception('never get to getSystem System::system');
48527+ throw new Exception('never get to getSwitch SwitchClass::switch');
4832648528 }
4832748529
4832848530 /**
4832948531 * @return int
4833048532 */
48331- public static function sampleSystem(): int {
48332- return 31; /*31:system*/
48533+ public static function sampleSwitch(): int {
48534+ return 31; /*31:switch*/
4833348535 }
4833448536
4833548537 /**
@@ -48337,7 +48539,7 @@ class System {
4833748539 * @return bool
4833848540 */
4833948541 public function validate(): bool {
48340- return System::validateSystem($this->system);
48542+ return SwitchClass::validateSwitch($this->switch);
4834148543 }
4834248544
4834348545 /**
@@ -48346,44 +48548,44 @@ class System {
4834648548 */
4834748549 public function to(): stdClass {
4834848550 $out = new stdClass();
48349- $out->{'system'} = $this->toSystem();
48551+ $out->{'switch'} = $this->toSwitch();
4835048552 return $out;
4835148553 }
4835248554
4835348555 /**
4835448556 * @param stdClass $obj
48355- * @return System
48557+ * @return SwitchClass
4835648558 * @throws Exception
4835748559 */
48358- public static function from(stdClass $obj): System {
48359- if (!property_exists($obj, 'system')) {
48560+ public static function from(stdClass $obj): SwitchClass {
48561+ if (!property_exists($obj, 'switch')) {
4836048562 throw new Exception("Missing required property");
4836148563 }
48362- return new System(
48363- System::fromSystem($obj->{'system'})
48564+ return new SwitchClass(
48565+ SwitchClass::fromSwitch($obj->{'switch'})
4836448566 );
4836548567 }
4836648568
4836748569 /**
48368- * @return System
48570+ * @return SwitchClass
4836948571 */
48370- public static function sample(): System {
48371- return new System(
48372- System::sampleSystem()
48572+ public static function sample(): SwitchClass {
48573+ return new SwitchClass(
48574+ SwitchClass::sampleSwitch()
4837348575 );
4837448576 }
4837548577 }
4837648578
48377-// This is an autogenerated file:Template
48579+// This is an autogenerated file:Symbol
4837848580
48379-class Template {
48380- private int $template; // json:template Required
48581+class Symbol {
48582+ private int $symbol; // json:symbol Required
4838148583
4838248584 /**
48383- * @param int $template
48585+ * @param int $symbol
4838448586 */
48385- public function __construct(int $template) {
48386- $this->template = $template;
48587+ public function __construct(int $symbol) {
48588+ $this->symbol = $symbol;
4838748589 }
4838848590
4838948591 /**
@@ -48391,7 +48593,7 @@ class Template {
4839148593 * @throws Exception
4839248594 * @return int
4839348595 */
48394- public static function fromTemplate(int $value): int {
48596+ public static function fromSymbol(int $value): int {
4839548597 return $value; /*int*/
4839648598 }
4839748599
@@ -48399,11 +48601,11 @@ class Template {
4839948601 * @throws Exception
4840048602 * @return int
4840148603 */
48402- public function toTemplate(): int {
48403- if (Template::validateTemplate($this->template)) {
48404- return $this->template; /*int*/
48604+ public function toSymbol(): int {
48605+ if (Symbol::validateSymbol($this->symbol)) {
48606+ return $this->symbol; /*int*/
4840548607 }
48406- throw new Exception('never get to this Template::template');
48608+ throw new Exception('never get to this Symbol::symbol');
4840748609 }
4840848610
4840948611 /**
@@ -48411,7 +48613,7 @@ class Template {
4841148613 * @return bool
4841248614 * @throws Exception
4841348615 */
48414- public static function validateTemplate(int $value): bool {
48616+ public static function validateSymbol(int $value): bool {
4841548617 return true;
4841648618 }
4841748619
@@ -48419,18 +48621,18 @@ class Template {
4841948621 * @throws Exception
4842048622 * @return int
4842148623 */
48422- public function getTemplate(): int {
48423- if (Template::validateTemplate($this->template)) {
48424- return $this->template;
48624+ public function getSymbol(): int {
48625+ if (Symbol::validateSymbol($this->symbol)) {
48626+ return $this->symbol;
4842548627 }
48426- throw new Exception('never get to getTemplate Template::template');
48628+ throw new Exception('never get to getSymbol Symbol::symbol');
4842748629 }
4842848630
4842948631 /**
4843048632 * @return int
4843148633 */
48432- public static function sampleTemplate(): int {
48433- return 31; /*31:template*/
48634+ public static function sampleSymbol(): int {
48635+ return 31; /*31:symbol*/
4843448636 }
4843548637
4843648638 /**
@@ -48438,7 +48640,7 @@ class Template {
4843848640 * @return bool
4843948641 */
4844048642 public function validate(): bool {
48441- return Template::validateTemplate($this->template);
48643+ return Symbol::validateSymbol($this->symbol);
4844248644 }
4844348645
4844448646 /**
@@ -48447,44 +48649,44 @@ class Template {
4844748649 */
4844848650 public function to(): stdClass {
4844948651 $out = new stdClass();
48450- $out->{'template'} = $this->toTemplate();
48652+ $out->{'symbol'} = $this->toSymbol();
4845148653 return $out;
4845248654 }
4845348655
4845448656 /**
4845548657 * @param stdClass $obj
48456- * @return Template
48658+ * @return Symbol
4845748659 * @throws Exception
4845848660 */
48459- public static function from(stdClass $obj): Template {
48460- if (!property_exists($obj, 'template')) {
48661+ public static function from(stdClass $obj): Symbol {
48662+ if (!property_exists($obj, 'symbol')) {
4846148663 throw new Exception("Missing required property");
4846248664 }
48463- return new Template(
48464- Template::fromTemplate($obj->{'template'})
48665+ return new Symbol(
48666+ Symbol::fromSymbol($obj->{'symbol'})
4846548667 );
4846648668 }
4846748669
4846848670 /**
48469- * @return Template
48671+ * @return Symbol
4847048672 */
48471- public static function sample(): Template {
48472- return new Template(
48473- Template::sampleTemplate()
48673+ public static function sample(): Symbol {
48674+ return new Symbol(
48675+ Symbol::sampleSymbol()
4847448676 );
4847548677 }
4847648678 }
4847748679
48478-// This is an autogenerated file:Then
48680+// This is an autogenerated file:Synchronized
4847948681
48480-class Then {
48481- private int $then; // json:then Required
48682+class Synchronized {
48683+ private int $synchronized; // json:synchronized Required
4848248684
4848348685 /**
48484- * @param int $then
48686+ * @param int $synchronized
4848548687 */
48486- public function __construct(int $then) {
48487- $this->then = $then;
48688+ public function __construct(int $synchronized) {
48689+ $this->synchronized = $synchronized;
4848848690 }
4848948691
4849048692 /**
@@ -48492,7 +48694,7 @@ class Then {
4849248694 * @throws Exception
4849348695 * @return int
4849448696 */
48495- public static function fromThen(int $value): int {
48697+ public static function fromSynchronized(int $value): int {
4849648698 return $value; /*int*/
4849748699 }
4849848700
@@ -48500,11 +48702,11 @@ class Then {
4850048702 * @throws Exception
4850148703 * @return int
4850248704 */
48503- public function toThen(): int {
48504- if (Then::validateThen($this->then)) {
48505- return $this->then; /*int*/
48705+ public function toSynchronized(): int {
48706+ if (Synchronized::validateSynchronized($this->synchronized)) {
48707+ return $this->synchronized; /*int*/
4850648708 }
48507- throw new Exception('never get to this Then::then');
48709+ throw new Exception('never get to this Synchronized::synchronized');
4850848710 }
4850948711
4851048712 /**
@@ -48512,7 +48714,7 @@ class Then {
4851248714 * @return bool
4851348715 * @throws Exception
4851448716 */
48515- public static function validateThen(int $value): bool {
48717+ public static function validateSynchronized(int $value): bool {
4851648718 return true;
4851748719 }
4851848720
@@ -48520,18 +48722,18 @@ class Then {
4852048722 * @throws Exception
4852148723 * @return int
4852248724 */
48523- public function getThen(): int {
48524- if (Then::validateThen($this->then)) {
48525- return $this->then;
48725+ public function getSynchronized(): int {
48726+ if (Synchronized::validateSynchronized($this->synchronized)) {
48727+ return $this->synchronized;
4852648728 }
48527- throw new Exception('never get to getThen Then::then');
48729+ throw new Exception('never get to getSynchronized Synchronized::synchronized');
4852848730 }
4852948731
4853048732 /**
4853148733 * @return int
4853248734 */
48533- public static function sampleThen(): int {
48534- return 31; /*31:then*/
48735+ public static function sampleSynchronized(): int {
48736+ return 31; /*31:synchronized*/
4853548737 }
4853648738
4853748739 /**
@@ -48539,7 +48741,7 @@ class Then {
4853948741 * @return bool
4854048742 */
4854148743 public function validate(): bool {
48542- return Then::validateThen($this->then);
48744+ return Synchronized::validateSynchronized($this->synchronized);
4854348745 }
4854448746
4854548747 /**
@@ -48548,44 +48750,44 @@ class Then {
4854848750 */
4854948751 public function to(): stdClass {
4855048752 $out = new stdClass();
48551- $out->{'then'} = $this->toThen();
48753+ $out->{'synchronized'} = $this->toSynchronized();
4855248754 return $out;
4855348755 }
4855448756
4855548757 /**
4855648758 * @param stdClass $obj
48557- * @return Then
48759+ * @return Synchronized
4855848760 * @throws Exception
4855948761 */
48560- public static function from(stdClass $obj): Then {
48561- if (!property_exists($obj, 'then')) {
48762+ public static function from(stdClass $obj): Synchronized {
48763+ if (!property_exists($obj, 'synchronized')) {
4856248764 throw new Exception("Missing required property");
4856348765 }
48564- return new Then(
48565- Then::fromThen($obj->{'then'})
48766+ return new Synchronized(
48767+ Synchronized::fromSynchronized($obj->{'synchronized'})
4856648768 );
4856748769 }
4856848770
4856948771 /**
48570- * @return Then
48772+ * @return Synchronized
4857148773 */
48572- public static function sample(): Then {
48573- return new Then(
48574- Then::sampleThen()
48774+ public static function sample(): Synchronized {
48775+ return new Synchronized(
48776+ Synchronized::sampleSynchronized()
4857548777 );
4857648778 }
4857748779 }
4857848780
48579-// This is an autogenerated file:ThreadLocal
48781+// This is an autogenerated file:System
4858048782
48581-class ThreadLocal {
48582- private int $threadLocal; // json:thread_local Required
48783+class System {
48784+ private int $system; // json:system Required
4858348785
4858448786 /**
48585- * @param int $threadLocal
48787+ * @param int $system
4858648788 */
48587- public function __construct(int $threadLocal) {
48588- $this->threadLocal = $threadLocal;
48789+ public function __construct(int $system) {
48790+ $this->system = $system;
4858948791 }
4859048792
4859148793 /**
@@ -48593,7 +48795,7 @@ class ThreadLocal {
4859348795 * @throws Exception
4859448796 * @return int
4859548797 */
48596- public static function fromThreadLocal(int $value): int {
48798+ public static function fromSystem(int $value): int {
4859748799 return $value; /*int*/
4859848800 }
4859948801
@@ -48601,11 +48803,11 @@ class ThreadLocal {
4860148803 * @throws Exception
4860248804 * @return int
4860348805 */
48604- public function toThreadLocal(): int {
48605- if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
48606- return $this->threadLocal; /*int*/
48806+ public function toSystem(): int {
48807+ if (System::validateSystem($this->system)) {
48808+ return $this->system; /*int*/
4860748809 }
48608- throw new Exception('never get to this ThreadLocal::threadLocal');
48810+ throw new Exception('never get to this System::system');
4860948811 }
4861048812
4861148813 /**
@@ -48613,7 +48815,7 @@ class ThreadLocal {
4861348815 * @return bool
4861448816 * @throws Exception
4861548817 */
48616- public static function validateThreadLocal(int $value): bool {
48818+ public static function validateSystem(int $value): bool {
4861748819 return true;
4861848820 }
4861948821
@@ -48621,18 +48823,18 @@ class ThreadLocal {
4862148823 * @throws Exception
4862248824 * @return int
4862348825 */
48624- public function getThreadLocal(): int {
48625- if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
48626- return $this->threadLocal;
48826+ public function getSystem(): int {
48827+ if (System::validateSystem($this->system)) {
48828+ return $this->system;
4862748829 }
48628- throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal');
48830+ throw new Exception('never get to getSystem System::system');
4862948831 }
4863048832
4863148833 /**
4863248834 * @return int
4863348835 */
48634- public static function sampleThreadLocal(): int {
48635- return 31; /*31:threadLocal*/
48836+ public static function sampleSystem(): int {
48837+ return 31; /*31:system*/
4863648838 }
4863748839
4863848840 /**
@@ -48640,7 +48842,7 @@ class ThreadLocal {
4864048842 * @return bool
4864148843 */
4864248844 public function validate(): bool {
48643- return ThreadLocal::validateThreadLocal($this->threadLocal);
48845+ return System::validateSystem($this->system);
4864448846 }
4864548847
4864648848 /**
@@ -48649,44 +48851,44 @@ class ThreadLocal {
4864948851 */
4865048852 public function to(): stdClass {
4865148853 $out = new stdClass();
48652- $out->{'thread_local'} = $this->toThreadLocal();
48854+ $out->{'system'} = $this->toSystem();
4865348855 return $out;
4865448856 }
4865548857
4865648858 /**
4865748859 * @param stdClass $obj
48658- * @return ThreadLocal
48860+ * @return System
4865948861 * @throws Exception
4866048862 */
48661- public static function from(stdClass $obj): ThreadLocal {
48662- if (!property_exists($obj, 'thread_local')) {
48863+ public static function from(stdClass $obj): System {
48864+ if (!property_exists($obj, 'system')) {
4866348865 throw new Exception("Missing required property");
4866448866 }
48665- return new ThreadLocal(
48666- ThreadLocal::fromThreadLocal($obj->{'thread_local'})
48867+ return new System(
48868+ System::fromSystem($obj->{'system'})
4866748869 );
4866848870 }
4866948871
4867048872 /**
48671- * @return ThreadLocal
48873+ * @return System
4867248874 */
48673- public static function sample(): ThreadLocal {
48674- return new ThreadLocal(
48675- ThreadLocal::sampleThreadLocal()
48875+ public static function sample(): System {
48876+ return new System(
48877+ System::sampleSystem()
4867648878 );
4867748879 }
4867848880 }
4867948881
48680-// This is an autogenerated file:ThrowClass
48882+// This is an autogenerated file:Template
4868148883
48682-class ThrowClass {
48683- private int $throw; // json:throw Required
48884+class Template {
48885+ private int $template; // json:template Required
4868448886
4868548887 /**
48686- * @param int $throw
48888+ * @param int $template
4868748889 */
48688- public function __construct(int $throw) {
48689- $this->throw = $throw;
48890+ public function __construct(int $template) {
48891+ $this->template = $template;
4869048892 }
4869148893
4869248894 /**
@@ -48694,7 +48896,7 @@ class ThrowClass {
4869448896 * @throws Exception
4869548897 * @return int
4869648898 */
48697- public static function fromThrow(int $value): int {
48899+ public static function fromTemplate(int $value): int {
4869848900 return $value; /*int*/
4869948901 }
4870048902
@@ -48702,11 +48904,11 @@ class ThrowClass {
4870248904 * @throws Exception
4870348905 * @return int
4870448906 */
48705- public function toThrow(): int {
48706- if (ThrowClass::validateThrow($this->throw)) {
48707- return $this->throw; /*int*/
48907+ public function toTemplate(): int {
48908+ if (Template::validateTemplate($this->template)) {
48909+ return $this->template; /*int*/
4870848910 }
48709- throw new Exception('never get to this ThrowClass::throw');
48911+ throw new Exception('never get to this Template::template');
4871048912 }
4871148913
4871248914 /**
@@ -48714,7 +48916,7 @@ class ThrowClass {
4871448916 * @return bool
4871548917 * @throws Exception
4871648918 */
48717- public static function validateThrow(int $value): bool {
48919+ public static function validateTemplate(int $value): bool {
4871848920 return true;
4871948921 }
4872048922
@@ -48722,18 +48924,18 @@ class ThrowClass {
4872248924 * @throws Exception
4872348925 * @return int
4872448926 */
48725- public function getThrow(): int {
48726- if (ThrowClass::validateThrow($this->throw)) {
48727- return $this->throw;
48927+ public function getTemplate(): int {
48928+ if (Template::validateTemplate($this->template)) {
48929+ return $this->template;
4872848930 }
48729- throw new Exception('never get to getThrow ThrowClass::throw');
48931+ throw new Exception('never get to getTemplate Template::template');
4873048932 }
4873148933
4873248934 /**
4873348935 * @return int
4873448936 */
48735- public static function sampleThrow(): int {
48736- return 31; /*31:throw*/
48937+ public static function sampleTemplate(): int {
48938+ return 31; /*31:template*/
4873748939 }
4873848940
4873948941 /**
@@ -48741,7 +48943,7 @@ class ThrowClass {
4874148943 * @return bool
4874248944 */
4874348945 public function validate(): bool {
48744- return ThrowClass::validateThrow($this->throw);
48946+ return Template::validateTemplate($this->template);
4874548947 }
4874648948
4874748949 /**
@@ -48750,44 +48952,44 @@ class ThrowClass {
4875048952 */
4875148953 public function to(): stdClass {
4875248954 $out = new stdClass();
48753- $out->{'throw'} = $this->toThrow();
48955+ $out->{'template'} = $this->toTemplate();
4875448956 return $out;
4875548957 }
4875648958
4875748959 /**
4875848960 * @param stdClass $obj
48759- * @return ThrowClass
48961+ * @return Template
4876048962 * @throws Exception
4876148963 */
48762- public static function from(stdClass $obj): ThrowClass {
48763- if (!property_exists($obj, 'throw')) {
48964+ public static function from(stdClass $obj): Template {
48965+ if (!property_exists($obj, 'template')) {
4876448966 throw new Exception("Missing required property");
4876548967 }
48766- return new ThrowClass(
48767- ThrowClass::fromThrow($obj->{'throw'})
48968+ return new Template(
48969+ Template::fromTemplate($obj->{'template'})
4876848970 );
4876948971 }
4877048972
4877148973 /**
48772- * @return ThrowClass
48974+ * @return Template
4877348975 */
48774- public static function sample(): ThrowClass {
48775- return new ThrowClass(
48776- ThrowClass::sampleThrow()
48976+ public static function sample(): Template {
48977+ return new Template(
48978+ Template::sampleTemplate()
4877748979 );
4877848980 }
4877948981 }
4878048982
48781-// This is an autogenerated file:Throws
48983+// This is an autogenerated file:Then
4878248984
48783-class Throws {
48784- private int $throws; // json:throws Required
48985+class Then {
48986+ private int $then; // json:then Required
4878548987
4878648988 /**
48787- * @param int $throws
48989+ * @param int $then
4878848990 */
48789- public function __construct(int $throws) {
48790- $this->throws = $throws;
48991+ public function __construct(int $then) {
48992+ $this->then = $then;
4879148993 }
4879248994
4879348995 /**
@@ -48795,7 +48997,7 @@ class Throws {
4879548997 * @throws Exception
4879648998 * @return int
4879748999 */
48798- public static function fromThrows(int $value): int {
49000+ public static function fromThen(int $value): int {
4879949001 return $value; /*int*/
4880049002 }
4880149003
@@ -48803,11 +49005,11 @@ class Throws {
4880349005 * @throws Exception
4880449006 * @return int
4880549007 */
48806- public function toThrows(): int {
48807- if (Throws::validateThrows($this->throws)) {
48808- return $this->throws; /*int*/
49008+ public function toThen(): int {
49009+ if (Then::validateThen($this->then)) {
49010+ return $this->then; /*int*/
4880949011 }
48810- throw new Exception('never get to this Throws::throws');
49012+ throw new Exception('never get to this Then::then');
4881149013 }
4881249014
4881349015 /**
@@ -48815,7 +49017,7 @@ class Throws {
4881549017 * @return bool
4881649018 * @throws Exception
4881749019 */
48818- public static function validateThrows(int $value): bool {
49020+ public static function validateThen(int $value): bool {
4881949021 return true;
4882049022 }
4882149023
@@ -48823,18 +49025,18 @@ class Throws {
4882349025 * @throws Exception
4882449026 * @return int
4882549027 */
48826- public function getThrows(): int {
48827- if (Throws::validateThrows($this->throws)) {
48828- return $this->throws;
49028+ public function getThen(): int {
49029+ if (Then::validateThen($this->then)) {
49030+ return $this->then;
4882949031 }
48830- throw new Exception('never get to getThrows Throws::throws');
49032+ throw new Exception('never get to getThen Then::then');
4883149033 }
4883249034
4883349035 /**
4883449036 * @return int
4883549037 */
48836- public static function sampleThrows(): int {
48837- return 31; /*31:throws*/
49038+ public static function sampleThen(): int {
49039+ return 31; /*31:then*/
4883849040 }
4883949041
4884049042 /**
@@ -48842,7 +49044,7 @@ class Throws {
4884249044 * @return bool
4884349045 */
4884449046 public function validate(): bool {
48845- return Throws::validateThrows($this->throws);
49047+ return Then::validateThen($this->then);
4884649048 }
4884749049
4884849050 /**
@@ -48851,44 +49053,44 @@ class Throws {
4885149053 */
4885249054 public function to(): stdClass {
4885349055 $out = new stdClass();
48854- $out->{'throws'} = $this->toThrows();
49056+ $out->{'then'} = $this->toThen();
4885549057 return $out;
4885649058 }
4885749059
4885849060 /**
4885949061 * @param stdClass $obj
48860- * @return Throws
49062+ * @return Then
4886149063 * @throws Exception
4886249064 */
48863- public static function from(stdClass $obj): Throws {
48864- if (!property_exists($obj, 'throws')) {
49065+ public static function from(stdClass $obj): Then {
49066+ if (!property_exists($obj, 'then')) {
4886549067 throw new Exception("Missing required property");
4886649068 }
48867- return new Throws(
48868- Throws::fromThrows($obj->{'throws'})
49069+ return new Then(
49070+ Then::fromThen($obj->{'then'})
4886949071 );
4887049072 }
4887149073
4887249074 /**
48873- * @return Throws
49075+ * @return Then
4887449076 */
48875- public static function sample(): Throws {
48876- return new Throws(
48877- Throws::sampleThrows()
49077+ public static function sample(): Then {
49078+ return new Then(
49079+ Then::sampleThen()
4887849080 );
4887949081 }
4888049082 }
4888149083
48882-// This is an autogenerated file:TimeOnly
49084+// This is an autogenerated file:ThreadLocal
4888349085
48884-class TimeOnly {
48885- private int $timeOnly; // json:TimeOnly Required
49086+class ThreadLocal {
49087+ private int $threadLocal; // json:thread_local Required
4888649088
4888749089 /**
48888- * @param int $timeOnly
49090+ * @param int $threadLocal
4888949091 */
48890- public function __construct(int $timeOnly) {
48891- $this->timeOnly = $timeOnly;
49092+ public function __construct(int $threadLocal) {
49093+ $this->threadLocal = $threadLocal;
4889249094 }
4889349095
4889449096 /**
@@ -48896,7 +49098,7 @@ class TimeOnly {
4889649098 * @throws Exception
4889749099 * @return int
4889849100 */
48899- public static function fromTimeOnly(int $value): int {
49101+ public static function fromThreadLocal(int $value): int {
4890049102 return $value; /*int*/
4890149103 }
4890249104
@@ -48904,11 +49106,11 @@ class TimeOnly {
4890449106 * @throws Exception
4890549107 * @return int
4890649108 */
48907- public function toTimeOnly(): int {
48908- if (TimeOnly::validateTimeOnly($this->timeOnly)) {
48909- return $this->timeOnly; /*int*/
49109+ public function toThreadLocal(): int {
49110+ if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49111+ return $this->threadLocal; /*int*/
4891049112 }
48911- throw new Exception('never get to this TimeOnly::timeOnly');
49113+ throw new Exception('never get to this ThreadLocal::threadLocal');
4891249114 }
4891349115
4891449116 /**
@@ -48916,7 +49118,7 @@ class TimeOnly {
4891649118 * @return bool
4891749119 * @throws Exception
4891849120 */
48919- public static function validateTimeOnly(int $value): bool {
49121+ public static function validateThreadLocal(int $value): bool {
4892049122 return true;
4892149123 }
4892249124
@@ -48924,18 +49126,18 @@ class TimeOnly {
4892449126 * @throws Exception
4892549127 * @return int
4892649128 */
48927- public function getTimeOnly(): int {
48928- if (TimeOnly::validateTimeOnly($this->timeOnly)) {
48929- return $this->timeOnly;
49129+ public function getThreadLocal(): int {
49130+ if (ThreadLocal::validateThreadLocal($this->threadLocal)) {
49131+ return $this->threadLocal;
4893049132 }
48931- throw new Exception('never get to getTimeOnly TimeOnly::timeOnly');
49133+ throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal');
4893249134 }
4893349135
4893449136 /**
4893549137 * @return int
4893649138 */
48937- public static function sampleTimeOnly(): int {
48938- return 31; /*31:timeOnly*/
49139+ public static function sampleThreadLocal(): int {
49140+ return 31; /*31:threadLocal*/
4893949141 }
4894049142
4894149143 /**
@@ -48943,7 +49145,7 @@ class TimeOnly {
4894349145 * @return bool
4894449146 */
4894549147 public function validate(): bool {
48946- return TimeOnly::validateTimeOnly($this->timeOnly);
49148+ return ThreadLocal::validateThreadLocal($this->threadLocal);
4894749149 }
4894849150
4894949151 /**
@@ -48952,44 +49154,44 @@ class TimeOnly {
4895249154 */
4895349155 public function to(): stdClass {
4895449156 $out = new stdClass();
48955- $out->{'TimeOnly'} = $this->toTimeOnly();
49157+ $out->{'thread_local'} = $this->toThreadLocal();
4895649158 return $out;
4895749159 }
4895849160
4895949161 /**
4896049162 * @param stdClass $obj
48961- * @return TimeOnly
49163+ * @return ThreadLocal
4896249164 * @throws Exception
4896349165 */
48964- public static function from(stdClass $obj): TimeOnly {
48965- if (!property_exists($obj, 'TimeOnly')) {
49166+ public static function from(stdClass $obj): ThreadLocal {
49167+ if (!property_exists($obj, 'thread_local')) {
4896649168 throw new Exception("Missing required property");
4896749169 }
48968- return new TimeOnly(
48969- TimeOnly::fromTimeOnly($obj->{'TimeOnly'})
49170+ return new ThreadLocal(
49171+ ThreadLocal::fromThreadLocal($obj->{'thread_local'})
4897049172 );
4897149173 }
4897249174
4897349175 /**
48974- * @return TimeOnly
49176+ * @return ThreadLocal
4897549177 */
48976- public static function sample(): TimeOnly {
48977- return new TimeOnly(
48978- TimeOnly::sampleTimeOnly()
49178+ public static function sample(): ThreadLocal {
49179+ return new ThreadLocal(
49180+ ThreadLocal::sampleThreadLocal()
4897949181 );
4898049182 }
4898149183 }
4898249184
48983-// This is an autogenerated file:TimeOnlyConverter
49185+// This is an autogenerated file:ThrowClass
4898449186
48985-class TimeOnlyConverter {
48986- private int $timeOnlyConverter; // json:TimeOnlyConverter Required
49187+class ThrowClass {
49188+ private int $throw; // json:throw Required
4898749189
4898849190 /**
48989- * @param int $timeOnlyConverter
49191+ * @param int $throw
4899049192 */
48991- public function __construct(int $timeOnlyConverter) {
48992- $this->timeOnlyConverter = $timeOnlyConverter;
49193+ public function __construct(int $throw) {
49194+ $this->throw = $throw;
4899349195 }
4899449196
4899549197 /**
@@ -48997,7 +49199,7 @@ class TimeOnlyConverter {
4899749199 * @throws Exception
4899849200 * @return int
4899949201 */
49000- public static function fromTimeOnlyConverter(int $value): int {
49202+ public static function fromThrow(int $value): int {
4900149203 return $value; /*int*/
4900249204 }
4900349205
@@ -49005,11 +49207,11 @@ class TimeOnlyConverter {
4900549207 * @throws Exception
4900649208 * @return int
4900749209 */
49008- public function toTimeOnlyConverter(): int {
49009- if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49010- return $this->timeOnlyConverter; /*int*/
49210+ public function toThrow(): int {
49211+ if (ThrowClass::validateThrow($this->throw)) {
49212+ return $this->throw; /*int*/
4901149213 }
49012- throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter');
49214+ throw new Exception('never get to this ThrowClass::throw');
4901349215 }
4901449216
4901549217 /**
@@ -49017,7 +49219,7 @@ class TimeOnlyConverter {
4901749219 * @return bool
4901849220 * @throws Exception
4901949221 */
49020- public static function validateTimeOnlyConverter(int $value): bool {
49222+ public static function validateThrow(int $value): bool {
4902149223 return true;
4902249224 }
4902349225
@@ -49025,18 +49227,18 @@ class TimeOnlyConverter {
4902549227 * @throws Exception
4902649228 * @return int
4902749229 */
49028- public function getTimeOnlyConverter(): int {
49029- if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49030- return $this->timeOnlyConverter;
49230+ public function getThrow(): int {
49231+ if (ThrowClass::validateThrow($this->throw)) {
49232+ return $this->throw;
4903149233 }
49032- throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter');
49234+ throw new Exception('never get to getThrow ThrowClass::throw');
4903349235 }
4903449236
4903549237 /**
4903649238 * @return int
4903749239 */
49038- public static function sampleTimeOnlyConverter(): int {
49039- return 31; /*31:timeOnlyConverter*/
49240+ public static function sampleThrow(): int {
49241+ return 31; /*31:throw*/
4904049242 }
4904149243
4904249244 /**
@@ -49044,7 +49246,7 @@ class TimeOnlyConverter {
4904449246 * @return bool
4904549247 */
4904649248 public function validate(): bool {
49047- return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter);
49249+ return ThrowClass::validateThrow($this->throw);
4904849250 }
4904949251
4905049252 /**
@@ -49053,44 +49255,44 @@ class TimeOnlyConverter {
4905349255 */
4905449256 public function to(): stdClass {
4905549257 $out = new stdClass();
49056- $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
49258+ $out->{'throw'} = $this->toThrow();
4905749259 return $out;
4905849260 }
4905949261
4906049262 /**
4906149263 * @param stdClass $obj
49062- * @return TimeOnlyConverter
49264+ * @return ThrowClass
4906349265 * @throws Exception
4906449266 */
49065- public static function from(stdClass $obj): TimeOnlyConverter {
49066- if (!property_exists($obj, 'TimeOnlyConverter')) {
49267+ public static function from(stdClass $obj): ThrowClass {
49268+ if (!property_exists($obj, 'throw')) {
4906749269 throw new Exception("Missing required property");
4906849270 }
49069- return new TimeOnlyConverter(
49070- TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
49271+ return new ThrowClass(
49272+ ThrowClass::fromThrow($obj->{'throw'})
4907149273 );
4907249274 }
4907349275
4907449276 /**
49075- * @return TimeOnlyConverter
49277+ * @return ThrowClass
4907649278 */
49077- public static function sample(): TimeOnlyConverter {
49078- return new TimeOnlyConverter(
49079- TimeOnlyConverter::sampleTimeOnlyConverter()
49279+ public static function sample(): ThrowClass {
49280+ return new ThrowClass(
49281+ ThrowClass::sampleThrow()
4908049282 );
4908149283 }
4908249284 }
4908349285
49084-// This is an autogenerated file:TimeZone
49286+// This is an autogenerated file:Throws
4908549287
49086-class TimeZone {
49087- private int $timeZone; // json:TimeZone Required
49288+class Throws {
49289+ private int $throws; // json:throws Required
4908849290
4908949291 /**
49090- * @param int $timeZone
49292+ * @param int $throws
4909149293 */
49092- public function __construct(int $timeZone) {
49093- $this->timeZone = $timeZone;
49294+ public function __construct(int $throws) {
49295+ $this->throws = $throws;
4909449296 }
4909549297
4909649298 /**
@@ -49098,7 +49300,7 @@ class TimeZone {
4909849300 * @throws Exception
4909949301 * @return int
4910049302 */
49101- public static function fromTimeZone(int $value): int {
49303+ public static function fromThrows(int $value): int {
4910249304 return $value; /*int*/
4910349305 }
4910449306
@@ -49106,11 +49308,11 @@ class TimeZone {
4910649308 * @throws Exception
4910749309 * @return int
4910849310 */
49109- public function toTimeZone(): int {
49110- if (TimeZone::validateTimeZone($this->timeZone)) {
49111- return $this->timeZone; /*int*/
49311+ public function toThrows(): int {
49312+ if (Throws::validateThrows($this->throws)) {
49313+ return $this->throws; /*int*/
4911249314 }
49113- throw new Exception('never get to this TimeZone::timeZone');
49315+ throw new Exception('never get to this Throws::throws');
4911449316 }
4911549317
4911649318 /**
@@ -49118,7 +49320,7 @@ class TimeZone {
4911849320 * @return bool
4911949321 * @throws Exception
4912049322 */
49121- public static function validateTimeZone(int $value): bool {
49323+ public static function validateThrows(int $value): bool {
4912249324 return true;
4912349325 }
4912449326
@@ -49126,18 +49328,18 @@ class TimeZone {
4912649328 * @throws Exception
4912749329 * @return int
4912849330 */
49129- public function getTimeZone(): int {
49130- if (TimeZone::validateTimeZone($this->timeZone)) {
49131- return $this->timeZone;
49331+ public function getThrows(): int {
49332+ if (Throws::validateThrows($this->throws)) {
49333+ return $this->throws;
4913249334 }
49133- throw new Exception('never get to getTimeZone TimeZone::timeZone');
49335+ throw new Exception('never get to getThrows Throws::throws');
4913449336 }
4913549337
4913649338 /**
4913749339 * @return int
4913849340 */
49139- public static function sampleTimeZone(): int {
49140- return 31; /*31:timeZone*/
49341+ public static function sampleThrows(): int {
49342+ return 31; /*31:throws*/
4914149343 }
4914249344
4914349345 /**
@@ -49145,7 +49347,7 @@ class TimeZone {
4914549347 * @return bool
4914649348 */
4914749349 public function validate(): bool {
49148- return TimeZone::validateTimeZone($this->timeZone);
49350+ return Throws::validateThrows($this->throws);
4914949351 }
4915049352
4915149353 /**
@@ -49154,44 +49356,44 @@ class TimeZone {
4915449356 */
4915549357 public function to(): stdClass {
4915649358 $out = new stdClass();
49157- $out->{'TimeZone'} = $this->toTimeZone();
49359+ $out->{'throws'} = $this->toThrows();
4915849360 return $out;
4915949361 }
4916049362
4916149363 /**
4916249364 * @param stdClass $obj
49163- * @return TimeZone
49365+ * @return Throws
4916449366 * @throws Exception
4916549367 */
49166- public static function from(stdClass $obj): TimeZone {
49167- if (!property_exists($obj, 'TimeZone')) {
49368+ public static function from(stdClass $obj): Throws {
49369+ if (!property_exists($obj, 'throws')) {
4916849370 throw new Exception("Missing required property");
4916949371 }
49170- return new TimeZone(
49171- TimeZone::fromTimeZone($obj->{'TimeZone'})
49372+ return new Throws(
49373+ Throws::fromThrows($obj->{'throws'})
4917249374 );
4917349375 }
4917449376
4917549377 /**
49176- * @return TimeZone
49378+ * @return Throws
4917749379 */
49178- public static function sample(): TimeZone {
49179- return new TimeZone(
49180- TimeZone::sampleTimeZone()
49380+ public static function sample(): Throws {
49381+ return new Throws(
49382+ Throws::sampleThrows()
4918149383 );
4918249384 }
4918349385 }
4918449386
49185-// This is an autogenerated file:ToJSON
49387+// This is an autogenerated file:TimeOnly
4918649388
49187-class ToJSON {
49188- private int $toJSON; // json:to_json Required
49389+class TimeOnly {
49390+ private int $timeOnly; // json:TimeOnly Required
4918949391
4919049392 /**
49191- * @param int $toJSON
49393+ * @param int $timeOnly
4919249394 */
49193- public function __construct(int $toJSON) {
49194- $this->toJSON = $toJSON;
49395+ public function __construct(int $timeOnly) {
49396+ $this->timeOnly = $timeOnly;
4919549397 }
4919649398
4919749399 /**
@@ -49199,7 +49401,7 @@ class ToJSON {
4919949401 * @throws Exception
4920049402 * @return int
4920149403 */
49202- public static function fromToJSON(int $value): int {
49404+ public static function fromTimeOnly(int $value): int {
4920349405 return $value; /*int*/
4920449406 }
4920549407
@@ -49207,11 +49409,11 @@ class ToJSON {
4920749409 * @throws Exception
4920849410 * @return int
4920949411 */
49210- public function toToJSON(): int {
49211- if (ToJSON::validateToJSON($this->toJSON)) {
49212- return $this->toJSON; /*int*/
49412+ public function toTimeOnly(): int {
49413+ if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49414+ return $this->timeOnly; /*int*/
4921349415 }
49214- throw new Exception('never get to this ToJSON::toJSON');
49416+ throw new Exception('never get to this TimeOnly::timeOnly');
4921549417 }
4921649418
4921749419 /**
@@ -49219,7 +49421,7 @@ class ToJSON {
4921949421 * @return bool
4922049422 * @throws Exception
4922149423 */
49222- public static function validateToJSON(int $value): bool {
49424+ public static function validateTimeOnly(int $value): bool {
4922349425 return true;
4922449426 }
4922549427
@@ -49227,18 +49429,18 @@ class ToJSON {
4922749429 * @throws Exception
4922849430 * @return int
4922949431 */
49230- public function getToJSON(): int {
49231- if (ToJSON::validateToJSON($this->toJSON)) {
49232- return $this->toJSON;
49432+ public function getTimeOnly(): int {
49433+ if (TimeOnly::validateTimeOnly($this->timeOnly)) {
49434+ return $this->timeOnly;
4923349435 }
49234- throw new Exception('never get to getToJSON ToJSON::toJSON');
49436+ throw new Exception('never get to getTimeOnly TimeOnly::timeOnly');
4923549437 }
4923649438
4923749439 /**
4923849440 * @return int
4923949441 */
49240- public static function sampleToJSON(): int {
49241- return 31; /*31:toJSON*/
49442+ public static function sampleTimeOnly(): int {
49443+ return 31; /*31:timeOnly*/
4924249444 }
4924349445
4924449446 /**
@@ -49246,7 +49448,7 @@ class ToJSON {
4924649448 * @return bool
4924749449 */
4924849450 public function validate(): bool {
49249- return ToJSON::validateToJSON($this->toJSON);
49451+ return TimeOnly::validateTimeOnly($this->timeOnly);
4925049452 }
4925149453
4925249454 /**
@@ -49255,44 +49457,44 @@ class ToJSON {
4925549457 */
4925649458 public function to(): stdClass {
4925749459 $out = new stdClass();
49258- $out->{'to_json'} = $this->toToJSON();
49460+ $out->{'TimeOnly'} = $this->toTimeOnly();
4925949461 return $out;
4926049462 }
4926149463
4926249464 /**
4926349465 * @param stdClass $obj
49264- * @return ToJSON
49466+ * @return TimeOnly
4926549467 * @throws Exception
4926649468 */
49267- public static function from(stdClass $obj): ToJSON {
49268- if (!property_exists($obj, 'to_json')) {
49469+ public static function from(stdClass $obj): TimeOnly {
49470+ if (!property_exists($obj, 'TimeOnly')) {
4926949471 throw new Exception("Missing required property");
4927049472 }
49271- return new ToJSON(
49272- ToJSON::fromToJSON($obj->{'to_json'})
49473+ return new TimeOnly(
49474+ TimeOnly::fromTimeOnly($obj->{'TimeOnly'})
4927349475 );
4927449476 }
4927549477
4927649478 /**
49277- * @return ToJSON
49479+ * @return TimeOnly
4927849480 */
49279- public static function sample(): ToJSON {
49280- return new ToJSON(
49281- ToJSON::sampleToJSON()
49481+ public static function sample(): TimeOnly {
49482+ return new TimeOnly(
49483+ TimeOnly::sampleTimeOnly()
4928249484 );
4928349485 }
4928449486 }
4928549487
49286-// This is an autogenerated file:ToString
49488+// This is an autogenerated file:TimeOnlyConverter
4928749489
49288-class ToString {
49289- private int $toString; // json:toString Required
49490+class TimeOnlyConverter {
49491+ private int $timeOnlyConverter; // json:TimeOnlyConverter Required
4929049492
4929149493 /**
49292- * @param int $toString
49494+ * @param int $timeOnlyConverter
4929349495 */
49294- public function __construct(int $toString) {
49295- $this->toString = $toString;
49496+ public function __construct(int $timeOnlyConverter) {
49497+ $this->timeOnlyConverter = $timeOnlyConverter;
4929649498 }
4929749499
4929849500 /**
@@ -49300,7 +49502,7 @@ class ToString {
4930049502 * @throws Exception
4930149503 * @return int
4930249504 */
49303- public static function fromToString(int $value): int {
49505+ public static function fromTimeOnlyConverter(int $value): int {
4930449506 return $value; /*int*/
4930549507 }
4930649508
@@ -49308,11 +49510,11 @@ class ToString {
4930849510 * @throws Exception
4930949511 * @return int
4931049512 */
49311- public function toToString(): int {
49312- if (ToString::validateToString($this->toString)) {
49313- return $this->toString; /*int*/
49513+ public function toTimeOnlyConverter(): int {
49514+ if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49515+ return $this->timeOnlyConverter; /*int*/
4931449516 }
49315- throw new Exception('never get to this ToString::toString');
49517+ throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter');
4931649518 }
4931749519
4931849520 /**
@@ -49320,7 +49522,7 @@ class ToString {
4932049522 * @return bool
4932149523 * @throws Exception
4932249524 */
49323- public static function validateToString(int $value): bool {
49525+ public static function validateTimeOnlyConverter(int $value): bool {
4932449526 return true;
4932549527 }
4932649528
@@ -49328,18 +49530,18 @@ class ToString {
4932849530 * @throws Exception
4932949531 * @return int
4933049532 */
49331- public function getToString(): int {
49332- if (ToString::validateToString($this->toString)) {
49333- return $this->toString;
49533+ public function getTimeOnlyConverter(): int {
49534+ if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) {
49535+ return $this->timeOnlyConverter;
4933449536 }
49335- throw new Exception('never get to getToString ToString::toString');
49537+ throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter');
4933649538 }
4933749539
4933849540 /**
4933949541 * @return int
4934049542 */
49341- public static function sampleToString(): int {
49342- return 31; /*31:toString*/
49543+ public static function sampleTimeOnlyConverter(): int {
49544+ return 31; /*31:timeOnlyConverter*/
4934349545 }
4934449546
4934549547 /**
@@ -49347,7 +49549,7 @@ class ToString {
4934749549 * @return bool
4934849550 */
4934949551 public function validate(): bool {
49350- return ToString::validateToString($this->toString);
49552+ return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter);
4935149553 }
4935249554
4935349555 /**
@@ -49356,44 +49558,44 @@ class ToString {
4935649558 */
4935749559 public function to(): stdClass {
4935849560 $out = new stdClass();
49359- $out->{'toString'} = $this->toToString();
49561+ $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter();
4936049562 return $out;
4936149563 }
4936249564
4936349565 /**
4936449566 * @param stdClass $obj
49365- * @return ToString
49567+ * @return TimeOnlyConverter
4936649568 * @throws Exception
4936749569 */
49368- public static function from(stdClass $obj): ToString {
49369- if (!property_exists($obj, 'toString')) {
49570+ public static function from(stdClass $obj): TimeOnlyConverter {
49571+ if (!property_exists($obj, 'TimeOnlyConverter')) {
4937049572 throw new Exception("Missing required property");
4937149573 }
49372- return new ToString(
49373- ToString::fromToString($obj->{'toString'})
49574+ return new TimeOnlyConverter(
49575+ TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'})
4937449576 );
4937549577 }
4937649578
4937749579 /**
49378- * @return ToString
49580+ * @return TimeOnlyConverter
4937949581 */
49380- public static function sample(): ToString {
49381- return new ToString(
49382- ToString::sampleToString()
49582+ public static function sample(): TimeOnlyConverter {
49583+ return new TimeOnlyConverter(
49584+ TimeOnlyConverter::sampleTimeOnlyConverter()
4938349585 );
4938449586 }
4938549587 }
4938649588
49387-// This is an autogenerated file:TopLevelClass
49589+// This is an autogenerated file:TimeZone
4938849590
49389-class TopLevelClass {
49390- private int $topLevel; // json:top_level Required
49591+class TimeZone {
49592+ private int $timeZone; // json:TimeZone Required
4939149593
4939249594 /**
49393- * @param int $topLevel
49595+ * @param int $timeZone
4939449596 */
49395- public function __construct(int $topLevel) {
49396- $this->topLevel = $topLevel;
49597+ public function __construct(int $timeZone) {
49598+ $this->timeZone = $timeZone;
4939749599 }
4939849600
4939949601 /**
@@ -49401,7 +49603,7 @@ class TopLevelClass {
4940149603 * @throws Exception
4940249604 * @return int
4940349605 */
49404- public static function fromTopLevel(int $value): int {
49606+ public static function fromTimeZone(int $value): int {
4940549607 return $value; /*int*/
4940649608 }
4940749609
@@ -49409,11 +49611,11 @@ class TopLevelClass {
4940949611 * @throws Exception
4941049612 * @return int
4941149613 */
49412- public function toTopLevel(): int {
49413- if (TopLevelClass::validateTopLevel($this->topLevel)) {
49414- return $this->topLevel; /*int*/
49614+ public function toTimeZone(): int {
49615+ if (TimeZone::validateTimeZone($this->timeZone)) {
49616+ return $this->timeZone; /*int*/
4941549617 }
49416- throw new Exception('never get to this TopLevelClass::topLevel');
49618+ throw new Exception('never get to this TimeZone::timeZone');
4941749619 }
4941849620
4941949621 /**
@@ -49421,7 +49623,7 @@ class TopLevelClass {
4942149623 * @return bool
4942249624 * @throws Exception
4942349625 */
49424- public static function validateTopLevel(int $value): bool {
49626+ public static function validateTimeZone(int $value): bool {
4942549627 return true;
4942649628 }
4942749629
@@ -49429,18 +49631,18 @@ class TopLevelClass {
4942949631 * @throws Exception
4943049632 * @return int
4943149633 */
49432- public function getTopLevel(): int {
49433- if (TopLevelClass::validateTopLevel($this->topLevel)) {
49434- return $this->topLevel;
49634+ public function getTimeZone(): int {
49635+ if (TimeZone::validateTimeZone($this->timeZone)) {
49636+ return $this->timeZone;
4943549637 }
49436- throw new Exception('never get to getTopLevel TopLevelClass::topLevel');
49638+ throw new Exception('never get to getTimeZone TimeZone::timeZone');
4943749639 }
4943849640
4943949641 /**
4944049642 * @return int
4944149643 */
49442- public static function sampleTopLevel(): int {
49443- return 31; /*31:topLevel*/
49644+ public static function sampleTimeZone(): int {
49645+ return 31; /*31:timeZone*/
4944449646 }
4944549647
4944649648 /**
@@ -49448,7 +49650,7 @@ class TopLevelClass {
4944849650 * @return bool
4944949651 */
4945049652 public function validate(): bool {
49451- return TopLevelClass::validateTopLevel($this->topLevel);
49653+ return TimeZone::validateTimeZone($this->timeZone);
4945249654 }
4945349655
4945449656 /**
@@ -49457,44 +49659,44 @@ class TopLevelClass {
4945749659 */
4945849660 public function to(): stdClass {
4945949661 $out = new stdClass();
49460- $out->{'top_level'} = $this->toTopLevel();
49662+ $out->{'TimeZone'} = $this->toTimeZone();
4946149663 return $out;
4946249664 }
4946349665
4946449666 /**
4946549667 * @param stdClass $obj
49466- * @return TopLevelClass
49668+ * @return TimeZone
4946749669 * @throws Exception
4946849670 */
49469- public static function from(stdClass $obj): TopLevelClass {
49470- if (!property_exists($obj, 'top_level')) {
49471- throw new Exception("Missing required property");
49671+ public static function from(stdClass $obj): TimeZone {
49672+ if (!property_exists($obj, 'TimeZone')) {
49673+ throw new Exception("Missing required property");
4947249674 }
49473- return new TopLevelClass(
49474- TopLevelClass::fromTopLevel($obj->{'top_level'})
49675+ return new TimeZone(
49676+ TimeZone::fromTimeZone($obj->{'TimeZone'})
4947549677 );
4947649678 }
4947749679
4947849680 /**
49479- * @return TopLevelClass
49681+ * @return TimeZone
4948049682 */
49481- public static function sample(): TopLevelClass {
49482- return new TopLevelClass(
49483- TopLevelClass::sampleTopLevel()
49683+ public static function sample(): TimeZone {
49684+ return new TimeZone(
49685+ TimeZone::sampleTimeZone()
4948449686 );
4948549687 }
4948649688 }
4948749689
49488-// This is an autogenerated file:Transient
49690+// This is an autogenerated file:ToJSON
4948949691
49490-class Transient {
49491- private int $transient; // json:transient Required
49692+class ToJSON {
49693+ private int $toJSON; // json:to_json Required
4949249694
4949349695 /**
49494- * @param int $transient
49696+ * @param int $toJSON
4949549697 */
49496- public function __construct(int $transient) {
49497- $this->transient = $transient;
49698+ public function __construct(int $toJSON) {
49699+ $this->toJSON = $toJSON;
4949849700 }
4949949701
4950049702 /**
@@ -49502,7 +49704,7 @@ class Transient {
4950249704 * @throws Exception
4950349705 * @return int
4950449706 */
49505- public static function fromTransient(int $value): int {
49707+ public static function fromToJSON(int $value): int {
4950649708 return $value; /*int*/
4950749709 }
4950849710
@@ -49510,11 +49712,11 @@ class Transient {
4951049712 * @throws Exception
4951149713 * @return int
4951249714 */
49513- public function toTransient(): int {
49514- if (Transient::validateTransient($this->transient)) {
49515- return $this->transient; /*int*/
49715+ public function toToJSON(): int {
49716+ if (ToJSON::validateToJSON($this->toJSON)) {
49717+ return $this->toJSON; /*int*/
4951649718 }
49517- throw new Exception('never get to this Transient::transient');
49719+ throw new Exception('never get to this ToJSON::toJSON');
4951849720 }
4951949721
4952049722 /**
@@ -49522,7 +49724,7 @@ class Transient {
4952249724 * @return bool
4952349725 * @throws Exception
4952449726 */
49525- public static function validateTransient(int $value): bool {
49727+ public static function validateToJSON(int $value): bool {
4952649728 return true;
4952749729 }
4952849730
@@ -49530,18 +49732,18 @@ class Transient {
4953049732 * @throws Exception
4953149733 * @return int
4953249734 */
49533- public function getTransient(): int {
49534- if (Transient::validateTransient($this->transient)) {
49535- return $this->transient;
49735+ public function getToJSON(): int {
49736+ if (ToJSON::validateToJSON($this->toJSON)) {
49737+ return $this->toJSON;
4953649738 }
49537- throw new Exception('never get to getTransient Transient::transient');
49739+ throw new Exception('never get to getToJSON ToJSON::toJSON');
4953849740 }
4953949741
4954049742 /**
4954149743 * @return int
4954249744 */
49543- public static function sampleTransient(): int {
49544- return 31; /*31:transient*/
49745+ public static function sampleToJSON(): int {
49746+ return 31; /*31:toJSON*/
4954549747 }
4954649748
4954749749 /**
@@ -49549,7 +49751,7 @@ class Transient {
4954949751 * @return bool
4955049752 */
4955149753 public function validate(): bool {
49552- return Transient::validateTransient($this->transient);
49754+ return ToJSON::validateToJSON($this->toJSON);
4955349755 }
4955449756
4955549757 /**
@@ -49558,44 +49760,44 @@ class Transient {
4955849760 */
4955949761 public function to(): stdClass {
4956049762 $out = new stdClass();
49561- $out->{'transient'} = $this->toTransient();
49763+ $out->{'to_json'} = $this->toToJSON();
4956249764 return $out;
4956349765 }
4956449766
4956549767 /**
4956649768 * @param stdClass $obj
49567- * @return Transient
49769+ * @return ToJSON
4956849770 * @throws Exception
4956949771 */
49570- public static function from(stdClass $obj): Transient {
49571- if (!property_exists($obj, 'transient')) {
49772+ public static function from(stdClass $obj): ToJSON {
49773+ if (!property_exists($obj, 'to_json')) {
4957249774 throw new Exception("Missing required property");
4957349775 }
49574- return new Transient(
49575- Transient::fromTransient($obj->{'transient'})
49776+ return new ToJSON(
49777+ ToJSON::fromToJSON($obj->{'to_json'})
4957649778 );
4957749779 }
4957849780
4957949781 /**
49580- * @return Transient
49782+ * @return ToJSON
4958149783 */
49582- public static function sample(): Transient {
49583- return new Transient(
49584- Transient::sampleTransient()
49784+ public static function sample(): ToJSON {
49785+ return new ToJSON(
49786+ ToJSON::sampleToJSON()
4958549787 );
4958649788 }
4958749789 }
4958849790
49589-// This is an autogenerated file:TrueClass
49791+// This is an autogenerated file:ToString
4959049792
49591-class TrueClass {
49592- private int $true; // json:True Required
49793+class ToString {
49794+ private int $toString; // json:toString Required
4959349795
4959449796 /**
49595- * @param int $true
49797+ * @param int $toString
4959649798 */
49597- public function __construct(int $true) {
49598- $this->true = $true;
49799+ public function __construct(int $toString) {
49800+ $this->toString = $toString;
4959949801 }
4960049802
4960149803 /**
@@ -49603,7 +49805,7 @@ class TrueClass {
4960349805 * @throws Exception
4960449806 * @return int
4960549807 */
49606- public static function fromTrue(int $value): int {
49808+ public static function fromToString(int $value): int {
4960749809 return $value; /*int*/
4960849810 }
4960949811
@@ -49611,11 +49813,11 @@ class TrueClass {
4961149813 * @throws Exception
4961249814 * @return int
4961349815 */
49614- public function toTrue(): int {
49615- if (TrueClass::validateTrue($this->true)) {
49616- return $this->true; /*int*/
49816+ public function toToString(): int {
49817+ if (ToString::validateToString($this->toString)) {
49818+ return $this->toString; /*int*/
4961749819 }
49618- throw new Exception('never get to this TrueClass::true');
49820+ throw new Exception('never get to this ToString::toString');
4961949821 }
4962049822
4962149823 /**
@@ -49623,7 +49825,7 @@ class TrueClass {
4962349825 * @return bool
4962449826 * @throws Exception
4962549827 */
49626- public static function validateTrue(int $value): bool {
49828+ public static function validateToString(int $value): bool {
4962749829 return true;
4962849830 }
4962949831
@@ -49631,18 +49833,18 @@ class TrueClass {
4963149833 * @throws Exception
4963249834 * @return int
4963349835 */
49634- public function getTrue(): int {
49635- if (TrueClass::validateTrue($this->true)) {
49636- return $this->true;
49836+ public function getToString(): int {
49837+ if (ToString::validateToString($this->toString)) {
49838+ return $this->toString;
4963749839 }
49638- throw new Exception('never get to getTrue TrueClass::true');
49840+ throw new Exception('never get to getToString ToString::toString');
4963949841 }
4964049842
4964149843 /**
4964249844 * @return int
4964349845 */
49644- public static function sampleTrue(): int {
49645- return 31; /*31:true*/
49846+ public static function sampleToString(): int {
49847+ return 31; /*31:toString*/
4964649848 }
4964749849
4964849850 /**
@@ -49650,7 +49852,7 @@ class TrueClass {
4965049852 * @return bool
4965149853 */
4965249854 public function validate(): bool {
49653- return TrueClass::validateTrue($this->true);
49855+ return ToString::validateToString($this->toString);
4965449856 }
4965549857
4965649858 /**
@@ -49659,44 +49861,44 @@ class TrueClass {
4965949861 */
4966049862 public function to(): stdClass {
4966149863 $out = new stdClass();
49662- $out->{'True'} = $this->toTrue();
49864+ $out->{'toString'} = $this->toToString();
4966349865 return $out;
4966449866 }
4966549867
4966649868 /**
4966749869 * @param stdClass $obj
49668- * @return TrueClass
49870+ * @return ToString
4966949871 * @throws Exception
4967049872 */
49671- public static function from(stdClass $obj): TrueClass {
49672- if (!property_exists($obj, 'True')) {
49873+ public static function from(stdClass $obj): ToString {
49874+ if (!property_exists($obj, 'toString')) {
4967349875 throw new Exception("Missing required property");
4967449876 }
49675- return new TrueClass(
49676- TrueClass::fromTrue($obj->{'True'})
49877+ return new ToString(
49878+ ToString::fromToString($obj->{'toString'})
4967749879 );
4967849880 }
4967949881
4968049882 /**
49681- * @return TrueClass
49883+ * @return ToString
4968249884 */
49683- public static function sample(): TrueClass {
49684- return new TrueClass(
49685- TrueClass::sampleTrue()
49885+ public static function sample(): ToString {
49886+ return new ToString(
49887+ ToString::sampleToString()
4968649888 );
4968749889 }
4968849890 }
4968949891
49690-// This is an autogenerated file:TryClass
49892+// This is an autogenerated file:TopLevelClass
4969149893
49692-class TryClass {
49693- private int $try; // json:try Required
49894+class TopLevelClass {
49895+ private int $topLevel; // json:top_level Required
4969449896
4969549897 /**
49696- * @param int $try
49898+ * @param int $topLevel
4969749899 */
49698- public function __construct(int $try) {
49699- $this->try = $try;
49900+ public function __construct(int $topLevel) {
49901+ $this->topLevel = $topLevel;
4970049902 }
4970149903
4970249904 /**
@@ -49704,7 +49906,7 @@ class TryClass {
4970449906 * @throws Exception
4970549907 * @return int
4970649908 */
49707- public static function fromTry(int $value): int {
49909+ public static function fromTopLevel(int $value): int {
4970849910 return $value; /*int*/
4970949911 }
4971049912
@@ -49712,11 +49914,11 @@ class TryClass {
4971249914 * @throws Exception
4971349915 * @return int
4971449916 */
49715- public function toTry(): int {
49716- if (TryClass::validateTry($this->try)) {
49717- return $this->try; /*int*/
49917+ public function toTopLevel(): int {
49918+ if (TopLevelClass::validateTopLevel($this->topLevel)) {
49919+ return $this->topLevel; /*int*/
4971849920 }
49719- throw new Exception('never get to this TryClass::try');
49921+ throw new Exception('never get to this TopLevelClass::topLevel');
4972049922 }
4972149923
4972249924 /**
@@ -49724,7 +49926,7 @@ class TryClass {
4972449926 * @return bool
4972549927 * @throws Exception
4972649928 */
49727- public static function validateTry(int $value): bool {
49929+ public static function validateTopLevel(int $value): bool {
4972849930 return true;
4972949931 }
4973049932
@@ -49732,18 +49934,18 @@ class TryClass {
4973249934 * @throws Exception
4973349935 * @return int
4973449936 */
49735- public function getTry(): int {
49736- if (TryClass::validateTry($this->try)) {
49737- return $this->try;
49937+ public function getTopLevel(): int {
49938+ if (TopLevelClass::validateTopLevel($this->topLevel)) {
49939+ return $this->topLevel;
4973849940 }
49739- throw new Exception('never get to getTry TryClass::try');
49941+ throw new Exception('never get to getTopLevel TopLevelClass::topLevel');
4974049942 }
4974149943
4974249944 /**
4974349945 * @return int
4974449946 */
49745- public static function sampleTry(): int {
49746- return 31; /*31:try*/
49947+ public static function sampleTopLevel(): int {
49948+ return 31; /*31:topLevel*/
4974749949 }
4974849950
4974949951 /**
@@ -49751,7 +49953,7 @@ class TryClass {
4975149953 * @return bool
4975249954 */
4975349955 public function validate(): bool {
49754- return TryClass::validateTry($this->try);
49956+ return TopLevelClass::validateTopLevel($this->topLevel);
4975549957 }
4975649958
4975749959 /**
@@ -49760,44 +49962,44 @@ class TryClass {
4976049962 */
4976149963 public function to(): stdClass {
4976249964 $out = new stdClass();
49763- $out->{'try'} = $this->toTry();
49965+ $out->{'top_level'} = $this->toTopLevel();
4976449966 return $out;
4976549967 }
4976649968
4976749969 /**
4976849970 * @param stdClass $obj
49769- * @return TryClass
49971+ * @return TopLevelClass
4977049972 * @throws Exception
4977149973 */
49772- public static function from(stdClass $obj): TryClass {
49773- if (!property_exists($obj, 'try')) {
49974+ public static function from(stdClass $obj): TopLevelClass {
49975+ if (!property_exists($obj, 'top_level')) {
4977449976 throw new Exception("Missing required property");
4977549977 }
49776- return new TryClass(
49777- TryClass::fromTry($obj->{'try'})
49978+ return new TopLevelClass(
49979+ TopLevelClass::fromTopLevel($obj->{'top_level'})
4977849980 );
4977949981 }
4978049982
4978149983 /**
49782- * @return TryClass
49984+ * @return TopLevelClass
4978349985 */
49784- public static function sample(): TryClass {
49785- return new TryClass(
49786- TryClass::sampleTry()
49986+ public static function sample(): TopLevelClass {
49987+ return new TopLevelClass(
49988+ TopLevelClass::sampleTopLevel()
4978749989 );
4978849990 }
4978949991 }
4979049992
49791-// This is an autogenerated file:Type
49993+// This is an autogenerated file:Transient
4979249994
49793-class Type {
49794- private int $type; // json:Type Required
49995+class Transient {
49996+ private int $transient; // json:transient Required
4979549997
4979649998 /**
49797- * @param int $type
49999+ * @param int $transient
4979850000 */
49799- public function __construct(int $type) {
49800- $this->type = $type;
50001+ public function __construct(int $transient) {
50002+ $this->transient = $transient;
4980150003 }
4980250004
4980350005 /**
@@ -49805,7 +50007,7 @@ class Type {
4980550007 * @throws Exception
4980650008 * @return int
4980750009 */
49808- public static function fromType(int $value): int {
50010+ public static function fromTransient(int $value): int {
4980950011 return $value; /*int*/
4981050012 }
4981150013
@@ -49813,11 +50015,11 @@ class Type {
4981350015 * @throws Exception
4981450016 * @return int
4981550017 */
49816- public function toType(): int {
49817- if (Type::validateType($this->type)) {
49818- return $this->type; /*int*/
50018+ public function toTransient(): int {
50019+ if (Transient::validateTransient($this->transient)) {
50020+ return $this->transient; /*int*/
4981950021 }
49820- throw new Exception('never get to this Type::type');
50022+ throw new Exception('never get to this Transient::transient');
4982150023 }
4982250024
4982350025 /**
@@ -49825,7 +50027,7 @@ class Type {
4982550027 * @return bool
4982650028 * @throws Exception
4982750029 */
49828- public static function validateType(int $value): bool {
50030+ public static function validateTransient(int $value): bool {
4982950031 return true;
4983050032 }
4983150033
@@ -49833,18 +50035,18 @@ class Type {
4983350035 * @throws Exception
4983450036 * @return int
4983550037 */
49836- public function getType(): int {
49837- if (Type::validateType($this->type)) {
49838- return $this->type;
50038+ public function getTransient(): int {
50039+ if (Transient::validateTransient($this->transient)) {
50040+ return $this->transient;
4983950041 }
49840- throw new Exception('never get to getType Type::type');
50042+ throw new Exception('never get to getTransient Transient::transient');
4984150043 }
4984250044
4984350045 /**
4984450046 * @return int
4984550047 */
49846- public static function sampleType(): int {
49847- return 31; /*31:type*/
50048+ public static function sampleTransient(): int {
50049+ return 31; /*31:transient*/
4984850050 }
4984950051
4985050052 /**
@@ -49852,7 +50054,7 @@ class Type {
4985250054 * @return bool
4985350055 */
4985450056 public function validate(): bool {
49855- return Type::validateType($this->type);
50057+ return Transient::validateTransient($this->transient);
4985650058 }
4985750059
4985850060 /**
@@ -49861,44 +50063,44 @@ class Type {
4986150063 */
4986250064 public function to(): stdClass {
4986350065 $out = new stdClass();
49864- $out->{'Type'} = $this->toType();
50066+ $out->{'transient'} = $this->toTransient();
4986550067 return $out;
4986650068 }
4986750069
4986850070 /**
4986950071 * @param stdClass $obj
49870- * @return Type
50072+ * @return Transient
4987150073 * @throws Exception
4987250074 */
49873- public static function from(stdClass $obj): Type {
49874- if (!property_exists($obj, 'Type')) {
50075+ public static function from(stdClass $obj): Transient {
50076+ if (!property_exists($obj, 'transient')) {
4987550077 throw new Exception("Missing required property");
4987650078 }
49877- return new Type(
49878- Type::fromType($obj->{'Type'})
50079+ return new Transient(
50080+ Transient::fromTransient($obj->{'transient'})
4987950081 );
4988050082 }
4988150083
4988250084 /**
49883- * @return Type
50085+ * @return Transient
4988450086 */
49885- public static function sample(): Type {
49886- return new Type(
49887- Type::sampleType()
50087+ public static function sample(): Transient {
50088+ return new Transient(
50089+ Transient::sampleTransient()
4988850090 );
4988950091 }
4989050092 }
4989150093
49892-// This is an autogenerated file:Typealias
50094+// This is an autogenerated file:TrueClass
4989350095
49894-class Typealias {
49895- private int $typealias; // json:typealias Required
50096+class TrueClass {
50097+ private int $true; // json:True Required
4989650098
4989750099 /**
49898- * @param int $typealias
50100+ * @param int $true
4989950101 */
49900- public function __construct(int $typealias) {
49901- $this->typealias = $typealias;
50102+ public function __construct(int $true) {
50103+ $this->true = $true;
4990250104 }
4990350105
4990450106 /**
@@ -49906,7 +50108,7 @@ class Typealias {
4990650108 * @throws Exception
4990750109 * @return int
4990850110 */
49909- public static function fromTypealias(int $value): int {
50111+ public static function fromTrue(int $value): int {
4991050112 return $value; /*int*/
4991150113 }
4991250114
@@ -49914,11 +50116,11 @@ class Typealias {
4991450116 * @throws Exception
4991550117 * @return int
4991650118 */
49917- public function toTypealias(): int {
49918- if (Typealias::validateTypealias($this->typealias)) {
49919- return $this->typealias; /*int*/
50119+ public function toTrue(): int {
50120+ if (TrueClass::validateTrue($this->true)) {
50121+ return $this->true; /*int*/
4992050122 }
49921- throw new Exception('never get to this Typealias::typealias');
50123+ throw new Exception('never get to this TrueClass::true');
4992250124 }
4992350125
4992450126 /**
@@ -49926,7 +50128,7 @@ class Typealias {
4992650128 * @return bool
4992750129 * @throws Exception
4992850130 */
49929- public static function validateTypealias(int $value): bool {
50131+ public static function validateTrue(int $value): bool {
4993050132 return true;
4993150133 }
4993250134
@@ -49934,18 +50136,18 @@ class Typealias {
4993450136 * @throws Exception
4993550137 * @return int
4993650138 */
49937- public function getTypealias(): int {
49938- if (Typealias::validateTypealias($this->typealias)) {
49939- return $this->typealias;
50139+ public function getTrue(): int {
50140+ if (TrueClass::validateTrue($this->true)) {
50141+ return $this->true;
4994050142 }
49941- throw new Exception('never get to getTypealias Typealias::typealias');
50143+ throw new Exception('never get to getTrue TrueClass::true');
4994250144 }
4994350145
4994450146 /**
4994550147 * @return int
4994650148 */
49947- public static function sampleTypealias(): int {
49948- return 31; /*31:typealias*/
50149+ public static function sampleTrue(): int {
50150+ return 31; /*31:true*/
4994950151 }
4995050152
4995150153 /**
@@ -49953,7 +50155,7 @@ class Typealias {
4995350155 * @return bool
4995450156 */
4995550157 public function validate(): bool {
49956- return Typealias::validateTypealias($this->typealias);
50158+ return TrueClass::validateTrue($this->true);
4995750159 }
4995850160
4995950161 /**
@@ -49962,44 +50164,44 @@ class Typealias {
4996250164 */
4996350165 public function to(): stdClass {
4996450166 $out = new stdClass();
49965- $out->{'typealias'} = $this->toTypealias();
50167+ $out->{'True'} = $this->toTrue();
4996650168 return $out;
4996750169 }
4996850170
4996950171 /**
4997050172 * @param stdClass $obj
49971- * @return Typealias
50173+ * @return TrueClass
4997250174 * @throws Exception
4997350175 */
49974- public static function from(stdClass $obj): Typealias {
49975- if (!property_exists($obj, 'typealias')) {
50176+ public static function from(stdClass $obj): TrueClass {
50177+ if (!property_exists($obj, 'True')) {
4997650178 throw new Exception("Missing required property");
4997750179 }
49978- return new Typealias(
49979- Typealias::fromTypealias($obj->{'typealias'})
50180+ return new TrueClass(
50181+ TrueClass::fromTrue($obj->{'True'})
4998050182 );
4998150183 }
4998250184
4998350185 /**
49984- * @return Typealias
50186+ * @return TrueClass
4998550187 */
49986- public static function sample(): Typealias {
49987- return new Typealias(
49988- Typealias::sampleTypealias()
50188+ public static function sample(): TrueClass {
50189+ return new TrueClass(
50190+ TrueClass::sampleTrue()
4998950191 );
4999050192 }
4999150193 }
4999250194
49993-// This is an autogenerated file:Typedef
50195+// This is an autogenerated file:TryClass
4999450196
49995-class Typedef {
49996- private int $typedef; // json:typedef Required
50197+class TryClass {
50198+ private int $try; // json:try Required
4999750199
4999850200 /**
49999- * @param int $typedef
50201+ * @param int $try
5000050202 */
50001- public function __construct(int $typedef) {
50002- $this->typedef = $typedef;
50203+ public function __construct(int $try) {
50204+ $this->try = $try;
5000350205 }
5000450206
5000550207 /**
@@ -50007,7 +50209,7 @@ class Typedef {
5000750209 * @throws Exception
5000850210 * @return int
5000950211 */
50010- public static function fromTypedef(int $value): int {
50212+ public static function fromTry(int $value): int {
5001150213 return $value; /*int*/
5001250214 }
5001350215
@@ -50015,11 +50217,11 @@ class Typedef {
5001550217 * @throws Exception
5001650218 * @return int
5001750219 */
50018- public function toTypedef(): int {
50019- if (Typedef::validateTypedef($this->typedef)) {
50020- return $this->typedef; /*int*/
50220+ public function toTry(): int {
50221+ if (TryClass::validateTry($this->try)) {
50222+ return $this->try; /*int*/
5002150223 }
50022- throw new Exception('never get to this Typedef::typedef');
50224+ throw new Exception('never get to this TryClass::try');
5002350225 }
5002450226
5002550227 /**
@@ -50027,7 +50229,7 @@ class Typedef {
5002750229 * @return bool
5002850230 * @throws Exception
5002950231 */
50030- public static function validateTypedef(int $value): bool {
50232+ public static function validateTry(int $value): bool {
5003150233 return true;
5003250234 }
5003350235
@@ -50035,18 +50237,18 @@ class Typedef {
5003550237 * @throws Exception
5003650238 * @return int
5003750239 */
50038- public function getTypedef(): int {
50039- if (Typedef::validateTypedef($this->typedef)) {
50040- return $this->typedef;
50240+ public function getTry(): int {
50241+ if (TryClass::validateTry($this->try)) {
50242+ return $this->try;
5004150243 }
50042- throw new Exception('never get to getTypedef Typedef::typedef');
50244+ throw new Exception('never get to getTry TryClass::try');
5004350245 }
5004450246
5004550247 /**
5004650248 * @return int
5004750249 */
50048- public static function sampleTypedef(): int {
50049- return 31; /*31:typedef*/
50250+ public static function sampleTry(): int {
50251+ return 31; /*31:try*/
5005050252 }
5005150253
5005250254 /**
@@ -50054,7 +50256,7 @@ class Typedef {
5005450256 * @return bool
5005550257 */
5005650258 public function validate(): bool {
50057- return Typedef::validateTypedef($this->typedef);
50259+ return TryClass::validateTry($this->try);
5005850260 }
5005950261
5006050262 /**
@@ -50063,44 +50265,44 @@ class Typedef {
5006350265 */
5006450266 public function to(): stdClass {
5006550267 $out = new stdClass();
50066- $out->{'typedef'} = $this->toTypedef();
50268+ $out->{'try'} = $this->toTry();
5006750269 return $out;
5006850270 }
5006950271
5007050272 /**
5007150273 * @param stdClass $obj
50072- * @return Typedef
50274+ * @return TryClass
5007350275 * @throws Exception
5007450276 */
50075- public static function from(stdClass $obj): Typedef {
50076- if (!property_exists($obj, 'typedef')) {
50277+ public static function from(stdClass $obj): TryClass {
50278+ if (!property_exists($obj, 'try')) {
5007750279 throw new Exception("Missing required property");
5007850280 }
50079- return new Typedef(
50080- Typedef::fromTypedef($obj->{'typedef'})
50281+ return new TryClass(
50282+ TryClass::fromTry($obj->{'try'})
5008150283 );
5008250284 }
5008350285
5008450286 /**
50085- * @return Typedef
50287+ * @return TryClass
5008650288 */
50087- public static function sample(): Typedef {
50088- return new Typedef(
50089- Typedef::sampleTypedef()
50289+ public static function sample(): TryClass {
50290+ return new TryClass(
50291+ TryClass::sampleTry()
5009050292 );
5009150293 }
5009250294 }
5009350295
50094-// This is an autogenerated file:Typeid
50296+// This is an autogenerated file:Type
5009550297
50096-class Typeid {
50097- private int $typeid; // json:typeid Required
50298+class Type {
50299+ private int $type; // json:Type Required
5009850300
5009950301 /**
50100- * @param int $typeid
50302+ * @param int $type
5010150303 */
50102- public function __construct(int $typeid) {
50103- $this->typeid = $typeid;
50304+ public function __construct(int $type) {
50305+ $this->type = $type;
5010450306 }
5010550307
5010650308 /**
@@ -50108,7 +50310,7 @@ class Typeid {
5010850310 * @throws Exception
5010950311 * @return int
5011050312 */
50111- public static function fromTypeid(int $value): int {
50313+ public static function fromType(int $value): int {
5011250314 return $value; /*int*/
5011350315 }
5011450316
@@ -50116,11 +50318,11 @@ class Typeid {
5011650318 * @throws Exception
5011750319 * @return int
5011850320 */
50119- public function toTypeid(): int {
50120- if (Typeid::validateTypeid($this->typeid)) {
50121- return $this->typeid; /*int*/
50321+ public function toType(): int {
50322+ if (Type::validateType($this->type)) {
50323+ return $this->type; /*int*/
5012250324 }
50123- throw new Exception('never get to this Typeid::typeid');
50325+ throw new Exception('never get to this Type::type');
5012450326 }
5012550327
5012650328 /**
@@ -50128,7 +50330,7 @@ class Typeid {
5012850330 * @return bool
5012950331 * @throws Exception
5013050332 */
50131- public static function validateTypeid(int $value): bool {
50333+ public static function validateType(int $value): bool {
5013250334 return true;
5013350335 }
5013450336
@@ -50136,18 +50338,18 @@ class Typeid {
5013650338 * @throws Exception
5013750339 * @return int
5013850340 */
50139- public function getTypeid(): int {
50140- if (Typeid::validateTypeid($this->typeid)) {
50141- return $this->typeid;
50341+ public function getType(): int {
50342+ if (Type::validateType($this->type)) {
50343+ return $this->type;
5014250344 }
50143- throw new Exception('never get to getTypeid Typeid::typeid');
50345+ throw new Exception('never get to getType Type::type');
5014450346 }
5014550347
5014650348 /**
5014750349 * @return int
5014850350 */
50149- public static function sampleTypeid(): int {
50150- return 31; /*31:typeid*/
50351+ public static function sampleType(): int {
50352+ return 31; /*31:type*/
5015150353 }
5015250354
5015350355 /**
@@ -50155,7 +50357,7 @@ class Typeid {
5015550357 * @return bool
5015650358 */
5015750359 public function validate(): bool {
50158- return Typeid::validateTypeid($this->typeid);
50360+ return Type::validateType($this->type);
5015950361 }
5016050362
5016150363 /**
@@ -50164,44 +50366,44 @@ class Typeid {
5016450366 */
5016550367 public function to(): stdClass {
5016650368 $out = new stdClass();
50167- $out->{'typeid'} = $this->toTypeid();
50369+ $out->{'Type'} = $this->toType();
5016850370 return $out;
5016950371 }
5017050372
5017150373 /**
5017250374 * @param stdClass $obj
50173- * @return Typeid
50375+ * @return Type
5017450376 * @throws Exception
5017550377 */
50176- public static function from(stdClass $obj): Typeid {
50177- if (!property_exists($obj, 'typeid')) {
50378+ public static function from(stdClass $obj): Type {
50379+ if (!property_exists($obj, 'Type')) {
5017850380 throw new Exception("Missing required property");
5017950381 }
50180- return new Typeid(
50181- Typeid::fromTypeid($obj->{'typeid'})
50382+ return new Type(
50383+ Type::fromType($obj->{'Type'})
5018250384 );
5018350385 }
5018450386
5018550387 /**
50186- * @return Typeid
50388+ * @return Type
5018750389 */
50188- public static function sample(): Typeid {
50189- return new Typeid(
50190- Typeid::sampleTypeid()
50390+ public static function sample(): Type {
50391+ return new Type(
50392+ Type::sampleType()
5019150393 );
5019250394 }
5019350395 }
5019450396
50195-// This is an autogenerated file:Typename
50397+// This is an autogenerated file:Typealias
5019650398
50197-class Typename {
50198- private int $typename; // json:typename Required
50399+class Typealias {
50400+ private int $typealias; // json:typealias Required
5019950401
5020050402 /**
50201- * @param int $typename
50403+ * @param int $typealias
5020250404 */
50203- public function __construct(int $typename) {
50204- $this->typename = $typename;
50405+ public function __construct(int $typealias) {
50406+ $this->typealias = $typealias;
5020550407 }
5020650408
5020750409 /**
@@ -50209,7 +50411,7 @@ class Typename {
5020950411 * @throws Exception
5021050412 * @return int
5021150413 */
50212- public static function fromTypename(int $value): int {
50414+ public static function fromTypealias(int $value): int {
5021350415 return $value; /*int*/
5021450416 }
5021550417
@@ -50217,11 +50419,11 @@ class Typename {
5021750419 * @throws Exception
5021850420 * @return int
5021950421 */
50220- public function toTypename(): int {
50221- if (Typename::validateTypename($this->typename)) {
50222- return $this->typename; /*int*/
50422+ public function toTypealias(): int {
50423+ if (Typealias::validateTypealias($this->typealias)) {
50424+ return $this->typealias; /*int*/
5022350425 }
50224- throw new Exception('never get to this Typename::typename');
50426+ throw new Exception('never get to this Typealias::typealias');
5022550427 }
5022650428
5022750429 /**
@@ -50229,7 +50431,7 @@ class Typename {
5022950431 * @return bool
5023050432 * @throws Exception
5023150433 */
50232- public static function validateTypename(int $value): bool {
50434+ public static function validateTypealias(int $value): bool {
5023350435 return true;
5023450436 }
5023550437
@@ -50237,18 +50439,18 @@ class Typename {
5023750439 * @throws Exception
5023850440 * @return int
5023950441 */
50240- public function getTypename(): int {
50241- if (Typename::validateTypename($this->typename)) {
50242- return $this->typename;
50442+ public function getTypealias(): int {
50443+ if (Typealias::validateTypealias($this->typealias)) {
50444+ return $this->typealias;
5024350445 }
50244- throw new Exception('never get to getTypename Typename::typename');
50446+ throw new Exception('never get to getTypealias Typealias::typealias');
5024550447 }
5024650448
5024750449 /**
5024850450 * @return int
5024950451 */
50250- public static function sampleTypename(): int {
50251- return 31; /*31:typename*/
50452+ public static function sampleTypealias(): int {
50453+ return 31; /*31:typealias*/
5025250454 }
5025350455
5025450456 /**
@@ -50256,7 +50458,7 @@ class Typename {
5025650458 * @return bool
5025750459 */
5025850460 public function validate(): bool {
50259- return Typename::validateTypename($this->typename);
50461+ return Typealias::validateTypealias($this->typealias);
5026050462 }
5026150463
5026250464 /**
@@ -50265,44 +50467,44 @@ class Typename {
5026550467 */
5026650468 public function to(): stdClass {
5026750469 $out = new stdClass();
50268- $out->{'typename'} = $this->toTypename();
50470+ $out->{'typealias'} = $this->toTypealias();
5026950471 return $out;
5027050472 }
5027150473
5027250474 /**
5027350475 * @param stdClass $obj
50274- * @return Typename
50476+ * @return Typealias
5027550477 * @throws Exception
5027650478 */
50277- public static function from(stdClass $obj): Typename {
50278- if (!property_exists($obj, 'typename')) {
50479+ public static function from(stdClass $obj): Typealias {
50480+ if (!property_exists($obj, 'typealias')) {
5027950481 throw new Exception("Missing required property");
5028050482 }
50281- return new Typename(
50282- Typename::fromTypename($obj->{'typename'})
50483+ return new Typealias(
50484+ Typealias::fromTypealias($obj->{'typealias'})
5028350485 );
5028450486 }
5028550487
5028650488 /**
50287- * @return Typename
50489+ * @return Typealias
5028850490 */
50289- public static function sample(): Typename {
50290- return new Typename(
50291- Typename::sampleTypename()
50491+ public static function sample(): Typealias {
50492+ return new Typealias(
50493+ Typealias::sampleTypealias()
5029250494 );
5029350495 }
5029450496 }
5029550497
50296-// This is an autogenerated file:Typeof
50498+// This is an autogenerated file:Typedef
5029750499
50298-class Typeof {
50299- private int $typeof; // json:typeof Required
50500+class Typedef {
50501+ private int $typedef; // json:typedef Required
5030050502
5030150503 /**
50302- * @param int $typeof
50504+ * @param int $typedef
5030350505 */
50304- public function __construct(int $typeof) {
50305- $this->typeof = $typeof;
50506+ public function __construct(int $typedef) {
50507+ $this->typedef = $typedef;
5030650508 }
5030750509
5030850510 /**
@@ -50310,7 +50512,7 @@ class Typeof {
5031050512 * @throws Exception
5031150513 * @return int
5031250514 */
50313- public static function fromTypeof(int $value): int {
50515+ public static function fromTypedef(int $value): int {
5031450516 return $value; /*int*/
5031550517 }
5031650518
@@ -50318,11 +50520,11 @@ class Typeof {
5031850520 * @throws Exception
5031950521 * @return int
5032050522 */
50321- public function toTypeof(): int {
50322- if (Typeof::validateTypeof($this->typeof)) {
50323- return $this->typeof; /*int*/
50523+ public function toTypedef(): int {
50524+ if (Typedef::validateTypedef($this->typedef)) {
50525+ return $this->typedef; /*int*/
5032450526 }
50325- throw new Exception('never get to this Typeof::typeof');
50527+ throw new Exception('never get to this Typedef::typedef');
5032650528 }
5032750529
5032850530 /**
@@ -50330,7 +50532,7 @@ class Typeof {
5033050532 * @return bool
5033150533 * @throws Exception
5033250534 */
50333- public static function validateTypeof(int $value): bool {
50535+ public static function validateTypedef(int $value): bool {
5033450536 return true;
5033550537 }
5033650538
@@ -50338,18 +50540,18 @@ class Typeof {
5033850540 * @throws Exception
5033950541 * @return int
5034050542 */
50341- public function getTypeof(): int {
50342- if (Typeof::validateTypeof($this->typeof)) {
50343- return $this->typeof;
50543+ public function getTypedef(): int {
50544+ if (Typedef::validateTypedef($this->typedef)) {
50545+ return $this->typedef;
5034450546 }
50345- throw new Exception('never get to getTypeof Typeof::typeof');
50547+ throw new Exception('never get to getTypedef Typedef::typedef');
5034650548 }
5034750549
5034850550 /**
5034950551 * @return int
5035050552 */
50351- public static function sampleTypeof(): int {
50352- return 31; /*31:typeof*/
50553+ public static function sampleTypedef(): int {
50554+ return 31; /*31:typedef*/
5035350555 }
5035450556
5035550557 /**
@@ -50357,7 +50559,7 @@ class Typeof {
5035750559 * @return bool
5035850560 */
5035950561 public function validate(): bool {
50360- return Typeof::validateTypeof($this->typeof);
50562+ return Typedef::validateTypedef($this->typedef);
5036150563 }
5036250564
5036350565 /**
@@ -50366,44 +50568,44 @@ class Typeof {
5036650568 */
5036750569 public function to(): stdClass {
5036850570 $out = new stdClass();
50369- $out->{'typeof'} = $this->toTypeof();
50571+ $out->{'typedef'} = $this->toTypedef();
5037050572 return $out;
5037150573 }
5037250574
5037350575 /**
5037450576 * @param stdClass $obj
50375- * @return Typeof
50577+ * @return Typedef
5037650578 * @throws Exception
5037750579 */
50378- public static function from(stdClass $obj): Typeof {
50379- if (!property_exists($obj, 'typeof')) {
50580+ public static function from(stdClass $obj): Typedef {
50581+ if (!property_exists($obj, 'typedef')) {
5038050582 throw new Exception("Missing required property");
5038150583 }
50382- return new Typeof(
50383- Typeof::fromTypeof($obj->{'typeof'})
50584+ return new Typedef(
50585+ Typedef::fromTypedef($obj->{'typedef'})
5038450586 );
5038550587 }
5038650588
5038750589 /**
50388- * @return Typeof
50590+ * @return Typedef
5038950591 */
50390- public static function sample(): Typeof {
50391- return new Typeof(
50392- Typeof::sampleTypeof()
50592+ public static function sample(): Typedef {
50593+ return new Typedef(
50594+ Typedef::sampleTypedef()
5039350595 );
5039450596 }
5039550597 }
5039650598
50397-// This is an autogenerated file:Uint
50599+// This is an autogenerated file:Typeid
5039850600
50399-class Uint {
50400- private int $uint; // json:uint Required
50601+class Typeid {
50602+ private int $typeid; // json:typeid Required
5040150603
5040250604 /**
50403- * @param int $uint
50605+ * @param int $typeid
5040450606 */
50405- public function __construct(int $uint) {
50406- $this->uint = $uint;
50607+ public function __construct(int $typeid) {
50608+ $this->typeid = $typeid;
5040750609 }
5040850610
5040950611 /**
@@ -50411,7 +50613,7 @@ class Uint {
5041150613 * @throws Exception
5041250614 * @return int
5041350615 */
50414- public static function fromUint(int $value): int {
50616+ public static function fromTypeid(int $value): int {
5041550617 return $value; /*int*/
5041650618 }
5041750619
@@ -50419,11 +50621,11 @@ class Uint {
5041950621 * @throws Exception
5042050622 * @return int
5042150623 */
50422- public function toUint(): int {
50423- if (Uint::validateUint($this->uint)) {
50424- return $this->uint; /*int*/
50624+ public function toTypeid(): int {
50625+ if (Typeid::validateTypeid($this->typeid)) {
50626+ return $this->typeid; /*int*/
5042550627 }
50426- throw new Exception('never get to this Uint::uint');
50628+ throw new Exception('never get to this Typeid::typeid');
5042750629 }
5042850630
5042950631 /**
@@ -50431,7 +50633,7 @@ class Uint {
5043150633 * @return bool
5043250634 * @throws Exception
5043350635 */
50434- public static function validateUint(int $value): bool {
50636+ public static function validateTypeid(int $value): bool {
5043550637 return true;
5043650638 }
5043750639
@@ -50439,18 +50641,18 @@ class Uint {
5043950641 * @throws Exception
5044050642 * @return int
5044150643 */
50442- public function getUint(): int {
50443- if (Uint::validateUint($this->uint)) {
50444- return $this->uint;
50644+ public function getTypeid(): int {
50645+ if (Typeid::validateTypeid($this->typeid)) {
50646+ return $this->typeid;
5044550647 }
50446- throw new Exception('never get to getUint Uint::uint');
50648+ throw new Exception('never get to getTypeid Typeid::typeid');
5044750649 }
5044850650
5044950651 /**
5045050652 * @return int
5045150653 */
50452- public static function sampleUint(): int {
50453- return 31; /*31:uint*/
50654+ public static function sampleTypeid(): int {
50655+ return 31; /*31:typeid*/
5045450656 }
5045550657
5045650658 /**
@@ -50458,7 +50660,7 @@ class Uint {
5045850660 * @return bool
5045950661 */
5046050662 public function validate(): bool {
50461- return Uint::validateUint($this->uint);
50663+ return Typeid::validateTypeid($this->typeid);
5046250664 }
5046350665
5046450666 /**
@@ -50467,44 +50669,44 @@ class Uint {
5046750669 */
5046850670 public function to(): stdClass {
5046950671 $out = new stdClass();
50470- $out->{'uint'} = $this->toUint();
50672+ $out->{'typeid'} = $this->toTypeid();
5047150673 return $out;
5047250674 }
5047350675
5047450676 /**
5047550677 * @param stdClass $obj
50476- * @return Uint
50678+ * @return Typeid
5047750679 * @throws Exception
5047850680 */
50479- public static function from(stdClass $obj): Uint {
50480- if (!property_exists($obj, 'uint')) {
50681+ public static function from(stdClass $obj): Typeid {
50682+ if (!property_exists($obj, 'typeid')) {
5048150683 throw new Exception("Missing required property");
5048250684 }
50483- return new Uint(
50484- Uint::fromUint($obj->{'uint'})
50685+ return new Typeid(
50686+ Typeid::fromTypeid($obj->{'typeid'})
5048550687 );
5048650688 }
5048750689
5048850690 /**
50489- * @return Uint
50691+ * @return Typeid
5049050692 */
50491- public static function sample(): Uint {
50492- return new Uint(
50493- Uint::sampleUint()
50693+ public static function sample(): Typeid {
50694+ return new Typeid(
50695+ Typeid::sampleTypeid()
5049450696 );
5049550697 }
5049650698 }
5049750699
50498-// This is an autogenerated file:Ulong
50700+// This is an autogenerated file:Typename
5049950701
50500-class Ulong {
50501- private int $ulong; // json:ulong Required
50702+class Typename {
50703+ private int $typename; // json:typename Required
5050250704
5050350705 /**
50504- * @param int $ulong
50706+ * @param int $typename
5050550707 */
50506- public function __construct(int $ulong) {
50507- $this->ulong = $ulong;
50708+ public function __construct(int $typename) {
50709+ $this->typename = $typename;
5050850710 }
5050950711
5051050712 /**
@@ -50512,7 +50714,7 @@ class Ulong {
5051250714 * @throws Exception
5051350715 * @return int
5051450716 */
50515- public static function fromUlong(int $value): int {
50717+ public static function fromTypename(int $value): int {
5051650718 return $value; /*int*/
5051750719 }
5051850720
@@ -50520,11 +50722,11 @@ class Ulong {
5052050722 * @throws Exception
5052150723 * @return int
5052250724 */
50523- public function toUlong(): int {
50524- if (Ulong::validateUlong($this->ulong)) {
50525- return $this->ulong; /*int*/
50725+ public function toTypename(): int {
50726+ if (Typename::validateTypename($this->typename)) {
50727+ return $this->typename; /*int*/
5052650728 }
50527- throw new Exception('never get to this Ulong::ulong');
50729+ throw new Exception('never get to this Typename::typename');
5052850730 }
5052950731
5053050732 /**
@@ -50532,7 +50734,7 @@ class Ulong {
5053250734 * @return bool
5053350735 * @throws Exception
5053450736 */
50535- public static function validateUlong(int $value): bool {
50737+ public static function validateTypename(int $value): bool {
5053650738 return true;
5053750739 }
5053850740
@@ -50540,18 +50742,18 @@ class Ulong {
5054050742 * @throws Exception
5054150743 * @return int
5054250744 */
50543- public function getUlong(): int {
50544- if (Ulong::validateUlong($this->ulong)) {
50545- return $this->ulong;
50745+ public function getTypename(): int {
50746+ if (Typename::validateTypename($this->typename)) {
50747+ return $this->typename;
5054650748 }
50547- throw new Exception('never get to getUlong Ulong::ulong');
50749+ throw new Exception('never get to getTypename Typename::typename');
5054850750 }
5054950751
5055050752 /**
5055150753 * @return int
5055250754 */
50553- public static function sampleUlong(): int {
50554- return 31; /*31:ulong*/
50755+ public static function sampleTypename(): int {
50756+ return 31; /*31:typename*/
5055550757 }
5055650758
5055750759 /**
@@ -50559,7 +50761,7 @@ class Ulong {
5055950761 * @return bool
5056050762 */
5056150763 public function validate(): bool {
50562- return Ulong::validateUlong($this->ulong);
50764+ return Typename::validateTypename($this->typename);
5056350765 }
5056450766
5056550767 /**
@@ -50568,44 +50770,44 @@ class Ulong {
5056850770 */
5056950771 public function to(): stdClass {
5057050772 $out = new stdClass();
50571- $out->{'ulong'} = $this->toUlong();
50773+ $out->{'typename'} = $this->toTypename();
5057250774 return $out;
5057350775 }
5057450776
5057550777 /**
5057650778 * @param stdClass $obj
50577- * @return Ulong
50779+ * @return Typename
5057850780 * @throws Exception
5057950781 */
50580- public static function from(stdClass $obj): Ulong {
50581- if (!property_exists($obj, 'ulong')) {
50782+ public static function from(stdClass $obj): Typename {
50783+ if (!property_exists($obj, 'typename')) {
5058250784 throw new Exception("Missing required property");
5058350785 }
50584- return new Ulong(
50585- Ulong::fromUlong($obj->{'ulong'})
50786+ return new Typename(
50787+ Typename::fromTypename($obj->{'typename'})
5058650788 );
5058750789 }
5058850790
5058950791 /**
50590- * @return Ulong
50792+ * @return Typename
5059150793 */
50592- public static function sample(): Ulong {
50593- return new Ulong(
50594- Ulong::sampleUlong()
50794+ public static function sample(): Typename {
50795+ return new Typename(
50796+ Typename::sampleTypename()
5059550797 );
5059650798 }
5059750799 }
5059850800
50599-// This is an autogenerated file:Unchecked
50801+// This is an autogenerated file:Typeof
5060050802
50601-class Unchecked {
50602- private int $unchecked; // json:unchecked Required
50803+class Typeof {
50804+ private int $typeof; // json:typeof Required
5060350805
5060450806 /**
50605- * @param int $unchecked
50807+ * @param int $typeof
5060650808 */
50607- public function __construct(int $unchecked) {
50608- $this->unchecked = $unchecked;
50809+ public function __construct(int $typeof) {
50810+ $this->typeof = $typeof;
5060950811 }
5061050812
5061150813 /**
@@ -50613,7 +50815,7 @@ class Unchecked {
5061350815 * @throws Exception
5061450816 * @return int
5061550817 */
50616- public static function fromUnchecked(int $value): int {
50818+ public static function fromTypeof(int $value): int {
5061750819 return $value; /*int*/
5061850820 }
5061950821
@@ -50621,11 +50823,11 @@ class Unchecked {
5062150823 * @throws Exception
5062250824 * @return int
5062350825 */
50624- public function toUnchecked(): int {
50625- if (Unchecked::validateUnchecked($this->unchecked)) {
50626- return $this->unchecked; /*int*/
50826+ public function toTypeof(): int {
50827+ if (Typeof::validateTypeof($this->typeof)) {
50828+ return $this->typeof; /*int*/
5062750829 }
50628- throw new Exception('never get to this Unchecked::unchecked');
50830+ throw new Exception('never get to this Typeof::typeof');
5062950831 }
5063050832
5063150833 /**
@@ -50633,7 +50835,7 @@ class Unchecked {
5063350835 * @return bool
5063450836 * @throws Exception
5063550837 */
50636- public static function validateUnchecked(int $value): bool {
50838+ public static function validateTypeof(int $value): bool {
5063750839 return true;
5063850840 }
5063950841
@@ -50641,18 +50843,18 @@ class Unchecked {
5064150843 * @throws Exception
5064250844 * @return int
5064350845 */
50644- public function getUnchecked(): int {
50645- if (Unchecked::validateUnchecked($this->unchecked)) {
50646- return $this->unchecked;
50846+ public function getTypeof(): int {
50847+ if (Typeof::validateTypeof($this->typeof)) {
50848+ return $this->typeof;
5064750849 }
50648- throw new Exception('never get to getUnchecked Unchecked::unchecked');
50850+ throw new Exception('never get to getTypeof Typeof::typeof');
5064950851 }
5065050852
5065150853 /**
5065250854 * @return int
5065350855 */
50654- public static function sampleUnchecked(): int {
50655- return 31; /*31:unchecked*/
50856+ public static function sampleTypeof(): int {
50857+ return 31; /*31:typeof*/
5065650858 }
5065750859
5065850860 /**
@@ -50660,7 +50862,7 @@ class Unchecked {
5066050862 * @return bool
5066150863 */
5066250864 public function validate(): bool {
50663- return Unchecked::validateUnchecked($this->unchecked);
50865+ return Typeof::validateTypeof($this->typeof);
5066450866 }
5066550867
5066650868 /**
@@ -50669,44 +50871,44 @@ class Unchecked {
5066950871 */
5067050872 public function to(): stdClass {
5067150873 $out = new stdClass();
50672- $out->{'unchecked'} = $this->toUnchecked();
50874+ $out->{'typeof'} = $this->toTypeof();
5067350875 return $out;
5067450876 }
5067550877
5067650878 /**
5067750879 * @param stdClass $obj
50678- * @return Unchecked
50880+ * @return Typeof
5067950881 * @throws Exception
5068050882 */
50681- public static function from(stdClass $obj): Unchecked {
50682- if (!property_exists($obj, 'unchecked')) {
50883+ public static function from(stdClass $obj): Typeof {
50884+ if (!property_exists($obj, 'typeof')) {
5068350885 throw new Exception("Missing required property");
5068450886 }
50685- return new Unchecked(
50686- Unchecked::fromUnchecked($obj->{'unchecked'})
50887+ return new Typeof(
50888+ Typeof::fromTypeof($obj->{'typeof'})
5068750889 );
5068850890 }
5068950891
5069050892 /**
50691- * @return Unchecked
50893+ * @return Typeof
5069250894 */
50693- public static function sample(): Unchecked {
50694- return new Unchecked(
50695- Unchecked::sampleUnchecked()
50895+ public static function sample(): Typeof {
50896+ return new Typeof(
50897+ Typeof::sampleTypeof()
5069650898 );
5069750899 }
5069850900 }
5069950901
50700-// This is an autogenerated file:Undefined
50902+// This is an autogenerated file:Uint
5070150903
50702-class Undefined {
50703- private int $undefined; // json:undefined Required
50904+class Uint {
50905+ private int $uint; // json:uint Required
5070450906
5070550907 /**
50706- * @param int $undefined
50908+ * @param int $uint
5070750909 */
50708- public function __construct(int $undefined) {
50709- $this->undefined = $undefined;
50910+ public function __construct(int $uint) {
50911+ $this->uint = $uint;
5071050912 }
5071150913
5071250914 /**
@@ -50714,7 +50916,7 @@ class Undefined {
5071450916 * @throws Exception
5071550917 * @return int
5071650918 */
50717- public static function fromUndefined(int $value): int {
50919+ public static function fromUint(int $value): int {
5071850920 return $value; /*int*/
5071950921 }
5072050922
@@ -50722,11 +50924,11 @@ class Undefined {
5072250924 * @throws Exception
5072350925 * @return int
5072450926 */
50725- public function toUndefined(): int {
50726- if (Undefined::validateUndefined($this->undefined)) {
50727- return $this->undefined; /*int*/
50927+ public function toUint(): int {
50928+ if (Uint::validateUint($this->uint)) {
50929+ return $this->uint; /*int*/
5072850930 }
50729- throw new Exception('never get to this Undefined::undefined');
50931+ throw new Exception('never get to this Uint::uint');
5073050932 }
5073150933
5073250934 /**
@@ -50734,7 +50936,7 @@ class Undefined {
5073450936 * @return bool
5073550937 * @throws Exception
5073650938 */
50737- public static function validateUndefined(int $value): bool {
50939+ public static function validateUint(int $value): bool {
5073850940 return true;
5073950941 }
5074050942
@@ -50742,18 +50944,18 @@ class Undefined {
5074250944 * @throws Exception
5074350945 * @return int
5074450946 */
50745- public function getUndefined(): int {
50746- if (Undefined::validateUndefined($this->undefined)) {
50747- return $this->undefined;
50947+ public function getUint(): int {
50948+ if (Uint::validateUint($this->uint)) {
50949+ return $this->uint;
5074850950 }
50749- throw new Exception('never get to getUndefined Undefined::undefined');
50951+ throw new Exception('never get to getUint Uint::uint');
5075050952 }
5075150953
5075250954 /**
5075350955 * @return int
5075450956 */
50755- public static function sampleUndefined(): int {
50756- return 31; /*31:undefined*/
50957+ public static function sampleUint(): int {
50958+ return 31; /*31:uint*/
5075750959 }
5075850960
5075950961 /**
@@ -50761,7 +50963,7 @@ class Undefined {
5076150963 * @return bool
5076250964 */
5076350965 public function validate(): bool {
50764- return Undefined::validateUndefined($this->undefined);
50966+ return Uint::validateUint($this->uint);
5076550967 }
5076650968
5076750969 /**
@@ -50770,44 +50972,44 @@ class Undefined {
5077050972 */
5077150973 public function to(): stdClass {
5077250974 $out = new stdClass();
50773- $out->{'undefined'} = $this->toUndefined();
50975+ $out->{'uint'} = $this->toUint();
5077450976 return $out;
5077550977 }
5077650978
5077750979 /**
5077850980 * @param stdClass $obj
50779- * @return Undefined
50981+ * @return Uint
5078050982 * @throws Exception
5078150983 */
50782- public static function from(stdClass $obj): Undefined {
50783- if (!property_exists($obj, 'undefined')) {
50984+ public static function from(stdClass $obj): Uint {
50985+ if (!property_exists($obj, 'uint')) {
5078450986 throw new Exception("Missing required property");
5078550987 }
50786- return new Undefined(
50787- Undefined::fromUndefined($obj->{'undefined'})
50988+ return new Uint(
50989+ Uint::fromUint($obj->{'uint'})
5078850990 );
5078950991 }
5079050992
5079150993 /**
50792- * @return Undefined
50994+ * @return Uint
5079350995 */
50794- public static function sample(): Undefined {
50795- return new Undefined(
50796- Undefined::sampleUndefined()
50797- );
50798- }
50996+ public static function sample(): Uint {
50997+ return new Uint(
50998+ Uint::sampleUint()
50999+ );
51000+ }
5079951001 }
5080051002
50801-// This is an autogenerated file:Union
51003+// This is an autogenerated file:Ulong
5080251004
50803-class Union {
50804- private int $union; // json:union Required
51005+class Ulong {
51006+ private int $ulong; // json:ulong Required
5080551007
5080651008 /**
50807- * @param int $union
51009+ * @param int $ulong
5080851010 */
50809- public function __construct(int $union) {
50810- $this->union = $union;
51011+ public function __construct(int $ulong) {
51012+ $this->ulong = $ulong;
5081151013 }
5081251014
5081351015 /**
@@ -50815,7 +51017,7 @@ class Union {
5081551017 * @throws Exception
5081651018 * @return int
5081751019 */
50818- public static function fromUnion(int $value): int {
51020+ public static function fromUlong(int $value): int {
5081951021 return $value; /*int*/
5082051022 }
5082151023
@@ -50823,11 +51025,11 @@ class Union {
5082351025 * @throws Exception
5082451026 * @return int
5082551027 */
50826- public function toUnion(): int {
50827- if (Union::validateUnion($this->union)) {
50828- return $this->union; /*int*/
51028+ public function toUlong(): int {
51029+ if (Ulong::validateUlong($this->ulong)) {
51030+ return $this->ulong; /*int*/
5082951031 }
50830- throw new Exception('never get to this Union::union');
51032+ throw new Exception('never get to this Ulong::ulong');
5083151033 }
5083251034
5083351035 /**
@@ -50835,7 +51037,7 @@ class Union {
5083551037 * @return bool
5083651038 * @throws Exception
5083751039 */
50838- public static function validateUnion(int $value): bool {
51040+ public static function validateUlong(int $value): bool {
5083951041 return true;
5084051042 }
5084151043
@@ -50843,18 +51045,18 @@ class Union {
5084351045 * @throws Exception
5084451046 * @return int
5084551047 */
50846- public function getUnion(): int {
50847- if (Union::validateUnion($this->union)) {
50848- return $this->union;
51048+ public function getUlong(): int {
51049+ if (Ulong::validateUlong($this->ulong)) {
51050+ return $this->ulong;
5084951051 }
50850- throw new Exception('never get to getUnion Union::union');
51052+ throw new Exception('never get to getUlong Ulong::ulong');
5085151053 }
5085251054
5085351055 /**
5085451056 * @return int
5085551057 */
50856- public static function sampleUnion(): int {
50857- return 31; /*31:union*/
51058+ public static function sampleUlong(): int {
51059+ return 31; /*31:ulong*/
5085851060 }
5085951061
5086051062 /**
@@ -50862,7 +51064,7 @@ class Union {
5086251064 * @return bool
5086351065 */
5086451066 public function validate(): bool {
50865- return Union::validateUnion($this->union);
51067+ return Ulong::validateUlong($this->ulong);
5086651068 }
5086751069
5086851070 /**
@@ -50871,44 +51073,44 @@ class Union {
5087151073 */
5087251074 public function to(): stdClass {
5087351075 $out = new stdClass();
50874- $out->{'union'} = $this->toUnion();
51076+ $out->{'ulong'} = $this->toUlong();
5087551077 return $out;
5087651078 }
5087751079
5087851080 /**
5087951081 * @param stdClass $obj
50880- * @return Union
51082+ * @return Ulong
5088151083 * @throws Exception
5088251084 */
50883- public static function from(stdClass $obj): Union {
50884- if (!property_exists($obj, 'union')) {
51085+ public static function from(stdClass $obj): Ulong {
51086+ if (!property_exists($obj, 'ulong')) {
5088551087 throw new Exception("Missing required property");
5088651088 }
50887- return new Union(
50888- Union::fromUnion($obj->{'union'})
51089+ return new Ulong(
51090+ Ulong::fromUlong($obj->{'ulong'})
5088951091 );
5089051092 }
5089151093
5089251094 /**
50893- * @return Union
51095+ * @return Ulong
5089451096 */
50895- public static function sample(): Union {
50896- return new Union(
50897- Union::sampleUnion()
51097+ public static function sample(): Ulong {
51098+ return new Ulong(
51099+ Ulong::sampleUlong()
5089851100 );
5089951101 }
5090051102 }
5090151103
50902-// This is an autogenerated file:Unowned
51104+// This is an autogenerated file:Unchecked
5090351105
50904-class Unowned {
50905- private int $unowned; // json:unowned Required
51106+class Unchecked {
51107+ private int $unchecked; // json:unchecked Required
5090651108
5090751109 /**
50908- * @param int $unowned
51110+ * @param int $unchecked
5090951111 */
50910- public function __construct(int $unowned) {
50911- $this->unowned = $unowned;
51112+ public function __construct(int $unchecked) {
51113+ $this->unchecked = $unchecked;
5091251114 }
5091351115
5091451116 /**
@@ -50916,7 +51118,7 @@ class Unowned {
5091651118 * @throws Exception
5091751119 * @return int
5091851120 */
50919- public static function fromUnowned(int $value): int {
51121+ public static function fromUnchecked(int $value): int {
5092051122 return $value; /*int*/
5092151123 }
5092251124
@@ -50924,11 +51126,11 @@ class Unowned {
5092451126 * @throws Exception
5092551127 * @return int
5092651128 */
50927- public function toUnowned(): int {
50928- if (Unowned::validateUnowned($this->unowned)) {
50929- return $this->unowned; /*int*/
51129+ public function toUnchecked(): int {
51130+ if (Unchecked::validateUnchecked($this->unchecked)) {
51131+ return $this->unchecked; /*int*/
5093051132 }
50931- throw new Exception('never get to this Unowned::unowned');
51133+ throw new Exception('never get to this Unchecked::unchecked');
5093251134 }
5093351135
5093451136 /**
@@ -50936,7 +51138,7 @@ class Unowned {
5093651138 * @return bool
5093751139 * @throws Exception
5093851140 */
50939- public static function validateUnowned(int $value): bool {
51141+ public static function validateUnchecked(int $value): bool {
5094051142 return true;
5094151143 }
5094251144
@@ -50944,18 +51146,18 @@ class Unowned {
5094451146 * @throws Exception
5094551147 * @return int
5094651148 */
50947- public function getUnowned(): int {
50948- if (Unowned::validateUnowned($this->unowned)) {
50949- return $this->unowned;
51149+ public function getUnchecked(): int {
51150+ if (Unchecked::validateUnchecked($this->unchecked)) {
51151+ return $this->unchecked;
5095051152 }
50951- throw new Exception('never get to getUnowned Unowned::unowned');
51153+ throw new Exception('never get to getUnchecked Unchecked::unchecked');
5095251154 }
5095351155
5095451156 /**
5095551157 * @return int
5095651158 */
50957- public static function sampleUnowned(): int {
50958- return 31; /*31:unowned*/
51159+ public static function sampleUnchecked(): int {
51160+ return 31; /*31:unchecked*/
5095951161 }
5096051162
5096151163 /**
@@ -50963,7 +51165,7 @@ class Unowned {
5096351165 * @return bool
5096451166 */
5096551167 public function validate(): bool {
50966- return Unowned::validateUnowned($this->unowned);
51168+ return Unchecked::validateUnchecked($this->unchecked);
5096751169 }
5096851170
5096951171 /**
@@ -50972,44 +51174,44 @@ class Unowned {
5097251174 */
5097351175 public function to(): stdClass {
5097451176 $out = new stdClass();
50975- $out->{'unowned'} = $this->toUnowned();
51177+ $out->{'unchecked'} = $this->toUnchecked();
5097651178 return $out;
5097751179 }
5097851180
5097951181 /**
5098051182 * @param stdClass $obj
50981- * @return Unowned
51183+ * @return Unchecked
5098251184 * @throws Exception
5098351185 */
50984- public static function from(stdClass $obj): Unowned {
50985- if (!property_exists($obj, 'unowned')) {
51186+ public static function from(stdClass $obj): Unchecked {
51187+ if (!property_exists($obj, 'unchecked')) {
5098651188 throw new Exception("Missing required property");
5098751189 }
50988- return new Unowned(
50989- Unowned::fromUnowned($obj->{'unowned'})
51190+ return new Unchecked(
51191+ Unchecked::fromUnchecked($obj->{'unchecked'})
5099051192 );
5099151193 }
5099251194
5099351195 /**
50994- * @return Unowned
51196+ * @return Unchecked
5099551197 */
50996- public static function sample(): Unowned {
50997- return new Unowned(
50998- Unowned::sampleUnowned()
51198+ public static function sample(): Unchecked {
51199+ return new Unchecked(
51200+ Unchecked::sampleUnchecked()
5099951201 );
5100051202 }
5100151203 }
5100251204
51003-// This is an autogenerated file:Unsafe
51205+// This is an autogenerated file:Undefined
5100451206
51005-class Unsafe {
51006- private int $unsafe; // json:unsafe Required
51207+class Undefined {
51208+ private int $undefined; // json:undefined Required
5100751209
5100851210 /**
51009- * @param int $unsafe
51211+ * @param int $undefined
5101051212 */
51011- public function __construct(int $unsafe) {
51012- $this->unsafe = $unsafe;
51213+ public function __construct(int $undefined) {
51214+ $this->undefined = $undefined;
5101351215 }
5101451216
5101551217 /**
@@ -51017,7 +51219,7 @@ class Unsafe {
5101751219 * @throws Exception
5101851220 * @return int
5101951221 */
51020- public static function fromUnsafe(int $value): int {
51222+ public static function fromUndefined(int $value): int {
5102151223 return $value; /*int*/
5102251224 }
5102351225
@@ -51025,11 +51227,11 @@ class Unsafe {
5102551227 * @throws Exception
5102651228 * @return int
5102751229 */
51028- public function toUnsafe(): int {
51029- if (Unsafe::validateUnsafe($this->unsafe)) {
51030- return $this->unsafe; /*int*/
51230+ public function toUndefined(): int {
51231+ if (Undefined::validateUndefined($this->undefined)) {
51232+ return $this->undefined; /*int*/
5103151233 }
51032- throw new Exception('never get to this Unsafe::unsafe');
51234+ throw new Exception('never get to this Undefined::undefined');
5103351235 }
5103451236
5103551237 /**
@@ -51037,7 +51239,7 @@ class Unsafe {
5103751239 * @return bool
5103851240 * @throws Exception
5103951241 */
51040- public static function validateUnsafe(int $value): bool {
51242+ public static function validateUndefined(int $value): bool {
5104151243 return true;
5104251244 }
5104351245
@@ -51045,18 +51247,18 @@ class Unsafe {
5104551247 * @throws Exception
5104651248 * @return int
5104751249 */
51048- public function getUnsafe(): int {
51049- if (Unsafe::validateUnsafe($this->unsafe)) {
51050- return $this->unsafe;
51250+ public function getUndefined(): int {
51251+ if (Undefined::validateUndefined($this->undefined)) {
51252+ return $this->undefined;
5105151253 }
51052- throw new Exception('never get to getUnsafe Unsafe::unsafe');
51254+ throw new Exception('never get to getUndefined Undefined::undefined');
5105351255 }
5105451256
5105551257 /**
5105651258 * @return int
5105751259 */
51058- public static function sampleUnsafe(): int {
51059- return 31; /*31:unsafe*/
51260+ public static function sampleUndefined(): int {
51261+ return 31; /*31:undefined*/
5106051262 }
5106151263
5106251264 /**
@@ -51064,7 +51266,7 @@ class Unsafe {
5106451266 * @return bool
5106551267 */
5106651268 public function validate(): bool {
51067- return Unsafe::validateUnsafe($this->unsafe);
51269+ return Undefined::validateUndefined($this->undefined);
5106851270 }
5106951271
5107051272 /**
@@ -51073,44 +51275,44 @@ class Unsafe {
5107351275 */
5107451276 public function to(): stdClass {
5107551277 $out = new stdClass();
51076- $out->{'unsafe'} = $this->toUnsafe();
51278+ $out->{'undefined'} = $this->toUndefined();
5107751279 return $out;
5107851280 }
5107951281
5108051282 /**
5108151283 * @param stdClass $obj
51082- * @return Unsafe
51284+ * @return Undefined
5108351285 * @throws Exception
5108451286 */
51085- public static function from(stdClass $obj): Unsafe {
51086- if (!property_exists($obj, 'unsafe')) {
51287+ public static function from(stdClass $obj): Undefined {
51288+ if (!property_exists($obj, 'undefined')) {
5108751289 throw new Exception("Missing required property");
5108851290 }
51089- return new Unsafe(
51090- Unsafe::fromUnsafe($obj->{'unsafe'})
51291+ return new Undefined(
51292+ Undefined::fromUndefined($obj->{'undefined'})
5109151293 );
5109251294 }
5109351295
5109451296 /**
51095- * @return Unsafe
51297+ * @return Undefined
5109651298 */
51097- public static function sample(): Unsafe {
51098- return new Unsafe(
51099- Unsafe::sampleUnsafe()
51299+ public static function sample(): Undefined {
51300+ return new Undefined(
51301+ Undefined::sampleUndefined()
5110051302 );
5110151303 }
5110251304 }
5110351305
51104-// This is an autogenerated file:Unsigned
51306+// This is an autogenerated file:Union
5110551307
51106-class Unsigned {
51107- private int $unsigned; // json:unsigned Required
51308+class Union {
51309+ private int $union; // json:union Required
5110851310
5110951311 /**
51110- * @param int $unsigned
51312+ * @param int $union
5111151313 */
51112- public function __construct(int $unsigned) {
51113- $this->unsigned = $unsigned;
51314+ public function __construct(int $union) {
51315+ $this->union = $union;
5111451316 }
5111551317
5111651318 /**
@@ -51118,7 +51320,7 @@ class Unsigned {
5111851320 * @throws Exception
5111951321 * @return int
5112051322 */
51121- public static function fromUnsigned(int $value): int {
51323+ public static function fromUnion(int $value): int {
5112251324 return $value; /*int*/
5112351325 }
5112451326
@@ -51126,11 +51328,11 @@ class Unsigned {
5112651328 * @throws Exception
5112751329 * @return int
5112851330 */
51129- public function toUnsigned(): int {
51130- if (Unsigned::validateUnsigned($this->unsigned)) {
51131- return $this->unsigned; /*int*/
51331+ public function toUnion(): int {
51332+ if (Union::validateUnion($this->union)) {
51333+ return $this->union; /*int*/
5113251334 }
51133- throw new Exception('never get to this Unsigned::unsigned');
51335+ throw new Exception('never get to this Union::union');
5113451336 }
5113551337
5113651338 /**
@@ -51138,7 +51340,7 @@ class Unsigned {
5113851340 * @return bool
5113951341 * @throws Exception
5114051342 */
51141- public static function validateUnsigned(int $value): bool {
51343+ public static function validateUnion(int $value): bool {
5114251344 return true;
5114351345 }
5114451346
@@ -51146,18 +51348,18 @@ class Unsigned {
5114651348 * @throws Exception
5114751349 * @return int
5114851350 */
51149- public function getUnsigned(): int {
51150- if (Unsigned::validateUnsigned($this->unsigned)) {
51151- return $this->unsigned;
51351+ public function getUnion(): int {
51352+ if (Union::validateUnion($this->union)) {
51353+ return $this->union;
5115251354 }
51153- throw new Exception('never get to getUnsigned Unsigned::unsigned');
51355+ throw new Exception('never get to getUnion Union::union');
5115451356 }
5115551357
5115651358 /**
5115751359 * @return int
5115851360 */
51159- public static function sampleUnsigned(): int {
51160- return 31; /*31:unsigned*/
51361+ public static function sampleUnion(): int {
51362+ return 31; /*31:union*/
5116151363 }
5116251364
5116351365 /**
@@ -51165,7 +51367,7 @@ class Unsigned {
5116551367 * @return bool
5116651368 */
5116751369 public function validate(): bool {
51168- return Unsigned::validateUnsigned($this->unsigned);
51370+ return Union::validateUnion($this->union);
5116951371 }
5117051372
5117151373 /**
@@ -51174,44 +51376,44 @@ class Unsigned {
5117451376 */
5117551377 public function to(): stdClass {
5117651378 $out = new stdClass();
51177- $out->{'unsigned'} = $this->toUnsigned();
51379+ $out->{'union'} = $this->toUnion();
5117851380 return $out;
5117951381 }
5118051382
5118151383 /**
5118251384 * @param stdClass $obj
51183- * @return Unsigned
51385+ * @return Union
5118451386 * @throws Exception
5118551387 */
51186- public static function from(stdClass $obj): Unsigned {
51187- if (!property_exists($obj, 'unsigned')) {
51388+ public static function from(stdClass $obj): Union {
51389+ if (!property_exists($obj, 'union')) {
5118851390 throw new Exception("Missing required property");
5118951391 }
51190- return new Unsigned(
51191- Unsigned::fromUnsigned($obj->{'unsigned'})
51392+ return new Union(
51393+ Union::fromUnion($obj->{'union'})
5119251394 );
5119351395 }
5119451396
5119551397 /**
51196- * @return Unsigned
51398+ * @return Union
5119751399 */
51198- public static function sample(): Unsigned {
51199- return new Unsigned(
51200- Unsigned::sampleUnsigned()
51400+ public static function sample(): Union {
51401+ return new Union(
51402+ Union::sampleUnion()
5120151403 );
5120251404 }
5120351405 }
5120451406
51205-// This is an autogenerated file:Ushort
51407+// This is an autogenerated file:Unowned
5120651408
51207-class Ushort {
51208- private int $ushort; // json:ushort Required
51409+class Unowned {
51410+ private int $unowned; // json:unowned Required
5120951411
5121051412 /**
51211- * @param int $ushort
51413+ * @param int $unowned
5121251414 */
51213- public function __construct(int $ushort) {
51214- $this->ushort = $ushort;
51415+ public function __construct(int $unowned) {
51416+ $this->unowned = $unowned;
5121551417 }
5121651418
5121751419 /**
@@ -51219,7 +51421,7 @@ class Ushort {
5121951421 * @throws Exception
5122051422 * @return int
5122151423 */
51222- public static function fromUshort(int $value): int {
51424+ public static function fromUnowned(int $value): int {
5122351425 return $value; /*int*/
5122451426 }
5122551427
@@ -51227,11 +51429,11 @@ class Ushort {
5122751429 * @throws Exception
5122851430 * @return int
5122951431 */
51230- public function toUshort(): int {
51231- if (Ushort::validateUshort($this->ushort)) {
51232- return $this->ushort; /*int*/
51233- }
51234- throw new Exception('never get to this Ushort::ushort');
51432+ public function toUnowned(): int {
51433+ if (Unowned::validateUnowned($this->unowned)) {
51434+ return $this->unowned; /*int*/
51435+ }
51436+ throw new Exception('never get to this Unowned::unowned');
5123551437 }
5123651438
5123751439 /**
@@ -51239,7 +51441,7 @@ class Ushort {
5123951441 * @return bool
5124051442 * @throws Exception
5124151443 */
51242- public static function validateUshort(int $value): bool {
51444+ public static function validateUnowned(int $value): bool {
5124351445 return true;
5124451446 }
5124551447
@@ -51247,18 +51449,18 @@ class Ushort {
5124751449 * @throws Exception
5124851450 * @return int
5124951451 */
51250- public function getUshort(): int {
51251- if (Ushort::validateUshort($this->ushort)) {
51252- return $this->ushort;
51452+ public function getUnowned(): int {
51453+ if (Unowned::validateUnowned($this->unowned)) {
51454+ return $this->unowned;
5125351455 }
51254- throw new Exception('never get to getUshort Ushort::ushort');
51456+ throw new Exception('never get to getUnowned Unowned::unowned');
5125551457 }
5125651458
5125751459 /**
5125851460 * @return int
5125951461 */
51260- public static function sampleUshort(): int {
51261- return 31; /*31:ushort*/
51462+ public static function sampleUnowned(): int {
51463+ return 31; /*31:unowned*/
5126251464 }
5126351465
5126451466 /**
@@ -51266,7 +51468,7 @@ class Ushort {
5126651468 * @return bool
5126751469 */
5126851470 public function validate(): bool {
51269- return Ushort::validateUshort($this->ushort);
51471+ return Unowned::validateUnowned($this->unowned);
5127051472 }
5127151473
5127251474 /**
@@ -51275,44 +51477,44 @@ class Ushort {
5127551477 */
5127651478 public function to(): stdClass {
5127751479 $out = new stdClass();
51278- $out->{'ushort'} = $this->toUshort();
51480+ $out->{'unowned'} = $this->toUnowned();
5127951481 return $out;
5128051482 }
5128151483
5128251484 /**
5128351485 * @param stdClass $obj
51284- * @return Ushort
51486+ * @return Unowned
5128551487 * @throws Exception
5128651488 */
51287- public static function from(stdClass $obj): Ushort {
51288- if (!property_exists($obj, 'ushort')) {
51489+ public static function from(stdClass $obj): Unowned {
51490+ if (!property_exists($obj, 'unowned')) {
5128951491 throw new Exception("Missing required property");
5129051492 }
51291- return new Ushort(
51292- Ushort::fromUshort($obj->{'ushort'})
51493+ return new Unowned(
51494+ Unowned::fromUnowned($obj->{'unowned'})
5129351495 );
5129451496 }
5129551497
5129651498 /**
51297- * @return Ushort
51499+ * @return Unowned
5129851500 */
51299- public static function sample(): Ushort {
51300- return new Ushort(
51301- Ushort::sampleUshort()
51501+ public static function sample(): Unowned {
51502+ return new Unowned(
51503+ Unowned::sampleUnowned()
5130251504 );
5130351505 }
5130451506 }
5130551507
51306-// This is an autogenerated file:Using
51508+// This is an autogenerated file:Unsafe
5130751509
51308-class Using {
51309- private int $using; // json:using Required
51510+class Unsafe {
51511+ private int $unsafe; // json:unsafe Required
5131051512
5131151513 /**
51312- * @param int $using
51514+ * @param int $unsafe
5131351515 */
51314- public function __construct(int $using) {
51315- $this->using = $using;
51516+ public function __construct(int $unsafe) {
51517+ $this->unsafe = $unsafe;
5131651518 }
5131751519
5131851520 /**
@@ -51320,7 +51522,7 @@ class Using {
5132051522 * @throws Exception
5132151523 * @return int
5132251524 */
51323- public static function fromUsing(int $value): int {
51525+ public static function fromUnsafe(int $value): int {
5132451526 return $value; /*int*/
5132551527 }
5132651528
@@ -51328,11 +51530,11 @@ class Using {
5132851530 * @throws Exception
5132951531 * @return int
5133051532 */
51331- public function toUsing(): int {
51332- if (Using::validateUsing($this->using)) {
51333- return $this->using; /*int*/
51533+ public function toUnsafe(): int {
51534+ if (Unsafe::validateUnsafe($this->unsafe)) {
51535+ return $this->unsafe; /*int*/
5133451536 }
51335- throw new Exception('never get to this Using::using');
51537+ throw new Exception('never get to this Unsafe::unsafe');
5133651538 }
5133751539
5133851540 /**
@@ -51340,7 +51542,7 @@ class Using {
5134051542 * @return bool
5134151543 * @throws Exception
5134251544 */
51343- public static function validateUsing(int $value): bool {
51545+ public static function validateUnsafe(int $value): bool {
5134451546 return true;
5134551547 }
5134651548
@@ -51348,18 +51550,18 @@ class Using {
5134851550 * @throws Exception
5134951551 * @return int
5135051552 */
51351- public function getUsing(): int {
51352- if (Using::validateUsing($this->using)) {
51353- return $this->using;
51553+ public function getUnsafe(): int {
51554+ if (Unsafe::validateUnsafe($this->unsafe)) {
51555+ return $this->unsafe;
5135451556 }
51355- throw new Exception('never get to getUsing Using::using');
51557+ throw new Exception('never get to getUnsafe Unsafe::unsafe');
5135651558 }
5135751559
5135851560 /**
5135951561 * @return int
5136051562 */
51361- public static function sampleUsing(): int {
51362- return 31; /*31:using*/
51563+ public static function sampleUnsafe(): int {
51564+ return 31; /*31:unsafe*/
5136351565 }
5136451566
5136551567 /**
@@ -51367,7 +51569,7 @@ class Using {
5136751569 * @return bool
5136851570 */
5136951571 public function validate(): bool {
51370- return Using::validateUsing($this->using);
51572+ return Unsafe::validateUnsafe($this->unsafe);
5137151573 }
5137251574
5137351575 /**
@@ -51376,44 +51578,44 @@ class Using {
5137651578 */
5137751579 public function to(): stdClass {
5137851580 $out = new stdClass();
51379- $out->{'using'} = $this->toUsing();
51581+ $out->{'unsafe'} = $this->toUnsafe();
5138051582 return $out;
5138151583 }
5138251584
5138351585 /**
5138451586 * @param stdClass $obj
51385- * @return Using
51587+ * @return Unsafe
5138651588 * @throws Exception
5138751589 */
51388- public static function from(stdClass $obj): Using {
51389- if (!property_exists($obj, 'using')) {
51590+ public static function from(stdClass $obj): Unsafe {
51591+ if (!property_exists($obj, 'unsafe')) {
5139051592 throw new Exception("Missing required property");
5139151593 }
51392- return new Using(
51393- Using::fromUsing($obj->{'using'})
51594+ return new Unsafe(
51595+ Unsafe::fromUnsafe($obj->{'unsafe'})
5139451596 );
5139551597 }
5139651598
5139751599 /**
51398- * @return Using
51600+ * @return Unsafe
5139951601 */
51400- public static function sample(): Using {
51401- return new Using(
51402- Using::sampleUsing()
51602+ public static function sample(): Unsafe {
51603+ return new Unsafe(
51604+ Unsafe::sampleUnsafe()
5140351605 );
5140451606 }
5140551607 }
5140651608
51407-// This is an autogenerated file:Utf8JSONReader
51609+// This is an autogenerated file:Unsigned
5140851610
51409-class Utf8JSONReader {
51410- private int $utf8JSONReader; // json:Utf8JsonReader Required
51611+class Unsigned {
51612+ private int $unsigned; // json:unsigned Required
5141151613
5141251614 /**
51413- * @param int $utf8JSONReader
51615+ * @param int $unsigned
5141451616 */
51415- public function __construct(int $utf8JSONReader) {
51416- $this->utf8JSONReader = $utf8JSONReader;
51617+ public function __construct(int $unsigned) {
51618+ $this->unsigned = $unsigned;
5141751619 }
5141851620
5141951621 /**
@@ -51421,7 +51623,7 @@ class Utf8JSONReader {
5142151623 * @throws Exception
5142251624 * @return int
5142351625 */
51424- public static function fromUtf8JSONReader(int $value): int {
51626+ public static function fromUnsigned(int $value): int {
5142551627 return $value; /*int*/
5142651628 }
5142751629
@@ -51429,11 +51631,11 @@ class Utf8JSONReader {
5142951631 * @throws Exception
5143051632 * @return int
5143151633 */
51432- public function toUtf8JSONReader(): int {
51433- if (Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader)) {
51434- return $this->utf8JSONReader; /*int*/
51634+ public function toUnsigned(): int {
51635+ if (Unsigned::validateUnsigned($this->unsigned)) {
51636+ return $this->unsigned; /*int*/
5143551637 }
51436- throw new Exception('never get to this Utf8JSONReader::utf8JSONReader');
51638+ throw new Exception('never get to this Unsigned::unsigned');
5143751639 }
5143851640
5143951641 /**
@@ -51441,7 +51643,7 @@ class Utf8JSONReader {
5144151643 * @return bool
5144251644 * @throws Exception
5144351645 */
51444- public static function validateUtf8JSONReader(int $value): bool {
51646+ public static function validateUnsigned(int $value): bool {
5144551647 return true;
5144651648 }
5144751649
@@ -51449,18 +51651,18 @@ class Utf8JSONReader {
5144951651 * @throws Exception
5145051652 * @return int
5145151653 */
51452- public function getUtf8JSONReader(): int {
51453- if (Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader)) {
51454- return $this->utf8JSONReader;
51654+ public function getUnsigned(): int {
51655+ if (Unsigned::validateUnsigned($this->unsigned)) {
51656+ return $this->unsigned;
5145551657 }
51456- throw new Exception('never get to getUtf8JSONReader Utf8JSONReader::utf8JSONReader');
51658+ throw new Exception('never get to getUnsigned Unsigned::unsigned');
5145751659 }
5145851660
5145951661 /**
5146051662 * @return int
5146151663 */
51462- public static function sampleUtf8JSONReader(): int {
51463- return 31; /*31:utf8JSONReader*/
51664+ public static function sampleUnsigned(): int {
51665+ return 31; /*31:unsigned*/
5146451666 }
5146551667
5146651668 /**
@@ -51468,7 +51670,7 @@ class Utf8JSONReader {
5146851670 * @return bool
5146951671 */
5147051672 public function validate(): bool {
51471- return Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader);
51673+ return Unsigned::validateUnsigned($this->unsigned);
5147251674 }
5147351675
5147451676 /**
@@ -51477,44 +51679,44 @@ class Utf8JSONReader {
5147751679 */
5147851680 public function to(): stdClass {
5147951681 $out = new stdClass();
51480- $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
51682+ $out->{'unsigned'} = $this->toUnsigned();
5148151683 return $out;
5148251684 }
5148351685
5148451686 /**
5148551687 * @param stdClass $obj
51486- * @return Utf8JSONReader
51688+ * @return Unsigned
5148751689 * @throws Exception
5148851690 */
51489- public static function from(stdClass $obj): Utf8JSONReader {
51490- if (!property_exists($obj, 'Utf8JsonReader')) {
51691+ public static function from(stdClass $obj): Unsigned {
51692+ if (!property_exists($obj, 'unsigned')) {
5149151693 throw new Exception("Missing required property");
5149251694 }
51493- return new Utf8JSONReader(
51494- Utf8JSONReader::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
51695+ return new Unsigned(
51696+ Unsigned::fromUnsigned($obj->{'unsigned'})
5149551697 );
5149651698 }
5149751699
5149851700 /**
51499- * @return Utf8JSONReader
51701+ * @return Unsigned
5150051702 */
51501- public static function sample(): Utf8JSONReader {
51502- return new Utf8JSONReader(
51503- Utf8JSONReader::sampleUtf8JSONReader()
51703+ public static function sample(): Unsigned {
51704+ return new Unsigned(
51705+ Unsigned::sampleUnsigned()
5150451706 );
5150551707 }
5150651708 }
5150751709
51508-// This is an autogenerated file:Utf8JSONWriter
51710+// This is an autogenerated file:UseSerializers
5150951711
51510-class Utf8JSONWriter {
51511- private int $utf8JSONWriter; // json:Utf8JsonWriter Required
51712+class UseSerializers {
51713+ private int $useSerializers; // json:UseSerializers Required
5151251714
5151351715 /**
51514- * @param int $utf8JSONWriter
51716+ * @param int $useSerializers
5151551717 */
51516- public function __construct(int $utf8JSONWriter) {
51517- $this->utf8JSONWriter = $utf8JSONWriter;
51718+ public function __construct(int $useSerializers) {
51719+ $this->useSerializers = $useSerializers;
5151851720 }
5151951721
5152051722 /**
@@ -51522,7 +51724,7 @@ class Utf8JSONWriter {
5152251724 * @throws Exception
5152351725 * @return int
5152451726 */
51525- public static function fromUtf8JSONWriter(int $value): int {
51727+ public static function fromUseSerializers(int $value): int {
5152651728 return $value; /*int*/
5152751729 }
5152851730
@@ -51530,11 +51732,11 @@ class Utf8JSONWriter {
5153051732 * @throws Exception
5153151733 * @return int
5153251734 */
51533- public function toUtf8JSONWriter(): int {
51534- if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) {
51535- return $this->utf8JSONWriter; /*int*/
51735+ public function toUseSerializers(): int {
51736+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51737+ return $this->useSerializers; /*int*/
5153651738 }
51537- throw new Exception('never get to this Utf8JSONWriter::utf8JSONWriter');
51739+ throw new Exception('never get to this UseSerializers::useSerializers');
5153851740 }
5153951741
5154051742 /**
@@ -51542,7 +51744,7 @@ class Utf8JSONWriter {
5154251744 * @return bool
5154351745 * @throws Exception
5154451746 */
51545- public static function validateUtf8JSONWriter(int $value): bool {
51747+ public static function validateUseSerializers(int $value): bool {
5154651748 return true;
5154751749 }
5154851750
@@ -51550,18 +51752,18 @@ class Utf8JSONWriter {
5155051752 * @throws Exception
5155151753 * @return int
5155251754 */
51553- public function getUtf8JSONWriter(): int {
51554- if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) {
51555- return $this->utf8JSONWriter;
51755+ public function getUseSerializers(): int {
51756+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51757+ return $this->useSerializers;
5155651758 }
51557- throw new Exception('never get to getUtf8JSONWriter Utf8JSONWriter::utf8JSONWriter');
51759+ throw new Exception('never get to getUseSerializers UseSerializers::useSerializers');
5155851760 }
5155951761
5156051762 /**
5156151763 * @return int
5156251764 */
51563- public static function sampleUtf8JSONWriter(): int {
51564- return 31; /*31:utf8JSONWriter*/
51765+ public static function sampleUseSerializers(): int {
51766+ return 31; /*31:useSerializers*/
5156551767 }
5156651768
5156751769 /**
@@ -51569,7 +51771,7 @@ class Utf8JSONWriter {
5156951771 * @return bool
5157051772 */
5157151773 public function validate(): bool {
51572- return Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter);
51774+ return UseSerializers::validateUseSerializers($this->useSerializers);
5157351775 }
5157451776
5157551777 /**
@@ -51578,44 +51780,44 @@ class Utf8JSONWriter {
5157851780 */
5157951781 public function to(): stdClass {
5158051782 $out = new stdClass();
51581- $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
51783+ $out->{'UseSerializers'} = $this->toUseSerializers();
5158251784 return $out;
5158351785 }
5158451786
5158551787 /**
5158651788 * @param stdClass $obj
51587- * @return Utf8JSONWriter
51789+ * @return UseSerializers
5158851790 * @throws Exception
5158951791 */
51590- public static function from(stdClass $obj): Utf8JSONWriter {
51591- if (!property_exists($obj, 'Utf8JsonWriter')) {
51792+ public static function from(stdClass $obj): UseSerializers {
51793+ if (!property_exists($obj, 'UseSerializers')) {
5159251794 throw new Exception("Missing required property");
5159351795 }
51594- return new Utf8JSONWriter(
51595- Utf8JSONWriter::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
51796+ return new UseSerializers(
51797+ UseSerializers::fromUseSerializers($obj->{'UseSerializers'})
5159651798 );
5159751799 }
5159851800
5159951801 /**
51600- * @return Utf8JSONWriter
51802+ * @return UseSerializers
5160151803 */
51602- public static function sample(): Utf8JSONWriter {
51603- return new Utf8JSONWriter(
51604- Utf8JSONWriter::sampleUtf8JSONWriter()
51804+ public static function sample(): UseSerializers {
51805+ return new UseSerializers(
51806+ UseSerializers::sampleUseSerializers()
5160551807 );
5160651808 }
5160751809 }
5160851810
51609-// This is an autogenerated file:UUID
51811+// This is an autogenerated file:Ushort
5161051812
51611-class UUID {
51612- private int $uuid; // json:UUID Required
51813+class Ushort {
51814+ private int $ushort; // json:ushort Required
5161351815
5161451816 /**
51615- * @param int $uuid
51817+ * @param int $ushort
5161651818 */
51617- public function __construct(int $uuid) {
51618- $this->uuid = $uuid;
51819+ public function __construct(int $ushort) {
51820+ $this->ushort = $ushort;
5161951821 }
5162051822
5162151823 /**
@@ -51623,7 +51825,7 @@ class UUID {
5162351825 * @throws Exception
5162451826 * @return int
5162551827 */
51626- public static function fromUUID(int $value): int {
51828+ public static function fromUshort(int $value): int {
5162751829 return $value; /*int*/
5162851830 }
5162951831
@@ -51631,11 +51833,11 @@ class UUID {
5163151833 * @throws Exception
5163251834 * @return int
5163351835 */
51634- public function toUUID(): int {
51635- if (UUID::validateUUID($this->uuid)) {
51636- return $this->uuid; /*int*/
51836+ public function toUshort(): int {
51837+ if (Ushort::validateUshort($this->ushort)) {
51838+ return $this->ushort; /*int*/
5163751839 }
51638- throw new Exception('never get to this UUID::uuid');
51840+ throw new Exception('never get to this Ushort::ushort');
5163951841 }
5164051842
5164151843 /**
@@ -51643,7 +51845,7 @@ class UUID {
5164351845 * @return bool
5164451846 * @throws Exception
5164551847 */
51646- public static function validateUUID(int $value): bool {
51848+ public static function validateUshort(int $value): bool {
5164751849 return true;
5164851850 }
5164951851
@@ -51651,18 +51853,18 @@ class UUID {
5165151853 * @throws Exception
5165251854 * @return int
5165351855 */
51654- public function getUUID(): int {
51655- if (UUID::validateUUID($this->uuid)) {
51656- return $this->uuid;
51856+ public function getUshort(): int {
51857+ if (Ushort::validateUshort($this->ushort)) {
51858+ return $this->ushort;
5165751859 }
51658- throw new Exception('never get to getUUID UUID::uuid');
51860+ throw new Exception('never get to getUshort Ushort::ushort');
5165951861 }
5166051862
5166151863 /**
5166251864 * @return int
5166351865 */
51664- public static function sampleUUID(): int {
51665- return 31; /*31:uuid*/
51866+ public static function sampleUshort(): int {
51867+ return 31; /*31:ushort*/
5166651868 }
5166751869
5166851870 /**
@@ -51670,7 +51872,7 @@ class UUID {
5167051872 * @return bool
5167151873 */
5167251874 public function validate(): bool {
51673- return UUID::validateUUID($this->uuid);
51875+ return Ushort::validateUshort($this->ushort);
5167451876 }
5167551877
5167651878 /**
@@ -51679,240 +51881,44 @@ class UUID {
5167951881 */
5168051882 public function to(): stdClass {
5168151883 $out = new stdClass();
51682- $out->{'UUID'} = $this->toUUID();
51884+ $out->{'ushort'} = $this->toUshort();
5168351885 return $out;
5168451886 }
5168551887
5168651888 /**
5168751889 * @param stdClass $obj
51688- * @return UUID
51890+ * @return Ushort
5168951891 * @throws Exception
5169051892 */
51691- public static function from(stdClass $obj): UUID {
51692- if (!property_exists($obj, 'UUID')) {
51893+ public static function from(stdClass $obj): Ushort {
51894+ if (!property_exists($obj, 'ushort')) {
5169351895 throw new Exception("Missing required property");
5169451896 }
51695- return new UUID(
51696- UUID::fromUUID($obj->{'UUID'})
51897+ return new Ushort(
51898+ Ushort::fromUshort($obj->{'ushort'})
5169751899 );
5169851900 }
5169951901
5170051902 /**
51701- * @return UUID
51903+ * @return Ushort
5170251904 */
51703- public static function sample(): UUID {
51704- return new UUID(
51705- UUID::sampleUUID()
51905+ public static function sample(): Ushort {
51906+ return new Ushort(
51907+ Ushort::sampleUshort()
5170651908 );
5170751909 }
5170851910 }
5170951911
51710-// This is an autogenerated file:VarClass
51711-
51712-class VarClass {
51713- private int $var; // json:var Required
51714-
51715- /**
51716- * @param int $var
51717- */
51718- public function __construct(int $var) {
51719- $this->var = $var;
51720- }
51721-
51722- /**
51723- * @param int $value
51724- * @throws Exception
51725- * @return int
51726- */
51727- public static function fromVar(int $value): int {
51728- return $value; /*int*/
51729- }
51730-
51731- /**
51732- * @throws Exception
51733- * @return int
51734- */
51735- public function toVar(): int {
51736- if (VarClass::validateVar($this->var)) {
51737- return $this->var; /*int*/
51738- }
51739- throw new Exception('never get to this VarClass::var');
51740- }
51741-
51742- /**
51743- * @param int
51744- * @return bool
51745- * @throws Exception
51746- */
51747- public static function validateVar(int $value): bool {
51748- return true;
51749- }
51750-
51751- /**
51752- * @throws Exception
51753- * @return int
51754- */
51755- public function getVar(): int {
51756- if (VarClass::validateVar($this->var)) {
51757- return $this->var;
51758- }
51759- throw new Exception('never get to getVar VarClass::var');
51760- }
51761-
51762- /**
51763- * @return int
51764- */
51765- public static function sampleVar(): int {
51766- return 31; /*31:var*/
51767- }
51768-
51769- /**
51770- * @throws Exception
51771- * @return bool
51772- */
51773- public function validate(): bool {
51774- return VarClass::validateVar($this->var);
51775- }
51776-
51777- /**
51778- * @return stdClass
51779- * @throws Exception
51780- */
51781- public function to(): stdClass {
51782- $out = new stdClass();
51783- $out->{'var'} = $this->toVar();
51784- return $out;
51785- }
51786-
51787- /**
51788- * @param stdClass $obj
51789- * @return VarClass
51790- * @throws Exception
51791- */
51792- public static function from(stdClass $obj): VarClass {
51793- if (!property_exists($obj, 'var')) {
51794- throw new Exception("Missing required property");
51795- }
51796- return new VarClass(
51797- VarClass::fromVar($obj->{'var'})
51798- );
51799- }
51800-
51801- /**
51802- * @return VarClass
51803- */
51804- public static function sample(): VarClass {
51805- return new VarClass(
51806- VarClass::sampleVar()
51807- );
51808- }
51809-}
51810-
51811-// This is an autogenerated file:Virtual
51812-
51813-class Virtual {
51814- private int $virtual; // json:virtual Required
51815-
51816- /**
51817- * @param int $virtual
51818- */
51819- public function __construct(int $virtual) {
51820- $this->virtual = $virtual;
51821- }
51822-
51823- /**
51824- * @param int $value
51825- * @throws Exception
51826- * @return int
51827- */
51828- public static function fromVirtual(int $value): int {
51829- return $value; /*int*/
51830- }
51831-
51832- /**
51833- * @throws Exception
51834- * @return int
51835- */
51836- public function toVirtual(): int {
51837- if (Virtual::validateVirtual($this->virtual)) {
51838- return $this->virtual; /*int*/
51839- }
51840- throw new Exception('never get to this Virtual::virtual');
51841- }
51842-
51843- /**
51844- * @param int
51845- * @return bool
51846- * @throws Exception
51847- */
51848- public static function validateVirtual(int $value): bool {
51849- return true;
51850- }
51851-
51852- /**
51853- * @throws Exception
51854- * @return int
51855- */
51856- public function getVirtual(): int {
51857- if (Virtual::validateVirtual($this->virtual)) {
51858- return $this->virtual;
51859- }
51860- throw new Exception('never get to getVirtual Virtual::virtual');
51861- }
51862-
51863- /**
51864- * @return int
51865- */
51866- public static function sampleVirtual(): int {
51867- return 31; /*31:virtual*/
51868- }
51869-
51870- /**
51871- * @throws Exception
51872- * @return bool
51873- */
51874- public function validate(): bool {
51875- return Virtual::validateVirtual($this->virtual);
51876- }
51877-
51878- /**
51879- * @return stdClass
51880- * @throws Exception
51881- */
51882- public function to(): stdClass {
51883- $out = new stdClass();
51884- $out->{'virtual'} = $this->toVirtual();
51885- return $out;
51886- }
51887-
51888- /**
51889- * @param stdClass $obj
51890- * @return Virtual
51891- * @throws Exception
51892- */
51893- public static function from(stdClass $obj): Virtual {
51894- if (!property_exists($obj, 'virtual')) {
51895- throw new Exception("Missing required property");
51896- }
51897- return new Virtual(
51898- Virtual::fromVirtual($obj->{'virtual'})
51899- );
51900- }
51901-
51902- /**
51903- * @return Virtual
51904- */
51905- public static function sample(): Virtual {
51906- return new Virtual(
51907- Virtual::sampleVirtual()
51908- );
51909- }
51910-}
51911-
51912-// This is an autogenerated file:Obj6
51912+// This is an autogenerated file:Obj6
5191351913
5191451914 class Obj6 {
5191551915 private int $dummy; // json:dummy Required
51916+ private Using $using; // json:using Required
51917+ private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
51918+ private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
51919+ private UUID $uuid; // json:UUID Required
51920+ private VarClass $var; // json:var Required
51921+ private Virtual $virtual; // json:virtual Required
5191651922 private VoidClass $void; // json:void Required
5191751923 private Volatile $volatile; // json:volatile Required
5191851924 private WcharT $wcharT; // json:wchar_t Required
@@ -51928,6 +51934,12 @@ class Obj6 {
5192851934
5192951935 /**
5193051936 * @param int $dummy
51937+ * @param Using $using
51938+ * @param Utf8JSONReader $utf8JSONReader
51939+ * @param Utf8JSONWriter $utf8JSONWriter
51940+ * @param UUID $uuid
51941+ * @param VarClass $var
51942+ * @param Virtual $virtual
5193151943 * @param VoidClass $void
5193251944 * @param Volatile $volatile
5193351945 * @param WcharT $wcharT
@@ -51941,8 +51953,14 @@ class Obj6 {
5194151953 * @param Yes $yes
5194251954 * @param YieldClass $yield
5194351955 */
51944- public function __construct(int $dummy, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
51956+ public function __construct(int $dummy, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
5194551957 $this->dummy = $dummy;
51958+ $this->using = $using;
51959+ $this->utf8JSONReader = $utf8JSONReader;
51960+ $this->utf8JSONWriter = $utf8JSONWriter;
51961+ $this->uuid = $uuid;
51962+ $this->var = $var;
51963+ $this->virtual = $virtual;
5194651964 $this->void = $void;
5194751965 $this->volatile = $volatile;
5194851966 $this->wcharT = $wcharT;
@@ -52007,490 +52025,778 @@ class Obj6 {
5200752025 /**
5200852026 * @param stdClass $value
5200952027 * @throws Exception
52010- * @return VoidClass
52028+ * @return Using
5201152029 */
52012- public static function fromVoid(stdClass $value): VoidClass {
52013- return VoidClass::from($value); /*class*/
52030+ public static function fromUsing(stdClass $value): Using {
52031+ return Using::from($value); /*class*/
5201452032 }
5201552033
5201652034 /**
5201752035 * @throws Exception
5201852036 * @return stdClass
5201952037 */
52020- public function toVoid(): stdClass {
52021- if (Obj6::validateVoid($this->void)) {
52022- return $this->void->to(); /*class*/
52038+ public function toUsing(): stdClass {
52039+ if (Obj6::validateUsing($this->using)) {
52040+ return $this->using->to(); /*class*/
5202352041 }
52024- throw new Exception('never get to this Obj6::void');
52042+ throw new Exception('never get to this Obj6::using');
5202552043 }
5202652044
5202752045 /**
52028- * @param VoidClass
52046+ * @param Using
5202952047 * @return bool
5203052048 * @throws Exception
5203152049 */
52032- public static function validateVoid(VoidClass $value): bool {
52050+ public static function validateUsing(Using $value): bool {
5203352051 $value->validate();
5203452052 return true;
5203552053 }
5203652054
5203752055 /**
5203852056 * @throws Exception
52039- * @return VoidClass
52057+ * @return Using
5204052058 */
52041- public function getVoid(): VoidClass {
52042- if (Obj6::validateVoid($this->void)) {
52043- return $this->void;
52059+ public function getUsing(): Using {
52060+ if (Obj6::validateUsing($this->using)) {
52061+ return $this->using;
5204452062 }
52045- throw new Exception('never get to getVoid Obj6::void');
52063+ throw new Exception('never get to getUsing Obj6::using');
5204652064 }
5204752065
5204852066 /**
52049- * @return VoidClass
52067+ * @return Using
5205052068 */
52051- public static function sampleVoid(): VoidClass {
52052- return VoidClass::sample(); /*32:void*/
52069+ public static function sampleUsing(): Using {
52070+ return Using::sample(); /*32:using*/
5205352071 }
5205452072
5205552073 /**
5205652074 * @param stdClass $value
5205752075 * @throws Exception
52058- * @return Volatile
52076+ * @return Utf8JSONReader
5205952077 */
52060- public static function fromVolatile(stdClass $value): Volatile {
52061- return Volatile::from($value); /*class*/
52078+ public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
52079+ return Utf8JSONReader::from($value); /*class*/
5206252080 }
5206352081
5206452082 /**
5206552083 * @throws Exception
5206652084 * @return stdClass
5206752085 */
52068- public function toVolatile(): stdClass {
52069- if (Obj6::validateVolatile($this->volatile)) {
52070- return $this->volatile->to(); /*class*/
52086+ public function toUtf8JSONReader(): stdClass {
52087+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52088+ return $this->utf8JSONReader->to(); /*class*/
5207152089 }
52072- throw new Exception('never get to this Obj6::volatile');
52090+ throw new Exception('never get to this Obj6::utf8JSONReader');
5207352091 }
5207452092
5207552093 /**
52076- * @param Volatile
52094+ * @param Utf8JSONReader
5207752095 * @return bool
5207852096 * @throws Exception
5207952097 */
52080- public static function validateVolatile(Volatile $value): bool {
52098+ public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
5208152099 $value->validate();
5208252100 return true;
5208352101 }
5208452102
5208552103 /**
5208652104 * @throws Exception
52087- * @return Volatile
52105+ * @return Utf8JSONReader
5208852106 */
52089- public function getVolatile(): Volatile {
52090- if (Obj6::validateVolatile($this->volatile)) {
52091- return $this->volatile;
52107+ public function getUtf8JSONReader(): Utf8JSONReader {
52108+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52109+ return $this->utf8JSONReader;
5209252110 }
52093- throw new Exception('never get to getVolatile Obj6::volatile');
52111+ throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader');
5209452112 }
5209552113
5209652114 /**
52097- * @return Volatile
52115+ * @return Utf8JSONReader
5209852116 */
52099- public static function sampleVolatile(): Volatile {
52100- return Volatile::sample(); /*33:volatile*/
52117+ public static function sampleUtf8JSONReader(): Utf8JSONReader {
52118+ return Utf8JSONReader::sample(); /*33:utf8JSONReader*/
5210152119 }
5210252120
5210352121 /**
5210452122 * @param stdClass $value
5210552123 * @throws Exception
52106- * @return WcharT
52124+ * @return Utf8JSONWriter
5210752125 */
52108- public static function fromWcharT(stdClass $value): WcharT {
52109- return WcharT::from($value); /*class*/
52126+ public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
52127+ return Utf8JSONWriter::from($value); /*class*/
5211052128 }
5211152129
5211252130 /**
5211352131 * @throws Exception
5211452132 * @return stdClass
5211552133 */
52116- public function toWcharT(): stdClass {
52117- if (Obj6::validateWcharT($this->wcharT)) {
52118- return $this->wcharT->to(); /*class*/
52134+ public function toUtf8JSONWriter(): stdClass {
52135+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52136+ return $this->utf8JSONWriter->to(); /*class*/
5211952137 }
52120- throw new Exception('never get to this Obj6::wcharT');
52138+ throw new Exception('never get to this Obj6::utf8JSONWriter');
5212152139 }
5212252140
5212352141 /**
52124- * @param WcharT
52142+ * @param Utf8JSONWriter
5212552143 * @return bool
5212652144 * @throws Exception
5212752145 */
52128- public static function validateWcharT(WcharT $value): bool {
52146+ public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
5212952147 $value->validate();
5213052148 return true;
5213152149 }
5213252150
5213352151 /**
5213452152 * @throws Exception
52135- * @return WcharT
52153+ * @return Utf8JSONWriter
5213652154 */
52137- public function getWcharT(): WcharT {
52138- if (Obj6::validateWcharT($this->wcharT)) {
52139- return $this->wcharT;
52155+ public function getUtf8JSONWriter(): Utf8JSONWriter {
52156+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52157+ return $this->utf8JSONWriter;
5214052158 }
52141- throw new Exception('never get to getWcharT Obj6::wcharT');
52159+ throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter');
5214252160 }
5214352161
5214452162 /**
52145- * @return WcharT
52163+ * @return Utf8JSONWriter
5214652164 */
52147- public static function sampleWcharT(): WcharT {
52148- return WcharT::sample(); /*34:wcharT*/
52165+ public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52166+ return Utf8JSONWriter::sample(); /*34:utf8JSONWriter*/
5214952167 }
5215052168
5215152169 /**
5215252170 * @param stdClass $value
5215352171 * @throws Exception
52154- * @return Weak
52172+ * @return UUID
5215552173 */
52156- public static function fromWeak(stdClass $value): Weak {
52157- return Weak::from($value); /*class*/
52174+ public static function fromUUID(stdClass $value): UUID {
52175+ return UUID::from($value); /*class*/
5215852176 }
5215952177
5216052178 /**
5216152179 * @throws Exception
5216252180 * @return stdClass
5216352181 */
52164- public function toWeak(): stdClass {
52165- if (Obj6::validateWeak($this->weak)) {
52166- return $this->weak->to(); /*class*/
52182+ public function toUUID(): stdClass {
52183+ if (Obj6::validateUUID($this->uuid)) {
52184+ return $this->uuid->to(); /*class*/
5216752185 }
52168- throw new Exception('never get to this Obj6::weak');
52186+ throw new Exception('never get to this Obj6::uuid');
5216952187 }
5217052188
5217152189 /**
52172- * @param Weak
52190+ * @param UUID
5217352191 * @return bool
5217452192 * @throws Exception
5217552193 */
52176- public static function validateWeak(Weak $value): bool {
52194+ public static function validateUUID(UUID $value): bool {
5217752195 $value->validate();
5217852196 return true;
5217952197 }
5218052198
5218152199 /**
5218252200 * @throws Exception
52183- * @return Weak
52201+ * @return UUID
5218452202 */
52185- public function getWeak(): Weak {
52186- if (Obj6::validateWeak($this->weak)) {
52187- return $this->weak;
52203+ public function getUUID(): UUID {
52204+ if (Obj6::validateUUID($this->uuid)) {
52205+ return $this->uuid;
5218852206 }
52189- throw new Exception('never get to getWeak Obj6::weak');
52207+ throw new Exception('never get to getUUID Obj6::uuid');
5219052208 }
5219152209
5219252210 /**
52193- * @return Weak
52211+ * @return UUID
5219452212 */
52195- public static function sampleWeak(): Weak {
52196- return Weak::sample(); /*35:weak*/
52213+ public static function sampleUUID(): UUID {
52214+ return UUID::sample(); /*35:uuid*/
5219752215 }
5219852216
5219952217 /**
5220052218 * @param stdClass $value
5220152219 * @throws Exception
52202- * @return Where
52220+ * @return VarClass
5220352221 */
52204- public static function fromWhere(stdClass $value): Where {
52205- return Where::from($value); /*class*/
52222+ public static function fromVar(stdClass $value): VarClass {
52223+ return VarClass::from($value); /*class*/
5220652224 }
5220752225
5220852226 /**
5220952227 * @throws Exception
5221052228 * @return stdClass
5221152229 */
52212- public function toWhere(): stdClass {
52213- if (Obj6::validateWhere($this->where)) {
52214- return $this->where->to(); /*class*/
52230+ public function toVar(): stdClass {
52231+ if (Obj6::validateVar($this->var)) {
52232+ return $this->var->to(); /*class*/
5221552233 }
52216- throw new Exception('never get to this Obj6::where');
52234+ throw new Exception('never get to this Obj6::var');
5221752235 }
5221852236
5221952237 /**
52220- * @param Where
52238+ * @param VarClass
5222152239 * @return bool
5222252240 * @throws Exception
5222352241 */
52224- public static function validateWhere(Where $value): bool {
52242+ public static function validateVar(VarClass $value): bool {
5222552243 $value->validate();
5222652244 return true;
5222752245 }
5222852246
5222952247 /**
5223052248 * @throws Exception
52231- * @return Where
52249+ * @return VarClass
5223252250 */
52233- public function getWhere(): Where {
52234- if (Obj6::validateWhere($this->where)) {
52235- return $this->where;
52251+ public function getVar(): VarClass {
52252+ if (Obj6::validateVar($this->var)) {
52253+ return $this->var;
5223652254 }
52237- throw new Exception('never get to getWhere Obj6::where');
52255+ throw new Exception('never get to getVar Obj6::var');
5223852256 }
5223952257
5224052258 /**
52241- * @return Where
52259+ * @return VarClass
5224252260 */
52243- public static function sampleWhere(): Where {
52244- return Where::sample(); /*36:where*/
52261+ public static function sampleVar(): VarClass {
52262+ return VarClass::sample(); /*36:var*/
5224552263 }
5224652264
5224752265 /**
5224852266 * @param stdClass $value
5224952267 * @throws Exception
52250- * @return WhileClass
52268+ * @return Virtual
5225152269 */
52252- public static function fromWhile(stdClass $value): WhileClass {
52253- return WhileClass::from($value); /*class*/
52270+ public static function fromVirtual(stdClass $value): Virtual {
52271+ return Virtual::from($value); /*class*/
5225452272 }
5225552273
5225652274 /**
5225752275 * @throws Exception
5225852276 * @return stdClass
5225952277 */
52260- public function toWhile(): stdClass {
52261- if (Obj6::validateWhile($this->while)) {
52262- return $this->while->to(); /*class*/
52278+ public function toVirtual(): stdClass {
52279+ if (Obj6::validateVirtual($this->virtual)) {
52280+ return $this->virtual->to(); /*class*/
5226352281 }
52264- throw new Exception('never get to this Obj6::while');
52282+ throw new Exception('never get to this Obj6::virtual');
5226552283 }
5226652284
5226752285 /**
52268- * @param WhileClass
52286+ * @param Virtual
5226952287 * @return bool
5227052288 * @throws Exception
5227152289 */
52272- public static function validateWhile(WhileClass $value): bool {
52290+ public static function validateVirtual(Virtual $value): bool {
5227352291 $value->validate();
5227452292 return true;
5227552293 }
5227652294
5227752295 /**
5227852296 * @throws Exception
52279- * @return WhileClass
52297+ * @return Virtual
5228052298 */
52281- public function getWhile(): WhileClass {
52282- if (Obj6::validateWhile($this->while)) {
52283- return $this->while;
52299+ public function getVirtual(): Virtual {
52300+ if (Obj6::validateVirtual($this->virtual)) {
52301+ return $this->virtual;
5228452302 }
52285- throw new Exception('never get to getWhile Obj6::while');
52303+ throw new Exception('never get to getVirtual Obj6::virtual');
5228652304 }
5228752305
5228852306 /**
52289- * @return WhileClass
52307+ * @return Virtual
5229052308 */
52291- public static function sampleWhile(): WhileClass {
52292- return WhileClass::sample(); /*37:while*/
52309+ public static function sampleVirtual(): Virtual {
52310+ return Virtual::sample(); /*37:virtual*/
5229352311 }
5229452312
5229552313 /**
5229652314 * @param stdClass $value
5229752315 * @throws Exception
52298- * @return WillSet
52316+ * @return VoidClass
5229952317 */
52300- public static function fromWillSet(stdClass $value): WillSet {
52301- return WillSet::from($value); /*class*/
52318+ public static function fromVoid(stdClass $value): VoidClass {
52319+ return VoidClass::from($value); /*class*/
5230252320 }
5230352321
5230452322 /**
5230552323 * @throws Exception
5230652324 * @return stdClass
5230752325 */
52308- public function toWillSet(): stdClass {
52309- if (Obj6::validateWillSet($this->willSet)) {
52310- return $this->willSet->to(); /*class*/
52326+ public function toVoid(): stdClass {
52327+ if (Obj6::validateVoid($this->void)) {
52328+ return $this->void->to(); /*class*/
5231152329 }
52312- throw new Exception('never get to this Obj6::willSet');
52330+ throw new Exception('never get to this Obj6::void');
5231352331 }
5231452332
5231552333 /**
52316- * @param WillSet
52334+ * @param VoidClass
5231752335 * @return bool
5231852336 * @throws Exception
5231952337 */
52320- public static function validateWillSet(WillSet $value): bool {
52338+ public static function validateVoid(VoidClass $value): bool {
5232152339 $value->validate();
5232252340 return true;
5232352341 }
5232452342
5232552343 /**
5232652344 * @throws Exception
52327- * @return WillSet
52345+ * @return VoidClass
5232852346 */
52329- public function getWillSet(): WillSet {
52330- if (Obj6::validateWillSet($this->willSet)) {
52331- return $this->willSet;
52347+ public function getVoid(): VoidClass {
52348+ if (Obj6::validateVoid($this->void)) {
52349+ return $this->void;
5233252350 }
52333- throw new Exception('never get to getWillSet Obj6::willSet');
52351+ throw new Exception('never get to getVoid Obj6::void');
5233452352 }
5233552353
5233652354 /**
52337- * @return WillSet
52355+ * @return VoidClass
5233852356 */
52339- public static function sampleWillSet(): WillSet {
52340- return WillSet::sample(); /*38:willSet*/
52357+ public static function sampleVoid(): VoidClass {
52358+ return VoidClass::sample(); /*38:void*/
5234152359 }
5234252360
5234352361 /**
5234452362 * @param stdClass $value
5234552363 * @throws Exception
52346- * @return With
52364+ * @return Volatile
5234752365 */
52348- public static function fromWith(stdClass $value): With {
52349- return With::from($value); /*class*/
52366+ public static function fromVolatile(stdClass $value): Volatile {
52367+ return Volatile::from($value); /*class*/
5235052368 }
5235152369
5235252370 /**
5235352371 * @throws Exception
5235452372 * @return stdClass
5235552373 */
52356- public function toWith(): stdClass {
52357- if (Obj6::validateWith($this->with)) {
52358- return $this->with->to(); /*class*/
52374+ public function toVolatile(): stdClass {
52375+ if (Obj6::validateVolatile($this->volatile)) {
52376+ return $this->volatile->to(); /*class*/
5235952377 }
52360- throw new Exception('never get to this Obj6::with');
52378+ throw new Exception('never get to this Obj6::volatile');
5236152379 }
5236252380
5236352381 /**
52364- * @param With
52382+ * @param Volatile
5236552383 * @return bool
5236652384 * @throws Exception
5236752385 */
52368- public static function validateWith(With $value): bool {
52386+ public static function validateVolatile(Volatile $value): bool {
5236952387 $value->validate();
5237052388 return true;
5237152389 }
5237252390
5237352391 /**
5237452392 * @throws Exception
52375- * @return With
52393+ * @return Volatile
5237652394 */
52377- public function getWith(): With {
52378- if (Obj6::validateWith($this->with)) {
52379- return $this->with;
52395+ public function getVolatile(): Volatile {
52396+ if (Obj6::validateVolatile($this->volatile)) {
52397+ return $this->volatile;
5238052398 }
52381- throw new Exception('never get to getWith Obj6::with');
52399+ throw new Exception('never get to getVolatile Obj6::volatile');
5238252400 }
5238352401
5238452402 /**
52385- * @return With
52403+ * @return Volatile
5238652404 */
52387- public static function sampleWith(): With {
52388- return With::sample(); /*39:with*/
52405+ public static function sampleVolatile(): Volatile {
52406+ return Volatile::sample(); /*39:volatile*/
5238952407 }
5239052408
5239152409 /**
5239252410 * @param stdClass $value
5239352411 * @throws Exception
52394- * @return XorClass
52412+ * @return WcharT
5239552413 */
52396- public static function fromXor(stdClass $value): XorClass {
52397- return XorClass::from($value); /*class*/
52414+ public static function fromWcharT(stdClass $value): WcharT {
52415+ return WcharT::from($value); /*class*/
5239852416 }
5239952417
5240052418 /**
5240152419 * @throws Exception
5240252420 * @return stdClass
5240352421 */
52404- public function toXor(): stdClass {
52405- if (Obj6::validateXor($this->xor)) {
52406- return $this->xor->to(); /*class*/
52422+ public function toWcharT(): stdClass {
52423+ if (Obj6::validateWcharT($this->wcharT)) {
52424+ return $this->wcharT->to(); /*class*/
5240752425 }
52408- throw new Exception('never get to this Obj6::xor');
52426+ throw new Exception('never get to this Obj6::wcharT');
5240952427 }
5241052428
5241152429 /**
52412- * @param XorClass
52430+ * @param WcharT
5241352431 * @return bool
5241452432 * @throws Exception
5241552433 */
52416- public static function validateXor(XorClass $value): bool {
52434+ public static function validateWcharT(WcharT $value): bool {
5241752435 $value->validate();
5241852436 return true;
5241952437 }
5242052438
5242152439 /**
5242252440 * @throws Exception
52423- * @return XorClass
52441+ * @return WcharT
5242452442 */
52425- public function getXor(): XorClass {
52426- if (Obj6::validateXor($this->xor)) {
52427- return $this->xor;
52443+ public function getWcharT(): WcharT {
52444+ if (Obj6::validateWcharT($this->wcharT)) {
52445+ return $this->wcharT;
5242852446 }
52429- throw new Exception('never get to getXor Obj6::xor');
52447+ throw new Exception('never get to getWcharT Obj6::wcharT');
5243052448 }
5243152449
5243252450 /**
52433- * @return XorClass
52451+ * @return WcharT
5243452452 */
52435- public static function sampleXor(): XorClass {
52436- return XorClass::sample(); /*40:xor*/
52453+ public static function sampleWcharT(): WcharT {
52454+ return WcharT::sample(); /*40:wcharT*/
5243752455 }
5243852456
5243952457 /**
5244052458 * @param stdClass $value
5244152459 * @throws Exception
52442- * @return XorEq
52460+ * @return Weak
5244352461 */
52444- public static function fromXorEq(stdClass $value): XorEq {
52445- return XorEq::from($value); /*class*/
52462+ public static function fromWeak(stdClass $value): Weak {
52463+ return Weak::from($value); /*class*/
5244652464 }
5244752465
5244852466 /**
5244952467 * @throws Exception
5245052468 * @return stdClass
5245152469 */
52452- public function toXorEq(): stdClass {
52453- if (Obj6::validateXorEq($this->xorEq)) {
52454- return $this->xorEq->to(); /*class*/
52470+ public function toWeak(): stdClass {
52471+ if (Obj6::validateWeak($this->weak)) {
52472+ return $this->weak->to(); /*class*/
5245552473 }
52456- throw new Exception('never get to this Obj6::xorEq');
52474+ throw new Exception('never get to this Obj6::weak');
5245752475 }
5245852476
5245952477 /**
52460- * @param XorEq
52478+ * @param Weak
5246152479 * @return bool
5246252480 * @throws Exception
5246352481 */
52464- public static function validateXorEq(XorEq $value): bool {
52482+ public static function validateWeak(Weak $value): bool {
5246552483 $value->validate();
5246652484 return true;
5246752485 }
5246852486
5246952487 /**
5247052488 * @throws Exception
52471- * @return XorEq
52489+ * @return Weak
5247252490 */
52473- public function getXorEq(): XorEq {
52474- if (Obj6::validateXorEq($this->xorEq)) {
52475- return $this->xorEq;
52491+ public function getWeak(): Weak {
52492+ if (Obj6::validateWeak($this->weak)) {
52493+ return $this->weak;
5247652494 }
52477- throw new Exception('never get to getXorEq Obj6::xorEq');
52495+ throw new Exception('never get to getWeak Obj6::weak');
5247852496 }
5247952497
5248052498 /**
52481- * @return XorEq
52499+ * @return Weak
5248252500 */
52483- public static function sampleXorEq(): XorEq {
52484- return XorEq::sample(); /*41:xorEq*/
52501+ public static function sampleWeak(): Weak {
52502+ return Weak::sample(); /*41:weak*/
5248552503 }
5248652504
5248752505 /**
5248852506 * @param stdClass $value
5248952507 * @throws Exception
52490- * @return Yes
52508+ * @return Where
5249152509 */
52492- public static function fromYes(stdClass $value): Yes {
52493- return Yes::from($value); /*class*/
52510+ public static function fromWhere(stdClass $value): Where {
52511+ return Where::from($value); /*class*/
52512+ }
52513+
52514+ /**
52515+ * @throws Exception
52516+ * @return stdClass
52517+ */
52518+ public function toWhere(): stdClass {
52519+ if (Obj6::validateWhere($this->where)) {
52520+ return $this->where->to(); /*class*/
52521+ }
52522+ throw new Exception('never get to this Obj6::where');
52523+ }
52524+
52525+ /**
52526+ * @param Where
52527+ * @return bool
52528+ * @throws Exception
52529+ */
52530+ public static function validateWhere(Where $value): bool {
52531+ $value->validate();
52532+ return true;
52533+ }
52534+
52535+ /**
52536+ * @throws Exception
52537+ * @return Where
52538+ */
52539+ public function getWhere(): Where {
52540+ if (Obj6::validateWhere($this->where)) {
52541+ return $this->where;
52542+ }
52543+ throw new Exception('never get to getWhere Obj6::where');
52544+ }
52545+
52546+ /**
52547+ * @return Where
52548+ */
52549+ public static function sampleWhere(): Where {
52550+ return Where::sample(); /*42:where*/
52551+ }
52552+
52553+ /**
52554+ * @param stdClass $value
52555+ * @throws Exception
52556+ * @return WhileClass
52557+ */
52558+ public static function fromWhile(stdClass $value): WhileClass {
52559+ return WhileClass::from($value); /*class*/
52560+ }
52561+
52562+ /**
52563+ * @throws Exception
52564+ * @return stdClass
52565+ */
52566+ public function toWhile(): stdClass {
52567+ if (Obj6::validateWhile($this->while)) {
52568+ return $this->while->to(); /*class*/
52569+ }
52570+ throw new Exception('never get to this Obj6::while');
52571+ }
52572+
52573+ /**
52574+ * @param WhileClass
52575+ * @return bool
52576+ * @throws Exception
52577+ */
52578+ public static function validateWhile(WhileClass $value): bool {
52579+ $value->validate();
52580+ return true;
52581+ }
52582+
52583+ /**
52584+ * @throws Exception
52585+ * @return WhileClass
52586+ */
52587+ public function getWhile(): WhileClass {
52588+ if (Obj6::validateWhile($this->while)) {
52589+ return $this->while;
52590+ }
52591+ throw new Exception('never get to getWhile Obj6::while');
52592+ }
52593+
52594+ /**
52595+ * @return WhileClass
52596+ */
52597+ public static function sampleWhile(): WhileClass {
52598+ return WhileClass::sample(); /*43:while*/
52599+ }
52600+
52601+ /**
52602+ * @param stdClass $value
52603+ * @throws Exception
52604+ * @return WillSet
52605+ */
52606+ public static function fromWillSet(stdClass $value): WillSet {
52607+ return WillSet::from($value); /*class*/
52608+ }
52609+
52610+ /**
52611+ * @throws Exception
52612+ * @return stdClass
52613+ */
52614+ public function toWillSet(): stdClass {
52615+ if (Obj6::validateWillSet($this->willSet)) {
52616+ return $this->willSet->to(); /*class*/
52617+ }
52618+ throw new Exception('never get to this Obj6::willSet');
52619+ }
52620+
52621+ /**
52622+ * @param WillSet
52623+ * @return bool
52624+ * @throws Exception
52625+ */
52626+ public static function validateWillSet(WillSet $value): bool {
52627+ $value->validate();
52628+ return true;
52629+ }
52630+
52631+ /**
52632+ * @throws Exception
52633+ * @return WillSet
52634+ */
52635+ public function getWillSet(): WillSet {
52636+ if (Obj6::validateWillSet($this->willSet)) {
52637+ return $this->willSet;
52638+ }
52639+ throw new Exception('never get to getWillSet Obj6::willSet');
52640+ }
52641+
52642+ /**
52643+ * @return WillSet
52644+ */
52645+ public static function sampleWillSet(): WillSet {
52646+ return WillSet::sample(); /*44:willSet*/
52647+ }
52648+
52649+ /**
52650+ * @param stdClass $value
52651+ * @throws Exception
52652+ * @return With
52653+ */
52654+ public static function fromWith(stdClass $value): With {
52655+ return With::from($value); /*class*/
52656+ }
52657+
52658+ /**
52659+ * @throws Exception
52660+ * @return stdClass
52661+ */
52662+ public function toWith(): stdClass {
52663+ if (Obj6::validateWith($this->with)) {
52664+ return $this->with->to(); /*class*/
52665+ }
52666+ throw new Exception('never get to this Obj6::with');
52667+ }
52668+
52669+ /**
52670+ * @param With
52671+ * @return bool
52672+ * @throws Exception
52673+ */
52674+ public static function validateWith(With $value): bool {
52675+ $value->validate();
52676+ return true;
52677+ }
52678+
52679+ /**
52680+ * @throws Exception
52681+ * @return With
52682+ */
52683+ public function getWith(): With {
52684+ if (Obj6::validateWith($this->with)) {
52685+ return $this->with;
52686+ }
52687+ throw new Exception('never get to getWith Obj6::with');
52688+ }
52689+
52690+ /**
52691+ * @return With
52692+ */
52693+ public static function sampleWith(): With {
52694+ return With::sample(); /*45:with*/
52695+ }
52696+
52697+ /**
52698+ * @param stdClass $value
52699+ * @throws Exception
52700+ * @return XorClass
52701+ */
52702+ public static function fromXor(stdClass $value): XorClass {
52703+ return XorClass::from($value); /*class*/
52704+ }
52705+
52706+ /**
52707+ * @throws Exception
52708+ * @return stdClass
52709+ */
52710+ public function toXor(): stdClass {
52711+ if (Obj6::validateXor($this->xor)) {
52712+ return $this->xor->to(); /*class*/
52713+ }
52714+ throw new Exception('never get to this Obj6::xor');
52715+ }
52716+
52717+ /**
52718+ * @param XorClass
52719+ * @return bool
52720+ * @throws Exception
52721+ */
52722+ public static function validateXor(XorClass $value): bool {
52723+ $value->validate();
52724+ return true;
52725+ }
52726+
52727+ /**
52728+ * @throws Exception
52729+ * @return XorClass
52730+ */
52731+ public function getXor(): XorClass {
52732+ if (Obj6::validateXor($this->xor)) {
52733+ return $this->xor;
52734+ }
52735+ throw new Exception('never get to getXor Obj6::xor');
52736+ }
52737+
52738+ /**
52739+ * @return XorClass
52740+ */
52741+ public static function sampleXor(): XorClass {
52742+ return XorClass::sample(); /*46:xor*/
52743+ }
52744+
52745+ /**
52746+ * @param stdClass $value
52747+ * @throws Exception
52748+ * @return XorEq
52749+ */
52750+ public static function fromXorEq(stdClass $value): XorEq {
52751+ return XorEq::from($value); /*class*/
52752+ }
52753+
52754+ /**
52755+ * @throws Exception
52756+ * @return stdClass
52757+ */
52758+ public function toXorEq(): stdClass {
52759+ if (Obj6::validateXorEq($this->xorEq)) {
52760+ return $this->xorEq->to(); /*class*/
52761+ }
52762+ throw new Exception('never get to this Obj6::xorEq');
52763+ }
52764+
52765+ /**
52766+ * @param XorEq
52767+ * @return bool
52768+ * @throws Exception
52769+ */
52770+ public static function validateXorEq(XorEq $value): bool {
52771+ $value->validate();
52772+ return true;
52773+ }
52774+
52775+ /**
52776+ * @throws Exception
52777+ * @return XorEq
52778+ */
52779+ public function getXorEq(): XorEq {
52780+ if (Obj6::validateXorEq($this->xorEq)) {
52781+ return $this->xorEq;
52782+ }
52783+ throw new Exception('never get to getXorEq Obj6::xorEq');
52784+ }
52785+
52786+ /**
52787+ * @return XorEq
52788+ */
52789+ public static function sampleXorEq(): XorEq {
52790+ return XorEq::sample(); /*47:xorEq*/
52791+ }
52792+
52793+ /**
52794+ * @param stdClass $value
52795+ * @throws Exception
52796+ * @return Yes
52797+ */
52798+ public static function fromYes(stdClass $value): Yes {
52799+ return Yes::from($value); /*class*/
5249452800 }
5249552801
5249652802 /**
@@ -52501,83 +52807,815 @@ class Obj6 {
5250152807 if (Obj6::validateYes($this->yes)) {
5250252808 return $this->yes->to(); /*class*/
5250352809 }
52504- throw new Exception('never get to this Obj6::yes');
52810+ throw new Exception('never get to this Obj6::yes');
52811+ }
52812+
52813+ /**
52814+ * @param Yes
52815+ * @return bool
52816+ * @throws Exception
52817+ */
52818+ public static function validateYes(Yes $value): bool {
52819+ $value->validate();
52820+ return true;
52821+ }
52822+
52823+ /**
52824+ * @throws Exception
52825+ * @return Yes
52826+ */
52827+ public function getYes(): Yes {
52828+ if (Obj6::validateYes($this->yes)) {
52829+ return $this->yes;
52830+ }
52831+ throw new Exception('never get to getYes Obj6::yes');
52832+ }
52833+
52834+ /**
52835+ * @return Yes
52836+ */
52837+ public static function sampleYes(): Yes {
52838+ return Yes::sample(); /*48:yes*/
52839+ }
52840+
52841+ /**
52842+ * @param stdClass $value
52843+ * @throws Exception
52844+ * @return YieldClass
52845+ */
52846+ public static function fromYield(stdClass $value): YieldClass {
52847+ return YieldClass::from($value); /*class*/
52848+ }
52849+
52850+ /**
52851+ * @throws Exception
52852+ * @return stdClass
52853+ */
52854+ public function toYield(): stdClass {
52855+ if (Obj6::validateYield($this->yield)) {
52856+ return $this->yield->to(); /*class*/
52857+ }
52858+ throw new Exception('never get to this Obj6::yield');
52859+ }
52860+
52861+ /**
52862+ * @param YieldClass
52863+ * @return bool
52864+ * @throws Exception
52865+ */
52866+ public static function validateYield(YieldClass $value): bool {
52867+ $value->validate();
52868+ return true;
52869+ }
52870+
52871+ /**
52872+ * @throws Exception
52873+ * @return YieldClass
52874+ */
52875+ public function getYield(): YieldClass {
52876+ if (Obj6::validateYield($this->yield)) {
52877+ return $this->yield;
52878+ }
52879+ throw new Exception('never get to getYield Obj6::yield');
52880+ }
52881+
52882+ /**
52883+ * @return YieldClass
52884+ */
52885+ public static function sampleYield(): YieldClass {
52886+ return YieldClass::sample(); /*49:yield*/
52887+ }
52888+
52889+ /**
52890+ * @throws Exception
52891+ * @return bool
52892+ */
52893+ public function validate(): bool {
52894+ return Obj6::validateDummy($this->dummy)
52895+ || Obj6::validateUsing($this->using)
52896+ || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
52897+ || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
52898+ || Obj6::validateUUID($this->uuid)
52899+ || Obj6::validateVar($this->var)
52900+ || Obj6::validateVirtual($this->virtual)
52901+ || Obj6::validateVoid($this->void)
52902+ || Obj6::validateVolatile($this->volatile)
52903+ || Obj6::validateWcharT($this->wcharT)
52904+ || Obj6::validateWeak($this->weak)
52905+ || Obj6::validateWhere($this->where)
52906+ || Obj6::validateWhile($this->while)
52907+ || Obj6::validateWillSet($this->willSet)
52908+ || Obj6::validateWith($this->with)
52909+ || Obj6::validateXor($this->xor)
52910+ || Obj6::validateXorEq($this->xorEq)
52911+ || Obj6::validateYes($this->yes)
52912+ || Obj6::validateYield($this->yield);
52913+ }
52914+
52915+ /**
52916+ * @return stdClass
52917+ * @throws Exception
52918+ */
52919+ public function to(): stdClass {
52920+ $out = new stdClass();
52921+ $out->{'dummy'} = $this->toDummy();
52922+ $out->{'using'} = $this->toUsing();
52923+ $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
52924+ $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
52925+ $out->{'UUID'} = $this->toUUID();
52926+ $out->{'var'} = $this->toVar();
52927+ $out->{'virtual'} = $this->toVirtual();
52928+ $out->{'void'} = $this->toVoid();
52929+ $out->{'volatile'} = $this->toVolatile();
52930+ $out->{'wchar_t'} = $this->toWcharT();
52931+ $out->{'weak'} = $this->toWeak();
52932+ $out->{'where'} = $this->toWhere();
52933+ $out->{'while'} = $this->toWhile();
52934+ $out->{'willSet'} = $this->toWillSet();
52935+ $out->{'with'} = $this->toWith();
52936+ $out->{'xor'} = $this->toXor();
52937+ $out->{'xor_eq'} = $this->toXorEq();
52938+ $out->{'YES'} = $this->toYes();
52939+ $out->{'yield'} = $this->toYield();
52940+ return $out;
52941+ }
52942+
52943+ /**
52944+ * @param stdClass $obj
52945+ * @return Obj6
52946+ * @throws Exception
52947+ */
52948+ public static function from(stdClass $obj): Obj6 {
52949+ if (!property_exists($obj, 'dummy')) {
52950+ throw new Exception("Missing required property");
52951+ }
52952+ if (!property_exists($obj, 'using')) {
52953+ throw new Exception("Missing required property");
52954+ }
52955+ if (!property_exists($obj, 'Utf8JsonReader')) {
52956+ throw new Exception("Missing required property");
52957+ }
52958+ if (!property_exists($obj, 'Utf8JsonWriter')) {
52959+ throw new Exception("Missing required property");
52960+ }
52961+ if (!property_exists($obj, 'UUID')) {
52962+ throw new Exception("Missing required property");
52963+ }
52964+ if (!property_exists($obj, 'var')) {
52965+ throw new Exception("Missing required property");
52966+ }
52967+ if (!property_exists($obj, 'virtual')) {
52968+ throw new Exception("Missing required property");
52969+ }
52970+ if (!property_exists($obj, 'void')) {
52971+ throw new Exception("Missing required property");
52972+ }
52973+ if (!property_exists($obj, 'volatile')) {
52974+ throw new Exception("Missing required property");
52975+ }
52976+ if (!property_exists($obj, 'wchar_t')) {
52977+ throw new Exception("Missing required property");
52978+ }
52979+ if (!property_exists($obj, 'weak')) {
52980+ throw new Exception("Missing required property");
52981+ }
52982+ if (!property_exists($obj, 'where')) {
52983+ throw new Exception("Missing required property");
52984+ }
52985+ if (!property_exists($obj, 'while')) {
52986+ throw new Exception("Missing required property");
52987+ }
52988+ if (!property_exists($obj, 'willSet')) {
52989+ throw new Exception("Missing required property");
52990+ }
52991+ if (!property_exists($obj, 'with')) {
52992+ throw new Exception("Missing required property");
52993+ }
52994+ if (!property_exists($obj, 'xor')) {
52995+ throw new Exception("Missing required property");
52996+ }
52997+ if (!property_exists($obj, 'xor_eq')) {
52998+ throw new Exception("Missing required property");
52999+ }
53000+ if (!property_exists($obj, 'YES')) {
53001+ throw new Exception("Missing required property");
53002+ }
53003+ if (!property_exists($obj, 'yield')) {
53004+ throw new Exception("Missing required property");
53005+ }
53006+ return new Obj6(
53007+ Obj6::fromDummy($obj->{'dummy'})
53008+ ,Obj6::fromUsing($obj->{'using'})
53009+ ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53010+ ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53011+ ,Obj6::fromUUID($obj->{'UUID'})
53012+ ,Obj6::fromVar($obj->{'var'})
53013+ ,Obj6::fromVirtual($obj->{'virtual'})
53014+ ,Obj6::fromVoid($obj->{'void'})
53015+ ,Obj6::fromVolatile($obj->{'volatile'})
53016+ ,Obj6::fromWcharT($obj->{'wchar_t'})
53017+ ,Obj6::fromWeak($obj->{'weak'})
53018+ ,Obj6::fromWhere($obj->{'where'})
53019+ ,Obj6::fromWhile($obj->{'while'})
53020+ ,Obj6::fromWillSet($obj->{'willSet'})
53021+ ,Obj6::fromWith($obj->{'with'})
53022+ ,Obj6::fromXor($obj->{'xor'})
53023+ ,Obj6::fromXorEq($obj->{'xor_eq'})
53024+ ,Obj6::fromYes($obj->{'YES'})
53025+ ,Obj6::fromYield($obj->{'yield'})
53026+ );
53027+ }
53028+
53029+ /**
53030+ * @return Obj6
53031+ */
53032+ public static function sample(): Obj6 {
53033+ return new Obj6(
53034+ Obj6::sampleDummy()
53035+ ,Obj6::sampleUsing()
53036+ ,Obj6::sampleUtf8JSONReader()
53037+ ,Obj6::sampleUtf8JSONWriter()
53038+ ,Obj6::sampleUUID()
53039+ ,Obj6::sampleVar()
53040+ ,Obj6::sampleVirtual()
53041+ ,Obj6::sampleVoid()
53042+ ,Obj6::sampleVolatile()
53043+ ,Obj6::sampleWcharT()
53044+ ,Obj6::sampleWeak()
53045+ ,Obj6::sampleWhere()
53046+ ,Obj6::sampleWhile()
53047+ ,Obj6::sampleWillSet()
53048+ ,Obj6::sampleWith()
53049+ ,Obj6::sampleXor()
53050+ ,Obj6::sampleXorEq()
53051+ ,Obj6::sampleYes()
53052+ ,Obj6::sampleYield()
53053+ );
53054+ }
53055+}
53056+
53057+// This is an autogenerated file:Using
53058+
53059+class Using {
53060+ private int $using; // json:using Required
53061+
53062+ /**
53063+ * @param int $using
53064+ */
53065+ public function __construct(int $using) {
53066+ $this->using = $using;
53067+ }
53068+
53069+ /**
53070+ * @param int $value
53071+ * @throws Exception
53072+ * @return int
53073+ */
53074+ public static function fromUsing(int $value): int {
53075+ return $value; /*int*/
53076+ }
53077+
53078+ /**
53079+ * @throws Exception
53080+ * @return int
53081+ */
53082+ public function toUsing(): int {
53083+ if (Using::validateUsing($this->using)) {
53084+ return $this->using; /*int*/
53085+ }
53086+ throw new Exception('never get to this Using::using');
53087+ }
53088+
53089+ /**
53090+ * @param int
53091+ * @return bool
53092+ * @throws Exception
53093+ */
53094+ public static function validateUsing(int $value): bool {
53095+ return true;
53096+ }
53097+
53098+ /**
53099+ * @throws Exception
53100+ * @return int
53101+ */
53102+ public function getUsing(): int {
53103+ if (Using::validateUsing($this->using)) {
53104+ return $this->using;
53105+ }
53106+ throw new Exception('never get to getUsing Using::using');
53107+ }
53108+
53109+ /**
53110+ * @return int
53111+ */
53112+ public static function sampleUsing(): int {
53113+ return 31; /*31:using*/
53114+ }
53115+
53116+ /**
53117+ * @throws Exception
53118+ * @return bool
53119+ */
53120+ public function validate(): bool {
53121+ return Using::validateUsing($this->using);
53122+ }
53123+
53124+ /**
53125+ * @return stdClass
53126+ * @throws Exception
53127+ */
53128+ public function to(): stdClass {
53129+ $out = new stdClass();
53130+ $out->{'using'} = $this->toUsing();
53131+ return $out;
53132+ }
53133+
53134+ /**
53135+ * @param stdClass $obj
53136+ * @return Using
53137+ * @throws Exception
53138+ */
53139+ public static function from(stdClass $obj): Using {
53140+ if (!property_exists($obj, 'using')) {
53141+ throw new Exception("Missing required property");
53142+ }
53143+ return new Using(
53144+ Using::fromUsing($obj->{'using'})
53145+ );
53146+ }
53147+
53148+ /**
53149+ * @return Using
53150+ */
53151+ public static function sample(): Using {
53152+ return new Using(
53153+ Using::sampleUsing()
53154+ );
53155+ }
53156+}
53157+
53158+// This is an autogenerated file:Utf8JSONReader
53159+
53160+class Utf8JSONReader {
53161+ private int $utf8JSONReader; // json:Utf8JsonReader Required
53162+
53163+ /**
53164+ * @param int $utf8JSONReader
53165+ */
53166+ public function __construct(int $utf8JSONReader) {
53167+ $this->utf8JSONReader = $utf8JSONReader;
53168+ }
53169+
53170+ /**
53171+ * @param int $value
53172+ * @throws Exception
53173+ * @return int
53174+ */
53175+ public static function fromUtf8JSONReader(int $value): int {
53176+ return $value; /*int*/
53177+ }
53178+
53179+ /**
53180+ * @throws Exception
53181+ * @return int
53182+ */
53183+ public function toUtf8JSONReader(): int {
53184+ if (Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader)) {
53185+ return $this->utf8JSONReader; /*int*/
53186+ }
53187+ throw new Exception('never get to this Utf8JSONReader::utf8JSONReader');
53188+ }
53189+
53190+ /**
53191+ * @param int
53192+ * @return bool
53193+ * @throws Exception
53194+ */
53195+ public static function validateUtf8JSONReader(int $value): bool {
53196+ return true;
53197+ }
53198+
53199+ /**
53200+ * @throws Exception
53201+ * @return int
53202+ */
53203+ public function getUtf8JSONReader(): int {
53204+ if (Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader)) {
53205+ return $this->utf8JSONReader;
53206+ }
53207+ throw new Exception('never get to getUtf8JSONReader Utf8JSONReader::utf8JSONReader');
53208+ }
53209+
53210+ /**
53211+ * @return int
53212+ */
53213+ public static function sampleUtf8JSONReader(): int {
53214+ return 31; /*31:utf8JSONReader*/
53215+ }
53216+
53217+ /**
53218+ * @throws Exception
53219+ * @return bool
53220+ */
53221+ public function validate(): bool {
53222+ return Utf8JSONReader::validateUtf8JSONReader($this->utf8JSONReader);
53223+ }
53224+
53225+ /**
53226+ * @return stdClass
53227+ * @throws Exception
53228+ */
53229+ public function to(): stdClass {
53230+ $out = new stdClass();
53231+ $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
53232+ return $out;
53233+ }
53234+
53235+ /**
53236+ * @param stdClass $obj
53237+ * @return Utf8JSONReader
53238+ * @throws Exception
53239+ */
53240+ public static function from(stdClass $obj): Utf8JSONReader {
53241+ if (!property_exists($obj, 'Utf8JsonReader')) {
53242+ throw new Exception("Missing required property");
53243+ }
53244+ return new Utf8JSONReader(
53245+ Utf8JSONReader::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53246+ );
53247+ }
53248+
53249+ /**
53250+ * @return Utf8JSONReader
53251+ */
53252+ public static function sample(): Utf8JSONReader {
53253+ return new Utf8JSONReader(
53254+ Utf8JSONReader::sampleUtf8JSONReader()
53255+ );
53256+ }
53257+}
53258+
53259+// This is an autogenerated file:Utf8JSONWriter
53260+
53261+class Utf8JSONWriter {
53262+ private int $utf8JSONWriter; // json:Utf8JsonWriter Required
53263+
53264+ /**
53265+ * @param int $utf8JSONWriter
53266+ */
53267+ public function __construct(int $utf8JSONWriter) {
53268+ $this->utf8JSONWriter = $utf8JSONWriter;
53269+ }
53270+
53271+ /**
53272+ * @param int $value
53273+ * @throws Exception
53274+ * @return int
53275+ */
53276+ public static function fromUtf8JSONWriter(int $value): int {
53277+ return $value; /*int*/
53278+ }
53279+
53280+ /**
53281+ * @throws Exception
53282+ * @return int
53283+ */
53284+ public function toUtf8JSONWriter(): int {
53285+ if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) {
53286+ return $this->utf8JSONWriter; /*int*/
53287+ }
53288+ throw new Exception('never get to this Utf8JSONWriter::utf8JSONWriter');
53289+ }
53290+
53291+ /**
53292+ * @param int
53293+ * @return bool
53294+ * @throws Exception
53295+ */
53296+ public static function validateUtf8JSONWriter(int $value): bool {
53297+ return true;
53298+ }
53299+
53300+ /**
53301+ * @throws Exception
53302+ * @return int
53303+ */
53304+ public function getUtf8JSONWriter(): int {
53305+ if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) {
53306+ return $this->utf8JSONWriter;
53307+ }
53308+ throw new Exception('never get to getUtf8JSONWriter Utf8JSONWriter::utf8JSONWriter');
53309+ }
53310+
53311+ /**
53312+ * @return int
53313+ */
53314+ public static function sampleUtf8JSONWriter(): int {
53315+ return 31; /*31:utf8JSONWriter*/
53316+ }
53317+
53318+ /**
53319+ * @throws Exception
53320+ * @return bool
53321+ */
53322+ public function validate(): bool {
53323+ return Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter);
53324+ }
53325+
53326+ /**
53327+ * @return stdClass
53328+ * @throws Exception
53329+ */
53330+ public function to(): stdClass {
53331+ $out = new stdClass();
53332+ $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
53333+ return $out;
53334+ }
53335+
53336+ /**
53337+ * @param stdClass $obj
53338+ * @return Utf8JSONWriter
53339+ * @throws Exception
53340+ */
53341+ public static function from(stdClass $obj): Utf8JSONWriter {
53342+ if (!property_exists($obj, 'Utf8JsonWriter')) {
53343+ throw new Exception("Missing required property");
53344+ }
53345+ return new Utf8JSONWriter(
53346+ Utf8JSONWriter::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53347+ );
53348+ }
53349+
53350+ /**
53351+ * @return Utf8JSONWriter
53352+ */
53353+ public static function sample(): Utf8JSONWriter {
53354+ return new Utf8JSONWriter(
53355+ Utf8JSONWriter::sampleUtf8JSONWriter()
53356+ );
53357+ }
53358+}
53359+
53360+// This is an autogenerated file:UUID
53361+
53362+class UUID {
53363+ private int $uuid; // json:UUID Required
53364+
53365+ /**
53366+ * @param int $uuid
53367+ */
53368+ public function __construct(int $uuid) {
53369+ $this->uuid = $uuid;
53370+ }
53371+
53372+ /**
53373+ * @param int $value
53374+ * @throws Exception
53375+ * @return int
53376+ */
53377+ public static function fromUUID(int $value): int {
53378+ return $value; /*int*/
53379+ }
53380+
53381+ /**
53382+ * @throws Exception
53383+ * @return int
53384+ */
53385+ public function toUUID(): int {
53386+ if (UUID::validateUUID($this->uuid)) {
53387+ return $this->uuid; /*int*/
53388+ }
53389+ throw new Exception('never get to this UUID::uuid');
53390+ }
53391+
53392+ /**
53393+ * @param int
53394+ * @return bool
53395+ * @throws Exception
53396+ */
53397+ public static function validateUUID(int $value): bool {
53398+ return true;
53399+ }
53400+
53401+ /**
53402+ * @throws Exception
53403+ * @return int
53404+ */
53405+ public function getUUID(): int {
53406+ if (UUID::validateUUID($this->uuid)) {
53407+ return $this->uuid;
53408+ }
53409+ throw new Exception('never get to getUUID UUID::uuid');
53410+ }
53411+
53412+ /**
53413+ * @return int
53414+ */
53415+ public static function sampleUUID(): int {
53416+ return 31; /*31:uuid*/
53417+ }
53418+
53419+ /**
53420+ * @throws Exception
53421+ * @return bool
53422+ */
53423+ public function validate(): bool {
53424+ return UUID::validateUUID($this->uuid);
53425+ }
53426+
53427+ /**
53428+ * @return stdClass
53429+ * @throws Exception
53430+ */
53431+ public function to(): stdClass {
53432+ $out = new stdClass();
53433+ $out->{'UUID'} = $this->toUUID();
53434+ return $out;
53435+ }
53436+
53437+ /**
53438+ * @param stdClass $obj
53439+ * @return UUID
53440+ * @throws Exception
53441+ */
53442+ public static function from(stdClass $obj): UUID {
53443+ if (!property_exists($obj, 'UUID')) {
53444+ throw new Exception("Missing required property");
53445+ }
53446+ return new UUID(
53447+ UUID::fromUUID($obj->{'UUID'})
53448+ );
53449+ }
53450+
53451+ /**
53452+ * @return UUID
53453+ */
53454+ public static function sample(): UUID {
53455+ return new UUID(
53456+ UUID::sampleUUID()
53457+ );
53458+ }
53459+}
53460+
53461+// This is an autogenerated file:VarClass
53462+
53463+class VarClass {
53464+ private int $var; // json:var Required
53465+
53466+ /**
53467+ * @param int $var
53468+ */
53469+ public function __construct(int $var) {
53470+ $this->var = $var;
53471+ }
53472+
53473+ /**
53474+ * @param int $value
53475+ * @throws Exception
53476+ * @return int
53477+ */
53478+ public static function fromVar(int $value): int {
53479+ return $value; /*int*/
53480+ }
53481+
53482+ /**
53483+ * @throws Exception
53484+ * @return int
53485+ */
53486+ public function toVar(): int {
53487+ if (VarClass::validateVar($this->var)) {
53488+ return $this->var; /*int*/
53489+ }
53490+ throw new Exception('never get to this VarClass::var');
5250553491 }
5250653492
5250753493 /**
52508- * @param Yes
53494+ * @param int
5250953495 * @return bool
5251053496 * @throws Exception
5251153497 */
52512- public static function validateYes(Yes $value): bool {
52513- $value->validate();
53498+ public static function validateVar(int $value): bool {
5251453499 return true;
5251553500 }
5251653501
5251753502 /**
5251853503 * @throws Exception
52519- * @return Yes
53504+ * @return int
5252053505 */
52521- public function getYes(): Yes {
52522- if (Obj6::validateYes($this->yes)) {
52523- return $this->yes;
53506+ public function getVar(): int {
53507+ if (VarClass::validateVar($this->var)) {
53508+ return $this->var;
5252453509 }
52525- throw new Exception('never get to getYes Obj6::yes');
53510+ throw new Exception('never get to getVar VarClass::var');
5252653511 }
5252753512
5252853513 /**
52529- * @return Yes
53514+ * @return int
5253053515 */
52531- public static function sampleYes(): Yes {
52532- return Yes::sample(); /*42:yes*/
53516+ public static function sampleVar(): int {
53517+ return 31; /*31:var*/
5253353518 }
5253453519
5253553520 /**
52536- * @param stdClass $value
5253753521 * @throws Exception
52538- * @return YieldClass
53522+ * @return bool
5253953523 */
52540- public static function fromYield(stdClass $value): YieldClass {
52541- return YieldClass::from($value); /*class*/
53524+ public function validate(): bool {
53525+ return VarClass::validateVar($this->var);
5254253526 }
5254353527
5254453528 /**
52545- * @throws Exception
5254653529 * @return stdClass
53530+ * @throws Exception
5254753531 */
52548- public function toYield(): stdClass {
52549- if (Obj6::validateYield($this->yield)) {
52550- return $this->yield->to(); /*class*/
53532+ public function to(): stdClass {
53533+ $out = new stdClass();
53534+ $out->{'var'} = $this->toVar();
53535+ return $out;
53536+ }
53537+
53538+ /**
53539+ * @param stdClass $obj
53540+ * @return VarClass
53541+ * @throws Exception
53542+ */
53543+ public static function from(stdClass $obj): VarClass {
53544+ if (!property_exists($obj, 'var')) {
53545+ throw new Exception("Missing required property");
5255153546 }
52552- throw new Exception('never get to this Obj6::yield');
53547+ return new VarClass(
53548+ VarClass::fromVar($obj->{'var'})
53549+ );
5255353550 }
5255453551
5255553552 /**
52556- * @param YieldClass
53553+ * @return VarClass
53554+ */
53555+ public static function sample(): VarClass {
53556+ return new VarClass(
53557+ VarClass::sampleVar()
53558+ );
53559+ }
53560+}
53561+
53562+// This is an autogenerated file:Virtual
53563+
53564+class Virtual {
53565+ private int $virtual; // json:virtual Required
53566+
53567+ /**
53568+ * @param int $virtual
53569+ */
53570+ public function __construct(int $virtual) {
53571+ $this->virtual = $virtual;
53572+ }
53573+
53574+ /**
53575+ * @param int $value
53576+ * @throws Exception
53577+ * @return int
53578+ */
53579+ public static function fromVirtual(int $value): int {
53580+ return $value; /*int*/
53581+ }
53582+
53583+ /**
53584+ * @throws Exception
53585+ * @return int
53586+ */
53587+ public function toVirtual(): int {
53588+ if (Virtual::validateVirtual($this->virtual)) {
53589+ return $this->virtual; /*int*/
53590+ }
53591+ throw new Exception('never get to this Virtual::virtual');
53592+ }
53593+
53594+ /**
53595+ * @param int
5255753596 * @return bool
5255853597 * @throws Exception
5255953598 */
52560- public static function validateYield(YieldClass $value): bool {
52561- $value->validate();
53599+ public static function validateVirtual(int $value): bool {
5256253600 return true;
5256353601 }
5256453602
5256553603 /**
5256653604 * @throws Exception
52567- * @return YieldClass
53605+ * @return int
5256853606 */
52569- public function getYield(): YieldClass {
52570- if (Obj6::validateYield($this->yield)) {
52571- return $this->yield;
53607+ public function getVirtual(): int {
53608+ if (Virtual::validateVirtual($this->virtual)) {
53609+ return $this->virtual;
5257253610 }
52573- throw new Exception('never get to getYield Obj6::yield');
53611+ throw new Exception('never get to getVirtual Virtual::virtual');
5257453612 }
5257553613
5257653614 /**
52577- * @return YieldClass
53615+ * @return int
5257853616 */
52579- public static function sampleYield(): YieldClass {
52580- return YieldClass::sample(); /*43:yield*/
53617+ public static function sampleVirtual(): int {
53618+ return 31; /*31:virtual*/
5258153619 }
5258253620
5258353621 /**
@@ -52585,19 +53623,7 @@ class Obj6 {
5258553623 * @return bool
5258653624 */
5258753625 public function validate(): bool {
52588- return Obj6::validateDummy($this->dummy)
52589- || Obj6::validateVoid($this->void)
52590- || Obj6::validateVolatile($this->volatile)
52591- || Obj6::validateWcharT($this->wcharT)
52592- || Obj6::validateWeak($this->weak)
52593- || Obj6::validateWhere($this->where)
52594- || Obj6::validateWhile($this->while)
52595- || Obj6::validateWillSet($this->willSet)
52596- || Obj6::validateWith($this->with)
52597- || Obj6::validateXor($this->xor)
52598- || Obj6::validateXorEq($this->xorEq)
52599- || Obj6::validateYes($this->yes)
52600- || Obj6::validateYield($this->yield);
53626+ return Virtual::validateVirtual($this->virtual);
5260153627 }
5260253628
5260353629 /**
@@ -52606,102 +53632,30 @@ class Obj6 {
5260653632 */
5260753633 public function to(): stdClass {
5260853634 $out = new stdClass();
52609- $out->{'dummy'} = $this->toDummy();
52610- $out->{'void'} = $this->toVoid();
52611- $out->{'volatile'} = $this->toVolatile();
52612- $out->{'wchar_t'} = $this->toWcharT();
52613- $out->{'weak'} = $this->toWeak();
52614- $out->{'where'} = $this->toWhere();
52615- $out->{'while'} = $this->toWhile();
52616- $out->{'willSet'} = $this->toWillSet();
52617- $out->{'with'} = $this->toWith();
52618- $out->{'xor'} = $this->toXor();
52619- $out->{'xor_eq'} = $this->toXorEq();
52620- $out->{'YES'} = $this->toYes();
52621- $out->{'yield'} = $this->toYield();
53635+ $out->{'virtual'} = $this->toVirtual();
5262253636 return $out;
5262353637 }
5262453638
5262553639 /**
5262653640 * @param stdClass $obj
52627- * @return Obj6
53641+ * @return Virtual
5262853642 * @throws Exception
5262953643 */
52630- public static function from(stdClass $obj): Obj6 {
52631- if (!property_exists($obj, 'dummy')) {
52632- throw new Exception("Missing required property");
52633- }
52634- if (!property_exists($obj, 'void')) {
52635- throw new Exception("Missing required property");
52636- }
52637- if (!property_exists($obj, 'volatile')) {
52638- throw new Exception("Missing required property");
52639- }
52640- if (!property_exists($obj, 'wchar_t')) {
52641- throw new Exception("Missing required property");
52642- }
52643- if (!property_exists($obj, 'weak')) {
52644- throw new Exception("Missing required property");
52645- }
52646- if (!property_exists($obj, 'where')) {
52647- throw new Exception("Missing required property");
52648- }
52649- if (!property_exists($obj, 'while')) {
52650- throw new Exception("Missing required property");
52651- }
52652- if (!property_exists($obj, 'willSet')) {
52653- throw new Exception("Missing required property");
52654- }
52655- if (!property_exists($obj, 'with')) {
52656- throw new Exception("Missing required property");
52657- }
52658- if (!property_exists($obj, 'xor')) {
52659- throw new Exception("Missing required property");
52660- }
52661- if (!property_exists($obj, 'xor_eq')) {
52662- throw new Exception("Missing required property");
52663- }
52664- if (!property_exists($obj, 'YES')) {
52665- throw new Exception("Missing required property");
52666- }
52667- if (!property_exists($obj, 'yield')) {
53644+ public static function from(stdClass $obj): Virtual {
53645+ if (!property_exists($obj, 'virtual')) {
5266853646 throw new Exception("Missing required property");
5266953647 }
52670- return new Obj6(
52671- Obj6::fromDummy($obj->{'dummy'})
52672- ,Obj6::fromVoid($obj->{'void'})
52673- ,Obj6::fromVolatile($obj->{'volatile'})
52674- ,Obj6::fromWcharT($obj->{'wchar_t'})
52675- ,Obj6::fromWeak($obj->{'weak'})
52676- ,Obj6::fromWhere($obj->{'where'})
52677- ,Obj6::fromWhile($obj->{'while'})
52678- ,Obj6::fromWillSet($obj->{'willSet'})
52679- ,Obj6::fromWith($obj->{'with'})
52680- ,Obj6::fromXor($obj->{'xor'})
52681- ,Obj6::fromXorEq($obj->{'xor_eq'})
52682- ,Obj6::fromYes($obj->{'YES'})
52683- ,Obj6::fromYield($obj->{'yield'})
53648+ return new Virtual(
53649+ Virtual::fromVirtual($obj->{'virtual'})
5268453650 );
5268553651 }
5268653652
5268753653 /**
52688- * @return Obj6
53654+ * @return Virtual
5268953655 */
52690- public static function sample(): Obj6 {
52691- return new Obj6(
52692- Obj6::sampleDummy()
52693- ,Obj6::sampleVoid()
52694- ,Obj6::sampleVolatile()
52695- ,Obj6::sampleWcharT()
52696- ,Obj6::sampleWeak()
52697- ,Obj6::sampleWhere()
52698- ,Obj6::sampleWhile()
52699- ,Obj6::sampleWillSet()
52700- ,Obj6::sampleWith()
52701- ,Obj6::sampleXor()
52702- ,Obj6::sampleXorEq()
52703- ,Obj6::sampleYes()
52704- ,Obj6::sampleYield()
53656+ public static function sample(): Virtual {
53657+ return new Virtual(
53658+ Virtual::sampleVirtual()
5270553659 );
5270653660 }
5270753661 }
Mpikedefault / TopLevel.pmod+283 −133
@@ -6548,6 +6548,7 @@ Select Select_from_JSON(mixed json) {
65486548
65496549 class Obj5 {
65506550 int dummy; // json: "dummy"
6551+ KSerializer k_serializer; // json: "KSerializer"
65516552 SelfClass obj5_self; // json: "self"
65526553 Static obj5_static; // json: "static"
65536554 String obj5_string; // json: "string"
@@ -6556,8 +6557,12 @@ class Obj5 {
65566557 TypeClass obj5_type; // json: "type"
65576558 Typedef obj5_typedef; // json: "typedef"
65586559 Typeof obj5_typeof; // json: "typeof"
6560+ PrimitiveKind primitive_kind; // json: "PrimitiveKind"
65596561 Self self; // json: "Self"
65606562 Sendable sendable; // json: "Sendable"
6563+ SerialDescriptor serial_descriptor; // json: "SerialDescriptor"
6564+ SerialName serial_name; // json: "SerialName"
6565+ Serializable serializable; // json: "Serializable"
65616566 Serialize serialize; // json: "serialize"
65626567 SerializerProvider serializer_provider; // json: "SerializerProvider"
65636568 Set set; // json: "set"
@@ -6605,17 +6610,13 @@ class Obj5 {
66056610 Unowned unowned; // json: "unowned"
66066611 Unsafe unsafe; // json: "unsafe"
66076612 Unsigned unsigned; // json: "unsigned"
6613+ UseSerializers use_serializers; // json: "UseSerializers"
66086614 Ushort ushort; // json: "ushort"
6609- Using using; // json: "using"
6610- Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
6611- Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
6612- Uuid uuid; // json: "UUID"
6613- Var var; // json: "var"
6614- Virtual virtual; // json: "virtual"
66156615
66166616 string encode_json() {
66176617 mapping(string:mixed) json = ([
66186618 "dummy" : dummy,
6619+ "KSerializer" : k_serializer,
66196620 "self" : obj5_self,
66206621 "static" : obj5_static,
66216622 "string" : obj5_string,
@@ -6624,8 +6625,12 @@ class Obj5 {
66246625 "type" : obj5_type,
66256626 "typedef" : obj5_typedef,
66266627 "typeof" : obj5_typeof,
6628+ "PrimitiveKind" : primitive_kind,
66276629 "Self" : self,
66286630 "Sendable" : sendable,
6631+ "SerialDescriptor" : serial_descriptor,
6632+ "SerialName" : serial_name,
6633+ "Serializable" : serializable,
66296634 "serialize" : serialize,
66306635 "SerializerProvider" : serializer_provider,
66316636 "set" : set,
@@ -6673,13 +6678,8 @@ class Obj5 {
66736678 "unowned" : unowned,
66746679 "unsafe" : unsafe,
66756680 "unsigned" : unsigned,
6681+ "UseSerializers" : use_serializers,
66766682 "ushort" : ushort,
6677- "using" : using,
6678- "Utf8JsonReader" : utf8_json_reader,
6679- "Utf8JsonWriter" : utf8_json_writer,
6680- "UUID" : uuid,
6681- "var" : var,
6682- "virtual" : virtual,
66836683 ]);
66846684
66856685 return Standards.JSON.encode(json);
@@ -6691,6 +6691,8 @@ Obj5 Obj5_from_JSON(mixed json) {
66916691
66926692 if (!intp(json["dummy"])) error("Expected integer");
66936693 retval.dummy = json["dummy"];
6694+ if (!mappingp(json["KSerializer"])) error("Expected object");
6695+ retval.k_serializer = json["KSerializer"];
66946696 if (!mappingp(json["self"])) error("Expected object");
66956697 retval.obj5_self = json["self"];
66966698 if (!mappingp(json["static"])) error("Expected object");
@@ -6707,10 +6709,18 @@ Obj5 Obj5_from_JSON(mixed json) {
67076709 retval.obj5_typedef = json["typedef"];
67086710 if (!mappingp(json["typeof"])) error("Expected object");
67096711 retval.obj5_typeof = json["typeof"];
6712+ if (!mappingp(json["PrimitiveKind"])) error("Expected object");
6713+ retval.primitive_kind = json["PrimitiveKind"];
67106714 if (!mappingp(json["Self"])) error("Expected object");
67116715 retval.self = json["Self"];
67126716 if (!mappingp(json["Sendable"])) error("Expected object");
67136717 retval.sendable = json["Sendable"];
6718+ if (!mappingp(json["SerialDescriptor"])) error("Expected object");
6719+ retval.serial_descriptor = json["SerialDescriptor"];
6720+ if (!mappingp(json["SerialName"])) error("Expected object");
6721+ retval.serial_name = json["SerialName"];
6722+ if (!mappingp(json["Serializable"])) error("Expected object");
6723+ retval.serializable = json["Serializable"];
67146724 if (!mappingp(json["serialize"])) error("Expected object");
67156725 retval.serialize = json["serialize"];
67166726 if (!mappingp(json["SerializerProvider"])) error("Expected object");
@@ -6805,20 +6815,31 @@ Obj5 Obj5_from_JSON(mixed json) {
68056815 retval.unsafe = json["unsafe"];
68066816 if (!mappingp(json["unsigned"])) error("Expected object");
68076817 retval.unsigned = json["unsigned"];
6818+ if (!mappingp(json["UseSerializers"])) error("Expected object");
6819+ retval.use_serializers = json["UseSerializers"];
68086820 if (!mappingp(json["ushort"])) error("Expected object");
68096821 retval.ushort = json["ushort"];
6810- if (!mappingp(json["using"])) error("Expected object");
6811- retval.using = json["using"];
6812- if (!mappingp(json["Utf8JsonReader"])) error("Expected object");
6813- retval.utf8_json_reader = json["Utf8JsonReader"];
6814- if (!mappingp(json["Utf8JsonWriter"])) error("Expected object");
6815- retval.utf8_json_writer = json["Utf8JsonWriter"];
6816- if (!mappingp(json["UUID"])) error("Expected object");
6817- retval.uuid = json["UUID"];
6818- if (!mappingp(json["var"])) error("Expected object");
6819- retval.var = json["var"];
6820- if (!mappingp(json["virtual"])) error("Expected object");
6821- retval.virtual = json["virtual"];
6822+
6823+ return retval;
6824+}
6825+
6826+class KSerializer {
6827+ int k_serializer; // json: "KSerializer"
6828+
6829+ string encode_json() {
6830+ mapping(string:mixed) json = ([
6831+ "KSerializer" : k_serializer,
6832+ ]);
6833+
6834+ return Standards.JSON.encode(json);
6835+ }
6836+}
6837+
6838+KSerializer KSerializer_from_JSON(mixed json) {
6839+ KSerializer retval = KSerializer();
6840+
6841+ if (!intp(json["KSerializer"])) error("Expected integer");
6842+ retval.k_serializer = json["KSerializer"];
68226843
68236844 return retval;
68246845 }
@@ -6991,6 +7012,27 @@ Typeof Typeof_from_JSON(mixed json) {
69917012 return retval;
69927013 }
69937014
7015+class PrimitiveKind {
7016+ int primitive_kind; // json: "PrimitiveKind"
7017+
7018+ string encode_json() {
7019+ mapping(string:mixed) json = ([
7020+ "PrimitiveKind" : primitive_kind,
7021+ ]);
7022+
7023+ return Standards.JSON.encode(json);
7024+ }
7025+}
7026+
7027+PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
7028+ PrimitiveKind retval = PrimitiveKind();
7029+
7030+ if (!intp(json["PrimitiveKind"])) error("Expected integer");
7031+ retval.primitive_kind = json["PrimitiveKind"];
7032+
7033+ return retval;
7034+}
7035+
69947036 class Self {
69957037 int self; // json: "Self"
69967038
@@ -7033,6 +7075,69 @@ Sendable Sendable_from_JSON(mixed json) {
70337075 return retval;
70347076 }
70357077
7078+class SerialDescriptor {
7079+ int serial_descriptor; // json: "SerialDescriptor"
7080+
7081+ string encode_json() {
7082+ mapping(string:mixed) json = ([
7083+ "SerialDescriptor" : serial_descriptor,
7084+ ]);
7085+
7086+ return Standards.JSON.encode(json);
7087+ }
7088+}
7089+
7090+SerialDescriptor SerialDescriptor_from_JSON(mixed json) {
7091+ SerialDescriptor retval = SerialDescriptor();
7092+
7093+ if (!intp(json["SerialDescriptor"])) error("Expected integer");
7094+ retval.serial_descriptor = json["SerialDescriptor"];
7095+
7096+ return retval;
7097+}
7098+
7099+class SerialName {
7100+ int serial_name; // json: "SerialName"
7101+
7102+ string encode_json() {
7103+ mapping(string:mixed) json = ([
7104+ "SerialName" : serial_name,
7105+ ]);
7106+
7107+ return Standards.JSON.encode(json);
7108+ }
7109+}
7110+
7111+SerialName SerialName_from_JSON(mixed json) {
7112+ SerialName retval = SerialName();
7113+
7114+ if (!intp(json["SerialName"])) error("Expected integer");
7115+ retval.serial_name = json["SerialName"];
7116+
7117+ return retval;
7118+}
7119+
7120+class Serializable {
7121+ int serializable; // json: "Serializable"
7122+
7123+ string encode_json() {
7124+ mapping(string:mixed) json = ([
7125+ "Serializable" : serializable,
7126+ ]);
7127+
7128+ return Standards.JSON.encode(json);
7129+ }
7130+}
7131+
7132+Serializable Serializable_from_JSON(mixed json) {
7133+ Serializable retval = Serializable();
7134+
7135+ if (!intp(json["Serializable"])) error("Expected integer");
7136+ retval.serializable = json["Serializable"];
7137+
7138+ return retval;
7139+}
7140+
70367141 class Serialize {
70377142 int serialize; // json: "serialize"
70387143
@@ -8020,6 +8125,27 @@ Unsigned Unsigned_from_JSON(mixed json) {
80208125 return retval;
80218126 }
80228127
8128+class UseSerializers {
8129+ int use_serializers; // json: "UseSerializers"
8130+
8131+ string encode_json() {
8132+ mapping(string:mixed) json = ([
8133+ "UseSerializers" : use_serializers,
8134+ ]);
8135+
8136+ return Standards.JSON.encode(json);
8137+ }
8138+}
8139+
8140+UseSerializers UseSerializers_from_JSON(mixed json) {
8141+ UseSerializers retval = UseSerializers();
8142+
8143+ if (!intp(json["UseSerializers"])) error("Expected integer");
8144+ retval.use_serializers = json["UseSerializers"];
8145+
8146+ return retval;
8147+}
8148+
80238149 class Ushort {
80248150 int ushort; // json: "ushort"
80258151
@@ -8041,239 +8167,263 @@ Ushort Ushort_from_JSON(mixed json) {
80418167 return retval;
80428168 }
80438169
8044-class Using {
8045- int using; // json: "using"
8170+class Obj6 {
8171+ int dummy; // json: "dummy"
8172+ Void obj6_void; // json: "void"
8173+ While obj6_while; // json: "while"
8174+ Using using; // json: "using"
8175+ Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
8176+ Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
8177+ Uuid uuid; // json: "UUID"
8178+ Var var; // json: "var"
8179+ Virtual virtual; // json: "virtual"
8180+ Volatile volatile; // json: "volatile"
8181+ WcharT wchar_t; // json: "wchar_t"
8182+ Weak weak; // json: "weak"
8183+ Where where; // json: "where"
8184+ WillSet will_set; // json: "willSet"
8185+ With with; // json: "with"
8186+ Xor xor; // json: "xor"
8187+ XorEq xor_eq; // json: "xor_eq"
8188+ Yes yes; // json: "YES"
8189+ Yield yield; // json: "yield"
80468190
80478191 string encode_json() {
80488192 mapping(string:mixed) json = ([
8193+ "dummy" : dummy,
8194+ "void" : obj6_void,
8195+ "while" : obj6_while,
80498196 "using" : using,
8197+ "Utf8JsonReader" : utf8_json_reader,
8198+ "Utf8JsonWriter" : utf8_json_writer,
8199+ "UUID" : uuid,
8200+ "var" : var,
8201+ "virtual" : virtual,
8202+ "volatile" : volatile,
8203+ "wchar_t" : wchar_t,
8204+ "weak" : weak,
8205+ "where" : where,
8206+ "willSet" : will_set,
8207+ "with" : with,
8208+ "xor" : xor,
8209+ "xor_eq" : xor_eq,
8210+ "YES" : yes,
8211+ "yield" : yield,
80508212 ]);
80518213
80528214 return Standards.JSON.encode(json);
80538215 }
80548216 }
80558217
8056-Using Using_from_JSON(mixed json) {
8057- Using retval = Using();
8218+Obj6 Obj6_from_JSON(mixed json) {
8219+ Obj6 retval = Obj6();
80588220
8059- if (!intp(json["using"])) error("Expected integer");
8221+ if (!intp(json["dummy"])) error("Expected integer");
8222+ retval.dummy = json["dummy"];
8223+ if (!mappingp(json["void"])) error("Expected object");
8224+ retval.obj6_void = json["void"];
8225+ if (!mappingp(json["while"])) error("Expected object");
8226+ retval.obj6_while = json["while"];
8227+ if (!mappingp(json["using"])) error("Expected object");
80608228 retval.using = json["using"];
8229+ if (!mappingp(json["Utf8JsonReader"])) error("Expected object");
8230+ retval.utf8_json_reader = json["Utf8JsonReader"];
8231+ if (!mappingp(json["Utf8JsonWriter"])) error("Expected object");
8232+ retval.utf8_json_writer = json["Utf8JsonWriter"];
8233+ if (!mappingp(json["UUID"])) error("Expected object");
8234+ retval.uuid = json["UUID"];
8235+ if (!mappingp(json["var"])) error("Expected object");
8236+ retval.var = json["var"];
8237+ if (!mappingp(json["virtual"])) error("Expected object");
8238+ retval.virtual = json["virtual"];
8239+ if (!mappingp(json["volatile"])) error("Expected object");
8240+ retval.volatile = json["volatile"];
8241+ if (!mappingp(json["wchar_t"])) error("Expected object");
8242+ retval.wchar_t = json["wchar_t"];
8243+ if (!mappingp(json["weak"])) error("Expected object");
8244+ retval.weak = json["weak"];
8245+ if (!mappingp(json["where"])) error("Expected object");
8246+ retval.where = json["where"];
8247+ if (!mappingp(json["willSet"])) error("Expected object");
8248+ retval.will_set = json["willSet"];
8249+ if (!mappingp(json["with"])) error("Expected object");
8250+ retval.with = json["with"];
8251+ if (!mappingp(json["xor"])) error("Expected object");
8252+ retval.xor = json["xor"];
8253+ if (!mappingp(json["xor_eq"])) error("Expected object");
8254+ retval.xor_eq = json["xor_eq"];
8255+ if (!mappingp(json["YES"])) error("Expected object");
8256+ retval.yes = json["YES"];
8257+ if (!mappingp(json["yield"])) error("Expected object");
8258+ retval.yield = json["yield"];
80618259
80628260 return retval;
80638261 }
80648262
8065-class Utf8JsonReader {
8066- int utf8_json_reader; // json: "Utf8JsonReader"
8263+class Void {
8264+ int void_void; // json: "void"
80678265
80688266 string encode_json() {
80698267 mapping(string:mixed) json = ([
8070- "Utf8JsonReader" : utf8_json_reader,
8268+ "void" : void_void,
80718269 ]);
80728270
80738271 return Standards.JSON.encode(json);
80748272 }
80758273 }
80768274
8077-Utf8JsonReader Utf8JsonReader_from_JSON(mixed json) {
8078- Utf8JsonReader retval = Utf8JsonReader();
8275+Void Void_from_JSON(mixed json) {
8276+ Void retval = Void();
80798277
8080- if (!intp(json["Utf8JsonReader"])) error("Expected integer");
8081- retval.utf8_json_reader = json["Utf8JsonReader"];
8278+ if (!intp(json["void"])) error("Expected integer");
8279+ retval.void_void = json["void"];
80828280
80838281 return retval;
80848282 }
80858283
8086-class Utf8JsonWriter {
8087- int utf8_json_writer; // json: "Utf8JsonWriter"
8284+class While {
8285+ int while_while; // json: "while"
80888286
80898287 string encode_json() {
80908288 mapping(string:mixed) json = ([
8091- "Utf8JsonWriter" : utf8_json_writer,
8289+ "while" : while_while,
80928290 ]);
80938291
80948292 return Standards.JSON.encode(json);
80958293 }
80968294 }
80978295
8098-Utf8JsonWriter Utf8JsonWriter_from_JSON(mixed json) {
8099- Utf8JsonWriter retval = Utf8JsonWriter();
8296+While While_from_JSON(mixed json) {
8297+ While retval = While();
81008298
8101- if (!intp(json["Utf8JsonWriter"])) error("Expected integer");
8102- retval.utf8_json_writer = json["Utf8JsonWriter"];
8299+ if (!intp(json["while"])) error("Expected integer");
8300+ retval.while_while = json["while"];
81038301
81048302 return retval;
81058303 }
81068304
8107-class Uuid {
8108- int uuid; // json: "UUID"
8305+class Using {
8306+ int using; // json: "using"
81098307
81108308 string encode_json() {
81118309 mapping(string:mixed) json = ([
8112- "UUID" : uuid,
8310+ "using" : using,
81138311 ]);
81148312
81158313 return Standards.JSON.encode(json);
81168314 }
81178315 }
81188316
8119-Uuid Uuid_from_JSON(mixed json) {
8120- Uuid retval = Uuid();
8317+Using Using_from_JSON(mixed json) {
8318+ Using retval = Using();
81218319
8122- if (!intp(json["UUID"])) error("Expected integer");
8123- retval.uuid = json["UUID"];
8320+ if (!intp(json["using"])) error("Expected integer");
8321+ retval.using = json["using"];
81248322
81258323 return retval;
81268324 }
81278325
8128-class Var {
8129- int var; // json: "var"
8326+class Utf8JsonReader {
8327+ int utf8_json_reader; // json: "Utf8JsonReader"
81308328
81318329 string encode_json() {
81328330 mapping(string:mixed) json = ([
8133- "var" : var,
8331+ "Utf8JsonReader" : utf8_json_reader,
81348332 ]);
81358333
81368334 return Standards.JSON.encode(json);
81378335 }
81388336 }
81398337
8140-Var Var_from_JSON(mixed json) {
8141- Var retval = Var();
8338+Utf8JsonReader Utf8JsonReader_from_JSON(mixed json) {
8339+ Utf8JsonReader retval = Utf8JsonReader();
81428340
8143- if (!intp(json["var"])) error("Expected integer");
8144- retval.var = json["var"];
8341+ if (!intp(json["Utf8JsonReader"])) error("Expected integer");
8342+ retval.utf8_json_reader = json["Utf8JsonReader"];
81458343
81468344 return retval;
81478345 }
81488346
8149-class Virtual {
8150- int virtual; // json: "virtual"
8347+class Utf8JsonWriter {
8348+ int utf8_json_writer; // json: "Utf8JsonWriter"
81518349
81528350 string encode_json() {
81538351 mapping(string:mixed) json = ([
8154- "virtual" : virtual,
8352+ "Utf8JsonWriter" : utf8_json_writer,
81558353 ]);
81568354
81578355 return Standards.JSON.encode(json);
81588356 }
81598357 }
81608358
8161-Virtual Virtual_from_JSON(mixed json) {
8162- Virtual retval = Virtual();
8359+Utf8JsonWriter Utf8JsonWriter_from_JSON(mixed json) {
8360+ Utf8JsonWriter retval = Utf8JsonWriter();
81638361
8164- if (!intp(json["virtual"])) error("Expected integer");
8165- retval.virtual = json["virtual"];
8362+ if (!intp(json["Utf8JsonWriter"])) error("Expected integer");
8363+ retval.utf8_json_writer = json["Utf8JsonWriter"];
81668364
81678365 return retval;
81688366 }
81698367
8170-class Obj6 {
8171- int dummy; // json: "dummy"
8172- Void obj6_void; // json: "void"
8173- While obj6_while; // json: "while"
8174- Volatile volatile; // json: "volatile"
8175- WcharT wchar_t; // json: "wchar_t"
8176- Weak weak; // json: "weak"
8177- Where where; // json: "where"
8178- WillSet will_set; // json: "willSet"
8179- With with; // json: "with"
8180- Xor xor; // json: "xor"
8181- XorEq xor_eq; // json: "xor_eq"
8182- Yes yes; // json: "YES"
8183- Yield yield; // json: "yield"
8368+class Uuid {
8369+ int uuid; // json: "UUID"
81848370
81858371 string encode_json() {
81868372 mapping(string:mixed) json = ([
8187- "dummy" : dummy,
8188- "void" : obj6_void,
8189- "while" : obj6_while,
8190- "volatile" : volatile,
8191- "wchar_t" : wchar_t,
8192- "weak" : weak,
8193- "where" : where,
8194- "willSet" : will_set,
8195- "with" : with,
8196- "xor" : xor,
8197- "xor_eq" : xor_eq,
8198- "YES" : yes,
8199- "yield" : yield,
8373+ "UUID" : uuid,
82008374 ]);
82018375
82028376 return Standards.JSON.encode(json);
82038377 }
82048378 }
82058379
8206-Obj6 Obj6_from_JSON(mixed json) {
8207- Obj6 retval = Obj6();
8380+Uuid Uuid_from_JSON(mixed json) {
8381+ Uuid retval = Uuid();
82088382
8209- if (!intp(json["dummy"])) error("Expected integer");
8210- retval.dummy = json["dummy"];
8211- if (!mappingp(json["void"])) error("Expected object");
8212- retval.obj6_void = json["void"];
8213- if (!mappingp(json["while"])) error("Expected object");
8214- retval.obj6_while = json["while"];
8215- if (!mappingp(json["volatile"])) error("Expected object");
8216- retval.volatile = json["volatile"];
8217- if (!mappingp(json["wchar_t"])) error("Expected object");
8218- retval.wchar_t = json["wchar_t"];
8219- if (!mappingp(json["weak"])) error("Expected object");
8220- retval.weak = json["weak"];
8221- if (!mappingp(json["where"])) error("Expected object");
8222- retval.where = json["where"];
8223- if (!mappingp(json["willSet"])) error("Expected object");
8224- retval.will_set = json["willSet"];
8225- if (!mappingp(json["with"])) error("Expected object");
8226- retval.with = json["with"];
8227- if (!mappingp(json["xor"])) error("Expected object");
8228- retval.xor = json["xor"];
8229- if (!mappingp(json["xor_eq"])) error("Expected object");
8230- retval.xor_eq = json["xor_eq"];
8231- if (!mappingp(json["YES"])) error("Expected object");
8232- retval.yes = json["YES"];
8233- if (!mappingp(json["yield"])) error("Expected object");
8234- retval.yield = json["yield"];
8383+ if (!intp(json["UUID"])) error("Expected integer");
8384+ retval.uuid = json["UUID"];
82358385
82368386 return retval;
82378387 }
82388388
8239-class Void {
8240- int void_void; // json: "void"
8389+class Var {
8390+ int var; // json: "var"
82418391
82428392 string encode_json() {
82438393 mapping(string:mixed) json = ([
8244- "void" : void_void,
8394+ "var" : var,
82458395 ]);
82468396
82478397 return Standards.JSON.encode(json);
82488398 }
82498399 }
82508400
8251-Void Void_from_JSON(mixed json) {
8252- Void retval = Void();
8401+Var Var_from_JSON(mixed json) {
8402+ Var retval = Var();
82538403
8254- if (!intp(json["void"])) error("Expected integer");
8255- retval.void_void = json["void"];
8404+ if (!intp(json["var"])) error("Expected integer");
8405+ retval.var = json["var"];
82568406
82578407 return retval;
82588408 }
82598409
8260-class While {
8261- int while_while; // json: "while"
8410+class Virtual {
8411+ int virtual; // json: "virtual"
82628412
82638413 string encode_json() {
82648414 mapping(string:mixed) json = ([
8265- "while" : while_while,
8415+ "virtual" : virtual,
82668416 ]);
82678417
82688418 return Standards.JSON.encode(json);
82698419 }
82708420 }
82718421
8272-While While_from_JSON(mixed json) {
8273- While retval = While();
8422+Virtual Virtual_from_JSON(mixed json) {
8423+ Virtual retval = Virtual();
82748424
8275- if (!intp(json["while"])) error("Expected integer");
8276- retval.while_while = json["while"];
8425+ if (!intp(json["virtual"])) error("Expected integer");
8426+ retval.virtual = json["virtual"];
82778427
82788428 return retval;
82798429 }
Mpythondefault / quicktype.py+226 −112
@@ -4972,6 +4972,22 @@ class Obj4:
49724972 return result
49734973
49744974
4975+@dataclass
4976+class KSerializer:
4977+ k_serializer: int
4978+
4979+ @staticmethod
4980+ def from_dict(obj: Any) -> 'KSerializer':
4981+ assert isinstance(obj, dict)
4982+ k_serializer = from_int(obj["KSerializer"])
4983+ return KSerializer(k_serializer)
4984+
4985+ def to_dict(self) -> dict:
4986+ result: dict = {}
4987+ result["KSerializer"] = from_int(self.k_serializer)
4988+ return result
4989+
4990+
49754991 @dataclass
49764992 class Self:
49774993 self_self: int
@@ -5036,6 +5052,22 @@ class Obj5Type:
50365052 return result
50375053
50385054
5055+@dataclass
5056+class PrimitiveKind:
5057+ primitive_kind: int
5058+
5059+ @staticmethod
5060+ def from_dict(obj: Any) -> 'PrimitiveKind':
5061+ assert isinstance(obj, dict)
5062+ primitive_kind = from_int(obj["PrimitiveKind"])
5063+ return PrimitiveKind(primitive_kind)
5064+
5065+ def to_dict(self) -> dict:
5066+ result: dict = {}
5067+ result["PrimitiveKind"] = from_int(self.primitive_kind)
5068+ return result
5069+
5070+
50395071 @dataclass
50405072 class SelfClass:
50415073 self_self: int
@@ -5068,6 +5100,54 @@ class Sendable:
50685100 return result
50695101
50705102
5103+@dataclass
5104+class SerialDescriptor:
5105+ serial_descriptor: int
5106+
5107+ @staticmethod
5108+ def from_dict(obj: Any) -> 'SerialDescriptor':
5109+ assert isinstance(obj, dict)
5110+ serial_descriptor = from_int(obj["SerialDescriptor"])
5111+ return SerialDescriptor(serial_descriptor)
5112+
5113+ def to_dict(self) -> dict:
5114+ result: dict = {}
5115+ result["SerialDescriptor"] = from_int(self.serial_descriptor)
5116+ return result
5117+
5118+
5119+@dataclass
5120+class SerialName:
5121+ serial_name: int
5122+
5123+ @staticmethod
5124+ def from_dict(obj: Any) -> 'SerialName':
5125+ assert isinstance(obj, dict)
5126+ serial_name = from_int(obj["SerialName"])
5127+ return SerialName(serial_name)
5128+
5129+ def to_dict(self) -> dict:
5130+ result: dict = {}
5131+ result["SerialName"] = from_int(self.serial_name)
5132+ return result
5133+
5134+
5135+@dataclass
5136+class Serializable:
5137+ serializable: int
5138+
5139+ @staticmethod
5140+ def from_dict(obj: Any) -> 'Serializable':
5141+ assert isinstance(obj, dict)
5142+ serializable = from_int(obj["Serializable"])
5143+ return Serializable(serializable)
5144+
5145+ def to_dict(self) -> dict:
5146+ result: dict = {}
5147+ result["Serializable"] = from_int(self.serializable)
5148+ return result
5149+
5150+
50715151 @dataclass
50725152 class Serialize:
50735153 serialize: int
@@ -5885,121 +5965,46 @@ class Unsigned:
58855965
58865966
58875967 @dataclass
5888-class Ushort:
5889- ushort: int
5890-
5891- @staticmethod
5892- def from_dict(obj: Any) -> 'Ushort':
5893- assert isinstance(obj, dict)
5894- ushort = from_int(obj["ushort"])
5895- return Ushort(ushort)
5896-
5897- def to_dict(self) -> dict:
5898- result: dict = {}
5899- result["ushort"] = from_int(self.ushort)
5900- return result
5901-
5902-
5903-@dataclass
5904-class Using:
5905- using: int
5906-
5907- @staticmethod
5908- def from_dict(obj: Any) -> 'Using':
5909- assert isinstance(obj, dict)
5910- using = from_int(obj["using"])
5911- return Using(using)
5912-
5913- def to_dict(self) -> dict:
5914- result: dict = {}
5915- result["using"] = from_int(self.using)
5916- return result
5917-
5918-
5919-@dataclass
5920-class Utf8JSONReader:
5921- utf8_json_reader: int
5922-
5923- @staticmethod
5924- def from_dict(obj: Any) -> 'Utf8JSONReader':
5925- assert isinstance(obj, dict)
5926- utf8_json_reader = from_int(obj["Utf8JsonReader"])
5927- return Utf8JSONReader(utf8_json_reader)
5928-
5929- def to_dict(self) -> dict:
5930- result: dict = {}
5931- result["Utf8JsonReader"] = from_int(self.utf8_json_reader)
5932- return result
5933-
5934-
5935-@dataclass
5936-class Utf8JSONWriter:
5937- utf8_json_writer: int
5938-
5939- @staticmethod
5940- def from_dict(obj: Any) -> 'Utf8JSONWriter':
5941- assert isinstance(obj, dict)
5942- utf8_json_writer = from_int(obj["Utf8JsonWriter"])
5943- return Utf8JSONWriter(utf8_json_writer)
5944-
5945- def to_dict(self) -> dict:
5946- result: dict = {}
5947- result["Utf8JsonWriter"] = from_int(self.utf8_json_writer)
5948- return result
5949-
5950-
5951-@dataclass
5952-class UUIDClass:
5953- uuid: int
5968+class UseSerializers:
5969+ use_serializers: int
59545970
59555971 @staticmethod
5956- def from_dict(obj: Any) -> 'UUIDClass':
5972+ def from_dict(obj: Any) -> 'UseSerializers':
59575973 assert isinstance(obj, dict)
5958- uuid = from_int(obj["UUID"])
5959- return UUIDClass(uuid)
5974+ use_serializers = from_int(obj["UseSerializers"])
5975+ return UseSerializers(use_serializers)
59605976
59615977 def to_dict(self) -> dict:
59625978 result: dict = {}
5963- result["UUID"] = from_int(self.uuid)
5979+ result["UseSerializers"] = from_int(self.use_serializers)
59645980 return result
59655981
59665982
59675983 @dataclass
5968-class Var:
5969- var: int
5970-
5971- @staticmethod
5972- def from_dict(obj: Any) -> 'Var':
5973- assert isinstance(obj, dict)
5974- var = from_int(obj["var"])
5975- return Var(var)
5976-
5977- def to_dict(self) -> dict:
5978- result: dict = {}
5979- result["var"] = from_int(self.var)
5980- return result
5981-
5982-
5983-@dataclass
5984-class Virtual:
5985- virtual: int
5984+class Ushort:
5985+ ushort: int
59865986
59875987 @staticmethod
5988- def from_dict(obj: Any) -> 'Virtual':
5988+ def from_dict(obj: Any) -> 'Ushort':
59895989 assert isinstance(obj, dict)
5990- virtual = from_int(obj["virtual"])
5991- return Virtual(virtual)
5990+ ushort = from_int(obj["ushort"])
5991+ return Ushort(ushort)
59925992
59935993 def to_dict(self) -> dict:
59945994 result: dict = {}
5995- result["virtual"] = from_int(self.virtual)
5995+ result["ushort"] = from_int(self.ushort)
59965996 return result
59975997
59985998
59995999 @dataclass
60006000 class Obj5:
6001+ k_serializer: KSerializer
6002+ primitive_kind: PrimitiveKind
60016003 obj5_self: Self
60026004 sendable: Sendable
6005+ serial_descriptor: SerialDescriptor
6006+ serial_name: SerialName
6007+ serializable: Serializable
60036008 serializer_provider: SerializerProvider
60046009 simple_module: SimpleModule
60056010 standards: Standards
@@ -6010,9 +6015,7 @@ class Obj5:
60106015 time_zone: TimeZone
60116016 true: TrueClass
60126017 type: TypeClass
6013- uuid: UUIDClass
6014- utf8_json_reader: Utf8JSONReader
6015- utf8_json_writer: Utf8JSONWriter
6018+ use_serializers: UseSerializers
60166019 dummy: int
60176020 purple_self: SelfClass
60186021 serialize: Serialize
@@ -6060,15 +6063,17 @@ class Obj5:
60606063 unsafe: Unsafe
60616064 unsigned: Unsigned
60626065 ushort: Ushort
6063- using: Using
6064- var: Var
6065- virtual: Virtual
60666066
60676067 @staticmethod
60686068 def from_dict(obj: Any) -> 'Obj5':
60696069 assert isinstance(obj, dict)
6070+ k_serializer = KSerializer.from_dict(obj["KSerializer"])
6071+ primitive_kind = PrimitiveKind.from_dict(obj["PrimitiveKind"])
60706072 obj5_self = Self.from_dict(obj["Self"])
60716073 sendable = Sendable.from_dict(obj["Sendable"])
6074+ serial_descriptor = SerialDescriptor.from_dict(obj["SerialDescriptor"])
6075+ serial_name = SerialName.from_dict(obj["SerialName"])
6076+ serializable = Serializable.from_dict(obj["Serializable"])
60726077 serializer_provider = SerializerProvider.from_dict(obj["SerializerProvider"])
60736078 simple_module = SimpleModule.from_dict(obj["SimpleModule"])
60746079 standards = Standards.from_dict(obj["Standards"])
@@ -6079,9 +6084,7 @@ class Obj5:
60796084 time_zone = TimeZone.from_dict(obj["TimeZone"])
60806085 true = TrueClass.from_dict(obj["True"])
60816086 type = TypeClass.from_dict(obj["Type"])
6082- uuid = UUIDClass.from_dict(obj["UUID"])
6083- utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"])
6084- utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
6087+ use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
60856088 dummy = from_int(obj["dummy"])
60866089 purple_self = SelfClass.from_dict(obj["self"])
60876090 serialize = Serialize.from_dict(obj["serialize"])
@@ -6129,15 +6132,17 @@ class Obj5:
61296132 unsafe = Unsafe.from_dict(obj["unsafe"])
61306133 unsigned = Unsigned.from_dict(obj["unsigned"])
61316134 ushort = Ushort.from_dict(obj["ushort"])
6132- using = Using.from_dict(obj["using"])
6133- var = Var.from_dict(obj["var"])
6134- virtual = Virtual.from_dict(obj["virtual"])
6135- return Obj5(obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, uuid, utf8_json_reader, utf8_json_writer, dummy, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, var, virtual)
6135+ return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, dummy, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort)
61366136
61376137 def to_dict(self) -> dict:
61386138 result: dict = {}
6139+ result["KSerializer"] = to_class(KSerializer, self.k_serializer)
6140+ result["PrimitiveKind"] = to_class(PrimitiveKind, self.primitive_kind)
61396141 result["Self"] = to_class(Self, self.obj5_self)
61406142 result["Sendable"] = to_class(Sendable, self.sendable)
6143+ result["SerialDescriptor"] = to_class(SerialDescriptor, self.serial_descriptor)
6144+ result["SerialName"] = to_class(SerialName, self.serial_name)
6145+ result["Serializable"] = to_class(Serializable, self.serializable)
61416146 result["SerializerProvider"] = to_class(SerializerProvider, self.serializer_provider)
61426147 result["SimpleModule"] = to_class(SimpleModule, self.simple_module)
61436148 result["Standards"] = to_class(Standards, self.standards)
@@ -6148,9 +6153,7 @@ class Obj5:
61486153 result["TimeZone"] = to_class(TimeZone, self.time_zone)
61496154 result["True"] = to_class(TrueClass, self.true)
61506155 result["Type"] = to_class(TypeClass, self.type)
6151- result["UUID"] = to_class(UUIDClass, self.uuid)
6152- result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader)
6153- result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
6156+ result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
61546157 result["dummy"] = from_int(self.dummy)
61556158 result["self"] = to_class(SelfClass, self.purple_self)
61566159 result["serialize"] = to_class(Serialize, self.serialize)
@@ -6198,9 +6201,6 @@ class Obj5:
61986201 result["unsafe"] = to_class(Unsafe, self.unsafe)
61996202 result["unsigned"] = to_class(Unsigned, self.unsigned)
62006203 result["ushort"] = to_class(Ushort, self.ushort)
6201- result["using"] = to_class(Using, self.using)
6202- result["var"] = to_class(Var, self.var)
6203- result["virtual"] = to_class(Virtual, self.virtual)
62046204 return result
62056205
62066206
@@ -6252,6 +6252,102 @@ class Yield:
62526252 return result
62536253
62546254
6255+@dataclass
6256+class Using:
6257+ using: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'Using':
6261+ assert isinstance(obj, dict)
6262+ using = from_int(obj["using"])
6263+ return Using(using)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["using"] = from_int(self.using)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class Utf8JSONReader:
6273+ utf8_json_reader: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'Utf8JSONReader':
6277+ assert isinstance(obj, dict)
6278+ utf8_json_reader = from_int(obj["Utf8JsonReader"])
6279+ return Utf8JSONReader(utf8_json_reader)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["Utf8JsonReader"] = from_int(self.utf8_json_reader)
6284+ return result
6285+
6286+
6287+@dataclass
6288+class Utf8JSONWriter:
6289+ utf8_json_writer: int
6290+
6291+ @staticmethod
6292+ def from_dict(obj: Any) -> 'Utf8JSONWriter':
6293+ assert isinstance(obj, dict)
6294+ utf8_json_writer = from_int(obj["Utf8JsonWriter"])
6295+ return Utf8JSONWriter(utf8_json_writer)
6296+
6297+ def to_dict(self) -> dict:
6298+ result: dict = {}
6299+ result["Utf8JsonWriter"] = from_int(self.utf8_json_writer)
6300+ return result
6301+
6302+
6303+@dataclass
6304+class UUIDClass:
6305+ uuid: int
6306+
6307+ @staticmethod
6308+ def from_dict(obj: Any) -> 'UUIDClass':
6309+ assert isinstance(obj, dict)
6310+ uuid = from_int(obj["UUID"])
6311+ return UUIDClass(uuid)
6312+
6313+ def to_dict(self) -> dict:
6314+ result: dict = {}
6315+ result["UUID"] = from_int(self.uuid)
6316+ return result
6317+
6318+
6319+@dataclass
6320+class Var:
6321+ var: int
6322+
6323+ @staticmethod
6324+ def from_dict(obj: Any) -> 'Var':
6325+ assert isinstance(obj, dict)
6326+ var = from_int(obj["var"])
6327+ return Var(var)
6328+
6329+ def to_dict(self) -> dict:
6330+ result: dict = {}
6331+ result["var"] = from_int(self.var)
6332+ return result
6333+
6334+
6335+@dataclass
6336+class Virtual:
6337+ virtual: int
6338+
6339+ @staticmethod
6340+ def from_dict(obj: Any) -> 'Virtual':
6341+ assert isinstance(obj, dict)
6342+ virtual = from_int(obj["virtual"])
6343+ return Virtual(virtual)
6344+
6345+ def to_dict(self) -> dict:
6346+ result: dict = {}
6347+ result["virtual"] = from_int(self.virtual)
6348+ return result
6349+
6350+
62556351 @dataclass
62566352 class Void:
62576353 void: int
@@ -6398,8 +6494,14 @@ class Yes:
63986494
63996495 @dataclass
64006496 class Obj6:
6497+ uuid: UUIDClass
6498+ utf8_json_reader: Utf8JSONReader
6499+ utf8_json_writer: Utf8JSONWriter
64016500 yes: Yes
64026501 dummy: int
6502+ using: Using
6503+ var: Var
6504+ virtual: Virtual
64036505 void: Void
64046506 volatile: Volatile
64056507 wchar_t: WcharT
@@ -6415,8 +6517,14 @@ class Obj6:
64156517 @staticmethod
64166518 def from_dict(obj: Any) -> 'Obj6':
64176519 assert isinstance(obj, dict)
6520+ uuid = UUIDClass.from_dict(obj["UUID"])
6521+ utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"])
6522+ utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
64186523 yes = Yes.from_dict(obj["YES"])
64196524 dummy = from_int(obj["dummy"])
6525+ using = Using.from_dict(obj["using"])
6526+ var = Var.from_dict(obj["var"])
6527+ virtual = Virtual.from_dict(obj["virtual"])
64206528 void = Void.from_dict(obj["void"])
64216529 volatile = Volatile.from_dict(obj["volatile"])
64226530 wchar_t = WcharT.from_dict(obj["wchar_t"])
@@ -6428,12 +6536,18 @@ class Obj6:
64286536 xor = Xor.from_dict(obj["xor"])
64296537 xor_eq = XorEq.from_dict(obj["xor_eq"])
64306538 obj6_yield = Yield.from_dict(obj["yield"])
6431- return Obj6(yes, dummy, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6539+ return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
64326540
64336541 def to_dict(self) -> dict:
64346542 result: dict = {}
6543+ result["UUID"] = to_class(UUIDClass, self.uuid)
6544+ result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader)
6545+ result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
64356546 result["YES"] = to_class(Yes, self.yes)
64366547 result["dummy"] = from_int(self.dummy)
6548+ result["using"] = to_class(Using, self.using)
6549+ result["var"] = to_class(Var, self.var)
6550+ result["virtual"] = to_class(Virtual, self.virtual)
64376551 result["void"] = to_class(Void, self.void)
64386552 result["volatile"] = to_class(Volatile, self.volatile)
64396553 result["wchar_t"] = to_class(WcharT, self.wchar_t)
Mrubydefault / TopLevel.rb+367 −199
@@ -7295,6 +7295,31 @@ class Obj4 < Dry::Struct
72957295 end
72967296 end
72977297
7298+class KSerializer < Dry::Struct
7299+ attribute :k_serializer, Types::Integer
7300+
7301+ def self.from_dynamic!(d)
7302+ d = Types::Hash[d]
7303+ new(
7304+ k_serializer: d.fetch("KSerializer"),
7305+ )
7306+ end
7307+
7308+ def self.from_json!(json)
7309+ from_dynamic!(JSON.parse(json))
7310+ end
7311+
7312+ def to_dynamic
7313+ {
7314+ "KSerializer" => k_serializer,
7315+ }
7316+ end
7317+
7318+ def to_json(options = nil)
7319+ JSON.generate(to_dynamic, options)
7320+ end
7321+end
7322+
72987323 class SelfClass < Dry::Struct
72997324 attribute :self_self, Types::Integer
73007325
@@ -7520,6 +7545,31 @@ class Type < Dry::Struct
75207545 end
75217546 end
75227547
7548+class PrimitiveKind < Dry::Struct
7549+ attribute :primitive_kind, Types::Integer
7550+
7551+ def self.from_dynamic!(d)
7552+ d = Types::Hash[d]
7553+ new(
7554+ primitive_kind: d.fetch("PrimitiveKind"),
7555+ )
7556+ end
7557+
7558+ def self.from_json!(json)
7559+ from_dynamic!(JSON.parse(json))
7560+ end
7561+
7562+ def to_dynamic
7563+ {
7564+ "PrimitiveKind" => primitive_kind,
7565+ }
7566+ end
7567+
7568+ def to_json(options = nil)
7569+ JSON.generate(to_dynamic, options)
7570+ end
7571+end
7572+
75237573 class Obj5Self < Dry::Struct
75247574 attribute :self_self, Types::Integer
75257575
@@ -7570,6 +7620,81 @@ class Sendable < Dry::Struct
75707620 end
75717621 end
75727622
7623+class SerialDescriptor < Dry::Struct
7624+ attribute :serial_descriptor, Types::Integer
7625+
7626+ def self.from_dynamic!(d)
7627+ d = Types::Hash[d]
7628+ new(
7629+ serial_descriptor: d.fetch("SerialDescriptor"),
7630+ )
7631+ end
7632+
7633+ def self.from_json!(json)
7634+ from_dynamic!(JSON.parse(json))
7635+ end
7636+
7637+ def to_dynamic
7638+ {
7639+ "SerialDescriptor" => serial_descriptor,
7640+ }
7641+ end
7642+
7643+ def to_json(options = nil)
7644+ JSON.generate(to_dynamic, options)
7645+ end
7646+end
7647+
7648+class SerialName < Dry::Struct
7649+ attribute :serial_name, Types::Integer
7650+
7651+ def self.from_dynamic!(d)
7652+ d = Types::Hash[d]
7653+ new(
7654+ serial_name: d.fetch("SerialName"),
7655+ )
7656+ end
7657+
7658+ def self.from_json!(json)
7659+ from_dynamic!(JSON.parse(json))
7660+ end
7661+
7662+ def to_dynamic
7663+ {
7664+ "SerialName" => serial_name,
7665+ }
7666+ end
7667+
7668+ def to_json(options = nil)
7669+ JSON.generate(to_dynamic, options)
7670+ end
7671+end
7672+
7673+class Serializable < Dry::Struct
7674+ attribute :serializable, Types::Integer
7675+
7676+ def self.from_dynamic!(d)
7677+ d = Types::Hash[d]
7678+ new(
7679+ serializable: d.fetch("Serializable"),
7680+ )
7681+ end
7682+
7683+ def self.from_json!(json)
7684+ from_dynamic!(JSON.parse(json))
7685+ end
7686+
7687+ def to_dynamic
7688+ {
7689+ "Serializable" => serializable,
7690+ }
7691+ end
7692+
7693+ def to_json(options = nil)
7694+ JSON.generate(to_dynamic, options)
7695+ end
7696+end
7697+
75737698 class Serialize < Dry::Struct
75747699 attribute :serialize, Types::Integer
75757700
@@ -8720,13 +8845,13 @@ class Unsigned < Dry::Struct
87208845 end
87218846 end
87228847
8723-class Ushort < Dry::Struct
8724- attribute :ushort, Types::Integer
8848+class UseSerializers < Dry::Struct
8849+ attribute :use_serializers, Types::Integer
87258850
87268851 def self.from_dynamic!(d)
87278852 d = Types::Hash[d]
87288853 new(
8729- ushort: d.fetch("ushort"),
8854+ use_serializers: d.fetch("UseSerializers"),
87308855 )
87318856 end
87328857
@@ -8736,7 +8861,7 @@ class Ushort < Dry::Struct
87368861
87378862 def to_dynamic
87388863 {
8739- "ushort" => ushort,
8864+ "UseSerializers" => use_serializers,
87408865 }
87418866 end
87428867
@@ -8745,138 +8870,13 @@ class Ushort < Dry::Struct
87458870 end
87468871 end
87478872
8748-class Using < Dry::Struct
8749- attribute :using, Types::Integer
8750-
8751- def self.from_dynamic!(d)
8752- d = Types::Hash[d]
8753- new(
8754- using: d.fetch("using"),
8755- )
8756- end
8757-
8758- def self.from_json!(json)
8759- from_dynamic!(JSON.parse(json))
8760- end
8761-
8762- def to_dynamic
8763- {
8764- "using" => using,
8765- }
8766- end
8767-
8768- def to_json(options = nil)
8769- JSON.generate(to_dynamic, options)
8770- end
8771-end
8772-
8773-class Utf8JSONReader < Dry::Struct
8774- attribute :utf8_json_reader, Types::Integer
8775-
8776- def self.from_dynamic!(d)
8777- d = Types::Hash[d]
8778- new(
8779- utf8_json_reader: d.fetch("Utf8JsonReader"),
8780- )
8781- end
8782-
8783- def self.from_json!(json)
8784- from_dynamic!(JSON.parse(json))
8785- end
8786-
8787- def to_dynamic
8788- {
8789- "Utf8JsonReader" => utf8_json_reader,
8790- }
8791- end
8792-
8793- def to_json(options = nil)
8794- JSON.generate(to_dynamic, options)
8795- end
8796-end
8797-
8798-class Utf8JSONWriter < Dry::Struct
8799- attribute :utf8_json_writer, Types::Integer
8800-
8801- def self.from_dynamic!(d)
8802- d = Types::Hash[d]
8803- new(
8804- utf8_json_writer: d.fetch("Utf8JsonWriter"),
8805- )
8806- end
8807-
8808- def self.from_json!(json)
8809- from_dynamic!(JSON.parse(json))
8810- end
8811-
8812- def to_dynamic
8813- {
8814- "Utf8JsonWriter" => utf8_json_writer,
8815- }
8816- end
8817-
8818- def to_json(options = nil)
8819- JSON.generate(to_dynamic, options)
8820- end
8821-end
8822-
8823-class UUID < Dry::Struct
8824- attribute :uuid, Types::Integer
8825-
8826- def self.from_dynamic!(d)
8827- d = Types::Hash[d]
8828- new(
8829- uuid: d.fetch("UUID"),
8830- )
8831- end
8832-
8833- def self.from_json!(json)
8834- from_dynamic!(JSON.parse(json))
8835- end
8836-
8837- def to_dynamic
8838- {
8839- "UUID" => uuid,
8840- }
8841- end
8842-
8843- def to_json(options = nil)
8844- JSON.generate(to_dynamic, options)
8845- end
8846-end
8847-
8848-class Var < Dry::Struct
8849- attribute :var, Types::Integer
8850-
8851- def self.from_dynamic!(d)
8852- d = Types::Hash[d]
8853- new(
8854- var: d.fetch("var"),
8855- )
8856- end
8857-
8858- def self.from_json!(json)
8859- from_dynamic!(JSON.parse(json))
8860- end
8861-
8862- def to_dynamic
8863- {
8864- "var" => var,
8865- }
8866- end
8867-
8868- def to_json(options = nil)
8869- JSON.generate(to_dynamic, options)
8870- end
8871-end
8872-
8873-class Virtual < Dry::Struct
8874- attribute :virtual, Types::Integer
8873+class Ushort < Dry::Struct
8874+ attribute :ushort, Types::Integer
88758875
88768876 def self.from_dynamic!(d)
88778877 d = Types::Hash[d]
88788878 new(
8879- virtual: d.fetch("virtual"),
8879+ ushort: d.fetch("ushort"),
88808880 )
88818881 end
88828882
@@ -8886,7 +8886,7 @@ class Virtual < Dry::Struct
88868886
88878887 def to_dynamic
88888888 {
8889- "virtual" => virtual,
8889+ "ushort" => ushort,
88908890 }
88918891 end
88928892
@@ -8897,6 +8897,7 @@ end
88978897
88988898 class Obj5 < Dry::Struct
88998899 attribute :dummy, Types::Integer
8900+ attribute :k_serializer, KSerializer
89008901 attribute :obj5_self, SelfClass
89018902 attribute :obj5_super, Super
89028903 attribute :obj5_system, System
@@ -8906,8 +8907,12 @@ class Obj5 < Dry::Struct
89068907 attribute :obj5_true, True
89078908 attribute :obj5_try, Try
89088909 attribute :obj5_type, Type
8910+ attribute :primitive_kind, PrimitiveKind
89098911 attribute :self_1, Obj5Self
89108912 attribute :sendable, Sendable
8913+ attribute :serial_descriptor, SerialDescriptor
8914+ attribute :serial_name, SerialName
8915+ attribute :serializable, Serializable
89118916 attribute :serialize, Serialize
89128917 attribute :serializer_provider, SerializerProvider
89138918 attribute :set, SetClass
@@ -8954,18 +8959,14 @@ class Obj5 < Dry::Struct
89548959 attribute :unowned, Unowned
89558960 attribute :unsafe, Unsafe
89568961 attribute :unsigned, Unsigned
8962+ attribute :use_serializers, UseSerializers
89578963 attribute :ushort, Ushort
8958- attribute :using, Using
8959- attribute :utf8_json_reader, Utf8JSONReader
8960- attribute :utf8_json_writer, Utf8JSONWriter
8961- attribute :uuid, UUID
8962- attribute :var, Var
8963- attribute :virtual, Virtual
89648964
89658965 def self.from_dynamic!(d)
89668966 d = Types::Hash[d]
89678967 new(
89688968 dummy: d.fetch("dummy"),
8969+ k_serializer: KSerializer.from_dynamic!(d.fetch("KSerializer")),
89698970 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
89708971 obj5_super: Super.from_dynamic!(d.fetch("super")),
89718972 obj5_system: System.from_dynamic!(d.fetch("system")),
@@ -8975,8 +8976,12 @@ class Obj5 < Dry::Struct
89758976 obj5_true: True.from_dynamic!(d.fetch("True")),
89768977 obj5_try: Try.from_dynamic!(d.fetch("try")),
89778978 obj5_type: Type.from_dynamic!(d.fetch("Type")),
8979+ primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")),
89788980 self_1: Obj5Self.from_dynamic!(d.fetch("self")),
89798981 sendable: Sendable.from_dynamic!(d.fetch("Sendable")),
8982+ serial_descriptor: SerialDescriptor.from_dynamic!(d.fetch("SerialDescriptor")),
8983+ serial_name: SerialName.from_dynamic!(d.fetch("SerialName")),
8984+ serializable: Serializable.from_dynamic!(d.fetch("Serializable")),
89808985 serialize: Serialize.from_dynamic!(d.fetch("serialize")),
89818986 serializer_provider: SerializerProvider.from_dynamic!(d.fetch("SerializerProvider")),
89828987 set: SetClass.from_dynamic!(d.fetch("set")),
@@ -9023,13 +9028,8 @@ class Obj5 < Dry::Struct
90239028 unowned: Unowned.from_dynamic!(d.fetch("unowned")),
90249029 unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
90259030 unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
9031+ use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")),
90269032 ushort: Ushort.from_dynamic!(d.fetch("ushort")),
9027- using: Using.from_dynamic!(d.fetch("using")),
9028- utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
9029- utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
9030- uuid: UUID.from_dynamic!(d.fetch("UUID")),
9031- var: Var.from_dynamic!(d.fetch("var")),
9032- virtual: Virtual.from_dynamic!(d.fetch("virtual")),
90339033 )
90349034 end
90359035
@@ -9040,6 +9040,7 @@ class Obj5 < Dry::Struct
90409040 def to_dynamic
90419041 {
90429042 "dummy" => dummy,
9043+ "KSerializer" => k_serializer.to_dynamic,
90439044 "Self" => obj5_self.to_dynamic,
90449045 "super" => obj5_super.to_dynamic,
90459046 "system" => obj5_system.to_dynamic,
@@ -9049,8 +9050,12 @@ class Obj5 < Dry::Struct
90499050 "True" => obj5_true.to_dynamic,
90509051 "try" => obj5_try.to_dynamic,
90519052 "Type" => obj5_type.to_dynamic,
9053+ "PrimitiveKind" => primitive_kind.to_dynamic,
90529054 "self" => self_1.to_dynamic,
90539055 "Sendable" => sendable.to_dynamic,
9056+ "SerialDescriptor" => serial_descriptor.to_dynamic,
9057+ "SerialName" => serial_name.to_dynamic,
9058+ "Serializable" => serializable.to_dynamic,
90549059 "serialize" => serialize.to_dynamic,
90559060 "SerializerProvider" => serializer_provider.to_dynamic,
90569061 "set" => set.to_dynamic,
@@ -9097,13 +9102,8 @@ class Obj5 < Dry::Struct
90979102 "unowned" => unowned.to_dynamic,
90989103 "unsafe" => unsafe.to_dynamic,
90999104 "unsigned" => unsigned.to_dynamic,
9105+ "UseSerializers" => use_serializers.to_dynamic,
91009106 "ushort" => ushort.to_dynamic,
9101- "using" => using.to_dynamic,
9102- "Utf8JsonReader" => utf8_json_reader.to_dynamic,
9103- "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
9104- "UUID" => uuid.to_dynamic,
9105- "var" => var.to_dynamic,
9106- "virtual" => virtual.to_dynamic,
91079107 }
91089108 end
91099109
@@ -9187,6 +9187,156 @@ class Yield < Dry::Struct
91879187 end
91889188 end
91899189
9190+class Using < Dry::Struct
9191+ attribute :using, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ using: d.fetch("using"),
9197+ )
9198+ end
9199+
9200+ def self.from_json!(json)
9201+ from_dynamic!(JSON.parse(json))
9202+ end
9203+
9204+ def to_dynamic
9205+ {
9206+ "using" => using,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class Utf8JSONReader < Dry::Struct
9216+ attribute :utf8_json_reader, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ utf8_json_reader: d.fetch("Utf8JsonReader"),
9222+ )
9223+ end
9224+
9225+ def self.from_json!(json)
9226+ from_dynamic!(JSON.parse(json))
9227+ end
9228+
9229+ def to_dynamic
9230+ {
9231+ "Utf8JsonReader" => utf8_json_reader,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
9240+class Utf8JSONWriter < Dry::Struct
9241+ attribute :utf8_json_writer, Types::Integer
9242+
9243+ def self.from_dynamic!(d)
9244+ d = Types::Hash[d]
9245+ new(
9246+ utf8_json_writer: d.fetch("Utf8JsonWriter"),
9247+ )
9248+ end
9249+
9250+ def self.from_json!(json)
9251+ from_dynamic!(JSON.parse(json))
9252+ end
9253+
9254+ def to_dynamic
9255+ {
9256+ "Utf8JsonWriter" => utf8_json_writer,
9257+ }
9258+ end
9259+
9260+ def to_json(options = nil)
9261+ JSON.generate(to_dynamic, options)
9262+ end
9263+end
9264+
9265+class UUID < Dry::Struct
9266+ attribute :uuid, Types::Integer
9267+
9268+ def self.from_dynamic!(d)
9269+ d = Types::Hash[d]
9270+ new(
9271+ uuid: d.fetch("UUID"),
9272+ )
9273+ end
9274+
9275+ def self.from_json!(json)
9276+ from_dynamic!(JSON.parse(json))
9277+ end
9278+
9279+ def to_dynamic
9280+ {
9281+ "UUID" => uuid,
9282+ }
9283+ end
9284+
9285+ def to_json(options = nil)
9286+ JSON.generate(to_dynamic, options)
9287+ end
9288+end
9289+
9290+class Var < Dry::Struct
9291+ attribute :var, Types::Integer
9292+
9293+ def self.from_dynamic!(d)
9294+ d = Types::Hash[d]
9295+ new(
9296+ var: d.fetch("var"),
9297+ )
9298+ end
9299+
9300+ def self.from_json!(json)
9301+ from_dynamic!(JSON.parse(json))
9302+ end
9303+
9304+ def to_dynamic
9305+ {
9306+ "var" => var,
9307+ }
9308+ end
9309+
9310+ def to_json(options = nil)
9311+ JSON.generate(to_dynamic, options)
9312+ end
9313+end
9314+
9315+class Virtual < Dry::Struct
9316+ attribute :virtual, Types::Integer
9317+
9318+ def self.from_dynamic!(d)
9319+ d = Types::Hash[d]
9320+ new(
9321+ virtual: d.fetch("virtual"),
9322+ )
9323+ end
9324+
9325+ def self.from_json!(json)
9326+ from_dynamic!(JSON.parse(json))
9327+ end
9328+
9329+ def to_dynamic
9330+ {
9331+ "virtual" => virtual,
9332+ }
9333+ end
9334+
9335+ def to_json(options = nil)
9336+ JSON.generate(to_dynamic, options)
9337+ end
9338+end
9339+
91909340 class Void < Dry::Struct
91919341 attribute :void, Types::Integer
91929342
@@ -9413,58 +9563,76 @@ class Yes < Dry::Struct
94139563 end
94149564
94159565 class Obj6 < Dry::Struct
9416- attribute :dummy, Types::Integer
9417- attribute :obj6_while, While
9418- attribute :obj6_with, With
9419- attribute :obj6_yield, Yield
9420- attribute :void, Void
9421- attribute :volatile, Volatile
9422- attribute :wchar_t, WcharT
9423- attribute :weak, Weak
9424- attribute :where, Where
9425- attribute :will_set, WillSet
9426- attribute :xor, Xor
9427- attribute :xor_eq, XorEq
9428- attribute :yes, Yes
9566+ attribute :dummy, Types::Integer
9567+ attribute :obj6_while, While
9568+ attribute :obj6_with, With
9569+ attribute :obj6_yield, Yield
9570+ attribute :using, Using
9571+ attribute :utf8_json_reader, Utf8JSONReader
9572+ attribute :utf8_json_writer, Utf8JSONWriter
9573+ attribute :uuid, UUID
9574+ attribute :var, Var
9575+ attribute :virtual, Virtual
9576+ attribute :void, Void
9577+ attribute :volatile, Volatile
9578+ attribute :wchar_t, WcharT
9579+ attribute :weak, Weak
9580+ attribute :where, Where
9581+ attribute :will_set, WillSet
9582+ attribute :xor, Xor
9583+ attribute :xor_eq, XorEq
9584+ attribute :yes, Yes
94299585
94309586 def self.from_dynamic!(d)
94319587 d = Types::Hash[d]
94329588 new(
9433- dummy: d.fetch("dummy"),
9434- obj6_while: While.from_dynamic!(d.fetch("while")),
9435- obj6_with: With.from_dynamic!(d.fetch("with")),
9436- obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9437- void: Void.from_dynamic!(d.fetch("void")),
9438- volatile: Volatile.from_dynamic!(d.fetch("volatile")),
9439- wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")),
9440- weak: Weak.from_dynamic!(d.fetch("weak")),
9441- where: Where.from_dynamic!(d.fetch("where")),
9442- will_set: WillSet.from_dynamic!(d.fetch("willSet")),
9443- xor: Xor.from_dynamic!(d.fetch("xor")),
9444- xor_eq: XorEq.from_dynamic!(d.fetch("xor_eq")),
9445- yes: Yes.from_dynamic!(d.fetch("YES")),
9446- )
9447- end
9448-
9449- def self.from_json!(json)
9450- from_dynamic!(JSON.parse(json))
9451- end
9452-
9453- def to_dynamic
9454- {
9455- "dummy" => dummy,
9456- "while" => obj6_while.to_dynamic,
9457- "with" => obj6_with.to_dynamic,
9458- "yield" => obj6_yield.to_dynamic,
9459- "void" => void.to_dynamic,
9460- "volatile" => volatile.to_dynamic,
9461- "wchar_t" => wchar_t.to_dynamic,
9462- "weak" => weak.to_dynamic,
9463- "where" => where.to_dynamic,
9464- "willSet" => will_set.to_dynamic,
9465- "xor" => xor.to_dynamic,
9466- "xor_eq" => xor_eq.to_dynamic,
9467- "YES" => yes.to_dynamic,
9589+ dummy: d.fetch("dummy"),
9590+ obj6_while: While.from_dynamic!(d.fetch("while")),
9591+ obj6_with: With.from_dynamic!(d.fetch("with")),
9592+ obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9593+ using: Using.from_dynamic!(d.fetch("using")),
9594+ utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
9595+ utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
9596+ uuid: UUID.from_dynamic!(d.fetch("UUID")),
9597+ var: Var.from_dynamic!(d.fetch("var")),
9598+ virtual: Virtual.from_dynamic!(d.fetch("virtual")),
9599+ void: Void.from_dynamic!(d.fetch("void")),
9600+ volatile: Volatile.from_dynamic!(d.fetch("volatile")),
9601+ wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")),
9602+ weak: Weak.from_dynamic!(d.fetch("weak")),
9603+ where: Where.from_dynamic!(d.fetch("where")),
9604+ will_set: WillSet.from_dynamic!(d.fetch("willSet")),
9605+ xor: Xor.from_dynamic!(d.fetch("xor")),
9606+ xor_eq: XorEq.from_dynamic!(d.fetch("xor_eq")),
9607+ yes: Yes.from_dynamic!(d.fetch("YES")),
9608+ )
9609+ end
9610+
9611+ def self.from_json!(json)
9612+ from_dynamic!(JSON.parse(json))
9613+ end
9614+
9615+ def to_dynamic
9616+ {
9617+ "dummy" => dummy,
9618+ "while" => obj6_while.to_dynamic,
9619+ "with" => obj6_with.to_dynamic,
9620+ "yield" => obj6_yield.to_dynamic,
9621+ "using" => using.to_dynamic,
9622+ "Utf8JsonReader" => utf8_json_reader.to_dynamic,
9623+ "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
9624+ "UUID" => uuid.to_dynamic,
9625+ "var" => var.to_dynamic,
9626+ "virtual" => virtual.to_dynamic,
9627+ "void" => void.to_dynamic,
9628+ "volatile" => volatile.to_dynamic,
9629+ "wchar_t" => wchar_t.to_dynamic,
9630+ "weak" => weak.to_dynamic,
9631+ "where" => where.to_dynamic,
9632+ "willSet" => will_set.to_dynamic,
9633+ "xor" => xor.to_dynamic,
9634+ "xor_eq" => xor_eq.to_dynamic,
9635+ "YES" => yes.to_dynamic,
94689636 }
94699637 end
Mrustdefault / module_under_test.rs+97 −43
@@ -2029,6 +2029,9 @@ pub struct Select {
20292029 pub struct Obj5 {
20302030 pub dummy: i64,
20312031
2032+ #[serde(rename = "KSerializer")]
2033+ pub k_serializer: KSerializer,
2034+
20322035 #[serde(rename = "Self")]
20332036 pub obj5_self: SelfClass,
20342037
@@ -2059,8 +2062,8 @@ pub struct Obj5 {
20592062 #[serde(rename = "unsafe")]
20602063 pub obj5_unsafe: Unsafe,
20612064
2062- #[serde(rename = "virtual")]
2063- pub obj5_virtual: Virtual,
2065+ #[serde(rename = "PrimitiveKind")]
2066+ pub primitive_kind: PrimitiveKind,
20642067
20652068 #[serde(rename = "self")]
20662069 pub purple_self: Obj5Self,
@@ -2074,6 +2077,15 @@ pub struct Obj5 {
20742077 #[serde(rename = "Sendable")]
20752078 pub sendable: Sendable,
20762079
2080+ #[serde(rename = "SerialDescriptor")]
2081+ pub serial_descriptor: SerialDescriptor,
2082+
2083+ #[serde(rename = "SerialName")]
2084+ pub serial_name: SerialName,
2085+
2086+ #[serde(rename = "Serializable")]
2087+ pub serializable: Serializable,
2088+
20772089 pub serialize: SerializeClass,
20782090
20792091 #[serde(rename = "SerializerProvider")]
@@ -2169,20 +2181,16 @@ pub struct Obj5 {
21692181
21702182 pub unsigned: Unsigned,
21712183
2172- pub ushort: Ushort,
2173-
2174- pub using: Using,
2184+ #[serde(rename = "UseSerializers")]
2185+ pub use_serializers: UseSerializers,
21752186
2176- #[serde(rename = "Utf8JsonReader")]
2177- pub utf8_json_reader: Utf8JsonReader,
2178-
2179- #[serde(rename = "Utf8JsonWriter")]
2180- pub utf8_json_writer: Utf8JsonWriter,
2181-
2182- #[serde(rename = "UUID")]
2183- pub uuid: Uuid,
2187+ pub ushort: Ushort,
2188+}
21842189
2185- pub var: Var,
2190+#[derive(Debug, Clone, Serialize, Deserialize)]
2191+#[serde(rename_all = "PascalCase")]
2192+pub struct KSerializer {
2193+ pub k_serializer: i64,
21862194 }
21872195
21882196 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2249,9 +2257,9 @@ pub struct Unsafe {
22492257 }
22502258
22512259 #[derive(Debug, Clone, Serialize, Deserialize)]
2252-pub struct Virtual {
2253- #[serde(rename = "virtual")]
2254- pub virtual_virtual: i64,
2260+#[serde(rename_all = "PascalCase")]
2261+pub struct PrimitiveKind {
2262+ pub primitive_kind: i64,
22552263 }
22562264
22572265 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2278,6 +2286,24 @@ pub struct Sendable {
22782286 pub sendable: i64,
22792287 }
22802288
2289+#[derive(Debug, Clone, Serialize, Deserialize)]
2290+#[serde(rename_all = "PascalCase")]
2291+pub struct SerialDescriptor {
2292+ pub serial_descriptor: i64,
2293+}
2294+
2295+#[derive(Debug, Clone, Serialize, Deserialize)]
2296+#[serde(rename_all = "PascalCase")]
2297+pub struct SerialName {
2298+ pub serial_name: i64,
2299+}
2300+
2301+#[derive(Debug, Clone, Serialize, Deserialize)]
2302+#[serde(rename_all = "PascalCase")]
2303+pub struct Serializable {
2304+ pub serializable: i64,
2305+}
2306+
22812307 #[derive(Debug, Clone, Serialize, Deserialize)]
22822308 pub struct SerializeClass {
22832309 pub serialize: i64,
@@ -2502,43 +2528,24 @@ pub struct Unsigned {
25022528 pub unsigned: i64,
25032529 }
25042530
2505-#[derive(Debug, Clone, Serialize, Deserialize)]
2506-pub struct Ushort {
2507- pub ushort: i64,
2508-}
2509-
2510-#[derive(Debug, Clone, Serialize, Deserialize)]
2511-pub struct Using {
2512- pub using: i64,
2513-}
2514-
2515-#[derive(Debug, Clone, Serialize, Deserialize)]
2516-#[serde(rename_all = "PascalCase")]
2517-pub struct Utf8JsonReader {
2518- pub utf8_json_reader: i64,
2519-}
2520-
25212531 #[derive(Debug, Clone, Serialize, Deserialize)]
25222532 #[serde(rename_all = "PascalCase")]
2523-pub struct Utf8JsonWriter {
2524- pub utf8_json_writer: i64,
2525-}
2526-
2527-#[derive(Debug, Clone, Serialize, Deserialize)]
2528-#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2529-pub struct Uuid {
2530- pub uuid: i64,
2533+pub struct UseSerializers {
2534+ pub use_serializers: i64,
25312535 }
25322536
25332537 #[derive(Debug, Clone, Serialize, Deserialize)]
2534-pub struct Var {
2535- pub var: i64,
2538+pub struct Ushort {
2539+ pub ushort: i64,
25362540 }
25372541
25382542 #[derive(Debug, Clone, Serialize, Deserialize)]
25392543 pub struct Obj6 {
25402544 pub dummy: i64,
25412545
2546+ #[serde(rename = "virtual")]
2547+ pub obj6_virtual: Virtual,
2548+
25422549 #[serde(rename = "where")]
25432550 pub obj6_where: Where,
25442551
@@ -2548,6 +2555,19 @@ pub struct Obj6 {
25482555 #[serde(rename = "yield")]
25492556 pub obj6_yield: Yield,
25502557
2558+ pub using: Using,
2559+
2560+ #[serde(rename = "Utf8JsonReader")]
2561+ pub utf8_json_reader: Utf8JsonReader,
2562+
2563+ #[serde(rename = "Utf8JsonWriter")]
2564+ pub utf8_json_writer: Utf8JsonWriter,
2565+
2566+ #[serde(rename = "UUID")]
2567+ pub uuid: Uuid,
2568+
2569+ pub var: Var,
2570+
25512571 pub void: Void,
25522572
25532573 pub volatile: Volatile,
@@ -2569,6 +2589,12 @@ pub struct Obj6 {
25692589 pub yes: Yes,
25702590 }
25712591
2592+#[derive(Debug, Clone, Serialize, Deserialize)]
2593+pub struct Virtual {
2594+ #[serde(rename = "virtual")]
2595+ pub virtual_virtual: i64,
2596+}
2597+
25722598 #[derive(Debug, Clone, Serialize, Deserialize)]
25732599 pub struct Where {
25742600 #[serde(rename = "where")]
@@ -2587,6 +2613,34 @@ pub struct Yield {
25872613 pub yield_yield: i64,
25882614 }
25892615
2616+#[derive(Debug, Clone, Serialize, Deserialize)]
2617+pub struct Using {
2618+ pub using: i64,
2619+}
2620+
2621+#[derive(Debug, Clone, Serialize, Deserialize)]
2622+#[serde(rename_all = "PascalCase")]
2623+pub struct Utf8JsonReader {
2624+ pub utf8_json_reader: i64,
2625+}
2626+
2627+#[derive(Debug, Clone, Serialize, Deserialize)]
2628+#[serde(rename_all = "PascalCase")]
2629+pub struct Utf8JsonWriter {
2630+ pub utf8_json_writer: i64,
2631+}
2632+
2633+#[derive(Debug, Clone, Serialize, Deserialize)]
2634+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2635+pub struct Uuid {
2636+ pub uuid: i64,
2637+}
2638+
2639+#[derive(Debug, Clone, Serialize, Deserialize)]
2640+pub struct Var {
2641+ pub var: i64,
2642+}
2643+
25902644 #[derive(Debug, Clone, Serialize, Deserialize)]
25912645 pub struct Void {
25922646 pub void: i64,
Mscala3-upickledefault / TopLevel.scala+59 −29
@@ -1408,6 +1408,7 @@ case class Select (
14081408
14091409 case class Obj5 (
14101410 val dummy : Long,
1411+ val KSerializer : KSerializer,
14111412 val self : SelfClass,
14121413 val `super` : Super,
14131414 val `then` : Then,
@@ -1416,11 +1417,14 @@ case class Obj5 (
14161417 val True : True,
14171418 val `try` : Try,
14181419 val Type : Type,
1419- val `var` : Var,
1420+ val PrimitiveKind : PrimitiveKind,
14201421 val `true` : TrueClass,
14211422 val `type` : TypeClass,
14221423 val Self : Self,
14231424 val Sendable : Sendable,
1425+ val SerialDescriptor : SerialDescriptor,
1426+ val SerialName : SerialName,
1427+ val Serializable : Serializable,
14241428 val serialize : Serialize,
14251429 val SerializerProvider : SerializerProvider,
14261430 val set : Set,
@@ -1468,12 +1472,12 @@ case class Obj5 (
14681472 val unowned : Unowned,
14691473 val unsafe : Unsafe,
14701474 val unsigned : Unsigned,
1471- val ushort : Ushort,
1472- val using : Using,
1473- val Utf8JsonReader : Utf8JSONReader,
1474- val Utf8JsonWriter : Utf8JSONWriter,
1475- val UUID : UUID,
1476- val virtual : Virtual
1475+ val UseSerializers : UseSerializers,
1476+ val ushort : Ushort
1477+) derives OptionPickler.ReadWriter
1478+
1479+case class KSerializer (
1480+ val KSerializer : Long
14771481 ) derives OptionPickler.ReadWriter
14781482
14791483 case class SelfClass (
@@ -1508,8 +1512,8 @@ case class Type (
15081512 val Type : Long
15091513 ) derives OptionPickler.ReadWriter
15101514
1511-case class Var (
1512- val `var` : Long
1515+case class PrimitiveKind (
1516+ val PrimitiveKind : Long
15131517 ) derives OptionPickler.ReadWriter
15141518
15151519 case class TrueClass (
@@ -1528,6 +1532,18 @@ case class Sendable (
15281532 val Sendable : Long
15291533 ) derives OptionPickler.ReadWriter
15301534
1535+case class SerialDescriptor (
1536+ val SerialDescriptor : Long
1537+) derives OptionPickler.ReadWriter
1538+
1539+case class SerialName (
1540+ val SerialName : Long
1541+) derives OptionPickler.ReadWriter
1542+
1543+case class Serializable (
1544+ val Serializable : Long
1545+) derives OptionPickler.ReadWriter
1546+
15311547 case class Serialize (
15321548 val serialize : Long
15331549 ) derives OptionPickler.ReadWriter
@@ -1710,35 +1726,25 @@ case class Unsigned (
17101726 val unsigned : Long
17111727 ) derives OptionPickler.ReadWriter
17121728
1713-case class Ushort (
1714- val ushort : Long
1715-) derives OptionPickler.ReadWriter
1716-
1717-case class Using (
1718- val using : Long
1719-) derives OptionPickler.ReadWriter
1720-
1721-case class Utf8JSONReader (
1722- val Utf8JsonReader : Long
1723-) derives OptionPickler.ReadWriter
1724-
1725-case class Utf8JSONWriter (
1726- val Utf8JsonWriter : Long
1727-) derives OptionPickler.ReadWriter
1728-
1729-case class UUID (
1730- val UUID : Long
1729+case class UseSerializers (
1730+ val UseSerializers : Long
17311731 ) derives OptionPickler.ReadWriter
17321732
1733-case class Virtual (
1734- val virtual : Long
1733+case class Ushort (
1734+ val ushort : Long
17351735 ) derives OptionPickler.ReadWriter
17361736
17371737 case class Obj6 (
17381738 val dummy : Long,
1739+ val `var` : Var,
17391740 val `while` : While,
17401741 val `with` : With,
17411742 val `yield` : Yield,
1743+ val using : Using,
1744+ val Utf8JsonReader : Utf8JSONReader,
1745+ val Utf8JsonWriter : Utf8JSONWriter,
1746+ val UUID : UUID,
1747+ val virtual : Virtual,
17421748 val void : Void,
17431749 val volatile : Volatile,
17441750 val wchar_t : WcharT,
@@ -1750,6 +1756,10 @@ case class Obj6 (
17501756 val YES : Yes
17511757 ) derives OptionPickler.ReadWriter
17521758
1759+case class Var (
1760+ val `var` : Long
1761+) derives OptionPickler.ReadWriter
1762+
17531763 case class While (
17541764 val `while` : Long
17551765 ) derives OptionPickler.ReadWriter
@@ -1762,6 +1772,26 @@ case class Yield (
17621772 val `yield` : Long
17631773 ) derives OptionPickler.ReadWriter
17641774
1775+case class Using (
1776+ val using : Long
1777+) derives OptionPickler.ReadWriter
1778+
1779+case class Utf8JSONReader (
1780+ val Utf8JsonReader : Long
1781+) derives OptionPickler.ReadWriter
1782+
1783+case class Utf8JSONWriter (
1784+ val Utf8JsonWriter : Long
1785+) derives OptionPickler.ReadWriter
1786+
1787+case class UUID (
1788+ val UUID : Long
1789+) derives OptionPickler.ReadWriter
1790+
1791+case class Virtual (
1792+ val virtual : Long
1793+) derives OptionPickler.ReadWriter
1794+
17651795 case class Void (
17661796 val void : Long
17671797 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+59 −29
@@ -1375,6 +1375,7 @@ case class Select (
13751375
13761376 case class Obj5 (
13771377 val dummy : Long,
1378+ val KSerializer : KSerializer,
13781379 val self : SelfClass,
13791380 val `super` : Super,
13801381 val `then` : Then,
@@ -1383,11 +1384,14 @@ case class Obj5 (
13831384 val True : True,
13841385 val `try` : Try,
13851386 val Type : Type,
1386- val `var` : Var,
1387+ val PrimitiveKind : PrimitiveKind,
13871388 val `true` : TrueClass,
13881389 val `type` : TypeClass,
13891390 val Self : Self,
13901391 val Sendable : Sendable,
1392+ val SerialDescriptor : SerialDescriptor,
1393+ val SerialName : SerialName,
1394+ val Serializable : Serializable,
13911395 val serialize : Serialize,
13921396 val SerializerProvider : SerializerProvider,
13931397 val set : Set,
@@ -1433,12 +1437,8 @@ case class Obj5 (
14331437 val unowned : Unowned,
14341438 val unsafe : Unsafe,
14351439 val unsigned : Unsigned,
1436- val ushort : Ushort,
1437- val using : Using,
1438- val Utf8JsonReader : Utf8JSONReader,
1439- val Utf8JsonWriter : Utf8JSONWriter,
1440- val UUID : UUID,
1441- val virtual : Virtual
1440+ val UseSerializers : UseSerializers,
1441+ val ushort : Ushort
14421442 )
14431443
14441444 object Obj5:
@@ -1451,6 +1451,10 @@ object Obj5:
14511451 )
14521452 given io.circe.Codec.AsObject[Obj5] = io.circe.derivation.ConfiguredCodec.derived
14531453
1454+case class KSerializer (
1455+ val KSerializer : Long
1456+) derives Encoder.AsObject, Decoder
1457+
14541458 case class SelfClass (
14551459 val self : Long
14561460 ) derives Encoder.AsObject, Decoder
@@ -1483,8 +1487,8 @@ case class Type (
14831487 val Type : Long
14841488 ) derives Encoder.AsObject, Decoder
14851489
1486-case class Var (
1487- val `var` : Long
1490+case class PrimitiveKind (
1491+ val PrimitiveKind : Long
14881492 ) derives Encoder.AsObject, Decoder
14891493
14901494 case class TrueClass (
@@ -1503,6 +1507,18 @@ case class Sendable (
15031507 val Sendable : Long
15041508 ) derives Encoder.AsObject, Decoder
15051509
1510+case class SerialDescriptor (
1511+ val SerialDescriptor : Long
1512+) derives Encoder.AsObject, Decoder
1513+
1514+case class SerialName (
1515+ val SerialName : Long
1516+) derives Encoder.AsObject, Decoder
1517+
1518+case class Serializable (
1519+ val Serializable : Long
1520+) derives Encoder.AsObject, Decoder
1521+
15061522 case class Serialize (
15071523 val serialize : Long
15081524 ) derives Encoder.AsObject, Decoder
@@ -1701,35 +1717,25 @@ case class Unsigned (
17011717 val unsigned : Long
17021718 ) derives Encoder.AsObject, Decoder
17031719
1704-case class Ushort (
1705- val ushort : Long
1706-) derives Encoder.AsObject, Decoder
1707-
1708-case class Using (
1709- val using : Long
1710-) derives Encoder.AsObject, Decoder
1711-
1712-case class Utf8JSONReader (
1713- val Utf8JsonReader : Long
1714-) derives Encoder.AsObject, Decoder
1715-
1716-case class Utf8JSONWriter (
1717- val Utf8JsonWriter : Long
1718-) derives Encoder.AsObject, Decoder
1719-
1720-case class UUID (
1721- val UUID : Long
1720+case class UseSerializers (
1721+ val UseSerializers : Long
17221722 ) derives Encoder.AsObject, Decoder
17231723
1724-case class Virtual (
1725- val virtual : Long
1724+case class Ushort (
1725+ val ushort : Long
17261726 ) derives Encoder.AsObject, Decoder
17271727
17281728 case class Obj6 (
17291729 val dummy : Long,
1730+ val `var` : Var,
17301731 val `while` : While,
17311732 val `with` : With,
17321733 val `yield` : Yield,
1734+ val using : Using,
1735+ val Utf8JsonReader : Utf8JSONReader,
1736+ val Utf8JsonWriter : Utf8JSONWriter,
1737+ val UUID : UUID,
1738+ val virtual : Virtual,
17331739 val void : Void,
17341740 val volatile : Volatile,
17351741 val wchar_t : WcharT,
@@ -1741,6 +1747,10 @@ case class Obj6 (
17411747 val YES : Yes
17421748 ) derives Encoder.AsObject, Decoder
17431749
1750+case class Var (
1751+ val `var` : Long
1752+) derives Encoder.AsObject, Decoder
1753+
17441754 case class While (
17451755 val `while` : Long
17461756 ) derives Encoder.AsObject, Decoder
@@ -1753,6 +1763,26 @@ case class Yield (
17531763 val `yield` : Long
17541764 ) derives Encoder.AsObject, Decoder
17551765
1766+case class Using (
1767+ val using : Long
1768+) derives Encoder.AsObject, Decoder
1769+
1770+case class Utf8JSONReader (
1771+ val Utf8JsonReader : Long
1772+) derives Encoder.AsObject, Decoder
1773+
1774+case class Utf8JSONWriter (
1775+ val Utf8JsonWriter : Long
1776+) derives Encoder.AsObject, Decoder
1777+
1778+case class UUID (
1779+ val UUID : Long
1780+) derives Encoder.AsObject, Decoder
1781+
1782+case class Virtual (
1783+ val virtual : Long
1784+) derives Encoder.AsObject, Decoder
1785+
17561786 case class Void (
17571787 val void : Long
17581788 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+503 −215
@@ -12545,6 +12545,7 @@ extension Select {
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable {
1254712547 let dummy: Int
12548+ let kSerializer: KSerializer
1254812549 let obj5Self: SelfClass
1254912550 let obj5Set: Set
1255012551 let obj5Static: Static
@@ -12559,10 +12560,13 @@ struct Obj5: Codable {
1255912560 let obj5Type: Obj5Type
1256012561 let obj5Typealias: Typealias
1256112562 let obj5Unowned: Unowned
12562- let obj5Var: Var
12563+ let primitiveKind: PrimitiveKind
1256312564 let purpleSelf: Obj5Self
1256412565 let purpleTrue: TrueClass
1256512566 let sendable: Sendable
12567+ let serialDescriptor: SerialDescriptor
12568+ let serialName: SerialName
12569+ let serializable: Serializable
1256612570 let serialize: Serialize
1256712571 let serializerProvider: SerializerProvider
1256812572 let short: Short
@@ -12603,15 +12607,12 @@ struct Obj5: Codable {
1260312607 let union: Union
1260412608 let unsafe: Unsafe
1260512609 let unsigned: Unsigned
12610+ let useSerializers: UseSerializers
1260612611 let ushort: Ushort
12607- let using: Using
12608- let utf8JSONReader: Utf8JSONReader
12609- let utf8JSONWriter: Utf8JSONWriter
12610- let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
12615+ case kSerializer = "KSerializer"
1261512616 case obj5Self = "Self"
1261612617 case obj5Set = "set"
1261712618 case obj5Static = "static"
@@ -12626,10 +12627,13 @@ struct Obj5: Codable {
1262612627 case obj5Type = "type"
1262712628 case obj5Typealias = "typealias"
1262812629 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
12630+ case primitiveKind = "PrimitiveKind"
1263012631 case purpleSelf = "self"
1263112632 case purpleTrue = "true"
1263212633 case sendable = "Sendable"
12634+ case serialDescriptor = "SerialDescriptor"
12635+ case serialName = "SerialName"
12636+ case serializable = "Serializable"
1263312637 case serialize = "serialize"
1263412638 case serializerProvider = "SerializerProvider"
1263512639 case short = "short"
@@ -12670,12 +12674,8 @@ struct Obj5: Codable {
1267012674 case union = "union"
1267112675 case unsafe = "unsafe"
1267212676 case unsigned = "unsigned"
12677+ case useSerializers = "UseSerializers"
1267312678 case ushort = "ushort"
12674- case using = "using"
12675- case utf8JSONReader = "Utf8JsonReader"
12676- case utf8JSONWriter = "Utf8JsonWriter"
12677- case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12699,6 +12699,7 @@ extension Obj5 {
1269912699
1270012700 func with(
1270112701 dummy: Int? = nil,
12702+ kSerializer: KSerializer? = nil,
1270212703 obj5Self: SelfClass? = nil,
1270312704 obj5Set: Set? = nil,
1270412705 obj5Static: Static? = nil,
@@ -12713,10 +12714,13 @@ extension Obj5 {
1271312714 obj5Type: Obj5Type? = nil,
1271412715 obj5Typealias: Typealias? = nil,
1271512716 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
12717+ primitiveKind: PrimitiveKind? = nil,
1271712718 purpleSelf: Obj5Self? = nil,
1271812719 purpleTrue: TrueClass? = nil,
1271912720 sendable: Sendable? = nil,
12721+ serialDescriptor: SerialDescriptor? = nil,
12722+ serialName: SerialName? = nil,
12723+ serializable: Serializable? = nil,
1272012724 serialize: Serialize? = nil,
1272112725 serializerProvider: SerializerProvider? = nil,
1272212726 short: Short? = nil,
@@ -12757,15 +12761,12 @@ extension Obj5 {
1275712761 union: Union? = nil,
1275812762 unsafe: Unsafe? = nil,
1275912763 unsigned: Unsigned? = nil,
12760- ushort: Ushort? = nil,
12761- using: Using? = nil,
12762- utf8JSONReader: Utf8JSONReader? = nil,
12763- utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12764+ useSerializers: UseSerializers? = nil,
12765+ ushort: Ushort? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
12769+ kSerializer: kSerializer ?? self.kSerializer,
1276912770 obj5Self: obj5Self ?? self.obj5Self,
1277012771 obj5Set: obj5Set ?? self.obj5Set,
1277112772 obj5Static: obj5Static ?? self.obj5Static,
@@ -12780,10 +12781,13 @@ extension Obj5 {
1278012781 obj5Type: obj5Type ?? self.obj5Type,
1278112782 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212783 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
12784+ primitiveKind: primitiveKind ?? self.primitiveKind,
1278412785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512786 purpleTrue: purpleTrue ?? self.purpleTrue,
1278612787 sendable: sendable ?? self.sendable,
12788+ serialDescriptor: serialDescriptor ?? self.serialDescriptor,
12789+ serialName: serialName ?? self.serialName,
12790+ serializable: serializable ?? self.serializable,
1278712791 serialize: serialize ?? self.serialize,
1278812792 serializerProvider: serializerProvider ?? self.serializerProvider,
1278912793 short: short ?? self.short,
@@ -12824,12 +12828,52 @@ extension Obj5 {
1282412828 union: union ?? self.union,
1282512829 unsafe: unsafe ?? self.unsafe,
1282612830 unsigned: unsigned ?? self.unsigned,
12827- ushort: ushort ?? self.ushort,
12828- using: using ?? self.using,
12829- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
12830- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12831+ useSerializers: useSerializers ?? self.useSerializers,
12832+ ushort: ushort ?? self.ushort
12833+ )
12834+ }
12835+
12836+ func jsonData() throws -> Data {
12837+ return try newJSONEncoder().encode(self)
12838+ }
12839+
12840+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12841+ return String(data: try self.jsonData(), encoding: encoding)
12842+ }
12843+}
12844+
12845+// MARK: - KSerializer
12846+struct KSerializer: Codable {
12847+ let kSerializer: Int
12848+
12849+ enum CodingKeys: String, CodingKey {
12850+ case kSerializer = "KSerializer"
12851+ }
12852+}
12853+
12854+// MARK: KSerializer convenience initializers and mutators
12855+
12856+extension KSerializer {
12857+ init(data: Data) throws {
12858+ self = try newJSONDecoder().decode(KSerializer.self, from: data)
12859+ }
12860+
12861+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12862+ guard let data = json.data(using: encoding) else {
12863+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12864+ }
12865+ try self.init(data: data)
12866+ }
12867+
12868+ init(fromURL url: URL) throws {
12869+ try self.init(data: try Data(contentsOf: url))
12870+ }
12871+
12872+ func with(
12873+ kSerializer: Int? = nil
12874+ ) -> KSerializer {
12875+ return KSerializer(
12876+ kSerializer: kSerializer ?? self.kSerializer
1283312877 )
1283412878 }
1283512879
@@ -13458,20 +13502,20 @@ extension Unowned {
1345813502 }
1345913503 }
1346013504
13461-// MARK: - Var
13462-struct Var: Codable {
13463- let varVar: Int
13505+// MARK: - PrimitiveKind
13506+struct PrimitiveKind: Codable {
13507+ let primitiveKind: Int
1346413508
1346513509 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13510+ case primitiveKind = "PrimitiveKind"
1346713511 }
1346813512 }
1346913513
13470-// MARK: Var convenience initializers and mutators
13514+// MARK: PrimitiveKind convenience initializers and mutators
1347113515
13472-extension Var {
13516+extension PrimitiveKind {
1347313517 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13518+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1347513519 }
1347613520
1347713521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13530,10 @@ extension Var {
1348613530 }
1348713531
1348813532 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13533+ primitiveKind: Int? = nil
13534+ ) -> PrimitiveKind {
13535+ return PrimitiveKind(
13536+ primitiveKind: primitiveKind ?? self.primitiveKind
1349313537 )
1349413538 }
1349513539
@@ -13634,6 +13678,138 @@ extension Sendable {
1363413678 }
1363513679 }
1363613680
13681+// MARK: - SerialDescriptor
13682+struct SerialDescriptor: Codable {
13683+ let serialDescriptor: Int
13684+
13685+ enum CodingKeys: String, CodingKey {
13686+ case serialDescriptor = "SerialDescriptor"
13687+ }
13688+}
13689+
13690+// MARK: SerialDescriptor convenience initializers and mutators
13691+
13692+extension SerialDescriptor {
13693+ init(data: Data) throws {
13694+ self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
13695+ }
13696+
13697+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13698+ guard let data = json.data(using: encoding) else {
13699+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13700+ }
13701+ try self.init(data: data)
13702+ }
13703+
13704+ init(fromURL url: URL) throws {
13705+ try self.init(data: try Data(contentsOf: url))
13706+ }
13707+
13708+ func with(
13709+ serialDescriptor: Int? = nil
13710+ ) -> SerialDescriptor {
13711+ return SerialDescriptor(
13712+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
13713+ )
13714+ }
13715+
13716+ func jsonData() throws -> Data {
13717+ return try newJSONEncoder().encode(self)
13718+ }
13719+
13720+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13721+ return String(data: try self.jsonData(), encoding: encoding)
13722+ }
13723+}
13724+
13725+// MARK: - SerialName
13726+struct SerialName: Codable {
13727+ let serialName: Int
13728+
13729+ enum CodingKeys: String, CodingKey {
13730+ case serialName = "SerialName"
13731+ }
13732+}
13733+
13734+// MARK: SerialName convenience initializers and mutators
13735+
13736+extension SerialName {
13737+ init(data: Data) throws {
13738+ self = try newJSONDecoder().decode(SerialName.self, from: data)
13739+ }
13740+
13741+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13742+ guard let data = json.data(using: encoding) else {
13743+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13744+ }
13745+ try self.init(data: data)
13746+ }
13747+
13748+ init(fromURL url: URL) throws {
13749+ try self.init(data: try Data(contentsOf: url))
13750+ }
13751+
13752+ func with(
13753+ serialName: Int? = nil
13754+ ) -> SerialName {
13755+ return SerialName(
13756+ serialName: serialName ?? self.serialName
13757+ )
13758+ }
13759+
13760+ func jsonData() throws -> Data {
13761+ return try newJSONEncoder().encode(self)
13762+ }
13763+
13764+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13765+ return String(data: try self.jsonData(), encoding: encoding)
13766+ }
13767+}
13768+
13769+// MARK: - Serializable
13770+struct Serializable: Codable {
13771+ let serializable: Int
13772+
13773+ enum CodingKeys: String, CodingKey {
13774+ case serializable = "Serializable"
13775+ }
13776+}
13777+
13778+// MARK: Serializable convenience initializers and mutators
13779+
13780+extension Serializable {
13781+ init(data: Data) throws {
13782+ self = try newJSONDecoder().decode(Serializable.self, from: data)
13783+ }
13784+
13785+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13786+ guard let data = json.data(using: encoding) else {
13787+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13788+ }
13789+ try self.init(data: data)
13790+ }
13791+
13792+ init(fromURL url: URL) throws {
13793+ try self.init(data: try Data(contentsOf: url))
13794+ }
13795+
13796+ func with(
13797+ serializable: Int? = nil
13798+ ) -> Serializable {
13799+ return Serializable(
13800+ serializable: serializable ?? self.serializable
13801+ )
13802+ }
13803+
13804+ func jsonData() throws -> Data {
13805+ return try newJSONEncoder().encode(self)
13806+ }
13807+
13808+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13809+ return String(data: try self.jsonData(), encoding: encoding)
13810+ }
13811+}
13812+
1363713813 // MARK: - Serialize
1363813814 struct Serialize: Codable {
1363913815 let serialize: Int
@@ -15394,20 +15570,20 @@ extension Unsigned {
1539415570 }
1539515571 }
1539615572
15397-// MARK: - Ushort
15398-struct Ushort: Codable {
15399- let ushort: Int
15573+// MARK: - UseSerializers
15574+struct UseSerializers: Codable {
15575+ let useSerializers: Int
1540015576
1540115577 enum CodingKeys: String, CodingKey {
15402- case ushort = "ushort"
15578+ case useSerializers = "UseSerializers"
1540315579 }
1540415580 }
1540515581
15406-// MARK: Ushort convenience initializers and mutators
15582+// MARK: UseSerializers convenience initializers and mutators
1540715583
15408-extension Ushort {
15584+extension UseSerializers {
1540915585 init(data: Data) throws {
15410- self = try newJSONDecoder().decode(Ushort.self, from: data)
15586+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
1541115587 }
1541215588
1541315589 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15422,10 +15598,10 @@ extension Ushort {
1542215598 }
1542315599
1542415600 func with(
15425- ushort: Int? = nil
15426- ) -> Ushort {
15427- return Ushort(
15428- ushort: ushort ?? self.ushort
15601+ useSerializers: Int? = nil
15602+ ) -> UseSerializers {
15603+ return UseSerializers(
15604+ useSerializers: useSerializers ?? self.useSerializers
1542915605 )
1543015606 }
1543115607
@@ -15438,20 +15614,20 @@ extension Ushort {
1543815614 }
1543915615 }
1544015616
15441-// MARK: - Using
15442-struct Using: Codable {
15443- let using: Int
15617+// MARK: - Ushort
15618+struct Ushort: Codable {
15619+ let ushort: Int
1544415620
1544515621 enum CodingKeys: String, CodingKey {
15446- case using = "using"
15622+ case ushort = "ushort"
1544715623 }
1544815624 }
1544915625
15450-// MARK: Using convenience initializers and mutators
15626+// MARK: Ushort convenience initializers and mutators
1545115627
15452-extension Using {
15628+extension Ushort {
1545315629 init(data: Data) throws {
15454- self = try newJSONDecoder().decode(Using.self, from: data)
15630+ self = try newJSONDecoder().decode(Ushort.self, from: data)
1545515631 }
1545615632
1545715633 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15466,10 +15642,10 @@ extension Using {
1546615642 }
1546715643
1546815644 func with(
15469- using: Int? = nil
15470- ) -> Using {
15471- return Using(
15472- using: using ?? self.using
15645+ ushort: Int? = nil
15646+ ) -> Ushort {
15647+ return Ushort(
15648+ ushort: ushort ?? self.ushort
1547315649 )
1547415650 }
1547515651
@@ -15482,20 +15658,56 @@ extension Using {
1548215658 }
1548315659 }
1548415660
15485-// MARK: - Utf8JSONReader
15486-struct Utf8JSONReader: Codable {
15487- let utf8JSONReader: Int
15661+// MARK: - Obj6
15662+struct Obj6: Codable {
15663+ let dummy: Int
15664+ let obj6Var: Var
15665+ let obj6Weak: Weak
15666+ let obj6Where: Where
15667+ let obj6While: While
15668+ let obj6WillSet: WillSet
15669+ let using: Using
15670+ let utf8JSONReader: Utf8JSONReader
15671+ let utf8JSONWriter: Utf8JSONWriter
15672+ let uuid: UUIDClass
15673+ let virtual: Virtual
15674+ let void: Void
15675+ let volatile: Volatile
15676+ let wcharT: WcharT
15677+ let with: With
15678+ let xor: Xor
15679+ let xorEq: XorEq
15680+ let yes: Yes
15681+ let yield: Yield
1548815682
1548915683 enum CodingKeys: String, CodingKey {
15684+ case dummy = "dummy"
15685+ case obj6Var = "var"
15686+ case obj6Weak = "weak"
15687+ case obj6Where = "where"
15688+ case obj6While = "while"
15689+ case obj6WillSet = "willSet"
15690+ case using = "using"
1549015691 case utf8JSONReader = "Utf8JsonReader"
15692+ case utf8JSONWriter = "Utf8JsonWriter"
15693+ case uuid = "UUID"
15694+ case virtual = "virtual"
15695+ case void = "void"
15696+ case volatile = "volatile"
15697+ case wcharT = "wchar_t"
15698+ case with = "with"
15699+ case xor = "xor"
15700+ case xorEq = "xor_eq"
15701+ case yes = "YES"
15702+ case yield = "yield"
1549115703 }
1549215704 }
1549315705
15494-// MARK: Utf8JSONReader convenience initializers and mutators
15706+// MARK: Obj6 convenience initializers and mutators
1549515707
15496-extension Utf8JSONReader {
15708+extension Obj6 {
1549715709 init(data: Data) throws {
15498- self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
15710+ self = try newJSONDecoder().decode(Obj6.self, from: data)
1549915711 }
1550015712
1550115713 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15510,36 +15722,72 @@ extension Utf8JSONReader {
1551015722 }
1551115723
1551215724 func with(
15513- utf8JSONReader: Int? = nil
15514- ) -> Utf8JSONReader {
15515- return Utf8JSONReader(
15516- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
15517- )
15518- }
15519-
15520- func jsonData() throws -> Data {
15521- return try newJSONEncoder().encode(self)
15522- }
15523-
15524- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15525- return String(data: try self.jsonData(), encoding: encoding)
15526- }
15725+ dummy: Int? = nil,
15726+ obj6Var: Var? = nil,
15727+ obj6Weak: Weak? = nil,
15728+ obj6Where: Where? = nil,
15729+ obj6While: While? = nil,
15730+ obj6WillSet: WillSet? = nil,
15731+ using: Using? = nil,
15732+ utf8JSONReader: Utf8JSONReader? = nil,
15733+ utf8JSONWriter: Utf8JSONWriter? = nil,
15734+ uuid: UUIDClass? = nil,
15735+ virtual: Virtual? = nil,
15736+ void: Void? = nil,
15737+ volatile: Volatile? = nil,
15738+ wcharT: WcharT? = nil,
15739+ with: With? = nil,
15740+ xor: Xor? = nil,
15741+ xorEq: XorEq? = nil,
15742+ yes: Yes? = nil,
15743+ yield: Yield? = nil
15744+ ) -> Obj6 {
15745+ return Obj6(
15746+ dummy: dummy ?? self.dummy,
15747+ obj6Var: obj6Var ?? self.obj6Var,
15748+ obj6Weak: obj6Weak ?? self.obj6Weak,
15749+ obj6Where: obj6Where ?? self.obj6Where,
15750+ obj6While: obj6While ?? self.obj6While,
15751+ obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15752+ using: using ?? self.using,
15753+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
15754+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
15755+ uuid: uuid ?? self.uuid,
15756+ virtual: virtual ?? self.virtual,
15757+ void: void ?? self.void,
15758+ volatile: volatile ?? self.volatile,
15759+ wcharT: wcharT ?? self.wcharT,
15760+ with: with ?? self.with,
15761+ xor: xor ?? self.xor,
15762+ xorEq: xorEq ?? self.xorEq,
15763+ yes: yes ?? self.yes,
15764+ yield: yield ?? self.yield
15765+ )
15766+ }
15767+
15768+ func jsonData() throws -> Data {
15769+ return try newJSONEncoder().encode(self)
15770+ }
15771+
15772+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15773+ return String(data: try self.jsonData(), encoding: encoding)
15774+ }
1552715775 }
1552815776
15529-// MARK: - Utf8JSONWriter
15530-struct Utf8JSONWriter: Codable {
15531- let utf8JSONWriter: Int
15777+// MARK: - Var
15778+struct Var: Codable {
15779+ let varVar: Int
1553215780
1553315781 enum CodingKeys: String, CodingKey {
15534- case utf8JSONWriter = "Utf8JsonWriter"
15782+ case varVar = "var"
1553515783 }
1553615784 }
1553715785
15538-// MARK: Utf8JSONWriter convenience initializers and mutators
15786+// MARK: Var convenience initializers and mutators
1553915787
15540-extension Utf8JSONWriter {
15788+extension Var {
1554115789 init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
15790+ self = try newJSONDecoder().decode(Var.self, from: data)
1554315791 }
1554415792
1554515793 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15554,10 +15802,10 @@ extension Utf8JSONWriter {
1555415802 }
1555515803
1555615804 func with(
15557- utf8JSONWriter: Int? = nil
15558- ) -> Utf8JSONWriter {
15559- return Utf8JSONWriter(
15560- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
15805+ varVar: Int? = nil
15806+ ) -> Var {
15807+ return Var(
15808+ varVar: varVar ?? self.varVar
1556115809 )
1556215810 }
1556315811
@@ -15570,20 +15818,20 @@ extension Utf8JSONWriter {
1557015818 }
1557115819 }
1557215820
15573-// MARK: - UUIDClass
15574-struct UUIDClass: Codable {
15575- let uuid: Int
15821+// MARK: - Weak
15822+struct Weak: Codable {
15823+ let weakWeak: Int
1557615824
1557715825 enum CodingKeys: String, CodingKey {
15578- case uuid = "UUID"
15826+ case weakWeak = "weak"
1557915827 }
1558015828 }
1558115829
15582-// MARK: UUIDClass convenience initializers and mutators
15830+// MARK: Weak convenience initializers and mutators
1558315831
15584-extension UUIDClass {
15832+extension Weak {
1558515833 init(data: Data) throws {
15586- self = try newJSONDecoder().decode(UUIDClass.self, from: data)
15834+ self = try newJSONDecoder().decode(Weak.self, from: data)
1558715835 }
1558815836
1558915837 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15598,10 +15846,10 @@ extension UUIDClass {
1559815846 }
1559915847
1560015848 func with(
15601- uuid: Int? = nil
15602- ) -> UUIDClass {
15603- return UUIDClass(
15604- uuid: uuid ?? self.uuid
15849+ weakWeak: Int? = nil
15850+ ) -> Weak {
15851+ return Weak(
15852+ weakWeak: weakWeak ?? self.weakWeak
1560515853 )
1560615854 }
1560715855
@@ -15614,20 +15862,20 @@ extension UUIDClass {
1561415862 }
1561515863 }
1561615864
15617-// MARK: - Virtual
15618-struct Virtual: Codable {
15619- let virtual: Int
15865+// MARK: - Where
15866+struct Where: Codable {
15867+ let whereWhere: Int
1562015868
1562115869 enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15870+ case whereWhere = "where"
1562315871 }
1562415872 }
1562515873
15626-// MARK: Virtual convenience initializers and mutators
15874+// MARK: Where convenience initializers and mutators
1562715875
15628-extension Virtual {
15876+extension Where {
1562915877 init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.self, from: data)
15878+ self = try newJSONDecoder().decode(Where.self, from: data)
1563115879 }
1563215880
1563315881 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15642,10 +15890,10 @@ extension Virtual {
1564215890 }
1564315891
1564415892 func with(
15645- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
15893+ whereWhere: Int? = nil
15894+ ) -> Where {
15895+ return Where(
15896+ whereWhere: whereWhere ?? self.whereWhere
1564915897 )
1565015898 }
1565115899
@@ -15658,44 +15906,20 @@ extension Virtual {
1565815906 }
1565915907 }
1566015908
15661-// MARK: - Obj6
15662-struct Obj6: Codable {
15663- let dummy: Int
15664- let obj6Weak: Weak
15665- let obj6Where: Where
15666- let obj6While: While
15667- let obj6WillSet: WillSet
15668- let void: Void
15669- let volatile: Volatile
15670- let wcharT: WcharT
15671- let with: With
15672- let xor: Xor
15673- let xorEq: XorEq
15674- let yes: Yes
15675- let yield: Yield
15909+// MARK: - While
15910+struct While: Codable {
15911+ let whileWhile: Int
1567615912
1567715913 enum CodingKeys: String, CodingKey {
15678- case dummy = "dummy"
15679- case obj6Weak = "weak"
15680- case obj6Where = "where"
15681- case obj6While = "while"
15682- case obj6WillSet = "willSet"
15683- case void = "void"
15684- case volatile = "volatile"
15685- case wcharT = "wchar_t"
15686- case with = "with"
15687- case xor = "xor"
15688- case xorEq = "xor_eq"
15689- case yes = "YES"
15690- case yield = "yield"
15914+ case whileWhile = "while"
1569115915 }
1569215916 }
1569315917
15694-// MARK: Obj6 convenience initializers and mutators
15918+// MARK: While convenience initializers and mutators
1569515919
15696-extension Obj6 {
15920+extension While {
1569715921 init(data: Data) throws {
15698- self = try newJSONDecoder().decode(Obj6.self, from: data)
15922+ self = try newJSONDecoder().decode(While.self, from: data)
1569915923 }
1570015924
1570115925 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15710,34 +15934,10 @@ extension Obj6 {
1571015934 }
1571115935
1571215936 func with(
15713- dummy: Int? = nil,
15714- obj6Weak: Weak? = nil,
15715- obj6Where: Where? = nil,
15716- obj6While: While? = nil,
15717- obj6WillSet: WillSet? = nil,
15718- void: Void? = nil,
15719- volatile: Volatile? = nil,
15720- wcharT: WcharT? = nil,
15721- with: With? = nil,
15722- xor: Xor? = nil,
15723- xorEq: XorEq? = nil,
15724- yes: Yes? = nil,
15725- yield: Yield? = nil
15726- ) -> Obj6 {
15727- return Obj6(
15728- dummy: dummy ?? self.dummy,
15729- obj6Weak: obj6Weak ?? self.obj6Weak,
15730- obj6Where: obj6Where ?? self.obj6Where,
15731- obj6While: obj6While ?? self.obj6While,
15732- obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15733- void: void ?? self.void,
15734- volatile: volatile ?? self.volatile,
15735- wcharT: wcharT ?? self.wcharT,
15736- with: with ?? self.with,
15737- xor: xor ?? self.xor,
15738- xorEq: xorEq ?? self.xorEq,
15739- yes: yes ?? self.yes,
15740- yield: yield ?? self.yield
15937+ whileWhile: Int? = nil
15938+ ) -> While {
15939+ return While(
15940+ whileWhile: whileWhile ?? self.whileWhile
1574115941 )
1574215942 }
1574315943
@@ -15750,20 +15950,20 @@ extension Obj6 {
1575015950 }
1575115951 }
1575215952
15753-// MARK: - Weak
15754-struct Weak: Codable {
15755- let weakWeak: Int
15953+// MARK: - WillSet
15954+struct WillSet: Codable {
15955+ let willSetWillSet: Int
1575615956
1575715957 enum CodingKeys: String, CodingKey {
15758- case weakWeak = "weak"
15958+ case willSetWillSet = "willSet"
1575915959 }
1576015960 }
1576115961
15762-// MARK: Weak convenience initializers and mutators
15962+// MARK: WillSet convenience initializers and mutators
1576315963
15764-extension Weak {
15964+extension WillSet {
1576515965 init(data: Data) throws {
15766- self = try newJSONDecoder().decode(Weak.self, from: data)
15966+ self = try newJSONDecoder().decode(WillSet.self, from: data)
1576715967 }
1576815968
1576915969 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15778,10 +15978,10 @@ extension Weak {
1577815978 }
1577915979
1578015980 func with(
15781- weakWeak: Int? = nil
15782- ) -> Weak {
15783- return Weak(
15784- weakWeak: weakWeak ?? self.weakWeak
15981+ willSetWillSet: Int? = nil
15982+ ) -> WillSet {
15983+ return WillSet(
15984+ willSetWillSet: willSetWillSet ?? self.willSetWillSet
1578515985 )
1578615986 }
1578715987
@@ -15794,20 +15994,20 @@ extension Weak {
1579415994 }
1579515995 }
1579615996
15797-// MARK: - Where
15798-struct Where: Codable {
15799- let whereWhere: Int
15997+// MARK: - Using
15998+struct Using: Codable {
15999+ let using: Int
1580016000
1580116001 enum CodingKeys: String, CodingKey {
15802- case whereWhere = "where"
16002+ case using = "using"
1580316003 }
1580416004 }
1580516005
15806-// MARK: Where convenience initializers and mutators
16006+// MARK: Using convenience initializers and mutators
1580716007
15808-extension Where {
16008+extension Using {
1580916009 init(data: Data) throws {
15810- self = try newJSONDecoder().decode(Where.self, from: data)
16010+ self = try newJSONDecoder().decode(Using.self, from: data)
1581116011 }
1581216012
1581316013 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15822,10 +16022,10 @@ extension Where {
1582216022 }
1582316023
1582416024 func with(
15825- whereWhere: Int? = nil
15826- ) -> Where {
15827- return Where(
15828- whereWhere: whereWhere ?? self.whereWhere
16025+ using: Int? = nil
16026+ ) -> Using {
16027+ return Using(
16028+ using: using ?? self.using
1582916029 )
1583016030 }
1583116031
@@ -15838,20 +16038,20 @@ extension Where {
1583816038 }
1583916039 }
1584016040
15841-// MARK: - While
15842-struct While: Codable {
15843- let whileWhile: Int
16041+// MARK: - Utf8JSONReader
16042+struct Utf8JSONReader: Codable {
16043+ let utf8JSONReader: Int
1584416044
1584516045 enum CodingKeys: String, CodingKey {
15846- case whileWhile = "while"
16046+ case utf8JSONReader = "Utf8JsonReader"
1584716047 }
1584816048 }
1584916049
15850-// MARK: While convenience initializers and mutators
16050+// MARK: Utf8JSONReader convenience initializers and mutators
1585116051
15852-extension While {
16052+extension Utf8JSONReader {
1585316053 init(data: Data) throws {
15854- self = try newJSONDecoder().decode(While.self, from: data)
16054+ self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
1585516055 }
1585616056
1585716057 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15866,10 +16066,10 @@ extension While {
1586616066 }
1586716067
1586816068 func with(
15869- whileWhile: Int? = nil
15870- ) -> While {
15871- return While(
15872- whileWhile: whileWhile ?? self.whileWhile
16069+ utf8JSONReader: Int? = nil
16070+ ) -> Utf8JSONReader {
16071+ return Utf8JSONReader(
16072+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
1587316073 )
1587416074 }
1587516075
@@ -15882,20 +16082,20 @@ extension While {
1588216082 }
1588316083 }
1588416084
15885-// MARK: - WillSet
15886-struct WillSet: Codable {
15887- let willSetWillSet: Int
16085+// MARK: - Utf8JSONWriter
16086+struct Utf8JSONWriter: Codable {
16087+ let utf8JSONWriter: Int
1588816088
1588916089 enum CodingKeys: String, CodingKey {
15890- case willSetWillSet = "willSet"
16090+ case utf8JSONWriter = "Utf8JsonWriter"
1589116091 }
1589216092 }
1589316093
15894-// MARK: WillSet convenience initializers and mutators
16094+// MARK: Utf8JSONWriter convenience initializers and mutators
1589516095
15896-extension WillSet {
16096+extension Utf8JSONWriter {
1589716097 init(data: Data) throws {
15898- self = try newJSONDecoder().decode(WillSet.self, from: data)
16098+ self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
1589916099 }
1590016100
1590116101 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15910,10 +16110,98 @@ extension WillSet {
1591016110 }
1591116111
1591216112 func with(
15913- willSetWillSet: Int? = nil
15914- ) -> WillSet {
15915- return WillSet(
15916- willSetWillSet: willSetWillSet ?? self.willSetWillSet
16113+ utf8JSONWriter: Int? = nil
16114+ ) -> Utf8JSONWriter {
16115+ return Utf8JSONWriter(
16116+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
16117+ )
16118+ }
16119+
16120+ func jsonData() throws -> Data {
16121+ return try newJSONEncoder().encode(self)
16122+ }
16123+
16124+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16125+ return String(data: try self.jsonData(), encoding: encoding)
16126+ }
16127+}
16128+
16129+// MARK: - UUIDClass
16130+struct UUIDClass: Codable {
16131+ let uuid: Int
16132+
16133+ enum CodingKeys: String, CodingKey {
16134+ case uuid = "UUID"
16135+ }
16136+}
16137+
16138+// MARK: UUIDClass convenience initializers and mutators
16139+
16140+extension UUIDClass {
16141+ init(data: Data) throws {
16142+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
16143+ }
16144+
16145+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16146+ guard let data = json.data(using: encoding) else {
16147+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16148+ }
16149+ try self.init(data: data)
16150+ }
16151+
16152+ init(fromURL url: URL) throws {
16153+ try self.init(data: try Data(contentsOf: url))
16154+ }
16155+
16156+ func with(
16157+ uuid: Int? = nil
16158+ ) -> UUIDClass {
16159+ return UUIDClass(
16160+ uuid: uuid ?? self.uuid
16161+ )
16162+ }
16163+
16164+ func jsonData() throws -> Data {
16165+ return try newJSONEncoder().encode(self)
16166+ }
16167+
16168+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16169+ return String(data: try self.jsonData(), encoding: encoding)
16170+ }
16171+}
16172+
16173+// MARK: - Virtual
16174+struct Virtual: Codable {
16175+ let virtual: Int
16176+
16177+ enum CodingKeys: String, CodingKey {
16178+ case virtual = "virtual"
16179+ }
16180+}
16181+
16182+// MARK: Virtual convenience initializers and mutators
16183+
16184+extension Virtual {
16185+ init(data: Data) throws {
16186+ self = try newJSONDecoder().decode(Virtual.self, from: data)
16187+ }
16188+
16189+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16190+ guard let data = json.data(using: encoding) else {
16191+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16192+ }
16193+ try self.init(data: data)
16194+ }
16195+
16196+ init(fromURL url: URL) throws {
16197+ try self.init(data: try Data(contentsOf: url))
16198+ }
16199+
16200+ func with(
16201+ virtual: Int? = nil
16202+ ) -> Virtual {
16203+ return Virtual(
16204+ virtual: virtual ?? self.virtual
1591716205 )
1591816206 }
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+589 −265
@@ -14112,6 +14112,7 @@ extension Select {
1411214112 // MARK: - Obj5
1411314113 @objcMembers class Obj5: NSObject, Codable {
1411414114 let dummy: Int
14115+ let kSerializer: KSerializer
1411514116 let obj5Self: SelfClass
1411614117 let obj5Set: Set
1411714118 let obj5Static: Static
@@ -14126,10 +14127,13 @@ extension Select {
1412614127 let obj5Type: Obj5Type
1412714128 let obj5Typealias: Typealias
1412814129 let obj5Unowned: Unowned
14129- let obj5Var: Var
14130+ let primitiveKind: PrimitiveKind
1413014131 let purpleSelf: Obj5Self
1413114132 let purpleTrue: TrueClass
1413214133 let sendable: Sendable
14134+ let serialDescriptor: SerialDescriptor
14135+ let serialName: SerialName
14136+ let serializable: Serializable
1413314137 let serialize: Serialize
1413414138 let serializerProvider: SerializerProvider
1413514139 let short: Short
@@ -14170,15 +14174,12 @@ extension Select {
1417014174 let union: Union
1417114175 let unsafe: Unsafe
1417214176 let unsigned: Unsigned
14177+ let useSerializers: UseSerializers
1417314178 let ushort: Ushort
14174- let using: Using
14175- let utf8JSONReader: Utf8JSONReader
14176- let utf8JSONWriter: Utf8JSONWriter
14177- let uuid: UUIDClass
14178- let virtual: Virtual
1417914179
1418014180 enum CodingKeys: String, CodingKey {
1418114181 case dummy = "dummy"
14182+ case kSerializer = "KSerializer"
1418214183 case obj5Self = "Self"
1418314184 case obj5Set = "set"
1418414185 case obj5Static = "static"
@@ -14193,10 +14194,13 @@ extension Select {
1419314194 case obj5Type = "type"
1419414195 case obj5Typealias = "typealias"
1419514196 case obj5Unowned = "unowned"
14196- case obj5Var = "var"
14197+ case primitiveKind = "PrimitiveKind"
1419714198 case purpleSelf = "self"
1419814199 case purpleTrue = "true"
1419914200 case sendable = "Sendable"
14201+ case serialDescriptor = "SerialDescriptor"
14202+ case serialName = "SerialName"
14203+ case serializable = "Serializable"
1420014204 case serialize = "serialize"
1420114205 case serializerProvider = "SerializerProvider"
1420214206 case short = "short"
@@ -14237,16 +14241,13 @@ extension Select {
1423714241 case union = "union"
1423814242 case unsafe = "unsafe"
1423914243 case unsigned = "unsigned"
14244+ case useSerializers = "UseSerializers"
1424014245 case ushort = "ushort"
14241- case using = "using"
14242- case utf8JSONReader = "Utf8JsonReader"
14243- case utf8JSONWriter = "Utf8JsonWriter"
14244- case uuid = "UUID"
14245- case virtual = "virtual"
1424614246 }
1424714247
14248- init(dummy: Int, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, obj5Var: Var, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual) {
14248+ init(dummy: Int, kSerializer: KSerializer, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, ushort: Ushort) {
1424914249 self.dummy = dummy
14250+ self.kSerializer = kSerializer
1425014251 self.obj5Self = obj5Self
1425114252 self.obj5Set = obj5Set
1425214253 self.obj5Static = obj5Static
@@ -14261,10 +14262,13 @@ extension Select {
1426114262 self.obj5Type = obj5Type
1426214263 self.obj5Typealias = obj5Typealias
1426314264 self.obj5Unowned = obj5Unowned
14264- self.obj5Var = obj5Var
14265+ self.primitiveKind = primitiveKind
1426514266 self.purpleSelf = purpleSelf
1426614267 self.purpleTrue = purpleTrue
1426714268 self.sendable = sendable
14269+ self.serialDescriptor = serialDescriptor
14270+ self.serialName = serialName
14271+ self.serializable = serializable
1426814272 self.serialize = serialize
1426914273 self.serializerProvider = serializerProvider
1427014274 self.short = short
@@ -14305,12 +14309,8 @@ extension Select {
1430514309 self.union = union
1430614310 self.unsafe = unsafe
1430714311 self.unsigned = unsigned
14312+ self.useSerializers = useSerializers
1430814313 self.ushort = ushort
14309- self.using = using
14310- self.utf8JSONReader = utf8JSONReader
14311- self.utf8JSONWriter = utf8JSONWriter
14312- self.uuid = uuid
14313- self.virtual = virtual
1431414314 }
1431514315 }
1431614316
@@ -14319,7 +14319,7 @@ extension Select {
1431914319 extension Obj5 {
1432014320 convenience init(data: Data) throws {
1432114321 let me = try newJSONDecoder().decode(Obj5.self, from: data)
14322- self.init(dummy: me.dummy, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, obj5Var: me.obj5Var, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual)
14322+ self.init(dummy: me.dummy, kSerializer: me.kSerializer, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, ushort: me.ushort)
1432314323 }
1432414324
1432514325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14335,6 +14335,7 @@ extension Obj5 {
1433514335
1433614336 func with(
1433714337 dummy: Int? = nil,
14338+ kSerializer: KSerializer? = nil,
1433814339 obj5Self: SelfClass? = nil,
1433914340 obj5Set: Set? = nil,
1434014341 obj5Static: Static? = nil,
@@ -14349,10 +14350,13 @@ extension Obj5 {
1434914350 obj5Type: Obj5Type? = nil,
1435014351 obj5Typealias: Typealias? = nil,
1435114352 obj5Unowned: Unowned? = nil,
14352- obj5Var: Var? = nil,
14353+ primitiveKind: PrimitiveKind? = nil,
1435314354 purpleSelf: Obj5Self? = nil,
1435414355 purpleTrue: TrueClass? = nil,
1435514356 sendable: Sendable? = nil,
14357+ serialDescriptor: SerialDescriptor? = nil,
14358+ serialName: SerialName? = nil,
14359+ serializable: Serializable? = nil,
1435614360 serialize: Serialize? = nil,
1435714361 serializerProvider: SerializerProvider? = nil,
1435814362 short: Short? = nil,
@@ -14393,15 +14397,12 @@ extension Obj5 {
1439314397 union: Union? = nil,
1439414398 unsafe: Unsafe? = nil,
1439514399 unsigned: Unsigned? = nil,
14396- ushort: Ushort? = nil,
14397- using: Using? = nil,
14398- utf8JSONReader: Utf8JSONReader? = nil,
14399- utf8JSONWriter: Utf8JSONWriter? = nil,
14400- uuid: UUIDClass? = nil,
14401- virtual: Virtual? = nil
14400+ useSerializers: UseSerializers? = nil,
14401+ ushort: Ushort? = nil
1440214402 ) -> Obj5 {
1440314403 return Obj5(
1440414404 dummy: dummy ?? self.dummy,
14405+ kSerializer: kSerializer ?? self.kSerializer,
1440514406 obj5Self: obj5Self ?? self.obj5Self,
1440614407 obj5Set: obj5Set ?? self.obj5Set,
1440714408 obj5Static: obj5Static ?? self.obj5Static,
@@ -14416,10 +14417,13 @@ extension Obj5 {
1441614417 obj5Type: obj5Type ?? self.obj5Type,
1441714418 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1441814419 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14419- obj5Var: obj5Var ?? self.obj5Var,
14420+ primitiveKind: primitiveKind ?? self.primitiveKind,
1442014421 purpleSelf: purpleSelf ?? self.purpleSelf,
1442114422 purpleTrue: purpleTrue ?? self.purpleTrue,
1442214423 sendable: sendable ?? self.sendable,
14424+ serialDescriptor: serialDescriptor ?? self.serialDescriptor,
14425+ serialName: serialName ?? self.serialName,
14426+ serializable: serializable ?? self.serializable,
1442314427 serialize: serialize ?? self.serialize,
1442414428 serializerProvider: serializerProvider ?? self.serializerProvider,
1442514429 short: short ?? self.short,
@@ -14460,12 +14464,57 @@ extension Obj5 {
1446014464 union: union ?? self.union,
1446114465 unsafe: unsafe ?? self.unsafe,
1446214466 unsigned: unsigned ?? self.unsigned,
14463- ushort: ushort ?? self.ushort,
14464- using: using ?? self.using,
14465- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
14466- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14467- uuid: uuid ?? self.uuid,
14468- virtual: virtual ?? self.virtual
14467+ useSerializers: useSerializers ?? self.useSerializers,
14468+ ushort: ushort ?? self.ushort
14469+ )
14470+ }
14471+
14472+ func jsonData() throws -> Data {
14473+ return try newJSONEncoder().encode(self)
14474+ }
14475+
14476+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14477+ return String(data: try self.jsonData(), encoding: encoding)
14478+ }
14479+}
14480+
14481+// MARK: - KSerializer
14482+@objcMembers class KSerializer: NSObject, Codable {
14483+ let kSerializer: Int
14484+
14485+ enum CodingKeys: String, CodingKey {
14486+ case kSerializer = "KSerializer"
14487+ }
14488+
14489+ init(kSerializer: Int) {
14490+ self.kSerializer = kSerializer
14491+ }
14492+}
14493+
14494+// MARK: KSerializer convenience initializers and mutators
14495+
14496+extension KSerializer {
14497+ convenience init(data: Data) throws {
14498+ let me = try newJSONDecoder().decode(KSerializer.self, from: data)
14499+ self.init(kSerializer: me.kSerializer)
14500+ }
14501+
14502+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14503+ guard let data = json.data(using: encoding) else {
14504+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14505+ }
14506+ try self.init(data: data)
14507+ }
14508+
14509+ convenience init(fromURL url: URL) throws {
14510+ try self.init(data: try Data(contentsOf: url))
14511+ }
14512+
14513+ func with(
14514+ kSerializer: Int? = nil
14515+ ) -> KSerializer {
14516+ return KSerializer(
14517+ kSerializer: kSerializer ?? self.kSerializer
1446914518 )
1447014519 }
1447114520
@@ -15164,25 +15213,25 @@ extension Unowned {
1516415213 }
1516515214 }
1516615215
15167-// MARK: - Var
15168-@objcMembers class Var: NSObject, Codable {
15169- let varVar: Int
15216+// MARK: - PrimitiveKind
15217+@objcMembers class PrimitiveKind: NSObject, Codable {
15218+ let primitiveKind: Int
1517015219
1517115220 enum CodingKeys: String, CodingKey {
15172- case varVar = "var"
15221+ case primitiveKind = "PrimitiveKind"
1517315222 }
1517415223
15175- init(varVar: Int) {
15176- self.varVar = varVar
15224+ init(primitiveKind: Int) {
15225+ self.primitiveKind = primitiveKind
1517715226 }
1517815227 }
1517915228
15180-// MARK: Var convenience initializers and mutators
15229+// MARK: PrimitiveKind convenience initializers and mutators
1518115230
15182-extension Var {
15231+extension PrimitiveKind {
1518315232 convenience init(data: Data) throws {
15184- let me = try newJSONDecoder().decode(Var.self, from: data)
15185- self.init(varVar: me.varVar)
15233+ let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15234+ self.init(primitiveKind: me.primitiveKind)
1518615235 }
1518715236
1518815237 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15197,10 +15246,10 @@ extension Var {
1519715246 }
1519815247
1519915248 func with(
15200- varVar: Int? = nil
15201- ) -> Var {
15202- return Var(
15203- varVar: varVar ?? self.varVar
15249+ primitiveKind: Int? = nil
15250+ ) -> PrimitiveKind {
15251+ return PrimitiveKind(
15252+ primitiveKind: primitiveKind ?? self.primitiveKind
1520415253 )
1520515254 }
1520615255
@@ -15360,6 +15409,153 @@ extension Sendable {
1536015409 }
1536115410 }
1536215411
15412+// MARK: - SerialDescriptor
15413+@objcMembers class SerialDescriptor: NSObject, Codable {
15414+ let serialDescriptor: Int
15415+
15416+ enum CodingKeys: String, CodingKey {
15417+ case serialDescriptor = "SerialDescriptor"
15418+ }
15419+
15420+ init(serialDescriptor: Int) {
15421+ self.serialDescriptor = serialDescriptor
15422+ }
15423+}
15424+
15425+// MARK: SerialDescriptor convenience initializers and mutators
15426+
15427+extension SerialDescriptor {
15428+ convenience init(data: Data) throws {
15429+ let me = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15430+ self.init(serialDescriptor: me.serialDescriptor)
15431+ }
15432+
15433+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15434+ guard let data = json.data(using: encoding) else {
15435+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15436+ }
15437+ try self.init(data: data)
15438+ }
15439+
15440+ convenience init(fromURL url: URL) throws {
15441+ try self.init(data: try Data(contentsOf: url))
15442+ }
15443+
15444+ func with(
15445+ serialDescriptor: Int? = nil
15446+ ) -> SerialDescriptor {
15447+ return SerialDescriptor(
15448+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
15449+ )
15450+ }
15451+
15452+ func jsonData() throws -> Data {
15453+ return try newJSONEncoder().encode(self)
15454+ }
15455+
15456+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15457+ return String(data: try self.jsonData(), encoding: encoding)
15458+ }
15459+}
15460+
15461+// MARK: - SerialName
15462+@objcMembers class SerialName: NSObject, Codable {
15463+ let serialName: Int
15464+
15465+ enum CodingKeys: String, CodingKey {
15466+ case serialName = "SerialName"
15467+ }
15468+
15469+ init(serialName: Int) {
15470+ self.serialName = serialName
15471+ }
15472+}
15473+
15474+// MARK: SerialName convenience initializers and mutators
15475+
15476+extension SerialName {
15477+ convenience init(data: Data) throws {
15478+ let me = try newJSONDecoder().decode(SerialName.self, from: data)
15479+ self.init(serialName: me.serialName)
15480+ }
15481+
15482+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15483+ guard let data = json.data(using: encoding) else {
15484+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15485+ }
15486+ try self.init(data: data)
15487+ }
15488+
15489+ convenience init(fromURL url: URL) throws {
15490+ try self.init(data: try Data(contentsOf: url))
15491+ }
15492+
15493+ func with(
15494+ serialName: Int? = nil
15495+ ) -> SerialName {
15496+ return SerialName(
15497+ serialName: serialName ?? self.serialName
15498+ )
15499+ }
15500+
15501+ func jsonData() throws -> Data {
15502+ return try newJSONEncoder().encode(self)
15503+ }
15504+
15505+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15506+ return String(data: try self.jsonData(), encoding: encoding)
15507+ }
15508+}
15509+
15510+// MARK: - Serializable
15511+@objcMembers class Serializable: NSObject, Codable {
15512+ let serializable: Int
15513+
15514+ enum CodingKeys: String, CodingKey {
15515+ case serializable = "Serializable"
15516+ }
15517+
15518+ init(serializable: Int) {
15519+ self.serializable = serializable
15520+ }
15521+}
15522+
15523+// MARK: Serializable convenience initializers and mutators
15524+
15525+extension Serializable {
15526+ convenience init(data: Data) throws {
15527+ let me = try newJSONDecoder().decode(Serializable.self, from: data)
15528+ self.init(serializable: me.serializable)
15529+ }
15530+
15531+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15532+ guard let data = json.data(using: encoding) else {
15533+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15534+ }
15535+ try self.init(data: data)
15536+ }
15537+
15538+ convenience init(fromURL url: URL) throws {
15539+ try self.init(data: try Data(contentsOf: url))
15540+ }
15541+
15542+ func with(
15543+ serializable: Int? = nil
15544+ ) -> Serializable {
15545+ return Serializable(
15546+ serializable: serializable ?? self.serializable
15547+ )
15548+ }
15549+
15550+ func jsonData() throws -> Data {
15551+ return try newJSONEncoder().encode(self)
15552+ }
15553+
15554+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15555+ return String(data: try self.jsonData(), encoding: encoding)
15556+ }
15557+}
15558+
1536315559 // MARK: - Serialize
1536415560 @objcMembers class Serialize: NSObject, Codable {
1536515561 let serialize: Int
@@ -17320,25 +17516,25 @@ extension Unsigned {
1732017516 }
1732117517 }
1732217518
17323-// MARK: - Ushort
17324-@objcMembers class Ushort: NSObject, Codable {
17325- let ushort: Int
17519+// MARK: - UseSerializers
17520+@objcMembers class UseSerializers: NSObject, Codable {
17521+ let useSerializers: Int
1732617522
1732717523 enum CodingKeys: String, CodingKey {
17328- case ushort = "ushort"
17524+ case useSerializers = "UseSerializers"
1732917525 }
1733017526
17331- init(ushort: Int) {
17332- self.ushort = ushort
17527+ init(useSerializers: Int) {
17528+ self.useSerializers = useSerializers
1733317529 }
1733417530 }
1733517531
17336-// MARK: Ushort convenience initializers and mutators
17532+// MARK: UseSerializers convenience initializers and mutators
1733717533
17338-extension Ushort {
17534+extension UseSerializers {
1733917535 convenience init(data: Data) throws {
17340- let me = try newJSONDecoder().decode(Ushort.self, from: data)
17341- self.init(ushort: me.ushort)
17536+ let me = try newJSONDecoder().decode(UseSerializers.self, from: data)
17537+ self.init(useSerializers: me.useSerializers)
1734217538 }
1734317539
1734417540 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17353,10 +17549,10 @@ extension Ushort {
1735317549 }
1735417550
1735517551 func with(
17356- ushort: Int? = nil
17357- ) -> Ushort {
17358- return Ushort(
17359- ushort: ushort ?? self.ushort
17552+ useSerializers: Int? = nil
17553+ ) -> UseSerializers {
17554+ return UseSerializers(
17555+ useSerializers: useSerializers ?? self.useSerializers
1736017556 )
1736117557 }
1736217558
@@ -17369,25 +17565,25 @@ extension Ushort {
1736917565 }
1737017566 }
1737117567
17372-// MARK: - Using
17373-@objcMembers class Using: NSObject, Codable {
17374- let using: Int
17568+// MARK: - Ushort
17569+@objcMembers class Ushort: NSObject, Codable {
17570+ let ushort: Int
1737517571
1737617572 enum CodingKeys: String, CodingKey {
17377- case using = "using"
17573+ case ushort = "ushort"
1737817574 }
1737917575
17380- init(using: Int) {
17381- self.using = using
17576+ init(ushort: Int) {
17577+ self.ushort = ushort
1738217578 }
1738317579 }
1738417580
17385-// MARK: Using convenience initializers and mutators
17581+// MARK: Ushort convenience initializers and mutators
1738617582
17387-extension Using {
17583+extension Ushort {
1738817584 convenience init(data: Data) throws {
17389- let me = try newJSONDecoder().decode(Using.self, from: data)
17390- self.init(using: me.using)
17585+ let me = try newJSONDecoder().decode(Ushort.self, from: data)
17586+ self.init(ushort: me.ushort)
1739117587 }
1739217588
1739317589 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17402,10 +17598,10 @@ extension Using {
1740217598 }
1740317599
1740417600 func with(
17405- using: Int? = nil
17406- ) -> Using {
17407- return Using(
17408- using: using ?? self.using
17601+ ushort: Int? = nil
17602+ ) -> Ushort {
17603+ return Ushort(
17604+ ushort: ushort ?? self.ushort
1740917605 )
1741017606 }
1741117607
@@ -17418,25 +17614,79 @@ extension Using {
1741817614 }
1741917615 }
1742017616
17421-// MARK: - Utf8JSONReader
17422-@objcMembers class Utf8JSONReader: NSObject, Codable {
17423- let utf8JSONReader: Int
17617+// MARK: - Obj6
17618+@objcMembers class Obj6: NSObject, Codable {
17619+ let dummy: Int
17620+ let obj6Var: Var
17621+ let obj6Weak: Weak
17622+ let obj6Where: Where
17623+ let obj6While: While
17624+ let obj6WillSet: WillSet
17625+ let using: Using
17626+ let utf8JSONReader: Utf8JSONReader
17627+ let utf8JSONWriter: Utf8JSONWriter
17628+ let uuid: UUIDClass
17629+ let virtual: Virtual
17630+ let void: Void
17631+ let volatile: Volatile
17632+ let wcharT: WcharT
17633+ let with: With
17634+ let xor: Xor
17635+ let xorEq: XorEq
17636+ let yes: Yes
17637+ let yield: Yield
1742417638
1742517639 enum CodingKeys: String, CodingKey {
17640+ case dummy = "dummy"
17641+ case obj6Var = "var"
17642+ case obj6Weak = "weak"
17643+ case obj6Where = "where"
17644+ case obj6While = "while"
17645+ case obj6WillSet = "willSet"
17646+ case using = "using"
1742617647 case utf8JSONReader = "Utf8JsonReader"
17427- }
17428-
17429- init(utf8JSONReader: Int) {
17430- self.utf8JSONReader = utf8JSONReader
17431- }
17432-}
17648+ case utf8JSONWriter = "Utf8JsonWriter"
17649+ case uuid = "UUID"
17650+ case virtual = "virtual"
17651+ case void = "void"
17652+ case volatile = "volatile"
17653+ case wcharT = "wchar_t"
17654+ case with = "with"
17655+ case xor = "xor"
17656+ case xorEq = "xor_eq"
17657+ case yes = "YES"
17658+ case yield = "yield"
17659+ }
1743317660
17434-// MARK: Utf8JSONReader convenience initializers and mutators
17661+ init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17662+ self.dummy = dummy
17663+ self.obj6Var = obj6Var
17664+ self.obj6Weak = obj6Weak
17665+ self.obj6Where = obj6Where
17666+ self.obj6While = obj6While
17667+ self.obj6WillSet = obj6WillSet
17668+ self.using = using
17669+ self.utf8JSONReader = utf8JSONReader
17670+ self.utf8JSONWriter = utf8JSONWriter
17671+ self.uuid = uuid
17672+ self.virtual = virtual
17673+ self.void = void
17674+ self.volatile = volatile
17675+ self.wcharT = wcharT
17676+ self.with = with
17677+ self.xor = xor
17678+ self.xorEq = xorEq
17679+ self.yes = yes
17680+ self.yield = yield
17681+ }
17682+}
1743517683
17436-extension Utf8JSONReader {
17684+// MARK: Obj6 convenience initializers and mutators
17685+
17686+extension Obj6 {
1743717687 convenience init(data: Data) throws {
17438- let me = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
17439- self.init(utf8JSONReader: me.utf8JSONReader)
17688+ let me = try newJSONDecoder().decode(Obj6.self, from: data)
17689+ self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
1744017690 }
1744117691
1744217692 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17451,10 +17701,46 @@ extension Utf8JSONReader {
1745117701 }
1745217702
1745317703 func with(
17454- utf8JSONReader: Int? = nil
17455- ) -> Utf8JSONReader {
17456- return Utf8JSONReader(
17457- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
17704+ dummy: Int? = nil,
17705+ obj6Var: Var? = nil,
17706+ obj6Weak: Weak? = nil,
17707+ obj6Where: Where? = nil,
17708+ obj6While: While? = nil,
17709+ obj6WillSet: WillSet? = nil,
17710+ using: Using? = nil,
17711+ utf8JSONReader: Utf8JSONReader? = nil,
17712+ utf8JSONWriter: Utf8JSONWriter? = nil,
17713+ uuid: UUIDClass? = nil,
17714+ virtual: Virtual? = nil,
17715+ void: Void? = nil,
17716+ volatile: Volatile? = nil,
17717+ wcharT: WcharT? = nil,
17718+ with: With? = nil,
17719+ xor: Xor? = nil,
17720+ xorEq: XorEq? = nil,
17721+ yes: Yes? = nil,
17722+ yield: Yield? = nil
17723+ ) -> Obj6 {
17724+ return Obj6(
17725+ dummy: dummy ?? self.dummy,
17726+ obj6Var: obj6Var ?? self.obj6Var,
17727+ obj6Weak: obj6Weak ?? self.obj6Weak,
17728+ obj6Where: obj6Where ?? self.obj6Where,
17729+ obj6While: obj6While ?? self.obj6While,
17730+ obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17731+ using: using ?? self.using,
17732+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
17733+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
17734+ uuid: uuid ?? self.uuid,
17735+ virtual: virtual ?? self.virtual,
17736+ void: void ?? self.void,
17737+ volatile: volatile ?? self.volatile,
17738+ wcharT: wcharT ?? self.wcharT,
17739+ with: with ?? self.with,
17740+ xor: xor ?? self.xor,
17741+ xorEq: xorEq ?? self.xorEq,
17742+ yes: yes ?? self.yes,
17743+ yield: yield ?? self.yield
1745817744 )
1745917745 }
1746017746
@@ -17467,25 +17753,25 @@ extension Utf8JSONReader {
1746717753 }
1746817754 }
1746917755
17470-// MARK: - Utf8JSONWriter
17471-@objcMembers class Utf8JSONWriter: NSObject, Codable {
17472- let utf8JSONWriter: Int
17756+// MARK: - Var
17757+@objcMembers class Var: NSObject, Codable {
17758+ let varVar: Int
1747317759
1747417760 enum CodingKeys: String, CodingKey {
17475- case utf8JSONWriter = "Utf8JsonWriter"
17761+ case varVar = "var"
1747617762 }
1747717763
17478- init(utf8JSONWriter: Int) {
17479- self.utf8JSONWriter = utf8JSONWriter
17764+ init(varVar: Int) {
17765+ self.varVar = varVar
1748017766 }
1748117767 }
1748217768
17483-// MARK: Utf8JSONWriter convenience initializers and mutators
17769+// MARK: Var convenience initializers and mutators
1748417770
17485-extension Utf8JSONWriter {
17771+extension Var {
1748617772 convenience init(data: Data) throws {
17487- let me = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
17488- self.init(utf8JSONWriter: me.utf8JSONWriter)
17773+ let me = try newJSONDecoder().decode(Var.self, from: data)
17774+ self.init(varVar: me.varVar)
1748917775 }
1749017776
1749117777 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17500,10 +17786,10 @@ extension Utf8JSONWriter {
1750017786 }
1750117787
1750217788 func with(
17503- utf8JSONWriter: Int? = nil
17504- ) -> Utf8JSONWriter {
17505- return Utf8JSONWriter(
17506- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
17789+ varVar: Int? = nil
17790+ ) -> Var {
17791+ return Var(
17792+ varVar: varVar ?? self.varVar
1750717793 )
1750817794 }
1750917795
@@ -17516,25 +17802,25 @@ extension Utf8JSONWriter {
1751617802 }
1751717803 }
1751817804
17519-// MARK: - UUIDClass
17520-@objcMembers class UUIDClass: NSObject, Codable {
17521- let uuid: Int
17805+// MARK: - Weak
17806+@objcMembers class Weak: NSObject, Codable {
17807+ let weakWeak: Int
1752217808
1752317809 enum CodingKeys: String, CodingKey {
17524- case uuid = "UUID"
17810+ case weakWeak = "weak"
1752517811 }
1752617812
17527- init(uuid: Int) {
17528- self.uuid = uuid
17813+ init(weakWeak: Int) {
17814+ self.weakWeak = weakWeak
1752917815 }
1753017816 }
1753117817
17532-// MARK: UUIDClass convenience initializers and mutators
17818+// MARK: Weak convenience initializers and mutators
1753317819
17534-extension UUIDClass {
17820+extension Weak {
1753517821 convenience init(data: Data) throws {
17536- let me = try newJSONDecoder().decode(UUIDClass.self, from: data)
17537- self.init(uuid: me.uuid)
17822+ let me = try newJSONDecoder().decode(Weak.self, from: data)
17823+ self.init(weakWeak: me.weakWeak)
1753817824 }
1753917825
1754017826 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17549,10 +17835,10 @@ extension UUIDClass {
1754917835 }
1755017836
1755117837 func with(
17552- uuid: Int? = nil
17553- ) -> UUIDClass {
17554- return UUIDClass(
17555- uuid: uuid ?? self.uuid
17838+ weakWeak: Int? = nil
17839+ ) -> Weak {
17840+ return Weak(
17841+ weakWeak: weakWeak ?? self.weakWeak
1755617842 )
1755717843 }
1755817844
@@ -17565,25 +17851,25 @@ extension UUIDClass {
1756517851 }
1756617852 }
1756717853
17568-// MARK: - Virtual
17569-@objcMembers class Virtual: NSObject, Codable {
17570- let virtual: Int
17854+// MARK: - Where
17855+@objcMembers class Where: NSObject, Codable {
17856+ let whereWhere: Int
1757117857
1757217858 enum CodingKeys: String, CodingKey {
17573- case virtual = "virtual"
17859+ case whereWhere = "where"
1757417860 }
1757517861
17576- init(virtual: Int) {
17577- self.virtual = virtual
17862+ init(whereWhere: Int) {
17863+ self.whereWhere = whereWhere
1757817864 }
1757917865 }
1758017866
17581-// MARK: Virtual convenience initializers and mutators
17867+// MARK: Where convenience initializers and mutators
1758217868
17583-extension Virtual {
17869+extension Where {
1758417870 convenience init(data: Data) throws {
17585- let me = try newJSONDecoder().decode(Virtual.self, from: data)
17586- self.init(virtual: me.virtual)
17871+ let me = try newJSONDecoder().decode(Where.self, from: data)
17872+ self.init(whereWhere: me.whereWhere)
1758717873 }
1758817874
1758917875 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17598,10 +17884,10 @@ extension Virtual {
1759817884 }
1759917885
1760017886 func with(
17601- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
17887+ whereWhere: Int? = nil
17888+ ) -> Where {
17889+ return Where(
17890+ whereWhere: whereWhere ?? self.whereWhere
1760517891 )
1760617892 }
1760717893
@@ -17614,61 +17900,25 @@ extension Virtual {
1761417900 }
1761517901 }
1761617902
17617-// MARK: - Obj6
17618-@objcMembers class Obj6: NSObject, Codable {
17619- let dummy: Int
17620- let obj6Weak: Weak
17621- let obj6Where: Where
17622- let obj6While: While
17623- let obj6WillSet: WillSet
17624- let void: Void
17625- let volatile: Volatile
17626- let wcharT: WcharT
17627- let with: With
17628- let xor: Xor
17629- let xorEq: XorEq
17630- let yes: Yes
17631- let yield: Yield
17903+// MARK: - While
17904+@objcMembers class While: NSObject, Codable {
17905+ let whileWhile: Int
1763217906
1763317907 enum CodingKeys: String, CodingKey {
17634- case dummy = "dummy"
17635- case obj6Weak = "weak"
17636- case obj6Where = "where"
17637- case obj6While = "while"
17638- case obj6WillSet = "willSet"
17639- case void = "void"
17640- case volatile = "volatile"
17641- case wcharT = "wchar_t"
17642- case with = "with"
17643- case xor = "xor"
17644- case xorEq = "xor_eq"
17645- case yes = "YES"
17646- case yield = "yield"
17908+ case whileWhile = "while"
1764717909 }
1764817910
17649- init(dummy: Int, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17650- self.dummy = dummy
17651- self.obj6Weak = obj6Weak
17652- self.obj6Where = obj6Where
17653- self.obj6While = obj6While
17654- self.obj6WillSet = obj6WillSet
17655- self.void = void
17656- self.volatile = volatile
17657- self.wcharT = wcharT
17658- self.with = with
17659- self.xor = xor
17660- self.xorEq = xorEq
17661- self.yes = yes
17662- self.yield = yield
17911+ init(whileWhile: Int) {
17912+ self.whileWhile = whileWhile
1766317913 }
1766417914 }
1766517915
17666-// MARK: Obj6 convenience initializers and mutators
17916+// MARK: While convenience initializers and mutators
1766717917
17668-extension Obj6 {
17918+extension While {
1766917919 convenience init(data: Data) throws {
17670- let me = try newJSONDecoder().decode(Obj6.self, from: data)
17671- self.init(dummy: me.dummy, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
17920+ let me = try newJSONDecoder().decode(While.self, from: data)
17921+ self.init(whileWhile: me.whileWhile)
1767217922 }
1767317923
1767417924 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17683,34 +17933,10 @@ extension Obj6 {
1768317933 }
1768417934
1768517935 func with(
17686- dummy: Int? = nil,
17687- obj6Weak: Weak? = nil,
17688- obj6Where: Where? = nil,
17689- obj6While: While? = nil,
17690- obj6WillSet: WillSet? = nil,
17691- void: Void? = nil,
17692- volatile: Volatile? = nil,
17693- wcharT: WcharT? = nil,
17694- with: With? = nil,
17695- xor: Xor? = nil,
17696- xorEq: XorEq? = nil,
17697- yes: Yes? = nil,
17698- yield: Yield? = nil
17699- ) -> Obj6 {
17700- return Obj6(
17701- dummy: dummy ?? self.dummy,
17702- obj6Weak: obj6Weak ?? self.obj6Weak,
17703- obj6Where: obj6Where ?? self.obj6Where,
17704- obj6While: obj6While ?? self.obj6While,
17705- obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17706- void: void ?? self.void,
17707- volatile: volatile ?? self.volatile,
17708- wcharT: wcharT ?? self.wcharT,
17709- with: with ?? self.with,
17710- xor: xor ?? self.xor,
17711- xorEq: xorEq ?? self.xorEq,
17712- yes: yes ?? self.yes,
17713- yield: yield ?? self.yield
17936+ whileWhile: Int? = nil
17937+ ) -> While {
17938+ return While(
17939+ whileWhile: whileWhile ?? self.whileWhile
1771417940 )
1771517941 }
1771617942
@@ -17723,25 +17949,25 @@ extension Obj6 {
1772317949 }
1772417950 }
1772517951
17726-// MARK: - Weak
17727-@objcMembers class Weak: NSObject, Codable {
17728- let weakWeak: Int
17952+// MARK: - WillSet
17953+@objcMembers class WillSet: NSObject, Codable {
17954+ let willSetWillSet: Int
1772917955
1773017956 enum CodingKeys: String, CodingKey {
17731- case weakWeak = "weak"
17957+ case willSetWillSet = "willSet"
1773217958 }
1773317959
17734- init(weakWeak: Int) {
17735- self.weakWeak = weakWeak
17960+ init(willSetWillSet: Int) {
17961+ self.willSetWillSet = willSetWillSet
1773617962 }
1773717963 }
1773817964
17739-// MARK: Weak convenience initializers and mutators
17965+// MARK: WillSet convenience initializers and mutators
1774017966
17741-extension Weak {
17967+extension WillSet {
1774217968 convenience init(data: Data) throws {
17743- let me = try newJSONDecoder().decode(Weak.self, from: data)
17744- self.init(weakWeak: me.weakWeak)
17969+ let me = try newJSONDecoder().decode(WillSet.self, from: data)
17970+ self.init(willSetWillSet: me.willSetWillSet)
1774517971 }
1774617972
1774717973 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17756,10 +17982,10 @@ extension Weak {
1775617982 }
1775717983
1775817984 func with(
17759- weakWeak: Int? = nil
17760- ) -> Weak {
17761- return Weak(
17762- weakWeak: weakWeak ?? self.weakWeak
17985+ willSetWillSet: Int? = nil
17986+ ) -> WillSet {
17987+ return WillSet(
17988+ willSetWillSet: willSetWillSet ?? self.willSetWillSet
1776317989 )
1776417990 }
1776517991
@@ -17772,25 +17998,25 @@ extension Weak {
1777217998 }
1777317999 }
1777418000
17775-// MARK: - Where
17776-@objcMembers class Where: NSObject, Codable {
17777- let whereWhere: Int
18001+// MARK: - Using
18002+@objcMembers class Using: NSObject, Codable {
18003+ let using: Int
1777818004
1777918005 enum CodingKeys: String, CodingKey {
17780- case whereWhere = "where"
18006+ case using = "using"
1778118007 }
1778218008
17783- init(whereWhere: Int) {
17784- self.whereWhere = whereWhere
18009+ init(using: Int) {
18010+ self.using = using
1778518011 }
1778618012 }
1778718013
17788-// MARK: Where convenience initializers and mutators
18014+// MARK: Using convenience initializers and mutators
1778918015
17790-extension Where {
18016+extension Using {
1779118017 convenience init(data: Data) throws {
17792- let me = try newJSONDecoder().decode(Where.self, from: data)
17793- self.init(whereWhere: me.whereWhere)
18018+ let me = try newJSONDecoder().decode(Using.self, from: data)
18019+ self.init(using: me.using)
1779418020 }
1779518021
1779618022 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17805,10 +18031,10 @@ extension Where {
1780518031 }
1780618032
1780718033 func with(
17808- whereWhere: Int? = nil
17809- ) -> Where {
17810- return Where(
17811- whereWhere: whereWhere ?? self.whereWhere
18034+ using: Int? = nil
18035+ ) -> Using {
18036+ return Using(
18037+ using: using ?? self.using
1781218038 )
1781318039 }
1781418040
@@ -17821,25 +18047,25 @@ extension Where {
1782118047 }
1782218048 }
1782318049
17824-// MARK: - While
17825-@objcMembers class While: NSObject, Codable {
17826- let whileWhile: Int
18050+// MARK: - Utf8JSONReader
18051+@objcMembers class Utf8JSONReader: NSObject, Codable {
18052+ let utf8JSONReader: Int
1782718053
1782818054 enum CodingKeys: String, CodingKey {
17829- case whileWhile = "while"
18055+ case utf8JSONReader = "Utf8JsonReader"
1783018056 }
1783118057
17832- init(whileWhile: Int) {
17833- self.whileWhile = whileWhile
18058+ init(utf8JSONReader: Int) {
18059+ self.utf8JSONReader = utf8JSONReader
1783418060 }
1783518061 }
1783618062
17837-// MARK: While convenience initializers and mutators
18063+// MARK: Utf8JSONReader convenience initializers and mutators
1783818064
17839-extension While {
18065+extension Utf8JSONReader {
1784018066 convenience init(data: Data) throws {
17841- let me = try newJSONDecoder().decode(While.self, from: data)
17842- self.init(whileWhile: me.whileWhile)
18067+ let me = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
18068+ self.init(utf8JSONReader: me.utf8JSONReader)
1784318069 }
1784418070
1784518071 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17854,10 +18080,10 @@ extension While {
1785418080 }
1785518081
1785618082 func with(
17857- whileWhile: Int? = nil
17858- ) -> While {
17859- return While(
17860- whileWhile: whileWhile ?? self.whileWhile
18083+ utf8JSONReader: Int? = nil
18084+ ) -> Utf8JSONReader {
18085+ return Utf8JSONReader(
18086+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
1786118087 )
1786218088 }
1786318089
@@ -17870,25 +18096,25 @@ extension While {
1787018096 }
1787118097 }
1787218098
17873-// MARK: - WillSet
17874-@objcMembers class WillSet: NSObject, Codable {
17875- let willSetWillSet: Int
18099+// MARK: - Utf8JSONWriter
18100+@objcMembers class Utf8JSONWriter: NSObject, Codable {
18101+ let utf8JSONWriter: Int
1787618102
1787718103 enum CodingKeys: String, CodingKey {
17878- case willSetWillSet = "willSet"
18104+ case utf8JSONWriter = "Utf8JsonWriter"
1787918105 }
1788018106
17881- init(willSetWillSet: Int) {
17882- self.willSetWillSet = willSetWillSet
18107+ init(utf8JSONWriter: Int) {
18108+ self.utf8JSONWriter = utf8JSONWriter
1788318109 }
1788418110 }
1788518111
17886-// MARK: WillSet convenience initializers and mutators
18112+// MARK: Utf8JSONWriter convenience initializers and mutators
1788718113
17888-extension WillSet {
18114+extension Utf8JSONWriter {
1788918115 convenience init(data: Data) throws {
17890- let me = try newJSONDecoder().decode(WillSet.self, from: data)
17891- self.init(willSetWillSet: me.willSetWillSet)
18116+ let me = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
18117+ self.init(utf8JSONWriter: me.utf8JSONWriter)
1789218118 }
1789318119
1789418120 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17903,10 +18129,108 @@ extension WillSet {
1790318129 }
1790418130
1790518131 func with(
17906- willSetWillSet: Int? = nil
17907- ) -> WillSet {
17908- return WillSet(
17909- willSetWillSet: willSetWillSet ?? self.willSetWillSet
18132+ utf8JSONWriter: Int? = nil
18133+ ) -> Utf8JSONWriter {
18134+ return Utf8JSONWriter(
18135+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
18136+ )
18137+ }
18138+
18139+ func jsonData() throws -> Data {
18140+ return try newJSONEncoder().encode(self)
18141+ }
18142+
18143+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18144+ return String(data: try self.jsonData(), encoding: encoding)
18145+ }
18146+}
18147+
18148+// MARK: - UUIDClass
18149+@objcMembers class UUIDClass: NSObject, Codable {
18150+ let uuid: Int
18151+
18152+ enum CodingKeys: String, CodingKey {
18153+ case uuid = "UUID"
18154+ }
18155+
18156+ init(uuid: Int) {
18157+ self.uuid = uuid
18158+ }
18159+}
18160+
18161+// MARK: UUIDClass convenience initializers and mutators
18162+
18163+extension UUIDClass {
18164+ convenience init(data: Data) throws {
18165+ let me = try newJSONDecoder().decode(UUIDClass.self, from: data)
18166+ self.init(uuid: me.uuid)
18167+ }
18168+
18169+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18170+ guard let data = json.data(using: encoding) else {
18171+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18172+ }
18173+ try self.init(data: data)
18174+ }
18175+
18176+ convenience init(fromURL url: URL) throws {
18177+ try self.init(data: try Data(contentsOf: url))
18178+ }
18179+
18180+ func with(
18181+ uuid: Int? = nil
18182+ ) -> UUIDClass {
18183+ return UUIDClass(
18184+ uuid: uuid ?? self.uuid
18185+ )
18186+ }
18187+
18188+ func jsonData() throws -> Data {
18189+ return try newJSONEncoder().encode(self)
18190+ }
18191+
18192+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18193+ return String(data: try self.jsonData(), encoding: encoding)
18194+ }
18195+}
18196+
18197+// MARK: - Virtual
18198+@objcMembers class Virtual: NSObject, Codable {
18199+ let virtual: Int
18200+
18201+ enum CodingKeys: String, CodingKey {
18202+ case virtual = "virtual"
18203+ }
18204+
18205+ init(virtual: Int) {
18206+ self.virtual = virtual
18207+ }
18208+}
18209+
18210+// MARK: Virtual convenience initializers and mutators
18211+
18212+extension Virtual {
18213+ convenience init(data: Data) throws {
18214+ let me = try newJSONDecoder().decode(Virtual.self, from: data)
18215+ self.init(virtual: me.virtual)
18216+ }
18217+
18218+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18219+ guard let data = json.data(using: encoding) else {
18220+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18221+ }
18222+ try self.init(data: data)
18223+ }
18224+
18225+ convenience init(fromURL url: URL) throws {
18226+ try self.init(data: try Data(contentsOf: url))
18227+ }
18228+
18229+ func with(
18230+ virtual: Int? = nil
18231+ ) -> Virtual {
18232+ return Virtual(
18233+ virtual: virtual ?? self.virtual
1791018234 )
1791118235 }
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+534 −210
@@ -14117,6 +14117,7 @@ extension Select {
1411714117 // MARK: - Obj5
1411814118 struct Obj5: Codable, Equatable {
1411914119 let dummy: Int
14120+ let kSerializer: KSerializer
1412014121 let obj5Self: SelfClass
1412114122 let obj5Set: Set
1412214123 let obj5Static: Static
@@ -14131,10 +14132,13 @@ struct Obj5: Codable, Equatable {
1413114132 let obj5Type: Obj5Type
1413214133 let obj5Typealias: Typealias
1413314134 let obj5Unowned: Unowned
14134- let obj5Var: Var
14135+ let primitiveKind: PrimitiveKind
1413514136 let purpleSelf: Obj5Self
1413614137 let purpleTrue: TrueClass
1413714138 let sendable: Sendable
14139+ let serialDescriptor: SerialDescriptor
14140+ let serialName: SerialName
14141+ let serializable: Serializable
1413814142 let serialize: Serialize
1413914143 let serializerProvider: SerializerProvider
1414014144 let short: Short
@@ -14175,15 +14179,12 @@ struct Obj5: Codable, Equatable {
1417514179 let union: Union
1417614180 let unsafe: Unsafe
1417714181 let unsigned: Unsigned
14182+ let useSerializers: UseSerializers
1417814183 let ushort: Ushort
14179- let using: Using
14180- let utf8JSONReader: Utf8JSONReader
14181- let utf8JSONWriter: Utf8JSONWriter
14182- let uuid: UUIDClass
14183- let virtual: Virtual
1418414184
1418514185 enum CodingKeys: String, CodingKey {
1418614186 case dummy = "dummy"
14187+ case kSerializer = "KSerializer"
1418714188 case obj5Self = "Self"
1418814189 case obj5Set = "set"
1418914190 case obj5Static = "static"
@@ -14198,10 +14199,13 @@ struct Obj5: Codable, Equatable {
1419814199 case obj5Type = "type"
1419914200 case obj5Typealias = "typealias"
1420014201 case obj5Unowned = "unowned"
14201- case obj5Var = "var"
14202+ case primitiveKind = "PrimitiveKind"
1420214203 case purpleSelf = "self"
1420314204 case purpleTrue = "true"
1420414205 case sendable = "Sendable"
14206+ case serialDescriptor = "SerialDescriptor"
14207+ case serialName = "SerialName"
14208+ case serializable = "Serializable"
1420514209 case serialize = "serialize"
1420614210 case serializerProvider = "SerializerProvider"
1420714211 case short = "short"
@@ -14242,12 +14246,8 @@ struct Obj5: Codable, Equatable {
1424214246 case union = "union"
1424314247 case unsafe = "unsafe"
1424414248 case unsigned = "unsigned"
14249+ case useSerializers = "UseSerializers"
1424514250 case ushort = "ushort"
14246- case using = "using"
14247- case utf8JSONReader = "Utf8JsonReader"
14248- case utf8JSONWriter = "Utf8JsonWriter"
14249- case uuid = "UUID"
14250- case virtual = "virtual"
1425114251 }
1425214252 }
1425314253
@@ -14271,6 +14271,7 @@ extension Obj5 {
1427114271
1427214272 func with(
1427314273 dummy: Int? = nil,
14274+ kSerializer: KSerializer? = nil,
1427414275 obj5Self: SelfClass? = nil,
1427514276 obj5Set: Set? = nil,
1427614277 obj5Static: Static? = nil,
@@ -14285,10 +14286,13 @@ extension Obj5 {
1428514286 obj5Type: Obj5Type? = nil,
1428614287 obj5Typealias: Typealias? = nil,
1428714288 obj5Unowned: Unowned? = nil,
14288- obj5Var: Var? = nil,
14289+ primitiveKind: PrimitiveKind? = nil,
1428914290 purpleSelf: Obj5Self? = nil,
1429014291 purpleTrue: TrueClass? = nil,
1429114292 sendable: Sendable? = nil,
14293+ serialDescriptor: SerialDescriptor? = nil,
14294+ serialName: SerialName? = nil,
14295+ serializable: Serializable? = nil,
1429214296 serialize: Serialize? = nil,
1429314297 serializerProvider: SerializerProvider? = nil,
1429414298 short: Short? = nil,
@@ -14329,15 +14333,12 @@ extension Obj5 {
1432914333 union: Union? = nil,
1433014334 unsafe: Unsafe? = nil,
1433114335 unsigned: Unsigned? = nil,
14332- ushort: Ushort? = nil,
14333- using: Using? = nil,
14334- utf8JSONReader: Utf8JSONReader? = nil,
14335- utf8JSONWriter: Utf8JSONWriter? = nil,
14336- uuid: UUIDClass? = nil,
14337- virtual: Virtual? = nil
14336+ useSerializers: UseSerializers? = nil,
14337+ ushort: Ushort? = nil
1433814338 ) -> Obj5 {
1433914339 return Obj5(
1434014340 dummy: dummy ?? self.dummy,
14341+ kSerializer: kSerializer ?? self.kSerializer,
1434114342 obj5Self: obj5Self ?? self.obj5Self,
1434214343 obj5Set: obj5Set ?? self.obj5Set,
1434314344 obj5Static: obj5Static ?? self.obj5Static,
@@ -14352,10 +14353,13 @@ extension Obj5 {
1435214353 obj5Type: obj5Type ?? self.obj5Type,
1435314354 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1435414355 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14355- obj5Var: obj5Var ?? self.obj5Var,
14356+ primitiveKind: primitiveKind ?? self.primitiveKind,
1435614357 purpleSelf: purpleSelf ?? self.purpleSelf,
1435714358 purpleTrue: purpleTrue ?? self.purpleTrue,
1435814359 sendable: sendable ?? self.sendable,
14360+ serialDescriptor: serialDescriptor ?? self.serialDescriptor,
14361+ serialName: serialName ?? self.serialName,
14362+ serializable: serializable ?? self.serializable,
1435914363 serialize: serialize ?? self.serialize,
1436014364 serializerProvider: serializerProvider ?? self.serializerProvider,
1436114365 short: short ?? self.short,
@@ -14396,12 +14400,58 @@ extension Obj5 {
1439614400 union: union ?? self.union,
1439714401 unsafe: unsafe ?? self.unsafe,
1439814402 unsigned: unsigned ?? self.unsigned,
14399- ushort: ushort ?? self.ushort,
14400- using: using ?? self.using,
14401- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
14402- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14403- uuid: uuid ?? self.uuid,
14404- virtual: virtual ?? self.virtual
14403+ useSerializers: useSerializers ?? self.useSerializers,
14404+ ushort: ushort ?? self.ushort
14405+ )
14406+ }
14407+
14408+ func jsonData() throws -> Data {
14409+ return try newJSONEncoder().encode(self)
14410+ }
14411+
14412+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14413+ return String(data: try self.jsonData(), encoding: encoding)
14414+ }
14415+}
14416+
14417+//
14418+// Hashable or Equatable:
14419+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14420+// for types that require the use of JSONAny, nor will the implementation of Hashable be
14421+// synthesized for types that have collections (such as arrays or dictionaries).
14422+
14423+// MARK: - KSerializer
14424+struct KSerializer: Codable, Equatable {
14425+ let kSerializer: Int
14426+
14427+ enum CodingKeys: String, CodingKey {
14428+ case kSerializer = "KSerializer"
14429+ }
14430+}
14431+
14432+// MARK: KSerializer convenience initializers and mutators
14433+
14434+extension KSerializer {
14435+ init(data: Data) throws {
14436+ self = try newJSONDecoder().decode(KSerializer.self, from: data)
14437+ }
14438+
14439+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14440+ guard let data = json.data(using: encoding) else {
14441+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14442+ }
14443+ try self.init(data: data)
14444+ }
14445+
14446+ init(fromURL url: URL) throws {
14447+ try self.init(data: try Data(contentsOf: url))
14448+ }
14449+
14450+ func with(
14451+ kSerializer: Int? = nil
14452+ ) -> KSerializer {
14453+ return KSerializer(
14454+ kSerializer: kSerializer ?? self.kSerializer
1440514455 )
1440614456 }
1440714457
@@ -15120,20 +15170,20 @@ extension Unowned {
1512015170 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1512115171 // synthesized for types that have collections (such as arrays or dictionaries).
1512215172
15123-// MARK: - Var
15124-struct Var: Codable, Equatable {
15125- let varVar: Int
15173+// MARK: - PrimitiveKind
15174+struct PrimitiveKind: Codable, Equatable {
15175+ let primitiveKind: Int
1512615176
1512715177 enum CodingKeys: String, CodingKey {
15128- case varVar = "var"
15178+ case primitiveKind = "PrimitiveKind"
1512915179 }
1513015180 }
1513115181
15132-// MARK: Var convenience initializers and mutators
15182+// MARK: PrimitiveKind convenience initializers and mutators
1513315183
15134-extension Var {
15184+extension PrimitiveKind {
1513515185 init(data: Data) throws {
15136- self = try newJSONDecoder().decode(Var.self, from: data)
15186+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1513715187 }
1513815188
1513915189 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15148,10 +15198,10 @@ extension Var {
1514815198 }
1514915199
1515015200 func with(
15151- varVar: Int? = nil
15152- ) -> Var {
15153- return Var(
15154- varVar: varVar ?? self.varVar
15201+ primitiveKind: Int? = nil
15202+ ) -> PrimitiveKind {
15203+ return PrimitiveKind(
15204+ primitiveKind: primitiveKind ?? self.primitiveKind
1515515205 )
1515615206 }
1515715207
@@ -15320,6 +15370,156 @@ extension Sendable {
1532015370 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1532115371 // synthesized for types that have collections (such as arrays or dictionaries).
1532215372
15373+// MARK: - SerialDescriptor
15374+struct SerialDescriptor: Codable, Equatable {
15375+ let serialDescriptor: Int
15376+
15377+ enum CodingKeys: String, CodingKey {
15378+ case serialDescriptor = "SerialDescriptor"
15379+ }
15380+}
15381+
15382+// MARK: SerialDescriptor convenience initializers and mutators
15383+
15384+extension SerialDescriptor {
15385+ init(data: Data) throws {
15386+ self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15387+ }
15388+
15389+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15390+ guard let data = json.data(using: encoding) else {
15391+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15392+ }
15393+ try self.init(data: data)
15394+ }
15395+
15396+ init(fromURL url: URL) throws {
15397+ try self.init(data: try Data(contentsOf: url))
15398+ }
15399+
15400+ func with(
15401+ serialDescriptor: Int? = nil
15402+ ) -> SerialDescriptor {
15403+ return SerialDescriptor(
15404+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
15405+ )
15406+ }
15407+
15408+ func jsonData() throws -> Data {
15409+ return try newJSONEncoder().encode(self)
15410+ }
15411+
15412+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15413+ return String(data: try self.jsonData(), encoding: encoding)
15414+ }
15415+}
15416+
15417+//
15418+// Hashable or Equatable:
15419+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15420+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15421+// synthesized for types that have collections (such as arrays or dictionaries).
15422+
15423+// MARK: - SerialName
15424+struct SerialName: Codable, Equatable {
15425+ let serialName: Int
15426+
15427+ enum CodingKeys: String, CodingKey {
15428+ case serialName = "SerialName"
15429+ }
15430+}
15431+
15432+// MARK: SerialName convenience initializers and mutators
15433+
15434+extension SerialName {
15435+ init(data: Data) throws {
15436+ self = try newJSONDecoder().decode(SerialName.self, from: data)
15437+ }
15438+
15439+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15440+ guard let data = json.data(using: encoding) else {
15441+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15442+ }
15443+ try self.init(data: data)
15444+ }
15445+
15446+ init(fromURL url: URL) throws {
15447+ try self.init(data: try Data(contentsOf: url))
15448+ }
15449+
15450+ func with(
15451+ serialName: Int? = nil
15452+ ) -> SerialName {
15453+ return SerialName(
15454+ serialName: serialName ?? self.serialName
15455+ )
15456+ }
15457+
15458+ func jsonData() throws -> Data {
15459+ return try newJSONEncoder().encode(self)
15460+ }
15461+
15462+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15463+ return String(data: try self.jsonData(), encoding: encoding)
15464+ }
15465+}
15466+
15467+//
15468+// Hashable or Equatable:
15469+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15470+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15471+// synthesized for types that have collections (such as arrays or dictionaries).
15472+
15473+// MARK: - Serializable
15474+struct Serializable: Codable, Equatable {
15475+ let serializable: Int
15476+
15477+ enum CodingKeys: String, CodingKey {
15478+ case serializable = "Serializable"
15479+ }
15480+}
15481+
15482+// MARK: Serializable convenience initializers and mutators
15483+
15484+extension Serializable {
15485+ init(data: Data) throws {
15486+ self = try newJSONDecoder().decode(Serializable.self, from: data)
15487+ }
15488+
15489+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15490+ guard let data = json.data(using: encoding) else {
15491+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15492+ }
15493+ try self.init(data: data)
15494+ }
15495+
15496+ init(fromURL url: URL) throws {
15497+ try self.init(data: try Data(contentsOf: url))
15498+ }
15499+
15500+ func with(
15501+ serializable: Int? = nil
15502+ ) -> Serializable {
15503+ return Serializable(
15504+ serializable: serializable ?? self.serializable
15505+ )
15506+ }
15507+
15508+ func jsonData() throws -> Data {
15509+ return try newJSONEncoder().encode(self)
15510+ }
15511+
15512+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15513+ return String(data: try self.jsonData(), encoding: encoding)
15514+ }
15515+}
15516+
15517+//
15518+// Hashable or Equatable:
15519+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15520+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15521+// synthesized for types that have collections (such as arrays or dictionaries).
15522+
1532315523 // MARK: - Serialize
1532415524 struct Serialize: Codable, Equatable {
1532515525 let serialize: Int
@@ -17320,20 +17520,20 @@ extension Unsigned {
1732017520 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1732117521 // synthesized for types that have collections (such as arrays or dictionaries).
1732217522
17323-// MARK: - Ushort
17324-struct Ushort: Codable, Equatable {
17325- let ushort: Int
17523+// MARK: - UseSerializers
17524+struct UseSerializers: Codable, Equatable {
17525+ let useSerializers: Int
1732617526
1732717527 enum CodingKeys: String, CodingKey {
17328- case ushort = "ushort"
17528+ case useSerializers = "UseSerializers"
1732917529 }
1733017530 }
1733117531
17332-// MARK: Ushort convenience initializers and mutators
17532+// MARK: UseSerializers convenience initializers and mutators
1733317533
17334-extension Ushort {
17534+extension UseSerializers {
1733517535 init(data: Data) throws {
17336- self = try newJSONDecoder().decode(Ushort.self, from: data)
17536+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
1733717537 }
1733817538
1733917539 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17348,10 +17548,10 @@ extension Ushort {
1734817548 }
1734917549
1735017550 func with(
17351- ushort: Int? = nil
17352- ) -> Ushort {
17353- return Ushort(
17354- ushort: ushort ?? self.ushort
17551+ useSerializers: Int? = nil
17552+ ) -> UseSerializers {
17553+ return UseSerializers(
17554+ useSerializers: useSerializers ?? self.useSerializers
1735517555 )
1735617556 }
1735717557
@@ -17370,20 +17570,20 @@ extension Ushort {
1737017570 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1737117571 // synthesized for types that have collections (such as arrays or dictionaries).
1737217572
17373-// MARK: - Using
17374-struct Using: Codable, Equatable {
17375- let using: Int
17573+// MARK: - Ushort
17574+struct Ushort: Codable, Equatable {
17575+ let ushort: Int
1737617576
1737717577 enum CodingKeys: String, CodingKey {
17378- case using = "using"
17578+ case ushort = "ushort"
1737917579 }
1738017580 }
1738117581
17382-// MARK: Using convenience initializers and mutators
17582+// MARK: Ushort convenience initializers and mutators
1738317583
17384-extension Using {
17584+extension Ushort {
1738517585 init(data: Data) throws {
17386- self = try newJSONDecoder().decode(Using.self, from: data)
17586+ self = try newJSONDecoder().decode(Ushort.self, from: data)
1738717587 }
1738817588
1738917589 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17398,10 +17598,10 @@ extension Using {
1739817598 }
1739917599
1740017600 func with(
17401- using: Int? = nil
17402- ) -> Using {
17403- return Using(
17404- using: using ?? self.using
17601+ ushort: Int? = nil
17602+ ) -> Ushort {
17603+ return Ushort(
17604+ ushort: ushort ?? self.ushort
1740517605 )
1740617606 }
1740717607
@@ -17420,21 +17620,57 @@ extension Using {
1742017620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1742117621 // synthesized for types that have collections (such as arrays or dictionaries).
1742217622
17423-// MARK: - Utf8JSONReader
17424-struct Utf8JSONReader: Codable, Equatable {
17425- let utf8JSONReader: Int
17623+// MARK: - Obj6
17624+struct Obj6: Codable, Equatable {
17625+ let dummy: Int
17626+ let obj6Var: Var
17627+ let obj6Weak: Weak
17628+ let obj6Where: Where
17629+ let obj6While: While
17630+ let obj6WillSet: WillSet
17631+ let using: Using
17632+ let utf8JSONReader: Utf8JSONReader
17633+ let utf8JSONWriter: Utf8JSONWriter
17634+ let uuid: UUIDClass
17635+ let virtual: Virtual
17636+ let void: Void
17637+ let volatile: Volatile
17638+ let wcharT: WcharT
17639+ let with: With
17640+ let xor: Xor
17641+ let xorEq: XorEq
17642+ let yes: Yes
17643+ let yield: Yield
1742617644
1742717645 enum CodingKeys: String, CodingKey {
17646+ case dummy = "dummy"
17647+ case obj6Var = "var"
17648+ case obj6Weak = "weak"
17649+ case obj6Where = "where"
17650+ case obj6While = "while"
17651+ case obj6WillSet = "willSet"
17652+ case using = "using"
1742817653 case utf8JSONReader = "Utf8JsonReader"
17654+ case utf8JSONWriter = "Utf8JsonWriter"
17655+ case uuid = "UUID"
17656+ case virtual = "virtual"
17657+ case void = "void"
17658+ case volatile = "volatile"
17659+ case wcharT = "wchar_t"
17660+ case with = "with"
17661+ case xor = "xor"
17662+ case xorEq = "xor_eq"
17663+ case yes = "YES"
17664+ case yield = "yield"
17665+ }
17666+}
17667+
17668+// MARK: Obj6 convenience initializers and mutators
17669+
17670+extension Obj6 {
17671+ init(data: Data) throws {
17672+ self = try newJSONDecoder().decode(Obj6.self, from: data)
1742917673 }
17430-}
17431-
17432-// MARK: Utf8JSONReader convenience initializers and mutators
17433-
17434-extension Utf8JSONReader {
17435- init(data: Data) throws {
17436- self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
17437- }
1743817674
1743917675 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
1744017676 guard let data = json.data(using: encoding) else {
@@ -17448,10 +17684,46 @@ extension Utf8JSONReader {
1744817684 }
1744917685
1745017686 func with(
17451- utf8JSONReader: Int? = nil
17452- ) -> Utf8JSONReader {
17453- return Utf8JSONReader(
17454- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
17687+ dummy: Int? = nil,
17688+ obj6Var: Var? = nil,
17689+ obj6Weak: Weak? = nil,
17690+ obj6Where: Where? = nil,
17691+ obj6While: While? = nil,
17692+ obj6WillSet: WillSet? = nil,
17693+ using: Using? = nil,
17694+ utf8JSONReader: Utf8JSONReader? = nil,
17695+ utf8JSONWriter: Utf8JSONWriter? = nil,
17696+ uuid: UUIDClass? = nil,
17697+ virtual: Virtual? = nil,
17698+ void: Void? = nil,
17699+ volatile: Volatile? = nil,
17700+ wcharT: WcharT? = nil,
17701+ with: With? = nil,
17702+ xor: Xor? = nil,
17703+ xorEq: XorEq? = nil,
17704+ yes: Yes? = nil,
17705+ yield: Yield? = nil
17706+ ) -> Obj6 {
17707+ return Obj6(
17708+ dummy: dummy ?? self.dummy,
17709+ obj6Var: obj6Var ?? self.obj6Var,
17710+ obj6Weak: obj6Weak ?? self.obj6Weak,
17711+ obj6Where: obj6Where ?? self.obj6Where,
17712+ obj6While: obj6While ?? self.obj6While,
17713+ obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17714+ using: using ?? self.using,
17715+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
17716+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
17717+ uuid: uuid ?? self.uuid,
17718+ virtual: virtual ?? self.virtual,
17719+ void: void ?? self.void,
17720+ volatile: volatile ?? self.volatile,
17721+ wcharT: wcharT ?? self.wcharT,
17722+ with: with ?? self.with,
17723+ xor: xor ?? self.xor,
17724+ xorEq: xorEq ?? self.xorEq,
17725+ yes: yes ?? self.yes,
17726+ yield: yield ?? self.yield
1745517727 )
1745617728 }
1745717729
@@ -17470,20 +17742,20 @@ extension Utf8JSONReader {
1747017742 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1747117743 // synthesized for types that have collections (such as arrays or dictionaries).
1747217744
17473-// MARK: - Utf8JSONWriter
17474-struct Utf8JSONWriter: Codable, Equatable {
17475- let utf8JSONWriter: Int
17745+// MARK: - Var
17746+struct Var: Codable, Equatable {
17747+ let varVar: Int
1747617748
1747717749 enum CodingKeys: String, CodingKey {
17478- case utf8JSONWriter = "Utf8JsonWriter"
17750+ case varVar = "var"
1747917751 }
1748017752 }
1748117753
17482-// MARK: Utf8JSONWriter convenience initializers and mutators
17754+// MARK: Var convenience initializers and mutators
1748317755
17484-extension Utf8JSONWriter {
17756+extension Var {
1748517757 init(data: Data) throws {
17486- self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
17758+ self = try newJSONDecoder().decode(Var.self, from: data)
1748717759 }
1748817760
1748917761 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17498,10 +17770,10 @@ extension Utf8JSONWriter {
1749817770 }
1749917771
1750017772 func with(
17501- utf8JSONWriter: Int? = nil
17502- ) -> Utf8JSONWriter {
17503- return Utf8JSONWriter(
17504- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
17773+ varVar: Int? = nil
17774+ ) -> Var {
17775+ return Var(
17776+ varVar: varVar ?? self.varVar
1750517777 )
1750617778 }
1750717779
@@ -17520,20 +17792,20 @@ extension Utf8JSONWriter {
1752017792 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1752117793 // synthesized for types that have collections (such as arrays or dictionaries).
1752217794
17523-// MARK: - UUIDClass
17524-struct UUIDClass: Codable, Equatable {
17525- let uuid: Int
17795+// MARK: - Weak
17796+struct Weak: Codable, Equatable {
17797+ let weakWeak: Int
1752617798
1752717799 enum CodingKeys: String, CodingKey {
17528- case uuid = "UUID"
17800+ case weakWeak = "weak"
1752917801 }
1753017802 }
1753117803
17532-// MARK: UUIDClass convenience initializers and mutators
17804+// MARK: Weak convenience initializers and mutators
1753317805
17534-extension UUIDClass {
17806+extension Weak {
1753517807 init(data: Data) throws {
17536- self = try newJSONDecoder().decode(UUIDClass.self, from: data)
17808+ self = try newJSONDecoder().decode(Weak.self, from: data)
1753717809 }
1753817810
1753917811 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17548,10 +17820,10 @@ extension UUIDClass {
1754817820 }
1754917821
1755017822 func with(
17551- uuid: Int? = nil
17552- ) -> UUIDClass {
17553- return UUIDClass(
17554- uuid: uuid ?? self.uuid
17823+ weakWeak: Int? = nil
17824+ ) -> Weak {
17825+ return Weak(
17826+ weakWeak: weakWeak ?? self.weakWeak
1755517827 )
1755617828 }
1755717829
@@ -17570,20 +17842,20 @@ extension UUIDClass {
1757017842 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1757117843 // synthesized for types that have collections (such as arrays or dictionaries).
1757217844
17573-// MARK: - Virtual
17574-struct Virtual: Codable, Equatable {
17575- let virtual: Int
17845+// MARK: - Where
17846+struct Where: Codable, Equatable {
17847+ let whereWhere: Int
1757617848
1757717849 enum CodingKeys: String, CodingKey {
17578- case virtual = "virtual"
17850+ case whereWhere = "where"
1757917851 }
1758017852 }
1758117853
17582-// MARK: Virtual convenience initializers and mutators
17854+// MARK: Where convenience initializers and mutators
1758317855
17584-extension Virtual {
17856+extension Where {
1758517857 init(data: Data) throws {
17586- self = try newJSONDecoder().decode(Virtual.self, from: data)
17858+ self = try newJSONDecoder().decode(Where.self, from: data)
1758717859 }
1758817860
1758917861 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17598,10 +17870,10 @@ extension Virtual {
1759817870 }
1759917871
1760017872 func with(
17601- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
17873+ whereWhere: Int? = nil
17874+ ) -> Where {
17875+ return Where(
17876+ whereWhere: whereWhere ?? self.whereWhere
1760517877 )
1760617878 }
1760717879
@@ -17620,44 +17892,20 @@ extension Virtual {
1762017892 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1762117893 // synthesized for types that have collections (such as arrays or dictionaries).
1762217894
17623-// MARK: - Obj6
17624-struct Obj6: Codable, Equatable {
17625- let dummy: Int
17626- let obj6Weak: Weak
17627- let obj6Where: Where
17628- let obj6While: While
17629- let obj6WillSet: WillSet
17630- let void: Void
17631- let volatile: Volatile
17632- let wcharT: WcharT
17633- let with: With
17634- let xor: Xor
17635- let xorEq: XorEq
17636- let yes: Yes
17637- let yield: Yield
17895+// MARK: - While
17896+struct While: Codable, Equatable {
17897+ let whileWhile: Int
1763817898
1763917899 enum CodingKeys: String, CodingKey {
17640- case dummy = "dummy"
17641- case obj6Weak = "weak"
17642- case obj6Where = "where"
17643- case obj6While = "while"
17644- case obj6WillSet = "willSet"
17645- case void = "void"
17646- case volatile = "volatile"
17647- case wcharT = "wchar_t"
17648- case with = "with"
17649- case xor = "xor"
17650- case xorEq = "xor_eq"
17651- case yes = "YES"
17652- case yield = "yield"
17900+ case whileWhile = "while"
1765317901 }
1765417902 }
1765517903
17656-// MARK: Obj6 convenience initializers and mutators
17904+// MARK: While convenience initializers and mutators
1765717905
17658-extension Obj6 {
17906+extension While {
1765917907 init(data: Data) throws {
17660- self = try newJSONDecoder().decode(Obj6.self, from: data)
17908+ self = try newJSONDecoder().decode(While.self, from: data)
1766117909 }
1766217910
1766317911 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17672,34 +17920,10 @@ extension Obj6 {
1767217920 }
1767317921
1767417922 func with(
17675- dummy: Int? = nil,
17676- obj6Weak: Weak? = nil,
17677- obj6Where: Where? = nil,
17678- obj6While: While? = nil,
17679- obj6WillSet: WillSet? = nil,
17680- void: Void? = nil,
17681- volatile: Volatile? = nil,
17682- wcharT: WcharT? = nil,
17683- with: With? = nil,
17684- xor: Xor? = nil,
17685- xorEq: XorEq? = nil,
17686- yes: Yes? = nil,
17687- yield: Yield? = nil
17688- ) -> Obj6 {
17689- return Obj6(
17690- dummy: dummy ?? self.dummy,
17691- obj6Weak: obj6Weak ?? self.obj6Weak,
17692- obj6Where: obj6Where ?? self.obj6Where,
17693- obj6While: obj6While ?? self.obj6While,
17694- obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17695- void: void ?? self.void,
17696- volatile: volatile ?? self.volatile,
17697- wcharT: wcharT ?? self.wcharT,
17698- with: with ?? self.with,
17699- xor: xor ?? self.xor,
17700- xorEq: xorEq ?? self.xorEq,
17701- yes: yes ?? self.yes,
17702- yield: yield ?? self.yield
17923+ whileWhile: Int? = nil
17924+ ) -> While {
17925+ return While(
17926+ whileWhile: whileWhile ?? self.whileWhile
1770317927 )
1770417928 }
1770517929
@@ -17718,20 +17942,20 @@ extension Obj6 {
1771817942 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1771917943 // synthesized for types that have collections (such as arrays or dictionaries).
1772017944
17721-// MARK: - Weak
17722-struct Weak: Codable, Equatable {
17723- let weakWeak: Int
17945+// MARK: - WillSet
17946+struct WillSet: Codable, Equatable {
17947+ let willSetWillSet: Int
1772417948
1772517949 enum CodingKeys: String, CodingKey {
17726- case weakWeak = "weak"
17950+ case willSetWillSet = "willSet"
1772717951 }
1772817952 }
1772917953
17730-// MARK: Weak convenience initializers and mutators
17954+// MARK: WillSet convenience initializers and mutators
1773117955
17732-extension Weak {
17956+extension WillSet {
1773317957 init(data: Data) throws {
17734- self = try newJSONDecoder().decode(Weak.self, from: data)
17958+ self = try newJSONDecoder().decode(WillSet.self, from: data)
1773517959 }
1773617960
1773717961 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17746,10 +17970,10 @@ extension Weak {
1774617970 }
1774717971
1774817972 func with(
17749- weakWeak: Int? = nil
17750- ) -> Weak {
17751- return Weak(
17752- weakWeak: weakWeak ?? self.weakWeak
17973+ willSetWillSet: Int? = nil
17974+ ) -> WillSet {
17975+ return WillSet(
17976+ willSetWillSet: willSetWillSet ?? self.willSetWillSet
1775317977 )
1775417978 }
1775517979
@@ -17768,20 +17992,20 @@ extension Weak {
1776817992 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1776917993 // synthesized for types that have collections (such as arrays or dictionaries).
1777017994
17771-// MARK: - Where
17772-struct Where: Codable, Equatable {
17773- let whereWhere: Int
17995+// MARK: - Using
17996+struct Using: Codable, Equatable {
17997+ let using: Int
1777417998
1777517999 enum CodingKeys: String, CodingKey {
17776- case whereWhere = "where"
18000+ case using = "using"
1777718001 }
1777818002 }
1777918003
17780-// MARK: Where convenience initializers and mutators
18004+// MARK: Using convenience initializers and mutators
1778118005
17782-extension Where {
18006+extension Using {
1778318007 init(data: Data) throws {
17784- self = try newJSONDecoder().decode(Where.self, from: data)
18008+ self = try newJSONDecoder().decode(Using.self, from: data)
1778518009 }
1778618010
1778718011 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17796,10 +18020,10 @@ extension Where {
1779618020 }
1779718021
1779818022 func with(
17799- whereWhere: Int? = nil
17800- ) -> Where {
17801- return Where(
17802- whereWhere: whereWhere ?? self.whereWhere
18023+ using: Int? = nil
18024+ ) -> Using {
18025+ return Using(
18026+ using: using ?? self.using
1780318027 )
1780418028 }
1780518029
@@ -17818,20 +18042,20 @@ extension Where {
1781818042 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1781918043 // synthesized for types that have collections (such as arrays or dictionaries).
1782018044
17821-// MARK: - While
17822-struct While: Codable, Equatable {
17823- let whileWhile: Int
18045+// MARK: - Utf8JSONReader
18046+struct Utf8JSONReader: Codable, Equatable {
18047+ let utf8JSONReader: Int
1782418048
1782518049 enum CodingKeys: String, CodingKey {
17826- case whileWhile = "while"
18050+ case utf8JSONReader = "Utf8JsonReader"
1782718051 }
1782818052 }
1782918053
17830-// MARK: While convenience initializers and mutators
18054+// MARK: Utf8JSONReader convenience initializers and mutators
1783118055
17832-extension While {
18056+extension Utf8JSONReader {
1783318057 init(data: Data) throws {
17834- self = try newJSONDecoder().decode(While.self, from: data)
18058+ self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
1783518059 }
1783618060
1783718061 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17846,10 +18070,10 @@ extension While {
1784618070 }
1784718071
1784818072 func with(
17849- whileWhile: Int? = nil
17850- ) -> While {
17851- return While(
17852- whileWhile: whileWhile ?? self.whileWhile
18073+ utf8JSONReader: Int? = nil
18074+ ) -> Utf8JSONReader {
18075+ return Utf8JSONReader(
18076+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
1785318077 )
1785418078 }
1785518079
@@ -17868,20 +18092,20 @@ extension While {
1786818092 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1786918093 // synthesized for types that have collections (such as arrays or dictionaries).
1787018094
17871-// MARK: - WillSet
17872-struct WillSet: Codable, Equatable {
17873- let willSetWillSet: Int
18095+// MARK: - Utf8JSONWriter
18096+struct Utf8JSONWriter: Codable, Equatable {
18097+ let utf8JSONWriter: Int
1787418098
1787518099 enum CodingKeys: String, CodingKey {
17876- case willSetWillSet = "willSet"
18100+ case utf8JSONWriter = "Utf8JsonWriter"
1787718101 }
1787818102 }
1787918103
17880-// MARK: WillSet convenience initializers and mutators
18104+// MARK: Utf8JSONWriter convenience initializers and mutators
1788118105
17882-extension WillSet {
18106+extension Utf8JSONWriter {
1788318107 init(data: Data) throws {
17884- self = try newJSONDecoder().decode(WillSet.self, from: data)
18108+ self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
1788518109 }
1788618110
1788718111 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17896,10 +18120,110 @@ extension WillSet {
1789618120 }
1789718121
1789818122 func with(
17899- willSetWillSet: Int? = nil
17900- ) -> WillSet {
17901- return WillSet(
17902- willSetWillSet: willSetWillSet ?? self.willSetWillSet
18123+ utf8JSONWriter: Int? = nil
18124+ ) -> Utf8JSONWriter {
18125+ return Utf8JSONWriter(
18126+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
18127+ )
18128+ }
18129+
18130+ func jsonData() throws -> Data {
18131+ return try newJSONEncoder().encode(self)
18132+ }
18133+
18134+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18135+ return String(data: try self.jsonData(), encoding: encoding)
18136+ }
18137+}
18138+
18139+//
18140+// Hashable or Equatable:
18141+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18142+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18143+// synthesized for types that have collections (such as arrays or dictionaries).
18144+
18145+// MARK: - UUIDClass
18146+struct UUIDClass: Codable, Equatable {
18147+ let uuid: Int
18148+
18149+ enum CodingKeys: String, CodingKey {
18150+ case uuid = "UUID"
18151+ }
18152+}
18153+
18154+// MARK: UUIDClass convenience initializers and mutators
18155+
18156+extension UUIDClass {
18157+ init(data: Data) throws {
18158+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
18159+ }
18160+
18161+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18162+ guard let data = json.data(using: encoding) else {
18163+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18164+ }
18165+ try self.init(data: data)
18166+ }
18167+
18168+ init(fromURL url: URL) throws {
18169+ try self.init(data: try Data(contentsOf: url))
18170+ }
18171+
18172+ func with(
18173+ uuid: Int? = nil
18174+ ) -> UUIDClass {
18175+ return UUIDClass(
18176+ uuid: uuid ?? self.uuid
18177+ )
18178+ }
18179+
18180+ func jsonData() throws -> Data {
18181+ return try newJSONEncoder().encode(self)
18182+ }
18183+
18184+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18185+ return String(data: try self.jsonData(), encoding: encoding)
18186+ }
18187+}
18188+
18189+//
18190+// Hashable or Equatable:
18191+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18192+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18193+// synthesized for types that have collections (such as arrays or dictionaries).
18194+
18195+// MARK: - Virtual
18196+struct Virtual: Codable, Equatable {
18197+ let virtual: Int
18198+
18199+ enum CodingKeys: String, CodingKey {
18200+ case virtual = "virtual"
18201+ }
18202+}
18203+
18204+// MARK: Virtual convenience initializers and mutators
18205+
18206+extension Virtual {
18207+ init(data: Data) throws {
18208+ self = try newJSONDecoder().decode(Virtual.self, from: data)
18209+ }
18210+
18211+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18212+ guard let data = json.data(using: encoding) else {
18213+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18214+ }
18215+ try self.init(data: data)
18216+ }
18217+
18218+ init(fromURL url: URL) throws {
18219+ try self.init(data: try Data(contentsOf: url))
18220+ }
18221+
18222+ func with(
18223+ virtual: Int? = nil
18224+ ) -> Virtual {
18225+ return Virtual(
18226+ virtual: virtual ?? self.virtual
1790318227 )
1790418228 }
Mswiftsendable-true--1c3982c78639 / quicktype.swift+503 −215
@@ -12545,6 +12545,7 @@ extension Select {
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable, Sendable {
1254712547 let dummy: Int
12548+ let kSerializer: KSerializer
1254812549 let obj5Self: SelfClass
1254912550 let obj5Set: Set
1255012551 let obj5Static: Static
@@ -12559,10 +12560,13 @@ struct Obj5: Codable, Sendable {
1255912560 let obj5Type: Obj5Type
1256012561 let obj5Typealias: Typealias
1256112562 let obj5Unowned: Unowned
12562- let obj5Var: Var
12563+ let primitiveKind: PrimitiveKind
1256312564 let purpleSelf: Obj5Self
1256412565 let purpleTrue: TrueClass
1256512566 let sendable: SendableClass
12567+ let serialDescriptor: SerialDescriptor
12568+ let serialName: SerialName
12569+ let serializable: Serializable
1256612570 let serialize: Serialize
1256712571 let serializerProvider: SerializerProvider
1256812572 let short: Short
@@ -12603,15 +12607,12 @@ struct Obj5: Codable, Sendable {
1260312607 let union: Union
1260412608 let unsafe: Unsafe
1260512609 let unsigned: Unsigned
12610+ let useSerializers: UseSerializers
1260612611 let ushort: Ushort
12607- let using: Using
12608- let utf8JSONReader: Utf8JSONReader
12609- let utf8JSONWriter: Utf8JSONWriter
12610- let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
12615+ case kSerializer = "KSerializer"
1261512616 case obj5Self = "Self"
1261612617 case obj5Set = "set"
1261712618 case obj5Static = "static"
@@ -12626,10 +12627,13 @@ struct Obj5: Codable, Sendable {
1262612627 case obj5Type = "type"
1262712628 case obj5Typealias = "typealias"
1262812629 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
12630+ case primitiveKind = "PrimitiveKind"
1263012631 case purpleSelf = "self"
1263112632 case purpleTrue = "true"
1263212633 case sendable = "Sendable"
12634+ case serialDescriptor = "SerialDescriptor"
12635+ case serialName = "SerialName"
12636+ case serializable = "Serializable"
1263312637 case serialize = "serialize"
1263412638 case serializerProvider = "SerializerProvider"
1263512639 case short = "short"
@@ -12670,12 +12674,8 @@ struct Obj5: Codable, Sendable {
1267012674 case union = "union"
1267112675 case unsafe = "unsafe"
1267212676 case unsigned = "unsigned"
12677+ case useSerializers = "UseSerializers"
1267312678 case ushort = "ushort"
12674- case using = "using"
12675- case utf8JSONReader = "Utf8JsonReader"
12676- case utf8JSONWriter = "Utf8JsonWriter"
12677- case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12699,6 +12699,7 @@ extension Obj5 {
1269912699
1270012700 func with(
1270112701 dummy: Int? = nil,
12702+ kSerializer: KSerializer? = nil,
1270212703 obj5Self: SelfClass? = nil,
1270312704 obj5Set: Set? = nil,
1270412705 obj5Static: Static? = nil,
@@ -12713,10 +12714,13 @@ extension Obj5 {
1271312714 obj5Type: Obj5Type? = nil,
1271412715 obj5Typealias: Typealias? = nil,
1271512716 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
12717+ primitiveKind: PrimitiveKind? = nil,
1271712718 purpleSelf: Obj5Self? = nil,
1271812719 purpleTrue: TrueClass? = nil,
1271912720 sendable: SendableClass? = nil,
12721+ serialDescriptor: SerialDescriptor? = nil,
12722+ serialName: SerialName? = nil,
12723+ serializable: Serializable? = nil,
1272012724 serialize: Serialize? = nil,
1272112725 serializerProvider: SerializerProvider? = nil,
1272212726 short: Short? = nil,
@@ -12757,15 +12761,12 @@ extension Obj5 {
1275712761 union: Union? = nil,
1275812762 unsafe: Unsafe? = nil,
1275912763 unsigned: Unsigned? = nil,
12760- ushort: Ushort? = nil,
12761- using: Using? = nil,
12762- utf8JSONReader: Utf8JSONReader? = nil,
12763- utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12764+ useSerializers: UseSerializers? = nil,
12765+ ushort: Ushort? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
12769+ kSerializer: kSerializer ?? self.kSerializer,
1276912770 obj5Self: obj5Self ?? self.obj5Self,
1277012771 obj5Set: obj5Set ?? self.obj5Set,
1277112772 obj5Static: obj5Static ?? self.obj5Static,
@@ -12780,10 +12781,13 @@ extension Obj5 {
1278012781 obj5Type: obj5Type ?? self.obj5Type,
1278112782 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212783 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
12784+ primitiveKind: primitiveKind ?? self.primitiveKind,
1278412785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512786 purpleTrue: purpleTrue ?? self.purpleTrue,
1278612787 sendable: sendable ?? self.sendable,
12788+ serialDescriptor: serialDescriptor ?? self.serialDescriptor,
12789+ serialName: serialName ?? self.serialName,
12790+ serializable: serializable ?? self.serializable,
1278712791 serialize: serialize ?? self.serialize,
1278812792 serializerProvider: serializerProvider ?? self.serializerProvider,
1278912793 short: short ?? self.short,
@@ -12824,12 +12828,52 @@ extension Obj5 {
1282412828 union: union ?? self.union,
1282512829 unsafe: unsafe ?? self.unsafe,
1282612830 unsigned: unsigned ?? self.unsigned,
12827- ushort: ushort ?? self.ushort,
12828- using: using ?? self.using,
12829- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
12830- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12831+ useSerializers: useSerializers ?? self.useSerializers,
12832+ ushort: ushort ?? self.ushort
12833+ )
12834+ }
12835+
12836+ func jsonData() throws -> Data {
12837+ return try newJSONEncoder().encode(self)
12838+ }
12839+
12840+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12841+ return String(data: try self.jsonData(), encoding: encoding)
12842+ }
12843+}
12844+
12845+// MARK: - KSerializer
12846+struct KSerializer: Codable, Sendable {
12847+ let kSerializer: Int
12848+
12849+ enum CodingKeys: String, CodingKey {
12850+ case kSerializer = "KSerializer"
12851+ }
12852+}
12853+
12854+// MARK: KSerializer convenience initializers and mutators
12855+
12856+extension KSerializer {
12857+ init(data: Data) throws {
12858+ self = try newJSONDecoder().decode(KSerializer.self, from: data)
12859+ }
12860+
12861+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12862+ guard let data = json.data(using: encoding) else {
12863+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12864+ }
12865+ try self.init(data: data)
12866+ }
12867+
12868+ init(fromURL url: URL) throws {
12869+ try self.init(data: try Data(contentsOf: url))
12870+ }
12871+
12872+ func with(
12873+ kSerializer: Int? = nil
12874+ ) -> KSerializer {
12875+ return KSerializer(
12876+ kSerializer: kSerializer ?? self.kSerializer
1283312877 )
1283412878 }
1283512879
@@ -13458,20 +13502,20 @@ extension Unowned {
1345813502 }
1345913503 }
1346013504
13461-// MARK: - Var
13462-struct Var: Codable, Sendable {
13463- let varVar: Int
13505+// MARK: - PrimitiveKind
13506+struct PrimitiveKind: Codable, Sendable {
13507+ let primitiveKind: Int
1346413508
1346513509 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13510+ case primitiveKind = "PrimitiveKind"
1346713511 }
1346813512 }
1346913513
13470-// MARK: Var convenience initializers and mutators
13514+// MARK: PrimitiveKind convenience initializers and mutators
1347113515
13472-extension Var {
13516+extension PrimitiveKind {
1347313517 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13518+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1347513519 }
1347613520
1347713521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13530,10 @@ extension Var {
1348613530 }
1348713531
1348813532 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13533+ primitiveKind: Int? = nil
13534+ ) -> PrimitiveKind {
13535+ return PrimitiveKind(
13536+ primitiveKind: primitiveKind ?? self.primitiveKind
1349313537 )
1349413538 }
1349513539
@@ -13634,6 +13678,138 @@ extension SendableClass {
1363413678 }
1363513679 }
1363613680
13681+// MARK: - SerialDescriptor
13682+struct SerialDescriptor: Codable, Sendable {
13683+ let serialDescriptor: Int
13684+
13685+ enum CodingKeys: String, CodingKey {
13686+ case serialDescriptor = "SerialDescriptor"
13687+ }
13688+}
13689+
13690+// MARK: SerialDescriptor convenience initializers and mutators
13691+
13692+extension SerialDescriptor {
13693+ init(data: Data) throws {
13694+ self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
13695+ }
13696+
13697+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13698+ guard let data = json.data(using: encoding) else {
13699+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13700+ }
13701+ try self.init(data: data)
13702+ }
13703+
13704+ init(fromURL url: URL) throws {
13705+ try self.init(data: try Data(contentsOf: url))
13706+ }
13707+
13708+ func with(
13709+ serialDescriptor: Int? = nil
13710+ ) -> SerialDescriptor {
13711+ return SerialDescriptor(
13712+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
13713+ )
13714+ }
13715+
13716+ func jsonData() throws -> Data {
13717+ return try newJSONEncoder().encode(self)
13718+ }
13719+
13720+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13721+ return String(data: try self.jsonData(), encoding: encoding)
13722+ }
13723+}
13724+
13725+// MARK: - SerialName
13726+struct SerialName: Codable, Sendable {
13727+ let serialName: Int
13728+
13729+ enum CodingKeys: String, CodingKey {
13730+ case serialName = "SerialName"
13731+ }
13732+}
13733+
13734+// MARK: SerialName convenience initializers and mutators
13735+
13736+extension SerialName {
13737+ init(data: Data) throws {
13738+ self = try newJSONDecoder().decode(SerialName.self, from: data)
13739+ }
13740+
13741+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13742+ guard let data = json.data(using: encoding) else {
13743+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13744+ }
13745+ try self.init(data: data)
13746+ }
13747+
13748+ init(fromURL url: URL) throws {
13749+ try self.init(data: try Data(contentsOf: url))
13750+ }
13751+
13752+ func with(
13753+ serialName: Int? = nil
13754+ ) -> SerialName {
13755+ return SerialName(
13756+ serialName: serialName ?? self.serialName
13757+ )
13758+ }
13759+
13760+ func jsonData() throws -> Data {
13761+ return try newJSONEncoder().encode(self)
13762+ }
13763+
13764+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13765+ return String(data: try self.jsonData(), encoding: encoding)
13766+ }
13767+}
13768+
13769+// MARK: - Serializable
13770+struct Serializable: Codable, Sendable {
13771+ let serializable: Int
13772+
13773+ enum CodingKeys: String, CodingKey {
13774+ case serializable = "Serializable"
13775+ }
13776+}
13777+
13778+// MARK: Serializable convenience initializers and mutators
13779+
13780+extension Serializable {
13781+ init(data: Data) throws {
13782+ self = try newJSONDecoder().decode(Serializable.self, from: data)
13783+ }
13784+
13785+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13786+ guard let data = json.data(using: encoding) else {
13787+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13788+ }
13789+ try self.init(data: data)
13790+ }
13791+
13792+ init(fromURL url: URL) throws {
13793+ try self.init(data: try Data(contentsOf: url))
13794+ }
13795+
13796+ func with(
13797+ serializable: Int? = nil
13798+ ) -> Serializable {
13799+ return Serializable(
13800+ serializable: serializable ?? self.serializable
13801+ )
13802+ }
13803+
13804+ func jsonData() throws -> Data {
13805+ return try newJSONEncoder().encode(self)
13806+ }
13807+
13808+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13809+ return String(data: try self.jsonData(), encoding: encoding)
13810+ }
13811+}
13812+
1363713813 // MARK: - Serialize
1363813814 struct Serialize: Codable, Sendable {
1363913815 let serialize: Int
@@ -15394,20 +15570,20 @@ extension Unsigned {
1539415570 }
1539515571 }
1539615572
15397-// MARK: - Ushort
15398-struct Ushort: Codable, Sendable {
15399- let ushort: Int
15573+// MARK: - UseSerializers
15574+struct UseSerializers: Codable, Sendable {
15575+ let useSerializers: Int
1540015576
1540115577 enum CodingKeys: String, CodingKey {
15402- case ushort = "ushort"
15578+ case useSerializers = "UseSerializers"
1540315579 }
1540415580 }
1540515581
15406-// MARK: Ushort convenience initializers and mutators
15582+// MARK: UseSerializers convenience initializers and mutators
1540715583
15408-extension Ushort {
15584+extension UseSerializers {
1540915585 init(data: Data) throws {
15410- self = try newJSONDecoder().decode(Ushort.self, from: data)
15586+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
1541115587 }
1541215588
1541315589 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15422,10 +15598,10 @@ extension Ushort {
1542215598 }
1542315599
1542415600 func with(
15425- ushort: Int? = nil
15426- ) -> Ushort {
15427- return Ushort(
15428- ushort: ushort ?? self.ushort
15601+ useSerializers: Int? = nil
15602+ ) -> UseSerializers {
15603+ return UseSerializers(
15604+ useSerializers: useSerializers ?? self.useSerializers
1542915605 )
1543015606 }
1543115607
@@ -15438,20 +15614,20 @@ extension Ushort {
1543815614 }
1543915615 }
1544015616
15441-// MARK: - Using
15442-struct Using: Codable, Sendable {
15443- let using: Int
15617+// MARK: - Ushort
15618+struct Ushort: Codable, Sendable {
15619+ let ushort: Int
1544415620
1544515621 enum CodingKeys: String, CodingKey {
15446- case using = "using"
15622+ case ushort = "ushort"
1544715623 }
1544815624 }
1544915625
15450-// MARK: Using convenience initializers and mutators
15626+// MARK: Ushort convenience initializers and mutators
1545115627
15452-extension Using {
15628+extension Ushort {
1545315629 init(data: Data) throws {
15454- self = try newJSONDecoder().decode(Using.self, from: data)
15630+ self = try newJSONDecoder().decode(Ushort.self, from: data)
1545515631 }
1545615632
1545715633 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15466,10 +15642,10 @@ extension Using {
1546615642 }
1546715643
1546815644 func with(
15469- using: Int? = nil
15470- ) -> Using {
15471- return Using(
15472- using: using ?? self.using
15645+ ushort: Int? = nil
15646+ ) -> Ushort {
15647+ return Ushort(
15648+ ushort: ushort ?? self.ushort
1547315649 )
1547415650 }
1547515651
@@ -15482,20 +15658,56 @@ extension Using {
1548215658 }
1548315659 }
1548415660
15485-// MARK: - Utf8JSONReader
15486-struct Utf8JSONReader: Codable, Sendable {
15487- let utf8JSONReader: Int
15661+// MARK: - Obj6
15662+struct Obj6: Codable, Sendable {
15663+ let dummy: Int
15664+ let obj6Var: Var
15665+ let obj6Weak: Weak
15666+ let obj6Where: Where
15667+ let obj6While: While
15668+ let obj6WillSet: WillSet
15669+ let using: Using
15670+ let utf8JSONReader: Utf8JSONReader
15671+ let utf8JSONWriter: Utf8JSONWriter
15672+ let uuid: UUIDClass
15673+ let virtual: Virtual
15674+ let void: Void
15675+ let volatile: Volatile
15676+ let wcharT: WcharT
15677+ let with: With
15678+ let xor: Xor
15679+ let xorEq: XorEq
15680+ let yes: Yes
15681+ let yield: Yield
1548815682
1548915683 enum CodingKeys: String, CodingKey {
15684+ case dummy = "dummy"
15685+ case obj6Var = "var"
15686+ case obj6Weak = "weak"
15687+ case obj6Where = "where"
15688+ case obj6While = "while"
15689+ case obj6WillSet = "willSet"
15690+ case using = "using"
1549015691 case utf8JSONReader = "Utf8JsonReader"
15692+ case utf8JSONWriter = "Utf8JsonWriter"
15693+ case uuid = "UUID"
15694+ case virtual = "virtual"
15695+ case void = "void"
15696+ case volatile = "volatile"
15697+ case wcharT = "wchar_t"
15698+ case with = "with"
15699+ case xor = "xor"
15700+ case xorEq = "xor_eq"
15701+ case yes = "YES"
15702+ case yield = "yield"
1549115703 }
1549215704 }
1549315705
15494-// MARK: Utf8JSONReader convenience initializers and mutators
15706+// MARK: Obj6 convenience initializers and mutators
1549515707
15496-extension Utf8JSONReader {
15708+extension Obj6 {
1549715709 init(data: Data) throws {
15498- self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
15710+ self = try newJSONDecoder().decode(Obj6.self, from: data)
1549915711 }
1550015712
1550115713 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15510,36 +15722,72 @@ extension Utf8JSONReader {
1551015722 }
1551115723
1551215724 func with(
15513- utf8JSONReader: Int? = nil
15514- ) -> Utf8JSONReader {
15515- return Utf8JSONReader(
15516- utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
15517- )
15518- }
15519-
15520- func jsonData() throws -> Data {
15521- return try newJSONEncoder().encode(self)
15522- }
15523-
15524- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15525- return String(data: try self.jsonData(), encoding: encoding)
15526- }
15725+ dummy: Int? = nil,
15726+ obj6Var: Var? = nil,
15727+ obj6Weak: Weak? = nil,
15728+ obj6Where: Where? = nil,
15729+ obj6While: While? = nil,
15730+ obj6WillSet: WillSet? = nil,
15731+ using: Using? = nil,
15732+ utf8JSONReader: Utf8JSONReader? = nil,
15733+ utf8JSONWriter: Utf8JSONWriter? = nil,
15734+ uuid: UUIDClass? = nil,
15735+ virtual: Virtual? = nil,
15736+ void: Void? = nil,
15737+ volatile: Volatile? = nil,
15738+ wcharT: WcharT? = nil,
15739+ with: With? = nil,
15740+ xor: Xor? = nil,
15741+ xorEq: XorEq? = nil,
15742+ yes: Yes? = nil,
15743+ yield: Yield? = nil
15744+ ) -> Obj6 {
15745+ return Obj6(
15746+ dummy: dummy ?? self.dummy,
15747+ obj6Var: obj6Var ?? self.obj6Var,
15748+ obj6Weak: obj6Weak ?? self.obj6Weak,
15749+ obj6Where: obj6Where ?? self.obj6Where,
15750+ obj6While: obj6While ?? self.obj6While,
15751+ obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15752+ using: using ?? self.using,
15753+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
15754+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
15755+ uuid: uuid ?? self.uuid,
15756+ virtual: virtual ?? self.virtual,
15757+ void: void ?? self.void,
15758+ volatile: volatile ?? self.volatile,
15759+ wcharT: wcharT ?? self.wcharT,
15760+ with: with ?? self.with,
15761+ xor: xor ?? self.xor,
15762+ xorEq: xorEq ?? self.xorEq,
15763+ yes: yes ?? self.yes,
15764+ yield: yield ?? self.yield
15765+ )
15766+ }
15767+
15768+ func jsonData() throws -> Data {
15769+ return try newJSONEncoder().encode(self)
15770+ }
15771+
15772+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15773+ return String(data: try self.jsonData(), encoding: encoding)
15774+ }
1552715775 }
1552815776
15529-// MARK: - Utf8JSONWriter
15530-struct Utf8JSONWriter: Codable, Sendable {
15531- let utf8JSONWriter: Int
15777+// MARK: - Var
15778+struct Var: Codable, Sendable {
15779+ let varVar: Int
1553215780
1553315781 enum CodingKeys: String, CodingKey {
15534- case utf8JSONWriter = "Utf8JsonWriter"
15782+ case varVar = "var"
1553515783 }
1553615784 }
1553715785
15538-// MARK: Utf8JSONWriter convenience initializers and mutators
15786+// MARK: Var convenience initializers and mutators
1553915787
15540-extension Utf8JSONWriter {
15788+extension Var {
1554115789 init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
15790+ self = try newJSONDecoder().decode(Var.self, from: data)
1554315791 }
1554415792
1554515793 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15554,10 +15802,10 @@ extension Utf8JSONWriter {
1555415802 }
1555515803
1555615804 func with(
15557- utf8JSONWriter: Int? = nil
15558- ) -> Utf8JSONWriter {
15559- return Utf8JSONWriter(
15560- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
15805+ varVar: Int? = nil
15806+ ) -> Var {
15807+ return Var(
15808+ varVar: varVar ?? self.varVar
1556115809 )
1556215810 }
1556315811
@@ -15570,20 +15818,20 @@ extension Utf8JSONWriter {
1557015818 }
1557115819 }
1557215820
15573-// MARK: - UUIDClass
15574-struct UUIDClass: Codable, Sendable {
15575- let uuid: Int
15821+// MARK: - Weak
15822+struct Weak: Codable, Sendable {
15823+ let weakWeak: Int
1557615824
1557715825 enum CodingKeys: String, CodingKey {
15578- case uuid = "UUID"
15826+ case weakWeak = "weak"
1557915827 }
1558015828 }
1558115829
15582-// MARK: UUIDClass convenience initializers and mutators
15830+// MARK: Weak convenience initializers and mutators
1558315831
15584-extension UUIDClass {
15832+extension Weak {
1558515833 init(data: Data) throws {
15586- self = try newJSONDecoder().decode(UUIDClass.self, from: data)
15834+ self = try newJSONDecoder().decode(Weak.self, from: data)
1558715835 }
1558815836
1558915837 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15598,10 +15846,10 @@ extension UUIDClass {
1559815846 }
1559915847
1560015848 func with(
15601- uuid: Int? = nil
15602- ) -> UUIDClass {
15603- return UUIDClass(
15604- uuid: uuid ?? self.uuid
15849+ weakWeak: Int? = nil
15850+ ) -> Weak {
15851+ return Weak(
15852+ weakWeak: weakWeak ?? self.weakWeak
1560515853 )
1560615854 }
1560715855
@@ -15614,20 +15862,20 @@ extension UUIDClass {
1561415862 }
1561515863 }
1561615864
15617-// MARK: - Virtual
15618-struct Virtual: Codable, Sendable {
15619- let virtual: Int
15865+// MARK: - Where
15866+struct Where: Codable, Sendable {
15867+ let whereWhere: Int
1562015868
1562115869 enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15870+ case whereWhere = "where"
1562315871 }
1562415872 }
1562515873
15626-// MARK: Virtual convenience initializers and mutators
15874+// MARK: Where convenience initializers and mutators
1562715875
15628-extension Virtual {
15876+extension Where {
1562915877 init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.self, from: data)
15878+ self = try newJSONDecoder().decode(Where.self, from: data)
1563115879 }
1563215880
1563315881 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15642,10 +15890,10 @@ extension Virtual {
1564215890 }
1564315891
1564415892 func with(
15645- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
15893+ whereWhere: Int? = nil
15894+ ) -> Where {
15895+ return Where(
15896+ whereWhere: whereWhere ?? self.whereWhere
1564915897 )
1565015898 }
1565115899
@@ -15658,44 +15906,20 @@ extension Virtual {
1565815906 }
1565915907 }
1566015908
15661-// MARK: - Obj6
15662-struct Obj6: Codable, Sendable {
15663- let dummy: Int
15664- let obj6Weak: Weak
15665- let obj6Where: Where
15666- let obj6While: While
15667- let obj6WillSet: WillSet
15668- let void: Void
15669- let volatile: Volatile
15670- let wcharT: WcharT
15671- let with: With
15672- let xor: Xor
15673- let xorEq: XorEq
15674- let yes: Yes
15675- let yield: Yield
15909+// MARK: - While
15910+struct While: Codable, Sendable {
15911+ let whileWhile: Int
1567615912
1567715913 enum CodingKeys: String, CodingKey {
15678- case dummy = "dummy"
15679- case obj6Weak = "weak"
15680- case obj6Where = "where"
15681- case obj6While = "while"
15682- case obj6WillSet = "willSet"
15683- case void = "void"
15684- case volatile = "volatile"
15685- case wcharT = "wchar_t"
15686- case with = "with"
15687- case xor = "xor"
15688- case xorEq = "xor_eq"
15689- case yes = "YES"
15690- case yield = "yield"
15914+ case whileWhile = "while"
1569115915 }
1569215916 }
1569315917
15694-// MARK: Obj6 convenience initializers and mutators
15918+// MARK: While convenience initializers and mutators
1569515919
15696-extension Obj6 {
15920+extension While {
1569715921 init(data: Data) throws {
15698- self = try newJSONDecoder().decode(Obj6.self, from: data)
15922+ self = try newJSONDecoder().decode(While.self, from: data)
1569915923 }
1570015924
1570115925 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15710,34 +15934,10 @@ extension Obj6 {
1571015934 }
1571115935
1571215936 func with(
15713- dummy: Int? = nil,
15714- obj6Weak: Weak? = nil,
15715- obj6Where: Where? = nil,
15716- obj6While: While? = nil,
15717- obj6WillSet: WillSet? = nil,
15718- void: Void? = nil,
15719- volatile: Volatile? = nil,
15720- wcharT: WcharT? = nil,
15721- with: With? = nil,
15722- xor: Xor? = nil,
15723- xorEq: XorEq? = nil,
15724- yes: Yes? = nil,
15725- yield: Yield? = nil
15726- ) -> Obj6 {
15727- return Obj6(
15728- dummy: dummy ?? self.dummy,
15729- obj6Weak: obj6Weak ?? self.obj6Weak,
15730- obj6Where: obj6Where ?? self.obj6Where,
15731- obj6While: obj6While ?? self.obj6While,
15732- obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15733- void: void ?? self.void,
15734- volatile: volatile ?? self.volatile,
15735- wcharT: wcharT ?? self.wcharT,
15736- with: with ?? self.with,
15737- xor: xor ?? self.xor,
15738- xorEq: xorEq ?? self.xorEq,
15739- yes: yes ?? self.yes,
15740- yield: yield ?? self.yield
15937+ whileWhile: Int? = nil
15938+ ) -> While {
15939+ return While(
15940+ whileWhile: whileWhile ?? self.whileWhile
1574115941 )
1574215942 }
1574315943
@@ -15750,20 +15950,20 @@ extension Obj6 {
1575015950 }
1575115951 }
1575215952
15753-// MARK: - Weak
15754-struct Weak: Codable, Sendable {
15755- let weakWeak: Int
15953+// MARK: - WillSet
15954+struct WillSet: Codable, Sendable {
15955+ let willSetWillSet: Int
1575615956
1575715957 enum CodingKeys: String, CodingKey {
15758- case weakWeak = "weak"
15958+ case willSetWillSet = "willSet"
1575915959 }
1576015960 }
1576115961
15762-// MARK: Weak convenience initializers and mutators
15962+// MARK: WillSet convenience initializers and mutators
1576315963
15764-extension Weak {
15964+extension WillSet {
1576515965 init(data: Data) throws {
15766- self = try newJSONDecoder().decode(Weak.self, from: data)
15966+ self = try newJSONDecoder().decode(WillSet.self, from: data)
1576715967 }
1576815968
1576915969 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15778,10 +15978,10 @@ extension Weak {
1577815978 }
1577915979
1578015980 func with(
15781- weakWeak: Int? = nil
15782- ) -> Weak {
15783- return Weak(
15784- weakWeak: weakWeak ?? self.weakWeak
15981+ willSetWillSet: Int? = nil
15982+ ) -> WillSet {
15983+ return WillSet(
15984+ willSetWillSet: willSetWillSet ?? self.willSetWillSet
1578515985 )
1578615986 }
1578715987
@@ -15794,20 +15994,20 @@ extension Weak {
1579415994 }
1579515995 }
1579615996
15797-// MARK: - Where
15798-struct Where: Codable, Sendable {
15799- let whereWhere: Int
15997+// MARK: - Using
15998+struct Using: Codable, Sendable {
15999+ let using: Int
1580016000
1580116001 enum CodingKeys: String, CodingKey {
15802- case whereWhere = "where"
16002+ case using = "using"
1580316003 }
1580416004 }
1580516005
15806-// MARK: Where convenience initializers and mutators
16006+// MARK: Using convenience initializers and mutators
1580716007
15808-extension Where {
16008+extension Using {
1580916009 init(data: Data) throws {
15810- self = try newJSONDecoder().decode(Where.self, from: data)
16010+ self = try newJSONDecoder().decode(Using.self, from: data)
1581116011 }
1581216012
1581316013 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15822,10 +16022,10 @@ extension Where {
1582216022 }
1582316023
1582416024 func with(
15825- whereWhere: Int? = nil
15826- ) -> Where {
15827- return Where(
15828- whereWhere: whereWhere ?? self.whereWhere
16025+ using: Int? = nil
16026+ ) -> Using {
16027+ return Using(
16028+ using: using ?? self.using
1582916029 )
1583016030 }
1583116031
@@ -15838,20 +16038,20 @@ extension Where {
1583816038 }
1583916039 }
1584016040
15841-// MARK: - While
15842-struct While: Codable, Sendable {
15843- let whileWhile: Int
16041+// MARK: - Utf8JSONReader
16042+struct Utf8JSONReader: Codable, Sendable {
16043+ let utf8JSONReader: Int
1584416044
1584516045 enum CodingKeys: String, CodingKey {
15846- case whileWhile = "while"
16046+ case utf8JSONReader = "Utf8JsonReader"
1584716047 }
1584816048 }
1584916049
15850-// MARK: While convenience initializers and mutators
16050+// MARK: Utf8JSONReader convenience initializers and mutators
1585116051
15852-extension While {
16052+extension Utf8JSONReader {
1585316053 init(data: Data) throws {
15854- self = try newJSONDecoder().decode(While.self, from: data)
16054+ self = try newJSONDecoder().decode(Utf8JSONReader.self, from: data)
1585516055 }
1585616056
1585716057 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15866,10 +16066,10 @@ extension While {
1586616066 }
1586716067
1586816068 func with(
15869- whileWhile: Int? = nil
15870- ) -> While {
15871- return While(
15872- whileWhile: whileWhile ?? self.whileWhile
16069+ utf8JSONReader: Int? = nil
16070+ ) -> Utf8JSONReader {
16071+ return Utf8JSONReader(
16072+ utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader
1587316073 )
1587416074 }
1587516075
@@ -15882,20 +16082,20 @@ extension While {
1588216082 }
1588316083 }
1588416084
15885-// MARK: - WillSet
15886-struct WillSet: Codable, Sendable {
15887- let willSetWillSet: Int
16085+// MARK: - Utf8JSONWriter
16086+struct Utf8JSONWriter: Codable, Sendable {
16087+ let utf8JSONWriter: Int
1588816088
1588916089 enum CodingKeys: String, CodingKey {
15890- case willSetWillSet = "willSet"
16090+ case utf8JSONWriter = "Utf8JsonWriter"
1589116091 }
1589216092 }
1589316093
15894-// MARK: WillSet convenience initializers and mutators
16094+// MARK: Utf8JSONWriter convenience initializers and mutators
1589516095
15896-extension WillSet {
16096+extension Utf8JSONWriter {
1589716097 init(data: Data) throws {
15898- self = try newJSONDecoder().decode(WillSet.self, from: data)
16098+ self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data)
1589916099 }
1590016100
1590116101 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15910,10 +16110,98 @@ extension WillSet {
1591016110 }
1591116111
1591216112 func with(
15913- willSetWillSet: Int? = nil
15914- ) -> WillSet {
15915- return WillSet(
15916- willSetWillSet: willSetWillSet ?? self.willSetWillSet
16113+ utf8JSONWriter: Int? = nil
16114+ ) -> Utf8JSONWriter {
16115+ return Utf8JSONWriter(
16116+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
16117+ )
16118+ }
16119+
16120+ func jsonData() throws -> Data {
16121+ return try newJSONEncoder().encode(self)
16122+ }
16123+
16124+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16125+ return String(data: try self.jsonData(), encoding: encoding)
16126+ }
16127+}
16128+
16129+// MARK: - UUIDClass
16130+struct UUIDClass: Codable, Sendable {
16131+ let uuid: Int
16132+
16133+ enum CodingKeys: String, CodingKey {
16134+ case uuid = "UUID"
16135+ }
16136+}
16137+
16138+// MARK: UUIDClass convenience initializers and mutators
16139+
16140+extension UUIDClass {
16141+ init(data: Data) throws {
16142+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
16143+ }
16144+
16145+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16146+ guard let data = json.data(using: encoding) else {
16147+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16148+ }
16149+ try self.init(data: data)
16150+ }
16151+
16152+ init(fromURL url: URL) throws {
16153+ try self.init(data: try Data(contentsOf: url))
16154+ }
16155+
16156+ func with(
16157+ uuid: Int? = nil
16158+ ) -> UUIDClass {
16159+ return UUIDClass(
16160+ uuid: uuid ?? self.uuid
16161+ )
16162+ }
16163+
16164+ func jsonData() throws -> Data {
16165+ return try newJSONEncoder().encode(self)
16166+ }
16167+
16168+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16169+ return String(data: try self.jsonData(), encoding: encoding)
16170+ }
16171+}
16172+
16173+// MARK: - Virtual
16174+struct Virtual: Codable, Sendable {
16175+ let virtual: Int
16176+
16177+ enum CodingKeys: String, CodingKey {
16178+ case virtual = "virtual"
16179+ }
16180+}
16181+
16182+// MARK: Virtual convenience initializers and mutators
16183+
16184+extension Virtual {
16185+ init(data: Data) throws {
16186+ self = try newJSONDecoder().decode(Virtual.self, from: data)
16187+ }
16188+
16189+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16190+ guard let data = json.data(using: encoding) else {
16191+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16192+ }
16193+ try self.init(data: data)
16194+ }
16195+
16196+ init(fromURL url: URL) throws {
16197+ try self.init(data: try Data(contentsOf: url))
16198+ }
16199+
16200+ func with(
16201+ virtual: Int? = nil
16202+ ) -> Virtual {
16203+ return Virtual(
16204+ virtual: virtual ?? self.virtual
1591716205 )
1591816206 }
Mtypescript-effect-schemadefault / TopLevel.ts+52 −22
@@ -55,22 +55,6 @@ export class Void extends S.Class<Void>("Void")({
5555 "void": S.Int,
5656 }) {}
5757
58-export class Obj6 extends S.Class<Obj6>("Obj6")({
59- "dummy": S.Int,
60- "void": Void,
61- "volatile": Volatile,
62- "wchar_t": WcharT,
63- "weak": Weak,
64- "where": Where,
65- "while": While,
66- "willSet": WillSet,
67- "with": With,
68- "xor": Xor,
69- "xor_eq": XorEq,
70- "YES": Yes,
71- "yield": Yield,
72-}) {}
73-
7458 export class Virtual extends S.Class<Virtual>("Virtual")({
7559 "virtual": S.Int,
7660 }) {}
@@ -95,10 +79,36 @@ export class Using extends S.Class<Using>("Using")({
9579 "using": S.Int,
9680 }) {}
9781
82+export class Obj6 extends S.Class<Obj6>("Obj6")({
83+ "dummy": S.Int,
84+ "using": Using,
85+ "Utf8JsonReader": Utf8JsonReader,
86+ "Utf8JsonWriter": Utf8JsonWriter,
87+ "UUID": Uuid,
88+ "var": Var,
89+ "virtual": Virtual,
90+ "void": Void,
91+ "volatile": Volatile,
92+ "wchar_t": WcharT,
93+ "weak": Weak,
94+ "where": Where,
95+ "while": While,
96+ "willSet": WillSet,
97+ "with": With,
98+ "xor": Xor,
99+ "xor_eq": XorEq,
100+ "YES": Yes,
101+ "yield": Yield,
102+}) {}
103+
98104 export class Ushort extends S.Class<Ushort>("Ushort")({
99105 "ushort": S.Int,
100106 }) {}
101107
108+export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({
109+ "UseSerializers": S.Int,
110+}) {}
111+
102112 export class Unsigned extends S.Class<Unsigned>("Unsigned")({
103113 "unsigned": S.Int,
104114 }) {}
@@ -308,6 +318,18 @@ export class Serialize extends S.Class<Serialize>("Serialize")({
308318 "serialize": S.Int,
309319 }) {}
310320
321+export class Serializable extends S.Class<Serializable>("Serializable")({
322+ "Serializable": S.Int,
323+}) {}
324+
325+export class SerialName extends S.Class<SerialName>("SerialName")({
326+ "SerialName": S.Int,
327+}) {}
328+
329+export class SerialDescriptor extends S.Class<SerialDescriptor>("SerialDescriptor")({
330+ "SerialDescriptor": S.Int,
331+}) {}
332+
311333 export class Sendable extends S.Class<Sendable>("Sendable")({
312334 "Sendable": S.Int,
313335 }) {}
@@ -316,6 +338,10 @@ export class Self extends S.Class<Self>("Self")({
316338 "Self": S.Int,
317339 }) {}
318340
341+export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
342+ "PrimitiveKind": S.Int,
343+}) {}
344+
319345 export class TypeClass extends S.Class<TypeClass>("TypeClass")({
320346 "type": S.Int,
321347 }) {}
@@ -328,13 +354,22 @@ export class SelfClass extends S.Class<SelfClass>("SelfClass")({
328354 "self": S.Int,
329355 }) {}
330356
357+export class KSerializer extends S.Class<KSerializer>("KSerializer")({
358+ "KSerializer": S.Int,
359+}) {}
360+
331361 export class Obj5 extends S.Class<Obj5>("Obj5")({
332362 "dummy": S.Int,
363+ "KSerializer": KSerializer,
333364 "self": SelfClass,
334365 "true": TrueClass,
335366 "type": TypeClass,
367+ "PrimitiveKind": PrimitiveKind,
336368 "Self": Self,
337369 "Sendable": Sendable,
370+ "SerialDescriptor": SerialDescriptor,
371+ "SerialName": SerialName,
372+ "Serializable": Serializable,
338373 "serialize": Serialize,
339374 "SerializerProvider": SerializerProvider,
340375 "set": Set,
@@ -387,13 +422,8 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
387422 "unowned": Unowned,
388423 "unsafe": Unsafe,
389424 "unsigned": Unsigned,
425+ "UseSerializers": UseSerializers,
390426 "ushort": Ushort,
391- "using": Using,
392- "Utf8JsonReader": Utf8JsonReader,
393- "Utf8JsonWriter": Utf8JsonWriter,
394- "UUID": Uuid,
395- "var": Var,
396- "virtual": Virtual,
397427 }) {}
398428 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
Mtypescript-zoddefault / TopLevel.ts+41 −5
@@ -1287,6 +1287,11 @@ export const SelectSchema = z.object({
12871287 });
12881288 export type Select = z.infer<typeof SelectSchema>;
12891289
1290+export const KSerializerSchema = z.object({
1291+ "KSerializer": z.number().int(),
1292+});
1293+export type KSerializer = z.infer<typeof KSerializerSchema>;
1294+
12901295 export const SelfClassSchema = z.object({
12911296 "self": z.number().int(),
12921297 });
@@ -1302,6 +1307,11 @@ export const TypeClassSchema = z.object({
13021307 });
13031308 export type TypeClass = z.infer<typeof TypeClassSchema>;
13041309
1310+export const PrimitiveKindSchema = z.object({
1311+ "PrimitiveKind": z.number().int(),
1312+});
1313+export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
1314+
13051315 export const SelfSchema = z.object({
13061316 "Self": z.number().int(),
13071317 });
@@ -1312,6 +1322,21 @@ export const SendableSchema = z.object({
13121322 });
13131323 export type Sendable = z.infer<typeof SendableSchema>;
13141324
1325+export const SerialDescriptorSchema = z.object({
1326+ "SerialDescriptor": z.number().int(),
1327+});
1328+export type SerialDescriptor = z.infer<typeof SerialDescriptorSchema>;
1329+
1330+export const SerialNameSchema = z.object({
1331+ "SerialName": z.number().int(),
1332+});
1333+export type SerialName = z.infer<typeof SerialNameSchema>;
1334+
1335+export const SerializableSchema = z.object({
1336+ "Serializable": z.number().int(),
1337+});
1338+export type Serializable = z.infer<typeof SerializableSchema>;
1339+
13151340 export const SerializeSchema = z.object({
13161341 "serialize": z.number().int(),
13171342 });
@@ -1572,6 +1597,11 @@ export const UnsignedSchema = z.object({
15721597 });
15731598 export type Unsigned = z.infer<typeof UnsignedSchema>;
15741599
1600+export const UseSerializersSchema = z.object({
1601+ "UseSerializers": z.number().int(),
1602+});
1603+export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1604+
15751605 export const UshortSchema = z.object({
15761606 "ushort": z.number().int(),
15771607 });
@@ -1945,11 +1975,16 @@ export type Obj4 = z.infer<typeof Obj4Schema>;
19451975
19461976 export const Obj5Schema = z.object({
19471977 "dummy": z.number().int(),
1978+ "KSerializer": KSerializerSchema,
19481979 "self": SelfClassSchema,
19491980 "true": TrueClassSchema,
19501981 "type": TypeClassSchema,
1982+ "PrimitiveKind": PrimitiveKindSchema,
19511983 "Self": SelfSchema,
19521984 "Sendable": SendableSchema,
1985+ "SerialDescriptor": SerialDescriptorSchema,
1986+ "SerialName": SerialNameSchema,
1987+ "Serializable": SerializableSchema,
19531988 "serialize": SerializeSchema,
19541989 "SerializerProvider": SerializerProviderSchema,
19551990 "set": SetSchema,
@@ -2002,18 +2037,19 @@ export const Obj5Schema = z.object({
20022037 "unowned": UnownedSchema,
20032038 "unsafe": UnsafeSchema,
20042039 "unsigned": UnsignedSchema,
2040+ "UseSerializers": UseSerializersSchema,
20052041 "ushort": UshortSchema,
2042+});
2043+export type Obj5 = z.infer<typeof Obj5Schema>;
2044+
2045+export const Obj6Schema = z.object({
2046+ "dummy": z.number().int(),
20062047 "using": UsingSchema,
20072048 "Utf8JsonReader": Utf8JsonReaderSchema,
20082049 "Utf8JsonWriter": Utf8JsonWriterSchema,
20092050 "UUID": UuidSchema,
20102051 "var": VarSchema,
20112052 "virtual": VirtualSchema,
2012-});
2013-export type Obj5 = z.infer<typeof Obj5Schema>;
2014-
2015-export const Obj6Schema = z.object({
2016- "dummy": z.number().int(),
20172053 "void": VoidSchema,
20182054 "volatile": VolatileSchema,
20192055 "wchar_t": WcharTSchema,
Mtypescriptdefault / TopLevel.ts+113 −59
@@ -1316,8 +1316,13 @@ export interface Select {
13161316 }
13171317
13181318 export interface Obj5 {
1319+ KSerializer: KSerializer;
1320+ PrimitiveKind: PrimitiveKind;
13191321 Self: Self;
13201322 Sendable: Sendable;
1323+ SerialDescriptor: SerialDescriptor;
1324+ SerialName: SerialName;
1325+ Serializable: Serializable;
13211326 SerializerProvider: SerializerProvider;
13221327 SimpleModule: SimpleModule;
13231328 Standards: Standards;
@@ -1328,9 +1333,7 @@ export interface Obj5 {
13281333 TimeZone: TimeZone;
13291334 True: True;
13301335 Type: Type;
1331- UUID: UUID;
1332- Utf8JsonReader: Utf8JSONReader;
1333- Utf8JsonWriter: Utf8JSONWriter;
1336+ UseSerializers: UseSerializers;
13341337 dummy: number;
13351338 self: SelfClass;
13361339 serialize: Serialize;
@@ -1378,9 +1381,14 @@ export interface Obj5 {
13781381 unsafe: Unsafe;
13791382 unsigned: Unsigned;
13801383 ushort: Ushort;
1381- using: Using;
1382- var: Var;
1383- virtual: Virtual;
1384+}
1385+
1386+export interface KSerializer {
1387+ KSerializer: number;
1388+}
1389+
1390+export interface PrimitiveKind {
1391+ PrimitiveKind: number;
13841392 }
13851393
13861394 export interface Self {
@@ -1391,6 +1399,18 @@ export interface Sendable {
13911399 Sendable: number;
13921400 }
13931401
1402+export interface SerialDescriptor {
1403+ SerialDescriptor: number;
1404+}
1405+
1406+export interface SerialName {
1407+ SerialName: number;
1408+}
1409+
1410+export interface Serializable {
1411+ Serializable: number;
1412+}
1413+
13941414 export interface SerializerProvider {
13951415 SerializerProvider: number;
13961416 }
@@ -1431,16 +1451,8 @@ export interface Type {
14311451 Type: number;
14321452 }
14331453
1434-export interface UUID {
1435- UUID: number;
1436-}
1437-
1438-export interface Utf8JSONReader {
1439- Utf8JsonReader: number;
1440-}
1441-
1442-export interface Utf8JSONWriter {
1443- Utf8JsonWriter: number;
1454+export interface UseSerializers {
1455+ UseSerializers: number;
14441456 }
14451457
14461458 export interface SelfClass {
@@ -1627,38 +1639,56 @@ export interface Ushort {
16271639 ushort: number;
16281640 }
16291641
1630-export interface Using {
1631- using: number;
1642+export interface Obj6 {
1643+ UUID: UUID;
1644+ Utf8JsonReader: Utf8JSONReader;
1645+ Utf8JsonWriter: Utf8JSONWriter;
1646+ YES: Yes;
1647+ dummy: number;
1648+ using: Using;
1649+ var: Var;
1650+ virtual: Virtual;
1651+ void: Void;
1652+ volatile: Volatile;
1653+ wchar_t: WcharT;
1654+ weak: Weak;
1655+ where: Where;
1656+ while: While;
1657+ willSet: WillSet;
1658+ with: With;
1659+ xor: Xor;
1660+ xor_eq: XorEq;
1661+ yield: Yield;
16321662 }
16331663
1634-export interface Var {
1635- var: number;
1664+export interface UUID {
1665+ UUID: number;
16361666 }
16371667
1638-export interface Virtual {
1639- virtual: number;
1668+export interface Utf8JSONReader {
1669+ Utf8JsonReader: number;
16401670 }
16411671
1642-export interface Obj6 {
1643- YES: Yes;
1644- dummy: number;
1645- void: Void;
1646- volatile: Volatile;
1647- wchar_t: WcharT;
1648- weak: Weak;
1649- where: Where;
1650- while: While;
1651- willSet: WillSet;
1652- with: With;
1653- xor: Xor;
1654- xor_eq: XorEq;
1655- yield: Yield;
1672+export interface Utf8JSONWriter {
1673+ Utf8JsonWriter: number;
16561674 }
16571675
16581676 export interface Yes {
16591677 YES: number;
16601678 }
16611679
1680+export interface Using {
1681+ using: number;
1682+}
1683+
1684+export interface Var {
1685+ var: number;
1686+}
1687+
1688+export interface Virtual {
1689+ virtual: number;
1690+}
1691+
16621692 export interface Void {
16631693 void: number;
16641694 }
@@ -2937,8 +2967,13 @@ const typeMap: any = {
29372967 { json: "select", js: "select", typ: i(0) },
29382968 ], false),
29392969 "Obj5": o([
2970+ { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
2971+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
29402972 { json: "Self", js: "Self", typ: r("Self") },
29412973 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
2974+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
2975+ { json: "SerialName", js: "SerialName", typ: r("SerialName") },
2976+ { json: "Serializable", js: "Serializable", typ: r("Serializable") },
29422977 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
29432978 { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") },
29442979 { json: "Standards", js: "Standards", typ: r("Standards") },
@@ -2949,9 +2984,7 @@ const typeMap: any = {
29492984 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29502985 { json: "True", js: "True", typ: r("True") },
29512986 { json: "Type", js: "Type", typ: r("Type") },
2952- { json: "UUID", js: "UUID", typ: r("UUID") },
2953- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
2954- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
2987+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29552988 { json: "dummy", js: "dummy", typ: i(0) },
29562989 { json: "self", js: "self", typ: r("SelfClass") },
29572990 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -2999,9 +3032,12 @@ const typeMap: any = {
29993032 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30003033 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013034 { json: "ushort", js: "ushort", typ: r("Ushort") },
3002- { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
3035+ ], false),
3036+ "KSerializer": o([
3037+ { json: "KSerializer", js: "KSerializer", typ: i(0) },
3038+ ], false),
3039+ "PrimitiveKind": o([
3040+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30053041 ], false),
30063042 "Self": o([
30073043 { json: "Self", js: "Self", typ: i(0) },
@@ -3009,6 +3045,15 @@ const typeMap: any = {
30093045 "Sendable": o([
30103046 { json: "Sendable", js: "Sendable", typ: i(0) },
30113047 ], false),
3048+ "SerialDescriptor": o([
3049+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: i(0) },
3050+ ], false),
3051+ "SerialName": o([
3052+ { json: "SerialName", js: "SerialName", typ: i(0) },
3053+ ], false),
3054+ "Serializable": o([
3055+ { json: "Serializable", js: "Serializable", typ: i(0) },
3056+ ], false),
30123057 "SerializerProvider": o([
30133058 { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) },
30143059 ], false),
@@ -3039,14 +3084,8 @@ const typeMap: any = {
30393084 "Type": o([
30403085 { json: "Type", js: "Type", typ: i(0) },
30413086 ], false),
3042- "UUID": o([
3043- { json: "UUID", js: "UUID", typ: i(0) },
3044- ], false),
3045- "Utf8JSONReader": o([
3046- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3047- ], false),
3048- "Utf8JSONWriter": o([
3049- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3087+ "UseSerializers": o([
3088+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30503089 ], false),
30513090 "SelfClass": o([
30523091 { json: "self", js: "self", typ: i(0) },
@@ -3186,18 +3225,15 @@ const typeMap: any = {
31863225 "Ushort": o([
31873226 { json: "ushort", js: "ushort", typ: i(0) },
31883227 ], false),
3189- "Using": o([
3190- { json: "using", js: "using", typ: i(0) },
3191- ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983228 "Obj6": o([
3229+ { json: "UUID", js: "UUID", typ: r("UUID") },
3230+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
3231+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
31993232 { json: "YES", js: "YES", typ: r("Yes") },
32003233 { json: "dummy", js: "dummy", typ: i(0) },
3234+ { json: "using", js: "using", typ: r("Using") },
3235+ { json: "var", js: "var", typ: r("Var") },
3236+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013237 { json: "void", js: "void", typ: r("Void") },
32023238 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033239 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3210,9 +3246,27 @@ const typeMap: any = {
32103246 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32113247 { json: "yield", js: "yield", typ: r("Yield") },
32123248 ], false),
3249+ "UUID": o([
3250+ { json: "UUID", js: "UUID", typ: i(0) },
3251+ ], false),
3252+ "Utf8JSONReader": o([
3253+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3254+ ], false),
3255+ "Utf8JSONWriter": o([
3256+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3257+ ], false),
32133258 "Yes": o([
32143259 { json: "YES", js: "YES", typ: i(0) },
32153260 ], false),
3261+ "Using": o([
3262+ { json: "using", js: "using", typ: i(0) },
3263+ ], false),
3264+ "Var": o([
3265+ { json: "var", js: "var", typ: i(0) },
3266+ ], false),
3267+ "Virtual": o([
3268+ { json: "virtual", js: "virtual", typ: i(0) },
3269+ ], false),
32163270 "Void": o([
32173271 { json: "void", js: "void", typ: i(0) },
32183272 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+113 −59
@@ -1316,8 +1316,13 @@ export type Select = {
13161316 }
13171317
13181318 export type Obj5 = {
1319+ KSerializer: KSerializer;
1320+ PrimitiveKind: PrimitiveKind;
13191321 Self: Self;
13201322 Sendable: Sendable;
1323+ SerialDescriptor: SerialDescriptor;
1324+ SerialName: SerialName;
1325+ Serializable: Serializable;
13211326 SerializerProvider: SerializerProvider;
13221327 SimpleModule: SimpleModule;
13231328 Standards: Standards;
@@ -1328,9 +1333,7 @@ export type Obj5 = {
13281333 TimeZone: TimeZone;
13291334 True: True;
13301335 Type: Type;
1331- UUID: UUID;
1332- Utf8JsonReader: Utf8JSONReader;
1333- Utf8JsonWriter: Utf8JSONWriter;
1336+ UseSerializers: UseSerializers;
13341337 dummy: number;
13351338 self: SelfClass;
13361339 serialize: Serialize;
@@ -1378,9 +1381,14 @@ export type Obj5 = {
13781381 unsafe: Unsafe;
13791382 unsigned: Unsigned;
13801383 ushort: Ushort;
1381- using: Using;
1382- var: Var;
1383- virtual: Virtual;
1384+}
1385+
1386+export type KSerializer = {
1387+ KSerializer: number;
1388+}
1389+
1390+export type PrimitiveKind = {
1391+ PrimitiveKind: number;
13841392 }
13851393
13861394 export type Self = {
@@ -1391,6 +1399,18 @@ export type Sendable = {
13911399 Sendable: number;
13921400 }
13931401
1402+export type SerialDescriptor = {
1403+ SerialDescriptor: number;
1404+}
1405+
1406+export type SerialName = {
1407+ SerialName: number;
1408+}
1409+
1410+export type Serializable = {
1411+ Serializable: number;
1412+}
1413+
13941414 export type SerializerProvider = {
13951415 SerializerProvider: number;
13961416 }
@@ -1431,16 +1451,8 @@ export type Type = {
14311451 Type: number;
14321452 }
14331453
1434-export type UUID = {
1435- UUID: number;
1436-}
1437-
1438-export type Utf8JSONReader = {
1439- Utf8JsonReader: number;
1440-}
1441-
1442-export type Utf8JSONWriter = {
1443- Utf8JsonWriter: number;
1454+export type UseSerializers = {
1455+ UseSerializers: number;
14441456 }
14451457
14461458 export type SelfClass = {
@@ -1627,38 +1639,56 @@ export type Ushort = {
16271639 ushort: number;
16281640 }
16291641
1630-export type Using = {
1631- using: number;
1642+export type Obj6 = {
1643+ UUID: UUID;
1644+ Utf8JsonReader: Utf8JSONReader;
1645+ Utf8JsonWriter: Utf8JSONWriter;
1646+ YES: Yes;
1647+ dummy: number;
1648+ using: Using;
1649+ var: Var;
1650+ virtual: Virtual;
1651+ void: Void;
1652+ volatile: Volatile;
1653+ wchar_t: WcharT;
1654+ weak: Weak;
1655+ where: Where;
1656+ while: While;
1657+ willSet: WillSet;
1658+ with: With;
1659+ xor: Xor;
1660+ xor_eq: XorEq;
1661+ yield: Yield;
16321662 }
16331663
1634-export type Var = {
1635- var: number;
1664+export type UUID = {
1665+ UUID: number;
16361666 }
16371667
1638-export type Virtual = {
1639- virtual: number;
1668+export type Utf8JSONReader = {
1669+ Utf8JsonReader: number;
16401670 }
16411671
1642-export type Obj6 = {
1643- YES: Yes;
1644- dummy: number;
1645- void: Void;
1646- volatile: Volatile;
1647- wchar_t: WcharT;
1648- weak: Weak;
1649- where: Where;
1650- while: While;
1651- willSet: WillSet;
1652- with: With;
1653- xor: Xor;
1654- xor_eq: XorEq;
1655- yield: Yield;
1672+export type Utf8JSONWriter = {
1673+ Utf8JsonWriter: number;
16561674 }
16571675
16581676 export type Yes = {
16591677 YES: number;
16601678 }
16611679
1680+export type Using = {
1681+ using: number;
1682+}
1683+
1684+export type Var = {
1685+ var: number;
1686+}
1687+
1688+export type Virtual = {
1689+ virtual: number;
1690+}
1691+
16621692 export type Void = {
16631693 void: number;
16641694 }
@@ -2937,8 +2967,13 @@ const typeMap: any = {
29372967 { json: "select", js: "select", typ: i(0) },
29382968 ], false),
29392969 "Obj5": o([
2970+ { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
2971+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
29402972 { json: "Self", js: "Self", typ: r("Self") },
29412973 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
2974+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
2975+ { json: "SerialName", js: "SerialName", typ: r("SerialName") },
2976+ { json: "Serializable", js: "Serializable", typ: r("Serializable") },
29422977 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
29432978 { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") },
29442979 { json: "Standards", js: "Standards", typ: r("Standards") },
@@ -2949,9 +2984,7 @@ const typeMap: any = {
29492984 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29502985 { json: "True", js: "True", typ: r("True") },
29512986 { json: "Type", js: "Type", typ: r("Type") },
2952- { json: "UUID", js: "UUID", typ: r("UUID") },
2953- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
2954- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
2987+ { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29552988 { json: "dummy", js: "dummy", typ: i(0) },
29562989 { json: "self", js: "self", typ: r("SelfClass") },
29572990 { json: "serialize", js: "serialize", typ: r("Serialize") },
@@ -2999,9 +3032,12 @@ const typeMap: any = {
29993032 { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
30003033 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013034 { json: "ushort", js: "ushort", typ: r("Ushort") },
3002- { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
3035+ ], false),
3036+ "KSerializer": o([
3037+ { json: "KSerializer", js: "KSerializer", typ: i(0) },
3038+ ], false),
3039+ "PrimitiveKind": o([
3040+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30053041 ], false),
30063042 "Self": o([
30073043 { json: "Self", js: "Self", typ: i(0) },
@@ -3009,6 +3045,15 @@ const typeMap: any = {
30093045 "Sendable": o([
30103046 { json: "Sendable", js: "Sendable", typ: i(0) },
30113047 ], false),
3048+ "SerialDescriptor": o([
3049+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: i(0) },
3050+ ], false),
3051+ "SerialName": o([
3052+ { json: "SerialName", js: "SerialName", typ: i(0) },
3053+ ], false),
3054+ "Serializable": o([
3055+ { json: "Serializable", js: "Serializable", typ: i(0) },
3056+ ], false),
30123057 "SerializerProvider": o([
30133058 { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) },
30143059 ], false),
@@ -3039,14 +3084,8 @@ const typeMap: any = {
30393084 "Type": o([
30403085 { json: "Type", js: "Type", typ: i(0) },
30413086 ], false),
3042- "UUID": o([
3043- { json: "UUID", js: "UUID", typ: i(0) },
3044- ], false),
3045- "Utf8JSONReader": o([
3046- { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3047- ], false),
3048- "Utf8JSONWriter": o([
3049- { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3087+ "UseSerializers": o([
3088+ { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30503089 ], false),
30513090 "SelfClass": o([
30523091 { json: "self", js: "self", typ: i(0) },
@@ -3186,18 +3225,15 @@ const typeMap: any = {
31863225 "Ushort": o([
31873226 { json: "ushort", js: "ushort", typ: i(0) },
31883227 ], false),
3189- "Using": o([
3190- { json: "using", js: "using", typ: i(0) },
3191- ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983228 "Obj6": o([
3229+ { json: "UUID", js: "UUID", typ: r("UUID") },
3230+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
3231+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
31993232 { json: "YES", js: "YES", typ: r("Yes") },
32003233 { json: "dummy", js: "dummy", typ: i(0) },
3234+ { json: "using", js: "using", typ: r("Using") },
3235+ { json: "var", js: "var", typ: r("Var") },
3236+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013237 { json: "void", js: "void", typ: r("Void") },
32023238 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033239 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3210,9 +3246,27 @@ const typeMap: any = {
32103246 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32113247 { json: "yield", js: "yield", typ: r("Yield") },
32123248 ], false),
3249+ "UUID": o([
3250+ { json: "UUID", js: "UUID", typ: i(0) },
3251+ ], false),
3252+ "Utf8JSONReader": o([
3253+ { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
3254+ ], false),
3255+ "Utf8JSONWriter": o([
3256+ { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
3257+ ], false),
32133258 "Yes": o([
32143259 { json: "YES", js: "YES", typ: i(0) },
32153260 ], false),
3261+ "Using": o([
3262+ { json: "using", js: "using", typ: i(0) },
3263+ ], false),
3264+ "Var": o([
3265+ { json: "var", js: "var", typ: i(0) },
3266+ ], false),
3267+ "Virtual": o([
3268+ { json: "virtual", js: "virtual", typ: i(0) },
3269+ ], false),
32163270 "Void": o([
32173271 { json: "void", js: "void", typ: i(0) },
32183272 ], false),
Test case

test/inputs/schema/keyword-enum.schema

34 generated files · +420 −12
Mschema-cjsondefault / TopLevel.c+12 −0
@@ -265,9 +265,14 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
265265 else if (!strcmp(cJSON_GetStringValue(j), "SEL")) x = ENUM_SEL;
266266 else if (!strcmp(cJSON_GetStringValue(j), "select")) x = ENUM_SELECT;
267267 else if (!strcmp(cJSON_GetStringValue(j), "Self")) x = ENUM_SELF;
268+ else if (!strcmp(cJSON_GetStringValue(j), "Serializable")) x = ENUM_SERIALIZABLE;
268269 else if (!strcmp(cJSON_GetStringValue(j), "self")) x = ENUM_ENUM_SELF;
269270 else if (!strcmp(cJSON_GetStringValue(j), "Sendable")) x = ENUM_SENDABLE;
270271 else if (!strcmp(cJSON_GetStringValue(j), "serialize")) x = ENUM_SERIALIZE;
272+ else if (!strcmp(cJSON_GetStringValue(j), "SerialName")) x = ENUM_SERIAL_NAME;
273+ else if (!strcmp(cJSON_GetStringValue(j), "KSerializer")) x = ENUM_K_SERIALIZER;
274+ else if (!strcmp(cJSON_GetStringValue(j), "PrimitiveKind")) x = ENUM_PRIMITIVE_KIND;
275+ else if (!strcmp(cJSON_GetStringValue(j), "SerialDescriptor")) x = ENUM_SERIAL_DESCRIPTOR;
271276 else if (!strcmp(cJSON_GetStringValue(j), "SerializerProvider")) x = ENUM_SERIALIZER_PROVIDER;
272277 else if (!strcmp(cJSON_GetStringValue(j), "set")) x = ENUM_SET;
273278 else if (!strcmp(cJSON_GetStringValue(j), "short")) x = ENUM_SHORT;
@@ -318,6 +323,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
318323 else if (!strcmp(cJSON_GetStringValue(j), "unchecked")) x = ENUM_UNCHECKED;
319324 else if (!strcmp(cJSON_GetStringValue(j), "undefined")) x = ENUM_UNDEFINED;
320325 else if (!strcmp(cJSON_GetStringValue(j), "union")) x = ENUM_UNION;
326+ else if (!strcmp(cJSON_GetStringValue(j), "UseSerializers")) x = ENUM_USE_SERIALIZERS;
321327 else if (!strcmp(cJSON_GetStringValue(j), "unowned")) x = ENUM_UNOWNED;
322328 else if (!strcmp(cJSON_GetStringValue(j), "unsafe")) x = ENUM_UNSAFE;
323329 else if (!strcmp(cJSON_GetStringValue(j), "unsigned")) x = ENUM_UNSIGNED;
@@ -605,9 +611,14 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
605611 case ENUM_SEL: j = cJSON_CreateString("SEL"); break;
606612 case ENUM_SELECT: j = cJSON_CreateString("select"); break;
607613 case ENUM_SELF: j = cJSON_CreateString("Self"); break;
614+ case ENUM_SERIALIZABLE: j = cJSON_CreateString("Serializable"); break;
608615 case ENUM_ENUM_SELF: j = cJSON_CreateString("self"); break;
609616 case ENUM_SENDABLE: j = cJSON_CreateString("Sendable"); break;
610617 case ENUM_SERIALIZE: j = cJSON_CreateString("serialize"); break;
618+ case ENUM_SERIAL_NAME: j = cJSON_CreateString("SerialName"); break;
619+ case ENUM_K_SERIALIZER: j = cJSON_CreateString("KSerializer"); break;
620+ case ENUM_PRIMITIVE_KIND: j = cJSON_CreateString("PrimitiveKind"); break;
621+ case ENUM_SERIAL_DESCRIPTOR: j = cJSON_CreateString("SerialDescriptor"); break;
611622 case ENUM_SERIALIZER_PROVIDER: j = cJSON_CreateString("SerializerProvider"); break;
612623 case ENUM_SET: j = cJSON_CreateString("set"); break;
613624 case ENUM_SHORT: j = cJSON_CreateString("short"); break;
@@ -658,6 +669,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
658669 case ENUM_UNCHECKED: j = cJSON_CreateString("unchecked"); break;
659670 case ENUM_UNDEFINED: j = cJSON_CreateString("undefined"); break;
660671 case ENUM_UNION: j = cJSON_CreateString("union"); break;
672+ case ENUM_USE_SERIALIZERS: j = cJSON_CreateString("UseSerializers"); break;
661673 case ENUM_UNOWNED: j = cJSON_CreateString("unowned"); break;
662674 case ENUM_UNSAFE: j = cJSON_CreateString("unsafe"); break;
663675 case ENUM_UNSIGNED: j = cJSON_CreateString("unsigned"); break;
Mschema-cjsondefault / TopLevel.h+6 −0
@@ -306,9 +306,14 @@ enum Enum {
306306 ENUM_SEL,
307307 ENUM_SELECT,
308308 ENUM_SELF,
309+ ENUM_SERIALIZABLE,
309310 ENUM_ENUM_SELF,
310311 ENUM_SENDABLE,
311312 ENUM_SERIALIZE,
313+ ENUM_SERIAL_NAME,
314+ ENUM_K_SERIALIZER,
315+ ENUM_PRIMITIVE_KIND,
316+ ENUM_SERIAL_DESCRIPTOR,
312317 ENUM_SERIALIZER_PROVIDER,
313318 ENUM_SET,
314319 ENUM_SHORT,
@@ -359,6 +364,7 @@ enum Enum {
359364 ENUM_UNCHECKED,
360365 ENUM_UNDEFINED,
361366 ENUM_UNION,
367+ ENUM_USE_SERIALIZERS,
362368 ENUM_UNOWNED,
363369 ENUM_UNSAFE,
364370 ENUM_UNSIGNED,
Mschema-cplusplusdefault / quicktype.hpp+13 −1
@@ -89,7 +89,7 @@ namespace quicktype {
8989 }
9090 #endif
9191
92- enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
92+ enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
9393
9494 class TopLevel {
9595 public:
@@ -383,9 +383,14 @@ namespace quicktype {
383383 {"SEL", Enum::SEL},
384384 {"select", Enum::SELECT},
385385 {"Self", Enum::SELF},
386+ {"Serializable", Enum::SERIALIZABLE},
386387 {"self", Enum::ENUM_SELF},
387388 {"Sendable", Enum::SENDABLE},
388389 {"serialize", Enum::SERIALIZE},
390+ {"SerialName", Enum::SERIAL_NAME},
391+ {"KSerializer", Enum::K_SERIALIZER},
392+ {"PrimitiveKind", Enum::PRIMITIVE_KIND},
393+ {"SerialDescriptor", Enum::SERIAL_DESCRIPTOR},
389394 {"SerializerProvider", Enum::SERIALIZER_PROVIDER},
390395 {"set", Enum::SET},
391396 {"short", Enum::SHORT},
@@ -436,6 +441,7 @@ namespace quicktype {
436441 {"unchecked", Enum::UNCHECKED},
437442 {"undefined", Enum::UNDEFINED},
438443 {"union", Enum::UNION},
444+ {"UseSerializers", Enum::USE_SERIALIZERS},
439445 {"unowned", Enum::UNOWNED},
440446 {"unsafe", Enum::UNSAFE},
441447 {"unsigned", Enum::UNSIGNED},
@@ -726,9 +732,14 @@ namespace quicktype {
726732 case Enum::SEL: j = "SEL"; break;
727733 case Enum::SELECT: j = "select"; break;
728734 case Enum::SELF: j = "Self"; break;
735+ case Enum::SERIALIZABLE: j = "Serializable"; break;
729736 case Enum::ENUM_SELF: j = "self"; break;
730737 case Enum::SENDABLE: j = "Sendable"; break;
731738 case Enum::SERIALIZE: j = "serialize"; break;
739+ case Enum::SERIAL_NAME: j = "SerialName"; break;
740+ case Enum::K_SERIALIZER: j = "KSerializer"; break;
741+ case Enum::PRIMITIVE_KIND: j = "PrimitiveKind"; break;
742+ case Enum::SERIAL_DESCRIPTOR: j = "SerialDescriptor"; break;
732743 case Enum::SERIALIZER_PROVIDER: j = "SerializerProvider"; break;
733744 case Enum::SET: j = "set"; break;
734745 case Enum::SHORT: j = "short"; break;
@@ -779,6 +790,7 @@ namespace quicktype {
779790 case Enum::UNCHECKED: j = "unchecked"; break;
780791 case Enum::UNDEFINED: j = "undefined"; break;
781792 case Enum::UNION: j = "union"; break;
793+ case Enum::USE_SERIALIZERS: j = "UseSerializers"; break;
782794 case Enum::UNOWNED: j = "unowned"; break;
783795 case Enum::UNSAFE: j = "unsafe"; break;
784796 case Enum::UNSIGNED: j = "unsigned"; break;
Mschema-csharp-recordsdefault / QuickType.cs+31 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial record TopLevel
3535 {
@@ -579,12 +579,22 @@ namespace QuickType
579579 return Enum.Select;
580580 case "Self":
581581 return Enum.Self;
582+ case "Serializable":
583+ return Enum.Serializable;
582584 case "self":
583585 return Enum.EnumSelf;
584586 case "Sendable":
585587 return Enum.Sendable;
586588 case "serialize":
587589 return Enum.Serialize;
590+ case "SerialName":
591+ return Enum.SerialName;
592+ case "KSerializer":
593+ return Enum.KSerializer;
594+ case "PrimitiveKind":
595+ return Enum.PrimitiveKind;
596+ case "SerialDescriptor":
597+ return Enum.SerialDescriptor;
588598 case "SerializerProvider":
589599 return Enum.SerializerProvider;
590600 case "set":
@@ -685,6 +695,8 @@ namespace QuickType
685695 return Enum.Undefined;
686696 case "union":
687697 return Enum.Union;
698+ case "UseSerializers":
699+ return Enum.UseSerializers;
688700 case "unowned":
689701 return Enum.Unowned;
690702 case "unsafe":
@@ -1516,6 +1528,9 @@ namespace QuickType
15161528 case Enum.Self:
15171529 serializer.Serialize(writer, "Self");
15181530 return;
1531+ case Enum.Serializable:
1532+ serializer.Serialize(writer, "Serializable");
1533+ return;
15191534 case Enum.EnumSelf:
15201535 serializer.Serialize(writer, "self");
15211536 return;
@@ -1525,6 +1540,18 @@ namespace QuickType
15251540 case Enum.Serialize:
15261541 serializer.Serialize(writer, "serialize");
15271542 return;
1543+ case Enum.SerialName:
1544+ serializer.Serialize(writer, "SerialName");
1545+ return;
1546+ case Enum.KSerializer:
1547+ serializer.Serialize(writer, "KSerializer");
1548+ return;
1549+ case Enum.PrimitiveKind:
1550+ serializer.Serialize(writer, "PrimitiveKind");
1551+ return;
1552+ case Enum.SerialDescriptor:
1553+ serializer.Serialize(writer, "SerialDescriptor");
1554+ return;
15281555 case Enum.SerializerProvider:
15291556 serializer.Serialize(writer, "SerializerProvider");
15301557 return;
@@ -1675,6 +1702,9 @@ namespace QuickType
16751702 case Enum.Union:
16761703 serializer.Serialize(writer, "union");
16771704 return;
1705+ case Enum.UseSerializers:
1706+ serializer.Serialize(writer, "UseSerializers");
1707+ return;
16781708 case Enum.Unowned:
16791709 serializer.Serialize(writer, "unowned");
16801710 return;
Mschema-csharp-SystemTextJsondefault / QuickType.cs+31 −1
@@ -27,7 +27,7 @@ namespace QuickType
2727 public Enum? Enum { get; set; }
2828 }
2929
30- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
30+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3131
3232 public partial class TopLevel
3333 {
@@ -576,12 +576,22 @@ namespace QuickType
576576 return Enum.Select;
577577 case "Self":
578578 return Enum.Self;
579+ case "Serializable":
580+ return Enum.Serializable;
579581 case "self":
580582 return Enum.EnumSelf;
581583 case "Sendable":
582584 return Enum.Sendable;
583585 case "serialize":
584586 return Enum.Serialize;
587+ case "SerialName":
588+ return Enum.SerialName;
589+ case "KSerializer":
590+ return Enum.KSerializer;
591+ case "PrimitiveKind":
592+ return Enum.PrimitiveKind;
593+ case "SerialDescriptor":
594+ return Enum.SerialDescriptor;
585595 case "SerializerProvider":
586596 return Enum.SerializerProvider;
587597 case "set":
@@ -682,6 +692,8 @@ namespace QuickType
682692 return Enum.Undefined;
683693 case "union":
684694 return Enum.Union;
695+ case "UseSerializers":
696+ return Enum.UseSerializers;
685697 case "unowned":
686698 return Enum.Unowned;
687699 case "unsafe":
@@ -1507,6 +1519,9 @@ namespace QuickType
15071519 case Enum.Self:
15081520 JsonSerializer.Serialize(writer, "Self", options);
15091521 return;
1522+ case Enum.Serializable:
1523+ JsonSerializer.Serialize(writer, "Serializable", options);
1524+ return;
15101525 case Enum.EnumSelf:
15111526 JsonSerializer.Serialize(writer, "self", options);
15121527 return;
@@ -1516,6 +1531,18 @@ namespace QuickType
15161531 case Enum.Serialize:
15171532 JsonSerializer.Serialize(writer, "serialize", options);
15181533 return;
1534+ case Enum.SerialName:
1535+ JsonSerializer.Serialize(writer, "SerialName", options);
1536+ return;
1537+ case Enum.KSerializer:
1538+ JsonSerializer.Serialize(writer, "KSerializer", options);
1539+ return;
1540+ case Enum.PrimitiveKind:
1541+ JsonSerializer.Serialize(writer, "PrimitiveKind", options);
1542+ return;
1543+ case Enum.SerialDescriptor:
1544+ JsonSerializer.Serialize(writer, "SerialDescriptor", options);
1545+ return;
15191546 case Enum.SerializerProvider:
15201547 JsonSerializer.Serialize(writer, "SerializerProvider", options);
15211548 return;
@@ -1666,6 +1693,9 @@ namespace QuickType
16661693 case Enum.Union:
16671694 JsonSerializer.Serialize(writer, "union", options);
16681695 return;
1696+ case Enum.UseSerializers:
1697+ JsonSerializer.Serialize(writer, "UseSerializers", options);
1698+ return;
16691699 case Enum.Unowned:
16701700 JsonSerializer.Serialize(writer, "unowned", options);
16711701 return;
Mschema-csharpdefault / QuickType.cs+31 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial class TopLevel
3535 {
@@ -579,12 +579,22 @@ namespace QuickType
579579 return Enum.Select;
580580 case "Self":
581581 return Enum.Self;
582+ case "Serializable":
583+ return Enum.Serializable;
582584 case "self":
583585 return Enum.EnumSelf;
584586 case "Sendable":
585587 return Enum.Sendable;
586588 case "serialize":
587589 return Enum.Serialize;
590+ case "SerialName":
591+ return Enum.SerialName;
592+ case "KSerializer":
593+ return Enum.KSerializer;
594+ case "PrimitiveKind":
595+ return Enum.PrimitiveKind;
596+ case "SerialDescriptor":
597+ return Enum.SerialDescriptor;
588598 case "SerializerProvider":
589599 return Enum.SerializerProvider;
590600 case "set":
@@ -685,6 +695,8 @@ namespace QuickType
685695 return Enum.Undefined;
686696 case "union":
687697 return Enum.Union;
698+ case "UseSerializers":
699+ return Enum.UseSerializers;
688700 case "unowned":
689701 return Enum.Unowned;
690702 case "unsafe":
@@ -1516,6 +1528,9 @@ namespace QuickType
15161528 case Enum.Self:
15171529 serializer.Serialize(writer, "Self");
15181530 return;
1531+ case Enum.Serializable:
1532+ serializer.Serialize(writer, "Serializable");
1533+ return;
15191534 case Enum.EnumSelf:
15201535 serializer.Serialize(writer, "self");
15211536 return;
@@ -1525,6 +1540,18 @@ namespace QuickType
15251540 case Enum.Serialize:
15261541 serializer.Serialize(writer, "serialize");
15271542 return;
1543+ case Enum.SerialName:
1544+ serializer.Serialize(writer, "SerialName");
1545+ return;
1546+ case Enum.KSerializer:
1547+ serializer.Serialize(writer, "KSerializer");
1548+ return;
1549+ case Enum.PrimitiveKind:
1550+ serializer.Serialize(writer, "PrimitiveKind");
1551+ return;
1552+ case Enum.SerialDescriptor:
1553+ serializer.Serialize(writer, "SerialDescriptor");
1554+ return;
15281555 case Enum.SerializerProvider:
15291556 serializer.Serialize(writer, "SerializerProvider");
15301557 return;
@@ -1675,6 +1702,9 @@ namespace QuickType
16751702 case Enum.Union:
16761703 serializer.Serialize(writer, "union");
16771704 return;
1705+ case Enum.UseSerializers:
1706+ serializer.Serialize(writer, "UseSerializers");
1707+ return;
16781708 case Enum.Unowned:
16791709 serializer.Serialize(writer, "unowned");
16801710 return;
Mschema-dartdefault / TopLevel.dart+12 −0
@@ -282,9 +282,14 @@ enum Enum {
282282 SEL,
283283 SELECT,
284284 SELF,
285+ SERIALIZABLE,
285286 ENUM_SELF,
286287 SENDABLE,
287288 SERIALIZE,
289+ SERIAL_NAME,
290+ K_SERIALIZER,
291+ PRIMITIVE_KIND,
292+ SERIAL_DESCRIPTOR,
288293 SERIALIZER_PROVIDER,
289294 SET,
290295 SHORT,
@@ -335,6 +340,7 @@ enum Enum {
335340 UNCHECKED,
336341 UNDEFINED,
337342 UNION,
343+ USE_SERIALIZERS,
338344 UNOWNED,
339345 UNSAFE,
340346 UNSIGNED,
@@ -618,9 +624,14 @@ final enumValues = EnumValues({
618624 "SEL": Enum.SEL,
619625 "select": Enum.SELECT,
620626 "Self": Enum.SELF,
627+ "Serializable": Enum.SERIALIZABLE,
621628 "self": Enum.ENUM_SELF,
622629 "Sendable": Enum.SENDABLE,
623630 "serialize": Enum.SERIALIZE,
631+ "SerialName": Enum.SERIAL_NAME,
632+ "KSerializer": Enum.K_SERIALIZER,
633+ "PrimitiveKind": Enum.PRIMITIVE_KIND,
634+ "SerialDescriptor": Enum.SERIAL_DESCRIPTOR,
624635 "SerializerProvider": Enum.SERIALIZER_PROVIDER,
625636 "set": Enum.SET,
626637 "short": Enum.SHORT,
@@ -671,6 +682,7 @@ final enumValues = EnumValues({
671682 "unchecked": Enum.UNCHECKED,
672683 "undefined": Enum.UNDEFINED,
673684 "union": Enum.UNION,
685+ "UseSerializers": Enum.USE_SERIALIZERS,
674686 "unowned": Enum.UNOWNED,
675687 "unsafe": Enum.UNSAFE,
676688 "unsigned": Enum.UNSIGNED,
Mschema-elixirdefault / QuickType.ex+6 −0
@@ -264,9 +264,14 @@ defmodule EnumEnum do
264264 :SEL,
265265 :select,
266266 :Self,
267+ :Serializable,
267268 :self,
268269 :Sendable,
269270 :serialize,
271+ :SerialName,
272+ :KSerializer,
273+ :PrimitiveKind,
274+ :SerialDescriptor,
270275 :SerializerProvider,
271276 :set,
272277 :short,
@@ -317,6 +322,7 @@ defmodule EnumEnum do
317322 :unchecked,
318323 :undefined,
319324 :union,
325+ :UseSerializers,
320326 :unowned,
321327 :unsafe,
322328 :unsigned,
Mschema-elmdefault / QuickType.elm+18 −0
@@ -285,9 +285,14 @@ type EnumEnum
285285 | Sel
286286 | Select
287287 | Self
288+ | Serializable
288289 | EnumSelf
289290 | Sendable
290291 | Serialize
292+ | SerialName
293+ | KSerializer
294+ | PrimitiveKind
295+ | SerialDescriptor
291296 | SerializerProvider
292297 | Set
293298 | Short
@@ -338,6 +343,7 @@ type EnumEnum
338343 | Unchecked
339344 | Undefined
340345 | Union
346+ | UseSerializers
341347 | Unowned
342348 | Unsafe
343349 | Unsigned
@@ -646,9 +652,14 @@ enumEnum =
646652 "SEL" -> Jdec.succeed Sel
647653 "select" -> Jdec.succeed Select
648654 "Self" -> Jdec.succeed Self
655+ "Serializable" -> Jdec.succeed Serializable
649656 "self" -> Jdec.succeed EnumSelf
650657 "Sendable" -> Jdec.succeed Sendable
651658 "serialize" -> Jdec.succeed Serialize
659+ "SerialName" -> Jdec.succeed SerialName
660+ "KSerializer" -> Jdec.succeed KSerializer
661+ "PrimitiveKind" -> Jdec.succeed PrimitiveKind
662+ "SerialDescriptor" -> Jdec.succeed SerialDescriptor
652663 "SerializerProvider" -> Jdec.succeed SerializerProvider
653664 "set" -> Jdec.succeed Set
654665 "short" -> Jdec.succeed Short
@@ -699,6 +710,7 @@ enumEnum =
699710 "unchecked" -> Jdec.succeed Unchecked
700711 "undefined" -> Jdec.succeed Undefined
701712 "union" -> Jdec.succeed Union
713+ "UseSerializers" -> Jdec.succeed UseSerializers
702714 "unowned" -> Jdec.succeed Unowned
703715 "unsafe" -> Jdec.succeed Unsafe
704716 "unsigned" -> Jdec.succeed Unsigned
@@ -984,9 +996,14 @@ encodeEnumEnum x = case x of
984996 Sel -> Jenc.string "SEL"
985997 Select -> Jenc.string "select"
986998 Self -> Jenc.string "Self"
999+ Serializable -> Jenc.string "Serializable"
9871000 EnumSelf -> Jenc.string "self"
9881001 Sendable -> Jenc.string "Sendable"
9891002 Serialize -> Jenc.string "serialize"
1003+ SerialName -> Jenc.string "SerialName"
1004+ KSerializer -> Jenc.string "KSerializer"
1005+ PrimitiveKind -> Jenc.string "PrimitiveKind"
1006+ SerialDescriptor -> Jenc.string "SerialDescriptor"
9901007 SerializerProvider -> Jenc.string "SerializerProvider"
9911008 Set -> Jenc.string "set"
9921009 Short -> Jenc.string "short"
@@ -1037,6 +1054,7 @@ encodeEnumEnum x = case x of
10371054 Unchecked -> Jenc.string "unchecked"
10381055 Undefined -> Jenc.string "undefined"
10391056 Union -> Jenc.string "union"
1057+ UseSerializers -> Jenc.string "UseSerializers"
10401058 Unowned -> Jenc.string "unowned"
10411059 Unsafe -> Jenc.string "unsafe"
10421060 Unsigned -> Jenc.string "unsigned"
Mschema-flowdefault / TopLevel.js+12 −0
@@ -272,9 +272,14 @@ export type Enum =
272272 | "SEL"
273273 | "select"
274274 | "Self"
275+ | "Serializable"
275276 | "self"
276277 | "Sendable"
277278 | "serialize"
279+ | "SerialName"
280+ | "KSerializer"
281+ | "PrimitiveKind"
282+ | "SerialDescriptor"
278283 | "SerializerProvider"
279284 | "set"
280285 | "short"
@@ -325,6 +330,7 @@ export type Enum =
325330 | "unchecked"
326331 | "undefined"
327332 | "union"
333+ | "UseSerializers"
328334 | "unowned"
329335 | "unsafe"
330336 | "unsigned"
@@ -795,9 +801,14 @@ const typeMap: any = {
795801 "SEL",
796802 "select",
797803 "Self",
804+ "Serializable",
798805 "self",
799806 "Sendable",
800807 "serialize",
808+ "SerialName",
809+ "KSerializer",
810+ "PrimitiveKind",
811+ "SerialDescriptor",
801812 "SerializerProvider",
802813 "set",
803814 "short",
@@ -848,6 +859,7 @@ const typeMap: any = {
848859 "unchecked",
849860 "undefined",
850861 "union",
862+ "UseSerializers",
851863 "unowned",
852864 "unsafe",
853865 "unsigned",
Mschema-golangdefault / quicktype.go+7 −1
@@ -282,9 +282,14 @@ const (
282282 Sel EnumEnum = "SEL"
283283 Select EnumEnum = "select"
284284 Self EnumEnum = "Self"
285+ Serializable EnumEnum = "Serializable"
285286 EnumSelf EnumEnum = "self"
286287 Sendable EnumEnum = "Sendable"
287288 Serialize EnumEnum = "serialize"
289+ SerialName EnumEnum = "SerialName"
290+ KSerializer EnumEnum = "KSerializer"
291+ PrimitiveKind EnumEnum = "PrimitiveKind"
292+ SerialDescriptor EnumEnum = "SerialDescriptor"
288293 SerializerProvider EnumEnum = "SerializerProvider"
289294 Set EnumEnum = "set"
290295 Short EnumEnum = "short"
@@ -335,6 +340,7 @@ const (
335340 Unchecked EnumEnum = "unchecked"
336341 Undefined EnumEnum = "undefined"
337342 Union EnumEnum = "union"
343+ UseSerializers EnumEnum = "UseSerializers"
338344 Unowned EnumEnum = "unowned"
339345 Unsafe EnumEnum = "unsafe"
340346 Unsigned EnumEnum = "unsigned"
@@ -367,7 +373,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
367373 var value string
368374 if err := json.Unmarshal(data, &value); err != nil { return err }
369375 switch EnumEnum(value) {
370- case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
376+ case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
371377 }
372378 return invalidEnumEnum(value)
373379 }
Mschema-haskelldefault / QuickType.hs+18 −0
@@ -275,9 +275,14 @@ data EnumEnum
275275 | SELEnumEnum
276276 | SelectEnumEnum
277277 | SelfEnumEnum
278+ | SerializableEnumEnum
278279 | PurpleSelfEnumEnum
279280 | SendableEnumEnum
280281 | SerializeEnumEnum
282+ | SerialNameEnumEnum
283+ | KSerializerEnumEnum
284+ | PrimitiveKindEnumEnum
285+ | SerialDescriptorEnumEnum
281286 | SerializerProviderEnumEnum
282287 | SetEnumEnum
283288 | ShortEnumEnum
@@ -328,6 +333,7 @@ data EnumEnum
328333 | UncheckedEnumEnum
329334 | UndefinedEnumEnum
330335 | UnionEnumEnum
336+ | UseSerializersEnumEnum
331337 | UnownedEnumEnum
332338 | UnsafeEnumEnum
333339 | UnsignedEnumEnum
@@ -624,9 +630,14 @@ instance ToJSON EnumEnum where
624630 toJSON SELEnumEnum = "SEL"
625631 toJSON SelectEnumEnum = "select"
626632 toJSON SelfEnumEnum = "Self"
633+ toJSON SerializableEnumEnum = "Serializable"
627634 toJSON PurpleSelfEnumEnum = "self"
628635 toJSON SendableEnumEnum = "Sendable"
629636 toJSON SerializeEnumEnum = "serialize"
637+ toJSON SerialNameEnumEnum = "SerialName"
638+ toJSON KSerializerEnumEnum = "KSerializer"
639+ toJSON PrimitiveKindEnumEnum = "PrimitiveKind"
640+ toJSON SerialDescriptorEnumEnum = "SerialDescriptor"
630641 toJSON SerializerProviderEnumEnum = "SerializerProvider"
631642 toJSON SetEnumEnum = "set"
632643 toJSON ShortEnumEnum = "short"
@@ -677,6 +688,7 @@ instance ToJSON EnumEnum where
677688 toJSON UncheckedEnumEnum = "unchecked"
678689 toJSON UndefinedEnumEnum = "undefined"
679690 toJSON UnionEnumEnum = "union"
691+ toJSON UseSerializersEnumEnum = "UseSerializers"
680692 toJSON UnownedEnumEnum = "unowned"
681693 toJSON UnsafeEnumEnum = "unsafe"
682694 toJSON UnsignedEnumEnum = "unsigned"
@@ -961,9 +973,14 @@ instance FromJSON EnumEnum where
961973 parseText "SEL" = return SELEnumEnum
962974 parseText "select" = return SelectEnumEnum
963975 parseText "Self" = return SelfEnumEnum
976+ parseText "Serializable" = return SerializableEnumEnum
964977 parseText "self" = return PurpleSelfEnumEnum
965978 parseText "Sendable" = return SendableEnumEnum
966979 parseText "serialize" = return SerializeEnumEnum
980+ parseText "SerialName" = return SerialNameEnumEnum
981+ parseText "KSerializer" = return KSerializerEnumEnum
982+ parseText "PrimitiveKind" = return PrimitiveKindEnumEnum
983+ parseText "SerialDescriptor" = return SerialDescriptorEnumEnum
967984 parseText "SerializerProvider" = return SerializerProviderEnumEnum
968985 parseText "set" = return SetEnumEnum
969986 parseText "short" = return ShortEnumEnum
@@ -1014,6 +1031,7 @@ instance FromJSON EnumEnum where
10141031 parseText "unchecked" = return UncheckedEnumEnum
10151032 parseText "undefined" = return UndefinedEnumEnum
10161033 parseText "union" = return UnionEnumEnum
1034+ parseText "UseSerializers" = return UseSerializersEnumEnum
10171035 parseText "unowned" = return UnownedEnumEnum
10181036 parseText "unsafe" = return UnsafeEnumEnum
10191037 parseText "unsigned" = return UnsignedEnumEnum
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+13 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -266,9 +266,14 @@ public enum Enum {
266266 case SEL: return "SEL";
267267 case SELECT: return "select";
268268 case SELF: return "Self";
269+ case SERIALIZABLE: return "Serializable";
269270 case ENUM_SELF: return "self";
270271 case SENDABLE: return "Sendable";
271272 case SERIALIZE: return "serialize";
273+ case SERIAL_NAME: return "SerialName";
274+ case K_SERIALIZER: return "KSerializer";
275+ case PRIMITIVE_KIND: return "PrimitiveKind";
276+ case SERIAL_DESCRIPTOR: return "SerialDescriptor";
272277 case SERIALIZER_PROVIDER: return "SerializerProvider";
273278 case SET: return "set";
274279 case SHORT: return "short";
@@ -319,6 +324,7 @@ public enum Enum {
319324 case UNCHECKED: return "unchecked";
320325 case UNDEFINED: return "undefined";
321326 case UNION: return "union";
327+ case USE_SERIALIZERS: return "UseSerializers";
322328 case UNOWNED: return "unowned";
323329 case UNSAFE: return "unsafe";
324330 case UNSIGNED: return "unsigned";
@@ -605,9 +611,14 @@ public enum Enum {
605611 if (value.equals("SEL")) return SEL;
606612 if (value.equals("select")) return SELECT;
607613 if (value.equals("Self")) return SELF;
614+ if (value.equals("Serializable")) return SERIALIZABLE;
608615 if (value.equals("self")) return ENUM_SELF;
609616 if (value.equals("Sendable")) return SENDABLE;
610617 if (value.equals("serialize")) return SERIALIZE;
618+ if (value.equals("SerialName")) return SERIAL_NAME;
619+ if (value.equals("KSerializer")) return K_SERIALIZER;
620+ if (value.equals("PrimitiveKind")) return PRIMITIVE_KIND;
621+ if (value.equals("SerialDescriptor")) return SERIAL_DESCRIPTOR;
611622 if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER;
612623 if (value.equals("set")) return SET;
613624 if (value.equals("short")) return SHORT;
@@ -658,6 +669,7 @@ public enum Enum {
658669 if (value.equals("unchecked")) return UNCHECKED;
659670 if (value.equals("undefined")) return UNDEFINED;
660671 if (value.equals("union")) return UNION;
672+ if (value.equals("UseSerializers")) return USE_SERIALIZERS;
661673 if (value.equals("unowned")) return UNOWNED;
662674 if (value.equals("unsafe")) return UNSAFE;
663675 if (value.equals("unsigned")) return UNSIGNED;
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+13 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -266,9 +266,14 @@ public enum Enum {
266266 case SEL: return "SEL";
267267 case SELECT: return "select";
268268 case SELF: return "Self";
269+ case SERIALIZABLE: return "Serializable";
269270 case ENUM_SELF: return "self";
270271 case SENDABLE: return "Sendable";
271272 case SERIALIZE: return "serialize";
273+ case SERIAL_NAME: return "SerialName";
274+ case K_SERIALIZER: return "KSerializer";
275+ case PRIMITIVE_KIND: return "PrimitiveKind";
276+ case SERIAL_DESCRIPTOR: return "SerialDescriptor";
272277 case SERIALIZER_PROVIDER: return "SerializerProvider";
273278 case SET: return "set";
274279 case SHORT: return "short";
@@ -319,6 +324,7 @@ public enum Enum {
319324 case UNCHECKED: return "unchecked";
320325 case UNDEFINED: return "undefined";
321326 case UNION: return "union";
327+ case USE_SERIALIZERS: return "UseSerializers";
322328 case UNOWNED: return "unowned";
323329 case UNSAFE: return "unsafe";
324330 case UNSIGNED: return "unsigned";
@@ -605,9 +611,14 @@ public enum Enum {
605611 if (value.equals("SEL")) return SEL;
606612 if (value.equals("select")) return SELECT;
607613 if (value.equals("Self")) return SELF;
614+ if (value.equals("Serializable")) return SERIALIZABLE;
608615 if (value.equals("self")) return ENUM_SELF;
609616 if (value.equals("Sendable")) return SENDABLE;
610617 if (value.equals("serialize")) return SERIALIZE;
618+ if (value.equals("SerialName")) return SERIAL_NAME;
619+ if (value.equals("KSerializer")) return K_SERIALIZER;
620+ if (value.equals("PrimitiveKind")) return PRIMITIVE_KIND;
621+ if (value.equals("SerialDescriptor")) return SERIAL_DESCRIPTOR;
611622 if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER;
612623 if (value.equals("set")) return SET;
613624 if (value.equals("short")) return SHORT;
@@ -658,6 +669,7 @@ public enum Enum {
658669 if (value.equals("unchecked")) return UNCHECKED;
659670 if (value.equals("undefined")) return UNDEFINED;
660671 if (value.equals("union")) return UNION;
672+ if (value.equals("UseSerializers")) return USE_SERIALIZERS;
661673 if (value.equals("unowned")) return UNOWNED;
662674 if (value.equals("unsafe")) return UNSAFE;
663675 if (value.equals("unsigned")) return UNSIGNED;
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+13 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -266,9 +266,14 @@ public enum Enum {
266266 case SEL: return "SEL";
267267 case SELECT: return "select";
268268 case SELF: return "Self";
269+ case SERIALIZABLE: return "Serializable";
269270 case ENUM_SELF: return "self";
270271 case SENDABLE: return "Sendable";
271272 case SERIALIZE: return "serialize";
273+ case SERIAL_NAME: return "SerialName";
274+ case K_SERIALIZER: return "KSerializer";
275+ case PRIMITIVE_KIND: return "PrimitiveKind";
276+ case SERIAL_DESCRIPTOR: return "SerialDescriptor";
272277 case SERIALIZER_PROVIDER: return "SerializerProvider";
273278 case SET: return "set";
274279 case SHORT: return "short";
@@ -319,6 +324,7 @@ public enum Enum {
319324 case UNCHECKED: return "unchecked";
320325 case UNDEFINED: return "undefined";
321326 case UNION: return "union";
327+ case USE_SERIALIZERS: return "UseSerializers";
322328 case UNOWNED: return "unowned";
323329 case UNSAFE: return "unsafe";
324330 case UNSIGNED: return "unsigned";
@@ -605,9 +611,14 @@ public enum Enum {
605611 if (value.equals("SEL")) return SEL;
606612 if (value.equals("select")) return SELECT;
607613 if (value.equals("Self")) return SELF;
614+ if (value.equals("Serializable")) return SERIALIZABLE;
608615 if (value.equals("self")) return ENUM_SELF;
609616 if (value.equals("Sendable")) return SENDABLE;
610617 if (value.equals("serialize")) return SERIALIZE;
618+ if (value.equals("SerialName")) return SERIAL_NAME;
619+ if (value.equals("KSerializer")) return K_SERIALIZER;
620+ if (value.equals("PrimitiveKind")) return PRIMITIVE_KIND;
621+ if (value.equals("SerialDescriptor")) return SERIAL_DESCRIPTOR;
611622 if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER;
612623 if (value.equals("set")) return SET;
613624 if (value.equals("short")) return SHORT;
@@ -658,6 +669,7 @@ public enum Enum {
658669 if (value.equals("unchecked")) return UNCHECKED;
659670 if (value.equals("undefined")) return UNDEFINED;
660671 if (value.equals("union")) return UNION;
672+ if (value.equals("UseSerializers")) return USE_SERIALIZERS;
661673 if (value.equals("unowned")) return UNOWNED;
662674 if (value.equals("unsafe")) return UNSAFE;
663675 if (value.equals("unsigned")) return UNSIGNED;
Mschema-javascript-prop-typesdefault / toplevel.js+1 −1
@@ -13,7 +13,7 @@
1313 import PropTypes from "prop-types";
1414
1515 let _TopLevel;
16-const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'self', 'Sendable', 'serialize', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
16+const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'UseSerializers', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
1717 _TopLevel = PropTypes.shape({
1818 "enum": PropTypes.oneOfType([_Enum, PropTypes.oneOf([null])]),
1919 });
Mschema-javascriptdefault / TopLevel.js+6 −0
@@ -453,9 +453,14 @@ const typeMap = {
453453 "SEL",
454454 "select",
455455 "Self",
456+ "Serializable",
456457 "self",
457458 "Sendable",
458459 "serialize",
460+ "SerialName",
461+ "KSerializer",
462+ "PrimitiveKind",
463+ "SerialDescriptor",
459464 "SerializerProvider",
460465 "set",
461466 "short",
@@ -506,6 +511,7 @@ const typeMap = {
506511 "unchecked",
507512 "undefined",
508513 "union",
514+ "UseSerializers",
509515 "unowned",
510516 "unsafe",
511517 "unsigned",
Mschema-kotlin-jacksondefault / TopLevel.kt+12 −0
@@ -298,9 +298,14 @@ enum class EnumEnum(val value: String) {
298298 Sel("SEL"),
299299 Select("select"),
300300 Self("Self"),
301+ Serializable("Serializable"),
301302 EnumSelf("self"),
302303 Sendable("Sendable"),
303304 Serialize("serialize"),
305+ SerialName("SerialName"),
306+ KSerializer("KSerializer"),
307+ PrimitiveKind("PrimitiveKind"),
308+ SerialDescriptor("SerialDescriptor"),
304309 EnumSerializerProvider("SerializerProvider"),
305310 Set("set"),
306311 EnumShort("short"),
@@ -351,6 +356,7 @@ enum class EnumEnum(val value: String) {
351356 Unchecked("unchecked"),
352357 Undefined("undefined"),
353358 Union("union"),
359+ UseSerializers("UseSerializers"),
354360 Unowned("unowned"),
355361 Unsafe("unsafe"),
356362 Unsigned("unsigned"),
@@ -634,9 +640,14 @@ enum class EnumEnum(val value: String) {
634640 "SEL" -> Sel
635641 "select" -> Select
636642 "Self" -> Self
643+ "Serializable" -> Serializable
637644 "self" -> EnumSelf
638645 "Sendable" -> Sendable
639646 "serialize" -> Serialize
647+ "SerialName" -> SerialName
648+ "KSerializer" -> KSerializer
649+ "PrimitiveKind" -> PrimitiveKind
650+ "SerialDescriptor" -> SerialDescriptor
640651 "SerializerProvider" -> EnumSerializerProvider
641652 "set" -> Set
642653 "short" -> EnumShort
@@ -687,6 +698,7 @@ enum class EnumEnum(val value: String) {
687698 "unchecked" -> Unchecked
688699 "undefined" -> Undefined
689700 "union" -> Union
701+ "UseSerializers" -> UseSerializers
690702 "unowned" -> Unowned
691703 "unsafe" -> Unsafe
692704 "unsigned" -> Unsigned
Mschema-kotlindefault / TopLevel.kt+12 −0
@@ -285,9 +285,14 @@ enum class EnumEnum(val value: String) {
285285 Sel("SEL"),
286286 Select("select"),
287287 Self("Self"),
288+ Serializable("Serializable"),
288289 EnumSelf("self"),
289290 Sendable("Sendable"),
290291 Serialize("serialize"),
292+ SerialName("SerialName"),
293+ KSerializer("KSerializer"),
294+ PrimitiveKind("PrimitiveKind"),
295+ SerialDescriptor("SerialDescriptor"),
291296 SerializerProvider("SerializerProvider"),
292297 Set("set"),
293298 EnumShort("short"),
@@ -338,6 +343,7 @@ enum class EnumEnum(val value: String) {
338343 Unchecked("unchecked"),
339344 Undefined("undefined"),
340345 Union("union"),
346+ UseSerializers("UseSerializers"),
341347 Unowned("unowned"),
342348 Unsafe("unsafe"),
343349 Unsigned("unsigned"),
@@ -621,9 +627,14 @@ enum class EnumEnum(val value: String) {
621627 "SEL" -> Sel
622628 "select" -> Select
623629 "Self" -> Self
630+ "Serializable" -> Serializable
624631 "self" -> EnumSelf
625632 "Sendable" -> Sendable
626633 "serialize" -> Serialize
634+ "SerialName" -> SerialName
635+ "KSerializer" -> KSerializer
636+ "PrimitiveKind" -> PrimitiveKind
637+ "SerialDescriptor" -> SerialDescriptor
627638 "SerializerProvider" -> SerializerProvider
628639 "set" -> Set
629640 "short" -> EnumShort
@@ -674,6 +685,7 @@ enum class EnumEnum(val value: String) {
674685 "unchecked" -> Unchecked
675686 "undefined" -> Undefined
676687 "union" -> Union
688+ "UseSerializers" -> UseSerializers
677689 "unowned" -> Unowned
678690 "unsafe" -> Unsafe
679691 "unsigned" -> Unsigned
Mschema-kotlinxdefault / TopLevel.kt+6 −0
@@ -274,9 +274,14 @@ enum class EnumEnum(val value: String) {
274274 @SerialName("SEL") Sel("SEL"),
275275 @SerialName("select") Select("select"),
276276 @SerialName("Self") Self("Self"),
277+ @SerialName("Serializable") EnumSerializable("Serializable"),
277278 @SerialName("self") EnumSelf("self"),
278279 @SerialName("Sendable") Sendable("Sendable"),
279280 @SerialName("serialize") Serialize("serialize"),
281+ @SerialName("SerialName") EnumSerialName("SerialName"),
282+ @SerialName("KSerializer") EnumKSerializer("KSerializer"),
283+ @SerialName("PrimitiveKind") EnumPrimitiveKind("PrimitiveKind"),
284+ @SerialName("SerialDescriptor") EnumSerialDescriptor("SerialDescriptor"),
280285 @SerialName("SerializerProvider") SerializerProvider("SerializerProvider"),
281286 @SerialName("set") Set("set"),
282287 @SerialName("short") EnumShort("short"),
@@ -327,6 +332,7 @@ enum class EnumEnum(val value: String) {
327332 @SerialName("unchecked") Unchecked("unchecked"),
328333 @SerialName("undefined") Undefined("undefined"),
329334 @SerialName("union") Union("union"),
335+ @SerialName("UseSerializers") EnumUseSerializers("UseSerializers"),
330336 @SerialName("unowned") Unowned("unowned"),
331337 @SerialName("unsafe") Unsafe("unsafe"),
332338 @SerialName("unsigned") Unsigned("unsigned"),
Mschema-objective-cdefault / QTTopLevel.h+6 −0
@@ -272,9 +272,14 @@ NS_ASSUME_NONNULL_BEGIN
272272 + (QTEnum *)sel;
273273 + (QTEnum *)select;
274274 + (QTEnum *)self;
275++ (QTEnum *)serializable;
275276 + (QTEnum *)enumSelf;
276277 + (QTEnum *)sendable;
277278 + (QTEnum *)serialize;
279++ (QTEnum *)serialName;
280++ (QTEnum *)kSerializer;
281++ (QTEnum *)primitiveKind;
282++ (QTEnum *)serialDescriptor;
278283 + (QTEnum *)serializerProvider;
279284 + (QTEnum *)set;
280285 + (QTEnum *)enumShort;
@@ -325,6 +330,7 @@ NS_ASSUME_NONNULL_BEGIN
325330 + (QTEnum *)unchecked;
326331 + (QTEnum *)undefined;
327332 + (QTEnum *)enumUnion;
333++ (QTEnum *)useSerializers;
328334 + (QTEnum *)unowned;
329335 + (QTEnum *)unsafe;
330336 + (QTEnum *)enumUnsigned;
Mschema-objective-cdefault / QTTopLevel.m+12 −0
@@ -275,9 +275,14 @@ NS_ASSUME_NONNULL_BEGIN
275275 @"SEL": [[QTEnum alloc] initWithValue:@"SEL"],
276276 @"select": [[QTEnum alloc] initWithValue:@"select"],
277277 @"Self": [[QTEnum alloc] initWithValue:@"Self"],
278+ @"Serializable": [[QTEnum alloc] initWithValue:@"Serializable"],
278279 @"self": [[QTEnum alloc] initWithValue:@"self"],
279280 @"Sendable": [[QTEnum alloc] initWithValue:@"Sendable"],
280281 @"serialize": [[QTEnum alloc] initWithValue:@"serialize"],
282+ @"SerialName": [[QTEnum alloc] initWithValue:@"SerialName"],
283+ @"KSerializer": [[QTEnum alloc] initWithValue:@"KSerializer"],
284+ @"PrimitiveKind": [[QTEnum alloc] initWithValue:@"PrimitiveKind"],
285+ @"SerialDescriptor": [[QTEnum alloc] initWithValue:@"SerialDescriptor"],
281286 @"SerializerProvider": [[QTEnum alloc] initWithValue:@"SerializerProvider"],
282287 @"set": [[QTEnum alloc] initWithValue:@"set"],
283288 @"short": [[QTEnum alloc] initWithValue:@"short"],
@@ -328,6 +333,7 @@ NS_ASSUME_NONNULL_BEGIN
328333 @"unchecked": [[QTEnum alloc] initWithValue:@"unchecked"],
329334 @"undefined": [[QTEnum alloc] initWithValue:@"undefined"],
330335 @"union": [[QTEnum alloc] initWithValue:@"union"],
336+ @"UseSerializers": [[QTEnum alloc] initWithValue:@"UseSerializers"],
331337 @"unowned": [[QTEnum alloc] initWithValue:@"unowned"],
332338 @"unsafe": [[QTEnum alloc] initWithValue:@"unsafe"],
333339 @"unsigned": [[QTEnum alloc] initWithValue:@"unsigned"],
@@ -611,9 +617,14 @@ NS_ASSUME_NONNULL_BEGIN
611617 + (QTEnum *)sel { return QTEnum.values[@"SEL"]; }
612618 + (QTEnum *)select { return QTEnum.values[@"select"]; }
613619 + (QTEnum *)self { return QTEnum.values[@"Self"]; }
620++ (QTEnum *)serializable { return QTEnum.values[@"Serializable"]; }
614621 + (QTEnum *)enumSelf { return QTEnum.values[@"self"]; }
615622 + (QTEnum *)sendable { return QTEnum.values[@"Sendable"]; }
616623 + (QTEnum *)serialize { return QTEnum.values[@"serialize"]; }
624++ (QTEnum *)serialName { return QTEnum.values[@"SerialName"]; }
625++ (QTEnum *)kSerializer { return QTEnum.values[@"KSerializer"]; }
626++ (QTEnum *)primitiveKind { return QTEnum.values[@"PrimitiveKind"]; }
627++ (QTEnum *)serialDescriptor { return QTEnum.values[@"SerialDescriptor"]; }
617628 + (QTEnum *)serializerProvider { return QTEnum.values[@"SerializerProvider"]; }
618629 + (QTEnum *)set { return QTEnum.values[@"set"]; }
619630 + (QTEnum *)enumShort { return QTEnum.values[@"short"]; }
@@ -664,6 +675,7 @@ NS_ASSUME_NONNULL_BEGIN
664675 + (QTEnum *)unchecked { return QTEnum.values[@"unchecked"]; }
665676 + (QTEnum *)undefined { return QTEnum.values[@"undefined"]; }
666677 + (QTEnum *)enumUnion { return QTEnum.values[@"union"]; }
678++ (QTEnum *)useSerializers { return QTEnum.values[@"UseSerializers"]; }
667679 + (QTEnum *)unowned { return QTEnum.values[@"unowned"]; }
668680 + (QTEnum *)unsafe { return QTEnum.values[@"unsafe"]; }
669681 + (QTEnum *)enumUnsigned { return QTEnum.values[@"unsigned"]; }
Mschema-phpdefault / TopLevel.php+24 −0
@@ -370,9 +370,14 @@ class EnumEnum {
370370 public static EnumEnum $SEL;
371371 public static EnumEnum $SELECT;
372372 public static EnumEnum $SELF;
373+ public static EnumEnum $SERIALIZABLE;
373374 public static EnumEnum $ENUM_SELF;
374375 public static EnumEnum $SENDABLE;
375376 public static EnumEnum $SERIALIZE;
377+ public static EnumEnum $SERIAL_NAME;
378+ public static EnumEnum $K_SERIALIZER;
379+ public static EnumEnum $PRIMITIVE_KIND;
380+ public static EnumEnum $SERIAL_DESCRIPTOR;
376381 public static EnumEnum $SERIALIZER_PROVIDER;
377382 public static EnumEnum $SET;
378383 public static EnumEnum $SHORT;
@@ -423,6 +428,7 @@ class EnumEnum {
423428 public static EnumEnum $UNCHECKED;
424429 public static EnumEnum $UNDEFINED;
425430 public static EnumEnum $UNION;
431+ public static EnumEnum $USE_SERIALIZERS;
426432 public static EnumEnum $UNOWNED;
427433 public static EnumEnum $UNSAFE;
428434 public static EnumEnum $UNSIGNED;
@@ -704,9 +710,14 @@ class EnumEnum {
704710 EnumEnum::$SEL = new EnumEnum('SEL');
705711 EnumEnum::$SELECT = new EnumEnum('select');
706712 EnumEnum::$SELF = new EnumEnum('Self');
713+ EnumEnum::$SERIALIZABLE = new EnumEnum('Serializable');
707714 EnumEnum::$ENUM_SELF = new EnumEnum('self');
708715 EnumEnum::$SENDABLE = new EnumEnum('Sendable');
709716 EnumEnum::$SERIALIZE = new EnumEnum('serialize');
717+ EnumEnum::$SERIAL_NAME = new EnumEnum('SerialName');
718+ EnumEnum::$K_SERIALIZER = new EnumEnum('KSerializer');
719+ EnumEnum::$PRIMITIVE_KIND = new EnumEnum('PrimitiveKind');
720+ EnumEnum::$SERIAL_DESCRIPTOR = new EnumEnum('SerialDescriptor');
710721 EnumEnum::$SERIALIZER_PROVIDER = new EnumEnum('SerializerProvider');
711722 EnumEnum::$SET = new EnumEnum('set');
712723 EnumEnum::$SHORT = new EnumEnum('short');
@@ -757,6 +768,7 @@ class EnumEnum {
757768 EnumEnum::$UNCHECKED = new EnumEnum('unchecked');
758769 EnumEnum::$UNDEFINED = new EnumEnum('undefined');
759770 EnumEnum::$UNION = new EnumEnum('union');
771+ EnumEnum::$USE_SERIALIZERS = new EnumEnum('UseSerializers');
760772 EnumEnum::$UNOWNED = new EnumEnum('unowned');
761773 EnumEnum::$UNSAFE = new EnumEnum('unsafe');
762774 EnumEnum::$UNSIGNED = new EnumEnum('unsigned');
@@ -1050,9 +1062,14 @@ class EnumEnum {
10501062 case EnumEnum::$SEL->enum: return 'SEL';
10511063 case EnumEnum::$SELECT->enum: return 'select';
10521064 case EnumEnum::$SELF->enum: return 'Self';
1065+ case EnumEnum::$SERIALIZABLE->enum: return 'Serializable';
10531066 case EnumEnum::$ENUM_SELF->enum: return 'self';
10541067 case EnumEnum::$SENDABLE->enum: return 'Sendable';
10551068 case EnumEnum::$SERIALIZE->enum: return 'serialize';
1069+ case EnumEnum::$SERIAL_NAME->enum: return 'SerialName';
1070+ case EnumEnum::$K_SERIALIZER->enum: return 'KSerializer';
1071+ case EnumEnum::$PRIMITIVE_KIND->enum: return 'PrimitiveKind';
1072+ case EnumEnum::$SERIAL_DESCRIPTOR->enum: return 'SerialDescriptor';
10561073 case EnumEnum::$SERIALIZER_PROVIDER->enum: return 'SerializerProvider';
10571074 case EnumEnum::$SET->enum: return 'set';
10581075 case EnumEnum::$SHORT->enum: return 'short';
@@ -1103,6 +1120,7 @@ class EnumEnum {
11031120 case EnumEnum::$UNCHECKED->enum: return 'unchecked';
11041121 case EnumEnum::$UNDEFINED->enum: return 'undefined';
11051122 case EnumEnum::$UNION->enum: return 'union';
1123+ case EnumEnum::$USE_SERIALIZERS->enum: return 'UseSerializers';
11061124 case EnumEnum::$UNOWNED->enum: return 'unowned';
11071125 case EnumEnum::$UNSAFE->enum: return 'unsafe';
11081126 case EnumEnum::$UNSIGNED->enum: return 'unsigned';
@@ -1394,9 +1412,14 @@ class EnumEnum {
13941412 case 'SEL': return EnumEnum::$SEL;
13951413 case 'select': return EnumEnum::$SELECT;
13961414 case 'Self': return EnumEnum::$SELF;
1415+ case 'Serializable': return EnumEnum::$SERIALIZABLE;
13971416 case 'self': return EnumEnum::$ENUM_SELF;
13981417 case 'Sendable': return EnumEnum::$SENDABLE;
13991418 case 'serialize': return EnumEnum::$SERIALIZE;
1419+ case 'SerialName': return EnumEnum::$SERIAL_NAME;
1420+ case 'KSerializer': return EnumEnum::$K_SERIALIZER;
1421+ case 'PrimitiveKind': return EnumEnum::$PRIMITIVE_KIND;
1422+ case 'SerialDescriptor': return EnumEnum::$SERIAL_DESCRIPTOR;
14001423 case 'SerializerProvider': return EnumEnum::$SERIALIZER_PROVIDER;
14011424 case 'set': return EnumEnum::$SET;
14021425 case 'short': return EnumEnum::$SHORT;
@@ -1447,6 +1470,7 @@ class EnumEnum {
14471470 case 'unchecked': return EnumEnum::$UNCHECKED;
14481471 case 'undefined': return EnumEnum::$UNDEFINED;
14491472 case 'union': return EnumEnum::$UNION;
1473+ case 'UseSerializers': return EnumEnum::$USE_SERIALIZERS;
14501474 case 'unowned': return EnumEnum::$UNOWNED;
14511475 case 'unsafe': return EnumEnum::$UNSAFE;
14521476 case 'unsigned': return EnumEnum::$UNSIGNED;
Mschema-pikedefault / TopLevel.pmod+7 −1
@@ -290,9 +290,14 @@ enum Enum {
290290 SEL = "SEL", // json: "SEL"
291291 SELECT = "select", // json: "select"
292292 SELF = "Self", // json: "Self"
293+ SERIALIZABLE = "Serializable", // json: "Serializable"
293294 ENUM_SELF = "self", // json: "self"
294295 SENDABLE = "Sendable", // json: "Sendable"
295296 SERIALIZE = "serialize", // json: "serialize"
297+ SERIAL_NAME = "SerialName", // json: "SerialName"
298+ K_SERIALIZER = "KSerializer", // json: "KSerializer"
299+ PRIMITIVE_KIND = "PrimitiveKind", // json: "PrimitiveKind"
300+ SERIAL_DESCRIPTOR = "SerialDescriptor", // json: "SerialDescriptor"
296301 SERIALIZER_PROVIDER = "SerializerProvider", // json: "SerializerProvider"
297302 SET = "set", // json: "set"
298303 SHORT = "short", // json: "short"
@@ -343,6 +348,7 @@ enum Enum {
343348 UNCHECKED = "unchecked", // json: "unchecked"
344349 UNDEFINED = "undefined", // json: "undefined"
345350 UNION = "union", // json: "union"
351+ USE_SERIALIZERS = "UseSerializers", // json: "UseSerializers"
346352 UNOWNED = "unowned", // json: "unowned"
347353 UNSAFE = "unsafe", // json: "unsafe"
348354 UNSIGNED = "unsigned", // json: "unsigned"
@@ -369,5 +375,5 @@ enum Enum {
369375 }
370376
371377 Enum Enum_from_JSON(mixed json) {
372- if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
378+ if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "UseSerializers"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
373379 }
Mschema-pythondefault / quicktype.py+6 −0
@@ -289,9 +289,14 @@ class EnumEnum(Enum):
289289 SEL = "SEL"
290290 SELECT = "select"
291291 SELF = "Self"
292+ SERIALIZABLE = "Serializable"
292293 ENUM_SELF = "self"
293294 SENDABLE = "Sendable"
294295 SERIALIZE = "serialize"
296+ SERIAL_NAME = "SerialName"
297+ K_SERIALIZER = "KSerializer"
298+ PRIMITIVE_KIND = "PrimitiveKind"
299+ SERIAL_DESCRIPTOR = "SerialDescriptor"
295300 SERIALIZER_PROVIDER = "SerializerProvider"
296301 SET = "set"
297302 SHORT = "short"
@@ -342,6 +347,7 @@ class EnumEnum(Enum):
342347 UNCHECKED = "unchecked"
343348 UNDEFINED = "undefined"
344349 UNION = "union"
350+ USE_SERIALIZERS = "UseSerializers"
345351 UNOWNED = "unowned"
346352 UNSAFE = "unsafe"
347353 UNSIGNED = "unsigned"
Mschema-rubydefault / TopLevel.rb+7 −1
@@ -17,7 +17,7 @@ module Types
1717
1818 Hash = Strict::Hash
1919 String = Strict::String
20- Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "self", "Sendable", "serialize", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
20+ Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "UseSerializers", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
2121 end
2222
2323 module Enum
@@ -278,9 +278,14 @@ module Enum
278278 Sel = "SEL"
279279 Select = "select"
280280 Self = "Self"
281+ Serializable = "Serializable"
281282 EnumSelf = "self"
282283 Sendable = "Sendable"
283284 Serialize = "serialize"
285+ SerialName = "SerialName"
286+ KSerializer = "KSerializer"
287+ PrimitiveKind = "PrimitiveKind"
288+ SerialDescriptor = "SerialDescriptor"
284289 SerializerProvider = "SerializerProvider"
285290 Set = "set"
286291 Short = "short"
@@ -331,6 +336,7 @@ module Enum
331336 Unchecked = "unchecked"
332337 Undefined = "undefined"
333338 Union = "union"
339+ UseSerializers = "UseSerializers"
334340 Unowned = "unowned"
335341 Unsafe = "unsafe"
336342 Unsigned = "unsigned"
Mschema-rustdefault / module_under_test.rs+18 −0
@@ -622,6 +622,9 @@ pub enum Enum {
622622 #[serde(rename = "Self")]
623623 EnumSelf,
624624
625+ #[serde(rename = "Serializable")]
626+ Serializable,
627+
625628 #[serde(rename = "self")]
626629 PurpleSelf,
627630
@@ -631,6 +634,18 @@ pub enum Enum {
631634 #[serde(rename = "serialize")]
632635 EnumSerialize,
633636
637+ #[serde(rename = "SerialName")]
638+ SerialName,
639+
640+ #[serde(rename = "KSerializer")]
641+ KSerializer,
642+
643+ #[serde(rename = "PrimitiveKind")]
644+ PrimitiveKind,
645+
646+ #[serde(rename = "SerialDescriptor")]
647+ SerialDescriptor,
648+
634649 #[serde(rename = "SerializerProvider")]
635650 SerializerProvider,
636651
@@ -750,6 +765,9 @@ pub enum Enum {
750765
751766 Union,
752767
768+ #[serde(rename = "UseSerializers")]
769+ UseSerializers,
770+
753771 Unowned,
754772
755773 Unsafe,
Mschema-scala3-upickledefault / TopLevel.scala+18 −0
@@ -340,9 +340,14 @@ enum EnumEnum :
340340 case Sel
341341 case Select
342342 case Self
343+ case Serializable
343344 case EnumSelf
344345 case Sendable
345346 case Serialize
347+ case SerialName
348+ case KSerializer
349+ case PrimitiveKind
350+ case SerialDescriptor
346351 case SerializerProvider
347352 case Set
348353 case EnumShort
@@ -393,6 +398,7 @@ enum EnumEnum :
393398 case Unchecked
394399 case Undefined
395400 case Union
401+ case UseSerializers
396402 case Unowned
397403 case Unsafe
398404 case Unsigned
@@ -676,9 +682,14 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
676682 case EnumEnum.Sel => "SEL"
677683 case EnumEnum.Select => "select"
678684 case EnumEnum.Self => "Self"
685+ case EnumEnum.Serializable => "Serializable"
679686 case EnumEnum.EnumSelf => "self"
680687 case EnumEnum.Sendable => "Sendable"
681688 case EnumEnum.Serialize => "serialize"
689+ case EnumEnum.SerialName => "SerialName"
690+ case EnumEnum.KSerializer => "KSerializer"
691+ case EnumEnum.PrimitiveKind => "PrimitiveKind"
692+ case EnumEnum.SerialDescriptor => "SerialDescriptor"
682693 case EnumEnum.SerializerProvider => "SerializerProvider"
683694 case EnumEnum.Set => "set"
684695 case EnumEnum.EnumShort => "short"
@@ -729,6 +740,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
729740 case EnumEnum.Unchecked => "unchecked"
730741 case EnumEnum.Undefined => "undefined"
731742 case EnumEnum.Union => "union"
743+ case EnumEnum.UseSerializers => "UseSerializers"
732744 case EnumEnum.Unowned => "unowned"
733745 case EnumEnum.Unsafe => "unsafe"
734746 case EnumEnum.Unsigned => "unsigned"
@@ -1011,9 +1023,14 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
10111023 case "SEL" => EnumEnum.Sel
10121024 case "select" => EnumEnum.Select
10131025 case "Self" => EnumEnum.Self
1026+ case "Serializable" => EnumEnum.Serializable
10141027 case "self" => EnumEnum.EnumSelf
10151028 case "Sendable" => EnumEnum.Sendable
10161029 case "serialize" => EnumEnum.Serialize
1030+ case "SerialName" => EnumEnum.SerialName
1031+ case "KSerializer" => EnumEnum.KSerializer
1032+ case "PrimitiveKind" => EnumEnum.PrimitiveKind
1033+ case "SerialDescriptor" => EnumEnum.SerialDescriptor
10171034 case "SerializerProvider" => EnumEnum.SerializerProvider
10181035 case "set" => EnumEnum.Set
10191036 case "short" => EnumEnum.EnumShort
@@ -1064,6 +1081,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
10641081 case "unchecked" => EnumEnum.Unchecked
10651082 case "undefined" => EnumEnum.Undefined
10661083 case "union" => EnumEnum.Union
1084+ case "UseSerializers" => EnumEnum.UseSerializers
10671085 case "unowned" => EnumEnum.Unowned
10681086 case "unsafe" => EnumEnum.Unsafe
10691087 case "unsigned" => EnumEnum.Unsigned
Mschema-scala3default / TopLevel.scala+18 −0
@@ -269,9 +269,14 @@ enum EnumEnum :
269269 case Sel
270270 case Select
271271 case Self
272+ case Serializable
272273 case EnumSelf
273274 case Sendable
274275 case Serialize
276+ case SerialName
277+ case KSerializer
278+ case PrimitiveKind
279+ case SerialDescriptor
275280 case SerializerProvider
276281 case Set
277282 case EnumShort
@@ -322,6 +327,7 @@ enum EnumEnum :
322327 case Unchecked
323328 case Undefined
324329 case Union
330+ case UseSerializers
325331 case Unowned
326332 case Unsafe
327333 case Unsigned
@@ -604,9 +610,14 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
604610 case "SEL" => scala.Right(EnumEnum.Sel)
605611 case "select" => scala.Right(EnumEnum.Select)
606612 case "Self" => scala.Right(EnumEnum.Self)
613+ case "Serializable" => scala.Right(EnumEnum.Serializable)
607614 case "self" => scala.Right(EnumEnum.EnumSelf)
608615 case "Sendable" => scala.Right(EnumEnum.Sendable)
609616 case "serialize" => scala.Right(EnumEnum.Serialize)
617+ case "SerialName" => scala.Right(EnumEnum.SerialName)
618+ case "KSerializer" => scala.Right(EnumEnum.KSerializer)
619+ case "PrimitiveKind" => scala.Right(EnumEnum.PrimitiveKind)
620+ case "SerialDescriptor" => scala.Right(EnumEnum.SerialDescriptor)
610621 case "SerializerProvider" => scala.Right(EnumEnum.SerializerProvider)
611622 case "set" => scala.Right(EnumEnum.Set)
612623 case "short" => scala.Right(EnumEnum.EnumShort)
@@ -657,6 +668,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
657668 case "unchecked" => scala.Right(EnumEnum.Unchecked)
658669 case "undefined" => scala.Right(EnumEnum.Undefined)
659670 case "union" => scala.Right(EnumEnum.Union)
671+ case "UseSerializers" => scala.Right(EnumEnum.UseSerializers)
660672 case "unowned" => scala.Right(EnumEnum.Unowned)
661673 case "unsafe" => scala.Right(EnumEnum.Unsafe)
662674 case "unsigned" => scala.Right(EnumEnum.Unsigned)
@@ -940,9 +952,14 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
940952 case EnumEnum.Sel => "SEL"
941953 case EnumEnum.Select => "select"
942954 case EnumEnum.Self => "Self"
955+ case EnumEnum.Serializable => "Serializable"
943956 case EnumEnum.EnumSelf => "self"
944957 case EnumEnum.Sendable => "Sendable"
945958 case EnumEnum.Serialize => "serialize"
959+ case EnumEnum.SerialName => "SerialName"
960+ case EnumEnum.KSerializer => "KSerializer"
961+ case EnumEnum.PrimitiveKind => "PrimitiveKind"
962+ case EnumEnum.SerialDescriptor => "SerialDescriptor"
946963 case EnumEnum.SerializerProvider => "SerializerProvider"
947964 case EnumEnum.Set => "set"
948965 case EnumEnum.EnumShort => "short"
@@ -993,6 +1010,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
9931010 case EnumEnum.Unchecked => "unchecked"
9941011 case EnumEnum.Undefined => "undefined"
9951012 case EnumEnum.Union => "union"
1013+ case EnumEnum.UseSerializers => "UseSerializers"
9961014 case EnumEnum.Unowned => "unowned"
9971015 case EnumEnum.Unsafe => "unsafe"
9981016 case EnumEnum.Unsigned => "unsigned"
Mschema-schemadefault / TopLevel.schema+6 −0
@@ -273,9 +273,14 @@
273273 "SEL",
274274 "select",
275275 "Self",
276+ "Serializable",
276277 "self",
277278 "Sendable",
278279 "serialize",
280+ "SerialName",
281+ "KSerializer",
282+ "PrimitiveKind",
283+ "SerialDescriptor",
279284 "SerializerProvider",
280285 "set",
281286 "short",
@@ -326,6 +331,7 @@
326331 "unchecked",
327332 "undefined",
328333 "union",
334+ "UseSerializers",
329335 "unowned",
330336 "unsafe",
331337 "unsigned",
Mschema-swiftdefault / quicktype.swift+6 −0
@@ -307,9 +307,14 @@ enum Enum: String, Codable {
307307 case sel = "SEL"
308308 case select = "select"
309309 case enumSelf = "Self"
310+ case serializable = "Serializable"
310311 case purpleSelf = "self"
311312 case sendable = "Sendable"
312313 case serialize = "serialize"
314+ case serialName = "SerialName"
315+ case kSerializer = "KSerializer"
316+ case primitiveKind = "PrimitiveKind"
317+ case serialDescriptor = "SerialDescriptor"
313318 case serializerProvider = "SerializerProvider"
314319 case enumSet = "set"
315320 case short = "short"
@@ -360,6 +365,7 @@ enum Enum: String, Codable {
360365 case unchecked = "unchecked"
361366 case undefined = "undefined"
362367 case union = "union"
368+ case useSerializers = "UseSerializers"
363369 case enumUnowned = "unowned"
364370 case unsafe = "unsafe"
365371 case unsigned = "unsigned"
Mschema-typescript-effect-schemadefault / TopLevel.ts+6 −0
@@ -259,9 +259,14 @@ export const Enum = S.Literal(
259259 "SEL",
260260 "select",
261261 "Self",
262+ "Serializable",
262263 "self",
263264 "Sendable",
264265 "serialize",
266+ "SerialName",
267+ "KSerializer",
268+ "PrimitiveKind",
269+ "SerialDescriptor",
265270 "SerializerProvider",
266271 "set",
267272 "short",
@@ -312,6 +317,7 @@ export const Enum = S.Literal(
312317 "unchecked",
313318 "undefined",
314319 "union",
320+ "UseSerializers",
315321 "unowned",
316322 "unsafe",
317323 "unsigned",
Mschema-typescript-zoddefault / TopLevel.ts+6 −0
@@ -259,9 +259,14 @@ export const EnumSchema = z.enum([
259259 "SEL",
260260 "select",
261261 "Self",
262+ "Serializable",
262263 "self",
263264 "Sendable",
264265 "serialize",
266+ "SerialName",
267+ "KSerializer",
268+ "PrimitiveKind",
269+ "SerialDescriptor",
265270 "SerializerProvider",
266271 "set",
267272 "short",
@@ -312,6 +317,7 @@ export const EnumSchema = z.enum([
312317 "unchecked",
313318 "undefined",
314319 "union",
320+ "UseSerializers",
315321 "unowned",
316322 "unsafe",
317323 "unsigned",
Mschema-typescriptdefault / TopLevel.ts+7 −1
@@ -12,7 +12,7 @@ export interface TopLevel {
1212 [property: string]: unknown;
1313 }
1414
15-export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "Sendable" | "serialize" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
15+export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "UseSerializers" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
1616
1717 // Converts JSON strings to/from your types
1818 // and asserts the results of JSON.parse at runtime
@@ -462,9 +462,14 @@ const typeMap: any = {
462462 "SEL",
463463 "select",
464464 "Self",
465+ "Serializable",
465466 "self",
466467 "Sendable",
467468 "serialize",
469+ "SerialName",
470+ "KSerializer",
471+ "PrimitiveKind",
472+ "SerialDescriptor",
468473 "SerializerProvider",
469474 "set",
470475 "short",
@@ -515,6 +520,7 @@ const typeMap: any = {
515520 "unchecked",
516521 "undefined",
517522 "union",
523+ "UseSerializers",
518524 "unowned",
519525 "unsafe",
520526 "unsigned",
Test case

test/inputs/schema/keyword-unions.schema

67 generated files · +7,239 −165
Mschema-cjsondefault / TopLevel.c+624 −0
@@ -5197,6 +5197,50 @@ void cJSON_DeleteUnionJsonWriter(struct UnionJsonWriter * x) {
51975197 }
51985198 }
51995199
5200+struct UnionKSerializer * cJSON_GetUnionKSerializerValue(const cJSON * j) {
5201+ struct UnionKSerializer * x = cJSON_malloc(sizeof(struct UnionKSerializer));
5202+ if (NULL != x) {
5203+ memset(x, 0, sizeof(struct UnionKSerializer));
5204+ if (cJSON_IsNumber(j)) {
5205+ x->type = cJSON_Number;
5206+ x->value.number = cJSON_GetNumberValue(j);
5207+ }
5208+ else if (cJSON_IsObject(j)) {
5209+ x->type = cJSON_Object;
5210+ x->value.k_serializer = cJSON_GetKSerializerValue(j);
5211+ if (NULL == x->value.k_serializer) x->type = 0;
5212+ }
5213+ if (0 == x->type) { cJSON_free(x); return NULL; }
5214+ }
5215+ return x;
5216+}
5217+struct UnionKSerializer * cJSON_ParseUnionKSerializer(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionKSerializer * x = j ? cJSON_GetUnionKSerializerValue(j) : NULL; cJSON_Delete(j); return x; }
5218+char * cJSON_PrintUnionKSerializer(const struct UnionKSerializer * x) { cJSON * j = cJSON_CreateUnionKSerializer(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
5219+
5220+cJSON * cJSON_CreateUnionKSerializer(const struct UnionKSerializer * x) {
5221+ cJSON * j = NULL;
5222+ if (NULL != x) {
5223+ if (cJSON_Number == x->type) {
5224+ j = cJSON_CreateNumber(x->value.number);
5225+ }
5226+ else if (cJSON_Object == x->type) {
5227+ j = cJSON_CreateKSerializer(x->value.k_serializer);
5228+ }
5229+ }
5230+ return j;
5231+}
5232+
5233+void cJSON_DeleteUnionKSerializer(struct UnionKSerializer * x) {
5234+ if (NULL != x) {
5235+ if (cJSON_Number == x->type) {
5236+ }
5237+ else if (cJSON_Object == x->type) {
5238+ cJSON_DeleteKSerializer(x->value.k_serializer);
5239+ }
5240+ cJSON_free(x);
5241+ }
5242+}
5243+
52005244 struct UnionLambda * cJSON_GetUnionLambdaValue(const cJSON * j) {
52015245 struct UnionLambda * x = cJSON_malloc(sizeof(struct UnionLambda));
52025246 if (NULL != x) {
@@ -6913,6 +6957,50 @@ void cJSON_DeleteUnionPrefix(struct UnionPrefix * x) {
69136957 }
69146958 }
69156959
6960+struct UnionPrimitiveKind * cJSON_GetUnionPrimitiveKindValue(const cJSON * j) {
6961+ struct UnionPrimitiveKind * x = cJSON_malloc(sizeof(struct UnionPrimitiveKind));
6962+ if (NULL != x) {
6963+ memset(x, 0, sizeof(struct UnionPrimitiveKind));
6964+ if (cJSON_IsNumber(j)) {
6965+ x->type = cJSON_Number;
6966+ x->value.number = cJSON_GetNumberValue(j);
6967+ }
6968+ else if (cJSON_IsObject(j)) {
6969+ x->type = cJSON_Object;
6970+ x->value.primitive_kind = cJSON_GetPrimitiveKindValue(j);
6971+ if (NULL == x->value.primitive_kind) x->type = 0;
6972+ }
6973+ if (0 == x->type) { cJSON_free(x); return NULL; }
6974+ }
6975+ return x;
6976+}
6977+struct UnionPrimitiveKind * cJSON_ParseUnionPrimitiveKind(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionPrimitiveKind * x = j ? cJSON_GetUnionPrimitiveKindValue(j) : NULL; cJSON_Delete(j); return x; }
6978+char * cJSON_PrintUnionPrimitiveKind(const struct UnionPrimitiveKind * x) { cJSON * j = cJSON_CreateUnionPrimitiveKind(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6979+
6980+cJSON * cJSON_CreateUnionPrimitiveKind(const struct UnionPrimitiveKind * x) {
6981+ cJSON * j = NULL;
6982+ if (NULL != x) {
6983+ if (cJSON_Number == x->type) {
6984+ j = cJSON_CreateNumber(x->value.number);
6985+ }
6986+ else if (cJSON_Object == x->type) {
6987+ j = cJSON_CreatePrimitiveKind(x->value.primitive_kind);
6988+ }
6989+ }
6990+ return j;
6991+}
6992+
6993+void cJSON_DeleteUnionPrimitiveKind(struct UnionPrimitiveKind * x) {
6994+ if (NULL != x) {
6995+ if (cJSON_Number == x->type) {
6996+ }
6997+ else if (cJSON_Object == x->type) {
6998+ cJSON_DeletePrimitiveKind(x->value.primitive_kind);
6999+ }
7000+ cJSON_free(x);
7001+ }
7002+}
7003+
69167004 struct UnionPrint * cJSON_GetUnionPrintValue(const cJSON * j) {
69177005 struct UnionPrint * x = cJSON_malloc(sizeof(struct UnionPrint));
69187006 if (NULL != x) {
@@ -8145,6 +8233,138 @@ void cJSON_DeleteUnionSendable(struct UnionSendable * x) {
81458233 }
81468234 }
81478235
8236+struct UnionSerialDescriptor * cJSON_GetUnionSerialDescriptorValue(const cJSON * j) {
8237+ struct UnionSerialDescriptor * x = cJSON_malloc(sizeof(struct UnionSerialDescriptor));
8238+ if (NULL != x) {
8239+ memset(x, 0, sizeof(struct UnionSerialDescriptor));
8240+ if (cJSON_IsNumber(j)) {
8241+ x->type = cJSON_Number;
8242+ x->value.number = cJSON_GetNumberValue(j);
8243+ }
8244+ else if (cJSON_IsObject(j)) {
8245+ x->type = cJSON_Object;
8246+ x->value.serial_descriptor = cJSON_GetSerialDescriptorValue(j);
8247+ if (NULL == x->value.serial_descriptor) x->type = 0;
8248+ }
8249+ if (0 == x->type) { cJSON_free(x); return NULL; }
8250+ }
8251+ return x;
8252+}
8253+struct UnionSerialDescriptor * cJSON_ParseUnionSerialDescriptor(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionSerialDescriptor * x = j ? cJSON_GetUnionSerialDescriptorValue(j) : NULL; cJSON_Delete(j); return x; }
8254+char * cJSON_PrintUnionSerialDescriptor(const struct UnionSerialDescriptor * x) { cJSON * j = cJSON_CreateUnionSerialDescriptor(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
8255+
8256+cJSON * cJSON_CreateUnionSerialDescriptor(const struct UnionSerialDescriptor * x) {
8257+ cJSON * j = NULL;
8258+ if (NULL != x) {
8259+ if (cJSON_Number == x->type) {
8260+ j = cJSON_CreateNumber(x->value.number);
8261+ }
8262+ else if (cJSON_Object == x->type) {
8263+ j = cJSON_CreateSerialDescriptor(x->value.serial_descriptor);
8264+ }
8265+ }
8266+ return j;
8267+}
8268+
8269+void cJSON_DeleteUnionSerialDescriptor(struct UnionSerialDescriptor * x) {
8270+ if (NULL != x) {
8271+ if (cJSON_Number == x->type) {
8272+ }
8273+ else if (cJSON_Object == x->type) {
8274+ cJSON_DeleteSerialDescriptor(x->value.serial_descriptor);
8275+ }
8276+ cJSON_free(x);
8277+ }
8278+}
8279+
8280+struct UnionSerialName * cJSON_GetUnionSerialNameValue(const cJSON * j) {
8281+ struct UnionSerialName * x = cJSON_malloc(sizeof(struct UnionSerialName));
8282+ if (NULL != x) {
8283+ memset(x, 0, sizeof(struct UnionSerialName));
8284+ if (cJSON_IsNumber(j)) {
8285+ x->type = cJSON_Number;
8286+ x->value.number = cJSON_GetNumberValue(j);
8287+ }
8288+ else if (cJSON_IsObject(j)) {
8289+ x->type = cJSON_Object;
8290+ x->value.serial_name = cJSON_GetSerialNameValue(j);
8291+ if (NULL == x->value.serial_name) x->type = 0;
8292+ }
8293+ if (0 == x->type) { cJSON_free(x); return NULL; }
8294+ }
8295+ return x;
8296+}
8297+struct UnionSerialName * cJSON_ParseUnionSerialName(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionSerialName * x = j ? cJSON_GetUnionSerialNameValue(j) : NULL; cJSON_Delete(j); return x; }
8298+char * cJSON_PrintUnionSerialName(const struct UnionSerialName * x) { cJSON * j = cJSON_CreateUnionSerialName(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
8299+
8300+cJSON * cJSON_CreateUnionSerialName(const struct UnionSerialName * x) {
8301+ cJSON * j = NULL;
8302+ if (NULL != x) {
8303+ if (cJSON_Number == x->type) {
8304+ j = cJSON_CreateNumber(x->value.number);
8305+ }
8306+ else if (cJSON_Object == x->type) {
8307+ j = cJSON_CreateSerialName(x->value.serial_name);
8308+ }
8309+ }
8310+ return j;
8311+}
8312+
8313+void cJSON_DeleteUnionSerialName(struct UnionSerialName * x) {
8314+ if (NULL != x) {
8315+ if (cJSON_Number == x->type) {
8316+ }
8317+ else if (cJSON_Object == x->type) {
8318+ cJSON_DeleteSerialName(x->value.serial_name);
8319+ }
8320+ cJSON_free(x);
8321+ }
8322+}
8323+
8324+struct UnionSerializable * cJSON_GetUnionSerializableValue(const cJSON * j) {
8325+ struct UnionSerializable * x = cJSON_malloc(sizeof(struct UnionSerializable));
8326+ if (NULL != x) {
8327+ memset(x, 0, sizeof(struct UnionSerializable));
8328+ if (cJSON_IsNumber(j)) {
8329+ x->type = cJSON_Number;
8330+ x->value.number = cJSON_GetNumberValue(j);
8331+ }
8332+ else if (cJSON_IsObject(j)) {
8333+ x->type = cJSON_Object;
8334+ x->value.serializable = cJSON_GetSerializableValue(j);
8335+ if (NULL == x->value.serializable) x->type = 0;
8336+ }
8337+ if (0 == x->type) { cJSON_free(x); return NULL; }
8338+ }
8339+ return x;
8340+}
8341+struct UnionSerializable * cJSON_ParseUnionSerializable(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionSerializable * x = j ? cJSON_GetUnionSerializableValue(j) : NULL; cJSON_Delete(j); return x; }
8342+char * cJSON_PrintUnionSerializable(const struct UnionSerializable * x) { cJSON * j = cJSON_CreateUnionSerializable(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
8343+
8344+cJSON * cJSON_CreateUnionSerializable(const struct UnionSerializable * x) {
8345+ cJSON * j = NULL;
8346+ if (NULL != x) {
8347+ if (cJSON_Number == x->type) {
8348+ j = cJSON_CreateNumber(x->value.number);
8349+ }
8350+ else if (cJSON_Object == x->type) {
8351+ j = cJSON_CreateSerializable(x->value.serializable);
8352+ }
8353+ }
8354+ return j;
8355+}
8356+
8357+void cJSON_DeleteUnionSerializable(struct UnionSerializable * x) {
8358+ if (NULL != x) {
8359+ if (cJSON_Number == x->type) {
8360+ }
8361+ else if (cJSON_Object == x->type) {
8362+ cJSON_DeleteSerializable(x->value.serializable);
8363+ }
8364+ cJSON_free(x);
8365+ }
8366+}
8367+
81488368 struct UnionSerialize * cJSON_GetUnionSerializeValue(const cJSON * j) {
81498369 struct UnionSerialize * x = cJSON_malloc(sizeof(struct UnionSerialize));
81508370 if (NULL != x) {
@@ -14129,6 +14349,50 @@ void cJSON_DeleteUnionUnsafe(struct UnionUnsafe * x) {
1412914349 }
1413014350 }
1413114351
14352+struct UnionUseSerializers * cJSON_GetUnionUseSerializersValue(const cJSON * j) {
14353+ struct UnionUseSerializers * x = cJSON_malloc(sizeof(struct UnionUseSerializers));
14354+ if (NULL != x) {
14355+ memset(x, 0, sizeof(struct UnionUseSerializers));
14356+ if (cJSON_IsNumber(j)) {
14357+ x->type = cJSON_Number;
14358+ x->value.number = cJSON_GetNumberValue(j);
14359+ }
14360+ else if (cJSON_IsObject(j)) {
14361+ x->type = cJSON_Object;
14362+ x->value.use_serializers = cJSON_GetUseSerializersValue(j);
14363+ if (NULL == x->value.use_serializers) x->type = 0;
14364+ }
14365+ if (0 == x->type) { cJSON_free(x); return NULL; }
14366+ }
14367+ return x;
14368+}
14369+struct UnionUseSerializers * cJSON_ParseUnionUseSerializers(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionUseSerializers * x = j ? cJSON_GetUnionUseSerializersValue(j) : NULL; cJSON_Delete(j); return x; }
14370+char * cJSON_PrintUnionUseSerializers(const struct UnionUseSerializers * x) { cJSON * j = cJSON_CreateUnionUseSerializers(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
14371+
14372+cJSON * cJSON_CreateUnionUseSerializers(const struct UnionUseSerializers * x) {
14373+ cJSON * j = NULL;
14374+ if (NULL != x) {
14375+ if (cJSON_Number == x->type) {
14376+ j = cJSON_CreateNumber(x->value.number);
14377+ }
14378+ else if (cJSON_Object == x->type) {
14379+ j = cJSON_CreateUseSerializers(x->value.use_serializers);
14380+ }
14381+ }
14382+ return j;
14383+}
14384+
14385+void cJSON_DeleteUnionUseSerializers(struct UnionUseSerializers * x) {
14386+ if (NULL != x) {
14387+ if (cJSON_Number == x->type) {
14388+ }
14389+ else if (cJSON_Object == x->type) {
14390+ cJSON_DeleteUseSerializers(x->value.use_serializers);
14391+ }
14392+ cJSON_free(x);
14393+ }
14394+}
14395+
1413214396 struct UnionUshort * cJSON_GetUnionUshortValue(const cJSON * j) {
1413314397 struct UnionUshort * x = cJSON_malloc(sizeof(struct UnionUshort));
1413414398 if (NULL != x) {
@@ -20395,6 +20659,55 @@ void cJSON_DeleteJsonWriter(struct JsonWriter * x) {
2039520659 }
2039620660 }
2039720661
20662+struct KSerializer * cJSON_ParseKSerializer(const char * s) {
20663+ struct KSerializer * x = NULL;
20664+ if (NULL != s) {
20665+ cJSON * j = cJSON_Parse(s);
20666+ if (NULL != j) {
20667+ x = cJSON_GetKSerializerValue(j);
20668+ cJSON_Delete(j);
20669+ }
20670+ }
20671+ return x;
20672+}
20673+
20674+struct KSerializer * cJSON_GetKSerializerValue(const cJSON * j) {
20675+ struct KSerializer * x = NULL;
20676+ if (NULL != j) {
20677+ if (NULL != (x = cJSON_malloc(sizeof(struct KSerializer)))) {
20678+ memset(x, 0, sizeof(struct KSerializer));
20679+ }
20680+ }
20681+ return x;
20682+}
20683+
20684+cJSON * cJSON_CreateKSerializer(const struct KSerializer * x) {
20685+ cJSON * j = NULL;
20686+ if (NULL != x) {
20687+ if (NULL != (j = cJSON_CreateObject())) {
20688+ }
20689+ }
20690+ return j;
20691+}
20692+
20693+char * cJSON_PrintKSerializer(const struct KSerializer * x) {
20694+ char * s = NULL;
20695+ if (NULL != x) {
20696+ cJSON * j = cJSON_CreateKSerializer(x);
20697+ if (NULL != j) {
20698+ s = cJSON_Print(j);
20699+ cJSON_Delete(j);
20700+ }
20701+ }
20702+ return s;
20703+}
20704+
20705+void cJSON_DeleteKSerializer(struct KSerializer * x) {
20706+ if (NULL != x) {
20707+ cJSON_free(x);
20708+ }
20709+}
20710+
2039820711 struct Lambda * cJSON_ParseLambda(const char * s) {
2039920712 struct Lambda * x = NULL;
2040020713 if (NULL != s) {
@@ -22306,6 +22619,55 @@ void cJSON_DeletePrefix(struct Prefix * x) {
2230622619 }
2230722620 }
2230822621
22622+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
22623+ struct PrimitiveKind * x = NULL;
22624+ if (NULL != s) {
22625+ cJSON * j = cJSON_Parse(s);
22626+ if (NULL != j) {
22627+ x = cJSON_GetPrimitiveKindValue(j);
22628+ cJSON_Delete(j);
22629+ }
22630+ }
22631+ return x;
22632+}
22633+
22634+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
22635+ struct PrimitiveKind * x = NULL;
22636+ if (NULL != j) {
22637+ if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
22638+ memset(x, 0, sizeof(struct PrimitiveKind));
22639+ }
22640+ }
22641+ return x;
22642+}
22643+
22644+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
22645+ cJSON * j = NULL;
22646+ if (NULL != x) {
22647+ if (NULL != (j = cJSON_CreateObject())) {
22648+ }
22649+ }
22650+ return j;
22651+}
22652+
22653+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
22654+ char * s = NULL;
22655+ if (NULL != x) {
22656+ cJSON * j = cJSON_CreatePrimitiveKind(x);
22657+ if (NULL != j) {
22658+ s = cJSON_Print(j);
22659+ cJSON_Delete(j);
22660+ }
22661+ }
22662+ return s;
22663+}
22664+
22665+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
22666+ if (NULL != x) {
22667+ cJSON_free(x);
22668+ }
22669+}
22670+
2230922671 struct Print * cJSON_ParsePrint(const char * s) {
2231022672 struct Print * x = NULL;
2231122673 if (NULL != s) {
@@ -23678,6 +24040,153 @@ void cJSON_DeleteSendable(struct Sendable * x) {
2367824040 }
2367924041 }
2368024042
24043+struct SerialDescriptor * cJSON_ParseSerialDescriptor(const char * s) {
24044+ struct SerialDescriptor * x = NULL;
24045+ if (NULL != s) {
24046+ cJSON * j = cJSON_Parse(s);
24047+ if (NULL != j) {
24048+ x = cJSON_GetSerialDescriptorValue(j);
24049+ cJSON_Delete(j);
24050+ }
24051+ }
24052+ return x;
24053+}
24054+
24055+struct SerialDescriptor * cJSON_GetSerialDescriptorValue(const cJSON * j) {
24056+ struct SerialDescriptor * x = NULL;
24057+ if (NULL != j) {
24058+ if (NULL != (x = cJSON_malloc(sizeof(struct SerialDescriptor)))) {
24059+ memset(x, 0, sizeof(struct SerialDescriptor));
24060+ }
24061+ }
24062+ return x;
24063+}
24064+
24065+cJSON * cJSON_CreateSerialDescriptor(const struct SerialDescriptor * x) {
24066+ cJSON * j = NULL;
24067+ if (NULL != x) {
24068+ if (NULL != (j = cJSON_CreateObject())) {
24069+ }
24070+ }
24071+ return j;
24072+}
24073+
24074+char * cJSON_PrintSerialDescriptor(const struct SerialDescriptor * x) {
24075+ char * s = NULL;
24076+ if (NULL != x) {
24077+ cJSON * j = cJSON_CreateSerialDescriptor(x);
24078+ if (NULL != j) {
24079+ s = cJSON_Print(j);
24080+ cJSON_Delete(j);
24081+ }
24082+ }
24083+ return s;
24084+}
24085+
24086+void cJSON_DeleteSerialDescriptor(struct SerialDescriptor * x) {
24087+ if (NULL != x) {
24088+ cJSON_free(x);
24089+ }
24090+}
24091+
24092+struct SerialName * cJSON_ParseSerialName(const char * s) {
24093+ struct SerialName * x = NULL;
24094+ if (NULL != s) {
24095+ cJSON * j = cJSON_Parse(s);
24096+ if (NULL != j) {
24097+ x = cJSON_GetSerialNameValue(j);
24098+ cJSON_Delete(j);
24099+ }
24100+ }
24101+ return x;
24102+}
24103+
24104+struct SerialName * cJSON_GetSerialNameValue(const cJSON * j) {
24105+ struct SerialName * x = NULL;
24106+ if (NULL != j) {
24107+ if (NULL != (x = cJSON_malloc(sizeof(struct SerialName)))) {
24108+ memset(x, 0, sizeof(struct SerialName));
24109+ }
24110+ }
24111+ return x;
24112+}
24113+
24114+cJSON * cJSON_CreateSerialName(const struct SerialName * x) {
24115+ cJSON * j = NULL;
24116+ if (NULL != x) {
24117+ if (NULL != (j = cJSON_CreateObject())) {
24118+ }
24119+ }
24120+ return j;
24121+}
24122+
24123+char * cJSON_PrintSerialName(const struct SerialName * x) {
24124+ char * s = NULL;
24125+ if (NULL != x) {
24126+ cJSON * j = cJSON_CreateSerialName(x);
24127+ if (NULL != j) {
24128+ s = cJSON_Print(j);
24129+ cJSON_Delete(j);
24130+ }
24131+ }
24132+ return s;
24133+}
24134+
24135+void cJSON_DeleteSerialName(struct SerialName * x) {
24136+ if (NULL != x) {
24137+ cJSON_free(x);
24138+ }
24139+}
24140+
24141+struct Serializable * cJSON_ParseSerializable(const char * s) {
24142+ struct Serializable * x = NULL;
24143+ if (NULL != s) {
24144+ cJSON * j = cJSON_Parse(s);
24145+ if (NULL != j) {
24146+ x = cJSON_GetSerializableValue(j);
24147+ cJSON_Delete(j);
24148+ }
24149+ }
24150+ return x;
24151+}
24152+
24153+struct Serializable * cJSON_GetSerializableValue(const cJSON * j) {
24154+ struct Serializable * x = NULL;
24155+ if (NULL != j) {
24156+ if (NULL != (x = cJSON_malloc(sizeof(struct Serializable)))) {
24157+ memset(x, 0, sizeof(struct Serializable));
24158+ }
24159+ }
24160+ return x;
24161+}
24162+
24163+cJSON * cJSON_CreateSerializable(const struct Serializable * x) {
24164+ cJSON * j = NULL;
24165+ if (NULL != x) {
24166+ if (NULL != (j = cJSON_CreateObject())) {
24167+ }
24168+ }
24169+ return j;
24170+}
24171+
24172+char * cJSON_PrintSerializable(const struct Serializable * x) {
24173+ char * s = NULL;
24174+ if (NULL != x) {
24175+ cJSON * j = cJSON_CreateSerializable(x);
24176+ if (NULL != j) {
24177+ s = cJSON_Print(j);
24178+ cJSON_Delete(j);
24179+ }
24180+ }
24181+ return s;
24182+}
24183+
24184+void cJSON_DeleteSerializable(struct Serializable * x) {
24185+ if (NULL != x) {
24186+ cJSON_free(x);
24187+ }
24188+}
24189+
2368124190 struct Serialize * cJSON_ParseSerialize(const char * s) {
2368224191 struct Serialize * x = NULL;
2368324192 if (NULL != s) {
@@ -30342,6 +30851,55 @@ void cJSON_DeleteUnsafe(struct Unsafe * x) {
3034230851 }
3034330852 }
3034430853
30854+struct UseSerializers * cJSON_ParseUseSerializers(const char * s) {
30855+ struct UseSerializers * x = NULL;
30856+ if (NULL != s) {
30857+ cJSON * j = cJSON_Parse(s);
30858+ if (NULL != j) {
30859+ x = cJSON_GetUseSerializersValue(j);
30860+ cJSON_Delete(j);
30861+ }
30862+ }
30863+ return x;
30864+}
30865+
30866+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) {
30867+ struct UseSerializers * x = NULL;
30868+ if (NULL != j) {
30869+ if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) {
30870+ memset(x, 0, sizeof(struct UseSerializers));
30871+ }
30872+ }
30873+ return x;
30874+}
30875+
30876+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) {
30877+ cJSON * j = NULL;
30878+ if (NULL != x) {
30879+ if (NULL != (j = cJSON_CreateObject())) {
30880+ }
30881+ }
30882+ return j;
30883+}
30884+
30885+char * cJSON_PrintUseSerializers(const struct UseSerializers * x) {
30886+ char * s = NULL;
30887+ if (NULL != x) {
30888+ cJSON * j = cJSON_CreateUseSerializers(x);
30889+ if (NULL != j) {
30890+ s = cJSON_Print(j);
30891+ cJSON_Delete(j);
30892+ }
30893+ }
30894+ return s;
30895+}
30896+
30897+void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
30898+ if (NULL != x) {
30899+ cJSON_free(x);
30900+ }
30901+}
30902+
3034530903 struct Ushort * cJSON_ParseUshort(const char * s) {
3034630904 struct Ushort * x = NULL;
3034730905 if (NULL != s) {
@@ -31759,6 +32317,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3175932317 x->json_token_type = cJSON_GetUnionJsonTokenTypeValue(cJSON_GetObjectItemCaseSensitive(j, "JsonTokenType"));
3176032318 if (NULL == x->json_token_type) { cJSON_DeleteTopLevel(x); return NULL; }
3176132319 }
32320+ if (cJSON_HasObjectItem(j, "KSerializer")) {
32321+ if (!cJSON_IsUnionKSerializer(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"))) { cJSON_DeleteTopLevel(x); return NULL; }
32322+ x->k_serializer = cJSON_GetUnionKSerializerValue(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"));
32323+ if (NULL == x->k_serializer) { cJSON_DeleteTopLevel(x); return NULL; }
32324+ }
3176232325 if (cJSON_HasObjectItem(j, "lambda")) {
3176332326 if (!cJSON_IsUnionLambda(cJSON_GetObjectItemCaseSensitive(j, "lambda"))) { cJSON_DeleteTopLevel(x); return NULL; }
3176432327 x->lambda = cJSON_GetUnionLambdaValue(cJSON_GetObjectItemCaseSensitive(j, "lambda"));
@@ -32029,6 +32592,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3202932592 x->prefix = cJSON_GetUnionPrefixValue(cJSON_GetObjectItemCaseSensitive(j, "prefix"));
3203032593 if (NULL == x->prefix) { cJSON_DeleteTopLevel(x); return NULL; }
3203132594 }
32595+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
32596+ if (!cJSON_IsUnionPrimitiveKind(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteTopLevel(x); return NULL; }
32597+ x->primitive_kind = cJSON_GetUnionPrimitiveKindValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
32598+ if (NULL == x->primitive_kind) { cJSON_DeleteTopLevel(x); return NULL; }
32599+ }
3203232600 if (cJSON_HasObjectItem(j, "print")) {
3203332601 if (!cJSON_IsUnionPrint(cJSON_GetObjectItemCaseSensitive(j, "print"))) { cJSON_DeleteTopLevel(x); return NULL; }
3203432602 x->print = cJSON_GetUnionPrintValue(cJSON_GetObjectItemCaseSensitive(j, "print"));
@@ -32199,6 +32767,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3219932767 x->sendable = cJSON_GetUnionSendableValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable"));
3220032768 if (NULL == x->sendable) { cJSON_DeleteTopLevel(x); return NULL; }
3220132769 }
32770+ if (cJSON_HasObjectItem(j, "SerialDescriptor")) {
32771+ if (!cJSON_IsUnionSerialDescriptor(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"))) { cJSON_DeleteTopLevel(x); return NULL; }
32772+ x->serial_descriptor = cJSON_GetUnionSerialDescriptorValue(cJSON_GetObjectItemCaseSensitive(j, "SerialDescriptor"));
32773+ if (NULL == x->serial_descriptor) { cJSON_DeleteTopLevel(x); return NULL; }
32774+ }
32775+ if (cJSON_HasObjectItem(j, "Serializable")) {
32776+ if (!cJSON_IsUnionSerializable(cJSON_GetObjectItemCaseSensitive(j, "Serializable"))) { cJSON_DeleteTopLevel(x); return NULL; }
32777+ x->serializable = cJSON_GetUnionSerializableValue(cJSON_GetObjectItemCaseSensitive(j, "Serializable"));
32778+ if (NULL == x->serializable) { cJSON_DeleteTopLevel(x); return NULL; }
32779+ }
3220232780 if (cJSON_HasObjectItem(j, "serialize")) {
3220332781 if (!cJSON_IsUnionSerialize(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteTopLevel(x); return NULL; }
3220432782 x->serialize = cJSON_GetUnionSerializeValue(cJSON_GetObjectItemCaseSensitive(j, "serialize"));
@@ -32209,6 +32787,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3220932787 x->serializer_provider = cJSON_GetUnionSerializerProviderValue(cJSON_GetObjectItemCaseSensitive(j, "SerializerProvider"));
3221032788 if (NULL == x->serializer_provider) { cJSON_DeleteTopLevel(x); return NULL; }
3221132789 }
32790+ if (cJSON_HasObjectItem(j, "SerialName")) {
32791+ if (!cJSON_IsUnionSerialName(cJSON_GetObjectItemCaseSensitive(j, "SerialName"))) { cJSON_DeleteTopLevel(x); return NULL; }
32792+ x->serial_name = cJSON_GetUnionSerialNameValue(cJSON_GetObjectItemCaseSensitive(j, "SerialName"));
32793+ if (NULL == x->serial_name) { cJSON_DeleteTopLevel(x); return NULL; }
32794+ }
3221232795 if (cJSON_HasObjectItem(j, "set")) {
3221332796 if (!cJSON_IsUnionSet(cJSON_GetObjectItemCaseSensitive(j, "set"))) { cJSON_DeleteTopLevel(x); return NULL; }
3221432797 x->set = cJSON_GetUnionSetValue(cJSON_GetObjectItemCaseSensitive(j, "set"));
@@ -32469,6 +33052,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3246933052 x->top_level_unsigned = cJSON_GetUnionUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
3247033053 if (NULL == x->top_level_unsigned) { cJSON_DeleteTopLevel(x); return NULL; }
3247133054 }
33055+ if (cJSON_HasObjectItem(j, "UseSerializers")) {
33056+ if (!cJSON_IsUnionUseSerializers(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteTopLevel(x); return NULL; }
33057+ x->use_serializers = cJSON_GetUnionUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
33058+ if (NULL == x->use_serializers) { cJSON_DeleteTopLevel(x); return NULL; }
33059+ }
3247233060 if (cJSON_HasObjectItem(j, "ushort")) {
3247333061 if (!cJSON_IsUnionUshort(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteTopLevel(x); return NULL; }
3247433062 x->ushort = cJSON_GetUnionUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
@@ -33089,6 +33677,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3308933677 if (NULL != x->json_token_type) {
3309033678 cJSON_AddItemToObject(j, "JsonTokenType", cJSON_CreateUnionJsonTokenType(x->json_token_type));
3309133679 }
33680+ if (NULL != x->k_serializer) {
33681+ cJSON_AddItemToObject(j, "KSerializer", cJSON_CreateUnionKSerializer(x->k_serializer));
33682+ }
3309233683 if (NULL != x->lambda) {
3309333684 cJSON_AddItemToObject(j, "lambda", cJSON_CreateUnionLambda(x->lambda));
3309433685 }
@@ -33251,6 +33842,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3325133842 if (NULL != x->prefix) {
3325233843 cJSON_AddItemToObject(j, "prefix", cJSON_CreateUnionPrefix(x->prefix));
3325333844 }
33845+ if (NULL != x->primitive_kind) {
33846+ cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreateUnionPrimitiveKind(x->primitive_kind));
33847+ }
3325433848 if (NULL != x->print) {
3325533849 cJSON_AddItemToObject(j, "print", cJSON_CreateUnionPrint(x->print));
3325633850 }
@@ -33353,12 +33947,21 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3335333947 if (NULL != x->sendable) {
3335433948 cJSON_AddItemToObject(j, "Sendable", cJSON_CreateUnionSendable(x->sendable));
3335533949 }
33950+ if (NULL != x->serial_descriptor) {
33951+ cJSON_AddItemToObject(j, "SerialDescriptor", cJSON_CreateUnionSerialDescriptor(x->serial_descriptor));
33952+ }
33953+ if (NULL != x->serializable) {
33954+ cJSON_AddItemToObject(j, "Serializable", cJSON_CreateUnionSerializable(x->serializable));
33955+ }
3335633956 if (NULL != x->serialize) {
3335733957 cJSON_AddItemToObject(j, "serialize", cJSON_CreateUnionSerialize(x->serialize));
3335833958 }
3335933959 if (NULL != x->serializer_provider) {
3336033960 cJSON_AddItemToObject(j, "SerializerProvider", cJSON_CreateUnionSerializerProvider(x->serializer_provider));
3336133961 }
33962+ if (NULL != x->serial_name) {
33963+ cJSON_AddItemToObject(j, "SerialName", cJSON_CreateUnionSerialName(x->serial_name));
33964+ }
3336233965 if (NULL != x->set) {
3336333966 cJSON_AddItemToObject(j, "set", cJSON_CreateUnionSet(x->set));
3336433967 }
@@ -33515,6 +34118,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3351534118 if (NULL != x->top_level_unsigned) {
3351634119 cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnionUnsigned(x->top_level_unsigned));
3351734120 }
34121+ if (NULL != x->use_serializers) {
34122+ cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUnionUseSerializers(x->use_serializers));
34123+ }
3351834124 if (NULL != x->ushort) {
3351934125 cJSON_AddItemToObject(j, "ushort", cJSON_CreateUnionUshort(x->ushort));
3352034126 }
@@ -34107,6 +34713,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3410734713 if (NULL != x->json_token_type) {
3410834714 cJSON_DeleteUnionJsonTokenType(x->json_token_type);
3410934715 }
34716+ if (NULL != x->k_serializer) {
34717+ cJSON_DeleteUnionKSerializer(x->k_serializer);
34718+ }
3411034719 if (NULL != x->lambda) {
3411134720 cJSON_DeleteUnionLambda(x->lambda);
3411234721 }
@@ -34269,6 +34878,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3426934878 if (NULL != x->prefix) {
3427034879 cJSON_DeleteUnionPrefix(x->prefix);
3427134880 }
34881+ if (NULL != x->primitive_kind) {
34882+ cJSON_DeleteUnionPrimitiveKind(x->primitive_kind);
34883+ }
3427234884 if (NULL != x->print) {
3427334885 cJSON_DeleteUnionPrint(x->print);
3427434886 }
@@ -34371,12 +34983,21 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3437134983 if (NULL != x->sendable) {
3437234984 cJSON_DeleteUnionSendable(x->sendable);
3437334985 }
34986+ if (NULL != x->serial_descriptor) {
34987+ cJSON_DeleteUnionSerialDescriptor(x->serial_descriptor);
34988+ }
34989+ if (NULL != x->serializable) {
34990+ cJSON_DeleteUnionSerializable(x->serializable);
34991+ }
3437434992 if (NULL != x->serialize) {
3437534993 cJSON_DeleteUnionSerialize(x->serialize);
3437634994 }
3437734995 if (NULL != x->serializer_provider) {
3437834996 cJSON_DeleteUnionSerializerProvider(x->serializer_provider);
3437934997 }
34998+ if (NULL != x->serial_name) {
34999+ cJSON_DeleteUnionSerialName(x->serial_name);
35000+ }
3438035001 if (NULL != x->set) {
3438135002 cJSON_DeleteUnionSet(x->set);
3438235003 }
@@ -34533,6 +35154,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3453335154 if (NULL != x->top_level_unsigned) {
3453435155 cJSON_DeleteUnionUnsigned(x->top_level_unsigned);
3453535156 }
35157+ if (NULL != x->use_serializers) {
35158+ cJSON_DeleteUnionUseSerializers(x->use_serializers);
35159+ }
3453635160 if (NULL != x->ushort) {
3453735161 cJSON_DeleteUnionUshort(x->ushort);
3453835162 }
Mschema-cjsondefault / TopLevel.h+150 −0
@@ -1346,6 +1346,17 @@ struct UnionJsonWriter {
13461346 } value;
13471347 };
13481348
1349+struct KSerializer {
1350+};
1351+
1352+struct UnionKSerializer {
1353+ int type;
1354+ union {
1355+ double number;
1356+ struct KSerializer * k_serializer;
1357+ } value;
1358+};
1359+
13491360 struct Lambda {
13501361 };
13511362
@@ -1775,6 +1786,17 @@ struct UnionPrefix {
17751786 } value;
17761787 };
17771788
1789+struct PrimitiveKind {
1790+};
1791+
1792+struct UnionPrimitiveKind {
1793+ int type;
1794+ union {
1795+ double number;
1796+ struct PrimitiveKind * primitive_kind;
1797+ } value;
1798+};
1799+
17781800 struct Print {
17791801 };
17801802
@@ -2083,6 +2105,39 @@ struct UnionSendable {
20832105 } value;
20842106 };
20852107
2108+struct SerialDescriptor {
2109+};
2110+
2111+struct UnionSerialDescriptor {
2112+ int type;
2113+ union {
2114+ double number;
2115+ struct SerialDescriptor * serial_descriptor;
2116+ } value;
2117+};
2118+
2119+struct SerialName {
2120+};
2121+
2122+struct UnionSerialName {
2123+ int type;
2124+ union {
2125+ double number;
2126+ struct SerialName * serial_name;
2127+ } value;
2128+};
2129+
2130+struct Serializable {
2131+};
2132+
2133+struct UnionSerializable {
2134+ int type;
2135+ union {
2136+ double number;
2137+ struct Serializable * serializable;
2138+ } value;
2139+};
2140+
20862141 struct Serialize {
20872142 };
20882143
@@ -3579,6 +3634,17 @@ struct UnionUnsafe {
35793634 } value;
35803635 };
35813636
3637+struct UseSerializers {
3638+};
3639+
3640+struct UnionUseSerializers {
3641+ int type;
3642+ union {
3643+ double number;
3644+ struct UseSerializers * use_serializers;
3645+ } value;
3646+};
3647+
35823648 struct Ushort {
35833649 };
35843650
@@ -3873,6 +3939,7 @@ struct TopLevel {
38733939 struct UnionJsonParser * json_parser;
38743940 struct UnionJsonReader * json_reader;
38753941 struct UnionJsonTokenType * json_token_type;
3942+ struct UnionKSerializer * k_serializer;
38763943 struct UnionLambda * lambda;
38773944 struct UnionLazy * lazy;
38783945 struct UnionLeft * left;
@@ -3927,6 +3994,7 @@ struct TopLevel {
39273994 struct UnionPostfix * postfix;
39283995 struct UnionPrecedence * precedence;
39293996 struct UnionPrefix * prefix;
3997+ struct UnionPrimitiveKind * primitive_kind;
39303998 struct UnionPrint * print;
39313999 struct UnionPrintf * printf;
39324000 struct UnionPrintMembers * print_members;
@@ -3961,8 +4029,11 @@ struct TopLevel {
39614029 struct UnionSelf * self;
39624030 struct UnionSelfUnion * top_level_self;
39634031 struct UnionSendable * sendable;
4032+ struct UnionSerialDescriptor * serial_descriptor;
4033+ struct UnionSerializable * serializable;
39644034 struct UnionSerialize * serialize;
39654035 struct UnionSerializerProvider * serializer_provider;
4036+ struct UnionSerialName * serial_name;
39664037 struct UnionSet * set;
39674038 struct UnionShort * top_level_short;
39684039 struct UnionSigned * top_level_signed;
@@ -4015,6 +4086,7 @@ struct TopLevel {
40154086 struct UnionUnowned * unowned;
40164087 struct UnionUnsafe * unsafe;
40174088 struct UnionUnsigned * top_level_unsigned;
4089+ struct UnionUseSerializers * use_serializers;
40184090 struct UnionUshort * ushort;
40194091 struct UnionUsing * top_level_using;
40204092 struct UnionUtf8JsonReader * utf8_json_reader;
@@ -4862,6 +4934,13 @@ void cJSON_DeleteUnionJsonWriter(struct UnionJsonWriter * x);
48624934 struct UnionJsonWriter * cJSON_ParseUnionJsonWriter(const char * s);
48634935 char * cJSON_PrintUnionJsonWriter(const struct UnionJsonWriter * x);
48644936
4937+#define cJSON_IsUnionKSerializer(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
4938+struct UnionKSerializer * cJSON_GetUnionKSerializerValue(const cJSON * j);
4939+cJSON * cJSON_CreateUnionKSerializer(const struct UnionKSerializer * x);
4940+void cJSON_DeleteUnionKSerializer(struct UnionKSerializer * x);
4941+struct UnionKSerializer * cJSON_ParseUnionKSerializer(const char * s);
4942+char * cJSON_PrintUnionKSerializer(const struct UnionKSerializer * x);
4943+
48654944 #define cJSON_IsUnionLambda(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
48664945 struct UnionLambda * cJSON_GetUnionLambdaValue(const cJSON * j);
48674946 cJSON * cJSON_CreateUnionLambda(const struct UnionLambda * x);
@@ -5135,6 +5214,13 @@ void cJSON_DeleteUnionPrefix(struct UnionPrefix * x);
51355214 struct UnionPrefix * cJSON_ParseUnionPrefix(const char * s);
51365215 char * cJSON_PrintUnionPrefix(const struct UnionPrefix * x);
51375216
5217+#define cJSON_IsUnionPrimitiveKind(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5218+struct UnionPrimitiveKind * cJSON_GetUnionPrimitiveKindValue(const cJSON * j);
5219+cJSON * cJSON_CreateUnionPrimitiveKind(const struct UnionPrimitiveKind * x);
5220+void cJSON_DeleteUnionPrimitiveKind(struct UnionPrimitiveKind * x);
5221+struct UnionPrimitiveKind * cJSON_ParseUnionPrimitiveKind(const char * s);
5222+char * cJSON_PrintUnionPrimitiveKind(const struct UnionPrimitiveKind * x);
5223+
51385224 #define cJSON_IsUnionPrint(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
51395225 struct UnionPrint * cJSON_GetUnionPrintValue(const cJSON * j);
51405226 cJSON * cJSON_CreateUnionPrint(const struct UnionPrint * x);
@@ -5331,6 +5417,27 @@ void cJSON_DeleteUnionSendable(struct UnionSendable * x);
53315417 struct UnionSendable * cJSON_ParseUnionSendable(const char * s);
53325418 char * cJSON_PrintUnionSendable(const struct UnionSendable * x);
53335419
5420+#define cJSON_IsUnionSerialDescriptor(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5421+struct UnionSerialDescriptor * cJSON_GetUnionSerialDescriptorValue(const cJSON * j);
5422+cJSON * cJSON_CreateUnionSerialDescriptor(const struct UnionSerialDescriptor * x);
5423+void cJSON_DeleteUnionSerialDescriptor(struct UnionSerialDescriptor * x);
5424+struct UnionSerialDescriptor * cJSON_ParseUnionSerialDescriptor(const char * s);
5425+char * cJSON_PrintUnionSerialDescriptor(const struct UnionSerialDescriptor * x);
5426+
5427+#define cJSON_IsUnionSerialName(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5428+struct UnionSerialName * cJSON_GetUnionSerialNameValue(const cJSON * j);
5429+cJSON * cJSON_CreateUnionSerialName(const struct UnionSerialName * x);
5430+void cJSON_DeleteUnionSerialName(struct UnionSerialName * x);
5431+struct UnionSerialName * cJSON_ParseUnionSerialName(const char * s);
5432+char * cJSON_PrintUnionSerialName(const struct UnionSerialName * x);
5433+
5434+#define cJSON_IsUnionSerializable(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5435+struct UnionSerializable * cJSON_GetUnionSerializableValue(const cJSON * j);
5436+cJSON * cJSON_CreateUnionSerializable(const struct UnionSerializable * x);
5437+void cJSON_DeleteUnionSerializable(struct UnionSerializable * x);
5438+struct UnionSerializable * cJSON_ParseUnionSerializable(const char * s);
5439+char * cJSON_PrintUnionSerializable(const struct UnionSerializable * x);
5440+
53345441 #define cJSON_IsUnionSerialize(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
53355442 struct UnionSerialize * cJSON_GetUnionSerializeValue(const cJSON * j);
53365443 cJSON * cJSON_CreateUnionSerialize(const struct UnionSerialize * x);
@@ -6283,6 +6390,13 @@ void cJSON_DeleteUnionUnsafe(struct UnionUnsafe * x);
62836390 struct UnionUnsafe * cJSON_ParseUnionUnsafe(const char * s);
62846391 char * cJSON_PrintUnionUnsafe(const struct UnionUnsafe * x);
62856392
6393+#define cJSON_IsUnionUseSerializers(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
6394+struct UnionUseSerializers * cJSON_GetUnionUseSerializersValue(const cJSON * j);
6395+cJSON * cJSON_CreateUnionUseSerializers(const struct UnionUseSerializers * x);
6396+void cJSON_DeleteUnionUseSerializers(struct UnionUseSerializers * x);
6397+struct UnionUseSerializers * cJSON_ParseUnionUseSerializers(const char * s);
6398+char * cJSON_PrintUnionUseSerializers(const struct UnionUseSerializers * x);
6399+
62866400 #define cJSON_IsUnionUshort(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
62876401 struct UnionUshort * cJSON_GetUnionUshortValue(const cJSON * j);
62886402 cJSON * cJSON_CreateUnionUshort(const struct UnionUshort * x);
@@ -7068,6 +7182,12 @@ cJSON * cJSON_CreateJsonWriter(const struct JsonWriter * x);
70687182 char * cJSON_PrintJsonWriter(const struct JsonWriter * x);
70697183 void cJSON_DeleteJsonWriter(struct JsonWriter * x);
70707184
7185+struct KSerializer * cJSON_ParseKSerializer(const char * s);
7186+struct KSerializer * cJSON_GetKSerializerValue(const cJSON * j);
7187+cJSON * cJSON_CreateKSerializer(const struct KSerializer * x);
7188+char * cJSON_PrintKSerializer(const struct KSerializer * x);
7189+void cJSON_DeleteKSerializer(struct KSerializer * x);
7190+
70717191 struct Lambda * cJSON_ParseLambda(const char * s);
70727192 struct Lambda * cJSON_GetLambdaValue(const cJSON * j);
70737193 cJSON * cJSON_CreateLambda(const struct Lambda * x);
@@ -7302,6 +7422,12 @@ cJSON * cJSON_CreatePrefix(const struct Prefix * x);
73027422 char * cJSON_PrintPrefix(const struct Prefix * x);
73037423 void cJSON_DeletePrefix(struct Prefix * x);
73047424
7425+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
7426+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
7427+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
7428+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x);
7429+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x);
7430+
73057431 struct Print * cJSON_ParsePrint(const char * s);
73067432 struct Print * cJSON_GetPrintValue(const cJSON * j);
73077433 cJSON * cJSON_CreatePrint(const struct Print * x);
@@ -7470,6 +7596,24 @@ cJSON * cJSON_CreateSendable(const struct Sendable * x);
74707596 char * cJSON_PrintSendable(const struct Sendable * x);
74717597 void cJSON_DeleteSendable(struct Sendable * x);
74727598
7599+struct SerialDescriptor * cJSON_ParseSerialDescriptor(const char * s);
7600+struct SerialDescriptor * cJSON_GetSerialDescriptorValue(const cJSON * j);
7601+cJSON * cJSON_CreateSerialDescriptor(const struct SerialDescriptor * x);
7602+char * cJSON_PrintSerialDescriptor(const struct SerialDescriptor * x);
7603+void cJSON_DeleteSerialDescriptor(struct SerialDescriptor * x);
7604+
7605+struct SerialName * cJSON_ParseSerialName(const char * s);
7606+struct SerialName * cJSON_GetSerialNameValue(const cJSON * j);
7607+cJSON * cJSON_CreateSerialName(const struct SerialName * x);
7608+char * cJSON_PrintSerialName(const struct SerialName * x);
7609+void cJSON_DeleteSerialName(struct SerialName * x);
7610+
7611+struct Serializable * cJSON_ParseSerializable(const char * s);
7612+struct Serializable * cJSON_GetSerializableValue(const cJSON * j);
7613+cJSON * cJSON_CreateSerializable(const struct Serializable * x);
7614+char * cJSON_PrintSerializable(const struct Serializable * x);
7615+void cJSON_DeleteSerializable(struct Serializable * x);
7616+
74737617 struct Serialize * cJSON_ParseSerialize(const char * s);
74747618 struct Serialize * cJSON_GetSerializeValue(const cJSON * j);
74757619 cJSON * cJSON_CreateSerialize(const struct Serialize * x);
@@ -8286,6 +8430,12 @@ cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
82868430 char * cJSON_PrintUnsafe(const struct Unsafe * x);
82878431 void cJSON_DeleteUnsafe(struct Unsafe * x);
82888432
8433+struct UseSerializers * cJSON_ParseUseSerializers(const char * s);
8434+struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j);
8435+cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
8436+char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
8437+void cJSON_DeleteUseSerializers(struct UseSerializers * x);
8438+
82898439 struct Ushort * cJSON_ParseUshort(const char * s);
82908440 struct Ushort * cJSON_GetUshortValue(const cJSON * j);
82918441 cJSON * cJSON_CreateUshort(const struct Ushort * x);
Mschema-cplusplusdefault / quicktype.hpp+360 −0
@@ -1505,6 +1505,18 @@ namespace quicktype {
15051505
15061506 using UnionJsonWriter = std::variant<JsonWriter, double>;
15071507
1508+ class KSerializer {
1509+ public:
1510+ KSerializer() = default;
1511+ virtual ~KSerializer() = default;
1512+
1513+ private:
1514+
1515+ public:
1516+ };
1517+
1518+ using UnionKSerializer = std::variant<KSerializer, double>;
1519+
15081520 class Lambda {
15091521 public:
15101522 Lambda() = default;
@@ -1973,6 +1985,18 @@ namespace quicktype {
19731985
19741986 using UnionPrefix = std::variant<Prefix, double>;
19751987
1988+ class PrimitiveKind {
1989+ public:
1990+ PrimitiveKind() = default;
1991+ virtual ~PrimitiveKind() = default;
1992+
1993+ private:
1994+
1995+ public:
1996+ };
1997+
1998+ using UnionPrimitiveKind = std::variant<PrimitiveKind, double>;
1999+
19762000 class Print {
19772001 public:
19782002 Print() = default;
@@ -2321,6 +2345,42 @@ namespace quicktype {
23212345
23222346 using UnionSendable = std::variant<Sendable, double>;
23232347
2348+ class SerialDescriptor {
2349+ public:
2350+ SerialDescriptor() = default;
2351+ virtual ~SerialDescriptor() = default;
2352+
2353+ private:
2354+
2355+ public:
2356+ };
2357+
2358+ using UnionSerialDescriptor = std::variant<SerialDescriptor, double>;
2359+
2360+ class SerialName {
2361+ public:
2362+ SerialName() = default;
2363+ virtual ~SerialName() = default;
2364+
2365+ private:
2366+
2367+ public:
2368+ };
2369+
2370+ using UnionSerialName = std::variant<SerialName, double>;
2371+
2372+ class Serializable {
2373+ public:
2374+ Serializable() = default;
2375+ virtual ~Serializable() = default;
2376+
2377+ private:
2378+
2379+ public:
2380+ };
2381+
2382+ using UnionSerializable = std::variant<Serializable, double>;
2383+
23242384 class Serialize {
23252385 public:
23262386 Serialize() = default;
@@ -3941,6 +4001,18 @@ namespace quicktype {
39414001
39424002 using UnionUnsafe = std::variant<Unsafe, double>;
39434003
4004+ class UseSerializers {
4005+ public:
4006+ UseSerializers() = default;
4007+ virtual ~UseSerializers() = default;
4008+
4009+ private:
4010+
4011+ public:
4012+ };
4013+
4014+ using UnionUseSerializers = std::variant<UseSerializers, double>;
4015+
39444016 class Ushort {
39454017 public:
39464018 Ushort() = default;
@@ -4251,6 +4323,7 @@ namespace quicktype {
42514323 std::optional<UnionJsonParser> json_parser;
42524324 std::optional<UnionJsonReader> json_reader;
42534325 std::optional<UnionJsonTokenType> json_token_type;
4326+ std::optional<UnionKSerializer> k_serializer;
42544327 std::optional<UnionLambda> lambda;
42554328 std::optional<UnionLazy> lazy;
42564329 std::optional<UnionLeft> left;
@@ -4305,6 +4378,7 @@ namespace quicktype {
43054378 std::optional<UnionPostfix> postfix;
43064379 std::optional<UnionPrecedence> precedence;
43074380 std::optional<UnionPrefix> prefix;
4381+ std::optional<UnionPrimitiveKind> primitive_kind;
43084382 std::optional<UnionPrint> print;
43094383 std::optional<UnionPrintf> printf;
43104384 std::optional<UnionPrintMembers> print_members;
@@ -4339,8 +4413,11 @@ namespace quicktype {
43394413 std::optional<UnionSelf> self;
43404414 std::optional<UnionSelfUnion> top_level_self;
43414415 std::optional<UnionSendable> sendable;
4416+ std::optional<UnionSerialDescriptor> serial_descriptor;
4417+ std::optional<UnionSerializable> serializable;
43424418 std::optional<UnionSerialize> serialize;
43434419 std::optional<UnionSerializerProvider> serializer_provider;
4420+ std::optional<UnionSerialName> serial_name;
43444421 std::optional<UnionSet> set;
43454422 std::optional<UnionShort> top_level_short;
43464423 std::optional<UnionSigned> top_level_signed;
@@ -4393,6 +4470,7 @@ namespace quicktype {
43934470 std::optional<UnionUnowned> unowned;
43944471 std::optional<UnionUnsafe> unsafe;
43954472 std::optional<UnionUnsigned> top_level_unsigned;
4473+ std::optional<UnionUseSerializers> use_serializers;
43964474 std::optional<UnionUshort> ushort;
43974475 std::optional<UnionUsing> top_level_using;
43984476 std::optional<UnionUtf8JsonReader> utf8_json_reader;
@@ -5102,6 +5180,10 @@ namespace quicktype {
51025180 std::optional<UnionJsonTokenType> & get_mutable_json_token_type() { return json_token_type; }
51035181 void set_json_token_type(const std::optional<UnionJsonTokenType> & value) { this->json_token_type = value; }
51045182
5183+ const std::optional<UnionKSerializer> & get_k_serializer() const { return k_serializer; }
5184+ std::optional<UnionKSerializer> & get_mutable_k_serializer() { return k_serializer; }
5185+ void set_k_serializer(const std::optional<UnionKSerializer> & value) { this->k_serializer = value; }
5186+
51055187 const std::optional<UnionLambda> & get_lambda() const { return lambda; }
51065188 std::optional<UnionLambda> & get_mutable_lambda() { return lambda; }
51075189 void set_lambda(const std::optional<UnionLambda> & value) { this->lambda = value; }
@@ -5318,6 +5400,10 @@ namespace quicktype {
53185400 std::optional<UnionPrefix> & get_mutable_prefix() { return prefix; }
53195401 void set_prefix(const std::optional<UnionPrefix> & value) { this->prefix = value; }
53205402
5403+ const std::optional<UnionPrimitiveKind> & get_primitive_kind() const { return primitive_kind; }
5404+ std::optional<UnionPrimitiveKind> & get_mutable_primitive_kind() { return primitive_kind; }
5405+ void set_primitive_kind(const std::optional<UnionPrimitiveKind> & value) { this->primitive_kind = value; }
5406+
53215407 const std::optional<UnionPrint> & get_print() const { return print; }
53225408 std::optional<UnionPrint> & get_mutable_print() { return print; }
53235409 void set_print(const std::optional<UnionPrint> & value) { this->print = value; }
@@ -5454,6 +5540,14 @@ namespace quicktype {
54545540 std::optional<UnionSendable> & get_mutable_sendable() { return sendable; }
54555541 void set_sendable(const std::optional<UnionSendable> & value) { this->sendable = value; }
54565542
5543+ const std::optional<UnionSerialDescriptor> & get_serial_descriptor() const { return serial_descriptor; }
5544+ std::optional<UnionSerialDescriptor> & get_mutable_serial_descriptor() { return serial_descriptor; }
5545+ void set_serial_descriptor(const std::optional<UnionSerialDescriptor> & value) { this->serial_descriptor = value; }
5546+
5547+ const std::optional<UnionSerializable> & get_serializable() const { return serializable; }
5548+ std::optional<UnionSerializable> & get_mutable_serializable() { return serializable; }
5549+ void set_serializable(const std::optional<UnionSerializable> & value) { this->serializable = value; }
5550+
54575551 const std::optional<UnionSerialize> & get_serialize() const { return serialize; }
54585552 std::optional<UnionSerialize> & get_mutable_serialize() { return serialize; }
54595553 void set_serialize(const std::optional<UnionSerialize> & value) { this->serialize = value; }
@@ -5462,6 +5556,10 @@ namespace quicktype {
54625556 std::optional<UnionSerializerProvider> & get_mutable_serializer_provider() { return serializer_provider; }
54635557 void set_serializer_provider(const std::optional<UnionSerializerProvider> & value) { this->serializer_provider = value; }
54645558
5559+ const std::optional<UnionSerialName> & get_serial_name() const { return serial_name; }
5560+ std::optional<UnionSerialName> & get_mutable_serial_name() { return serial_name; }
5561+ void set_serial_name(const std::optional<UnionSerialName> & value) { this->serial_name = value; }
5562+
54655563 const std::optional<UnionSet> & get_set() const { return set; }
54665564 std::optional<UnionSet> & get_mutable_set() { return set; }
54675565 void set_set(const std::optional<UnionSet> & value) { this->set = value; }
@@ -5670,6 +5768,10 @@ namespace quicktype {
56705768 std::optional<UnionUnsigned> & get_mutable_top_level_unsigned() { return top_level_unsigned; }
56715769 void set_top_level_unsigned(const std::optional<UnionUnsigned> & value) { this->top_level_unsigned = value; }
56725770
5771+ const std::optional<UnionUseSerializers> & get_use_serializers() const { return use_serializers; }
5772+ std::optional<UnionUseSerializers> & get_mutable_use_serializers() { return use_serializers; }
5773+ void set_use_serializers(const std::optional<UnionUseSerializers> & value) { this->use_serializers = value; }
5774+
56735775 const std::optional<UnionUshort> & get_ushort() const { return ushort; }
56745776 std::optional<UnionUshort> & get_mutable_ushort() { return ushort; }
56755777 void set_ushort(const std::optional<UnionUshort> & value) { this->ushort = value; }
@@ -6103,6 +6205,9 @@ void to_json(json & j, const JsonTokenType & x);
61036205 void from_json(const json & j, JsonWriter & x);
61046206 void to_json(json & j, const JsonWriter & x);
61056207
6208+void from_json(const json & j, KSerializer & x);
6209+void to_json(json & j, const KSerializer & x);
6210+
61066211 void from_json(const json & j, Lambda & x);
61076212 void to_json(json & j, const Lambda & x);
61086213
@@ -6220,6 +6325,9 @@ void to_json(json & j, const Precedence & x);
62206325 void from_json(const json & j, Prefix & x);
62216326 void to_json(json & j, const Prefix & x);
62226327
6328+void from_json(const json & j, PrimitiveKind & x);
6329+void to_json(json & j, const PrimitiveKind & x);
6330+
62236331 void from_json(const json & j, Print & x);
62246332 void to_json(json & j, const Print & x);
62256333
@@ -6307,6 +6415,15 @@ void to_json(json & j, const Self & x);
63076415 void from_json(const json & j, Sendable & x);
63086416 void to_json(json & j, const Sendable & x);
63096417
6418+void from_json(const json & j, SerialDescriptor & x);
6419+void to_json(json & j, const SerialDescriptor & x);
6420+
6421+void from_json(const json & j, SerialName & x);
6422+void to_json(json & j, const SerialName & x);
6423+
6424+void from_json(const json & j, Serializable & x);
6425+void to_json(json & j, const Serializable & x);
6426+
63106427 void from_json(const json & j, Serialize & x);
63116428 void to_json(json & j, const Serialize & x);
63126429
@@ -6712,6 +6829,9 @@ void to_json(json & j, const Unowned & x);
67126829 void from_json(const json & j, Unsafe & x);
67136830 void to_json(json & j, const Unsafe & x);
67146831
6832+void from_json(const json & j, UseSerializers & x);
6833+void to_json(json & j, const UseSerializers & x);
6834+
67156835 void from_json(const json & j, Ushort & x);
67166836 void to_json(json & j, const Ushort & x);
67176837
@@ -7457,6 +7577,12 @@ struct adl_serializer<std::variant<quicktype::JsonWriter, double>> {
74577577 static void to_json(json & j, const std::variant<quicktype::JsonWriter, double> & x);
74587578 };
74597579
7580+template <>
7581+struct adl_serializer<std::variant<quicktype::KSerializer, double>> {
7582+ static void from_json(const json & j, std::variant<quicktype::KSerializer, double> & x);
7583+ static void to_json(json & j, const std::variant<quicktype::KSerializer, double> & x);
7584+};
7585+
74607586 template <>
74617587 struct adl_serializer<std::variant<quicktype::Lambda, double>> {
74627588 static void from_json(const json & j, std::variant<quicktype::Lambda, double> & x);
@@ -7691,6 +7817,12 @@ struct adl_serializer<std::variant<quicktype::Prefix, double>> {
76917817 static void to_json(json & j, const std::variant<quicktype::Prefix, double> & x);
76927818 };
76937819
7820+template <>
7821+struct adl_serializer<std::variant<quicktype::PrimitiveKind, double>> {
7822+ static void from_json(const json & j, std::variant<quicktype::PrimitiveKind, double> & x);
7823+ static void to_json(json & j, const std::variant<quicktype::PrimitiveKind, double> & x);
7824+};
7825+
76947826 template <>
76957827 struct adl_serializer<std::variant<quicktype::Print, double>> {
76967828 static void from_json(const json & j, std::variant<quicktype::Print, double> & x);
@@ -7865,6 +7997,24 @@ struct adl_serializer<std::variant<quicktype::Sendable, double>> {
78657997 static void to_json(json & j, const std::variant<quicktype::Sendable, double> & x);
78667998 };
78677999
8000+template <>
8001+struct adl_serializer<std::variant<quicktype::SerialDescriptor, double>> {
8002+ static void from_json(const json & j, std::variant<quicktype::SerialDescriptor, double> & x);
8003+ static void to_json(json & j, const std::variant<quicktype::SerialDescriptor, double> & x);
8004+};
8005+
8006+template <>
8007+struct adl_serializer<std::variant<quicktype::SerialName, double>> {
8008+ static void from_json(const json & j, std::variant<quicktype::SerialName, double> & x);
8009+ static void to_json(json & j, const std::variant<quicktype::SerialName, double> & x);
8010+};
8011+
8012+template <>
8013+struct adl_serializer<std::variant<quicktype::Serializable, double>> {
8014+ static void from_json(const json & j, std::variant<quicktype::Serializable, double> & x);
8015+ static void to_json(json & j, const std::variant<quicktype::Serializable, double> & x);
8016+};
8017+
78688018 template <>
78698019 struct adl_serializer<std::variant<quicktype::Serialize, double>> {
78708020 static void from_json(const json & j, std::variant<quicktype::Serialize, double> & x);
@@ -8675,6 +8825,12 @@ struct adl_serializer<std::variant<quicktype::Unsafe, double>> {
86758825 static void to_json(json & j, const std::variant<quicktype::Unsafe, double> & x);
86768826 };
86778827
8828+template <>
8829+struct adl_serializer<std::variant<quicktype::UseSerializers, double>> {
8830+ static void from_json(const json & j, std::variant<quicktype::UseSerializers, double> & x);
8831+ static void to_json(json & j, const std::variant<quicktype::UseSerializers, double> & x);
8832+};
8833+
86788834 template <>
86798835 struct adl_serializer<std::variant<quicktype::Ushort, double>> {
86808836 static void from_json(const json & j, std::variant<quicktype::Ushort, double> & x);
@@ -10040,6 +10196,17 @@ namespace quicktype {
1004010196 (void)x;
1004110197 }
1004210198
10199+ inline void from_json(const json & j, KSerializer& x) {
10200+ if (!j.is_object()) throw std::runtime_error("Expected object");
10201+ (void)j;
10202+ (void)x;
10203+ }
10204+
10205+ inline void to_json(json & j, const KSerializer & x) {
10206+ j = json::object();
10207+ (void)x;
10208+ }
10209+
1004310210 inline void from_json(const json & j, Lambda& x) {
1004410211 if (!j.is_object()) throw std::runtime_error("Expected object");
1004510212 (void)j;
@@ -10469,6 +10636,17 @@ namespace quicktype {
1046910636 (void)x;
1047010637 }
1047110638
10639+ inline void from_json(const json & j, PrimitiveKind& x) {
10640+ if (!j.is_object()) throw std::runtime_error("Expected object");
10641+ (void)j;
10642+ (void)x;
10643+ }
10644+
10645+ inline void to_json(json & j, const PrimitiveKind & x) {
10646+ j = json::object();
10647+ (void)x;
10648+ }
10649+
1047210650 inline void from_json(const json & j, Print& x) {
1047310651 if (!j.is_object()) throw std::runtime_error("Expected object");
1047410652 (void)j;
@@ -10788,6 +10966,39 @@ namespace quicktype {
1078810966 (void)x;
1078910967 }
1079010968
10969+ inline void from_json(const json & j, SerialDescriptor& x) {
10970+ if (!j.is_object()) throw std::runtime_error("Expected object");
10971+ (void)j;
10972+ (void)x;
10973+ }
10974+
10975+ inline void to_json(json & j, const SerialDescriptor & x) {
10976+ j = json::object();
10977+ (void)x;
10978+ }
10979+
10980+ inline void from_json(const json & j, SerialName& x) {
10981+ if (!j.is_object()) throw std::runtime_error("Expected object");
10982+ (void)j;
10983+ (void)x;
10984+ }
10985+
10986+ inline void to_json(json & j, const SerialName & x) {
10987+ j = json::object();
10988+ (void)x;
10989+ }
10990+
10991+ inline void from_json(const json & j, Serializable& x) {
10992+ if (!j.is_object()) throw std::runtime_error("Expected object");
10993+ (void)j;
10994+ (void)x;
10995+ }
10996+
10997+ inline void to_json(json & j, const Serializable & x) {
10998+ j = json::object();
10999+ (void)x;
11000+ }
11001+
1079111002 inline void from_json(const json & j, Serialize& x) {
1079211003 if (!j.is_object()) throw std::runtime_error("Expected object");
1079311004 (void)j;
@@ -12273,6 +12484,17 @@ namespace quicktype {
1227312484 (void)x;
1227412485 }
1227512486
12487+ inline void from_json(const json & j, UseSerializers& x) {
12488+ if (!j.is_object()) throw std::runtime_error("Expected object");
12489+ (void)j;
12490+ (void)x;
12491+ }
12492+
12493+ inline void to_json(json & j, const UseSerializers & x) {
12494+ j = json::object();
12495+ (void)x;
12496+ }
12497+
1227612498 inline void from_json(const json & j, Ushort& x) {
1227712499 if (!j.is_object()) throw std::runtime_error("Expected object");
1227812500 (void)j;
@@ -12740,6 +12962,8 @@ namespace quicktype {
1274012962 x.set_json_reader(get_stack_optional<std::variant<JsonReader, double>>(j, "JsonReader"));
1274112963 if (j.find("JsonTokenType") != j.end() && j.at("JsonTokenType").is_null()) throw std::runtime_error("Unexpected null");
1274212964 x.set_json_token_type(get_stack_optional<std::variant<JsonTokenType, double>>(j, "JsonTokenType"));
12965+ if (j.find("KSerializer") != j.end() && j.at("KSerializer").is_null()) throw std::runtime_error("Unexpected null");
12966+ x.set_k_serializer(get_stack_optional<std::variant<KSerializer, double>>(j, "KSerializer"));
1274312967 if (j.find("lambda") != j.end() && j.at("lambda").is_null()) throw std::runtime_error("Unexpected null");
1274412968 x.set_lambda(get_stack_optional<std::variant<Lambda, double>>(j, "lambda"));
1274512969 if (j.find("lazy") != j.end() && j.at("lazy").is_null()) throw std::runtime_error("Unexpected null");
@@ -12848,6 +13072,8 @@ namespace quicktype {
1284813072 x.set_precedence(get_stack_optional<std::variant<Precedence, double>>(j, "precedence"));
1284913073 if (j.find("prefix") != j.end() && j.at("prefix").is_null()) throw std::runtime_error("Unexpected null");
1285013074 x.set_prefix(get_stack_optional<std::variant<Prefix, double>>(j, "prefix"));
13075+ if (j.find("PrimitiveKind") != j.end() && j.at("PrimitiveKind").is_null()) throw std::runtime_error("Unexpected null");
13076+ x.set_primitive_kind(get_stack_optional<std::variant<PrimitiveKind, double>>(j, "PrimitiveKind"));
1285113077 if (j.find("print") != j.end() && j.at("print").is_null()) throw std::runtime_error("Unexpected null");
1285213078 x.set_print(get_stack_optional<std::variant<Print, double>>(j, "print"));
1285313079 if (j.find("printf") != j.end() && j.at("printf").is_null()) throw std::runtime_error("Unexpected null");
@@ -12916,10 +13142,16 @@ namespace quicktype {
1291613142 x.set_top_level_self(get_stack_optional<std::variant<SelfClass, double>>(j, "self"));
1291713143 if (j.find("Sendable") != j.end() && j.at("Sendable").is_null()) throw std::runtime_error("Unexpected null");
1291813144 x.set_sendable(get_stack_optional<std::variant<Sendable, double>>(j, "Sendable"));
13145+ if (j.find("SerialDescriptor") != j.end() && j.at("SerialDescriptor").is_null()) throw std::runtime_error("Unexpected null");
13146+ x.set_serial_descriptor(get_stack_optional<std::variant<SerialDescriptor, double>>(j, "SerialDescriptor"));
13147+ if (j.find("Serializable") != j.end() && j.at("Serializable").is_null()) throw std::runtime_error("Unexpected null");
13148+ x.set_serializable(get_stack_optional<std::variant<Serializable, double>>(j, "Serializable"));
1291913149 if (j.find("serialize") != j.end() && j.at("serialize").is_null()) throw std::runtime_error("Unexpected null");
1292013150 x.set_serialize(get_stack_optional<std::variant<Serialize, double>>(j, "serialize"));
1292113151 if (j.find("SerializerProvider") != j.end() && j.at("SerializerProvider").is_null()) throw std::runtime_error("Unexpected null");
1292213152 x.set_serializer_provider(get_stack_optional<std::variant<SerializerProvider, double>>(j, "SerializerProvider"));
13153+ if (j.find("SerialName") != j.end() && j.at("SerialName").is_null()) throw std::runtime_error("Unexpected null");
13154+ x.set_serial_name(get_stack_optional<std::variant<SerialName, double>>(j, "SerialName"));
1292313155 if (j.find("set") != j.end() && j.at("set").is_null()) throw std::runtime_error("Unexpected null");
1292413156 x.set_set(get_stack_optional<std::variant<Set, double>>(j, "set"));
1292513157 if (j.find("short") != j.end() && j.at("short").is_null()) throw std::runtime_error("Unexpected null");
@@ -13024,6 +13256,8 @@ namespace quicktype {
1302413256 x.set_unsafe(get_stack_optional<std::variant<Unsafe, double>>(j, "unsafe"));
1302513257 if (j.find("unsigned") != j.end() && j.at("unsigned").is_null()) throw std::runtime_error("Unexpected null");
1302613258 x.set_top_level_unsigned(get_stack_optional<std::variant<Unsigned, double>>(j, "unsigned"));
13259+ if (j.find("UseSerializers") != j.end() && j.at("UseSerializers").is_null()) throw std::runtime_error("Unexpected null");
13260+ x.set_use_serializers(get_stack_optional<std::variant<UseSerializers, double>>(j, "UseSerializers"));
1302713261 if (j.find("ushort") != j.end() && j.at("ushort").is_null()) throw std::runtime_error("Unexpected null");
1302813262 x.set_ushort(get_stack_optional<std::variant<Ushort, double>>(j, "ushort"));
1302913263 if (j.find("using") != j.end() && j.at("using").is_null()) throw std::runtime_error("Unexpected null");
@@ -13238,6 +13472,7 @@ namespace quicktype {
1323813472 j["JsonParser"] = x.get_json_parser();
1323913473 j["JsonReader"] = x.get_json_reader();
1324013474 j["JsonTokenType"] = x.get_json_token_type();
13475+ j["KSerializer"] = x.get_k_serializer();
1324113476 j["lambda"] = x.get_lambda();
1324213477 j["lazy"] = x.get_lazy();
1324313478 j["left"] = x.get_left();
@@ -13292,6 +13527,7 @@ namespace quicktype {
1329213527 j["postfix"] = x.get_postfix();
1329313528 j["precedence"] = x.get_precedence();
1329413529 j["prefix"] = x.get_prefix();
13530+ j["PrimitiveKind"] = x.get_primitive_kind();
1329513531 j["print"] = x.get_print();
1329613532 j["printf"] = x.get_printf();
1329713533 j["printMembers"] = x.get_print_members();
@@ -13326,8 +13562,11 @@ namespace quicktype {
1332613562 j["Self"] = x.get_self();
1332713563 j["self"] = x.get_top_level_self();
1332813564 j["Sendable"] = x.get_sendable();
13565+ j["SerialDescriptor"] = x.get_serial_descriptor();
13566+ j["Serializable"] = x.get_serializable();
1332913567 j["serialize"] = x.get_serialize();
1333013568 j["SerializerProvider"] = x.get_serializer_provider();
13569+ j["SerialName"] = x.get_serial_name();
1333113570 j["set"] = x.get_set();
1333213571 j["short"] = x.get_top_level_short();
1333313572 j["signed"] = x.get_top_level_signed();
@@ -13380,6 +13619,7 @@ namespace quicktype {
1338013619 j["unowned"] = x.get_unowned();
1338113620 j["unsafe"] = x.get_unsafe();
1338213621 j["unsigned"] = x.get_top_level_unsigned();
13622+ j["UseSerializers"] = x.get_use_serializers();
1338313623 j["ushort"] = x.get_ushort();
1338413624 j["using"] = x.get_top_level_using();
1338513625 j["Utf8JsonReader"] = x.get_utf8_json_reader();
@@ -15762,6 +16002,26 @@ namespace nlohmann {
1576216002 }
1576316003 }
1576416004
16005+ inline void adl_serializer<std::variant<quicktype::KSerializer, double>>::from_json(const json & j, std::variant<quicktype::KSerializer, double> & x) {
16006+ if (j.is_number())
16007+ x = j.get<double>();
16008+ else if (j.is_object())
16009+ x = j.get<quicktype::KSerializer>();
16010+ else throw std::runtime_error("Could not deserialise!");
16011+ }
16012+
16013+ inline void adl_serializer<std::variant<quicktype::KSerializer, double>>::to_json(json & j, const std::variant<quicktype::KSerializer, double> & x) {
16014+ switch (x.index()) {
16015+ case 0:
16016+ j = std::get<quicktype::KSerializer>(x);
16017+ break;
16018+ case 1:
16019+ j = std::get<double>(x);
16020+ break;
16021+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16022+ }
16023+ }
16024+
1576516025 inline void adl_serializer<std::variant<quicktype::Lambda, double>>::from_json(const json & j, std::variant<quicktype::Lambda, double> & x) {
1576616026 if (j.is_number())
1576716027 x = j.get<double>();
@@ -16542,6 +16802,26 @@ namespace nlohmann {
1654216802 }
1654316803 }
1654416804
16805+ inline void adl_serializer<std::variant<quicktype::PrimitiveKind, double>>::from_json(const json & j, std::variant<quicktype::PrimitiveKind, double> & x) {
16806+ if (j.is_number())
16807+ x = j.get<double>();
16808+ else if (j.is_object())
16809+ x = j.get<quicktype::PrimitiveKind>();
16810+ else throw std::runtime_error("Could not deserialise!");
16811+ }
16812+
16813+ inline void adl_serializer<std::variant<quicktype::PrimitiveKind, double>>::to_json(json & j, const std::variant<quicktype::PrimitiveKind, double> & x) {
16814+ switch (x.index()) {
16815+ case 0:
16816+ j = std::get<quicktype::PrimitiveKind>(x);
16817+ break;
16818+ case 1:
16819+ j = std::get<double>(x);
16820+ break;
16821+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16822+ }
16823+ }
16824+
1654516825 inline void adl_serializer<std::variant<quicktype::Print, double>>::from_json(const json & j, std::variant<quicktype::Print, double> & x) {
1654616826 if (j.is_number())
1654716827 x = j.get<double>();
@@ -17122,6 +17402,66 @@ namespace nlohmann {
1712217402 }
1712317403 }
1712417404
17405+ inline void adl_serializer<std::variant<quicktype::SerialDescriptor, double>>::from_json(const json & j, std::variant<quicktype::SerialDescriptor, double> & x) {
17406+ if (j.is_number())
17407+ x = j.get<double>();
17408+ else if (j.is_object())
17409+ x = j.get<quicktype::SerialDescriptor>();
17410+ else throw std::runtime_error("Could not deserialise!");
17411+ }
17412+
17413+ inline void adl_serializer<std::variant<quicktype::SerialDescriptor, double>>::to_json(json & j, const std::variant<quicktype::SerialDescriptor, double> & x) {
17414+ switch (x.index()) {
17415+ case 0:
17416+ j = std::get<quicktype::SerialDescriptor>(x);
17417+ break;
17418+ case 1:
17419+ j = std::get<double>(x);
17420+ break;
17421+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17422+ }
17423+ }
17424+
17425+ inline void adl_serializer<std::variant<quicktype::SerialName, double>>::from_json(const json & j, std::variant<quicktype::SerialName, double> & x) {
17426+ if (j.is_number())
17427+ x = j.get<double>();
17428+ else if (j.is_object())
17429+ x = j.get<quicktype::SerialName>();
17430+ else throw std::runtime_error("Could not deserialise!");
17431+ }
17432+
17433+ inline void adl_serializer<std::variant<quicktype::SerialName, double>>::to_json(json & j, const std::variant<quicktype::SerialName, double> & x) {
17434+ switch (x.index()) {
17435+ case 0:
17436+ j = std::get<quicktype::SerialName>(x);
17437+ break;
17438+ case 1:
17439+ j = std::get<double>(x);
17440+ break;
17441+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17442+ }
17443+ }
17444+
17445+ inline void adl_serializer<std::variant<quicktype::Serializable, double>>::from_json(const json & j, std::variant<quicktype::Serializable, double> & x) {
17446+ if (j.is_number())
17447+ x = j.get<double>();
17448+ else if (j.is_object())
17449+ x = j.get<quicktype::Serializable>();
17450+ else throw std::runtime_error("Could not deserialise!");
17451+ }
17452+
17453+ inline void adl_serializer<std::variant<quicktype::Serializable, double>>::to_json(json & j, const std::variant<quicktype::Serializable, double> & x) {
17454+ switch (x.index()) {
17455+ case 0:
17456+ j = std::get<quicktype::Serializable>(x);
17457+ break;
17458+ case 1:
17459+ j = std::get<double>(x);
17460+ break;
17461+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17462+ }
17463+ }
17464+
1712517465 inline void adl_serializer<std::variant<quicktype::Serialize, double>>::from_json(const json & j, std::variant<quicktype::Serialize, double> & x) {
1712617466 if (j.is_number())
1712717467 x = j.get<double>();
@@ -19822,6 +20162,26 @@ namespace nlohmann {
1982220162 }
1982320163 }
1982420164
20165+ inline void adl_serializer<std::variant<quicktype::UseSerializers, double>>::from_json(const json & j, std::variant<quicktype::UseSerializers, double> & x) {
20166+ if (j.is_number())
20167+ x = j.get<double>();
20168+ else if (j.is_object())
20169+ x = j.get<quicktype::UseSerializers>();
20170+ else throw std::runtime_error("Could not deserialise!");
20171+ }
20172+
20173+ inline void adl_serializer<std::variant<quicktype::UseSerializers, double>>::to_json(json & j, const std::variant<quicktype::UseSerializers, double> & x) {
20174+ switch (x.index()) {
20175+ case 0:
20176+ j = std::get<quicktype::UseSerializers>(x);
20177+ break;
20178+ case 1:
20179+ j = std::get<double>(x);
20180+ break;
20181+ default: throw std::runtime_error("Input JSON does not conform to schema!");
20182+ }
20183+ }
20184+
1982520185 inline void adl_serializer<std::variant<quicktype::Ushort, double>>::from_json(const json & j, std::variant<quicktype::Ushort, double> & x) {
1982620186 if (j.is_number())
1982720187 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+60 −0
@@ -406,6 +406,9 @@ class TopLevel
406406 @[JSON::Field(key: "JsonTokenType")]
407407 property json_token_type : UnionJsonTokenType?
408408
409+ @[JSON::Field(key: "KSerializer")]
410+ property k_serializer : UnionKSerializer?
411+
409412 property lambda : UnionLambda?
410413
411414 property lazy : UnionLazy?
@@ -530,6 +533,9 @@ class TopLevel
530533
531534 property prefix : UnionPrefix?
532535
536+ @[JSON::Field(key: "PrimitiveKind")]
537+ property primitive_kind : UnionPrimitiveKind?
538+
533539 property print : UnionPrint?
534540
535541 property printf : UnionPrintf?
@@ -612,11 +618,20 @@ class TopLevel
612618 @[JSON::Field(key: "Sendable")]
613619 property sendable : UnionSendable?
614620
621+ @[JSON::Field(key: "SerialDescriptor")]
622+ property serial_descriptor : UnionSerialDescriptor?
623+
624+ @[JSON::Field(key: "Serializable")]
625+ property serializable : UnionSerializable?
626+
615627 property serialize : UnionSerialize?
616628
617629 @[JSON::Field(key: "SerializerProvider")]
618630 property serializer_provider : UnionSerializerProvider?
619631
632+ @[JSON::Field(key: "SerialName")]
633+ property serial_name : UnionSerialName?
634+
620635 property set : UnionSet?
621636
622637 property short : UnionShort?
@@ -740,6 +755,9 @@ class TopLevel
740755
741756 property unsigned : UnionUnsigned?
742757
758+ @[JSON::Field(key: "UseSerializers")]
759+ property use_serializers : UnionUseSerializers?
760+
743761 property ushort : UnionUshort?
744762
745763 property using : UnionUsing?
@@ -1547,6 +1565,11 @@ class JsonWriter
15471565
15481566 end
15491567
1568+class KSerializer
1569+ include JSON::Serializable
1570+
1571+end
1572+
15501573 class Lambda
15511574 include JSON::Serializable
15521575
@@ -1787,6 +1810,11 @@ class Prefix
17871810
17881811 end
17891812
1813+class PrimitiveKind
1814+ include JSON::Serializable
1815+
1816+end
1817+
17901818 class Print
17911819 include JSON::Serializable
17921820
@@ -1947,6 +1975,21 @@ class Sendable
19471975
19481976 end
19491977
1978+class SerialDescriptor
1979+ include JSON::Serializable
1980+
1981+end
1982+
1983+class SerialName
1984+ include JSON::Serializable
1985+
1986+end
1987+
1988+class Serializable
1989+ include JSON::Serializable
1990+
1991+end
1992+
19501993 class Serialize
19511994 include JSON::Serializable
19521995
@@ -2367,6 +2410,11 @@ class Unsigned
23672410
23682411 end
23692412
2413+class UseSerializers
2414+ include JSON::Serializable
2415+
2416+end
2417+
23702418 class Ushort
23712419 include JSON::Serializable
23722420
@@ -2751,6 +2799,8 @@ alias UnionJsonTokenType = Float64 | JsonTokenType
27512799
27522800 alias UnionJsonWriter = Float64 | JsonWriter
27532801
2802+alias UnionKSerializer = Float64 | KSerializer
2803+
27542804 alias UnionLambda = Float64 | Lambda
27552805
27562806 alias UnionLazy = Float64 | Lazy
@@ -2847,6 +2897,8 @@ alias UnionPrecedence = Float64 | Precedence
28472897
28482898 alias UnionPrefix = Float64 | Prefix
28492899
2900+alias UnionPrimitiveKind = Float64 | PrimitiveKind
2901+
28502902 alias UnionPrint = Float64 | Print
28512903
28522904 alias UnionPrintMembers = Float64 | PrintMembers
@@ -2911,6 +2963,12 @@ alias UnionSel = Float64 | Sel
29112963
29122964 alias UnionSendable = Float64 | Sendable
29132965
2966+alias UnionSerialDescriptor = Float64 | SerialDescriptor
2967+
2968+alias UnionSerialName = Float64 | SerialName
2969+
2970+alias UnionSerializable = Float64 | Serializable
2971+
29142972 alias UnionSerialize = Float64 | Serialize
29152973
29162974 alias UnionSerializerProvider = Float64 | SerializerProvider
@@ -3079,6 +3137,8 @@ alias UnionUnsafe = Float64 | Unsafe
30793137
30803138 alias UnionUnsigned = Float64 | Unsigned
30813139
3140+alias UnionUseSerializers = Float64 | UseSerializers
3141+
30823142 alias UnionUshort = Float64 | Ushort
30833143
30843144 alias UnionUsing = Float64 | Using
Mschema-csharp-recordsdefault / QuickType.cs+330 −0
@@ -541,6 +541,9 @@ namespace QuickType
541541 [JsonProperty("JsonTokenType", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
542542 public UnionJsonTokenType? JsonTokenType { get; set; }
543543
544+ [JsonProperty("KSerializer", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
545+ public UnionKSerializer? KSerializer { get; set; }
546+
544547 [JsonProperty("lambda", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
545548 public UnionLambda? Lambda { get; set; }
546549
@@ -703,6 +706,9 @@ namespace QuickType
703706 [JsonProperty("prefix", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
704707 public UnionPrefix? Prefix { get; set; }
705708
709+ [JsonProperty("PrimitiveKind", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
710+ public UnionPrimitiveKind? PrimitiveKind { get; set; }
711+
706712 [JsonProperty("print", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
707713 public UnionPrint? Print { get; set; }
708714
@@ -805,12 +811,21 @@ namespace QuickType
805811 [JsonProperty("Sendable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
806812 public UnionSendable? Sendable { get; set; }
807813
814+ [JsonProperty("SerialDescriptor", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
815+ public UnionSerialDescriptor? SerialDescriptor { get; set; }
816+
817+ [JsonProperty("Serializable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
818+ public UnionSerializable? Serializable { get; set; }
819+
808820 [JsonProperty("serialize", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
809821 public UnionSerialize? Serialize { get; set; }
810822
811823 [JsonProperty("SerializerProvider", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
812824 public UnionSerializerProvider? SerializerProvider { get; set; }
813825
826+ [JsonProperty("SerialName", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
827+ public UnionSerialName? SerialName { get; set; }
828+
814829 [JsonProperty("set", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
815830 public UnionSet? Set { get; set; }
816831
@@ -967,6 +982,9 @@ namespace QuickType
967982 [JsonProperty("unsigned", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
968983 public UnionUnsigned? Unsigned { get; set; }
969984
985+ [JsonProperty("UseSerializers", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
986+ public UnionUseSerializers? UseSerializers { get; set; }
987+
970988 [JsonProperty("ushort", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
971989 public UnionUshort? Ushort { get; set; }
972990
@@ -1677,6 +1695,10 @@ namespace QuickType
16771695 {
16781696 }
16791697
1698+ public partial record KSerializer
1699+ {
1700+ }
1701+
16801702 public partial record Lambda
16811703 {
16821704 }
@@ -1885,6 +1907,10 @@ namespace QuickType
18851907 {
18861908 }
18871909
1910+ public partial record PrimitiveKind
1911+ {
1912+ }
1913+
18881914 public partial record Print
18891915 {
18901916 }
@@ -2009,6 +2035,18 @@ namespace QuickType
20092035 {
20102036 }
20112037
2038+ public partial record SerialDescriptor
2039+ {
2040+ }
2041+
2042+ public partial record SerialName
2043+ {
2044+ }
2045+
2046+ public partial record Serializable
2047+ {
2048+ }
2049+
20122050 public partial record SerializeClass
20132051 {
20142052 }
@@ -2277,6 +2315,10 @@ namespace QuickType
22772315 {
22782316 }
22792317
2318+ public partial record UseSerializers
2319+ {
2320+ }
2321+
22802322 public partial record Ushort
22812323 {
22822324 }
@@ -3820,6 +3862,15 @@ namespace QuickType
38203862 public static implicit operator UnionJsonWriter(JsonWriterClass JsonWriterClass) => new UnionJsonWriter { JsonWriterClass = JsonWriterClass };
38213863 }
38223864
3865+ public partial struct UnionKSerializer
3866+ {
3867+ public double? Double;
3868+ public KSerializer? KSerializer;
3869+
3870+ public static implicit operator UnionKSerializer(double Double) => new UnionKSerializer { Double = Double };
3871+ public static implicit operator UnionKSerializer(KSerializer KSerializer) => new UnionKSerializer { KSerializer = KSerializer };
3872+ }
3873+
38233874 public partial struct UnionLambda
38243875 {
38253876 public double? Double;
@@ -4288,6 +4339,15 @@ namespace QuickType
42884339 public static implicit operator UnionPrefix(Prefix Prefix) => new UnionPrefix { Prefix = Prefix };
42894340 }
42904341
4342+ public partial struct UnionPrimitiveKind
4343+ {
4344+ public double? Double;
4345+ public PrimitiveKind? PrimitiveKind;
4346+
4347+ public static implicit operator UnionPrimitiveKind(double Double) => new UnionPrimitiveKind { Double = Double };
4348+ public static implicit operator UnionPrimitiveKind(PrimitiveKind PrimitiveKind) => new UnionPrimitiveKind { PrimitiveKind = PrimitiveKind };
4349+ }
4350+
42914351 public partial struct UnionPrint
42924352 {
42934353 public double? Double;
@@ -4567,6 +4627,33 @@ namespace QuickType
45674627 public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable };
45684628 }
45694629
4630+ public partial struct UnionSerialDescriptor
4631+ {
4632+ public double? Double;
4633+ public SerialDescriptor? SerialDescriptor;
4634+
4635+ public static implicit operator UnionSerialDescriptor(double Double) => new UnionSerialDescriptor { Double = Double };
4636+ public static implicit operator UnionSerialDescriptor(SerialDescriptor SerialDescriptor) => new UnionSerialDescriptor { SerialDescriptor = SerialDescriptor };
4637+ }
4638+
4639+ public partial struct UnionSerialName
4640+ {
4641+ public double? Double;
4642+ public SerialName? SerialName;
4643+
4644+ public static implicit operator UnionSerialName(double Double) => new UnionSerialName { Double = Double };
4645+ public static implicit operator UnionSerialName(SerialName SerialName) => new UnionSerialName { SerialName = SerialName };
4646+ }
4647+
4648+ public partial struct UnionSerializable
4649+ {
4650+ public double? Double;
4651+ public Serializable? Serializable;
4652+
4653+ public static implicit operator UnionSerializable(double Double) => new UnionSerializable { Double = Double };
4654+ public static implicit operator UnionSerializable(Serializable Serializable) => new UnionSerializable { Serializable = Serializable };
4655+ }
4656+
45704657 public partial struct UnionSerialize
45714658 {
45724659 public double? Double;
@@ -5170,6 +5257,15 @@ namespace QuickType
51705257 public static implicit operator UnionUnsigned(Unsigned Unsigned) => new UnionUnsigned { Unsigned = Unsigned };
51715258 }
51725259
5260+ public partial struct UnionUseSerializers
5261+ {
5262+ public double? Double;
5263+ public UseSerializers? UseSerializers;
5264+
5265+ public static implicit operator UnionUseSerializers(double Double) => new UnionUseSerializers { Double = Double };
5266+ public static implicit operator UnionUseSerializers(UseSerializers UseSerializers) => new UnionUseSerializers { UseSerializers = UseSerializers };
5267+ }
5268+
51735269 public partial struct UnionUshort
51745270 {
51755271 public double? Double;
@@ -5394,6 +5490,7 @@ namespace QuickType
53945490 UnionJsonParserConverter.Singleton,
53955491 UnionJsonReaderConverter.Singleton,
53965492 UnionJsonTokenTypeConverter.Singleton,
5493+ UnionKSerializerConverter.Singleton,
53975494 UnionLocaleConverter.Singleton,
53985495 UnionMapEntryConverter.Singleton,
53995496 UnionNoConverter.Singleton,
@@ -5403,11 +5500,15 @@ namespace QuickType
54035500 UnionNullConverter.Singleton,
54045501 UnionNoneConverter.Singleton,
54055502 UnionObjectMapperConverter.Singleton,
5503+ UnionPrimitiveKindConverter.Singleton,
54065504 UnionProtocolConverter.Singleton,
54075505 UnionRegExpConverter.Singleton,
54085506 UnionSelConverter.Singleton,
54095507 UnionSelfConverter.Singleton,
54105508 UnionSendableConverter.Singleton,
5509+ UnionSerialDescriptorConverter.Singleton,
5510+ UnionSerialNameConverter.Singleton,
5511+ UnionSerializableConverter.Singleton,
54115512 UnionSerializerProviderConverter.Singleton,
54125513 UnionSimpleModuleConverter.Singleton,
54135514 UnionStandardsConverter.Singleton,
@@ -5419,6 +5520,7 @@ namespace QuickType
54195520 UnionTrueConverter.Singleton,
54205521 UnionTypeConverter.Singleton,
54215522 UnionUuidConverter.Singleton,
5523+ UnionUseSerializersConverter.Singleton,
54225524 UnionUtf8JsonReaderConverter.Singleton,
54235525 UnionUtf8JsonWriterConverter.Singleton,
54245526 UnionYesConverter.Singleton,
@@ -7026,6 +7128,44 @@ namespace QuickType
70267128 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
70277129 }
70287130
7131+ internal class UnionKSerializerConverter : JsonConverter
7132+ {
7133+ public override bool CanConvert(Type t) => t == typeof(UnionKSerializer) || t == typeof(UnionKSerializer?);
7134+
7135+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7136+ {
7137+ switch (reader.TokenType)
7138+ {
7139+ case JsonToken.Integer:
7140+ case JsonToken.Float:
7141+ var doubleValue = serializer.Deserialize<double>(reader);
7142+ return new UnionKSerializer { Double = doubleValue };
7143+ case JsonToken.StartObject:
7144+ var objectValue = serializer.Deserialize<KSerializer>(reader);
7145+ return new UnionKSerializer { KSerializer = objectValue };
7146+ }
7147+ throw new Exception("Cannot unmarshal type UnionKSerializer");
7148+ }
7149+
7150+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7151+ {
7152+ var value = (UnionKSerializer)untypedValue;
7153+ if (value.Double != null)
7154+ {
7155+ serializer.Serialize(writer, value.Double.Value);
7156+ return;
7157+ }
7158+ if (value.KSerializer != null)
7159+ {
7160+ serializer.Serialize(writer, value.KSerializer);
7161+ return;
7162+ }
7163+ throw new Exception("Cannot marshal type UnionKSerializer");
7164+ }
7165+
7166+ public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
7167+ }
7168+
70297169 internal class UnionLocaleConverter : JsonConverter
70307170 {
70317171 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7368,6 +7508,44 @@ namespace QuickType
73687508 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
73697509 }
73707510
7511+ internal class UnionPrimitiveKindConverter : JsonConverter
7512+ {
7513+ public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
7514+
7515+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7516+ {
7517+ switch (reader.TokenType)
7518+ {
7519+ case JsonToken.Integer:
7520+ case JsonToken.Float:
7521+ var doubleValue = serializer.Deserialize<double>(reader);
7522+ return new UnionPrimitiveKind { Double = doubleValue };
7523+ case JsonToken.StartObject:
7524+ var objectValue = serializer.Deserialize<PrimitiveKind>(reader);
7525+ return new UnionPrimitiveKind { PrimitiveKind = objectValue };
7526+ }
7527+ throw new Exception("Cannot unmarshal type UnionPrimitiveKind");
7528+ }
7529+
7530+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7531+ {
7532+ var value = (UnionPrimitiveKind)untypedValue;
7533+ if (value.Double != null)
7534+ {
7535+ serializer.Serialize(writer, value.Double.Value);
7536+ return;
7537+ }
7538+ if (value.PrimitiveKind != null)
7539+ {
7540+ serializer.Serialize(writer, value.PrimitiveKind);
7541+ return;
7542+ }
7543+ throw new Exception("Cannot marshal type UnionPrimitiveKind");
7544+ }
7545+
7546+ public static readonly UnionPrimitiveKindConverter Singleton = new UnionPrimitiveKindConverter();
7547+ }
7548+
73717549 internal class UnionProtocolConverter : JsonConverter
73727550 {
73737551 public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?);
@@ -7558,6 +7736,120 @@ namespace QuickType
75587736 public static readonly UnionSendableConverter Singleton = new UnionSendableConverter();
75597737 }
75607738
7739+ internal class UnionSerialDescriptorConverter : JsonConverter
7740+ {
7741+ public override bool CanConvert(Type t) => t == typeof(UnionSerialDescriptor) || t == typeof(UnionSerialDescriptor?);
7742+
7743+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7744+ {
7745+ switch (reader.TokenType)
7746+ {
7747+ case JsonToken.Integer:
7748+ case JsonToken.Float:
7749+ var doubleValue = serializer.Deserialize<double>(reader);
7750+ return new UnionSerialDescriptor { Double = doubleValue };
7751+ case JsonToken.StartObject:
7752+ var objectValue = serializer.Deserialize<SerialDescriptor>(reader);
7753+ return new UnionSerialDescriptor { SerialDescriptor = objectValue };
7754+ }
7755+ throw new Exception("Cannot unmarshal type UnionSerialDescriptor");
7756+ }
7757+
7758+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7759+ {
7760+ var value = (UnionSerialDescriptor)untypedValue;
7761+ if (value.Double != null)
7762+ {
7763+ serializer.Serialize(writer, value.Double.Value);
7764+ return;
7765+ }
7766+ if (value.SerialDescriptor != null)
7767+ {
7768+ serializer.Serialize(writer, value.SerialDescriptor);
7769+ return;
7770+ }
7771+ throw new Exception("Cannot marshal type UnionSerialDescriptor");
7772+ }
7773+
7774+ public static readonly UnionSerialDescriptorConverter Singleton = new UnionSerialDescriptorConverter();
7775+ }
7776+
7777+ internal class UnionSerialNameConverter : JsonConverter
7778+ {
7779+ public override bool CanConvert(Type t) => t == typeof(UnionSerialName) || t == typeof(UnionSerialName?);
7780+
7781+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7782+ {
7783+ switch (reader.TokenType)
7784+ {
7785+ case JsonToken.Integer:
7786+ case JsonToken.Float:
7787+ var doubleValue = serializer.Deserialize<double>(reader);
7788+ return new UnionSerialName { Double = doubleValue };
7789+ case JsonToken.StartObject:
7790+ var objectValue = serializer.Deserialize<SerialName>(reader);
7791+ return new UnionSerialName { SerialName = objectValue };
7792+ }
7793+ throw new Exception("Cannot unmarshal type UnionSerialName");
7794+ }
7795+
7796+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7797+ {
7798+ var value = (UnionSerialName)untypedValue;
7799+ if (value.Double != null)
7800+ {
7801+ serializer.Serialize(writer, value.Double.Value);
7802+ return;
7803+ }
7804+ if (value.SerialName != null)
7805+ {
7806+ serializer.Serialize(writer, value.SerialName);
7807+ return;
7808+ }
7809+ throw new Exception("Cannot marshal type UnionSerialName");
7810+ }
7811+
7812+ public static readonly UnionSerialNameConverter Singleton = new UnionSerialNameConverter();
7813+ }
7814+
7815+ internal class UnionSerializableConverter : JsonConverter
7816+ {
7817+ public override bool CanConvert(Type t) => t == typeof(UnionSerializable) || t == typeof(UnionSerializable?);
7818+
7819+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7820+ {
7821+ switch (reader.TokenType)
7822+ {
7823+ case JsonToken.Integer:
7824+ case JsonToken.Float:
7825+ var doubleValue = serializer.Deserialize<double>(reader);
7826+ return new UnionSerializable { Double = doubleValue };
7827+ case JsonToken.StartObject:
7828+ var objectValue = serializer.Deserialize<Serializable>(reader);
7829+ return new UnionSerializable { Serializable = objectValue };
7830+ }
7831+ throw new Exception("Cannot unmarshal type UnionSerializable");
7832+ }
7833+
7834+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7835+ {
7836+ var value = (UnionSerializable)untypedValue;
7837+ if (value.Double != null)
7838+ {
7839+ serializer.Serialize(writer, value.Double.Value);
7840+ return;
7841+ }
7842+ if (value.Serializable != null)
7843+ {
7844+ serializer.Serialize(writer, value.Serializable);
7845+ return;
7846+ }
7847+ throw new Exception("Cannot marshal type UnionSerializable");
7848+ }
7849+
7850+ public static readonly UnionSerializableConverter Singleton = new UnionSerializableConverter();
7851+ }
7852+
75617853 internal class UnionSerializerProviderConverter : JsonConverter
75627854 {
75637855 public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider) || t == typeof(UnionSerializerProvider?);
@@ -7976,6 +8268,44 @@ namespace QuickType
79768268 public static readonly UnionUuidConverter Singleton = new UnionUuidConverter();
79778269 }
79788270
8271+ internal class UnionUseSerializersConverter : JsonConverter
8272+ {
8273+ public override bool CanConvert(Type t) => t == typeof(UnionUseSerializers) || t == typeof(UnionUseSerializers?);
8274+
8275+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8276+ {
8277+ switch (reader.TokenType)
8278+ {
8279+ case JsonToken.Integer:
8280+ case JsonToken.Float:
8281+ var doubleValue = serializer.Deserialize<double>(reader);
8282+ return new UnionUseSerializers { Double = doubleValue };
8283+ case JsonToken.StartObject:
8284+ var objectValue = serializer.Deserialize<UseSerializers>(reader);
8285+ return new UnionUseSerializers { UseSerializers = objectValue };
8286+ }
8287+ throw new Exception("Cannot unmarshal type UnionUseSerializers");
8288+ }
8289+
8290+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8291+ {
8292+ var value = (UnionUseSerializers)untypedValue;
8293+ if (value.Double != null)
8294+ {
8295+ serializer.Serialize(writer, value.Double.Value);
8296+ return;
8297+ }
8298+ if (value.UseSerializers != null)
8299+ {
8300+ serializer.Serialize(writer, value.UseSerializers);
8301+ return;
8302+ }
8303+ throw new Exception("Cannot marshal type UnionUseSerializers");
8304+ }
8305+
8306+ public static readonly UnionUseSerializersConverter Singleton = new UnionUseSerializersConverter();
8307+ }
8308+
79798309 internal class UnionUtf8JsonReaderConverter : JsonConverter
79808310 {
79818311 public override bool CanConvert(Type t) => t == typeof(UnionUtf8JsonReader) || t == typeof(UnionUtf8JsonReader?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+324 −0
@@ -710,6 +710,10 @@ namespace QuickType
710710 [JsonPropertyName("JsonTokenType")]
711711 public UnionJsonTokenType? JsonTokenType { get; set; }
712712
713+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
714+ [JsonPropertyName("KSerializer")]
715+ public UnionKSerializer? KSerializer { get; set; }
716+
713717 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
714718 [JsonPropertyName("lambda")]
715719 public UnionLambda? Lambda { get; set; }
@@ -926,6 +930,10 @@ namespace QuickType
926930 [JsonPropertyName("prefix")]
927931 public UnionPrefix? Prefix { get; set; }
928932
933+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
934+ [JsonPropertyName("PrimitiveKind")]
935+ public UnionPrimitiveKind? PrimitiveKind { get; set; }
936+
929937 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
930938 [JsonPropertyName("print")]
931939 public UnionPrint? Print { get; set; }
@@ -1062,6 +1070,14 @@ namespace QuickType
10621070 [JsonPropertyName("Sendable")]
10631071 public UnionSendable? Sendable { get; set; }
10641072
1073+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1074+ [JsonPropertyName("SerialDescriptor")]
1075+ public UnionSerialDescriptor? SerialDescriptor { get; set; }
1076+
1077+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1078+ [JsonPropertyName("Serializable")]
1079+ public UnionSerializable? Serializable { get; set; }
1080+
10651081 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
10661082 [JsonPropertyName("serialize")]
10671083 public UnionSerialize? Serialize { get; set; }
@@ -1070,6 +1086,10 @@ namespace QuickType
10701086 [JsonPropertyName("SerializerProvider")]
10711087 public UnionSerializerProvider? SerializerProvider { get; set; }
10721088
1089+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1090+ [JsonPropertyName("SerialName")]
1091+ public UnionSerialName? SerialName { get; set; }
1092+
10731093 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
10741094 [JsonPropertyName("set")]
10751095 public UnionSet? Set { get; set; }
@@ -1278,6 +1298,10 @@ namespace QuickType
12781298 [JsonPropertyName("unsigned")]
12791299 public UnionUnsigned? Unsigned { get; set; }
12801300
1301+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1302+ [JsonPropertyName("UseSerializers")]
1303+ public UnionUseSerializers? UseSerializers { get; set; }
1304+
12811305 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
12821306 [JsonPropertyName("ushort")]
12831307 public UnionUshort? Ushort { get; set; }
@@ -2015,6 +2039,10 @@ namespace QuickType
20152039 {
20162040 }
20172041
2042+ public partial class KSerializer
2043+ {
2044+ }
2045+
20182046 public partial class Lambda
20192047 {
20202048 }
@@ -2223,6 +2251,10 @@ namespace QuickType
22232251 {
22242252 }
22252253
2254+ public partial class PrimitiveKind
2255+ {
2256+ }
2257+
22262258 public partial class Print
22272259 {
22282260 }
@@ -2351,6 +2383,18 @@ namespace QuickType
23512383 {
23522384 }
23532385
2386+ public partial class SerialDescriptor
2387+ {
2388+ }
2389+
2390+ public partial class SerialName
2391+ {
2392+ }
2393+
2394+ public partial class Serializable
2395+ {
2396+ }
2397+
23542398 public partial class SerializeClass
23552399 {
23562400 }
@@ -2607,6 +2651,10 @@ namespace QuickType
26072651 {
26082652 }
26092653
2654+ public partial class UseSerializers
2655+ {
2656+ }
2657+
26102658 public partial class Ushort
26112659 {
26122660 }
@@ -4168,6 +4216,15 @@ namespace QuickType
41684216 public static implicit operator UnionJsonWriter(JsonWriterClass JsonWriterClass) => new UnionJsonWriter { JsonWriterClass = JsonWriterClass };
41694217 }
41704218
4219+ public partial struct UnionKSerializer
4220+ {
4221+ public double? Double;
4222+ public KSerializer? KSerializer;
4223+
4224+ public static implicit operator UnionKSerializer(double Double) => new UnionKSerializer { Double = Double };
4225+ public static implicit operator UnionKSerializer(KSerializer KSerializer) => new UnionKSerializer { KSerializer = KSerializer };
4226+ }
4227+
41714228 public partial struct UnionLambda
41724229 {
41734230 public double? Double;
@@ -4636,6 +4693,15 @@ namespace QuickType
46364693 public static implicit operator UnionPrefix(Prefix Prefix) => new UnionPrefix { Prefix = Prefix };
46374694 }
46384695
4696+ public partial struct UnionPrimitiveKind
4697+ {
4698+ public double? Double;
4699+ public PrimitiveKind? PrimitiveKind;
4700+
4701+ public static implicit operator UnionPrimitiveKind(double Double) => new UnionPrimitiveKind { Double = Double };
4702+ public static implicit operator UnionPrimitiveKind(PrimitiveKind PrimitiveKind) => new UnionPrimitiveKind { PrimitiveKind = PrimitiveKind };
4703+ }
4704+
46394705 public partial struct UnionPrint
46404706 {
46414707 public double? Double;
@@ -4924,6 +4990,33 @@ namespace QuickType
49244990 public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable };
49254991 }
49264992
4993+ public partial struct UnionSerialDescriptor
4994+ {
4995+ public double? Double;
4996+ public SerialDescriptor? SerialDescriptor;
4997+
4998+ public static implicit operator UnionSerialDescriptor(double Double) => new UnionSerialDescriptor { Double = Double };
4999+ public static implicit operator UnionSerialDescriptor(SerialDescriptor SerialDescriptor) => new UnionSerialDescriptor { SerialDescriptor = SerialDescriptor };
5000+ }
5001+
5002+ public partial struct UnionSerialName
5003+ {
5004+ public double? Double;
5005+ public SerialName? SerialName;
5006+
5007+ public static implicit operator UnionSerialName(double Double) => new UnionSerialName { Double = Double };
5008+ public static implicit operator UnionSerialName(SerialName SerialName) => new UnionSerialName { SerialName = SerialName };
5009+ }
5010+
5011+ public partial struct UnionSerializable
5012+ {
5013+ public double? Double;
5014+ public Serializable? Serializable;
5015+
5016+ public static implicit operator UnionSerializable(double Double) => new UnionSerializable { Double = Double };
5017+ public static implicit operator UnionSerializable(Serializable Serializable) => new UnionSerializable { Serializable = Serializable };
5018+ }
5019+
49275020 public partial struct UnionSerialize
49285021 {
49295022 public double? Double;
@@ -5500,6 +5593,15 @@ namespace QuickType
55005593 public static implicit operator UnionUnsigned(Unsigned Unsigned) => new UnionUnsigned { Unsigned = Unsigned };
55015594 }
55025595
5596+ public partial struct UnionUseSerializers
5597+ {
5598+ public double? Double;
5599+ public UseSerializers? UseSerializers;
5600+
5601+ public static implicit operator UnionUseSerializers(double Double) => new UnionUseSerializers { Double = Double };
5602+ public static implicit operator UnionUseSerializers(UseSerializers UseSerializers) => new UnionUseSerializers { UseSerializers = UseSerializers };
5603+ }
5604+
55035605 public partial struct UnionUshort
55045606 {
55055607 public double? Double;
@@ -5722,6 +5824,7 @@ namespace QuickType
57225824 UnionJsonParserConverter.Singleton,
57235825 UnionJsonReaderConverter.Singleton,
57245826 UnionJsonTokenTypeConverter.Singleton,
5827+ UnionKSerializerConverter.Singleton,
57255828 UnionLocaleConverter.Singleton,
57265829 UnionMapEntryConverter.Singleton,
57275830 UnionNoConverter.Singleton,
@@ -5731,11 +5834,15 @@ namespace QuickType
57315834 UnionNullConverter.Singleton,
57325835 UnionNoneConverter.Singleton,
57335836 UnionObjectMapperConverter.Singleton,
5837+ UnionPrimitiveKindConverter.Singleton,
57345838 UnionProtocolConverter.Singleton,
57355839 UnionRegExpConverter.Singleton,
57365840 UnionSelConverter.Singleton,
57375841 UnionSelfConverter.Singleton,
57385842 UnionSendableConverter.Singleton,
5843+ UnionSerialDescriptorConverter.Singleton,
5844+ UnionSerialNameConverter.Singleton,
5845+ UnionSerializableConverter.Singleton,
57395846 UnionSerializerProviderConverter.Singleton,
57405847 UnionSimpleModuleConverter.Singleton,
57415848 UnionStandardsConverter.Singleton,
@@ -5747,6 +5854,7 @@ namespace QuickType
57475854 UnionTrueConverter.Singleton,
57485855 UnionTypeConverter.Singleton,
57495856 UnionUuidConverter.Singleton,
5857+ UnionUseSerializersConverter.Singleton,
57505858 UnionUtf8JsonReaderConverter.Singleton,
57515859 UnionUtf8JsonWriterConverter.Singleton,
57525860 UnionYesConverter.Singleton,
@@ -7286,6 +7394,42 @@ namespace QuickType
72867394 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
72877395 }
72887396
7397+ internal class UnionKSerializerConverter : JsonConverter<UnionKSerializer>
7398+ {
7399+ public override bool CanConvert(Type t) => t == typeof(UnionKSerializer);
7400+
7401+ public override UnionKSerializer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7402+ {
7403+ switch (reader.TokenType)
7404+ {
7405+ case JsonTokenType.Number:
7406+ var doubleValue1 = reader.GetDouble();
7407+ return new UnionKSerializer { Double = doubleValue1 };
7408+ case JsonTokenType.StartObject:
7409+ var objectValue = JsonSerializer.Deserialize<KSerializer>(ref reader, options);
7410+ return new UnionKSerializer { KSerializer = objectValue };
7411+ }
7412+ throw new JsonException("Cannot unmarshal type UnionKSerializer");
7413+ }
7414+
7415+ public override void Write(Utf8JsonWriter writer, UnionKSerializer value, JsonSerializerOptions options)
7416+ {
7417+ if (value.Double != null)
7418+ {
7419+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7420+ return;
7421+ }
7422+ if (value.KSerializer != null)
7423+ {
7424+ JsonSerializer.Serialize(writer, value.KSerializer, options);
7425+ return;
7426+ }
7427+ throw new NotSupportedException("Cannot marshal type UnionKSerializer");
7428+ }
7429+
7430+ public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
7431+ }
7432+
72897433 internal class UnionLocaleConverter : JsonConverter<UnionLocale>
72907434 {
72917435 public override bool CanConvert(Type t) => t == typeof(UnionLocale);
@@ -7610,6 +7754,42 @@ namespace QuickType
76107754 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
76117755 }
76127756
7757+ internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind>
7758+ {
7759+ public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind);
7760+
7761+ public override UnionPrimitiveKind Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7762+ {
7763+ switch (reader.TokenType)
7764+ {
7765+ case JsonTokenType.Number:
7766+ var doubleValue1 = reader.GetDouble();
7767+ return new UnionPrimitiveKind { Double = doubleValue1 };
7768+ case JsonTokenType.StartObject:
7769+ var objectValue = JsonSerializer.Deserialize<PrimitiveKind>(ref reader, options);
7770+ return new UnionPrimitiveKind { PrimitiveKind = objectValue };
7771+ }
7772+ throw new JsonException("Cannot unmarshal type UnionPrimitiveKind");
7773+ }
7774+
7775+ public override void Write(Utf8JsonWriter writer, UnionPrimitiveKind value, JsonSerializerOptions options)
7776+ {
7777+ if (value.Double != null)
7778+ {
7779+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7780+ return;
7781+ }
7782+ if (value.PrimitiveKind != null)
7783+ {
7784+ JsonSerializer.Serialize(writer, value.PrimitiveKind, options);
7785+ return;
7786+ }
7787+ throw new NotSupportedException("Cannot marshal type UnionPrimitiveKind");
7788+ }
7789+
7790+ public static readonly UnionPrimitiveKindConverter Singleton = new UnionPrimitiveKindConverter();
7791+ }
7792+
76137793 internal class UnionProtocolConverter : JsonConverter<UnionProtocol>
76147794 {
76157795 public override bool CanConvert(Type t) => t == typeof(UnionProtocol);
@@ -7790,6 +7970,114 @@ namespace QuickType
77907970 public static readonly UnionSendableConverter Singleton = new UnionSendableConverter();
77917971 }
77927972
7973+ internal class UnionSerialDescriptorConverter : JsonConverter<UnionSerialDescriptor>
7974+ {
7975+ public override bool CanConvert(Type t) => t == typeof(UnionSerialDescriptor);
7976+
7977+ public override UnionSerialDescriptor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7978+ {
7979+ switch (reader.TokenType)
7980+ {
7981+ case JsonTokenType.Number:
7982+ var doubleValue1 = reader.GetDouble();
7983+ return new UnionSerialDescriptor { Double = doubleValue1 };
7984+ case JsonTokenType.StartObject:
7985+ var objectValue = JsonSerializer.Deserialize<SerialDescriptor>(ref reader, options);
7986+ return new UnionSerialDescriptor { SerialDescriptor = objectValue };
7987+ }
7988+ throw new JsonException("Cannot unmarshal type UnionSerialDescriptor");
7989+ }
7990+
7991+ public override void Write(Utf8JsonWriter writer, UnionSerialDescriptor value, JsonSerializerOptions options)
7992+ {
7993+ if (value.Double != null)
7994+ {
7995+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7996+ return;
7997+ }
7998+ if (value.SerialDescriptor != null)
7999+ {
8000+ JsonSerializer.Serialize(writer, value.SerialDescriptor, options);
8001+ return;
8002+ }
8003+ throw new NotSupportedException("Cannot marshal type UnionSerialDescriptor");
8004+ }
8005+
8006+ public static readonly UnionSerialDescriptorConverter Singleton = new UnionSerialDescriptorConverter();
8007+ }
8008+
8009+ internal class UnionSerialNameConverter : JsonConverter<UnionSerialName>
8010+ {
8011+ public override bool CanConvert(Type t) => t == typeof(UnionSerialName);
8012+
8013+ public override UnionSerialName Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
8014+ {
8015+ switch (reader.TokenType)
8016+ {
8017+ case JsonTokenType.Number:
8018+ var doubleValue1 = reader.GetDouble();
8019+ return new UnionSerialName { Double = doubleValue1 };
8020+ case JsonTokenType.StartObject:
8021+ var objectValue = JsonSerializer.Deserialize<SerialName>(ref reader, options);
8022+ return new UnionSerialName { SerialName = objectValue };
8023+ }
8024+ throw new JsonException("Cannot unmarshal type UnionSerialName");
8025+ }
8026+
8027+ public override void Write(Utf8JsonWriter writer, UnionSerialName value, JsonSerializerOptions options)
8028+ {
8029+ if (value.Double != null)
8030+ {
8031+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8032+ return;
8033+ }
8034+ if (value.SerialName != null)
8035+ {
8036+ JsonSerializer.Serialize(writer, value.SerialName, options);
8037+ return;
8038+ }
8039+ throw new NotSupportedException("Cannot marshal type UnionSerialName");
8040+ }
8041+
8042+ public static readonly UnionSerialNameConverter Singleton = new UnionSerialNameConverter();
8043+ }
8044+
8045+ internal class UnionSerializableConverter : JsonConverter<UnionSerializable>
8046+ {
8047+ public override bool CanConvert(Type t) => t == typeof(UnionSerializable);
8048+
8049+ public override UnionSerializable Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
8050+ {
8051+ switch (reader.TokenType)
8052+ {
8053+ case JsonTokenType.Number:
8054+ var doubleValue1 = reader.GetDouble();
8055+ return new UnionSerializable { Double = doubleValue1 };
8056+ case JsonTokenType.StartObject:
8057+ var objectValue = JsonSerializer.Deserialize<Serializable>(ref reader, options);
8058+ return new UnionSerializable { Serializable = objectValue };
8059+ }
8060+ throw new JsonException("Cannot unmarshal type UnionSerializable");
8061+ }
8062+
8063+ public override void Write(Utf8JsonWriter writer, UnionSerializable value, JsonSerializerOptions options)
8064+ {
8065+ if (value.Double != null)
8066+ {
8067+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8068+ return;
8069+ }
8070+ if (value.Serializable != null)
8071+ {
8072+ JsonSerializer.Serialize(writer, value.Serializable, options);
8073+ return;
8074+ }
8075+ throw new NotSupportedException("Cannot marshal type UnionSerializable");
8076+ }
8077+
8078+ public static readonly UnionSerializableConverter Singleton = new UnionSerializableConverter();
8079+ }
8080+
77938081 internal class UnionSerializerProviderConverter : JsonConverter<UnionSerializerProvider>
77948082 {
77958083 public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider);
@@ -8186,6 +8474,42 @@ namespace QuickType
81868474 public static readonly UnionUuidConverter Singleton = new UnionUuidConverter();
81878475 }
81888476
8477+ internal class UnionUseSerializersConverter : JsonConverter<UnionUseSerializers>
8478+ {
8479+ public override bool CanConvert(Type t) => t == typeof(UnionUseSerializers);
8480+
8481+ public override UnionUseSerializers Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
8482+ {
8483+ switch (reader.TokenType)
8484+ {
8485+ case JsonTokenType.Number:
8486+ var doubleValue1 = reader.GetDouble();
8487+ return new UnionUseSerializers { Double = doubleValue1 };
8488+ case JsonTokenType.StartObject:
8489+ var objectValue = JsonSerializer.Deserialize<UseSerializers>(ref reader, options);
8490+ return new UnionUseSerializers { UseSerializers = objectValue };
8491+ }
8492+ throw new JsonException("Cannot unmarshal type UnionUseSerializers");
8493+ }
8494+
8495+ public override void Write(Utf8JsonWriter writer, UnionUseSerializers value, JsonSerializerOptions options)
8496+ {
8497+ if (value.Double != null)
8498+ {
8499+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8500+ return;
8501+ }
8502+ if (value.UseSerializers != null)
8503+ {
8504+ JsonSerializer.Serialize(writer, value.UseSerializers, options);
8505+ return;
8506+ }
8507+ throw new NotSupportedException("Cannot marshal type UnionUseSerializers");
8508+ }
8509+
8510+ public static readonly UnionUseSerializersConverter Singleton = new UnionUseSerializersConverter();
8511+ }
8512+
81898513 internal class UnionUtf8JsonReaderConverter : JsonConverter<UnionUtf8JsonReader>
81908514 {
81918515 public override bool CanConvert(Type t) => t == typeof(UnionUtf8JsonReader);
Mschema-csharpdefault / QuickType.cs+330 −0
@@ -541,6 +541,9 @@ namespace QuickType
541541 [JsonProperty("JsonTokenType", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
542542 public UnionJsonTokenType? JsonTokenType { get; set; }
543543
544+ [JsonProperty("KSerializer", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
545+ public UnionKSerializer? KSerializer { get; set; }
546+
544547 [JsonProperty("lambda", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
545548 public UnionLambda? Lambda { get; set; }
546549
@@ -703,6 +706,9 @@ namespace QuickType
703706 [JsonProperty("prefix", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
704707 public UnionPrefix? Prefix { get; set; }
705708
709+ [JsonProperty("PrimitiveKind", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
710+ public UnionPrimitiveKind? PrimitiveKind { get; set; }
711+
706712 [JsonProperty("print", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
707713 public UnionPrint? Print { get; set; }
708714
@@ -805,12 +811,21 @@ namespace QuickType
805811 [JsonProperty("Sendable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
806812 public UnionSendable? Sendable { get; set; }
807813
814+ [JsonProperty("SerialDescriptor", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
815+ public UnionSerialDescriptor? SerialDescriptor { get; set; }
816+
817+ [JsonProperty("Serializable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
818+ public UnionSerializable? Serializable { get; set; }
819+
808820 [JsonProperty("serialize", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
809821 public UnionSerialize? Serialize { get; set; }
810822
811823 [JsonProperty("SerializerProvider", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
812824 public UnionSerializerProvider? SerializerProvider { get; set; }
813825
826+ [JsonProperty("SerialName", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
827+ public UnionSerialName? SerialName { get; set; }
828+
814829 [JsonProperty("set", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
815830 public UnionSet? Set { get; set; }
816831
@@ -967,6 +982,9 @@ namespace QuickType
967982 [JsonProperty("unsigned", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
968983 public UnionUnsigned? Unsigned { get; set; }
969984
985+ [JsonProperty("UseSerializers", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
986+ public UnionUseSerializers? UseSerializers { get; set; }
987+
970988 [JsonProperty("ushort", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
971989 public UnionUshort? Ushort { get; set; }
972990
@@ -1685,6 +1703,10 @@ namespace QuickType
16851703 {
16861704 }
16871705
1706+ public partial class KSerializer
1707+ {
1708+ }
1709+
16881710 public partial class Lambda
16891711 {
16901712 }
@@ -1893,6 +1915,10 @@ namespace QuickType
18931915 {
18941916 }
18951917
1918+ public partial class PrimitiveKind
1919+ {
1920+ }
1921+
18961922 public partial class Print
18971923 {
18981924 }
@@ -2021,6 +2047,18 @@ namespace QuickType
20212047 {
20222048 }
20232049
2050+ public partial class SerialDescriptor
2051+ {
2052+ }
2053+
2054+ public partial class SerialName
2055+ {
2056+ }
2057+
2058+ public partial class Serializable
2059+ {
2060+ }
2061+
20242062 public partial class SerializeClass
20252063 {
20262064 }
@@ -2277,6 +2315,10 @@ namespace QuickType
22772315 {
22782316 }
22792317
2318+ public partial class UseSerializers
2319+ {
2320+ }
2321+
22802322 public partial class Ushort
22812323 {
22822324 }
@@ -3838,6 +3880,15 @@ namespace QuickType
38383880 public static implicit operator UnionJsonWriter(JsonWriterClass JsonWriterClass) => new UnionJsonWriter { JsonWriterClass = JsonWriterClass };
38393881 }
38403882
3883+ public partial struct UnionKSerializer
3884+ {
3885+ public double? Double;
3886+ public KSerializer? KSerializer;
3887+
3888+ public static implicit operator UnionKSerializer(double Double) => new UnionKSerializer { Double = Double };
3889+ public static implicit operator UnionKSerializer(KSerializer KSerializer) => new UnionKSerializer { KSerializer = KSerializer };
3890+ }
3891+
38413892 public partial struct UnionLambda
38423893 {
38433894 public double? Double;
@@ -4306,6 +4357,15 @@ namespace QuickType
43064357 public static implicit operator UnionPrefix(Prefix Prefix) => new UnionPrefix { Prefix = Prefix };
43074358 }
43084359
4360+ public partial struct UnionPrimitiveKind
4361+ {
4362+ public double? Double;
4363+ public PrimitiveKind? PrimitiveKind;
4364+
4365+ public static implicit operator UnionPrimitiveKind(double Double) => new UnionPrimitiveKind { Double = Double };
4366+ public static implicit operator UnionPrimitiveKind(PrimitiveKind PrimitiveKind) => new UnionPrimitiveKind { PrimitiveKind = PrimitiveKind };
4367+ }
4368+
43094369 public partial struct UnionPrint
43104370 {
43114371 public double? Double;
@@ -4594,6 +4654,33 @@ namespace QuickType
45944654 public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable };
45954655 }
45964656
4657+ public partial struct UnionSerialDescriptor
4658+ {
4659+ public double? Double;
4660+ public SerialDescriptor? SerialDescriptor;
4661+
4662+ public static implicit operator UnionSerialDescriptor(double Double) => new UnionSerialDescriptor { Double = Double };
4663+ public static implicit operator UnionSerialDescriptor(SerialDescriptor SerialDescriptor) => new UnionSerialDescriptor { SerialDescriptor = SerialDescriptor };
4664+ }
4665+
4666+ public partial struct UnionSerialName
4667+ {
4668+ public double? Double;
4669+ public SerialName? SerialName;
4670+
4671+ public static implicit operator UnionSerialName(double Double) => new UnionSerialName { Double = Double };
4672+ public static implicit operator UnionSerialName(SerialName SerialName) => new UnionSerialName { SerialName = SerialName };
4673+ }
4674+
4675+ public partial struct UnionSerializable
4676+ {
4677+ public double? Double;
4678+ public Serializable? Serializable;
4679+
4680+ public static implicit operator UnionSerializable(double Double) => new UnionSerializable { Double = Double };
4681+ public static implicit operator UnionSerializable(Serializable Serializable) => new UnionSerializable { Serializable = Serializable };
4682+ }
4683+
45974684 public partial struct UnionSerialize
45984685 {
45994686 public double? Double;
@@ -5170,6 +5257,15 @@ namespace QuickType
51705257 public static implicit operator UnionUnsigned(Unsigned Unsigned) => new UnionUnsigned { Unsigned = Unsigned };
51715258 }
51725259
5260+ public partial struct UnionUseSerializers
5261+ {
5262+ public double? Double;
5263+ public UseSerializers? UseSerializers;
5264+
5265+ public static implicit operator UnionUseSerializers(double Double) => new UnionUseSerializers { Double = Double };
5266+ public static implicit operator UnionUseSerializers(UseSerializers UseSerializers) => new UnionUseSerializers { UseSerializers = UseSerializers };
5267+ }
5268+
51735269 public partial struct UnionUshort
51745270 {
51755271 public double? Double;
@@ -5394,6 +5490,7 @@ namespace QuickType
53945490 UnionJsonParserConverter.Singleton,
53955491 UnionJsonReaderConverter.Singleton,
53965492 UnionJsonTokenTypeConverter.Singleton,
5493+ UnionKSerializerConverter.Singleton,
53975494 UnionLocaleConverter.Singleton,
53985495 UnionMapEntryConverter.Singleton,
53995496 UnionNoConverter.Singleton,
@@ -5403,11 +5500,15 @@ namespace QuickType
54035500 UnionNullConverter.Singleton,
54045501 UnionNoneConverter.Singleton,
54055502 UnionObjectMapperConverter.Singleton,
5503+ UnionPrimitiveKindConverter.Singleton,
54065504 UnionProtocolConverter.Singleton,
54075505 UnionRegExpConverter.Singleton,
54085506 UnionSelConverter.Singleton,
54095507 UnionSelfConverter.Singleton,
54105508 UnionSendableConverter.Singleton,
5509+ UnionSerialDescriptorConverter.Singleton,
5510+ UnionSerialNameConverter.Singleton,
5511+ UnionSerializableConverter.Singleton,
54115512 UnionSerializerProviderConverter.Singleton,
54125513 UnionSimpleModuleConverter.Singleton,
54135514 UnionStandardsConverter.Singleton,
@@ -5419,6 +5520,7 @@ namespace QuickType
54195520 UnionTrueConverter.Singleton,
54205521 UnionTypeConverter.Singleton,
54215522 UnionUuidConverter.Singleton,
5523+ UnionUseSerializersConverter.Singleton,
54225524 UnionUtf8JsonReaderConverter.Singleton,
54235525 UnionUtf8JsonWriterConverter.Singleton,
54245526 UnionYesConverter.Singleton,
@@ -7026,6 +7128,44 @@ namespace QuickType
70267128 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
70277129 }
70287130
7131+ internal class UnionKSerializerConverter : JsonConverter
7132+ {
7133+ public override bool CanConvert(Type t) => t == typeof(UnionKSerializer) || t == typeof(UnionKSerializer?);
7134+
7135+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7136+ {
7137+ switch (reader.TokenType)
7138+ {
7139+ case JsonToken.Integer:
7140+ case JsonToken.Float:
7141+ var doubleValue = serializer.Deserialize<double>(reader);
7142+ return new UnionKSerializer { Double = doubleValue };
7143+ case JsonToken.StartObject:
7144+ var objectValue = serializer.Deserialize<KSerializer>(reader);
7145+ return new UnionKSerializer { KSerializer = objectValue };
7146+ }
7147+ throw new Exception("Cannot unmarshal type UnionKSerializer");
7148+ }
7149+
7150+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7151+ {
7152+ var value = (UnionKSerializer)untypedValue;
7153+ if (value.Double != null)
7154+ {
7155+ serializer.Serialize(writer, value.Double.Value);
7156+ return;
7157+ }
7158+ if (value.KSerializer != null)
7159+ {
7160+ serializer.Serialize(writer, value.KSerializer);
7161+ return;
7162+ }
7163+ throw new Exception("Cannot marshal type UnionKSerializer");
7164+ }
7165+
7166+ public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
7167+ }
7168+
70297169 internal class UnionLocaleConverter : JsonConverter
70307170 {
70317171 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7368,6 +7508,44 @@ namespace QuickType
73687508 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
73697509 }
73707510
7511+ internal class UnionPrimitiveKindConverter : JsonConverter
7512+ {
7513+ public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
7514+
7515+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7516+ {
7517+ switch (reader.TokenType)
7518+ {
7519+ case JsonToken.Integer:
7520+ case JsonToken.Float:
7521+ var doubleValue = serializer.Deserialize<double>(reader);
7522+ return new UnionPrimitiveKind { Double = doubleValue };
7523+ case JsonToken.StartObject:
7524+ var objectValue = serializer.Deserialize<PrimitiveKind>(reader);
7525+ return new UnionPrimitiveKind { PrimitiveKind = objectValue };
7526+ }
7527+ throw new Exception("Cannot unmarshal type UnionPrimitiveKind");
7528+ }
7529+
7530+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7531+ {
7532+ var value = (UnionPrimitiveKind)untypedValue;
7533+ if (value.Double != null)
7534+ {
7535+ serializer.Serialize(writer, value.Double.Value);
7536+ return;
7537+ }
7538+ if (value.PrimitiveKind != null)
7539+ {
7540+ serializer.Serialize(writer, value.PrimitiveKind);
7541+ return;
7542+ }
7543+ throw new Exception("Cannot marshal type UnionPrimitiveKind");
7544+ }
7545+
7546+ public static readonly UnionPrimitiveKindConverter Singleton = new UnionPrimitiveKindConverter();
7547+ }
7548+
73717549 internal class UnionProtocolConverter : JsonConverter
73727550 {
73737551 public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?);
@@ -7558,6 +7736,120 @@ namespace QuickType
75587736 public static readonly UnionSendableConverter Singleton = new UnionSendableConverter();
75597737 }
75607738
7739+ internal class UnionSerialDescriptorConverter : JsonConverter
7740+ {
7741+ public override bool CanConvert(Type t) => t == typeof(UnionSerialDescriptor) || t == typeof(UnionSerialDescriptor?);
7742+
7743+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7744+ {
7745+ switch (reader.TokenType)
7746+ {
7747+ case JsonToken.Integer:
7748+ case JsonToken.Float:
7749+ var doubleValue = serializer.Deserialize<double>(reader);
7750+ return new UnionSerialDescriptor { Double = doubleValue };
7751+ case JsonToken.StartObject:
7752+ var objectValue = serializer.Deserialize<SerialDescriptor>(reader);
7753+ return new UnionSerialDescriptor { SerialDescriptor = objectValue };
7754+ }
7755+ throw new Exception("Cannot unmarshal type UnionSerialDescriptor");
7756+ }
7757+
7758+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7759+ {
7760+ var value = (UnionSerialDescriptor)untypedValue;
7761+ if (value.Double != null)
7762+ {
7763+ serializer.Serialize(writer, value.Double.Value);
7764+ return;
7765+ }
7766+ if (value.SerialDescriptor != null)
7767+ {
7768+ serializer.Serialize(writer, value.SerialDescriptor);
7769+ return;
7770+ }
7771+ throw new Exception("Cannot marshal type UnionSerialDescriptor");
7772+ }
7773+
7774+ public static readonly UnionSerialDescriptorConverter Singleton = new UnionSerialDescriptorConverter();
7775+ }
7776+
7777+ internal class UnionSerialNameConverter : JsonConverter
7778+ {
7779+ public override bool CanConvert(Type t) => t == typeof(UnionSerialName) || t == typeof(UnionSerialName?);
7780+
7781+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7782+ {
7783+ switch (reader.TokenType)
7784+ {
7785+ case JsonToken.Integer:
7786+ case JsonToken.Float:
7787+ var doubleValue = serializer.Deserialize<double>(reader);
7788+ return new UnionSerialName { Double = doubleValue };
7789+ case JsonToken.StartObject:
7790+ var objectValue = serializer.Deserialize<SerialName>(reader);
7791+ return new UnionSerialName { SerialName = objectValue };
7792+ }
7793+ throw new Exception("Cannot unmarshal type UnionSerialName");
7794+ }
7795+
7796+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7797+ {
7798+ var value = (UnionSerialName)untypedValue;
7799+ if (value.Double != null)
7800+ {
7801+ serializer.Serialize(writer, value.Double.Value);
7802+ return;
7803+ }
7804+ if (value.SerialName != null)
7805+ {
7806+ serializer.Serialize(writer, value.SerialName);
7807+ return;
7808+ }
7809+ throw new Exception("Cannot marshal type UnionSerialName");
7810+ }
7811+
7812+ public static readonly UnionSerialNameConverter Singleton = new UnionSerialNameConverter();
7813+ }
7814+
7815+ internal class UnionSerializableConverter : JsonConverter
7816+ {
7817+ public override bool CanConvert(Type t) => t == typeof(UnionSerializable) || t == typeof(UnionSerializable?);
7818+
7819+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7820+ {
7821+ switch (reader.TokenType)
7822+ {
7823+ case JsonToken.Integer:
7824+ case JsonToken.Float:
7825+ var doubleValue = serializer.Deserialize<double>(reader);
7826+ return new UnionSerializable { Double = doubleValue };
7827+ case JsonToken.StartObject:
7828+ var objectValue = serializer.Deserialize<Serializable>(reader);
7829+ return new UnionSerializable { Serializable = objectValue };
7830+ }
7831+ throw new Exception("Cannot unmarshal type UnionSerializable");
7832+ }
7833+
7834+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7835+ {
7836+ var value = (UnionSerializable)untypedValue;
7837+ if (value.Double != null)
7838+ {
7839+ serializer.Serialize(writer, value.Double.Value);
7840+ return;
7841+ }
7842+ if (value.Serializable != null)
7843+ {
7844+ serializer.Serialize(writer, value.Serializable);
7845+ return;
7846+ }
7847+ throw new Exception("Cannot marshal type UnionSerializable");
7848+ }
7849+
7850+ public static readonly UnionSerializableConverter Singleton = new UnionSerializableConverter();
7851+ }
7852+
75617853 internal class UnionSerializerProviderConverter : JsonConverter
75627854 {
75637855 public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider) || t == typeof(UnionSerializerProvider?);
@@ -7976,6 +8268,44 @@ namespace QuickType
79768268 public static readonly UnionUuidConverter Singleton = new UnionUuidConverter();
79778269 }
79788270
8271+ internal class UnionUseSerializersConverter : JsonConverter
8272+ {
8273+ public override bool CanConvert(Type t) => t == typeof(UnionUseSerializers) || t == typeof(UnionUseSerializers?);
8274+
8275+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8276+ {
8277+ switch (reader.TokenType)
8278+ {
8279+ case JsonToken.Integer:
8280+ case JsonToken.Float:
8281+ var doubleValue = serializer.Deserialize<double>(reader);
8282+ return new UnionUseSerializers { Double = doubleValue };
8283+ case JsonToken.StartObject:
8284+ var objectValue = serializer.Deserialize<UseSerializers>(reader);
8285+ return new UnionUseSerializers { UseSerializers = objectValue };
8286+ }
8287+ throw new Exception("Cannot unmarshal type UnionUseSerializers");
8288+ }
8289+
8290+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8291+ {
8292+ var value = (UnionUseSerializers)untypedValue;
8293+ if (value.Double != null)
8294+ {
8295+ serializer.Serialize(writer, value.Double.Value);
8296+ return;
8297+ }
8298+ if (value.UseSerializers != null)
8299+ {
8300+ serializer.Serialize(writer, value.UseSerializers);
8301+ return;
8302+ }
8303+ throw new Exception("Cannot marshal type UnionUseSerializers");
8304+ }
8305+
8306+ public static readonly UnionUseSerializersConverter Singleton = new UnionUseSerializersConverter();
8307+ }
8308+
79798309 internal class UnionUtf8JsonReaderConverter : JsonConverter
79808310 {
79818311 public override bool CanConvert(Type t) => t == typeof(UnionUtf8JsonReader) || t == typeof(UnionUtf8JsonReader?);
Mschema-dartdefault / TopLevel.dart+84 −0
@@ -181,6 +181,7 @@ class TopLevel {
181181 final dynamic jsonParser;
182182 final dynamic jsonReader;
183183 final dynamic jsonTokenType;
184+ final dynamic kSerializer;
184185 final dynamic lambda;
185186 final dynamic lazy;
186187 final dynamic left;
@@ -235,6 +236,7 @@ class TopLevel {
235236 final dynamic postfix;
236237 final dynamic precedence;
237238 final dynamic prefix;
239+ final dynamic primitiveKind;
238240 final dynamic print;
239241 final dynamic printf;
240242 final dynamic printMembers;
@@ -269,8 +271,11 @@ class TopLevel {
269271 final dynamic self;
270272 final dynamic topLevelSelf;
271273 final dynamic sendable;
274+ final dynamic serialDescriptor;
275+ final dynamic serializable;
272276 final dynamic serialize;
273277 final dynamic serializerProvider;
278+ final dynamic serialName;
274279 final dynamic topLevelSet;
275280 final dynamic short;
276281 final dynamic signed;
@@ -323,6 +328,7 @@ class TopLevel {
323328 final dynamic unowned;
324329 final dynamic unsafe;
325330 final dynamic unsigned;
331+ final dynamic useSerializers;
326332 final dynamic ushort;
327333 final dynamic using;
328334 final dynamic utf8JsonReader;
@@ -516,6 +522,7 @@ class TopLevel {
516522 this.jsonParser,
517523 this.jsonReader,
518524 this.jsonTokenType,
525+ this.kSerializer,
519526 this.lambda,
520527 this.lazy,
521528 this.left,
@@ -570,6 +577,7 @@ class TopLevel {
570577 this.postfix,
571578 this.precedence,
572579 this.prefix,
580+ this.primitiveKind,
573581 this.print,
574582 this.printf,
575583 this.printMembers,
@@ -604,8 +612,11 @@ class TopLevel {
604612 this.self,
605613 this.topLevelSelf,
606614 this.sendable,
615+ this.serialDescriptor,
616+ this.serializable,
607617 this.serialize,
608618 this.serializerProvider,
619+ this.serialName,
609620 this.topLevelSet,
610621 this.short,
611622 this.signed,
@@ -658,6 +669,7 @@ class TopLevel {
658669 this.unowned,
659670 this.unsafe,
660671 this.unsigned,
672+ this.useSerializers,
661673 this.ushort,
662674 this.using,
663675 this.utf8JsonReader,
@@ -852,6 +864,7 @@ class TopLevel {
852864 jsonParser: json["JsonParser"],
853865 jsonReader: json["JsonReader"],
854866 jsonTokenType: json["JsonTokenType"],
867+ kSerializer: json["KSerializer"],
855868 lambda: json["lambda"],
856869 lazy: json["lazy"],
857870 left: json["left"],
@@ -906,6 +919,7 @@ class TopLevel {
906919 postfix: json["postfix"],
907920 precedence: json["precedence"],
908921 prefix: json["prefix"],
922+ primitiveKind: json["PrimitiveKind"],
909923 print: json["print"],
910924 printf: json["printf"],
911925 printMembers: json["printMembers"],
@@ -940,8 +954,11 @@ class TopLevel {
940954 self: json["Self"],
941955 topLevelSelf: json["self"],
942956 sendable: json["Sendable"],
957+ serialDescriptor: json["SerialDescriptor"],
958+ serializable: json["Serializable"],
943959 serialize: json["serialize"],
944960 serializerProvider: json["SerializerProvider"],
961+ serialName: json["SerialName"],
945962 topLevelSet: json["set"],
946963 short: json["short"],
947964 signed: json["signed"],
@@ -994,6 +1011,7 @@ class TopLevel {
9941011 unowned: json["unowned"],
9951012 unsafe: json["unsafe"],
9961013 unsigned: json["unsigned"],
1014+ useSerializers: json["UseSerializers"],
9971015 ushort: json["ushort"],
9981016 using: json["using"],
9991017 utf8JsonReader: json["Utf8JsonReader"],
@@ -1188,6 +1206,7 @@ class TopLevel {
11881206 "JsonParser": jsonParser,
11891207 "JsonReader": jsonReader,
11901208 "JsonTokenType": jsonTokenType,
1209+ "KSerializer": kSerializer,
11911210 "lambda": lambda,
11921211 "lazy": lazy,
11931212 "left": left,
@@ -1242,6 +1261,7 @@ class TopLevel {
12421261 "postfix": postfix,
12431262 "precedence": precedence,
12441263 "prefix": prefix,
1264+ "PrimitiveKind": primitiveKind,
12451265 "print": print,
12461266 "printf": printf,
12471267 "printMembers": printMembers,
@@ -1276,8 +1296,11 @@ class TopLevel {
12761296 "Self": self,
12771297 "self": topLevelSelf,
12781298 "Sendable": sendable,
1299+ "SerialDescriptor": serialDescriptor,
1300+ "Serializable": serializable,
12791301 "serialize": serialize,
12801302 "SerializerProvider": serializerProvider,
1303+ "SerialName": serialName,
12811304 "set": topLevelSet,
12821305 "short": short,
12831306 "signed": signed,
@@ -1330,6 +1353,7 @@ class TopLevel {
13301353 "unowned": unowned,
13311354 "unsafe": unsafe,
13321355 "unsigned": unsigned,
1356+ "UseSerializers": useSerializers,
13331357 "ushort": ushort,
13341358 "using": using,
13351359 "Utf8JsonReader": utf8JsonReader,
@@ -2682,6 +2706,16 @@ class JsonWriter {
26822706 };
26832707 }
26842708
2709+class KSerializer {
2710+ KSerializer();
2711+
2712+ factory KSerializer.fromJson(Map<String, dynamic> json) => KSerializer(
2713+ );
2714+
2715+ Map<String, dynamic> toJson() => {
2716+ };
2717+}
2718+
26852719 class Lambda {
26862720 Lambda();
26872721
@@ -3162,6 +3196,16 @@ class Prefix {
31623196 };
31633197 }
31643198
3199+class PrimitiveKind {
3200+ PrimitiveKind();
3201+
3202+ factory PrimitiveKind.fromJson(Map<String, dynamic> json) => PrimitiveKind(
3203+ );
3204+
3205+ Map<String, dynamic> toJson() => {
3206+ };
3207+}
3208+
31653209 class Print {
31663210 Print();
31673211
@@ -3512,6 +3556,36 @@ class Sendable {
35123556 };
35133557 }
35143558
3559+class SerialDescriptor {
3560+ SerialDescriptor();
3561+
3562+ factory SerialDescriptor.fromJson(Map<String, dynamic> json) => SerialDescriptor(
3563+ );
3564+
3565+ Map<String, dynamic> toJson() => {
3566+ };
3567+}
3568+
3569+class SerialName {
3570+ SerialName();
3571+
3572+ factory SerialName.fromJson(Map<String, dynamic> json) => SerialName(
3573+ );
3574+
3575+ Map<String, dynamic> toJson() => {
3576+ };
3577+}
3578+
3579+class Serializable {
3580+ Serializable();
3581+
3582+ factory Serializable.fromJson(Map<String, dynamic> json) => Serializable(
3583+ );
3584+
3585+ Map<String, dynamic> toJson() => {
3586+ };
3587+}
3588+
35153589 class Serialize {
35163590 Serialize();
35173591
@@ -4532,6 +4606,16 @@ class Unsigned {
45324606 };
45334607 }
45344608
4609+class UseSerializers {
4610+ UseSerializers();
4611+
4612+ factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers(
4613+ );
4614+
4615+ Map<String, dynamic> toJson() => {
4616+ };
4617+}
4618+
45354619 class Ushort {
45364620 Ushort();
Mschema-elixirdefault / QuickType.ex+265 −1
@@ -4645,6 +4645,35 @@ defmodule JSONWriter do
46454645 end
46464646 end
46474647
4648+defmodule KSerializer do
4649+ defstruct []
4650+
4651+ @type t :: %__MODULE__{
4652+ }
4653+
4654+ def from_map(m) when is_map(m) do
4655+ %KSerializer{
4656+ }
4657+ end
4658+
4659+ def from_json(json) do
4660+ json
4661+ |> Jason.decode!()
4662+ |> from_map()
4663+ end
4664+
4665+ def to_map(_struct) do
4666+ %{
4667+ }
4668+ end
4669+
4670+ def to_json(struct) do
4671+ struct
4672+ |> to_map()
4673+ |> Jason.encode!()
4674+ end
4675+end
4676+
46484677 defmodule Lambda do
46494678 defstruct []
46504679
@@ -6066,6 +6095,35 @@ defmodule Prefix do
60666095 end
60676096 end
60686097
6098+defmodule PrimitiveKind do
6099+ defstruct []
6100+
6101+ @type t :: %__MODULE__{
6102+ }
6103+
6104+ def from_map(m) when is_map(m) do
6105+ %PrimitiveKind{
6106+ }
6107+ end
6108+
6109+ def from_json(json) do
6110+ json
6111+ |> Jason.decode!()
6112+ |> from_map()
6113+ end
6114+
6115+ def to_map(_struct) do
6116+ %{
6117+ }
6118+ end
6119+
6120+ def to_json(struct) do
6121+ struct
6122+ |> to_map()
6123+ |> Jason.encode!()
6124+ end
6125+end
6126+
60696127 defmodule Print do
60706128 defstruct []
60716129
@@ -6994,6 +7052,93 @@ defmodule Sendable do
69947052 end
69957053 end
69967054
7055+defmodule SerialDescriptor do
7056+ defstruct []
7057+
7058+ @type t :: %__MODULE__{
7059+ }
7060+
7061+ def from_map(m) when is_map(m) do
7062+ %SerialDescriptor{
7063+ }
7064+ end
7065+
7066+ def from_json(json) do
7067+ json
7068+ |> Jason.decode!()
7069+ |> from_map()
7070+ end
7071+
7072+ def to_map(_struct) do
7073+ %{
7074+ }
7075+ end
7076+
7077+ def to_json(struct) do
7078+ struct
7079+ |> to_map()
7080+ |> Jason.encode!()
7081+ end
7082+end
7083+
7084+defmodule SerialName do
7085+ defstruct []
7086+
7087+ @type t :: %__MODULE__{
7088+ }
7089+
7090+ def from_map(m) when is_map(m) do
7091+ %SerialName{
7092+ }
7093+ end
7094+
7095+ def from_json(json) do
7096+ json
7097+ |> Jason.decode!()
7098+ |> from_map()
7099+ end
7100+
7101+ def to_map(_struct) do
7102+ %{
7103+ }
7104+ end
7105+
7106+ def to_json(struct) do
7107+ struct
7108+ |> to_map()
7109+ |> Jason.encode!()
7110+ end
7111+end
7112+
7113+defmodule Serializable do
7114+ defstruct []
7115+
7116+ @type t :: %__MODULE__{
7117+ }
7118+
7119+ def from_map(m) when is_map(m) do
7120+ %Serializable{
7121+ }
7122+ end
7123+
7124+ def from_json(json) do
7125+ json
7126+ |> Jason.decode!()
7127+ |> from_map()
7128+ end
7129+
7130+ def to_map(_struct) do
7131+ %{
7132+ }
7133+ end
7134+
7135+ def to_json(struct) do
7136+ struct
7137+ |> to_map()
7138+ |> Jason.encode!()
7139+ end
7140+end
7141+
69977142 defmodule Serialize do
69987143 defstruct []
69997144
@@ -9082,6 +9227,35 @@ defmodule Unsigned do
90829227 end
90839228 end
90849229
9230+defmodule UseSerializers do
9231+ defstruct []
9232+
9233+ @type t :: %__MODULE__{
9234+ }
9235+
9236+ def from_map(m) when is_map(m) do
9237+ %UseSerializers{
9238+ }
9239+ end
9240+
9241+ def from_json(json) do
9242+ json
9243+ |> Jason.decode!()
9244+ |> from_map()
9245+ end
9246+
9247+ def to_map(_struct) do
9248+ %{
9249+ }
9250+ end
9251+
9252+ def to_json(struct) do
9253+ struct
9254+ |> to_map()
9255+ |> Jason.encode!()
9256+ end
9257+end
9258+
90859259 defmodule Ushort do
90869260 defstruct []
90879261
@@ -9634,7 +9808,7 @@ defmodule Yield do
96349808 end
96359809
96369810 defmodule TopLevel do
9637- defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
9811+ defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :k_serializer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
96389812
96399813 @type t :: %__MODULE__{
96409814 empty: Empty.t() | float() | nil,
@@ -9809,6 +9983,7 @@ defmodule TopLevel do
98099983 json_parser: JSONParser.t() | float() | nil,
98109984 json_reader: JSONReader.t() | float() | nil,
98119985 json_token_type: JSONTokenType.t() | float() | nil,
9986+ k_serializer: KSerializer.t() | float() | nil,
98129987 lambda: Lambda.t() | float() | nil,
98139988 lazy: Lazy.t() | float() | nil,
98149989 left: Left.t() | float() | nil,
@@ -9863,6 +10038,7 @@ defmodule TopLevel do
986310038 postfix: Postfix.t() | float() | nil,
986410039 precedence: Precedence.t() | float() | nil,
986510040 prefix: Prefix.t() | float() | nil,
10041+ primitive_kind: PrimitiveKind.t() | float() | nil,
986610042 print: Print.t() | float() | nil,
986710043 printf: Printf.t() | float() | nil,
986810044 print_members: PrintMembers.t() | float() | nil,
@@ -9897,8 +10073,11 @@ defmodule TopLevel do
989710073 self: Self.t() | float() | nil,
989810074 top_level_self: SelfClass.t() | float() | nil,
989910075 sendable: Sendable.t() | float() | nil,
10076+ serial_descriptor: SerialDescriptor.t() | float() | nil,
10077+ serializable: Serializable.t() | float() | nil,
990010078 serialize: Serialize.t() | float() | nil,
990110079 serializer_provider: SerializerProvider.t() | float() | nil,
10080+ serial_name: SerialName.t() | float() | nil,
990210081 set: SetClass.t() | float() | nil,
990310082 short: Short.t() | float() | nil,
990410083 signed: Signed.t() | float() | nil,
@@ -9951,6 +10130,7 @@ defmodule TopLevel do
995110130 unowned: Unowned.t() | float() | nil,
995210131 unsafe: Unsafe.t() | float() | nil,
995310132 unsigned: Unsigned.t() | float() | nil,
10133+ use_serializers: UseSerializers.t() | float() | nil,
995410134 ushort: Ushort.t() | float() | nil,
995510135 using: Using.t() | float() | nil,
995610136 utf8_json_reader: Utf8JSONReader.t() | float() | nil,
@@ -12032,6 +12212,18 @@ defmodule TopLevel do
1203212212 def encode_json_token_type(value) when is_nil(value), do: value
1203312213 def encode_json_token_type(_), do: {:error, "Unexpected type when encoding TopLevel.json_token_type"}
1203412214
12215+ def decode_k_serializer(%{} = value), do: KSerializer.from_map(value)
12216+ def decode_k_serializer(value) when is_float(value), do: value
12217+ def decode_k_serializer(value) when is_integer(value), do: value
12218+ def decode_k_serializer(value) when is_nil(value), do: value
12219+ def decode_k_serializer(_), do: {:error, "Unexpected type when decoding TopLevel.k_serializer"}
12220+
12221+ def encode_k_serializer(%KSerializer{} = value), do: KSerializer.to_map(value)
12222+ def encode_k_serializer(value) when is_float(value), do: value
12223+ def encode_k_serializer(value) when is_integer(value), do: value
12224+ def encode_k_serializer(value) when is_nil(value), do: value
12225+ def encode_k_serializer(_), do: {:error, "Unexpected type when encoding TopLevel.k_serializer"}
12226+
1203512227 def decode_lambda(%{} = value), do: Lambda.from_map(value)
1203612228 def decode_lambda(value) when is_float(value), do: value
1203712229 def decode_lambda(value) when is_integer(value), do: value
@@ -12680,6 +12872,18 @@ defmodule TopLevel do
1268012872 def encode_prefix(value) when is_nil(value), do: value
1268112873 def encode_prefix(_), do: {:error, "Unexpected type when encoding TopLevel.prefix"}
1268212874
12875+ def decode_primitive_kind(%{} = value), do: PrimitiveKind.from_map(value)
12876+ def decode_primitive_kind(value) when is_float(value), do: value
12877+ def decode_primitive_kind(value) when is_integer(value), do: value
12878+ def decode_primitive_kind(value) when is_nil(value), do: value
12879+ def decode_primitive_kind(_), do: {:error, "Unexpected type when decoding TopLevel.primitive_kind"}
12880+
12881+ def encode_primitive_kind(%PrimitiveKind{} = value), do: PrimitiveKind.to_map(value)
12882+ def encode_primitive_kind(value) when is_float(value), do: value
12883+ def encode_primitive_kind(value) when is_integer(value), do: value
12884+ def encode_primitive_kind(value) when is_nil(value), do: value
12885+ def encode_primitive_kind(_), do: {:error, "Unexpected type when encoding TopLevel.primitive_kind"}
12886+
1268312887 def decode_print(%{} = value), do: Print.from_map(value)
1268412888 def decode_print(value) when is_float(value), do: value
1268512889 def decode_print(value) when is_integer(value), do: value
@@ -13088,6 +13292,30 @@ defmodule TopLevel do
1308813292 def encode_sendable(value) when is_nil(value), do: value
1308913293 def encode_sendable(_), do: {:error, "Unexpected type when encoding TopLevel.sendable"}
1309013294
13295+ def decode_serial_descriptor(%{} = value), do: SerialDescriptor.from_map(value)
13296+ def decode_serial_descriptor(value) when is_float(value), do: value
13297+ def decode_serial_descriptor(value) when is_integer(value), do: value
13298+ def decode_serial_descriptor(value) when is_nil(value), do: value
13299+ def decode_serial_descriptor(_), do: {:error, "Unexpected type when decoding TopLevel.serial_descriptor"}
13300+
13301+ def encode_serial_descriptor(%SerialDescriptor{} = value), do: SerialDescriptor.to_map(value)
13302+ def encode_serial_descriptor(value) when is_float(value), do: value
13303+ def encode_serial_descriptor(value) when is_integer(value), do: value
13304+ def encode_serial_descriptor(value) when is_nil(value), do: value
13305+ def encode_serial_descriptor(_), do: {:error, "Unexpected type when encoding TopLevel.serial_descriptor"}
13306+
13307+ def decode_serializable(%{} = value), do: Serializable.from_map(value)
13308+ def decode_serializable(value) when is_float(value), do: value
13309+ def decode_serializable(value) when is_integer(value), do: value
13310+ def decode_serializable(value) when is_nil(value), do: value
13311+ def decode_serializable(_), do: {:error, "Unexpected type when decoding TopLevel.serializable"}
13312+
13313+ def encode_serializable(%Serializable{} = value), do: Serializable.to_map(value)
13314+ def encode_serializable(value) when is_float(value), do: value
13315+ def encode_serializable(value) when is_integer(value), do: value
13316+ def encode_serializable(value) when is_nil(value), do: value
13317+ def encode_serializable(_), do: {:error, "Unexpected type when encoding TopLevel.serializable"}
13318+
1309113319 def decode_serialize(%{} = value), do: Serialize.from_map(value)
1309213320 def decode_serialize(value) when is_float(value), do: value
1309313321 def decode_serialize(value) when is_integer(value), do: value
@@ -13112,6 +13340,18 @@ defmodule TopLevel do
1311213340 def encode_serializer_provider(value) when is_nil(value), do: value
1311313341 def encode_serializer_provider(_), do: {:error, "Unexpected type when encoding TopLevel.serializer_provider"}
1311413342
13343+ def decode_serial_name(%{} = value), do: SerialName.from_map(value)
13344+ def decode_serial_name(value) when is_float(value), do: value
13345+ def decode_serial_name(value) when is_integer(value), do: value
13346+ def decode_serial_name(value) when is_nil(value), do: value
13347+ def decode_serial_name(_), do: {:error, "Unexpected type when decoding TopLevel.serial_name"}
13348+
13349+ def encode_serial_name(%SerialName{} = value), do: SerialName.to_map(value)
13350+ def encode_serial_name(value) when is_float(value), do: value
13351+ def encode_serial_name(value) when is_integer(value), do: value
13352+ def encode_serial_name(value) when is_nil(value), do: value
13353+ def encode_serial_name(_), do: {:error, "Unexpected type when encoding TopLevel.serial_name"}
13354+
1311513355 def decode_set(%{} = value), do: SetClass.from_map(value)
1311613356 def decode_set(value) when is_float(value), do: value
1311713357 def decode_set(value) when is_integer(value), do: value
@@ -13736,6 +13976,18 @@ defmodule TopLevel do
1373613976 def encode_unsigned(value) when is_nil(value), do: value
1373713977 def encode_unsigned(_), do: {:error, "Unexpected type when encoding TopLevel.unsigned"}
1373813978
13979+ def decode_use_serializers(%{} = value), do: UseSerializers.from_map(value)
13980+ def decode_use_serializers(value) when is_float(value), do: value
13981+ def decode_use_serializers(value) when is_integer(value), do: value
13982+ def decode_use_serializers(value) when is_nil(value), do: value
13983+ def decode_use_serializers(_), do: {:error, "Unexpected type when decoding TopLevel.use_serializers"}
13984+
13985+ def encode_use_serializers(%UseSerializers{} = value), do: UseSerializers.to_map(value)
13986+ def encode_use_serializers(value) when is_float(value), do: value
13987+ def encode_use_serializers(value) when is_integer(value), do: value
13988+ def encode_use_serializers(value) when is_nil(value), do: value
13989+ def encode_use_serializers(_), do: {:error, "Unexpected type when encoding TopLevel.use_serializers"}
13990+
1373913991 def decode_ushort(%{} = value), do: Ushort.from_map(value)
1374013992 def decode_ushort(value) when is_float(value), do: value
1374113993 def decode_ushort(value) when is_integer(value), do: value
@@ -14138,6 +14390,7 @@ defmodule TopLevel do
1413814390 json_parser: decode_json_parser(m["JsonParser"]),
1413914391 json_reader: decode_json_reader(m["JsonReader"]),
1414014392 json_token_type: decode_json_token_type(m["JsonTokenType"]),
14393+ k_serializer: decode_k_serializer(m["KSerializer"]),
1414114394 lambda: decode_lambda(m["lambda"]),
1414214395 lazy: decode_lazy(m["lazy"]),
1414314396 left: decode_left(m["left"]),
@@ -14192,6 +14445,7 @@ defmodule TopLevel do
1419214445 postfix: decode_postfix(m["postfix"]),
1419314446 precedence: decode_precedence(m["precedence"]),
1419414447 prefix: decode_prefix(m["prefix"]),
14448+ primitive_kind: decode_primitive_kind(m["PrimitiveKind"]),
1419514449 print: decode_print(m["print"]),
1419614450 printf: decode_printf(m["printf"]),
1419714451 print_members: decode_print_members(m["printMembers"]),
@@ -14226,8 +14480,11 @@ defmodule TopLevel do
1422614480 self: decode_self(m["Self"]),
1422714481 top_level_self: decode_top_level_self(m["self"]),
1422814482 sendable: decode_sendable(m["Sendable"]),
14483+ serial_descriptor: decode_serial_descriptor(m["SerialDescriptor"]),
14484+ serializable: decode_serializable(m["Serializable"]),
1422914485 serialize: decode_serialize(m["serialize"]),
1423014486 serializer_provider: decode_serializer_provider(m["SerializerProvider"]),
14487+ serial_name: decode_serial_name(m["SerialName"]),
1423114488 set: decode_set(m["set"]),
1423214489 short: decode_short(m["short"]),
1423314490 signed: decode_signed(m["signed"]),
@@ -14280,6 +14537,7 @@ defmodule TopLevel do
1428014537 unowned: decode_unowned(m["unowned"]),
1428114538 unsafe: decode_unsafe(m["unsafe"]),
1428214539 unsigned: decode_unsigned(m["unsigned"]),
14540+ use_serializers: decode_use_serializers(m["UseSerializers"]),
1428314541 ushort: decode_ushort(m["ushort"]),
1428414542 using: decode_using(m["using"]),
1428514543 utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]),
@@ -14482,6 +14740,7 @@ defmodule TopLevel do
1448214740 "JsonParser" => encode_json_parser(struct.json_parser),
1448314741 "JsonReader" => encode_json_reader(struct.json_reader),
1448414742 "JsonTokenType" => encode_json_token_type(struct.json_token_type),
14743+ "KSerializer" => encode_k_serializer(struct.k_serializer),
1448514744 "lambda" => encode_lambda(struct.lambda),
1448614745 "lazy" => encode_lazy(struct.lazy),
1448714746 "left" => encode_left(struct.left),
@@ -14536,6 +14795,7 @@ defmodule TopLevel do
1453614795 "postfix" => encode_postfix(struct.postfix),
1453714796 "precedence" => encode_precedence(struct.precedence),
1453814797 "prefix" => encode_prefix(struct.prefix),
14798+ "PrimitiveKind" => encode_primitive_kind(struct.primitive_kind),
1453914799 "print" => encode_print(struct.print),
1454014800 "printf" => encode_printf(struct.printf),
1454114801 "printMembers" => encode_print_members(struct.print_members),
@@ -14570,8 +14830,11 @@ defmodule TopLevel do
1457014830 "Self" => encode_self(struct.self),
1457114831 "self" => encode_top_level_self(struct.top_level_self),
1457214832 "Sendable" => encode_sendable(struct.sendable),
14833+ "SerialDescriptor" => encode_serial_descriptor(struct.serial_descriptor),
14834+ "Serializable" => encode_serializable(struct.serializable),
1457314835 "serialize" => encode_serialize(struct.serialize),
1457414836 "SerializerProvider" => encode_serializer_provider(struct.serializer_provider),
14837+ "SerialName" => encode_serial_name(struct.serial_name),
1457514838 "set" => encode_set(struct.set),
1457614839 "short" => encode_short(struct.short),
1457714840 "signed" => encode_signed(struct.signed),
@@ -14624,6 +14887,7 @@ defmodule TopLevel do
1462414887 "unowned" => encode_unowned(struct.unowned),
1462514888 "unsafe" => encode_unsafe(struct.unsafe),
1462614889 "unsigned" => encode_unsigned(struct.unsigned),
14890+ "UseSerializers" => encode_use_serializers(struct.use_serializers),
1462714891 "ushort" => encode_ushort(struct.ushort),
1462814892 "using" => encode_using(struct.using),
1462914893 "Utf8JsonReader" => encode_utf8_json_reader(struct.utf8_json_reader),
Mschema-elmdefault / QuickType.elm+210 −0
@@ -169,6 +169,7 @@ module QuickType exposing
169169 , JSONToken
170170 , JSONTokenType
171171 , JSONWriter
172+ , KSerializer
172173 , Lambda
173174 , Lazy
174175 , Left
@@ -217,6 +218,7 @@ module QuickType exposing
217218 , Postfix
218219 , Precedence
219220 , Prefix
221+ , PrimitiveKind
220222 , Print
221223 , PrintMembers
222224 , Printf
@@ -280,6 +282,9 @@ module QuickType exposing
280282 , Select
281283 , Self
282284 , Sendable
285+ , SerialDescriptor
286+ , SerialName
287+ , Serializable
283288 , Serialize
284289 , SerializerProvider
285290 , Set
@@ -329,6 +334,7 @@ module QuickType exposing
329334 , Unowned
330335 , Unsafe
331336 , Unsigned
337+ , UseSerializers
332338 , Ushort
333339 , Using
334340 , Utf8JSONReader
@@ -501,6 +507,7 @@ module QuickType exposing
501507 , UnionJSONToken(..)
502508 , UnionJSONTokenType(..)
503509 , UnionJSONWriter(..)
510+ , UnionKSerializer(..)
504511 , UnionLambda(..)
505512 , UnionLazy(..)
506513 , UnionLeft(..)
@@ -549,6 +556,7 @@ module QuickType exposing
549556 , UnionPostfix(..)
550557 , UnionPrecedence(..)
551558 , UnionPrefix(..)
559+ , UnionPrimitiveKind(..)
552560 , UnionPrint(..)
553561 , UnionPrintMembers(..)
554562 , UnionPrintf(..)
@@ -612,6 +620,9 @@ module QuickType exposing
612620 , UnionSelect(..)
613621 , UnionSelf(..)
614622 , UnionSendable(..)
623+ , UnionSerialDescriptor(..)
624+ , UnionSerialName(..)
625+ , UnionSerializable(..)
615626 , UnionSerialize(..)
616627 , UnionSerializerProvider(..)
617628 , UnionSet(..)
@@ -661,6 +672,7 @@ module QuickType exposing
661672 , UnionUnowned(..)
662673 , UnionUnsafe(..)
663674 , UnionUnsigned(..)
675+ , UnionUseSerializers(..)
664676 , UnionUshort(..)
665677 , UnionUsing(..)
666678 , UnionUtf8JSONReader(..)
@@ -859,6 +871,7 @@ type alias QuickType =
859871 , jsonParser : Maybe UnionJSONParser
860872 , jsonReader : Maybe UnionJSONReader
861873 , jsonTokenType : Maybe UnionJSONTokenType
874+ , kSerializer : Maybe UnionKSerializer
862875 , lambda : Maybe UnionLambda
863876 , lazy : Maybe UnionLazy
864877 , left : Maybe UnionLeft
@@ -913,6 +926,7 @@ type alias QuickType =
913926 , postfix : Maybe UnionPostfix
914927 , precedence : Maybe UnionPrecedence
915928 , prefix : Maybe UnionPrefix
929+ , primitiveKind : Maybe UnionPrimitiveKind
916930 , print : Maybe UnionPrint
917931 , printf : Maybe UnionPrintf
918932 , printMembers : Maybe UnionPrintMembers
@@ -947,8 +961,11 @@ type alias QuickType =
947961 , self : Maybe UnionSelf
948962 , quickTypeSelf : Maybe UnionSelfUnion
949963 , sendable : Maybe UnionSendable
964+ , serialDescriptor : Maybe UnionSerialDescriptor
965+ , serializable : Maybe UnionSerializable
950966 , serialize : Maybe UnionSerialize
951967 , serializerProvider : Maybe UnionSerializerProvider
968+ , serialName : Maybe UnionSerialName
952969 , set : Maybe UnionSet
953970 , short : Maybe UnionShort
954971 , signed : Maybe UnionSigned
@@ -1001,6 +1018,7 @@ type alias QuickType =
10011018 , unowned : Maybe UnionUnowned
10021019 , unsafe : Maybe UnionUnsafe
10031020 , unsigned : Maybe UnionUnsigned
1021+ , useSerializers : Maybe UnionUseSerializers
10041022 , ushort : Maybe UnionUshort
10051023 , using : Maybe UnionUsing
10061024 , utf8JSONReader : Maybe UnionUtf8JSONReader
@@ -2254,6 +2272,14 @@ type alias JSONWriter =
22542272 {
22552273 }
22562274
2275+type UnionKSerializer
2276+ = DoubleInUnionKSerializer Float
2277+ | KSerializerInUnionKSerializer KSerializer
2278+
2279+type alias KSerializer =
2280+ {
2281+ }
2282+
22572283 type UnionLambda
22582284 = DoubleInUnionLambda Float
22592285 | LambdaInUnionLambda Lambda
@@ -2638,6 +2664,14 @@ type alias Prefix =
26382664 {
26392665 }
26402666
2667+type UnionPrimitiveKind
2668+ = DoubleInUnionPrimitiveKind Float
2669+ | PrimitiveKindInUnionPrimitiveKind PrimitiveKind
2670+
2671+type alias PrimitiveKind =
2672+ {
2673+ }
2674+
26412675 type UnionPrint
26422676 = DoubleInUnionPrint Float
26432677 | PrintInUnionPrint Print
@@ -3142,6 +3176,30 @@ type alias Sendable =
31423176 {
31433177 }
31443178
3179+type UnionSerialDescriptor
3180+ = DoubleInUnionSerialDescriptor Float
3181+ | SerialDescriptorInUnionSerialDescriptor SerialDescriptor
3182+
3183+type alias SerialDescriptor =
3184+ {
3185+ }
3186+
3187+type UnionSerialName
3188+ = DoubleInUnionSerialName Float
3189+ | SerialNameInUnionSerialName SerialName
3190+
3191+type alias SerialName =
3192+ {
3193+ }
3194+
3195+type UnionSerializable
3196+ = DoubleInUnionSerializable Float
3197+ | SerializableInUnionSerializable Serializable
3198+
3199+type alias Serializable =
3200+ {
3201+ }
3202+
31453203 type UnionSerialize
31463204 = DoubleInUnionSerialize Float
31473205 | SerializeInUnionSerialize Serialize
@@ -3534,6 +3592,14 @@ type alias Unsigned =
35343592 {
35353593 }
35363594
3595+type UnionUseSerializers
3596+ = DoubleInUnionUseSerializers Float
3597+ | UseSerializersInUnionUseSerializers UseSerializers
3598+
3599+type alias UseSerializers =
3600+ {
3601+ }
3602+
35373603 type UnionUshort
35383604 = DoubleInUnionUshort Float
35393605 | UshortInUnionUshort Ushort
@@ -3864,6 +3930,7 @@ quickType =
38643930 |> Jpipe.custom (optionalField "JsonParser" (Jdec.map Just unionJSONParser) Nothing)
38653931 |> Jpipe.custom (optionalField "JsonReader" (Jdec.map Just unionJSONReader) Nothing)
38663932 |> Jpipe.custom (optionalField "JsonTokenType" (Jdec.map Just unionJSONTokenType) Nothing)
3933+ |> Jpipe.custom (optionalField "KSerializer" (Jdec.map Just unionKSerializer) Nothing)
38673934 |> Jpipe.custom (optionalField "lambda" (Jdec.map Just unionLambda) Nothing)
38683935 |> Jpipe.custom (optionalField "lazy" (Jdec.map Just unionLazy) Nothing)
38693936 |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing)
@@ -3918,6 +3985,7 @@ quickType =
39183985 |> Jpipe.custom (optionalField "postfix" (Jdec.map Just unionPostfix) Nothing)
39193986 |> Jpipe.custom (optionalField "precedence" (Jdec.map Just unionPrecedence) Nothing)
39203987 |> Jpipe.custom (optionalField "prefix" (Jdec.map Just unionPrefix) Nothing)
3988+ |> Jpipe.custom (optionalField "PrimitiveKind" (Jdec.map Just unionPrimitiveKind) Nothing)
39213989 |> Jpipe.custom (optionalField "print" (Jdec.map Just unionPrint) Nothing)
39223990 |> Jpipe.custom (optionalField "printf" (Jdec.map Just unionPrintf) Nothing)
39233991 |> Jpipe.custom (optionalField "printMembers" (Jdec.map Just unionPrintMembers) Nothing)
@@ -3952,8 +4020,11 @@ quickType =
39524020 |> Jpipe.custom (optionalField "Self" (Jdec.map Just unionSelf) Nothing)
39534021 |> Jpipe.custom (optionalField "self" (Jdec.map Just unionSelfUnion) Nothing)
39544022 |> Jpipe.custom (optionalField "Sendable" (Jdec.map Just unionSendable) Nothing)
4023+ |> Jpipe.custom (optionalField "SerialDescriptor" (Jdec.map Just unionSerialDescriptor) Nothing)
4024+ |> Jpipe.custom (optionalField "Serializable" (Jdec.map Just unionSerializable) Nothing)
39554025 |> Jpipe.custom (optionalField "serialize" (Jdec.map Just unionSerialize) Nothing)
39564026 |> Jpipe.custom (optionalField "SerializerProvider" (Jdec.map Just unionSerializerProvider) Nothing)
4027+ |> Jpipe.custom (optionalField "SerialName" (Jdec.map Just unionSerialName) Nothing)
39574028 |> Jpipe.custom (optionalField "set" (Jdec.map Just unionSet) Nothing)
39584029 |> Jpipe.custom (optionalField "short" (Jdec.map Just unionShort) Nothing)
39594030 |> Jpipe.custom (optionalField "signed" (Jdec.map Just unionSigned) Nothing)
@@ -4006,6 +4077,7 @@ quickType =
40064077 |> Jpipe.custom (optionalField "unowned" (Jdec.map Just unionUnowned) Nothing)
40074078 |> Jpipe.custom (optionalField "unsafe" (Jdec.map Just unionUnsafe) Nothing)
40084079 |> Jpipe.custom (optionalField "unsigned" (Jdec.map Just unionUnsigned) Nothing)
4080+ |> Jpipe.custom (optionalField "UseSerializers" (Jdec.map Just unionUseSerializers) Nothing)
40094081 |> Jpipe.custom (optionalField "ushort" (Jdec.map Just unionUshort) Nothing)
40104082 |> Jpipe.custom (optionalField "using" (Jdec.map Just unionUsing) Nothing)
40114083 |> Jpipe.custom (optionalField "Utf8JsonReader" (Jdec.map Just unionUtf8JSONReader) Nothing)
@@ -4201,6 +4273,7 @@ encodeQuickType x =
42014273 , ("JsonParser", makeNullableEncoder encodeUnionJSONParser x.jsonParser)
42024274 , ("JsonReader", makeNullableEncoder encodeUnionJSONReader x.jsonReader)
42034275 , ("JsonTokenType", makeNullableEncoder encodeUnionJSONTokenType x.jsonTokenType)
4276+ , ("KSerializer", makeNullableEncoder encodeUnionKSerializer x.kSerializer)
42044277 , ("lambda", makeNullableEncoder encodeUnionLambda x.lambda)
42054278 , ("lazy", makeNullableEncoder encodeUnionLazy x.lazy)
42064279 , ("left", makeNullableEncoder encodeUnionLeft x.left)
@@ -4255,6 +4328,7 @@ encodeQuickType x =
42554328 , ("postfix", makeNullableEncoder encodeUnionPostfix x.postfix)
42564329 , ("precedence", makeNullableEncoder encodeUnionPrecedence x.precedence)
42574330 , ("prefix", makeNullableEncoder encodeUnionPrefix x.prefix)
4331+ , ("PrimitiveKind", makeNullableEncoder encodeUnionPrimitiveKind x.primitiveKind)
42584332 , ("print", makeNullableEncoder encodeUnionPrint x.print)
42594333 , ("printf", makeNullableEncoder encodeUnionPrintf x.printf)
42604334 , ("printMembers", makeNullableEncoder encodeUnionPrintMembers x.printMembers)
@@ -4289,8 +4363,11 @@ encodeQuickType x =
42894363 , ("Self", makeNullableEncoder encodeUnionSelf x.self)
42904364 , ("self", makeNullableEncoder encodeUnionSelfUnion x.quickTypeSelf)
42914365 , ("Sendable", makeNullableEncoder encodeUnionSendable x.sendable)
4366+ , ("SerialDescriptor", makeNullableEncoder encodeUnionSerialDescriptor x.serialDescriptor)
4367+ , ("Serializable", makeNullableEncoder encodeUnionSerializable x.serializable)
42924368 , ("serialize", makeNullableEncoder encodeUnionSerialize x.serialize)
42934369 , ("SerializerProvider", makeNullableEncoder encodeUnionSerializerProvider x.serializerProvider)
4370+ , ("SerialName", makeNullableEncoder encodeUnionSerialName x.serialName)
42944371 , ("set", makeNullableEncoder encodeUnionSet x.set)
42954372 , ("short", makeNullableEncoder encodeUnionShort x.short)
42964373 , ("signed", makeNullableEncoder encodeUnionSigned x.signed)
@@ -4343,6 +4420,7 @@ encodeQuickType x =
43434420 , ("unowned", makeNullableEncoder encodeUnionUnowned x.unowned)
43444421 , ("unsafe", makeNullableEncoder encodeUnionUnsafe x.unsafe)
43454422 , ("unsigned", makeNullableEncoder encodeUnionUnsigned x.unsigned)
4423+ , ("UseSerializers", makeNullableEncoder encodeUnionUseSerializers x.useSerializers)
43464424 , ("ushort", makeNullableEncoder encodeUnionUshort x.ushort)
43474425 , ("using", makeNullableEncoder encodeUnionUsing x.using)
43484426 , ("Utf8JsonReader", makeNullableEncoder encodeUnionUtf8JSONReader x.utf8JSONReader)
@@ -7752,6 +7830,28 @@ encodeJSONWriter x =
77527830 [
77537831 ]
77547832
7833+unionKSerializer : Jdec.Decoder UnionKSerializer
7834+unionKSerializer =
7835+ Jdec.oneOf
7836+ [ Jdec.map DoubleInUnionKSerializer Jdec.float
7837+ , Jdec.map KSerializerInUnionKSerializer kSerializer
7838+ ]
7839+
7840+encodeUnionKSerializer : UnionKSerializer -> Jenc.Value
7841+encodeUnionKSerializer x = case x of
7842+ DoubleInUnionKSerializer y -> Jenc.float y
7843+ KSerializerInUnionKSerializer y -> encodeKSerializer y
7844+
7845+kSerializer : Jdec.Decoder KSerializer
7846+kSerializer =
7847+ Jdec.dict Jdec.value |> Jdec.map (\_ -> KSerializer)
7848+
7849+encodeKSerializer : KSerializer -> Jenc.Value
7850+encodeKSerializer x =
7851+ Jenc.object
7852+ [
7853+ ]
7854+
77557855 unionLambda : Jdec.Decoder UnionLambda
77567856 unionLambda =
77577857 Jdec.oneOf
@@ -8808,6 +8908,28 @@ encodePrefix x =
88088908 [
88098909 ]
88108910
8911+unionPrimitiveKind : Jdec.Decoder UnionPrimitiveKind
8912+unionPrimitiveKind =
8913+ Jdec.oneOf
8914+ [ Jdec.map DoubleInUnionPrimitiveKind Jdec.float
8915+ , Jdec.map PrimitiveKindInUnionPrimitiveKind primitiveKind
8916+ ]
8917+
8918+encodeUnionPrimitiveKind : UnionPrimitiveKind -> Jenc.Value
8919+encodeUnionPrimitiveKind x = case x of
8920+ DoubleInUnionPrimitiveKind y -> Jenc.float y
8921+ PrimitiveKindInUnionPrimitiveKind y -> encodePrimitiveKind y
8922+
8923+primitiveKind : Jdec.Decoder PrimitiveKind
8924+primitiveKind =
8925+ Jdec.dict Jdec.value |> Jdec.map (\_ -> PrimitiveKind)
8926+
8927+encodePrimitiveKind : PrimitiveKind -> Jenc.Value
8928+encodePrimitiveKind x =
8929+ Jenc.object
8930+ [
8931+ ]
8932+
88118933 unionPrint : Jdec.Decoder UnionPrint
88128934 unionPrint =
88138935 Jdec.oneOf
@@ -10194,6 +10316,72 @@ encodeSendable x =
1019410316 [
1019510317 ]
1019610318
10319+unionSerialDescriptor : Jdec.Decoder UnionSerialDescriptor
10320+unionSerialDescriptor =
10321+ Jdec.oneOf
10322+ [ Jdec.map DoubleInUnionSerialDescriptor Jdec.float
10323+ , Jdec.map SerialDescriptorInUnionSerialDescriptor serialDescriptor
10324+ ]
10325+
10326+encodeUnionSerialDescriptor : UnionSerialDescriptor -> Jenc.Value
10327+encodeUnionSerialDescriptor x = case x of
10328+ DoubleInUnionSerialDescriptor y -> Jenc.float y
10329+ SerialDescriptorInUnionSerialDescriptor y -> encodeSerialDescriptor y
10330+
10331+serialDescriptor : Jdec.Decoder SerialDescriptor
10332+serialDescriptor =
10333+ Jdec.dict Jdec.value |> Jdec.map (\_ -> SerialDescriptor)
10334+
10335+encodeSerialDescriptor : SerialDescriptor -> Jenc.Value
10336+encodeSerialDescriptor x =
10337+ Jenc.object
10338+ [
10339+ ]
10340+
10341+unionSerialName : Jdec.Decoder UnionSerialName
10342+unionSerialName =
10343+ Jdec.oneOf
10344+ [ Jdec.map DoubleInUnionSerialName Jdec.float
10345+ , Jdec.map SerialNameInUnionSerialName serialName
10346+ ]
10347+
10348+encodeUnionSerialName : UnionSerialName -> Jenc.Value
10349+encodeUnionSerialName x = case x of
10350+ DoubleInUnionSerialName y -> Jenc.float y
10351+ SerialNameInUnionSerialName y -> encodeSerialName y
10352+
10353+serialName : Jdec.Decoder SerialName
10354+serialName =
10355+ Jdec.dict Jdec.value |> Jdec.map (\_ -> SerialName)
10356+
10357+encodeSerialName : SerialName -> Jenc.Value
10358+encodeSerialName x =
10359+ Jenc.object
10360+ [
10361+ ]
10362+
10363+unionSerializable : Jdec.Decoder UnionSerializable
10364+unionSerializable =
10365+ Jdec.oneOf
10366+ [ Jdec.map DoubleInUnionSerializable Jdec.float
10367+ , Jdec.map SerializableInUnionSerializable serializable
10368+ ]
10369+
10370+encodeUnionSerializable : UnionSerializable -> Jenc.Value
10371+encodeUnionSerializable x = case x of
10372+ DoubleInUnionSerializable y -> Jenc.float y
10373+ SerializableInUnionSerializable y -> encodeSerializable y
10374+
10375+serializable : Jdec.Decoder Serializable
10376+serializable =
10377+ Jdec.dict Jdec.value |> Jdec.map (\_ -> Serializable)
10378+
10379+encodeSerializable : Serializable -> Jenc.Value
10380+encodeSerializable x =
10381+ Jenc.object
10382+ [
10383+ ]
10384+
1019710385 unionSerialize : Jdec.Decoder UnionSerialize
1019810386 unionSerialize =
1019910387 Jdec.oneOf
@@ -11272,6 +11460,28 @@ encodeUnsigned x =
1127211460 [
1127311461 ]
1127411462
11463+unionUseSerializers : Jdec.Decoder UnionUseSerializers
11464+unionUseSerializers =
11465+ Jdec.oneOf
11466+ [ Jdec.map DoubleInUnionUseSerializers Jdec.float
11467+ , Jdec.map UseSerializersInUnionUseSerializers useSerializers
11468+ ]
11469+
11470+encodeUnionUseSerializers : UnionUseSerializers -> Jenc.Value
11471+encodeUnionUseSerializers x = case x of
11472+ DoubleInUnionUseSerializers y -> Jenc.float y
11473+ UseSerializersInUnionUseSerializers y -> encodeUseSerializers y
11474+
11475+useSerializers : Jdec.Decoder UseSerializers
11476+useSerializers =
11477+ Jdec.dict Jdec.value |> Jdec.map (\_ -> UseSerializers)
11478+
11479+encodeUseSerializers : UseSerializers -> Jenc.Value
11480+encodeUseSerializers x =
11481+ Jenc.object
11482+ [
11483+ ]
11484+
1127511485 unionUshort : Jdec.Decoder UnionUshort
1127611486 unionUshort =
1127711487 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+54 −0
@@ -182,6 +182,7 @@ export type TopLevel = {
182182 JsonParser?: UnionJSONParser;
183183 JsonReader?: UnionJSONReader;
184184 JsonTokenType?: UnionJSONTokenType;
185+ KSerializer?: UnionKSerializer;
185186 lambda?: UnionLambda;
186187 lazy?: UnionLazy;
187188 left?: UnionLeft;
@@ -236,6 +237,7 @@ export type TopLevel = {
236237 postfix?: UnionPostfix;
237238 precedence?: UnionPrecedence;
238239 prefix?: UnionPrefix;
240+ PrimitiveKind?: UnionPrimitiveKind;
239241 print?: UnionPrint;
240242 printf?: UnionPrintf;
241243 printMembers?: UnionPrintMembers;
@@ -270,8 +272,11 @@ export type TopLevel = {
270272 Self?: UnionSelf;
271273 self?: UnionSelfUnion;
272274 Sendable?: UnionSendable;
275+ SerialDescriptor?: UnionSerialDescriptor;
276+ Serializable?: UnionSerializable;
273277 serialize?: UnionSerialize;
274278 SerializerProvider?: UnionSerializerProvider;
279+ SerialName?: UnionSerialName;
275280 set?: UnionSet;
276281 short?: UnionShort;
277282 signed?: UnionSigned;
@@ -324,6 +329,7 @@ export type TopLevel = {
324329 unowned?: UnionUnowned;
325330 unsafe?: UnionUnsafe;
326331 unsigned?: UnionUnsigned;
332+ UseSerializers?: UnionUseSerializers;
327333 ushort?: UnionUshort;
328334 using?: UnionUsing;
329335 Utf8JsonReader?: UnionUtf8JSONReader;
@@ -521,6 +527,11 @@ export type UnionJSONTokenType = JSONTokenType | number;
521527 export type JSONTokenType = {
522528 };
523529
530+export type UnionKSerializer = KSerializer | number;
531+
532+export type KSerializer = {
533+};
534+
524535 export type UnionLocale = Locale | number;
525536
526537 export type Locale = {
@@ -566,6 +577,11 @@ export type UnionObjectMapper = ObjectMapper | number;
566577 export type ObjectMapper = {
567578 };
568579
580+export type UnionPrimitiveKind = PrimitiveKind | number;
581+
582+export type PrimitiveKind = {
583+};
584+
569585 export type UnionProtocol = Protocol | number;
570586
571587 export type Protocol = {
@@ -591,6 +607,21 @@ export type UnionSendable = Sendable | number;
591607 export type Sendable = {
592608 };
593609
610+export type UnionSerialDescriptor = SerialDescriptor | number;
611+
612+export type SerialDescriptor = {
613+};
614+
615+export type UnionSerialName = SerialName | number;
616+
617+export type SerialName = {
618+};
619+
620+export type UnionSerializable = Serializable | number;
621+
622+export type Serializable = {
623+};
624+
594625 export type UnionSerializerProvider = SerializerProvider | number;
595626
596627 export type SerializerProvider = {
@@ -646,6 +677,11 @@ export type UnionUUID = UUID | number;
646677 export type UUID = {
647678 };
648679
680+export type UnionUseSerializers = UseSerializers | number;
681+
682+export type UseSerializers = {
683+};
684+
649685 export type UnionUtf8JSONReader = Utf8JSONReader | number;
650686
651687 export type Utf8JSONReader = {
@@ -2364,6 +2400,7 @@ const typeMap: any = {
23642400 { json: "JsonParser", js: "JsonParser", typ: u(undefined, u(r("JSONParser"), 3.14)) },
23652401 { json: "JsonReader", js: "JsonReader", typ: u(undefined, u(r("JSONReader"), 3.14)) },
23662402 { json: "JsonTokenType", js: "JsonTokenType", typ: u(undefined, u(r("JSONTokenType"), 3.14)) },
2403+ { json: "KSerializer", js: "KSerializer", typ: u(undefined, u(r("KSerializer"), 3.14)) },
23672404 { json: "lambda", js: "lambda", typ: u(undefined, u(r("Lambda"), 3.14)) },
23682405 { json: "lazy", js: "lazy", typ: u(undefined, u(r("Lazy"), 3.14)) },
23692406 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
@@ -2418,6 +2455,7 @@ const typeMap: any = {
24182455 { json: "postfix", js: "postfix", typ: u(undefined, u(r("Postfix"), 3.14)) },
24192456 { json: "precedence", js: "precedence", typ: u(undefined, u(r("Precedence"), 3.14)) },
24202457 { json: "prefix", js: "prefix", typ: u(undefined, u(r("Prefix"), 3.14)) },
2458+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: u(undefined, u(r("PrimitiveKind"), 3.14)) },
24212459 { json: "print", js: "print", typ: u(undefined, u(r("Print"), 3.14)) },
24222460 { json: "printf", js: "printf", typ: u(undefined, u(r("Printf"), 3.14)) },
24232461 { json: "printMembers", js: "printMembers", typ: u(undefined, u(r("PrintMembers"), 3.14)) },
@@ -2452,8 +2490,11 @@ const typeMap: any = {
24522490 { json: "Self", js: "Self", typ: u(undefined, u(r("Self"), 3.14)) },
24532491 { json: "self", js: "self", typ: u(undefined, u(r("SelfClass"), 3.14)) },
24542492 { json: "Sendable", js: "Sendable", typ: u(undefined, u(r("Sendable"), 3.14)) },
2493+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: u(undefined, u(r("SerialDescriptor"), 3.14)) },
2494+ { json: "Serializable", js: "Serializable", typ: u(undefined, u(r("Serializable"), 3.14)) },
24552495 { json: "serialize", js: "serialize", typ: u(undefined, u(r("Serialize"), 3.14)) },
24562496 { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(r("SerializerProvider"), 3.14)) },
2497+ { json: "SerialName", js: "SerialName", typ: u(undefined, u(r("SerialName"), 3.14)) },
24572498 { json: "set", js: "set", typ: u(undefined, u(r("Set"), 3.14)) },
24582499 { json: "short", js: "short", typ: u(undefined, u(r("Short"), 3.14)) },
24592500 { json: "signed", js: "signed", typ: u(undefined, u(r("Signed"), 3.14)) },
@@ -2506,6 +2547,7 @@ const typeMap: any = {
25062547 { json: "unowned", js: "unowned", typ: u(undefined, u(r("Unowned"), 3.14)) },
25072548 { json: "unsafe", js: "unsafe", typ: u(undefined, u(r("Unsafe"), 3.14)) },
25082549 { json: "unsigned", js: "unsigned", typ: u(undefined, u(r("Unsigned"), 3.14)) },
2550+ { json: "UseSerializers", js: "UseSerializers", typ: u(undefined, u(r("UseSerializers"), 3.14)) },
25092551 { json: "ushort", js: "ushort", typ: u(undefined, u(r("Ushort"), 3.14)) },
25102552 { json: "using", js: "using", typ: u(undefined, u(r("Using"), 3.14)) },
25112553 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: u(undefined, u(r("Utf8JSONReader"), 3.14)) },
@@ -2596,6 +2638,8 @@ const typeMap: any = {
25962638 ], false),
25972639 "JSONTokenType": o([
25982640 ], false),
2641+ "KSerializer": o([
2642+ ], false),
25992643 "Locale": o([
26002644 ], false),
26012645 "MapEntry": o([
@@ -2614,6 +2658,8 @@ const typeMap: any = {
26142658 ], false),
26152659 "ObjectMapper": o([
26162660 ], false),
2661+ "PrimitiveKind": o([
2662+ ], false),
26172663 "Protocol": o([
26182664 ], false),
26192665 "RegExpClass": o([
@@ -2624,6 +2670,12 @@ const typeMap: any = {
26242670 ], false),
26252671 "Sendable": o([
26262672 ], false),
2673+ "SerialDescriptor": o([
2674+ ], false),
2675+ "SerialName": o([
2676+ ], false),
2677+ "Serializable": o([
2678+ ], false),
26272679 "SerializerProvider": o([
26282680 ], false),
26292681 "SimpleModule": o([
@@ -2646,6 +2698,8 @@ const typeMap: any = {
26462698 ], false),
26472699 "UUID": o([
26482700 ], false),
2701+ "UseSerializers": o([
2702+ ], false),
26492703 "Utf8JSONReader": o([
26502704 ], false),
26512705 "Utf8JSONWriter": o([
Mschema-golangdefault / quicktype.go+156 −0
@@ -194,6 +194,7 @@ type TopLevel struct {
194194 JSONParser *UnionJSONParser `json:"JsonParser"`
195195 JSONReader *UnionJSONReader `json:"JsonReader"`
196196 JSONTokenType *UnionJSONTokenType `json:"JsonTokenType"`
197+ KSerializer *UnionKSerializer `json:"KSerializer"`
197198 Lambda *UnionLambda `json:"lambda"`
198199 Lazy *UnionLazy `json:"lazy"`
199200 Left *UnionLeft `json:"left"`
@@ -248,6 +249,7 @@ type TopLevel struct {
248249 Postfix *UnionPostfix `json:"postfix"`
249250 Precedence *UnionPrecedence `json:"precedence"`
250251 Prefix *UnionPrefix `json:"prefix"`
252+ PrimitiveKind *UnionPrimitiveKind `json:"PrimitiveKind"`
251253 Print *UnionPrint `json:"print"`
252254 Printf *UnionPrintf `json:"printf"`
253255 PrintMembers *UnionPrintMembers `json:"printMembers"`
@@ -282,8 +284,11 @@ type TopLevel struct {
282284 Self *UnionSelf `json:"Self"`
283285 TopLevelSelf *UnionSelfUnion `json:"self"`
284286 Sendable *UnionSendable `json:"Sendable"`
287+ SerialDescriptor *UnionSerialDescriptor `json:"SerialDescriptor"`
288+ Serializable *UnionSerializable `json:"Serializable"`
285289 Serialize *UnionSerialize `json:"serialize"`
286290 SerializerProvider *UnionSerializerProvider `json:"SerializerProvider"`
291+ SerialName *UnionSerialName `json:"SerialName"`
287292 Set *UnionSet `json:"set"`
288293 Short *UnionShort `json:"short"`
289294 Signed *UnionSigned `json:"signed"`
@@ -336,6 +341,7 @@ type TopLevel struct {
336341 Unowned *UnionUnowned `json:"unowned"`
337342 Unsafe *UnionUnsafe `json:"unsafe"`
338343 Unsigned *UnionUnsigned `json:"unsigned"`
344+ UseSerializers *UnionUseSerializers `json:"UseSerializers"`
339345 Ushort *UnionUshort `json:"ushort"`
340346 Using *UnionUsing `json:"using"`
341347 Utf8JSONReader *UnionUtf8JSONReader `json:"Utf8JsonReader"`
@@ -855,6 +861,9 @@ type Jenc struct {
855861 type Jpipe struct {
856862 }
857863
864+type KSerializer struct {
865+}
866+
858867 type Lambda struct {
859868 }
860869
@@ -1011,6 +1020,9 @@ type Precedence struct {
10111020 type Prefix struct {
10121021 }
10131022
1023+type PrimitiveKind struct {
1024+}
1025+
10141026 type Print struct {
10151027 }
10161028
@@ -1110,6 +1122,15 @@ type Self struct {
11101122 type Sendable struct {
11111123 }
11121124
1125+type SerialDescriptor struct {
1126+}
1127+
1128+type SerialName struct {
1129+}
1130+
1131+type Serializable struct {
1132+}
1133+
11131134 type Serialize struct {
11141135 }
11151136
@@ -1299,6 +1320,9 @@ type Unsafe struct {
12991320 type Unsigned struct {
13001321 }
13011322
1323+type UseSerializers struct {
1324+}
1325+
13021326 type Ushort struct {
13031327 }
13041328
@@ -5005,6 +5029,28 @@ func (x *UnionJpipe) MarshalJSON() ([]byte, error) {
50055029 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Jpipe != nil, x.Jpipe, false, nil, false, nil, false)
50065030 }
50075031
5032+type UnionKSerializer struct {
5033+ Double *float64
5034+ KSerializer *KSerializer
5035+}
5036+
5037+func (x *UnionKSerializer) UnmarshalJSON(data []byte) error {
5038+ x.KSerializer = nil
5039+ var c KSerializer
5040+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5041+ if err != nil {
5042+ return err
5043+ }
5044+ if object {
5045+ x.KSerializer = &c
5046+ }
5047+ return nil
5048+}
5049+
5050+func (x *UnionKSerializer) MarshalJSON() ([]byte, error) {
5051+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.KSerializer != nil, x.KSerializer, false, nil, false, nil, false)
5052+}
5053+
50085054 type UnionLambda struct {
50095055 Double *float64
50105056 Lambda *Lambda
@@ -6149,6 +6195,28 @@ func (x *UnionPrefix) MarshalJSON() ([]byte, error) {
61496195 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Prefix != nil, x.Prefix, false, nil, false, nil, false)
61506196 }
61516197
6198+type UnionPrimitiveKind struct {
6199+ Double *float64
6200+ PrimitiveKind *PrimitiveKind
6201+}
6202+
6203+func (x *UnionPrimitiveKind) UnmarshalJSON(data []byte) error {
6204+ x.PrimitiveKind = nil
6205+ var c PrimitiveKind
6206+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6207+ if err != nil {
6208+ return err
6209+ }
6210+ if object {
6211+ x.PrimitiveKind = &c
6212+ }
6213+ return nil
6214+}
6215+
6216+func (x *UnionPrimitiveKind) MarshalJSON() ([]byte, error) {
6217+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.PrimitiveKind != nil, x.PrimitiveKind, false, nil, false, nil, false)
6218+}
6219+
61526220 type UnionPrint struct {
61536221 Double *float64
61546222 Print *Print
@@ -6875,6 +6943,72 @@ func (x *UnionSendable) MarshalJSON() ([]byte, error) {
68756943 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Sendable != nil, x.Sendable, false, nil, false, nil, false)
68766944 }
68776945
6946+type UnionSerialDescriptor struct {
6947+ Double *float64
6948+ SerialDescriptor *SerialDescriptor
6949+}
6950+
6951+func (x *UnionSerialDescriptor) UnmarshalJSON(data []byte) error {
6952+ x.SerialDescriptor = nil
6953+ var c SerialDescriptor
6954+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6955+ if err != nil {
6956+ return err
6957+ }
6958+ if object {
6959+ x.SerialDescriptor = &c
6960+ }
6961+ return nil
6962+}
6963+
6964+func (x *UnionSerialDescriptor) MarshalJSON() ([]byte, error) {
6965+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.SerialDescriptor != nil, x.SerialDescriptor, false, nil, false, nil, false)
6966+}
6967+
6968+type UnionSerialName struct {
6969+ Double *float64
6970+ SerialName *SerialName
6971+}
6972+
6973+func (x *UnionSerialName) UnmarshalJSON(data []byte) error {
6974+ x.SerialName = nil
6975+ var c SerialName
6976+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6977+ if err != nil {
6978+ return err
6979+ }
6980+ if object {
6981+ x.SerialName = &c
6982+ }
6983+ return nil
6984+}
6985+
6986+func (x *UnionSerialName) MarshalJSON() ([]byte, error) {
6987+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.SerialName != nil, x.SerialName, false, nil, false, nil, false)
6988+}
6989+
6990+type UnionSerializable struct {
6991+ Double *float64
6992+ Serializable *Serializable
6993+}
6994+
6995+func (x *UnionSerializable) UnmarshalJSON(data []byte) error {
6996+ x.Serializable = nil
6997+ var c Serializable
6998+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6999+ if err != nil {
7000+ return err
7001+ }
7002+ if object {
7003+ x.Serializable = &c
7004+ }
7005+ return nil
7006+}
7007+
7008+func (x *UnionSerializable) MarshalJSON() ([]byte, error) {
7009+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Serializable != nil, x.Serializable, false, nil, false, nil, false)
7010+}
7011+
68787012 type UnionSerialize struct {
68797013 Double *float64
68807014 Serialize *Serialize
@@ -8261,6 +8395,28 @@ func (x *UnionUnsigned) MarshalJSON() ([]byte, error) {
82618395 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Unsigned != nil, x.Unsigned, false, nil, false, nil, false)
82628396 }
82638397
8398+type UnionUseSerializers struct {
8399+ Double *float64
8400+ UseSerializers *UseSerializers
8401+}
8402+
8403+func (x *UnionUseSerializers) UnmarshalJSON(data []byte) error {
8404+ x.UseSerializers = nil
8405+ var c UseSerializers
8406+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
8407+ if err != nil {
8408+ return err
8409+ }
8410+ if object {
8411+ x.UseSerializers = &c
8412+ }
8413+ return nil
8414+}
8415+
8416+func (x *UnionUseSerializers) MarshalJSON() ([]byte, error) {
8417+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.UseSerializers != nil, x.UseSerializers, false, nil, false, nil, false)
8418+}
8419+
82648420 type UnionUshort struct {
82658421 Double *float64
82668422 Ushort *Ushort
Mschema-haskelldefault / QuickType.hs+169 −1
@@ -158,6 +158,7 @@ module QuickType
158158 , JSONToken (..)
159159 , JSONTokenType (..)
160160 , JSONWriter (..)
161+ , KSerializer (..)
161162 , Lambda (..)
162163 , Lazy (..)
163164 , LeftClass (..)
@@ -207,6 +208,7 @@ module QuickType
207208 , Postfix (..)
208209 , Precedence (..)
209210 , Prefix (..)
211+ , PrimitiveKind (..)
210212 , Print (..)
211213 , PrintMembers (..)
212214 , Printf (..)
@@ -267,6 +269,9 @@ module QuickType
267269 , Select (..)
268270 , Self (..)
269271 , Sendable (..)
272+ , SerialDescriptor (..)
273+ , SerialName (..)
274+ , Serializable (..)
270275 , Serialize (..)
271276 , SerializerProvider (..)
272277 , Set (..)
@@ -317,6 +322,7 @@ module QuickType
317322 , Unowned (..)
318323 , Unsafe (..)
319324 , Unsigned (..)
325+ , UseSerializers (..)
320326 , Ushort (..)
321327 , Using (..)
322328 , Utf8JSONReader (..)
@@ -490,6 +496,7 @@ module QuickType
490496 , UnionJSONToken (..)
491497 , UnionJSONTokenType (..)
492498 , UnionJSONWriter (..)
499+ , UnionKSerializer (..)
493500 , UnionLambda (..)
494501 , UnionLazy (..)
495502 , UnionLeft (..)
@@ -539,6 +546,7 @@ module QuickType
539546 , UnionPostfix (..)
540547 , UnionPrecedence (..)
541548 , UnionPrefix (..)
549+ , UnionPrimitiveKind (..)
542550 , UnionPrint (..)
543551 , UnionPrintMembers (..)
544552 , UnionPrintf (..)
@@ -599,6 +607,9 @@ module QuickType
599607 , UnionSelect (..)
600608 , UnionSelf (..)
601609 , UnionSendable (..)
610+ , UnionSerialDescriptor (..)
611+ , UnionSerialName (..)
612+ , UnionSerializable (..)
602613 , UnionSerialize (..)
603614 , UnionSerializerProvider (..)
604615 , UnionSet (..)
@@ -649,6 +660,7 @@ module QuickType
649660 , UnionUnowned (..)
650661 , UnionUnsafe (..)
651662 , UnionUnsigned (..)
663+ , UnionUseSerializers (..)
652664 , UnionUshort (..)
653665 , UnionUsing (..)
654666 , UnionUtf8JSONReader (..)
@@ -849,6 +861,7 @@ data QuickType = QuickType
849861 , jsonParserQuickType :: Maybe UnionJSONParser
850862 , jsonReaderQuickType :: Maybe UnionJSONReader
851863 , jsonTokenTypeQuickType :: Maybe UnionJSONTokenType
864+ , kSerializerQuickType :: Maybe UnionKSerializer
852865 , lambdaQuickType :: Maybe UnionLambda
853866 , lazyQuickType :: Maybe UnionLazy
854867 , leftQuickType :: Maybe UnionLeft
@@ -903,6 +916,7 @@ data QuickType = QuickType
903916 , postfixQuickType :: Maybe UnionPostfix
904917 , precedenceQuickType :: Maybe UnionPrecedence
905918 , prefixQuickType :: Maybe UnionPrefix
919+ , primitiveKindQuickType :: Maybe UnionPrimitiveKind
906920 , printQuickType :: Maybe UnionPrint
907921 , printfQuickType :: Maybe UnionPrintf
908922 , printMembersQuickType :: Maybe UnionPrintMembers
@@ -937,8 +951,11 @@ data QuickType = QuickType
937951 , selfQuickType :: Maybe UnionSelf
938952 , quickTypeSelfQuickType :: Maybe UnionSelfUnion
939953 , sendableQuickType :: Maybe UnionSendable
954+ , serialDescriptorQuickType :: Maybe UnionSerialDescriptor
955+ , serializableQuickType :: Maybe UnionSerializable
940956 , serializeQuickType :: Maybe UnionSerialize
941957 , serializerProviderQuickType :: Maybe UnionSerializerProvider
958+ , serialNameQuickType :: Maybe UnionSerialName
942959 , setQuickType :: Maybe UnionSet
943960 , shortQuickType :: Maybe UnionShort
944961 , signedQuickType :: Maybe UnionSigned
@@ -991,6 +1008,7 @@ data QuickType = QuickType
9911008 , unownedQuickType :: Maybe UnionUnowned
9921009 , unsafeQuickType :: Maybe UnionUnsafe
9931010 , unsignedQuickType :: Maybe UnionUnsigned
1011+ , useSerializersQuickType :: Maybe UnionUseSerializers
9941012 , ushortQuickType :: Maybe UnionUshort
9951013 , usingQuickType :: Maybe UnionUsing
9961014 , utf8JSONReaderQuickType :: Maybe UnionUtf8JSONReader
@@ -2407,6 +2425,15 @@ data JSONWriter = JSONWriter
24072425 {
24082426 } deriving (Show)
24092427
2428+data UnionKSerializer
2429+ = DoubleInUnionKSerializer Double
2430+ | KSerializerInUnionKSerializer KSerializer
2431+ deriving (Show)
2432+
2433+data KSerializer = KSerializer
2434+ {
2435+ } deriving (Show)
2436+
24102437 data UnionLambda
24112438 = DoubleInUnionLambda Double
24122439 | LambdaInUnionLambda Lambda
@@ -2848,6 +2875,15 @@ data Prefix = Prefix
28482875 {
28492876 } deriving (Show)
28502877
2878+data UnionPrimitiveKind
2879+ = DoubleInUnionPrimitiveKind Double
2880+ | PrimitiveKindInUnionPrimitiveKind PrimitiveKind
2881+ deriving (Show)
2882+
2883+data PrimitiveKind = PrimitiveKind
2884+ {
2885+ } deriving (Show)
2886+
28512887 data UnionPrint
28522888 = DoubleInUnionPrint Double
28532889 | PrintInUnionPrint Print
@@ -3388,6 +3424,33 @@ data Sendable = Sendable
33883424 {
33893425 } deriving (Show)
33903426
3427+data UnionSerialDescriptor
3428+ = DoubleInUnionSerialDescriptor Double
3429+ | SerialDescriptorInUnionSerialDescriptor SerialDescriptor
3430+ deriving (Show)
3431+
3432+data SerialDescriptor = SerialDescriptor
3433+ {
3434+ } deriving (Show)
3435+
3436+data UnionSerialName
3437+ = DoubleInUnionSerialName Double
3438+ | SerialNameInUnionSerialName SerialName
3439+ deriving (Show)
3440+
3441+data SerialName = SerialName
3442+ {
3443+ } deriving (Show)
3444+
3445+data UnionSerializable
3446+ = DoubleInUnionSerializable Double
3447+ | SerializableInUnionSerializable Serializable
3448+ deriving (Show)
3449+
3450+data Serializable = Serializable
3451+ {
3452+ } deriving (Show)
3453+
33913454 data UnionSerialize
33923455 = DoubleInUnionSerialize Double
33933456 | SerializeInUnionSerialize Serialize
@@ -3838,6 +3901,15 @@ data Unsigned = Unsigned
38383901 {
38393902 } deriving (Show)
38403903
3904+data UnionUseSerializers
3905+ = DoubleInUnionUseSerializers Double
3906+ | UseSerializersInUnionUseSerializers UseSerializers
3907+ deriving (Show)
3908+
3909+data UseSerializers = UseSerializers
3910+ {
3911+ } deriving (Show)
3912+
38413913 data UnionUshort
38423914 = DoubleInUnionUshort Double
38433915 | UshortInUnionUshort Ushort
@@ -4004,7 +4076,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
40044076 decodeTopLevel = decode
40054077
40064078 instance ToJSON QuickType where
4007- toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serializeQuickType serializerProviderQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4079+ toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
40084080 object $ foldMap (maybe [] pure)
40094081 [ ("_" .=) <$> emptyQuickType
40104082 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4178,6 +4250,7 @@ instance ToJSON QuickType where
41784250 , ("JsonParser" .=) <$> jsonParserQuickType
41794251 , ("JsonReader" .=) <$> jsonReaderQuickType
41804252 , ("JsonTokenType" .=) <$> jsonTokenTypeQuickType
4253+ , ("KSerializer" .=) <$> kSerializerQuickType
41814254 , ("lambda" .=) <$> lambdaQuickType
41824255 , ("lazy" .=) <$> lazyQuickType
41834256 , ("left" .=) <$> leftQuickType
@@ -4232,6 +4305,7 @@ instance ToJSON QuickType where
42324305 , ("postfix" .=) <$> postfixQuickType
42334306 , ("precedence" .=) <$> precedenceQuickType
42344307 , ("prefix" .=) <$> prefixQuickType
4308+ , ("PrimitiveKind" .=) <$> primitiveKindQuickType
42354309 , ("print" .=) <$> printQuickType
42364310 , ("printf" .=) <$> printfQuickType
42374311 , ("printMembers" .=) <$> printMembersQuickType
@@ -4266,8 +4340,11 @@ instance ToJSON QuickType where
42664340 , ("Self" .=) <$> selfQuickType
42674341 , ("self" .=) <$> quickTypeSelfQuickType
42684342 , ("Sendable" .=) <$> sendableQuickType
4343+ , ("SerialDescriptor" .=) <$> serialDescriptorQuickType
4344+ , ("Serializable" .=) <$> serializableQuickType
42694345 , ("serialize" .=) <$> serializeQuickType
42704346 , ("SerializerProvider" .=) <$> serializerProviderQuickType
4347+ , ("SerialName" .=) <$> serialNameQuickType
42714348 , ("set" .=) <$> setQuickType
42724349 , ("short" .=) <$> shortQuickType
42734350 , ("signed" .=) <$> signedQuickType
@@ -4320,6 +4397,7 @@ instance ToJSON QuickType where
43204397 , ("unowned" .=) <$> unownedQuickType
43214398 , ("unsafe" .=) <$> unsafeQuickType
43224399 , ("unsigned" .=) <$> unsignedQuickType
4400+ , ("UseSerializers" .=) <$> useSerializersQuickType
43234401 , ("ushort" .=) <$> ushortQuickType
43244402 , ("using" .=) <$> usingQuickType
43254403 , ("Utf8JsonReader" .=) <$> utf8JSONReaderQuickType
@@ -4515,6 +4593,7 @@ instance FromJSON QuickType where
45154593 <*> v .:! "JsonParser"
45164594 <*> v .:! "JsonReader"
45174595 <*> v .:! "JsonTokenType"
4596+ <*> v .:! "KSerializer"
45184597 <*> v .:! "lambda"
45194598 <*> v .:! "lazy"
45204599 <*> v .:! "left"
@@ -4569,6 +4648,7 @@ instance FromJSON QuickType where
45694648 <*> v .:! "postfix"
45704649 <*> v .:! "precedence"
45714650 <*> v .:! "prefix"
4651+ <*> v .:! "PrimitiveKind"
45724652 <*> v .:! "print"
45734653 <*> v .:! "printf"
45744654 <*> v .:! "printMembers"
@@ -4603,8 +4683,11 @@ instance FromJSON QuickType where
46034683 <*> v .:! "Self"
46044684 <*> v .:! "self"
46054685 <*> v .:! "Sendable"
4686+ <*> v .:! "SerialDescriptor"
4687+ <*> v .:! "Serializable"
46064688 <*> v .:! "serialize"
46074689 <*> v .:! "SerializerProvider"
4690+ <*> v .:! "SerialName"
46084691 <*> v .:! "set"
46094692 <*> v .:! "short"
46104693 <*> v .:! "signed"
@@ -4657,6 +4740,7 @@ instance FromJSON QuickType where
46574740 <*> v .:! "unowned"
46584741 <*> v .:! "unsafe"
46594742 <*> v .:! "unsigned"
4743+ <*> v .:! "UseSerializers"
46604744 <*> v .:! "ushort"
46614745 <*> v .:! "using"
46624746 <*> v .:! "Utf8JsonReader"
@@ -6847,6 +6931,20 @@ instance ToJSON JSONWriter where
68476931 instance FromJSON JSONWriter where
68486932 parseJSON (Object _) = return JSONWriter
68496933
6934+instance ToJSON UnionKSerializer where
6935+ toJSON (DoubleInUnionKSerializer x) = toJSON x
6936+ toJSON (KSerializerInUnionKSerializer x) = toJSON x
6937+
6938+instance FromJSON UnionKSerializer where
6939+ parseJSON xs@(Number _) = (fmap DoubleInUnionKSerializer . parseJSON) xs
6940+ parseJSON xs@(Object _) = (fmap KSerializerInUnionKSerializer . parseJSON) xs
6941+
6942+instance ToJSON KSerializer where
6943+ toJSON = \_ -> emptyObject
6944+
6945+instance FromJSON KSerializer where
6946+ parseJSON (Object _) = return KSerializer
6947+
68506948 instance ToJSON UnionLambda where
68516949 toJSON (DoubleInUnionLambda x) = toJSON x
68526950 toJSON (LambdaInUnionLambda x) = toJSON x
@@ -7533,6 +7631,20 @@ instance ToJSON Prefix where
75337631 instance FromJSON Prefix where
75347632 parseJSON (Object _) = return Prefix
75357633
7634+instance ToJSON UnionPrimitiveKind where
7635+ toJSON (DoubleInUnionPrimitiveKind x) = toJSON x
7636+ toJSON (PrimitiveKindInUnionPrimitiveKind x) = toJSON x
7637+
7638+instance FromJSON UnionPrimitiveKind where
7639+ parseJSON xs@(Number _) = (fmap DoubleInUnionPrimitiveKind . parseJSON) xs
7640+ parseJSON xs@(Object _) = (fmap PrimitiveKindInUnionPrimitiveKind . parseJSON) xs
7641+
7642+instance ToJSON PrimitiveKind where
7643+ toJSON = \_ -> emptyObject
7644+
7645+instance FromJSON PrimitiveKind where
7646+ parseJSON (Object _) = return PrimitiveKind
7647+
75367648 instance ToJSON UnionPrint where
75377649 toJSON (DoubleInUnionPrint x) = toJSON x
75387650 toJSON (PrintInUnionPrint x) = toJSON x
@@ -8373,6 +8485,48 @@ instance ToJSON Sendable where
83738485 instance FromJSON Sendable where
83748486 parseJSON (Object _) = return Sendable
83758487
8488+instance ToJSON UnionSerialDescriptor where
8489+ toJSON (DoubleInUnionSerialDescriptor x) = toJSON x
8490+ toJSON (SerialDescriptorInUnionSerialDescriptor x) = toJSON x
8491+
8492+instance FromJSON UnionSerialDescriptor where
8493+ parseJSON xs@(Number _) = (fmap DoubleInUnionSerialDescriptor . parseJSON) xs
8494+ parseJSON xs@(Object _) = (fmap SerialDescriptorInUnionSerialDescriptor . parseJSON) xs
8495+
8496+instance ToJSON SerialDescriptor where
8497+ toJSON = \_ -> emptyObject
8498+
8499+instance FromJSON SerialDescriptor where
8500+ parseJSON (Object _) = return SerialDescriptor
8501+
8502+instance ToJSON UnionSerialName where
8503+ toJSON (DoubleInUnionSerialName x) = toJSON x
8504+ toJSON (SerialNameInUnionSerialName x) = toJSON x
8505+
8506+instance FromJSON UnionSerialName where
8507+ parseJSON xs@(Number _) = (fmap DoubleInUnionSerialName . parseJSON) xs
8508+ parseJSON xs@(Object _) = (fmap SerialNameInUnionSerialName . parseJSON) xs
8509+
8510+instance ToJSON SerialName where
8511+ toJSON = \_ -> emptyObject
8512+
8513+instance FromJSON SerialName where
8514+ parseJSON (Object _) = return SerialName
8515+
8516+instance ToJSON UnionSerializable where
8517+ toJSON (DoubleInUnionSerializable x) = toJSON x
8518+ toJSON (SerializableInUnionSerializable x) = toJSON x
8519+
8520+instance FromJSON UnionSerializable where
8521+ parseJSON xs@(Number _) = (fmap DoubleInUnionSerializable . parseJSON) xs
8522+ parseJSON xs@(Object _) = (fmap SerializableInUnionSerializable . parseJSON) xs
8523+
8524+instance ToJSON Serializable where
8525+ toJSON = \_ -> emptyObject
8526+
8527+instance FromJSON Serializable where
8528+ parseJSON (Object _) = return Serializable
8529+
83768530 instance ToJSON UnionSerialize where
83778531 toJSON (DoubleInUnionSerialize x) = toJSON x
83788532 toJSON (SerializeInUnionSerialize x) = toJSON x
@@ -9073,6 +9227,20 @@ instance ToJSON Unsigned where
90739227 instance FromJSON Unsigned where
90749228 parseJSON (Object _) = return Unsigned
90759229
9230+instance ToJSON UnionUseSerializers where
9231+ toJSON (DoubleInUnionUseSerializers x) = toJSON x
9232+ toJSON (UseSerializersInUnionUseSerializers x) = toJSON x
9233+
9234+instance FromJSON UnionUseSerializers where
9235+ parseJSON xs@(Number _) = (fmap DoubleInUnionUseSerializers . parseJSON) xs
9236+ parseJSON xs@(Object _) = (fmap UseSerializersInUnionUseSerializers . parseJSON) xs
9237+
9238+instance ToJSON UseSerializers where
9239+ toJSON = \_ -> emptyObject
9240+
9241+instance FromJSON UseSerializers where
9242+ parseJSON (Object _) = return UseSerializers
9243+
90769244 instance ToJSON UnionUshort where
90779245 toJSON (DoubleInUnionUshort x) = toJSON x
90789246 toJSON (UshortInUnionUshort x) = toJSON x
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / KSerializer.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class KSerializer {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / PrimitiveKind.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class PrimitiveKind {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / SerialDescriptor.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialDescriptor {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / Serializable.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class Serializable {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / SerialName.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialName {
7+}
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+36 −0
@@ -175,6 +175,7 @@ public class TopLevel {
175175 private UnionJSONParser jsonParser;
176176 private UnionJSONReader jsonReader;
177177 private UnionJSONTokenType jsonTokenType;
178+ private UnionKSerializer kSerializer;
178179 private UnionLambda lambda;
179180 private UnionLazy lazy;
180181 private UnionLeft left;
@@ -229,6 +230,7 @@ public class TopLevel {
229230 private UnionPostfix postfix;
230231 private UnionPrecedence precedence;
231232 private UnionPrefix prefix;
233+ private UnionPrimitiveKind primitiveKind;
232234 private UnionPrint print;
233235 private UnionPrintf printf;
234236 private UnionPrintMembers printMembers;
@@ -263,8 +265,11 @@ public class TopLevel {
263265 private UnionSelf self;
264266 private UnionSelfUnion topLevelSelf;
265267 private UnionSendable sendable;
268+ private UnionSerialDescriptor serialDescriptor;
269+ private UnionSerializable serializable;
266270 private UnionSerialize serialize;
267271 private UnionSerializerProvider serializerProvider;
272+ private UnionSerialName serialName;
268273 private UnionSet set;
269274 private UnionShort topLevelShort;
270275 private UnionSigned signed;
@@ -317,6 +322,7 @@ public class TopLevel {
317322 private UnionUnowned unowned;
318323 private UnionUnsafe unsafe;
319324 private UnionUnsigned unsigned;
325+ private UnionUseSerializers useSerializers;
320326 private UnionUshort ushort;
321327 private UnionUsing using;
322328 private UnionUtf8JSONReader utf8JSONReader;
@@ -1197,6 +1203,11 @@ public class TopLevel {
11971203 @JsonProperty("JsonTokenType")
11981204 public void setJSONTokenType(UnionJSONTokenType value) { this.jsonTokenType = value; }
11991205
1206+ @JsonProperty("KSerializer")
1207+ public UnionKSerializer getKSerializer() { return kSerializer; }
1208+ @JsonProperty("KSerializer")
1209+ public void setKSerializer(UnionKSerializer value) { this.kSerializer = value; }
1210+
12001211 @JsonProperty("lambda")
12011212 public UnionLambda getLambda() { return lambda; }
12021213 @JsonProperty("lambda")
@@ -1467,6 +1478,11 @@ public class TopLevel {
14671478 @JsonProperty("prefix")
14681479 public void setPrefix(UnionPrefix value) { this.prefix = value; }
14691480
1481+ @JsonProperty("PrimitiveKind")
1482+ public UnionPrimitiveKind getPrimitiveKind() { return primitiveKind; }
1483+ @JsonProperty("PrimitiveKind")
1484+ public void setPrimitiveKind(UnionPrimitiveKind value) { this.primitiveKind = value; }
1485+
14701486 @JsonProperty("print")
14711487 public UnionPrint getPrint() { return print; }
14721488 @JsonProperty("print")
@@ -1637,6 +1653,16 @@ public class TopLevel {
16371653 @JsonProperty("Sendable")
16381654 public void setSendable(UnionSendable value) { this.sendable = value; }
16391655
1656+ @JsonProperty("SerialDescriptor")
1657+ public UnionSerialDescriptor getSerialDescriptor() { return serialDescriptor; }
1658+ @JsonProperty("SerialDescriptor")
1659+ public void setSerialDescriptor(UnionSerialDescriptor value) { this.serialDescriptor = value; }
1660+
1661+ @JsonProperty("Serializable")
1662+ public UnionSerializable getSerializable() { return serializable; }
1663+ @JsonProperty("Serializable")
1664+ public void setSerializable(UnionSerializable value) { this.serializable = value; }
1665+
16401666 @JsonProperty("serialize")
16411667 public UnionSerialize getSerialize() { return serialize; }
16421668 @JsonProperty("serialize")
@@ -1647,6 +1673,11 @@ public class TopLevel {
16471673 @JsonProperty("SerializerProvider")
16481674 public void setSerializerProvider(UnionSerializerProvider value) { this.serializerProvider = value; }
16491675
1676+ @JsonProperty("SerialName")
1677+ public UnionSerialName getSerialName() { return serialName; }
1678+ @JsonProperty("SerialName")
1679+ public void setSerialName(UnionSerialName value) { this.serialName = value; }
1680+
16501681 @JsonProperty("set")
16511682 public UnionSet getSet() { return set; }
16521683 @JsonProperty("set")
@@ -1907,6 +1938,11 @@ public class TopLevel {
19071938 @JsonProperty("unsigned")
19081939 public void setUnsigned(UnionUnsigned value) { this.unsigned = value; }
19091940
1941+ @JsonProperty("UseSerializers")
1942+ public UnionUseSerializers getUseSerializers() { return useSerializers; }
1943+ @JsonProperty("UseSerializers")
1944+ public void setUseSerializers(UnionUseSerializers value) { this.useSerializers = value; }
1945+
19101946 @JsonProperty("ushort")
19111947 public UnionUshort getUshort() { return ushort; }
19121948 @JsonProperty("ushort")
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionKSerializer.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionKSerializer.Deserializer.class)
11+@JsonSerialize(using = UnionKSerializer.Serializer.class)
12+public class UnionKSerializer {
13+ public Double doubleValue;
14+ public KSerializer kSerializerValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionKSerializer> {
17+ @Override
18+ public UnionKSerializer deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionKSerializer value = new UnionKSerializer();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.kSerializerValue = jsonParser.readValueAs(KSerializer.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionKSerializer");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionKSerializer> {
37+ @Override
38+ public void serialize(UnionKSerializer obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.kSerializerValue != null) {
44+ jsonGenerator.writeObject(obj.kSerializerValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionPrimitiveKind.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionPrimitiveKind.Deserializer.class)
11+@JsonSerialize(using = UnionPrimitiveKind.Serializer.class)
12+public class UnionPrimitiveKind {
13+ public Double doubleValue;
14+ public PrimitiveKind primitiveKindValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionPrimitiveKind> {
17+ @Override
18+ public UnionPrimitiveKind deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionPrimitiveKind value = new UnionPrimitiveKind();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.primitiveKindValue = jsonParser.readValueAs(PrimitiveKind.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionPrimitiveKind");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionPrimitiveKind> {
37+ @Override
38+ public void serialize(UnionPrimitiveKind obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.primitiveKindValue != null) {
44+ jsonGenerator.writeObject(obj.primitiveKindValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionSerialDescriptor.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialDescriptor.Deserializer.class)
11+@JsonSerialize(using = UnionSerialDescriptor.Serializer.class)
12+public class UnionSerialDescriptor {
13+ public Double doubleValue;
14+ public SerialDescriptor serialDescriptorValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialDescriptor> {
17+ @Override
18+ public UnionSerialDescriptor deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialDescriptor value = new UnionSerialDescriptor();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialDescriptorValue = jsonParser.readValueAs(SerialDescriptor.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialDescriptor");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialDescriptor> {
37+ @Override
38+ public void serialize(UnionSerialDescriptor obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialDescriptorValue != null) {
44+ jsonGenerator.writeObject(obj.serialDescriptorValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionSerializable.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerializable.Deserializer.class)
11+@JsonSerialize(using = UnionSerializable.Serializer.class)
12+public class UnionSerializable {
13+ public Double doubleValue;
14+ public Serializable serializableValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerializable> {
17+ @Override
18+ public UnionSerializable deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerializable value = new UnionSerializable();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serializableValue = jsonParser.readValueAs(Serializable.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerializable");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerializable> {
37+ @Override
38+ public void serialize(UnionSerializable obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serializableValue != null) {
44+ jsonGenerator.writeObject(obj.serializableValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionSerialName.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialName.Deserializer.class)
11+@JsonSerialize(using = UnionSerialName.Serializer.class)
12+public class UnionSerialName {
13+ public Double doubleValue;
14+ public SerialName serialNameValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialName> {
17+ @Override
18+ public UnionSerialName deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialName value = new UnionSerialName();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialNameValue = jsonParser.readValueAs(SerialName.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialName");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialName> {
37+ @Override
38+ public void serialize(UnionSerialName obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialNameValue != null) {
44+ jsonGenerator.writeObject(obj.serialNameValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionUseSerializers.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionUseSerializers.Deserializer.class)
11+@JsonSerialize(using = UnionUseSerializers.Serializer.class)
12+public class UnionUseSerializers {
13+ public Double doubleValue;
14+ public UseSerializers useSerializersValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionUseSerializers> {
17+ @Override
18+ public UnionUseSerializers deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionUseSerializers value = new UnionUseSerializers();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.useSerializersValue = jsonParser.readValueAs(UseSerializers.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionUseSerializers");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionUseSerializers> {
37+ @Override
38+ public void serialize(UnionUseSerializers obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.useSerializersValue != null) {
44+ jsonGenerator.writeObject(obj.useSerializersValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UseSerializers.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class UseSerializers {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / KSerializer.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class KSerializer {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / PrimitiveKind.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class PrimitiveKind {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / SerialDescriptor.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialDescriptor {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / Serializable.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class Serializable {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / SerialName.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialName {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+36 −0
@@ -175,6 +175,7 @@ public class TopLevel {
175175 private UnionJSONParser jsonParser;
176176 private UnionJSONReader jsonReader;
177177 private UnionJSONTokenType jsonTokenType;
178+ private UnionKSerializer kSerializer;
178179 private UnionLambda lambda;
179180 private UnionLazy lazy;
180181 private UnionLeft left;
@@ -229,6 +230,7 @@ public class TopLevel {
229230 private UnionPostfix postfix;
230231 private UnionPrecedence precedence;
231232 private UnionPrefix prefix;
233+ private UnionPrimitiveKind primitiveKind;
232234 private UnionPrint print;
233235 private UnionPrintf printf;
234236 private UnionPrintMembers printMembers;
@@ -263,8 +265,11 @@ public class TopLevel {
263265 private UnionSelf self;
264266 private UnionSelfUnion topLevelSelf;
265267 private UnionSendable sendable;
268+ private UnionSerialDescriptor serialDescriptor;
269+ private UnionSerializable serializable;
266270 private UnionSerialize serialize;
267271 private UnionSerializerProvider serializerProvider;
272+ private UnionSerialName serialName;
268273 private UnionSet set;
269274 private UnionShort topLevelShort;
270275 private UnionSigned signed;
@@ -317,6 +322,7 @@ public class TopLevel {
317322 private UnionUnowned unowned;
318323 private UnionUnsafe unsafe;
319324 private UnionUnsigned unsigned;
325+ private UnionUseSerializers useSerializers;
320326 private UnionUshort ushort;
321327 private UnionUsing using;
322328 private UnionUtf8JSONReader utf8JSONReader;
@@ -1197,6 +1203,11 @@ public class TopLevel {
11971203 @JsonProperty("JsonTokenType")
11981204 public void setJSONTokenType(UnionJSONTokenType value) { this.jsonTokenType = value; }
11991205
1206+ @JsonProperty("KSerializer")
1207+ public UnionKSerializer getKSerializer() { return kSerializer; }
1208+ @JsonProperty("KSerializer")
1209+ public void setKSerializer(UnionKSerializer value) { this.kSerializer = value; }
1210+
12001211 @JsonProperty("lambda")
12011212 public UnionLambda getLambda() { return lambda; }
12021213 @JsonProperty("lambda")
@@ -1467,6 +1478,11 @@ public class TopLevel {
14671478 @JsonProperty("prefix")
14681479 public void setPrefix(UnionPrefix value) { this.prefix = value; }
14691480
1481+ @JsonProperty("PrimitiveKind")
1482+ public UnionPrimitiveKind getPrimitiveKind() { return primitiveKind; }
1483+ @JsonProperty("PrimitiveKind")
1484+ public void setPrimitiveKind(UnionPrimitiveKind value) { this.primitiveKind = value; }
1485+
14701486 @JsonProperty("print")
14711487 public UnionPrint getPrint() { return print; }
14721488 @JsonProperty("print")
@@ -1637,6 +1653,16 @@ public class TopLevel {
16371653 @JsonProperty("Sendable")
16381654 public void setSendable(UnionSendable value) { this.sendable = value; }
16391655
1656+ @JsonProperty("SerialDescriptor")
1657+ public UnionSerialDescriptor getSerialDescriptor() { return serialDescriptor; }
1658+ @JsonProperty("SerialDescriptor")
1659+ public void setSerialDescriptor(UnionSerialDescriptor value) { this.serialDescriptor = value; }
1660+
1661+ @JsonProperty("Serializable")
1662+ public UnionSerializable getSerializable() { return serializable; }
1663+ @JsonProperty("Serializable")
1664+ public void setSerializable(UnionSerializable value) { this.serializable = value; }
1665+
16401666 @JsonProperty("serialize")
16411667 public UnionSerialize getSerialize() { return serialize; }
16421668 @JsonProperty("serialize")
@@ -1647,6 +1673,11 @@ public class TopLevel {
16471673 @JsonProperty("SerializerProvider")
16481674 public void setSerializerProvider(UnionSerializerProvider value) { this.serializerProvider = value; }
16491675
1676+ @JsonProperty("SerialName")
1677+ public UnionSerialName getSerialName() { return serialName; }
1678+ @JsonProperty("SerialName")
1679+ public void setSerialName(UnionSerialName value) { this.serialName = value; }
1680+
16501681 @JsonProperty("set")
16511682 public UnionSet getSet() { return set; }
16521683 @JsonProperty("set")
@@ -1907,6 +1938,11 @@ public class TopLevel {
19071938 @JsonProperty("unsigned")
19081939 public void setUnsigned(UnionUnsigned value) { this.unsigned = value; }
19091940
1941+ @JsonProperty("UseSerializers")
1942+ public UnionUseSerializers getUseSerializers() { return useSerializers; }
1943+ @JsonProperty("UseSerializers")
1944+ public void setUseSerializers(UnionUseSerializers value) { this.useSerializers = value; }
1945+
19101946 @JsonProperty("ushort")
19111947 public UnionUshort getUshort() { return ushort; }
19121948 @JsonProperty("ushort")
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionKSerializer.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionKSerializer.Deserializer.class)
11+@JsonSerialize(using = UnionKSerializer.Serializer.class)
12+public class UnionKSerializer {
13+ public Double doubleValue;
14+ public KSerializer kSerializerValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionKSerializer> {
17+ @Override
18+ public UnionKSerializer deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionKSerializer value = new UnionKSerializer();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.kSerializerValue = jsonParser.readValueAs(KSerializer.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionKSerializer");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionKSerializer> {
37+ @Override
38+ public void serialize(UnionKSerializer obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.kSerializerValue != null) {
44+ jsonGenerator.writeObject(obj.kSerializerValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionPrimitiveKind.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionPrimitiveKind.Deserializer.class)
11+@JsonSerialize(using = UnionPrimitiveKind.Serializer.class)
12+public class UnionPrimitiveKind {
13+ public Double doubleValue;
14+ public PrimitiveKind primitiveKindValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionPrimitiveKind> {
17+ @Override
18+ public UnionPrimitiveKind deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionPrimitiveKind value = new UnionPrimitiveKind();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.primitiveKindValue = jsonParser.readValueAs(PrimitiveKind.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionPrimitiveKind");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionPrimitiveKind> {
37+ @Override
38+ public void serialize(UnionPrimitiveKind obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.primitiveKindValue != null) {
44+ jsonGenerator.writeObject(obj.primitiveKindValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionSerialDescriptor.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialDescriptor.Deserializer.class)
11+@JsonSerialize(using = UnionSerialDescriptor.Serializer.class)
12+public class UnionSerialDescriptor {
13+ public Double doubleValue;
14+ public SerialDescriptor serialDescriptorValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialDescriptor> {
17+ @Override
18+ public UnionSerialDescriptor deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialDescriptor value = new UnionSerialDescriptor();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialDescriptorValue = jsonParser.readValueAs(SerialDescriptor.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialDescriptor");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialDescriptor> {
37+ @Override
38+ public void serialize(UnionSerialDescriptor obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialDescriptorValue != null) {
44+ jsonGenerator.writeObject(obj.serialDescriptorValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionSerializable.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerializable.Deserializer.class)
11+@JsonSerialize(using = UnionSerializable.Serializer.class)
12+public class UnionSerializable {
13+ public Double doubleValue;
14+ public Serializable serializableValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerializable> {
17+ @Override
18+ public UnionSerializable deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerializable value = new UnionSerializable();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serializableValue = jsonParser.readValueAs(Serializable.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerializable");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerializable> {
37+ @Override
38+ public void serialize(UnionSerializable obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serializableValue != null) {
44+ jsonGenerator.writeObject(obj.serializableValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionSerialName.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialName.Deserializer.class)
11+@JsonSerialize(using = UnionSerialName.Serializer.class)
12+public class UnionSerialName {
13+ public Double doubleValue;
14+ public SerialName serialNameValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialName> {
17+ @Override
18+ public UnionSerialName deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialName value = new UnionSerialName();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialNameValue = jsonParser.readValueAs(SerialName.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialName");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialName> {
37+ @Override
38+ public void serialize(UnionSerialName obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialNameValue != null) {
44+ jsonGenerator.writeObject(obj.serialNameValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionUseSerializers.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionUseSerializers.Deserializer.class)
11+@JsonSerialize(using = UnionUseSerializers.Serializer.class)
12+public class UnionUseSerializers {
13+ public Double doubleValue;
14+ public UseSerializers useSerializersValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionUseSerializers> {
17+ @Override
18+ public UnionUseSerializers deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionUseSerializers value = new UnionUseSerializers();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.useSerializersValue = jsonParser.readValueAs(UseSerializers.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionUseSerializers");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionUseSerializers> {
37+ @Override
38+ public void serialize(UnionUseSerializers obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.useSerializersValue != null) {
44+ jsonGenerator.writeObject(obj.useSerializersValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UseSerializers.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class UseSerializers {
7+}
Aschema-javadefault / src / main / java / io / quicktype / KSerializer.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class KSerializer {
7+}
Aschema-javadefault / src / main / java / io / quicktype / PrimitiveKind.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class PrimitiveKind {
7+}
Aschema-javadefault / src / main / java / io / quicktype / SerialDescriptor.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialDescriptor {
7+}
Aschema-javadefault / src / main / java / io / quicktype / Serializable.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class Serializable {
7+}
Aschema-javadefault / src / main / java / io / quicktype / SerialName.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class SerialName {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+36 −0
@@ -175,6 +175,7 @@ public class TopLevel {
175175 private UnionJSONParser jsonParser;
176176 private UnionJSONReader jsonReader;
177177 private UnionJSONTokenType jsonTokenType;
178+ private UnionKSerializer kSerializer;
178179 private UnionLambda lambda;
179180 private UnionLazy lazy;
180181 private UnionLeft left;
@@ -229,6 +230,7 @@ public class TopLevel {
229230 private UnionPostfix postfix;
230231 private UnionPrecedence precedence;
231232 private UnionPrefix prefix;
233+ private UnionPrimitiveKind primitiveKind;
232234 private UnionPrint print;
233235 private UnionPrintf printf;
234236 private UnionPrintMembers printMembers;
@@ -263,8 +265,11 @@ public class TopLevel {
263265 private UnionSelf self;
264266 private UnionSelfUnion topLevelSelf;
265267 private UnionSendable sendable;
268+ private UnionSerialDescriptor serialDescriptor;
269+ private UnionSerializable serializable;
266270 private UnionSerialize serialize;
267271 private UnionSerializerProvider serializerProvider;
272+ private UnionSerialName serialName;
268273 private UnionSet set;
269274 private UnionShort topLevelShort;
270275 private UnionSigned signed;
@@ -317,6 +322,7 @@ public class TopLevel {
317322 private UnionUnowned unowned;
318323 private UnionUnsafe unsafe;
319324 private UnionUnsigned unsigned;
325+ private UnionUseSerializers useSerializers;
320326 private UnionUshort ushort;
321327 private UnionUsing using;
322328 private UnionUtf8JSONReader utf8JSONReader;
@@ -1197,6 +1203,11 @@ public class TopLevel {
11971203 @JsonProperty("JsonTokenType")
11981204 public void setJSONTokenType(UnionJSONTokenType value) { this.jsonTokenType = value; }
11991205
1206+ @JsonProperty("KSerializer")
1207+ public UnionKSerializer getKSerializer() { return kSerializer; }
1208+ @JsonProperty("KSerializer")
1209+ public void setKSerializer(UnionKSerializer value) { this.kSerializer = value; }
1210+
12001211 @JsonProperty("lambda")
12011212 public UnionLambda getLambda() { return lambda; }
12021213 @JsonProperty("lambda")
@@ -1467,6 +1478,11 @@ public class TopLevel {
14671478 @JsonProperty("prefix")
14681479 public void setPrefix(UnionPrefix value) { this.prefix = value; }
14691480
1481+ @JsonProperty("PrimitiveKind")
1482+ public UnionPrimitiveKind getPrimitiveKind() { return primitiveKind; }
1483+ @JsonProperty("PrimitiveKind")
1484+ public void setPrimitiveKind(UnionPrimitiveKind value) { this.primitiveKind = value; }
1485+
14701486 @JsonProperty("print")
14711487 public UnionPrint getPrint() { return print; }
14721488 @JsonProperty("print")
@@ -1637,6 +1653,16 @@ public class TopLevel {
16371653 @JsonProperty("Sendable")
16381654 public void setSendable(UnionSendable value) { this.sendable = value; }
16391655
1656+ @JsonProperty("SerialDescriptor")
1657+ public UnionSerialDescriptor getSerialDescriptor() { return serialDescriptor; }
1658+ @JsonProperty("SerialDescriptor")
1659+ public void setSerialDescriptor(UnionSerialDescriptor value) { this.serialDescriptor = value; }
1660+
1661+ @JsonProperty("Serializable")
1662+ public UnionSerializable getSerializable() { return serializable; }
1663+ @JsonProperty("Serializable")
1664+ public void setSerializable(UnionSerializable value) { this.serializable = value; }
1665+
16401666 @JsonProperty("serialize")
16411667 public UnionSerialize getSerialize() { return serialize; }
16421668 @JsonProperty("serialize")
@@ -1647,6 +1673,11 @@ public class TopLevel {
16471673 @JsonProperty("SerializerProvider")
16481674 public void setSerializerProvider(UnionSerializerProvider value) { this.serializerProvider = value; }
16491675
1676+ @JsonProperty("SerialName")
1677+ public UnionSerialName getSerialName() { return serialName; }
1678+ @JsonProperty("SerialName")
1679+ public void setSerialName(UnionSerialName value) { this.serialName = value; }
1680+
16501681 @JsonProperty("set")
16511682 public UnionSet getSet() { return set; }
16521683 @JsonProperty("set")
@@ -1907,6 +1938,11 @@ public class TopLevel {
19071938 @JsonProperty("unsigned")
19081939 public void setUnsigned(UnionUnsigned value) { this.unsigned = value; }
19091940
1941+ @JsonProperty("UseSerializers")
1942+ public UnionUseSerializers getUseSerializers() { return useSerializers; }
1943+ @JsonProperty("UseSerializers")
1944+ public void setUseSerializers(UnionUseSerializers value) { this.useSerializers = value; }
1945+
19101946 @JsonProperty("ushort")
19111947 public UnionUshort getUshort() { return ushort; }
19121948 @JsonProperty("ushort")
Aschema-javadefault / src / main / java / io / quicktype / UnionKSerializer.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionKSerializer.Deserializer.class)
11+@JsonSerialize(using = UnionKSerializer.Serializer.class)
12+public class UnionKSerializer {
13+ public Double doubleValue;
14+ public KSerializer kSerializerValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionKSerializer> {
17+ @Override
18+ public UnionKSerializer deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionKSerializer value = new UnionKSerializer();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.kSerializerValue = jsonParser.readValueAs(KSerializer.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionKSerializer");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionKSerializer> {
37+ @Override
38+ public void serialize(UnionKSerializer obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.kSerializerValue != null) {
44+ jsonGenerator.writeObject(obj.kSerializerValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionPrimitiveKind.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionPrimitiveKind.Deserializer.class)
11+@JsonSerialize(using = UnionPrimitiveKind.Serializer.class)
12+public class UnionPrimitiveKind {
13+ public Double doubleValue;
14+ public PrimitiveKind primitiveKindValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionPrimitiveKind> {
17+ @Override
18+ public UnionPrimitiveKind deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionPrimitiveKind value = new UnionPrimitiveKind();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.primitiveKindValue = jsonParser.readValueAs(PrimitiveKind.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionPrimitiveKind");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionPrimitiveKind> {
37+ @Override
38+ public void serialize(UnionPrimitiveKind obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.primitiveKindValue != null) {
44+ jsonGenerator.writeObject(obj.primitiveKindValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionSerialDescriptor.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialDescriptor.Deserializer.class)
11+@JsonSerialize(using = UnionSerialDescriptor.Serializer.class)
12+public class UnionSerialDescriptor {
13+ public Double doubleValue;
14+ public SerialDescriptor serialDescriptorValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialDescriptor> {
17+ @Override
18+ public UnionSerialDescriptor deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialDescriptor value = new UnionSerialDescriptor();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialDescriptorValue = jsonParser.readValueAs(SerialDescriptor.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialDescriptor");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialDescriptor> {
37+ @Override
38+ public void serialize(UnionSerialDescriptor obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialDescriptorValue != null) {
44+ jsonGenerator.writeObject(obj.serialDescriptorValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionSerializable.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerializable.Deserializer.class)
11+@JsonSerialize(using = UnionSerializable.Serializer.class)
12+public class UnionSerializable {
13+ public Double doubleValue;
14+ public Serializable serializableValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerializable> {
17+ @Override
18+ public UnionSerializable deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerializable value = new UnionSerializable();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serializableValue = jsonParser.readValueAs(Serializable.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerializable");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerializable> {
37+ @Override
38+ public void serialize(UnionSerializable obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serializableValue != null) {
44+ jsonGenerator.writeObject(obj.serializableValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionSerialName.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionSerialName.Deserializer.class)
11+@JsonSerialize(using = UnionSerialName.Serializer.class)
12+public class UnionSerialName {
13+ public Double doubleValue;
14+ public SerialName serialNameValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionSerialName> {
17+ @Override
18+ public UnionSerialName deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionSerialName value = new UnionSerialName();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.serialNameValue = jsonParser.readValueAs(SerialName.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionSerialName");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionSerialName> {
37+ @Override
38+ public void serialize(UnionSerialName obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.serialNameValue != null) {
44+ jsonGenerator.writeObject(obj.serialNameValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionUseSerializers.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionUseSerializers.Deserializer.class)
11+@JsonSerialize(using = UnionUseSerializers.Serializer.class)
12+public class UnionUseSerializers {
13+ public Double doubleValue;
14+ public UseSerializers useSerializersValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionUseSerializers> {
17+ @Override
18+ public UnionUseSerializers deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionUseSerializers value = new UnionUseSerializers();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.useSerializersValue = jsonParser.readValueAs(UseSerializers.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionUseSerializers");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionUseSerializers> {
37+ @Override
38+ public void serialize(UnionUseSerializers obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.useSerializersValue != null) {
44+ jsonGenerator.writeObject(obj.useSerializersValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UseSerializers.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class UseSerializers {
7+}
Mschema-javascript-prop-typesdefault / toplevel.js+24 −0
@@ -48,6 +48,7 @@ let _JSONNode;
4848 let _JSONParser;
4949 let _JSONReader;
5050 let _JSONTokenType;
51+let _KSerializer;
5152 let _Locale;
5253 let _MapEntry;
5354 let _No;
@@ -57,11 +58,15 @@ let _NSString;
5758 let _Null;
5859 let _None;
5960 let _ObjectMapper;
61+let _PrimitiveKind;
6062 let _Protocol;
6163 let _RegExp;
6264 let _Sel;
6365 let _Self;
6466 let _Sendable;
67+let _SerialDescriptor;
68+let _SerialName;
69+let _Serializable;
6570 let _SerializerProvider;
6671 let _SimpleModule;
6772 let _Standards;
@@ -73,6 +78,7 @@ let _TimeZone;
7378 let _True;
7479 let _Type;
7580 let _UUID;
81+let _UseSerializers;
7682 let _Utf8JSONReader;
7783 let _Utf8JSONWriter;
7884 let _Yes;
@@ -415,6 +421,8 @@ _JSONReader = PropTypes.shape({
415421 });
416422 _JSONTokenType = PropTypes.shape({
417423 });
424+_KSerializer = PropTypes.shape({
425+});
418426 _Locale = PropTypes.shape({
419427 });
420428 _MapEntry = PropTypes.shape({
@@ -433,6 +441,8 @@ _None = PropTypes.shape({
433441 });
434442 _ObjectMapper = PropTypes.shape({
435443 });
444+_PrimitiveKind = PropTypes.shape({
445+});
436446 _Protocol = PropTypes.shape({
437447 });
438448 _RegExp = PropTypes.shape({
@@ -443,6 +453,12 @@ _Self = PropTypes.shape({
443453 });
444454 _Sendable = PropTypes.shape({
445455 });
456+_SerialDescriptor = PropTypes.shape({
457+});
458+_SerialName = PropTypes.shape({
459+});
460+_Serializable = PropTypes.shape({
461+});
446462 _SerializerProvider = PropTypes.shape({
447463 });
448464 _SimpleModule = PropTypes.shape({
@@ -465,6 +481,8 @@ _Type = PropTypes.shape({
465481 });
466482 _UUID = PropTypes.shape({
467483 });
484+_UseSerializers = PropTypes.shape({
485+});
468486 _Utf8JSONReader = PropTypes.shape({
469487 });
470488 _Utf8JSONWriter = PropTypes.shape({
@@ -1182,6 +1200,7 @@ _TopLevel = PropTypes.shape({
11821200 "JsonParser": PropTypes.oneOfType([_JSONParser, PropTypes.number, PropTypes.oneOf([null])]),
11831201 "JsonReader": PropTypes.oneOfType([_JSONReader, PropTypes.number, PropTypes.oneOf([null])]),
11841202 "JsonTokenType": PropTypes.oneOfType([_JSONTokenType, PropTypes.number, PropTypes.oneOf([null])]),
1203+ "KSerializer": PropTypes.oneOfType([_KSerializer, PropTypes.number, PropTypes.oneOf([null])]),
11851204 "lambda": PropTypes.oneOfType([_Lambda, PropTypes.number, PropTypes.oneOf([null])]),
11861205 "lazy": PropTypes.oneOfType([_Lazy, PropTypes.number, PropTypes.oneOf([null])]),
11871206 "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1236,6 +1255,7 @@ _TopLevel = PropTypes.shape({
12361255 "postfix": PropTypes.oneOfType([_Postfix, PropTypes.number, PropTypes.oneOf([null])]),
12371256 "precedence": PropTypes.oneOfType([_Precedence, PropTypes.number, PropTypes.oneOf([null])]),
12381257 "prefix": PropTypes.oneOfType([_Prefix, PropTypes.number, PropTypes.oneOf([null])]),
1258+ "PrimitiveKind": PropTypes.oneOfType([_PrimitiveKind, PropTypes.number, PropTypes.oneOf([null])]),
12391259 "print": PropTypes.oneOfType([_Print, PropTypes.number, PropTypes.oneOf([null])]),
12401260 "printf": PropTypes.oneOfType([_Printf, PropTypes.number, PropTypes.oneOf([null])]),
12411261 "printMembers": PropTypes.oneOfType([_PrintMembers, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1270,8 +1290,11 @@ _TopLevel = PropTypes.shape({
12701290 "Self": PropTypes.oneOfType([_Self, PropTypes.number, PropTypes.oneOf([null])]),
12711291 "self": PropTypes.oneOfType([_SelfClass, PropTypes.number, PropTypes.oneOf([null])]),
12721292 "Sendable": PropTypes.oneOfType([_Sendable, PropTypes.number, PropTypes.oneOf([null])]),
1293+ "SerialDescriptor": PropTypes.oneOfType([_SerialDescriptor, PropTypes.number, PropTypes.oneOf([null])]),
1294+ "Serializable": PropTypes.oneOfType([_Serializable, PropTypes.number, PropTypes.oneOf([null])]),
12731295 "serialize": PropTypes.oneOfType([_Serialize, PropTypes.number, PropTypes.oneOf([null])]),
12741296 "SerializerProvider": PropTypes.oneOfType([_SerializerProvider, PropTypes.number, PropTypes.oneOf([null])]),
1297+ "SerialName": PropTypes.oneOfType([_SerialName, PropTypes.number, PropTypes.oneOf([null])]),
12751298 "set": PropTypes.oneOfType([_Set, PropTypes.number, PropTypes.oneOf([null])]),
12761299 "short": PropTypes.oneOfType([_Short, PropTypes.number, PropTypes.oneOf([null])]),
12771300 "signed": PropTypes.oneOfType([_Signed, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1324,6 +1347,7 @@ _TopLevel = PropTypes.shape({
13241347 "unowned": PropTypes.oneOfType([_Unowned, PropTypes.number, PropTypes.oneOf([null])]),
13251348 "unsafe": PropTypes.oneOfType([_Unsafe, PropTypes.number, PropTypes.oneOf([null])]),
13261349 "unsigned": PropTypes.oneOfType([_Unsigned, PropTypes.number, PropTypes.oneOf([null])]),
1350+ "UseSerializers": PropTypes.oneOfType([_UseSerializers, PropTypes.number, PropTypes.oneOf([null])]),
13271351 "ushort": PropTypes.oneOfType([_Ushort, PropTypes.number, PropTypes.oneOf([null])]),
13281352 "using": PropTypes.oneOfType([_Using, PropTypes.number, PropTypes.oneOf([null])]),
13291353 "Utf8JsonReader": PropTypes.oneOfType([_Utf8JSONReader, PropTypes.number, PropTypes.oneOf([null])]),
Mschema-javascriptdefault / TopLevel.js+18 −0
@@ -365,6 +365,7 @@ const typeMap = {
365365 { json: "JsonParser", js: "JsonParser", typ: u(undefined, u(r("JSONParser"), 3.14)) },
366366 { json: "JsonReader", js: "JsonReader", typ: u(undefined, u(r("JSONReader"), 3.14)) },
367367 { json: "JsonTokenType", js: "JsonTokenType", typ: u(undefined, u(r("JSONTokenType"), 3.14)) },
368+ { json: "KSerializer", js: "KSerializer", typ: u(undefined, u(r("KSerializer"), 3.14)) },
368369 { json: "lambda", js: "lambda", typ: u(undefined, u(r("Lambda"), 3.14)) },
369370 { json: "lazy", js: "lazy", typ: u(undefined, u(r("Lazy"), 3.14)) },
370371 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
@@ -419,6 +420,7 @@ const typeMap = {
419420 { json: "postfix", js: "postfix", typ: u(undefined, u(r("Postfix"), 3.14)) },
420421 { json: "precedence", js: "precedence", typ: u(undefined, u(r("Precedence"), 3.14)) },
421422 { json: "prefix", js: "prefix", typ: u(undefined, u(r("Prefix"), 3.14)) },
423+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: u(undefined, u(r("PrimitiveKind"), 3.14)) },
422424 { json: "print", js: "print", typ: u(undefined, u(r("Print"), 3.14)) },
423425 { json: "printf", js: "printf", typ: u(undefined, u(r("Printf"), 3.14)) },
424426 { json: "printMembers", js: "printMembers", typ: u(undefined, u(r("PrintMembers"), 3.14)) },
@@ -453,8 +455,11 @@ const typeMap = {
453455 { json: "Self", js: "Self", typ: u(undefined, u(r("Self"), 3.14)) },
454456 { json: "self", js: "self", typ: u(undefined, u(r("SelfClass"), 3.14)) },
455457 { json: "Sendable", js: "Sendable", typ: u(undefined, u(r("Sendable"), 3.14)) },
458+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: u(undefined, u(r("SerialDescriptor"), 3.14)) },
459+ { json: "Serializable", js: "Serializable", typ: u(undefined, u(r("Serializable"), 3.14)) },
456460 { json: "serialize", js: "serialize", typ: u(undefined, u(r("Serialize"), 3.14)) },
457461 { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(r("SerializerProvider"), 3.14)) },
462+ { json: "SerialName", js: "SerialName", typ: u(undefined, u(r("SerialName"), 3.14)) },
458463 { json: "set", js: "set", typ: u(undefined, u(r("Set"), 3.14)) },
459464 { json: "short", js: "short", typ: u(undefined, u(r("Short"), 3.14)) },
460465 { json: "signed", js: "signed", typ: u(undefined, u(r("Signed"), 3.14)) },
@@ -507,6 +512,7 @@ const typeMap = {
507512 { json: "unowned", js: "unowned", typ: u(undefined, u(r("Unowned"), 3.14)) },
508513 { json: "unsafe", js: "unsafe", typ: u(undefined, u(r("Unsafe"), 3.14)) },
509514 { json: "unsigned", js: "unsigned", typ: u(undefined, u(r("Unsigned"), 3.14)) },
515+ { json: "UseSerializers", js: "UseSerializers", typ: u(undefined, u(r("UseSerializers"), 3.14)) },
510516 { json: "ushort", js: "ushort", typ: u(undefined, u(r("Ushort"), 3.14)) },
511517 { json: "using", js: "using", typ: u(undefined, u(r("Using"), 3.14)) },
512518 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: u(undefined, u(r("Utf8JSONReader"), 3.14)) },
@@ -597,6 +603,8 @@ const typeMap = {
597603 ], false),
598604 "JSONTokenType": o([
599605 ], false),
606+ "KSerializer": o([
607+ ], false),
600608 "Locale": o([
601609 ], false),
602610 "MapEntry": o([
@@ -615,6 +623,8 @@ const typeMap = {
615623 ], false),
616624 "ObjectMapper": o([
617625 ], false),
626+ "PrimitiveKind": o([
627+ ], false),
618628 "Protocol": o([
619629 ], false),
620630 "RegExp": o([
@@ -625,6 +635,12 @@ const typeMap = {
625635 ], false),
626636 "Sendable": o([
627637 ], false),
638+ "SerialDescriptor": o([
639+ ], false),
640+ "SerialName": o([
641+ ], false),
642+ "Serializable": o([
643+ ], false),
628644 "SerializerProvider": o([
629645 ], false),
630646 "SimpleModule": o([
@@ -647,6 +663,8 @@ const typeMap = {
647663 ], false),
648664 "UUID": o([
649665 ], false),
666+ "UseSerializers": o([
667+ ], false),
650668 "Utf8JSONReader": o([
651669 ], false),
652670 "Utf8JSONWriter": o([
Mschema-objective-cdefault / QTTopLevel.h+30 −0
@@ -148,6 +148,7 @@
148148 @class QTJSONToken;
149149 @class QTJSONTokenType;
150150 @class QTJSONWriter;
151+@class QTKSerializer;
151152 @class QTLambda;
152153 @class QTLazy;
153154 @class QTLeft;
@@ -196,6 +197,7 @@
196197 @class QTPostfix;
197198 @class QTPrecedence;
198199 @class QTPrefix;
200+@class QTPrimitiveKind;
199201 @class QTPrint;
200202 @class QTPrintMembers;
201203 @class QTPrintf;
@@ -275,6 +277,9 @@
275277 @class QTSelect;
276278 @class QTSelf;
277279 @class QTSendable;
280+@class QTSerialDescriptor;
281+@class QTSerialName;
282+@class QTSerializable;
278283 @class QTSerialize;
279284 @class QTSerializerProvider;
280285 @class QTSet;
@@ -322,6 +327,7 @@
322327 @class QTUndefined;
323328 @class QTUnowned;
324329 @class QTUnsafe;
330+@class QTUseSerializers;
325331 @class QTUshort;
326332 @class QTUsing;
327333 @class QTUtf8JSONReader;
@@ -523,6 +529,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
523529 @property (nonatomic, nullable, copy) id jsonParser;
524530 @property (nonatomic, nullable, copy) id jsonReader;
525531 @property (nonatomic, nullable, copy) id jsonTokenType;
532+@property (nonatomic, nullable, copy) id kSerializer;
526533 @property (nonatomic, nullable, copy) id lambda;
527534 @property (nonatomic, nullable, copy) id lazy;
528535 @property (nonatomic, nullable, copy) id left;
@@ -577,6 +584,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
577584 @property (nonatomic, nullable, copy) id postfix;
578585 @property (nonatomic, nullable, copy) id precedence;
579586 @property (nonatomic, nullable, copy) id prefix;
587+@property (nonatomic, nullable, copy) id primitiveKind;
580588 @property (nonatomic, nullable, copy) id print;
581589 @property (nonatomic, nullable, copy) id printf;
582590 @property (nonatomic, nullable, copy) id printMembers;
@@ -611,8 +619,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
611619 @property (nonatomic, nullable, copy) id self;
612620 @property (nonatomic, nullable, copy) id qtTopLevelSelf;
613621 @property (nonatomic, nullable, copy) id sendable;
622+@property (nonatomic, nullable, copy) id serialDescriptor;
623+@property (nonatomic, nullable, copy) id serializable;
614624 @property (nonatomic, nullable, copy) id serialize;
615625 @property (nonatomic, nullable, copy) id serializerProvider;
626+@property (nonatomic, nullable, copy) id serialName;
616627 @property (nonatomic, nullable, copy) id set;
617628 @property (nonatomic, nullable, copy) id qtTopLevelShort;
618629 @property (nonatomic, nullable, copy) id qtTopLevelSigned;
@@ -665,6 +676,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
665676 @property (nonatomic, nullable, copy) id unowned;
666677 @property (nonatomic, nullable, copy) id unsafe;
667678 @property (nonatomic, nullable, copy) id qtTopLevelUnsigned;
679+@property (nonatomic, nullable, copy) id useSerializers;
668680 @property (nonatomic, nullable, copy) id ushort;
669681 @property (nonatomic, nullable, copy) id using;
670682 @property (nonatomic, nullable, copy) id utf8JSONReader;
@@ -1117,6 +1129,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11171129 @interface QTJSONWriter : NSObject
11181130 @end
11191131
1132+@interface QTKSerializer : NSObject
1133+@end
1134+
11201135 @interface QTLambda : NSObject
11211136 @end
11221137
@@ -1261,6 +1276,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12611276 @interface QTPrefix : NSObject
12621277 @end
12631278
1279+@interface QTPrimitiveKind : NSObject
1280+@end
1281+
12641282 @interface QTPrint : NSObject
12651283 @end
12661284
@@ -1498,6 +1516,15 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14981516 @interface QTSendable : NSObject
14991517 @end
15001518
1519+@interface QTSerialDescriptor : NSObject
1520+@end
1521+
1522+@interface QTSerialName : NSObject
1523+@end
1524+
1525+@interface QTSerializable : NSObject
1526+@end
1527+
15011528 @interface QTSerialize : NSObject
15021529 @end
15031530
@@ -1639,6 +1666,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16391666 @interface QTUnsafe : NSObject
16401667 @end
16411668
1669+@interface QTUseSerializers : NSObject
1670+@end
1671+
16421672 @interface QTUshort : NSObject
16431673 @end
Mschema-objective-cdefault / QTTopLevel.m+270 −0
@@ -723,6 +723,11 @@ NS_ASSUME_NONNULL_BEGIN
723723 - (NSDictionary *)JSONDictionary;
724724 @end
725725
726+@interface QTKSerializer (JSONConversion)
727++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
728+- (NSDictionary *)JSONDictionary;
729+@end
730+
726731 @interface QTLambda (JSONConversion)
727732 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
728733 - (NSDictionary *)JSONDictionary;
@@ -963,6 +968,11 @@ NS_ASSUME_NONNULL_BEGIN
963968 - (NSDictionary *)JSONDictionary;
964969 @end
965970
971+@interface QTPrimitiveKind (JSONConversion)
972++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
973+- (NSDictionary *)JSONDictionary;
974+@end
975+
966976 @interface QTPrint (JSONConversion)
967977 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
968978 - (NSDictionary *)JSONDictionary;
@@ -1358,6 +1368,21 @@ NS_ASSUME_NONNULL_BEGIN
13581368 - (NSDictionary *)JSONDictionary;
13591369 @end
13601370
1371+@interface QTSerialDescriptor (JSONConversion)
1372++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1373+- (NSDictionary *)JSONDictionary;
1374+@end
1375+
1376+@interface QTSerialName (JSONConversion)
1377++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1378+- (NSDictionary *)JSONDictionary;
1379+@end
1380+
1381+@interface QTSerializable (JSONConversion)
1382++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1383+- (NSDictionary *)JSONDictionary;
1384+@end
1385+
13611386 @interface QTSerialize (JSONConversion)
13621387 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13631388 - (NSDictionary *)JSONDictionary;
@@ -1593,6 +1618,11 @@ NS_ASSUME_NONNULL_BEGIN
15931618 - (NSDictionary *)JSONDictionary;
15941619 @end
15951620
1621+@interface QTUseSerializers (JSONConversion)
1622++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1623+- (NSDictionary *)JSONDictionary;
1624+@end
1625+
15961626 @interface QTUshort (JSONConversion)
15971627 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
15981628 - (NSDictionary *)JSONDictionary;
@@ -1886,6 +1916,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
18861916 @"JsonParser": @"jsonParser",
18871917 @"JsonReader": @"jsonReader",
18881918 @"JsonTokenType": @"jsonTokenType",
1919+ @"KSerializer": @"kSerializer",
18891920 @"lambda": @"lambda",
18901921 @"lazy": @"lazy",
18911922 @"left": @"left",
@@ -1940,6 +1971,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19401971 @"postfix": @"postfix",
19411972 @"precedence": @"precedence",
19421973 @"prefix": @"prefix",
1974+ @"PrimitiveKind": @"primitiveKind",
19431975 @"print": @"print",
19441976 @"printf": @"printf",
19451977 @"printMembers": @"printMembers",
@@ -1974,8 +2006,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19742006 @"Self": @"self",
19752007 @"self": @"qtTopLevelSelf",
19762008 @"Sendable": @"sendable",
2009+ @"SerialDescriptor": @"serialDescriptor",
2010+ @"Serializable": @"serializable",
19772011 @"serialize": @"serialize",
19782012 @"SerializerProvider": @"serializerProvider",
2013+ @"SerialName": @"serialName",
19792014 @"set": @"set",
19802015 @"short": @"qtTopLevelShort",
19812016 @"signed": @"qtTopLevelSigned",
@@ -2028,6 +2063,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
20282063 @"unowned": @"unowned",
20292064 @"unsafe": @"unsafe",
20302065 @"unsigned": @"qtTopLevelUnsigned",
2066+ @"UseSerializers": @"useSerializers",
20312067 @"ushort": @"ushort",
20322068 @"using": @"using",
20332069 @"Utf8JsonReader": @"utf8JSONReader",
@@ -7649,6 +7685,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
76497685 }
76507686 @end
76517687
7688+@implementation QTKSerializer
7689++ (NSDictionary<NSString *, NSString *> *)properties
7690+{
7691+ static NSDictionary<NSString *, NSString *> *properties;
7692+ return properties = properties ? properties : @{
7693+ };
7694+}
7695+
7696++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
7697+{
7698+ return [dict isKindOfClass:NSDictionary.class] ? [[QTKSerializer alloc] initWithJSONDictionary:dict] : nil;
7699+}
7700+
7701+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7702+{
7703+ if (self = [super init]) {
7704+ [self setValuesForKeysWithDictionary:dict];
7705+ }
7706+ return self;
7707+}
7708+
7709+- (void)setValue:(nullable id)value forKey:(NSString *)key
7710+{
7711+ id resolved = QTKSerializer.properties[key];
7712+ if (resolved) [super setValue:value forKey:resolved];
7713+}
7714+
7715+- (void)setNilValueForKey:(NSString *)key
7716+{
7717+ id resolved = QTKSerializer.properties[key];
7718+ if (resolved) [super setValue:@(0) forKey:resolved];
7719+}
7720+
7721+- (NSDictionary *)JSONDictionary
7722+{
7723+ return [self dictionaryWithValuesForKeys:QTKSerializer.properties.allValues];
7724+}
7725+@end
7726+
76527727 @implementation QTLambda
76537728 + (NSDictionary<NSString *, NSString *> *)properties
76547729 {
@@ -9521,6 +9596,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
95219596 }
95229597 @end
95239598
9599+@implementation QTPrimitiveKind
9600++ (NSDictionary<NSString *, NSString *> *)properties
9601+{
9602+ static NSDictionary<NSString *, NSString *> *properties;
9603+ return properties = properties ? properties : @{
9604+ };
9605+}
9606+
9607++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9608+{
9609+ return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
9610+}
9611+
9612+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9613+{
9614+ if (self = [super init]) {
9615+ [self setValuesForKeysWithDictionary:dict];
9616+ }
9617+ return self;
9618+}
9619+
9620+- (void)setValue:(nullable id)value forKey:(NSString *)key
9621+{
9622+ id resolved = QTPrimitiveKind.properties[key];
9623+ if (resolved) [super setValue:value forKey:resolved];
9624+}
9625+
9626+- (void)setNilValueForKey:(NSString *)key
9627+{
9628+ id resolved = QTPrimitiveKind.properties[key];
9629+ if (resolved) [super setValue:@(0) forKey:resolved];
9630+}
9631+
9632+- (NSDictionary *)JSONDictionary
9633+{
9634+ return [self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues];
9635+}
9636+@end
9637+
95249638 @implementation QTPrint
95259639 + (NSDictionary<NSString *, NSString *> *)properties
95269640 {
@@ -12602,6 +12716,123 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1260212716 }
1260312717 @end
1260412718
12719+@implementation QTSerialDescriptor
12720++ (NSDictionary<NSString *, NSString *> *)properties
12721+{
12722+ static NSDictionary<NSString *, NSString *> *properties;
12723+ return properties = properties ? properties : @{
12724+ };
12725+}
12726+
12727++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12728+{
12729+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialDescriptor alloc] initWithJSONDictionary:dict] : nil;
12730+}
12731+
12732+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12733+{
12734+ if (self = [super init]) {
12735+ [self setValuesForKeysWithDictionary:dict];
12736+ }
12737+ return self;
12738+}
12739+
12740+- (void)setValue:(nullable id)value forKey:(NSString *)key
12741+{
12742+ id resolved = QTSerialDescriptor.properties[key];
12743+ if (resolved) [super setValue:value forKey:resolved];
12744+}
12745+
12746+- (void)setNilValueForKey:(NSString *)key
12747+{
12748+ id resolved = QTSerialDescriptor.properties[key];
12749+ if (resolved) [super setValue:@(0) forKey:resolved];
12750+}
12751+
12752+- (NSDictionary *)JSONDictionary
12753+{
12754+ return [self dictionaryWithValuesForKeys:QTSerialDescriptor.properties.allValues];
12755+}
12756+@end
12757+
12758+@implementation QTSerialName
12759++ (NSDictionary<NSString *, NSString *> *)properties
12760+{
12761+ static NSDictionary<NSString *, NSString *> *properties;
12762+ return properties = properties ? properties : @{
12763+ };
12764+}
12765+
12766++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12767+{
12768+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialName alloc] initWithJSONDictionary:dict] : nil;
12769+}
12770+
12771+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12772+{
12773+ if (self = [super init]) {
12774+ [self setValuesForKeysWithDictionary:dict];
12775+ }
12776+ return self;
12777+}
12778+
12779+- (void)setValue:(nullable id)value forKey:(NSString *)key
12780+{
12781+ id resolved = QTSerialName.properties[key];
12782+ if (resolved) [super setValue:value forKey:resolved];
12783+}
12784+
12785+- (void)setNilValueForKey:(NSString *)key
12786+{
12787+ id resolved = QTSerialName.properties[key];
12788+ if (resolved) [super setValue:@(0) forKey:resolved];
12789+}
12790+
12791+- (NSDictionary *)JSONDictionary
12792+{
12793+ return [self dictionaryWithValuesForKeys:QTSerialName.properties.allValues];
12794+}
12795+@end
12796+
12797+@implementation QTSerializable
12798++ (NSDictionary<NSString *, NSString *> *)properties
12799+{
12800+ static NSDictionary<NSString *, NSString *> *properties;
12801+ return properties = properties ? properties : @{
12802+ };
12803+}
12804+
12805++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12806+{
12807+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializable alloc] initWithJSONDictionary:dict] : nil;
12808+}
12809+
12810+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12811+{
12812+ if (self = [super init]) {
12813+ [self setValuesForKeysWithDictionary:dict];
12814+ }
12815+ return self;
12816+}
12817+
12818+- (void)setValue:(nullable id)value forKey:(NSString *)key
12819+{
12820+ id resolved = QTSerializable.properties[key];
12821+ if (resolved) [super setValue:value forKey:resolved];
12822+}
12823+
12824+- (void)setNilValueForKey:(NSString *)key
12825+{
12826+ id resolved = QTSerializable.properties[key];
12827+ if (resolved) [super setValue:@(0) forKey:resolved];
12828+}
12829+
12830+- (NSDictionary *)JSONDictionary
12831+{
12832+ return [self dictionaryWithValuesForKeys:QTSerializable.properties.allValues];
12833+}
12834+@end
12835+
1260512836 @implementation QTSerialize
1260612837 + (NSDictionary<NSString *, NSString *> *)properties
1260712838 {
@@ -14435,6 +14666,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1443514666 }
1443614667 @end
1443714668
14669+@implementation QTUseSerializers
14670++ (NSDictionary<NSString *, NSString *> *)properties
14671+{
14672+ static NSDictionary<NSString *, NSString *> *properties;
14673+ return properties = properties ? properties : @{
14674+ };
14675+}
14676+
14677++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
14678+{
14679+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil;
14680+}
14681+
14682+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
14683+{
14684+ if (self = [super init]) {
14685+ [self setValuesForKeysWithDictionary:dict];
14686+ }
14687+ return self;
14688+}
14689+
14690+- (void)setValue:(nullable id)value forKey:(NSString *)key
14691+{
14692+ id resolved = QTUseSerializers.properties[key];
14693+ if (resolved) [super setValue:value forKey:resolved];
14694+}
14695+
14696+- (void)setNilValueForKey:(NSString *)key
14697+{
14698+ id resolved = QTUseSerializers.properties[key];
14699+ if (resolved) [super setValue:@(0) forKey:resolved];
14700+}
14701+
14702+- (NSDictionary *)JSONDictionary
14703+{
14704+ return [self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues];
14705+}
14706+@end
14707+
1443814708 @implementation QTUshort
1443914709 + (NSDictionary<NSString *, NSString *> *)properties
1444014710 {
Mschema-phpdefault / TopLevel.php+930 −162
@@ -176,6 +176,7 @@ class TopLevel {
176176 private JSONParser|float|null $jsonParser; // json:JsonParser Optional
177177 private JSONReader|float|null $jsonReader; // json:JsonReader Optional
178178 private JSONTokenType|float|null $jsonTokenType; // json:JsonTokenType Optional
179+ private KSerializer|float|null $kSerializer; // json:KSerializer Optional
179180 private Lambda|float|null $lambda; // json:lambda Optional
180181 private Lazy|float|null $lazy; // json:lazy Optional
181182 private Left|float|null $left; // json:left Optional
@@ -230,6 +231,7 @@ class TopLevel {
230231 private Postfix|float|null $postfix; // json:postfix Optional
231232 private Precedence|float|null $precedence; // json:precedence Optional
232233 private Prefix|float|null $prefix; // json:prefix Optional
234+ private PrimitiveKind|float|null $primitiveKind; // json:PrimitiveKind Optional
233235 private PrintClass|float|null $print; // json:print Optional
234236 private Printf|float|null $printf; // json:printf Optional
235237 private PrintMembers|float|null $printMembers; // json:printMembers Optional
@@ -264,8 +266,11 @@ class TopLevel {
264266 private SelfClass|float|null $self; // json:Self Optional
265267 private UnionSelfSelf|float|null $topLevelSelf; // json:self Optional
266268 private Sendable|float|null $sendable; // json:Sendable Optional
269+ private SerialDescriptor|float|null $serialDescriptor; // json:SerialDescriptor Optional
270+ private SerializableClass|float|null $serializable; // json:Serializable Optional
267271 private Serialize|float|null $serialize; // json:serialize Optional
268272 private SerializerProvider|float|null $serializerProvider; // json:SerializerProvider Optional
273+ private SerialName|float|null $serialName; // json:SerialName Optional
269274 private Set|float|null $set; // json:set Optional
270275 private Short|float|null $short; // json:short Optional
271276 private Signed|float|null $signed; // json:signed Optional
@@ -318,6 +323,7 @@ class TopLevel {
318323 private Unowned|float|null $unowned; // json:unowned Optional
319324 private Unsafe|float|null $unsafe; // json:unsafe Optional
320325 private Unsigned|float|null $unsigned; // json:unsigned Optional
326+ private UseSerializers|float|null $useSerializers; // json:UseSerializers Optional
321327 private Ushort|float|null $ushort; // json:ushort Optional
322328 private Using|float|null $using; // json:using Optional
323329 private Utf8JSONReader|float|null $utf8JSONReader; // json:Utf8JsonReader Optional
@@ -511,6 +517,7 @@ class TopLevel {
511517 * @param JSONParser|float|null $jsonParser
512518 * @param JSONReader|float|null $jsonReader
513519 * @param JSONTokenType|float|null $jsonTokenType
520+ * @param KSerializer|float|null $kSerializer
514521 * @param Lambda|float|null $lambda
515522 * @param Lazy|float|null $lazy
516523 * @param Left|float|null $left
@@ -565,6 +572,7 @@ class TopLevel {
565572 * @param Postfix|float|null $postfix
566573 * @param Precedence|float|null $precedence
567574 * @param Prefix|float|null $prefix
575+ * @param PrimitiveKind|float|null $primitiveKind
568576 * @param PrintClass|float|null $print
569577 * @param Printf|float|null $printf
570578 * @param PrintMembers|float|null $printMembers
@@ -599,8 +607,11 @@ class TopLevel {
599607 * @param SelfClass|float|null $self
600608 * @param UnionSelfSelf|float|null $topLevelSelf
601609 * @param Sendable|float|null $sendable
610+ * @param SerialDescriptor|float|null $serialDescriptor
611+ * @param SerializableClass|float|null $serializable
602612 * @param Serialize|float|null $serialize
603613 * @param SerializerProvider|float|null $serializerProvider
614+ * @param SerialName|float|null $serialName
604615 * @param Set|float|null $set
605616 * @param Short|float|null $short
606617 * @param Signed|float|null $signed
@@ -653,6 +664,7 @@ class TopLevel {
653664 * @param Unowned|float|null $unowned
654665 * @param Unsafe|float|null $unsafe
655666 * @param Unsigned|float|null $unsigned
667+ * @param UseSerializers|float|null $useSerializers
656668 * @param Ushort|float|null $ushort
657669 * @param Using|float|null $using
658670 * @param Utf8JSONReader|float|null $utf8JSONReader
@@ -673,7 +685,7 @@ class TopLevel {
673685 * @param Yes|float|null $yes
674686 * @param YieldClass|float|null $yield
675687 */
676- public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
688+ public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrimitiveKind|float|null $primitiveKind, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, UseSerializers|float|null $useSerializers, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
677689 $this->empty = $empty;
678690 $this->topLevelBool = $topLevelBool;
679691 $this->complex = $complex;
@@ -846,6 +858,7 @@ class TopLevel {
846858 $this->jsonParser = $jsonParser;
847859 $this->jsonReader = $jsonReader;
848860 $this->jsonTokenType = $jsonTokenType;
861+ $this->kSerializer = $kSerializer;
849862 $this->lambda = $lambda;
850863 $this->lazy = $lazy;
851864 $this->left = $left;
@@ -900,6 +913,7 @@ class TopLevel {
900913 $this->postfix = $postfix;
901914 $this->precedence = $precedence;
902915 $this->prefix = $prefix;
916+ $this->primitiveKind = $primitiveKind;
903917 $this->print = $print;
904918 $this->printf = $printf;
905919 $this->printMembers = $printMembers;
@@ -934,8 +948,11 @@ class TopLevel {
934948 $this->self = $self;
935949 $this->topLevelSelf = $topLevelSelf;
936950 $this->sendable = $sendable;
951+ $this->serialDescriptor = $serialDescriptor;
952+ $this->serializable = $serializable;
937953 $this->serialize = $serialize;
938954 $this->serializerProvider = $serializerProvider;
955+ $this->serialName = $serialName;
939956 $this->set = $set;
940957 $this->short = $short;
941958 $this->signed = $signed;
@@ -988,6 +1005,7 @@ class TopLevel {
9881005 $this->unowned = $unowned;
9891006 $this->unsafe = $unsafe;
9901007 $this->unsigned = $unsigned;
1008+ $this->useSerializers = $useSerializers;
9911009 $this->ushort = $ushort;
9921010 $this->using = $using;
9931011 $this->utf8JSONReader = $utf8JSONReader;
@@ -14062,6 +14080,82 @@ class TopLevel {
1406214080 return JSONTokenType::sample(); /*202:jsonTokenType*/
1406314081 }
1406414082
14083+ /**
14084+ * @param stdClass|float|null $value
14085+ * @throws Exception
14086+ * @return KSerializer|float|null
14087+ */
14088+ public static function fromKSerializer(stdClass|float|null $value): KSerializer|float|null {
14089+ if (is_null($value)) {
14090+ return $value; /*null*/
14091+ } elseif (is_object($value)) {
14092+ return KSerializer::from($value); /*class*/
14093+ } elseif (is_float($value) || is_int($value)) {
14094+ return $value; /*float*/
14095+ } else {
14096+ throw new Exception('Cannot deserialize union value in TopLevel');
14097+ }
14098+ }
14099+
14100+ /**
14101+ * @throws Exception
14102+ * @return stdClass|float|null
14103+ */
14104+ public function toKSerializer(): stdClass|float|null {
14105+ if (TopLevel::validateKSerializer($this->kSerializer)) {
14106+ if (is_null($this->kSerializer)) {
14107+ return $this->kSerializer; /*null*/
14108+ } elseif ($this->kSerializer instanceof KSerializer) {
14109+ return $this->kSerializer->to(); /*class*/
14110+ } elseif (is_float($this->kSerializer) || is_int($this->kSerializer)) {
14111+ return $this->kSerializer; /*float*/
14112+ } else {
14113+ throw new Exception('Union value has no matching member in TopLevel');
14114+ }
14115+ }
14116+ throw new Exception('never get to this TopLevel::kSerializer');
14117+ }
14118+
14119+ /**
14120+ * @param KSerializer|float|null
14121+ * @return bool
14122+ * @throws Exception
14123+ */
14124+ public static function validateKSerializer(KSerializer|float|null $value): bool {
14125+ if (is_null($value)) {
14126+ if (!is_null($value)) {
14127+ throw new Exception("Attribute Error:TopLevel::kSerializer");
14128+ }
14129+ } elseif ($value instanceof KSerializer) {
14130+ $value->validate();
14131+ } elseif (is_float($value) || is_int($value)) {
14132+ if (!is_float($value) && !is_int($value)) {
14133+ throw new Exception("Attribute Error:TopLevel::kSerializer");
14134+ }
14135+ } else {
14136+ throw new Exception("Attribute Error:TopLevel::kSerializer");
14137+ }
14138+ return true;
14139+ }
14140+
14141+ /**
14142+ * @throws Exception
14143+ * @return KSerializer|float|null
14144+ */
14145+ public function getKSerializer(): KSerializer|float|null {
14146+ if (TopLevel::validateKSerializer($this->kSerializer)) {
14147+ return $this->kSerializer;
14148+ }
14149+ throw new Exception('never get to getKSerializer TopLevel::kSerializer');
14150+ }
14151+
14152+ /**
14153+ * @return KSerializer|float|null
14154+ */
14155+ public static function sampleKSerializer(): KSerializer|float|null {
14156+ return KSerializer::sample(); /*203:kSerializer*/
14157+ }
14158+
1406514159 /**
1406614160 * @param stdClass|float|null $value
1406714161 * @throws Exception
@@ -14135,7 +14229,7 @@ class TopLevel {
1413514229 * @return Lambda|float|null
1413614230 */
1413714231 public static function sampleLambda(): Lambda|float|null {
14138- return Lambda::sample(); /*203:lambda*/
14232+ return Lambda::sample(); /*204:lambda*/
1413914233 }
1414014234
1414114235 /**
@@ -14211,7 +14305,7 @@ class TopLevel {
1421114305 * @return Lazy|float|null
1421214306 */
1421314307 public static function sampleLazy(): Lazy|float|null {
14214- return Lazy::sample(); /*204:lazy*/
14308+ return Lazy::sample(); /*205:lazy*/
1421514309 }
1421614310
1421714311 /**
@@ -14287,7 +14381,7 @@ class TopLevel {
1428714381 * @return Left|float|null
1428814382 */
1428914383 public static function sampleLeft(): Left|float|null {
14290- return Left::sample(); /*205:left*/
14384+ return Left::sample(); /*206:left*/
1429114385 }
1429214386
1429314387 /**
@@ -14363,7 +14457,7 @@ class TopLevel {
1436314457 * @return Let|float|null
1436414458 */
1436514459 public static function sampleLet(): Let|float|null {
14366- return Let::sample(); /*206:let*/
14460+ return Let::sample(); /*207:let*/
1436714461 }
1436814462
1436914463 /**
@@ -14439,7 +14533,7 @@ class TopLevel {
1443914533 * @return ListClass|float|null
1444014534 */
1444114535 public static function sampleList(): ListClass|float|null {
14442- return ListClass::sample(); /*207:list*/
14536+ return ListClass::sample(); /*208:list*/
1444314537 }
1444414538
1444514539 /**
@@ -14515,7 +14609,7 @@ class TopLevel {
1451514609 * @return LocaleClass|float|null
1451614610 */
1451714611 public static function sampleLocale(): LocaleClass|float|null {
14518- return LocaleClass::sample(); /*208:locale*/
14612+ return LocaleClass::sample(); /*209:locale*/
1451914613 }
1452014614
1452114615 /**
@@ -14591,7 +14685,7 @@ class TopLevel {
1459114685 * @return Lock|float|null
1459214686 */
1459314687 public static function sampleLock(): Lock|float|null {
14594- return Lock::sample(); /*209:lock*/
14688+ return Lock::sample(); /*210:lock*/
1459514689 }
1459614690
1459714691 /**
@@ -14667,7 +14761,7 @@ class TopLevel {
1466714761 * @return Long|float|null
1466814762 */
1466914763 public static function sampleLong(): Long|float|null {
14670- return Long::sample(); /*210:long*/
14764+ return Long::sample(); /*211:long*/
1467114765 }
1467214766
1467314767 /**
@@ -14743,7 +14837,7 @@ class TopLevel {
1474314837 * @return Map|float|null
1474414838 */
1474514839 public static function sampleMap(): Map|float|null {
14746- return Map::sample(); /*211:map*/
14840+ return Map::sample(); /*212:map*/
1474714841 }
1474814842
1474914843 /**
@@ -14819,7 +14913,7 @@ class TopLevel {
1481914913 * @return MapEntry|float|null
1482014914 */
1482114915 public static function sampleMapEntry(): MapEntry|float|null {
14822- return MapEntry::sample(); /*212:mapEntry*/
14916+ return MapEntry::sample(); /*213:mapEntry*/
1482314917 }
1482414918
1482514919 /**
@@ -14895,7 +14989,7 @@ class TopLevel {
1489514989 * @return MetadataPropertyHandling|float|null
1489614990 */
1489714991 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
14898- return MetadataPropertyHandling::sample(); /*213:metadataPropertyHandling*/
14992+ return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/
1489914993 }
1490014994
1490114995 /**
@@ -14971,7 +15065,7 @@ class TopLevel {
1497115065 * @return Module|float|null
1497215066 */
1497315067 public static function sampleModule(): Module|float|null {
14974- return Module::sample(); /*214:module*/
15068+ return Module::sample(); /*215:module*/
1497515069 }
1497615070
1497715071 /**
@@ -15047,7 +15141,7 @@ class TopLevel {
1504715141 * @return Mutable|float|null
1504815142 */
1504915143 public static function sampleMutable(): Mutable|float|null {
15050- return Mutable::sample(); /*215:mutable*/
15144+ return Mutable::sample(); /*216:mutable*/
1505115145 }
1505215146
1505315147 /**
@@ -15123,7 +15217,7 @@ class TopLevel {
1512315217 * @return Mutating|float|null
1512415218 */
1512515219 public static function sampleMutating(): Mutating|float|null {
15126- return Mutating::sample(); /*216:mutating*/
15220+ return Mutating::sample(); /*217:mutating*/
1512715221 }
1512815222
1512915223 /**
@@ -15199,7 +15293,7 @@ class TopLevel {
1519915293 * @return NamespaceClass|float|null
1520015294 */
1520115295 public static function sampleNamespace(): NamespaceClass|float|null {
15202- return NamespaceClass::sample(); /*217:namespace*/
15296+ return NamespaceClass::sample(); /*218:namespace*/
1520315297 }
1520415298
1520515299 /**
@@ -15275,7 +15369,7 @@ class TopLevel {
1527515369 * @return Native|float|null
1527615370 */
1527715371 public static function sampleNative(): Native|float|null {
15278- return Native::sample(); /*218:native*/
15372+ return Native::sample(); /*219:native*/
1527915373 }
1528015374
1528115375 /**
@@ -15351,7 +15445,7 @@ class TopLevel {
1535115445 * @return NewClass|float|null
1535215446 */
1535315447 public static function sampleNew(): NewClass|float|null {
15354- return NewClass::sample(); /*219:new*/
15448+ return NewClass::sample(); /*220:new*/
1535515449 }
1535615450
1535715451 /**
@@ -15427,7 +15521,7 @@ class TopLevel {
1542715521 * @return Newtonsoft|float|null
1542815522 */
1542915523 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15430- return Newtonsoft::sample(); /*220:newtonsoft*/
15524+ return Newtonsoft::sample(); /*221:newtonsoft*/
1543115525 }
1543215526
1543315527 /**
@@ -15503,7 +15597,7 @@ class TopLevel {
1550315597 * @return Nil|float|null
1550415598 */
1550515599 public static function sampleNil(): Nil|float|null {
15506- return Nil::sample(); /*221:nil*/
15600+ return Nil::sample(); /*222:nil*/
1550715601 }
1550815602
1550915603 /**
@@ -15579,7 +15673,7 @@ class TopLevel {
1557915673 * @return No|float|null
1558015674 */
1558115675 public static function sampleNo(): No|float|null {
15582- return No::sample(); /*222:no*/
15676+ return No::sample(); /*223:no*/
1558315677 }
1558415678
1558515679 /**
@@ -15655,7 +15749,7 @@ class TopLevel {
1565515749 * @return Noexcept|float|null
1565615750 */
1565715751 public static function sampleNoexcept(): Noexcept|float|null {
15658- return Noexcept::sample(); /*223:noexcept*/
15752+ return Noexcept::sample(); /*224:noexcept*/
1565915753 }
1566015754
1566115755 /**
@@ -15731,7 +15825,7 @@ class TopLevel {
1573115825 * @return Nonatomic|float|null
1573215826 */
1573315827 public static function sampleNonatomic(): Nonatomic|float|null {
15734- return Nonatomic::sample(); /*224:nonatomic*/
15828+ return Nonatomic::sample(); /*225:nonatomic*/
1573515829 }
1573615830
1573715831 /**
@@ -15807,7 +15901,7 @@ class TopLevel {
1580715901 * @return NoneClass|float|null
1580815902 */
1580915903 public static function sampleTopLevelNone(): NoneClass|float|null {
15810- return NoneClass::sample(); /*225:topLevelNone*/
15904+ return NoneClass::sample(); /*226:topLevelNone*/
1581115905 }
1581215906
1581315907 /**
@@ -15883,7 +15977,7 @@ class TopLevel {
1588315977 * @return None|float|null
1588415978 */
1588515979 public static function sampleNone(): None|float|null {
15886- return None::sample(); /*226:none*/
15980+ return None::sample(); /*227:none*/
1588715981 }
1588815982
1588915983 /**
@@ -15959,7 +16053,7 @@ class TopLevel {
1595916053 * @return Nonlocal|float|null
1596016054 */
1596116055 public static function sampleNonlocal(): Nonlocal|float|null {
15962- return Nonlocal::sample(); /*227:nonlocal*/
16056+ return Nonlocal::sample(); /*228:nonlocal*/
1596316057 }
1596416058
1596516059 /**
@@ -16035,7 +16129,7 @@ class TopLevel {
1603516129 * @return Nonmutating|float|null
1603616130 */
1603716131 public static function sampleNonmutating(): Nonmutating|float|null {
16038- return Nonmutating::sample(); /*228:nonmutating*/
16132+ return Nonmutating::sample(); /*229:nonmutating*/
1603916133 }
1604016134
1604116135 /**
@@ -16111,7 +16205,7 @@ class TopLevel {
1611116205 * @return NoSuchMethod|float|null
1611216206 */
1611316207 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16114- return NoSuchMethod::sample(); /*229:noSuchMethod*/
16208+ return NoSuchMethod::sample(); /*230:noSuchMethod*/
1611516209 }
1611616210
1611716211 /**
@@ -16187,7 +16281,7 @@ class TopLevel {
1618716281 * @return Not|float|null
1618816282 */
1618916283 public static function sampleNot(): Not|float|null {
16190- return Not::sample(); /*230:not*/
16284+ return Not::sample(); /*231:not*/
1619116285 }
1619216286
1619316287 /**
@@ -16263,7 +16357,7 @@ class TopLevel {
1626316357 * @return NotEq|float|null
1626416358 */
1626516359 public static function sampleNotEq(): NotEq|float|null {
16266- return NotEq::sample(); /*231:notEq*/
16360+ return NotEq::sample(); /*232:notEq*/
1626716361 }
1626816362
1626916363 /**
@@ -16339,7 +16433,7 @@ class TopLevel {
1633916433 * @return NSError|float|null
1634016434 */
1634116435 public static function sampleNSError(): NSError|float|null {
16342- return NSError::sample(); /*232:nsError*/
16436+ return NSError::sample(); /*233:nsError*/
1634316437 }
1634416438
1634516439 /**
@@ -16415,7 +16509,7 @@ class TopLevel {
1641516509 * @return NSObject|float|null
1641616510 */
1641716511 public static function sampleNSObject(): NSObject|float|null {
16418- return NSObject::sample(); /*233:nsObject*/
16512+ return NSObject::sample(); /*234:nsObject*/
1641916513 }
1642016514
1642116515 /**
@@ -16491,7 +16585,7 @@ class TopLevel {
1649116585 * @return NSString|float|null
1649216586 */
1649316587 public static function sampleNSString(): NSString|float|null {
16494- return NSString::sample(); /*234:nsString*/
16588+ return NSString::sample(); /*235:nsString*/
1649516589 }
1649616590
1649716591 /**
@@ -16567,7 +16661,7 @@ class TopLevel {
1656716661 * @return NULLClass|float|null
1656816662 */
1656916663 public static function sampleNull(): NULLClass|float|null {
16570- return NULLClass::sample(); /*235:null*/
16664+ return NULLClass::sample(); /*236:null*/
1657116665 }
1657216666
1657316667 /**
@@ -16643,7 +16737,7 @@ class TopLevel {
1664316737 * @return UnionNullNull|float|null
1664416738 */
1664516739 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16646- return UnionNullNull::sample(); /*236:topLevelNull*/
16740+ return UnionNullNull::sample(); /*237:topLevelNull*/
1664716741 }
1664816742
1664916743 /**
@@ -16719,7 +16813,7 @@ class TopLevel {
1671916813 * @return Nullptr|float|null
1672016814 */
1672116815 public static function sampleNullptr(): Nullptr|float|null {
16722- return Nullptr::sample(); /*237:nullptr*/
16816+ return Nullptr::sample(); /*238:nullptr*/
1672316817 }
1672416818
1672516819 /**
@@ -16795,7 +16889,7 @@ class TopLevel {
1679516889 * @return Number|float|null
1679616890 */
1679716891 public static function sampleNumber(): Number|float|null {
16798- return Number::sample(); /*238:number*/
16892+ return Number::sample(); /*239:number*/
1679916893 }
1680016894
1680116895 /**
@@ -16871,7 +16965,7 @@ class TopLevel {
1687116965 * @return ObjectClass|float|null
1687216966 */
1687316967 public static function sampleObject(): ObjectClass|float|null {
16874- return ObjectClass::sample(); /*239:object*/
16968+ return ObjectClass::sample(); /*240:object*/
1687516969 }
1687616970
1687716971 /**
@@ -16947,7 +17041,7 @@ class TopLevel {
1694717041 * @return ObjectMapper|float|null
1694817042 */
1694917043 public static function sampleObjectMapper(): ObjectMapper|float|null {
16950- return ObjectMapper::sample(); /*240:objectMapper*/
17044+ return ObjectMapper::sample(); /*241:objectMapper*/
1695117045 }
1695217046
1695317047 /**
@@ -17023,7 +17117,7 @@ class TopLevel {
1702317117 * @return Of|float|null
1702417118 */
1702517119 public static function sampleOf(): Of|float|null {
17026- return Of::sample(); /*241:of*/
17120+ return Of::sample(); /*242:of*/
1702717121 }
1702817122
1702917123 /**
@@ -17099,7 +17193,7 @@ class TopLevel {
1709917193 * @return Oneway|float|null
1710017194 */
1710117195 public static function sampleOneway(): Oneway|float|null {
17102- return Oneway::sample(); /*242:oneway*/
17196+ return Oneway::sample(); /*243:oneway*/
1710317197 }
1710417198
1710517199 /**
@@ -17175,7 +17269,7 @@ class TopLevel {
1717517269 * @return Open|float|null
1717617270 */
1717717271 public static function sampleOpen(): Open|float|null {
17178- return Open::sample(); /*243:open*/
17272+ return Open::sample(); /*244:open*/
1717917273 }
1718017274
1718117275 /**
@@ -17251,7 +17345,7 @@ class TopLevel {
1725117345 * @return Operator|float|null
1725217346 */
1725317347 public static function sampleOperator(): Operator|float|null {
17254- return Operator::sample(); /*244:operator*/
17348+ return Operator::sample(); /*245:operator*/
1725517349 }
1725617350
1725717351 /**
@@ -17327,7 +17421,7 @@ class TopLevel {
1732717421 * @return Optional|float|null
1732817422 */
1732917423 public static function sampleOptional(): Optional|float|null {
17330- return Optional::sample(); /*245:optional*/
17424+ return Optional::sample(); /*246:optional*/
1733117425 }
1733217426
1733317427 /**
@@ -17403,7 +17497,7 @@ class TopLevel {
1740317497 * @return OrClass|float|null
1740417498 */
1740517499 public static function sampleOr(): OrClass|float|null {
17406- return OrClass::sample(); /*246:or*/
17500+ return OrClass::sample(); /*247:or*/
1740717501 }
1740817502
1740917503 /**
@@ -17479,7 +17573,7 @@ class TopLevel {
1747917573 * @return OrEq|float|null
1748017574 */
1748117575 public static function sampleOrEq(): OrEq|float|null {
17482- return OrEq::sample(); /*247:orEq*/
17576+ return OrEq::sample(); /*248:orEq*/
1748317577 }
1748417578
1748517579 /**
@@ -17555,7 +17649,7 @@ class TopLevel {
1755517649 * @return Out|float|null
1755617650 */
1755717651 public static function sampleOut(): Out|float|null {
17558- return Out::sample(); /*248:out*/
17652+ return Out::sample(); /*249:out*/
1755917653 }
1756017654
1756117655 /**
@@ -17631,7 +17725,7 @@ class TopLevel {
1763117725 * @return OverrideClass|float|null
1763217726 */
1763317727 public static function sampleOverride(): OverrideClass|float|null {
17634- return OverrideClass::sample(); /*249:override*/
17728+ return OverrideClass::sample(); /*250:override*/
1763517729 }
1763617730
1763717731 /**
@@ -17707,7 +17801,7 @@ class TopLevel {
1770717801 * @return Package|float|null
1770817802 */
1770917803 public static function samplePackage(): Package|float|null {
17710- return Package::sample(); /*250:package*/
17804+ return Package::sample(); /*251:package*/
1771117805 }
1771217806
1771317807 /**
@@ -17783,7 +17877,7 @@ class TopLevel {
1778317877 * @return Params|float|null
1778417878 */
1778517879 public static function sampleParams(): Params|float|null {
17786- return Params::sample(); /*251:params*/
17880+ return Params::sample(); /*252:params*/
1778717881 }
1778817882
1778917883 /**
@@ -17859,7 +17953,7 @@ class TopLevel {
1785917953 * @return Pass|float|null
1786017954 */
1786117955 public static function samplePass(): Pass|float|null {
17862- return Pass::sample(); /*252:pass*/
17956+ return Pass::sample(); /*253:pass*/
1786317957 }
1786417958
1786517959 /**
@@ -17935,7 +18029,7 @@ class TopLevel {
1793518029 * @return Port|float|null
1793618030 */
1793718031 public static function samplePort(): Port|float|null {
17938- return Port::sample(); /*253:port*/
18032+ return Port::sample(); /*254:port*/
1793918033 }
1794018034
1794118035 /**
@@ -18011,7 +18105,7 @@ class TopLevel {
1801118105 * @return Postfix|float|null
1801218106 */
1801318107 public static function samplePostfix(): Postfix|float|null {
18014- return Postfix::sample(); /*254:postfix*/
18108+ return Postfix::sample(); /*255:postfix*/
1801518109 }
1801618110
1801718111 /**
@@ -18087,7 +18181,7 @@ class TopLevel {
1808718181 * @return Precedence|float|null
1808818182 */
1808918183 public static function samplePrecedence(): Precedence|float|null {
18090- return Precedence::sample(); /*255:precedence*/
18184+ return Precedence::sample(); /*256:precedence*/
1809118185 }
1809218186
1809318187 /**
@@ -18163,7 +18257,83 @@ class TopLevel {
1816318257 * @return Prefix|float|null
1816418258 */
1816518259 public static function samplePrefix(): Prefix|float|null {
18166- return Prefix::sample(); /*256:prefix*/
18260+ return Prefix::sample(); /*257:prefix*/
18261+ }
18262+
18263+ /**
18264+ * @param stdClass|float|null $value
18265+ * @throws Exception
18266+ * @return PrimitiveKind|float|null
18267+ */
18268+ public static function fromPrimitiveKind(stdClass|float|null $value): PrimitiveKind|float|null {
18269+ if (is_null($value)) {
18270+ return $value; /*null*/
18271+ } elseif (is_object($value)) {
18272+ return PrimitiveKind::from($value); /*class*/
18273+ } elseif (is_float($value) || is_int($value)) {
18274+ return $value; /*float*/
18275+ } else {
18276+ throw new Exception('Cannot deserialize union value in TopLevel');
18277+ }
18278+ }
18279+
18280+ /**
18281+ * @throws Exception
18282+ * @return stdClass|float|null
18283+ */
18284+ public function toPrimitiveKind(): stdClass|float|null {
18285+ if (TopLevel::validatePrimitiveKind($this->primitiveKind)) {
18286+ if (is_null($this->primitiveKind)) {
18287+ return $this->primitiveKind; /*null*/
18288+ } elseif ($this->primitiveKind instanceof PrimitiveKind) {
18289+ return $this->primitiveKind->to(); /*class*/
18290+ } elseif (is_float($this->primitiveKind) || is_int($this->primitiveKind)) {
18291+ return $this->primitiveKind; /*float*/
18292+ } else {
18293+ throw new Exception('Union value has no matching member in TopLevel');
18294+ }
18295+ }
18296+ throw new Exception('never get to this TopLevel::primitiveKind');
18297+ }
18298+
18299+ /**
18300+ * @param PrimitiveKind|float|null
18301+ * @return bool
18302+ * @throws Exception
18303+ */
18304+ public static function validatePrimitiveKind(PrimitiveKind|float|null $value): bool {
18305+ if (is_null($value)) {
18306+ if (!is_null($value)) {
18307+ throw new Exception("Attribute Error:TopLevel::primitiveKind");
18308+ }
18309+ } elseif ($value instanceof PrimitiveKind) {
18310+ $value->validate();
18311+ } elseif (is_float($value) || is_int($value)) {
18312+ if (!is_float($value) && !is_int($value)) {
18313+ throw new Exception("Attribute Error:TopLevel::primitiveKind");
18314+ }
18315+ } else {
18316+ throw new Exception("Attribute Error:TopLevel::primitiveKind");
18317+ }
18318+ return true;
18319+ }
18320+
18321+ /**
18322+ * @throws Exception
18323+ * @return PrimitiveKind|float|null
18324+ */
18325+ public function getPrimitiveKind(): PrimitiveKind|float|null {
18326+ if (TopLevel::validatePrimitiveKind($this->primitiveKind)) {
18327+ return $this->primitiveKind;
18328+ }
18329+ throw new Exception('never get to getPrimitiveKind TopLevel::primitiveKind');
18330+ }
18331+
18332+ /**
18333+ * @return PrimitiveKind|float|null
18334+ */
18335+ public static function samplePrimitiveKind(): PrimitiveKind|float|null {
18336+ return PrimitiveKind::sample(); /*258:primitiveKind*/
1816718337 }
1816818338
1816918339 /**
@@ -18239,7 +18409,7 @@ class TopLevel {
1823918409 * @return PrintClass|float|null
1824018410 */
1824118411 public static function samplePrint(): PrintClass|float|null {
18242- return PrintClass::sample(); /*257:print*/
18412+ return PrintClass::sample(); /*259:print*/
1824318413 }
1824418414
1824518415 /**
@@ -18315,7 +18485,7 @@ class TopLevel {
1831518485 * @return Printf|float|null
1831618486 */
1831718487 public static function samplePrintf(): Printf|float|null {
18318- return Printf::sample(); /*258:printf*/
18488+ return Printf::sample(); /*260:printf*/
1831918489 }
1832018490
1832118491 /**
@@ -18391,7 +18561,7 @@ class TopLevel {
1839118561 * @return PrintMembers|float|null
1839218562 */
1839318563 public static function samplePrintMembers(): PrintMembers|float|null {
18394- return PrintMembers::sample(); /*259:printMembers*/
18564+ return PrintMembers::sample(); /*261:printMembers*/
1839518565 }
1839618566
1839718567 /**
@@ -18467,7 +18637,7 @@ class TopLevel {
1846718637 * @return PrivateClass|float|null
1846818638 */
1846918639 public static function samplePrivate(): PrivateClass|float|null {
18470- return PrivateClass::sample(); /*260:private*/
18640+ return PrivateClass::sample(); /*262:private*/
1847118641 }
1847218642
1847318643 /**
@@ -18543,7 +18713,7 @@ class TopLevel {
1854318713 * @return ProtectedClass|float|null
1854418714 */
1854518715 public static function sampleProtected(): ProtectedClass|float|null {
18546- return ProtectedClass::sample(); /*261:protected*/
18716+ return ProtectedClass::sample(); /*263:protected*/
1854718717 }
1854818718
1854918719 /**
@@ -18619,7 +18789,7 @@ class TopLevel {
1861918789 * @return Protocol|float|null
1862018790 */
1862118791 public static function sampleProtocol(): Protocol|float|null {
18622- return Protocol::sample(); /*262:protocol*/
18792+ return Protocol::sample(); /*264:protocol*/
1862318793 }
1862418794
1862518795 /**
@@ -18695,7 +18865,7 @@ class TopLevel {
1869518865 * @return ProtocolClass|float|null
1869618866 */
1869718867 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
18698- return ProtocolClass::sample(); /*263:topLevelProtocol*/
18868+ return ProtocolClass::sample(); /*265:topLevelProtocol*/
1869918869 }
1870018870
1870118871 /**
@@ -18771,7 +18941,7 @@ class TopLevel {
1877118941 * @return PublicClass|float|null
1877218942 */
1877318943 public static function samplePublic(): PublicClass|float|null {
18774- return PublicClass::sample(); /*264:public*/
18944+ return PublicClass::sample(); /*266:public*/
1877518945 }
1877618946
1877718947 /**
@@ -18847,7 +19017,7 @@ class TopLevel {
1884719017 * @return Quicktype|float|null
1884819018 */
1884919019 public static function sampleQuicktype(): Quicktype|float|null {
18850- return Quicktype::sample(); /*265:quicktype*/
19020+ return Quicktype::sample(); /*267:quicktype*/
1885119021 }
1885219022
1885319023 /**
@@ -18923,7 +19093,7 @@ class TopLevel {
1892319093 * @return Raise|float|null
1892419094 */
1892519095 public static function sampleRaise(): Raise|float|null {
18926- return Raise::sample(); /*266:raise*/
19096+ return Raise::sample(); /*268:raise*/
1892719097 }
1892819098
1892919099 /**
@@ -18999,7 +19169,7 @@ class TopLevel {
1899919169 * @return Range|float|null
1900019170 */
1900119171 public static function sampleRange(): Range|float|null {
19002- return Range::sample(); /*267:range*/
19172+ return Range::sample(); /*269:range*/
1900319173 }
1900419174
1900519175 /**
@@ -19075,7 +19245,7 @@ class TopLevel {
1907519245 * @return ReadonlyClass|float|null
1907619246 */
1907719247 public static function sampleReadonly(): ReadonlyClass|float|null {
19078- return ReadonlyClass::sample(); /*268:readonly*/
19248+ return ReadonlyClass::sample(); /*270:readonly*/
1907919249 }
1908019250
1908119251 /**
@@ -19151,7 +19321,7 @@ class TopLevel {
1915119321 * @return Ref|float|null
1915219322 */
1915319323 public static function sampleRef(): Ref|float|null {
19154- return Ref::sample(); /*269:ref*/
19324+ return Ref::sample(); /*271:ref*/
1915519325 }
1915619326
1915719327 /**
@@ -19227,7 +19397,7 @@ class TopLevel {
1922719397 * @return RegExp|float|null
1922819398 */
1922919399 public static function sampleRegExp(): RegExp|float|null {
19230- return RegExp::sample(); /*270:regExp*/
19400+ return RegExp::sample(); /*272:regExp*/
1923119401 }
1923219402
1923319403 /**
@@ -19303,7 +19473,7 @@ class TopLevel {
1930319473 * @return Register|float|null
1930419474 */
1930519475 public static function sampleRegister(): Register|float|null {
19306- return Register::sample(); /*271:register*/
19476+ return Register::sample(); /*273:register*/
1930719477 }
1930819478
1930919479 /**
@@ -19379,7 +19549,7 @@ class TopLevel {
1937919549 * @return ReinterpretCast|float|null
1938019550 */
1938119551 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19382- return ReinterpretCast::sample(); /*272:reinterpretCast*/
19552+ return ReinterpretCast::sample(); /*274:reinterpretCast*/
1938319553 }
1938419554
1938519555 /**
@@ -19455,7 +19625,7 @@ class TopLevel {
1945519625 * @return Repeat|float|null
1945619626 */
1945719627 public static function sampleRepeat(): Repeat|float|null {
19458- return Repeat::sample(); /*273:repeat*/
19628+ return Repeat::sample(); /*275:repeat*/
1945919629 }
1946019630
1946119631 /**
@@ -19531,7 +19701,7 @@ class TopLevel {
1953119701 * @return RequireClass|float|null
1953219702 */
1953319703 public static function sampleRequire(): RequireClass|float|null {
19534- return RequireClass::sample(); /*274:require*/
19704+ return RequireClass::sample(); /*276:require*/
1953519705 }
1953619706
1953719707 /**
@@ -19607,7 +19777,7 @@ class TopLevel {
1960719777 * @return Required|float|null
1960819778 */
1960919779 public static function sampleRequired(): Required|float|null {
19610- return Required::sample(); /*275:required*/
19780+ return Required::sample(); /*277:required*/
1961119781 }
1961219782
1961319783 /**
@@ -19683,7 +19853,7 @@ class TopLevel {
1968319853 * @return Requires|float|null
1968419854 */
1968519855 public static function sampleRequires(): Requires|float|null {
19686- return Requires::sample(); /*276:requires*/
19856+ return Requires::sample(); /*278:requires*/
1968719857 }
1968819858
1968919859 /**
@@ -19759,7 +19929,7 @@ class TopLevel {
1975919929 * @return Restrict|float|null
1976019930 */
1976119931 public static function sampleRestrict(): Restrict|float|null {
19762- return Restrict::sample(); /*277:restrict*/
19932+ return Restrict::sample(); /*279:restrict*/
1976319933 }
1976419934
1976519935 /**
@@ -19835,7 +20005,7 @@ class TopLevel {
1983520005 * @return Retain|float|null
1983620006 */
1983720007 public static function sampleRetain(): Retain|float|null {
19838- return Retain::sample(); /*278:retain*/
20008+ return Retain::sample(); /*280:retain*/
1983920009 }
1984020010
1984120011 /**
@@ -19911,7 +20081,7 @@ class TopLevel {
1991120081 * @return Rethrows|float|null
1991220082 */
1991320083 public static function sampleRethrows(): Rethrows|float|null {
19914- return Rethrows::sample(); /*279:rethrows*/
20084+ return Rethrows::sample(); /*281:rethrows*/
1991520085 }
1991620086
1991720087 /**
@@ -19987,7 +20157,7 @@ class TopLevel {
1998720157 * @return ReturnClass|float|null
1998820158 */
1998920159 public static function sampleReturn(): ReturnClass|float|null {
19990- return ReturnClass::sample(); /*280:return*/
20160+ return ReturnClass::sample(); /*282:return*/
1999120161 }
1999220162
1999320163 /**
@@ -20063,7 +20233,7 @@ class TopLevel {
2006320233 * @return Right|float|null
2006420234 */
2006520235 public static function sampleRight(): Right|float|null {
20066- return Right::sample(); /*281:right*/
20236+ return Right::sample(); /*283:right*/
2006720237 }
2006820238
2006920239 /**
@@ -20139,7 +20309,7 @@ class TopLevel {
2013920309 * @return RuntimeType|float|null
2014020310 */
2014120311 public static function sampleRuntimeType(): RuntimeType|float|null {
20142- return RuntimeType::sample(); /*282:runtimeType*/
20312+ return RuntimeType::sample(); /*284:runtimeType*/
2014320313 }
2014420314
2014520315 /**
@@ -20215,7 +20385,7 @@ class TopLevel {
2021520385 * @return S|float|null
2021620386 */
2021720387 public static function sampleS(): S|float|null {
20218- return S::sample(); /*283:s*/
20388+ return S::sample(); /*285:s*/
2021920389 }
2022020390
2022120391 /**
@@ -20291,7 +20461,7 @@ class TopLevel {
2029120461 * @return Sbyte|float|null
2029220462 */
2029320463 public static function sampleSbyte(): Sbyte|float|null {
20294- return Sbyte::sample(); /*284:sbyte*/
20464+ return Sbyte::sample(); /*286:sbyte*/
2029520465 }
2029620466
2029720467 /**
@@ -20367,7 +20537,7 @@ class TopLevel {
2036720537 * @return Sealed|float|null
2036820538 */
2036920539 public static function sampleSealed(): Sealed|float|null {
20370- return Sealed::sample(); /*285:sealed*/
20540+ return Sealed::sample(); /*287:sealed*/
2037120541 }
2037220542
2037320543 /**
@@ -20443,7 +20613,7 @@ class TopLevel {
2044320613 * @return Sel|float|null
2044420614 */
2044520615 public static function sampleSel(): Sel|float|null {
20446- return Sel::sample(); /*286:sel*/
20616+ return Sel::sample(); /*288:sel*/
2044720617 }
2044820618
2044920619 /**
@@ -20519,7 +20689,7 @@ class TopLevel {
2051920689 * @return Select|float|null
2052020690 */
2052120691 public static function sampleSelect(): Select|float|null {
20522- return Select::sample(); /*287:select*/
20692+ return Select::sample(); /*289:select*/
2052320693 }
2052420694
2052520695 /**
@@ -20595,7 +20765,7 @@ class TopLevel {
2059520765 * @return SelfClass|float|null
2059620766 */
2059720767 public static function sampleSelf(): SelfClass|float|null {
20598- return SelfClass::sample(); /*288:self*/
20768+ return SelfClass::sample(); /*290:self*/
2059920769 }
2060020770
2060120771 /**
@@ -20671,7 +20841,7 @@ class TopLevel {
2067120841 * @return UnionSelfSelf|float|null
2067220842 */
2067320843 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
20674- return UnionSelfSelf::sample(); /*289:topLevelSelf*/
20844+ return UnionSelfSelf::sample(); /*291:topLevelSelf*/
2067520845 }
2067620846
2067720847 /**
@@ -20747,7 +20917,159 @@ class TopLevel {
2074720917 * @return Sendable|float|null
2074820918 */
2074920919 public static function sampleSendable(): Sendable|float|null {
20750- return Sendable::sample(); /*290:sendable*/
20920+ return Sendable::sample(); /*292:sendable*/
20921+ }
20922+
20923+ /**
20924+ * @param stdClass|float|null $value
20925+ * @throws Exception
20926+ * @return SerialDescriptor|float|null
20927+ */
20928+ public static function fromSerialDescriptor(stdClass|float|null $value): SerialDescriptor|float|null {
20929+ if (is_null($value)) {
20930+ return $value; /*null*/
20931+ } elseif (is_object($value)) {
20932+ return SerialDescriptor::from($value); /*class*/
20933+ } elseif (is_float($value) || is_int($value)) {
20934+ return $value; /*float*/
20935+ } else {
20936+ throw new Exception('Cannot deserialize union value in TopLevel');
20937+ }
20938+ }
20939+
20940+ /**
20941+ * @throws Exception
20942+ * @return stdClass|float|null
20943+ */
20944+ public function toSerialDescriptor(): stdClass|float|null {
20945+ if (TopLevel::validateSerialDescriptor($this->serialDescriptor)) {
20946+ if (is_null($this->serialDescriptor)) {
20947+ return $this->serialDescriptor; /*null*/
20948+ } elseif ($this->serialDescriptor instanceof SerialDescriptor) {
20949+ return $this->serialDescriptor->to(); /*class*/
20950+ } elseif (is_float($this->serialDescriptor) || is_int($this->serialDescriptor)) {
20951+ return $this->serialDescriptor; /*float*/
20952+ } else {
20953+ throw new Exception('Union value has no matching member in TopLevel');
20954+ }
20955+ }
20956+ throw new Exception('never get to this TopLevel::serialDescriptor');
20957+ }
20958+
20959+ /**
20960+ * @param SerialDescriptor|float|null
20961+ * @return bool
20962+ * @throws Exception
20963+ */
20964+ public static function validateSerialDescriptor(SerialDescriptor|float|null $value): bool {
20965+ if (is_null($value)) {
20966+ if (!is_null($value)) {
20967+ throw new Exception("Attribute Error:TopLevel::serialDescriptor");
20968+ }
20969+ } elseif ($value instanceof SerialDescriptor) {
20970+ $value->validate();
20971+ } elseif (is_float($value) || is_int($value)) {
20972+ if (!is_float($value) && !is_int($value)) {
20973+ throw new Exception("Attribute Error:TopLevel::serialDescriptor");
20974+ }
20975+ } else {
20976+ throw new Exception("Attribute Error:TopLevel::serialDescriptor");
20977+ }
20978+ return true;
20979+ }
20980+
20981+ /**
20982+ * @throws Exception
20983+ * @return SerialDescriptor|float|null
20984+ */
20985+ public function getSerialDescriptor(): SerialDescriptor|float|null {
20986+ if (TopLevel::validateSerialDescriptor($this->serialDescriptor)) {
20987+ return $this->serialDescriptor;
20988+ }
20989+ throw new Exception('never get to getSerialDescriptor TopLevel::serialDescriptor');
20990+ }
20991+
20992+ /**
20993+ * @return SerialDescriptor|float|null
20994+ */
20995+ public static function sampleSerialDescriptor(): SerialDescriptor|float|null {
20996+ return SerialDescriptor::sample(); /*293:serialDescriptor*/
20997+ }
20998+
20999+ /**
21000+ * @param stdClass|float|null $value
21001+ * @throws Exception
21002+ * @return SerializableClass|float|null
21003+ */
21004+ public static function fromSerializable(stdClass|float|null $value): SerializableClass|float|null {
21005+ if (is_null($value)) {
21006+ return $value; /*null*/
21007+ } elseif (is_object($value)) {
21008+ return SerializableClass::from($value); /*class*/
21009+ } elseif (is_float($value) || is_int($value)) {
21010+ return $value; /*float*/
21011+ } else {
21012+ throw new Exception('Cannot deserialize union value in TopLevel');
21013+ }
21014+ }
21015+
21016+ /**
21017+ * @throws Exception
21018+ * @return stdClass|float|null
21019+ */
21020+ public function toSerializable(): stdClass|float|null {
21021+ if (TopLevel::validateSerializable($this->serializable)) {
21022+ if (is_null($this->serializable)) {
21023+ return $this->serializable; /*null*/
21024+ } elseif ($this->serializable instanceof SerializableClass) {
21025+ return $this->serializable->to(); /*class*/
21026+ } elseif (is_float($this->serializable) || is_int($this->serializable)) {
21027+ return $this->serializable; /*float*/
21028+ } else {
21029+ throw new Exception('Union value has no matching member in TopLevel');
21030+ }
21031+ }
21032+ throw new Exception('never get to this TopLevel::serializable');
21033+ }
21034+
21035+ /**
21036+ * @param SerializableClass|float|null
21037+ * @return bool
21038+ * @throws Exception
21039+ */
21040+ public static function validateSerializable(SerializableClass|float|null $value): bool {
21041+ if (is_null($value)) {
21042+ if (!is_null($value)) {
21043+ throw new Exception("Attribute Error:TopLevel::serializable");
21044+ }
21045+ } elseif ($value instanceof SerializableClass) {
21046+ $value->validate();
21047+ } elseif (is_float($value) || is_int($value)) {
21048+ if (!is_float($value) && !is_int($value)) {
21049+ throw new Exception("Attribute Error:TopLevel::serializable");
21050+ }
21051+ } else {
21052+ throw new Exception("Attribute Error:TopLevel::serializable");
21053+ }
21054+ return true;
21055+ }
21056+
21057+ /**
21058+ * @throws Exception
21059+ * @return SerializableClass|float|null
21060+ */
21061+ public function getSerializable(): SerializableClass|float|null {
21062+ if (TopLevel::validateSerializable($this->serializable)) {
21063+ return $this->serializable;
21064+ }
21065+ throw new Exception('never get to getSerializable TopLevel::serializable');
21066+ }
21067+
21068+ /**
21069+ * @return SerializableClass|float|null
21070+ */
21071+ public static function sampleSerializable(): SerializableClass|float|null {
21072+ return SerializableClass::sample(); /*294:serializable*/
2075121073 }
2075221074
2075321075 /**
@@ -20823,7 +21145,7 @@ class TopLevel {
2082321145 * @return Serialize|float|null
2082421146 */
2082521147 public static function sampleSerialize(): Serialize|float|null {
20826- return Serialize::sample(); /*291:serialize*/
21148+ return Serialize::sample(); /*295:serialize*/
2082721149 }
2082821150
2082921151 /**
@@ -20899,7 +21221,83 @@ class TopLevel {
2089921221 * @return SerializerProvider|float|null
2090021222 */
2090121223 public static function sampleSerializerProvider(): SerializerProvider|float|null {
20902- return SerializerProvider::sample(); /*292:serializerProvider*/
21224+ return SerializerProvider::sample(); /*296:serializerProvider*/
21225+ }
21226+
21227+ /**
21228+ * @param stdClass|float|null $value
21229+ * @throws Exception
21230+ * @return SerialName|float|null
21231+ */
21232+ public static function fromSerialName(stdClass|float|null $value): SerialName|float|null {
21233+ if (is_null($value)) {
21234+ return $value; /*null*/
21235+ } elseif (is_object($value)) {
21236+ return SerialName::from($value); /*class*/
21237+ } elseif (is_float($value) || is_int($value)) {
21238+ return $value; /*float*/
21239+ } else {
21240+ throw new Exception('Cannot deserialize union value in TopLevel');
21241+ }
21242+ }
21243+
21244+ /**
21245+ * @throws Exception
21246+ * @return stdClass|float|null
21247+ */
21248+ public function toSerialName(): stdClass|float|null {
21249+ if (TopLevel::validateSerialName($this->serialName)) {
21250+ if (is_null($this->serialName)) {
21251+ return $this->serialName; /*null*/
21252+ } elseif ($this->serialName instanceof SerialName) {
21253+ return $this->serialName->to(); /*class*/
21254+ } elseif (is_float($this->serialName) || is_int($this->serialName)) {
21255+ return $this->serialName; /*float*/
21256+ } else {
21257+ throw new Exception('Union value has no matching member in TopLevel');
21258+ }
21259+ }
21260+ throw new Exception('never get to this TopLevel::serialName');
21261+ }
21262+
21263+ /**
21264+ * @param SerialName|float|null
21265+ * @return bool
21266+ * @throws Exception
21267+ */
21268+ public static function validateSerialName(SerialName|float|null $value): bool {
21269+ if (is_null($value)) {
21270+ if (!is_null($value)) {
21271+ throw new Exception("Attribute Error:TopLevel::serialName");
21272+ }
21273+ } elseif ($value instanceof SerialName) {
21274+ $value->validate();
21275+ } elseif (is_float($value) || is_int($value)) {
21276+ if (!is_float($value) && !is_int($value)) {
21277+ throw new Exception("Attribute Error:TopLevel::serialName");
21278+ }
21279+ } else {
21280+ throw new Exception("Attribute Error:TopLevel::serialName");
21281+ }
21282+ return true;
21283+ }
21284+
21285+ /**
21286+ * @throws Exception
21287+ * @return SerialName|float|null
21288+ */
21289+ public function getSerialName(): SerialName|float|null {
21290+ if (TopLevel::validateSerialName($this->serialName)) {
21291+ return $this->serialName;
21292+ }
21293+ throw new Exception('never get to getSerialName TopLevel::serialName');
21294+ }
21295+
21296+ /**
21297+ * @return SerialName|float|null
21298+ */
21299+ public static function sampleSerialName(): SerialName|float|null {
21300+ return SerialName::sample(); /*297:serialName*/
2090321301 }
2090421302
2090521303 /**
@@ -20975,7 +21373,7 @@ class TopLevel {
2097521373 * @return Set|float|null
2097621374 */
2097721375 public static function sampleSet(): Set|float|null {
20978- return Set::sample(); /*293:set*/
21376+ return Set::sample(); /*298:set*/
2097921377 }
2098021378
2098121379 /**
@@ -21051,7 +21449,7 @@ class TopLevel {
2105121449 * @return Short|float|null
2105221450 */
2105321451 public static function sampleShort(): Short|float|null {
21054- return Short::sample(); /*294:short*/
21452+ return Short::sample(); /*299:short*/
2105521453 }
2105621454
2105721455 /**
@@ -21127,7 +21525,7 @@ class TopLevel {
2112721525 * @return Signed|float|null
2112821526 */
2112921527 public static function sampleSigned(): Signed|float|null {
21130- return Signed::sample(); /*295:signed*/
21528+ return Signed::sample(); /*300:signed*/
2113121529 }
2113221530
2113321531 /**
@@ -21203,7 +21601,7 @@ class TopLevel {
2120321601 * @return SimpleModule|float|null
2120421602 */
2120521603 public static function sampleSimpleModule(): SimpleModule|float|null {
21206- return SimpleModule::sample(); /*296:simpleModule*/
21604+ return SimpleModule::sample(); /*301:simpleModule*/
2120721605 }
2120821606
2120921607 /**
@@ -21279,7 +21677,7 @@ class TopLevel {
2127921677 * @return Sizeof|float|null
2128021678 */
2128121679 public static function sampleSizeof(): Sizeof|float|null {
21282- return Sizeof::sample(); /*297:sizeof*/
21680+ return Sizeof::sample(); /*302:sizeof*/
2128321681 }
2128421682
2128521683 /**
@@ -21355,7 +21753,7 @@ class TopLevel {
2135521753 * @return Stackalloc|float|null
2135621754 */
2135721755 public static function sampleStackalloc(): Stackalloc|float|null {
21358- return Stackalloc::sample(); /*298:stackalloc*/
21756+ return Stackalloc::sample(); /*303:stackalloc*/
2135921757 }
2136021758
2136121759 /**
@@ -21431,7 +21829,7 @@ class TopLevel {
2143121829 * @return Standards|float|null
2143221830 */
2143321831 public static function sampleStandards(): Standards|float|null {
21434- return Standards::sample(); /*299:standards*/
21832+ return Standards::sample(); /*304:standards*/
2143521833 }
2143621834
2143721835 /**
@@ -21507,7 +21905,7 @@ class TopLevel {
2150721905 * @return StaticClass|float|null
2150821906 */
2150921907 public static function sampleStatic(): StaticClass|float|null {
21510- return StaticClass::sample(); /*300:static*/
21908+ return StaticClass::sample(); /*305:static*/
2151121909 }
2151221910
2151321911 /**
@@ -21583,7 +21981,7 @@ class TopLevel {
2158321981 * @return StaticAssert|float|null
2158421982 */
2158521983 public static function sampleStaticAssert(): StaticAssert|float|null {
21586- return StaticAssert::sample(); /*301:staticAssert*/
21984+ return StaticAssert::sample(); /*306:staticAssert*/
2158721985 }
2158821986
2158921987 /**
@@ -21659,7 +22057,7 @@ class TopLevel {
2165922057 * @return StaticCast|float|null
2166022058 */
2166122059 public static function sampleStaticCast(): StaticCast|float|null {
21662- return StaticCast::sample(); /*302:staticCast*/
22060+ return StaticCast::sample(); /*307:staticCast*/
2166322061 }
2166422062
2166522063 /**
@@ -21735,7 +22133,7 @@ class TopLevel {
2173522133 * @return StdDeserializer|float|null
2173622134 */
2173722135 public static function sampleStdDeserializer(): StdDeserializer|float|null {
21738- return StdDeserializer::sample(); /*303:stdDeserializer*/
22136+ return StdDeserializer::sample(); /*308:stdDeserializer*/
2173922137 }
2174022138
2174122139 /**
@@ -21811,7 +22209,7 @@ class TopLevel {
2181122209 * @return StdSerializer|float|null
2181222210 */
2181322211 public static function sampleStdSerializer(): StdSerializer|float|null {
21814- return StdSerializer::sample(); /*304:stdSerializer*/
22212+ return StdSerializer::sample(); /*309:stdSerializer*/
2181522213 }
2181622214
2181722215 /**
@@ -21887,7 +22285,7 @@ class TopLevel {
2188722285 * @return Strictfp|float|null
2188822286 */
2188922287 public static function sampleStrictfp(): Strictfp|float|null {
21890- return Strictfp::sample(); /*305:strictfp*/
22288+ return Strictfp::sample(); /*310:strictfp*/
2189122289 }
2189222290
2189322291 /**
@@ -21963,7 +22361,7 @@ class TopLevel {
2196322361 * @return StringClass|float|null
2196422362 */
2196522363 public static function sampleString(): StringClass|float|null {
21966- return StringClass::sample(); /*306:string*/
22364+ return StringClass::sample(); /*311:string*/
2196722365 }
2196822366
2196922367 /**
@@ -22039,7 +22437,7 @@ class TopLevel {
2203922437 * @return Struct|float|null
2204022438 */
2204122439 public static function sampleStruct(): Struct|float|null {
22042- return Struct::sample(); /*307:struct*/
22440+ return Struct::sample(); /*312:struct*/
2204322441 }
2204422442
2204522443 /**
@@ -22115,7 +22513,7 @@ class TopLevel {
2211522513 * @return Subscript|float|null
2211622514 */
2211722515 public static function sampleSubscript(): Subscript|float|null {
22118- return Subscript::sample(); /*308:subscript*/
22516+ return Subscript::sample(); /*313:subscript*/
2211922517 }
2212022518
2212122519 /**
@@ -22191,7 +22589,7 @@ class TopLevel {
2219122589 * @return Super|float|null
2219222590 */
2219322591 public static function sampleSuper(): Super|float|null {
22194- return Super::sample(); /*309:super*/
22592+ return Super::sample(); /*314:super*/
2219522593 }
2219622594
2219722595 /**
@@ -22267,7 +22665,7 @@ class TopLevel {
2226722665 * @return SwitchClass|float|null
2226822666 */
2226922667 public static function sampleSwitch(): SwitchClass|float|null {
22270- return SwitchClass::sample(); /*310:switch*/
22668+ return SwitchClass::sample(); /*315:switch*/
2227122669 }
2227222670
2227322671 /**
@@ -22343,7 +22741,7 @@ class TopLevel {
2234322741 * @return Symbol|float|null
2234422742 */
2234522743 public static function sampleSymbol(): Symbol|float|null {
22346- return Symbol::sample(); /*311:symbol*/
22744+ return Symbol::sample(); /*316:symbol*/
2234722745 }
2234822746
2234922747 /**
@@ -22419,7 +22817,7 @@ class TopLevel {
2241922817 * @return Synchronized|float|null
2242022818 */
2242122819 public static function sampleSynchronized(): Synchronized|float|null {
22422- return Synchronized::sample(); /*312:synchronized*/
22820+ return Synchronized::sample(); /*317:synchronized*/
2242322821 }
2242422822
2242522823 /**
@@ -22495,7 +22893,7 @@ class TopLevel {
2249522893 * @return System|float|null
2249622894 */
2249722895 public static function sampleSystem(): System|float|null {
22498- return System::sample(); /*313:system*/
22896+ return System::sample(); /*318:system*/
2249922897 }
2250022898
2250122899 /**
@@ -22571,7 +22969,7 @@ class TopLevel {
2257122969 * @return Template|float|null
2257222970 */
2257322971 public static function sampleTemplate(): Template|float|null {
22574- return Template::sample(); /*314:template*/
22972+ return Template::sample(); /*319:template*/
2257522973 }
2257622974
2257722975 /**
@@ -22647,7 +23045,7 @@ class TopLevel {
2264723045 * @return Then|float|null
2264823046 */
2264923047 public static function sampleThen(): Then|float|null {
22650- return Then::sample(); /*315:then*/
23048+ return Then::sample(); /*320:then*/
2265123049 }
2265223050
2265323051 /**
@@ -22723,7 +23121,7 @@ class TopLevel {
2272323121 * @return This|float|null
2272423122 */
2272523123 public static function sampleTopLevelThis(): This|float|null {
22726- return This::sample(); /*316:topLevelThis*/
23124+ return This::sample(); /*321:topLevelThis*/
2272723125 }
2272823126
2272923127 /**
@@ -22799,7 +23197,7 @@ class TopLevel {
2279923197 * @return ThreadLocal|float|null
2280023198 */
2280123199 public static function sampleThreadLocal(): ThreadLocal|float|null {
22802- return ThreadLocal::sample(); /*317:threadLocal*/
23200+ return ThreadLocal::sample(); /*322:threadLocal*/
2280323201 }
2280423202
2280523203 /**
@@ -22875,7 +23273,7 @@ class TopLevel {
2287523273 * @return ThrowClass|float|null
2287623274 */
2287723275 public static function sampleThrow(): ThrowClass|float|null {
22878- return ThrowClass::sample(); /*318:throw*/
23276+ return ThrowClass::sample(); /*323:throw*/
2287923277 }
2288023278
2288123279 /**
@@ -22951,7 +23349,7 @@ class TopLevel {
2295123349 * @return Throws|float|null
2295223350 */
2295323351 public static function sampleThrows(): Throws|float|null {
22954- return Throws::sample(); /*319:throws*/
23352+ return Throws::sample(); /*324:throws*/
2295523353 }
2295623354
2295723355 /**
@@ -23027,7 +23425,7 @@ class TopLevel {
2302723425 * @return TimeOnly|float|null
2302823426 */
2302923427 public static function sampleTimeOnly(): TimeOnly|float|null {
23030- return TimeOnly::sample(); /*320:timeOnly*/
23428+ return TimeOnly::sample(); /*325:timeOnly*/
2303123429 }
2303223430
2303323431 /**
@@ -23103,7 +23501,7 @@ class TopLevel {
2310323501 * @return TimeOnlyConverter|float|null
2310423502 */
2310523503 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23106- return TimeOnlyConverter::sample(); /*321:timeOnlyConverter*/
23504+ return TimeOnlyConverter::sample(); /*326:timeOnlyConverter*/
2310723505 }
2310823506
2310923507 /**
@@ -23179,7 +23577,7 @@ class TopLevel {
2317923577 * @return TimeZone|float|null
2318023578 */
2318123579 public static function sampleTimeZone(): TimeZone|float|null {
23182- return TimeZone::sample(); /*322:timeZone*/
23580+ return TimeZone::sample(); /*327:timeZone*/
2318323581 }
2318423582
2318523583 /**
@@ -23255,7 +23653,7 @@ class TopLevel {
2325523653 * @return ToJSON|float|null
2325623654 */
2325723655 public static function sampleToJSON(): ToJSON|float|null {
23258- return ToJSON::sample(); /*323:toJSON*/
23656+ return ToJSON::sample(); /*328:toJSON*/
2325923657 }
2326023658
2326123659 /**
@@ -23331,7 +23729,7 @@ class TopLevel {
2333123729 * @return TopLevelClass|float|null
2333223730 */
2333323731 public static function sampleTopLevel(): TopLevelClass|float|null {
23334- return TopLevelClass::sample(); /*324:topLevel*/
23732+ return TopLevelClass::sample(); /*329:topLevel*/
2333523733 }
2333623734
2333723735 /**
@@ -23407,7 +23805,7 @@ class TopLevel {
2340723805 * @return ToString|float|null
2340823806 */
2340923807 public static function sampleToString(): ToString|float|null {
23410- return ToString::sample(); /*325:toString*/
23808+ return ToString::sample(); /*330:toString*/
2341123809 }
2341223810
2341323811 /**
@@ -23483,7 +23881,7 @@ class TopLevel {
2348323881 * @return Transient|float|null
2348423882 */
2348523883 public static function sampleTransient(): Transient|float|null {
23486- return Transient::sample(); /*326:transient*/
23884+ return Transient::sample(); /*331:transient*/
2348723885 }
2348823886
2348923887 /**
@@ -23559,7 +23957,7 @@ class TopLevel {
2355923957 * @return TrueClass|float|null
2356023958 */
2356123959 public static function sampleTrue(): TrueClass|float|null {
23562- return TrueClass::sample(); /*327:true*/
23960+ return TrueClass::sample(); /*332:true*/
2356323961 }
2356423962
2356523963 /**
@@ -23635,7 +24033,7 @@ class TopLevel {
2363524033 * @return UnionTrueTrue|float|null
2363624034 */
2363724035 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
23638- return UnionTrueTrue::sample(); /*328:topLevelTrue*/
24036+ return UnionTrueTrue::sample(); /*333:topLevelTrue*/
2363924037 }
2364024038
2364124039 /**
@@ -23711,7 +24109,7 @@ class TopLevel {
2371124109 * @return TryClass|float|null
2371224110 */
2371324111 public static function sampleTry(): TryClass|float|null {
23714- return TryClass::sample(); /*329:try*/
24112+ return TryClass::sample(); /*334:try*/
2371524113 }
2371624114
2371724115 /**
@@ -23787,7 +24185,7 @@ class TopLevel {
2378724185 * @return Type|float|null
2378824186 */
2378924187 public static function sampleType(): Type|float|null {
23790- return Type::sample(); /*330:type*/
24188+ return Type::sample(); /*335:type*/
2379124189 }
2379224190
2379324191 /**
@@ -23863,7 +24261,7 @@ class TopLevel {
2386324261 * @return TypeClass|float|null
2386424262 */
2386524263 public static function sampleTopLevelType(): TypeClass|float|null {
23866- return TypeClass::sample(); /*331:topLevelType*/
24264+ return TypeClass::sample(); /*336:topLevelType*/
2386724265 }
2386824266
2386924267 /**
@@ -23939,7 +24337,7 @@ class TopLevel {
2393924337 * @return Typealias|float|null
2394024338 */
2394124339 public static function sampleTypealias(): Typealias|float|null {
23942- return Typealias::sample(); /*332:typealias*/
24340+ return Typealias::sample(); /*337:typealias*/
2394324341 }
2394424342
2394524343 /**
@@ -24015,7 +24413,7 @@ class TopLevel {
2401524413 * @return Typedef|float|null
2401624414 */
2401724415 public static function sampleTypedef(): Typedef|float|null {
24018- return Typedef::sample(); /*333:typedef*/
24416+ return Typedef::sample(); /*338:typedef*/
2401924417 }
2402024418
2402124419 /**
@@ -24091,7 +24489,7 @@ class TopLevel {
2409124489 * @return Typeid|float|null
2409224490 */
2409324491 public static function sampleTypeid(): Typeid|float|null {
24094- return Typeid::sample(); /*334:typeid*/
24492+ return Typeid::sample(); /*339:typeid*/
2409524493 }
2409624494
2409724495 /**
@@ -24167,7 +24565,7 @@ class TopLevel {
2416724565 * @return Typename|float|null
2416824566 */
2416924567 public static function sampleTypename(): Typename|float|null {
24170- return Typename::sample(); /*335:typename*/
24568+ return Typename::sample(); /*340:typename*/
2417124569 }
2417224570
2417324571 /**
@@ -24243,7 +24641,7 @@ class TopLevel {
2424324641 * @return Typeof|float|null
2424424642 */
2424524643 public static function sampleTypeof(): Typeof|float|null {
24246- return Typeof::sample(); /*336:typeof*/
24644+ return Typeof::sample(); /*341:typeof*/
2424724645 }
2424824646
2424924647 /**
@@ -24319,7 +24717,7 @@ class TopLevel {
2431924717 * @return Uint|float|null
2432024718 */
2432124719 public static function sampleUint(): Uint|float|null {
24322- return Uint::sample(); /*337:uint*/
24720+ return Uint::sample(); /*342:uint*/
2432324721 }
2432424722
2432524723 /**
@@ -24395,7 +24793,7 @@ class TopLevel {
2439524793 * @return Ulong|float|null
2439624794 */
2439724795 public static function sampleUlong(): Ulong|float|null {
24398- return Ulong::sample(); /*338:ulong*/
24796+ return Ulong::sample(); /*343:ulong*/
2439924797 }
2440024798
2440124799 /**
@@ -24471,7 +24869,7 @@ class TopLevel {
2447124869 * @return Unchecked|float|null
2447224870 */
2447324871 public static function sampleUnchecked(): Unchecked|float|null {
24474- return Unchecked::sample(); /*339:unchecked*/
24872+ return Unchecked::sample(); /*344:unchecked*/
2447524873 }
2447624874
2447724875 /**
@@ -24547,7 +24945,7 @@ class TopLevel {
2454724945 * @return Undefined|float|null
2454824946 */
2454924947 public static function sampleUndefined(): Undefined|float|null {
24550- return Undefined::sample(); /*340:undefined*/
24948+ return Undefined::sample(); /*345:undefined*/
2455124949 }
2455224950
2455324951 /**
@@ -24623,7 +25021,7 @@ class TopLevel {
2462325021 * @return UnionClass|float|null
2462425022 */
2462525023 public static function sampleUnion(): UnionClass|float|null {
24626- return UnionClass::sample(); /*341:union*/
25024+ return UnionClass::sample(); /*346:union*/
2462725025 }
2462825026
2462925027 /**
@@ -24699,7 +25097,7 @@ class TopLevel {
2469925097 * @return Unowned|float|null
2470025098 */
2470125099 public static function sampleUnowned(): Unowned|float|null {
24702- return Unowned::sample(); /*342:unowned*/
25100+ return Unowned::sample(); /*347:unowned*/
2470325101 }
2470425102
2470525103 /**
@@ -24775,7 +25173,7 @@ class TopLevel {
2477525173 * @return Unsafe|float|null
2477625174 */
2477725175 public static function sampleUnsafe(): Unsafe|float|null {
24778- return Unsafe::sample(); /*343:unsafe*/
25176+ return Unsafe::sample(); /*348:unsafe*/
2477925177 }
2478025178
2478125179 /**
@@ -24851,7 +25249,83 @@ class TopLevel {
2485125249 * @return Unsigned|float|null
2485225250 */
2485325251 public static function sampleUnsigned(): Unsigned|float|null {
24854- return Unsigned::sample(); /*344:unsigned*/
25252+ return Unsigned::sample(); /*349:unsigned*/
25253+ }
25254+
25255+ /**
25256+ * @param stdClass|float|null $value
25257+ * @throws Exception
25258+ * @return UseSerializers|float|null
25259+ */
25260+ public static function fromUseSerializers(stdClass|float|null $value): UseSerializers|float|null {
25261+ if (is_null($value)) {
25262+ return $value; /*null*/
25263+ } elseif (is_object($value)) {
25264+ return UseSerializers::from($value); /*class*/
25265+ } elseif (is_float($value) || is_int($value)) {
25266+ return $value; /*float*/
25267+ } else {
25268+ throw new Exception('Cannot deserialize union value in TopLevel');
25269+ }
25270+ }
25271+
25272+ /**
25273+ * @throws Exception
25274+ * @return stdClass|float|null
25275+ */
25276+ public function toUseSerializers(): stdClass|float|null {
25277+ if (TopLevel::validateUseSerializers($this->useSerializers)) {
25278+ if (is_null($this->useSerializers)) {
25279+ return $this->useSerializers; /*null*/
25280+ } elseif ($this->useSerializers instanceof UseSerializers) {
25281+ return $this->useSerializers->to(); /*class*/
25282+ } elseif (is_float($this->useSerializers) || is_int($this->useSerializers)) {
25283+ return $this->useSerializers; /*float*/
25284+ } else {
25285+ throw new Exception('Union value has no matching member in TopLevel');
25286+ }
25287+ }
25288+ throw new Exception('never get to this TopLevel::useSerializers');
25289+ }
25290+
25291+ /**
25292+ * @param UseSerializers|float|null
25293+ * @return bool
25294+ * @throws Exception
25295+ */
25296+ public static function validateUseSerializers(UseSerializers|float|null $value): bool {
25297+ if (is_null($value)) {
25298+ if (!is_null($value)) {
25299+ throw new Exception("Attribute Error:TopLevel::useSerializers");
25300+ }
25301+ } elseif ($value instanceof UseSerializers) {
25302+ $value->validate();
25303+ } elseif (is_float($value) || is_int($value)) {
25304+ if (!is_float($value) && !is_int($value)) {
25305+ throw new Exception("Attribute Error:TopLevel::useSerializers");
25306+ }
25307+ } else {
25308+ throw new Exception("Attribute Error:TopLevel::useSerializers");
25309+ }
25310+ return true;
25311+ }
25312+
25313+ /**
25314+ * @throws Exception
25315+ * @return UseSerializers|float|null
25316+ */
25317+ public function getUseSerializers(): UseSerializers|float|null {
25318+ if (TopLevel::validateUseSerializers($this->useSerializers)) {
25319+ return $this->useSerializers;
25320+ }
25321+ throw new Exception('never get to getUseSerializers TopLevel::useSerializers');
25322+ }
25323+
25324+ /**
25325+ * @return UseSerializers|float|null
25326+ */
25327+ public static function sampleUseSerializers(): UseSerializers|float|null {
25328+ return UseSerializers::sample(); /*350:useSerializers*/
2485525329 }
2485625330
2485725331 /**
@@ -24927,7 +25401,7 @@ class TopLevel {
2492725401 * @return Ushort|float|null
2492825402 */
2492925403 public static function sampleUshort(): Ushort|float|null {
24930- return Ushort::sample(); /*345:ushort*/
25404+ return Ushort::sample(); /*351:ushort*/
2493125405 }
2493225406
2493325407 /**
@@ -25003,7 +25477,7 @@ class TopLevel {
2500325477 * @return Using|float|null
2500425478 */
2500525479 public static function sampleUsing(): Using|float|null {
25006- return Using::sample(); /*346:using*/
25480+ return Using::sample(); /*352:using*/
2500725481 }
2500825482
2500925483 /**
@@ -25079,7 +25553,7 @@ class TopLevel {
2507925553 * @return Utf8JSONReader|float|null
2508025554 */
2508125555 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25082- return Utf8JSONReader::sample(); /*347:utf8JSONReader*/
25556+ return Utf8JSONReader::sample(); /*353:utf8JSONReader*/
2508325557 }
2508425558
2508525559 /**
@@ -25155,7 +25629,7 @@ class TopLevel {
2515525629 * @return Utf8JSONWriter|float|null
2515625630 */
2515725631 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25158- return Utf8JSONWriter::sample(); /*348:utf8JSONWriter*/
25632+ return Utf8JSONWriter::sample(); /*354:utf8JSONWriter*/
2515925633 }
2516025634
2516125635 /**
@@ -25231,7 +25705,7 @@ class TopLevel {
2523125705 * @return UUID|float|null
2523225706 */
2523325707 public static function sampleUUID(): UUID|float|null {
25234- return UUID::sample(); /*349:uuid*/
25708+ return UUID::sample(); /*355:uuid*/
2523525709 }
2523625710
2523725711 /**
@@ -25307,7 +25781,7 @@ class TopLevel {
2530725781 * @return VarClass|float|null
2530825782 */
2530925783 public static function sampleVar(): VarClass|float|null {
25310- return VarClass::sample(); /*350:var*/
25784+ return VarClass::sample(); /*356:var*/
2531125785 }
2531225786
2531325787 /**
@@ -25383,7 +25857,7 @@ class TopLevel {
2538325857 * @return Virtual|float|null
2538425858 */
2538525859 public static function sampleVirtual(): Virtual|float|null {
25386- return Virtual::sample(); /*351:virtual*/
25860+ return Virtual::sample(); /*357:virtual*/
2538725861 }
2538825862
2538925863 /**
@@ -25459,7 +25933,7 @@ class TopLevel {
2545925933 * @return VoidClass|float|null
2546025934 */
2546125935 public static function sampleVoid(): VoidClass|float|null {
25462- return VoidClass::sample(); /*352:void*/
25936+ return VoidClass::sample(); /*358:void*/
2546325937 }
2546425938
2546525939 /**
@@ -25535,7 +26009,7 @@ class TopLevel {
2553526009 * @return Volatile|float|null
2553626010 */
2553726011 public static function sampleVolatile(): Volatile|float|null {
25538- return Volatile::sample(); /*353:volatile*/
26012+ return Volatile::sample(); /*359:volatile*/
2553926013 }
2554026014
2554126015 /**
@@ -25611,7 +26085,7 @@ class TopLevel {
2561126085 * @return WcharT|float|null
2561226086 */
2561326087 public static function sampleWcharT(): WcharT|float|null {
25614- return WcharT::sample(); /*354:wcharT*/
26088+ return WcharT::sample(); /*360:wcharT*/
2561526089 }
2561626090
2561726091 /**
@@ -25687,7 +26161,7 @@ class TopLevel {
2568726161 * @return Weak|float|null
2568826162 */
2568926163 public static function sampleWeak(): Weak|float|null {
25690- return Weak::sample(); /*355:weak*/
26164+ return Weak::sample(); /*361:weak*/
2569126165 }
2569226166
2569326167 /**
@@ -25763,7 +26237,7 @@ class TopLevel {
2576326237 * @return Where|float|null
2576426238 */
2576526239 public static function sampleWhere(): Where|float|null {
25766- return Where::sample(); /*356:where*/
26240+ return Where::sample(); /*362:where*/
2576726241 }
2576826242
2576926243 /**
@@ -25839,7 +26313,7 @@ class TopLevel {
2583926313 * @return WhileClass|float|null
2584026314 */
2584126315 public static function sampleWhile(): WhileClass|float|null {
25842- return WhileClass::sample(); /*357:while*/
26316+ return WhileClass::sample(); /*363:while*/
2584326317 }
2584426318
2584526319 /**
@@ -25915,7 +26389,7 @@ class TopLevel {
2591526389 * @return WillSet|float|null
2591626390 */
2591726391 public static function sampleWillSet(): WillSet|float|null {
25918- return WillSet::sample(); /*358:willSet*/
26392+ return WillSet::sample(); /*364:willSet*/
2591926393 }
2592026394
2592126395 /**
@@ -25991,7 +26465,7 @@ class TopLevel {
2599126465 * @return With|float|null
2599226466 */
2599326467 public static function sampleWith(): With|float|null {
25994- return With::sample(); /*359:with*/
26468+ return With::sample(); /*365:with*/
2599526469 }
2599626470
2599726471 /**
@@ -26067,7 +26541,7 @@ class TopLevel {
2606726541 * @return XorClass|float|null
2606826542 */
2606926543 public static function sampleXor(): XorClass|float|null {
26070- return XorClass::sample(); /*360:xor*/
26544+ return XorClass::sample(); /*366:xor*/
2607126545 }
2607226546
2607326547 /**
@@ -26143,7 +26617,7 @@ class TopLevel {
2614326617 * @return XorEq|float|null
2614426618 */
2614526619 public static function sampleXorEq(): XorEq|float|null {
26146- return XorEq::sample(); /*361:xorEq*/
26620+ return XorEq::sample(); /*367:xorEq*/
2614726621 }
2614826622
2614926623 /**
@@ -26219,7 +26693,7 @@ class TopLevel {
2621926693 * @return Yes|float|null
2622026694 */
2622126695 public static function sampleYes(): Yes|float|null {
26222- return Yes::sample(); /*362:yes*/
26696+ return Yes::sample(); /*368:yes*/
2622326697 }
2622426698
2622526699 /**
@@ -26295,7 +26769,7 @@ class TopLevel {
2629526769 * @return YieldClass|float|null
2629626770 */
2629726771 public static function sampleYield(): YieldClass|float|null {
26298- return YieldClass::sample(); /*363:yield*/
26772+ return YieldClass::sample(); /*369:yield*/
2629926773 }
2630026774
2630126775 /**
@@ -26475,6 +26949,7 @@ class TopLevel {
2647526949 || TopLevel::validateJSONParser($this->jsonParser)
2647626950 || TopLevel::validateJSONReader($this->jsonReader)
2647726951 || TopLevel::validateJSONTokenType($this->jsonTokenType)
26952+ || TopLevel::validateKSerializer($this->kSerializer)
2647826953 || TopLevel::validateLambda($this->lambda)
2647926954 || TopLevel::validateLazy($this->lazy)
2648026955 || TopLevel::validateLeft($this->left)
@@ -26529,6 +27004,7 @@ class TopLevel {
2652927004 || TopLevel::validatePostfix($this->postfix)
2653027005 || TopLevel::validatePrecedence($this->precedence)
2653127006 || TopLevel::validatePrefix($this->prefix)
27007+ || TopLevel::validatePrimitiveKind($this->primitiveKind)
2653227008 || TopLevel::validatePrint($this->print)
2653327009 || TopLevel::validatePrintf($this->printf)
2653427010 || TopLevel::validatePrintMembers($this->printMembers)
@@ -26563,8 +27039,11 @@ class TopLevel {
2656327039 || TopLevel::validateSelf($this->self)
2656427040 || TopLevel::validateTopLevelSelf($this->topLevelSelf)
2656527041 || TopLevel::validateSendable($this->sendable)
27042+ || TopLevel::validateSerialDescriptor($this->serialDescriptor)
27043+ || TopLevel::validateSerializable($this->serializable)
2656627044 || TopLevel::validateSerialize($this->serialize)
2656727045 || TopLevel::validateSerializerProvider($this->serializerProvider)
27046+ || TopLevel::validateSerialName($this->serialName)
2656827047 || TopLevel::validateSet($this->set)
2656927048 || TopLevel::validateShort($this->short)
2657027049 || TopLevel::validateSigned($this->signed)
@@ -26617,6 +27096,7 @@ class TopLevel {
2661727096 || TopLevel::validateUnowned($this->unowned)
2661827097 || TopLevel::validateUnsafe($this->unsafe)
2661927098 || TopLevel::validateUnsigned($this->unsigned)
27099+ || TopLevel::validateUseSerializers($this->useSerializers)
2662027100 || TopLevel::validateUshort($this->ushort)
2662127101 || TopLevel::validateUsing($this->using)
2662227102 || TopLevel::validateUtf8JSONReader($this->utf8JSONReader)
@@ -26816,6 +27296,7 @@ class TopLevel {
2681627296 $out->{'JsonParser'} = $this->toJSONParser();
2681727297 $out->{'JsonReader'} = $this->toJSONReader();
2681827298 $out->{'JsonTokenType'} = $this->toJSONTokenType();
27299+ $out->{'KSerializer'} = $this->toKSerializer();
2681927300 $out->{'lambda'} = $this->toLambda();
2682027301 $out->{'lazy'} = $this->toLazy();
2682127302 $out->{'left'} = $this->toLeft();
@@ -26870,6 +27351,7 @@ class TopLevel {
2687027351 $out->{'postfix'} = $this->toPostfix();
2687127352 $out->{'precedence'} = $this->toPrecedence();
2687227353 $out->{'prefix'} = $this->toPrefix();
27354+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
2687327355 $out->{'print'} = $this->toPrint();
2687427356 $out->{'printf'} = $this->toPrintf();
2687527357 $out->{'printMembers'} = $this->toPrintMembers();
@@ -26904,8 +27386,11 @@ class TopLevel {
2690427386 $out->{'Self'} = $this->toSelf();
2690527387 $out->{'self'} = $this->toTopLevelSelf();
2690627388 $out->{'Sendable'} = $this->toSendable();
27389+ $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
27390+ $out->{'Serializable'} = $this->toSerializable();
2690727391 $out->{'serialize'} = $this->toSerialize();
2690827392 $out->{'SerializerProvider'} = $this->toSerializerProvider();
27393+ $out->{'SerialName'} = $this->toSerialName();
2690927394 $out->{'set'} = $this->toSet();
2691027395 $out->{'short'} = $this->toShort();
2691127396 $out->{'signed'} = $this->toSigned();
@@ -26958,6 +27443,7 @@ class TopLevel {
2695827443 $out->{'unowned'} = $this->toUnowned();
2695927444 $out->{'unsafe'} = $this->toUnsafe();
2696027445 $out->{'unsigned'} = $this->toUnsigned();
27446+ $out->{'UseSerializers'} = $this->toUseSerializers();
2696127447 $out->{'ushort'} = $this->toUshort();
2696227448 $out->{'using'} = $this->toUsing();
2696327449 $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
@@ -27159,6 +27645,7 @@ class TopLevel {
2715927645 ,TopLevel::fromJSONParser($obj->{'JsonParser'})
2716027646 ,TopLevel::fromJSONReader($obj->{'JsonReader'})
2716127647 ,TopLevel::fromJSONTokenType($obj->{'JsonTokenType'})
27648+ ,TopLevel::fromKSerializer($obj->{'KSerializer'})
2716227649 ,TopLevel::fromLambda($obj->{'lambda'})
2716327650 ,TopLevel::fromLazy($obj->{'lazy'})
2716427651 ,TopLevel::fromLeft($obj->{'left'})
@@ -27213,6 +27700,7 @@ class TopLevel {
2721327700 ,TopLevel::fromPostfix($obj->{'postfix'})
2721427701 ,TopLevel::fromPrecedence($obj->{'precedence'})
2721527702 ,TopLevel::fromPrefix($obj->{'prefix'})
27703+ ,TopLevel::fromPrimitiveKind($obj->{'PrimitiveKind'})
2721627704 ,TopLevel::fromPrint($obj->{'print'})
2721727705 ,TopLevel::fromPrintf($obj->{'printf'})
2721827706 ,TopLevel::fromPrintMembers($obj->{'printMembers'})
@@ -27247,8 +27735,11 @@ class TopLevel {
2724727735 ,TopLevel::fromSelf($obj->{'Self'})
2724827736 ,TopLevel::fromTopLevelSelf($obj->{'self'})
2724927737 ,TopLevel::fromSendable($obj->{'Sendable'})
27738+ ,TopLevel::fromSerialDescriptor($obj->{'SerialDescriptor'})
27739+ ,TopLevel::fromSerializable($obj->{'Serializable'})
2725027740 ,TopLevel::fromSerialize($obj->{'serialize'})
2725127741 ,TopLevel::fromSerializerProvider($obj->{'SerializerProvider'})
27742+ ,TopLevel::fromSerialName($obj->{'SerialName'})
2725227743 ,TopLevel::fromSet($obj->{'set'})
2725327744 ,TopLevel::fromShort($obj->{'short'})
2725427745 ,TopLevel::fromSigned($obj->{'signed'})
@@ -27301,6 +27792,7 @@ class TopLevel {
2730127792 ,TopLevel::fromUnowned($obj->{'unowned'})
2730227793 ,TopLevel::fromUnsafe($obj->{'unsafe'})
2730327794 ,TopLevel::fromUnsigned($obj->{'unsigned'})
27795+ ,TopLevel::fromUseSerializers($obj->{'UseSerializers'})
2730427796 ,TopLevel::fromUshort($obj->{'ushort'})
2730527797 ,TopLevel::fromUsing($obj->{'using'})
2730627798 ,TopLevel::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
@@ -27500,6 +27992,7 @@ class TopLevel {
2750027992 ,TopLevel::sampleJSONParser()
2750127993 ,TopLevel::sampleJSONReader()
2750227994 ,TopLevel::sampleJSONTokenType()
27995+ ,TopLevel::sampleKSerializer()
2750327996 ,TopLevel::sampleLambda()
2750427997 ,TopLevel::sampleLazy()
2750527998 ,TopLevel::sampleLeft()
@@ -27554,6 +28047,7 @@ class TopLevel {
2755428047 ,TopLevel::samplePostfix()
2755528048 ,TopLevel::samplePrecedence()
2755628049 ,TopLevel::samplePrefix()
28050+ ,TopLevel::samplePrimitiveKind()
2755728051 ,TopLevel::samplePrint()
2755828052 ,TopLevel::samplePrintf()
2755928053 ,TopLevel::samplePrintMembers()
@@ -27588,8 +28082,11 @@ class TopLevel {
2758828082 ,TopLevel::sampleSelf()
2758928083 ,TopLevel::sampleTopLevelSelf()
2759028084 ,TopLevel::sampleSendable()
28085+ ,TopLevel::sampleSerialDescriptor()
28086+ ,TopLevel::sampleSerializable()
2759128087 ,TopLevel::sampleSerialize()
2759228088 ,TopLevel::sampleSerializerProvider()
28089+ ,TopLevel::sampleSerialName()
2759328090 ,TopLevel::sampleSet()
2759428091 ,TopLevel::sampleShort()
2759528092 ,TopLevel::sampleSigned()
@@ -27642,6 +28139,7 @@ class TopLevel {
2764228139 ,TopLevel::sampleUnowned()
2764328140 ,TopLevel::sampleUnsafe()
2764428141 ,TopLevel::sampleUnsigned()
28142+ ,TopLevel::sampleUseSerializers()
2764528143 ,TopLevel::sampleUshort()
2764628144 ,TopLevel::sampleUsing()
2764728145 ,TopLevel::sampleUtf8JSONReader()
@@ -35135,6 +35633,51 @@ class JSONWriter {
3513535633 }
3513635634 }
3513735635
35636+// This is an autogenerated file:KSerializer
35637+
35638+class KSerializer {
35639+
35640+ /**
35641+ */
35642+ public function __construct() {
35643+ }
35644+
35645+ /**
35646+ * @throws Exception
35647+ * @return bool
35648+ */
35649+ public function validate(): bool {
35650+ return true;
35651+ }
35652+
35653+ /**
35654+ * @return stdClass
35655+ * @throws Exception
35656+ */
35657+ public function to(): stdClass {
35658+ $out = new stdClass();
35659+ return $out;
35660+ }
35661+
35662+ /**
35663+ * @param stdClass $obj
35664+ * @return KSerializer
35665+ * @throws Exception
35666+ */
35667+ public static function from(stdClass $obj): KSerializer {
35668+ return new KSerializer(
35669+ );
35670+ }
35671+
35672+ /**
35673+ * @return KSerializer
35674+ */
35675+ public static function sample(): KSerializer {
35676+ return new KSerializer(
35677+ );
35678+ }
35679+}
35680+
3513835681 // This is an autogenerated file:Lambda
3513935682
3514035683 class Lambda {
@@ -37475,6 +38018,51 @@ class Prefix {
3747538018 }
3747638019 }
3747738020
38021+// This is an autogenerated file:PrimitiveKind
38022+
38023+class PrimitiveKind {
38024+
38025+ /**
38026+ */
38027+ public function __construct() {
38028+ }
38029+
38030+ /**
38031+ * @throws Exception
38032+ * @return bool
38033+ */
38034+ public function validate(): bool {
38035+ return true;
38036+ }
38037+
38038+ /**
38039+ * @return stdClass
38040+ * @throws Exception
38041+ */
38042+ public function to(): stdClass {
38043+ $out = new stdClass();
38044+ return $out;
38045+ }
38046+
38047+ /**
38048+ * @param stdClass $obj
38049+ * @return PrimitiveKind
38050+ * @throws Exception
38051+ */
38052+ public static function from(stdClass $obj): PrimitiveKind {
38053+ return new PrimitiveKind(
38054+ );
38055+ }
38056+
38057+ /**
38058+ * @return PrimitiveKind
38059+ */
38060+ public static function sample(): PrimitiveKind {
38061+ return new PrimitiveKind(
38062+ );
38063+ }
38064+}
38065+
3747838066 // This is an autogenerated file:PrintClass
3747938067
3748038068 class PrintClass {
@@ -38960,6 +39548,141 @@ class Sendable {
3896039548 }
3896139549 }
3896239550
39551+// This is an autogenerated file:SerialDescriptor
39552+
39553+class SerialDescriptor {
39554+
39555+ /**
39556+ */
39557+ public function __construct() {
39558+ }
39559+
39560+ /**
39561+ * @throws Exception
39562+ * @return bool
39563+ */
39564+ public function validate(): bool {
39565+ return true;
39566+ }
39567+
39568+ /**
39569+ * @return stdClass
39570+ * @throws Exception
39571+ */
39572+ public function to(): stdClass {
39573+ $out = new stdClass();
39574+ return $out;
39575+ }
39576+
39577+ /**
39578+ * @param stdClass $obj
39579+ * @return SerialDescriptor
39580+ * @throws Exception
39581+ */
39582+ public static function from(stdClass $obj): SerialDescriptor {
39583+ return new SerialDescriptor(
39584+ );
39585+ }
39586+
39587+ /**
39588+ * @return SerialDescriptor
39589+ */
39590+ public static function sample(): SerialDescriptor {
39591+ return new SerialDescriptor(
39592+ );
39593+ }
39594+}
39595+
39596+// This is an autogenerated file:SerialName
39597+
39598+class SerialName {
39599+
39600+ /**
39601+ */
39602+ public function __construct() {
39603+ }
39604+
39605+ /**
39606+ * @throws Exception
39607+ * @return bool
39608+ */
39609+ public function validate(): bool {
39610+ return true;
39611+ }
39612+
39613+ /**
39614+ * @return stdClass
39615+ * @throws Exception
39616+ */
39617+ public function to(): stdClass {
39618+ $out = new stdClass();
39619+ return $out;
39620+ }
39621+
39622+ /**
39623+ * @param stdClass $obj
39624+ * @return SerialName
39625+ * @throws Exception
39626+ */
39627+ public static function from(stdClass $obj): SerialName {
39628+ return new SerialName(
39629+ );
39630+ }
39631+
39632+ /**
39633+ * @return SerialName
39634+ */
39635+ public static function sample(): SerialName {
39636+ return new SerialName(
39637+ );
39638+ }
39639+}
39640+
39641+// This is an autogenerated file:SerializableClass
39642+
39643+class SerializableClass {
39644+
39645+ /**
39646+ */
39647+ public function __construct() {
39648+ }
39649+
39650+ /**
39651+ * @throws Exception
39652+ * @return bool
39653+ */
39654+ public function validate(): bool {
39655+ return true;
39656+ }
39657+
39658+ /**
39659+ * @return stdClass
39660+ * @throws Exception
39661+ */
39662+ public function to(): stdClass {
39663+ $out = new stdClass();
39664+ return $out;
39665+ }
39666+
39667+ /**
39668+ * @param stdClass $obj
39669+ * @return SerializableClass
39670+ * @throws Exception
39671+ */
39672+ public static function from(stdClass $obj): SerializableClass {
39673+ return new SerializableClass(
39674+ );
39675+ }
39676+
39677+ /**
39678+ * @return SerializableClass
39679+ */
39680+ public static function sample(): SerializableClass {
39681+ return new SerializableClass(
39682+ );
39683+ }
39684+}
39685+
3896339686 // This is an autogenerated file:Serialize
3896439687
3896539688 class Serialize {
@@ -41750,6 +42473,51 @@ class Unsigned {
4175042473 }
4175142474 }
4175242475
42476+// This is an autogenerated file:UseSerializers
42477+
42478+class UseSerializers {
42479+
42480+ /**
42481+ */
42482+ public function __construct() {
42483+ }
42484+
42485+ /**
42486+ * @throws Exception
42487+ * @return bool
42488+ */
42489+ public function validate(): bool {
42490+ return true;
42491+ }
42492+
42493+ /**
42494+ * @return stdClass
42495+ * @throws Exception
42496+ */
42497+ public function to(): stdClass {
42498+ $out = new stdClass();
42499+ return $out;
42500+ }
42501+
42502+ /**
42503+ * @param stdClass $obj
42504+ * @return UseSerializers
42505+ * @throws Exception
42506+ */
42507+ public static function from(stdClass $obj): UseSerializers {
42508+ return new UseSerializers(
42509+ );
42510+ }
42511+
42512+ /**
42513+ * @return UseSerializers
42514+ */
42515+ public static function sample(): UseSerializers {
42516+ return new UseSerializers(
42517+ );
42518+ }
42519+}
42520+
4175342521 // This is an autogenerated file:Ushort
4175442522
4175542523 class Ushort {
Mschema-pikedefault / TopLevel.pmod+156 −0
@@ -185,6 +185,7 @@ class TopLevel {
185185 UnionJsonParser json_parser; // json: "JsonParser"
186186 UnionJsonReader json_reader; // json: "JsonReader"
187187 UnionJsonTokenType json_token_type; // json: "JsonTokenType"
188+ UnionKSerializer k_serializer; // json: "KSerializer"
188189 UnionLambda top_level_lambda; // json: "lambda"
189190 UnionLazy lazy; // json: "lazy"
190191 UnionLeft left; // json: "left"
@@ -239,6 +240,7 @@ class TopLevel {
239240 UnionPostfix postfix; // json: "postfix"
240241 UnionPrecedence precedence; // json: "precedence"
241242 UnionPrefix prefix; // json: "prefix"
243+ UnionPrimitiveKind primitive_kind; // json: "PrimitiveKind"
242244 UnionPrint print; // json: "print"
243245 UnionPrintf printf; // json: "printf"
244246 UnionPrintMembers print_members; // json: "printMembers"
@@ -273,8 +275,11 @@ class TopLevel {
273275 UnionSelf self; // json: "Self"
274276 UnionSelfUnion top_level_self; // json: "self"
275277 UnionSendable sendable; // json: "Sendable"
278+ UnionSerialDescriptor serial_descriptor; // json: "SerialDescriptor"
279+ UnionSerializable serializable; // json: "Serializable"
276280 UnionSerialize serialize; // json: "serialize"
277281 UnionSerializerProvider serializer_provider; // json: "SerializerProvider"
282+ UnionSerialName serial_name; // json: "SerialName"
278283 UnionSet set; // json: "set"
279284 UnionShort short; // json: "short"
280285 UnionSigned signed; // json: "signed"
@@ -327,6 +332,7 @@ class TopLevel {
327332 UnionUnowned unowned; // json: "unowned"
328333 UnionUnsafe unsafe; // json: "unsafe"
329334 UnionUnsigned unsigned; // json: "unsigned"
335+ UnionUseSerializers use_serializers; // json: "UseSerializers"
330336 UnionUshort ushort; // json: "ushort"
331337 UnionUsing using; // json: "using"
332338 UnionUtf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
@@ -521,6 +527,7 @@ class TopLevel {
521527 "JsonParser" : json_parser,
522528 "JsonReader" : json_reader,
523529 "JsonTokenType" : json_token_type,
530+ "KSerializer" : k_serializer,
524531 "lambda" : top_level_lambda,
525532 "lazy" : lazy,
526533 "left" : left,
@@ -575,6 +582,7 @@ class TopLevel {
575582 "postfix" : postfix,
576583 "precedence" : precedence,
577584 "prefix" : prefix,
585+ "PrimitiveKind" : primitive_kind,
578586 "print" : print,
579587 "printf" : printf,
580588 "printMembers" : print_members,
@@ -609,8 +617,11 @@ class TopLevel {
609617 "Self" : self,
610618 "self" : top_level_self,
611619 "Sendable" : sendable,
620+ "SerialDescriptor" : serial_descriptor,
621+ "Serializable" : serializable,
612622 "serialize" : serialize,
613623 "SerializerProvider" : serializer_provider,
624+ "SerialName" : serial_name,
614625 "set" : set,
615626 "short" : short,
616627 "signed" : signed,
@@ -663,6 +674,7 @@ class TopLevel {
663674 "unowned" : unowned,
664675 "unsafe" : unsafe,
665676 "unsigned" : unsigned,
677+ "UseSerializers" : use_serializers,
666678 "ushort" : ushort,
667679 "using" : using,
668680 "Utf8JsonReader" : utf8_json_reader,
@@ -1034,6 +1046,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
10341046 retval.json_reader = json["JsonReader"];
10351047 if (arrayp(json["JsonTokenType"])) error("Unexpected array");
10361048 retval.json_token_type = json["JsonTokenType"];
1049+ if (arrayp(json["KSerializer"])) error("Unexpected array");
1050+ retval.k_serializer = json["KSerializer"];
10371051 if (arrayp(json["lambda"])) error("Unexpected array");
10381052 retval.top_level_lambda = json["lambda"];
10391053 if (arrayp(json["lazy"])) error("Unexpected array");
@@ -1142,6 +1156,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
11421156 retval.precedence = json["precedence"];
11431157 if (arrayp(json["prefix"])) error("Unexpected array");
11441158 retval.prefix = json["prefix"];
1159+ if (arrayp(json["PrimitiveKind"])) error("Unexpected array");
1160+ retval.primitive_kind = json["PrimitiveKind"];
11451161 if (arrayp(json["print"])) error("Unexpected array");
11461162 retval.print = json["print"];
11471163 if (arrayp(json["printf"])) error("Unexpected array");
@@ -1210,10 +1226,16 @@ TopLevel TopLevel_from_JSON(mixed json) {
12101226 retval.top_level_self = json["self"];
12111227 if (arrayp(json["Sendable"])) error("Unexpected array");
12121228 retval.sendable = json["Sendable"];
1229+ if (arrayp(json["SerialDescriptor"])) error("Unexpected array");
1230+ retval.serial_descriptor = json["SerialDescriptor"];
1231+ if (arrayp(json["Serializable"])) error("Unexpected array");
1232+ retval.serializable = json["Serializable"];
12131233 if (arrayp(json["serialize"])) error("Unexpected array");
12141234 retval.serialize = json["serialize"];
12151235 if (arrayp(json["SerializerProvider"])) error("Unexpected array");
12161236 retval.serializer_provider = json["SerializerProvider"];
1237+ if (arrayp(json["SerialName"])) error("Unexpected array");
1238+ retval.serial_name = json["SerialName"];
12171239 if (arrayp(json["set"])) error("Unexpected array");
12181240 retval.set = json["set"];
12191241 if (arrayp(json["short"])) error("Unexpected array");
@@ -1318,6 +1340,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
13181340 retval.unsafe = json["unsafe"];
13191341 if (arrayp(json["unsigned"])) error("Unexpected array");
13201342 retval.unsigned = json["unsigned"];
1343+ if (arrayp(json["UseSerializers"])) error("Unexpected array");
1344+ retval.use_serializers = json["UseSerializers"];
13211345 if (arrayp(json["ushort"])) error("Unexpected array");
13221346 retval.ushort = json["ushort"];
13231347 if (arrayp(json["using"])) error("Unexpected array");
@@ -4506,6 +4530,28 @@ JsonWriter JsonWriter_from_JSON(mixed json) {
45064530 return retval;
45074531 }
45084532
4533+typedef float|KSerializer UnionKSerializer;
4534+
4535+UnionKSerializer UnionKSerializer_from_JSON(mixed json) {
4536+ return json;
4537+}
4538+
4539+class KSerializer {
4540+
4541+ string encode_json() {
4542+ mapping(string:mixed) json = ([
4543+ ]);
4544+
4545+ return Standards.JSON.encode(json);
4546+ }
4547+}
4548+
4549+KSerializer KSerializer_from_JSON(mixed json) {
4550+ KSerializer retval = KSerializer();
4551+
4552+ return retval;
4553+}
4554+
45094555 typedef float|Lazy UnionLazy;
45104556
45114557 UnionLazy UnionLazy_from_JSON(mixed json) {
@@ -5584,6 +5630,28 @@ Prefix Prefix_from_JSON(mixed json) {
55845630 return retval;
55855631 }
55865632
5633+typedef float|PrimitiveKind UnionPrimitiveKind;
5634+
5635+UnionPrimitiveKind UnionPrimitiveKind_from_JSON(mixed json) {
5636+ return json;
5637+}
5638+
5639+class PrimitiveKind {
5640+
5641+ string encode_json() {
5642+ mapping(string:mixed) json = ([
5643+ ]);
5644+
5645+ return Standards.JSON.encode(json);
5646+ }
5647+}
5648+
5649+PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
5650+ PrimitiveKind retval = PrimitiveKind();
5651+
5652+ return retval;
5653+}
5654+
55875655 typedef float|Print UnionPrint;
55885656
55895657 UnionPrint UnionPrint_from_JSON(mixed json) {
@@ -6244,6 +6312,72 @@ Sendable Sendable_from_JSON(mixed json) {
62446312 return retval;
62456313 }
62466314
6315+typedef float|SerialDescriptor UnionSerialDescriptor;
6316+
6317+UnionSerialDescriptor UnionSerialDescriptor_from_JSON(mixed json) {
6318+ return json;
6319+}
6320+
6321+class SerialDescriptor {
6322+
6323+ string encode_json() {
6324+ mapping(string:mixed) json = ([
6325+ ]);
6326+
6327+ return Standards.JSON.encode(json);
6328+ }
6329+}
6330+
6331+SerialDescriptor SerialDescriptor_from_JSON(mixed json) {
6332+ SerialDescriptor retval = SerialDescriptor();
6333+
6334+ return retval;
6335+}
6336+
6337+typedef float|SerialName UnionSerialName;
6338+
6339+UnionSerialName UnionSerialName_from_JSON(mixed json) {
6340+ return json;
6341+}
6342+
6343+class SerialName {
6344+
6345+ string encode_json() {
6346+ mapping(string:mixed) json = ([
6347+ ]);
6348+
6349+ return Standards.JSON.encode(json);
6350+ }
6351+}
6352+
6353+SerialName SerialName_from_JSON(mixed json) {
6354+ SerialName retval = SerialName();
6355+
6356+ return retval;
6357+}
6358+
6359+typedef float|Serializable UnionSerializable;
6360+
6361+UnionSerializable UnionSerializable_from_JSON(mixed json) {
6362+ return json;
6363+}
6364+
6365+class Serializable {
6366+
6367+ string encode_json() {
6368+ mapping(string:mixed) json = ([
6369+ ]);
6370+
6371+ return Standards.JSON.encode(json);
6372+ }
6373+}
6374+
6375+Serializable Serializable_from_JSON(mixed json) {
6376+ Serializable retval = Serializable();
6377+
6378+ return retval;
6379+}
6380+
62476381 typedef float|Serialize UnionSerialize;
62486382
62496383 UnionSerialize UnionSerialize_from_JSON(mixed json) {
@@ -8290,6 +8424,28 @@ Unsigned Unsigned_from_JSON(mixed json) {
82908424 return retval;
82918425 }
82928426
8427+typedef float|UseSerializers UnionUseSerializers;
8428+
8429+UnionUseSerializers UnionUseSerializers_from_JSON(mixed json) {
8430+ return json;
8431+}
8432+
8433+class UseSerializers {
8434+
8435+ string encode_json() {
8436+ mapping(string:mixed) json = ([
8437+ ]);
8438+
8439+ return Standards.JSON.encode(json);
8440+ }
8441+}
8442+
8443+UseSerializers UseSerializers_from_JSON(mixed json) {
8444+ UseSerializers retval = UseSerializers();
8445+
8446+ return retval;
8447+}
8448+
82938449 typedef float|Ushort UnionUshort;
82948450
82958451 UnionUshort UnionUshort_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+109 −1
@@ -2022,6 +2022,20 @@ class JSONWriter:
20222022 return result
20232023
20242024
2025+@dataclass
2026+class KSerializer:
2027+ pass
2028+
2029+ @staticmethod
2030+ def from_dict(obj: Any) -> 'KSerializer':
2031+ assert isinstance(obj, dict)
2032+ return KSerializer()
2033+
2034+ def to_dict(self) -> dict:
2035+ result: dict = {}
2036+ return result
2037+
2038+
20252039 @dataclass
20262040 class Lazy:
20272041 pass
@@ -2680,6 +2694,20 @@ class Prefix:
26802694 return result
26812695
26822696
2697+@dataclass
2698+class PrimitiveKind:
2699+ pass
2700+
2701+ @staticmethod
2702+ def from_dict(obj: Any) -> 'PrimitiveKind':
2703+ assert isinstance(obj, dict)
2704+ return PrimitiveKind()
2705+
2706+ def to_dict(self) -> dict:
2707+ result: dict = {}
2708+ return result
2709+
2710+
26832711 @dataclass
26842712 class PrintMembers:
26852713 pass
@@ -3114,6 +3142,48 @@ class Sendable:
31143142 return result
31153143
31163144
3145+@dataclass
3146+class SerialDescriptor:
3147+ pass
3148+
3149+ @staticmethod
3150+ def from_dict(obj: Any) -> 'SerialDescriptor':
3151+ assert isinstance(obj, dict)
3152+ return SerialDescriptor()
3153+
3154+ def to_dict(self) -> dict:
3155+ result: dict = {}
3156+ return result
3157+
3158+
3159+@dataclass
3160+class SerialName:
3161+ pass
3162+
3163+ @staticmethod
3164+ def from_dict(obj: Any) -> 'SerialName':
3165+ assert isinstance(obj, dict)
3166+ return SerialName()
3167+
3168+ def to_dict(self) -> dict:
3169+ result: dict = {}
3170+ return result
3171+
3172+
3173+@dataclass
3174+class Serializable:
3175+ pass
3176+
3177+ @staticmethod
3178+ def from_dict(obj: Any) -> 'Serializable':
3179+ assert isinstance(obj, dict)
3180+ return Serializable()
3181+
3182+ def to_dict(self) -> dict:
3183+ result: dict = {}
3184+ return result
3185+
3186+
31173187 @dataclass
31183188 class Serialize:
31193189 pass
@@ -4458,6 +4528,20 @@ class Unsigned:
44584528 return result
44594529
44604530
4531+@dataclass
4532+class UseSerializers:
4533+ pass
4534+
4535+ @staticmethod
4536+ def from_dict(obj: Any) -> 'UseSerializers':
4537+ assert isinstance(obj, dict)
4538+ return UseSerializers()
4539+
4540+ def to_dict(self) -> dict:
4541+ result: dict = {}
4542+ return result
4543+
4544+
44614545 @dataclass
44624546 class Ushort:
44634547 pass
@@ -4856,6 +4940,7 @@ class TopLevel:
48564940 json_parser: float | JSONParser | None = None
48574941 json_reader: float | JSONReader | None = None
48584942 json_token_type: float | JSONTokenType | None = None
4943+ k_serializer: float | KSerializer | None = None
48594944 top_level_lambda: float | Lambda | None = None
48604945 lazy: float | Lazy | None = None
48614946 left: float | Left | None = None
@@ -4910,6 +4995,7 @@ class TopLevel:
49104995 postfix: float | Postfix | None = None
49114996 precedence: float | Precedence | None = None
49124997 prefix: float | Prefix | None = None
4998+ primitive_kind: float | PrimitiveKind | None = None
49134999 top_level_print: float | Print | None = None
49145000 printf: float | Printf | None = None
49155001 print_members: float | PrintMembers | None = None
@@ -4944,8 +5030,11 @@ class TopLevel:
49445030 top_level_self: float | Self | None = None
49455031 purple_self: float | SelfClass | None = None
49465032 sendable: float | Sendable | None = None
5033+ serial_descriptor: float | SerialDescriptor | None = None
5034+ serializable: float | Serializable | None = None
49475035 serialize: float | Serialize | None = None
49485036 serializer_provider: float | SerializerProvider | None = None
5037+ serial_name: float | SerialName | None = None
49495038 set: float | Set | None = None
49505039 short: float | Short | None = None
49515040 signed: float | Signed | None = None
@@ -4998,6 +5087,7 @@ class TopLevel:
49985087 unowned: float | Unowned | None = None
49995088 unsafe: float | Unsafe | None = None
50005089 unsigned: float | Unsigned | None = None
5090+ use_serializers: float | UseSerializers | None = None
50015091 ushort: float | Ushort | None = None
50025092 using: float | Using | None = None
50035093 utf8_json_reader: float | Utf8JSONReader | None = None
@@ -5193,6 +5283,7 @@ class TopLevel:
51935283 json_parser = from_union([from_float, JSONParser.from_dict, from_none], obj.get("JsonParser"))
51945284 json_reader = from_union([from_float, JSONReader.from_dict, from_none], obj.get("JsonReader"))
51955285 json_token_type = from_union([from_float, JSONTokenType.from_dict, from_none], obj.get("JsonTokenType"))
5286+ k_serializer = from_union([from_float, KSerializer.from_dict, from_none], obj.get("KSerializer"))
51965287 top_level_lambda = from_union([from_float, Lambda.from_dict, from_none], obj.get("lambda"))
51975288 lazy = from_union([from_float, Lazy.from_dict, from_none], obj.get("lazy"))
51985289 left = from_union([from_float, Left.from_dict, from_none], obj.get("left"))
@@ -5247,6 +5338,7 @@ class TopLevel:
52475338 postfix = from_union([from_float, Postfix.from_dict, from_none], obj.get("postfix"))
52485339 precedence = from_union([from_float, Precedence.from_dict, from_none], obj.get("precedence"))
52495340 prefix = from_union([from_float, Prefix.from_dict, from_none], obj.get("prefix"))
5341+ primitive_kind = from_union([from_float, PrimitiveKind.from_dict, from_none], obj.get("PrimitiveKind"))
52505342 top_level_print = from_union([from_float, Print.from_dict, from_none], obj.get("print"))
52515343 printf = from_union([from_float, Printf.from_dict, from_none], obj.get("printf"))
52525344 print_members = from_union([from_float, PrintMembers.from_dict, from_none], obj.get("printMembers"))
@@ -5281,8 +5373,11 @@ class TopLevel:
52815373 top_level_self = from_union([from_float, Self.from_dict, from_none], obj.get("Self"))
52825374 purple_self = from_union([from_float, SelfClass.from_dict, from_none], obj.get("self"))
52835375 sendable = from_union([from_float, Sendable.from_dict, from_none], obj.get("Sendable"))
5376+ serial_descriptor = from_union([from_float, SerialDescriptor.from_dict, from_none], obj.get("SerialDescriptor"))
5377+ serializable = from_union([from_float, Serializable.from_dict, from_none], obj.get("Serializable"))
52845378 serialize = from_union([from_float, Serialize.from_dict, from_none], obj.get("serialize"))
52855379 serializer_provider = from_union([from_float, SerializerProvider.from_dict, from_none], obj.get("SerializerProvider"))
5380+ serial_name = from_union([from_float, SerialName.from_dict, from_none], obj.get("SerialName"))
52865381 set = from_union([from_float, Set.from_dict, from_none], obj.get("set"))
52875382 short = from_union([from_float, Short.from_dict, from_none], obj.get("short"))
52885383 signed = from_union([from_float, Signed.from_dict, from_none], obj.get("signed"))
@@ -5335,6 +5430,7 @@ class TopLevel:
53355430 unowned = from_union([from_float, Unowned.from_dict, from_none], obj.get("unowned"))
53365431 unsafe = from_union([from_float, Unsafe.from_dict, from_none], obj.get("unsafe"))
53375432 unsigned = from_union([from_float, Unsigned.from_dict, from_none], obj.get("unsigned"))
5433+ use_serializers = from_union([from_float, UseSerializers.from_dict, from_none], obj.get("UseSerializers"))
53385434 ushort = from_union([from_float, Ushort.from_dict, from_none], obj.get("ushort"))
53395435 using = from_union([from_float, Using.from_dict, from_none], obj.get("using"))
53405436 utf8_json_reader = from_union([from_float, Utf8JSONReader.from_dict, from_none], obj.get("Utf8JsonReader"))
@@ -5354,7 +5450,7 @@ class TopLevel:
53545450 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
53555451 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
53565452 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5357- return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serialize, serializer_provider, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
5453+ return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, k_serializer, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serial_descriptor, serializable, serialize, serializer_provider, serial_name, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, use_serializers, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
53585454
53595455 def to_dict(self) -> dict:
53605456 result: dict = {}
@@ -5702,6 +5798,8 @@ class TopLevel:
57025798 result["JsonReader"] = from_union([to_float, lambda x: to_class(JSONReader, x), from_none], self.json_reader)
57035799 if self.json_token_type is not None:
57045800 result["JsonTokenType"] = from_union([to_float, lambda x: to_class(JSONTokenType, x), from_none], self.json_token_type)
5801+ if self.k_serializer is not None:
5802+ result["KSerializer"] = from_union([to_float, lambda x: to_class(KSerializer, x), from_none], self.k_serializer)
57055803 if self.top_level_lambda is not None:
57065804 result["lambda"] = from_union([to_float, lambda x: to_class(Lambda, x), from_none], self.top_level_lambda)
57075805 if self.lazy is not None:
@@ -5810,6 +5908,8 @@ class TopLevel:
58105908 result["precedence"] = from_union([to_float, lambda x: to_class(Precedence, x), from_none], self.precedence)
58115909 if self.prefix is not None:
58125910 result["prefix"] = from_union([to_float, lambda x: to_class(Prefix, x), from_none], self.prefix)
5911+ if self.primitive_kind is not None:
5912+ result["PrimitiveKind"] = from_union([to_float, lambda x: to_class(PrimitiveKind, x), from_none], self.primitive_kind)
58135913 if self.top_level_print is not None:
58145914 result["print"] = from_union([to_float, lambda x: to_class(Print, x), from_none], self.top_level_print)
58155915 if self.printf is not None:
@@ -5878,10 +5978,16 @@ class TopLevel:
58785978 result["self"] = from_union([to_float, lambda x: to_class(SelfClass, x), from_none], self.purple_self)
58795979 if self.sendable is not None:
58805980 result["Sendable"] = from_union([to_float, lambda x: to_class(Sendable, x), from_none], self.sendable)
5981+ if self.serial_descriptor is not None:
5982+ result["SerialDescriptor"] = from_union([to_float, lambda x: to_class(SerialDescriptor, x), from_none], self.serial_descriptor)
5983+ if self.serializable is not None:
5984+ result["Serializable"] = from_union([to_float, lambda x: to_class(Serializable, x), from_none], self.serializable)
58815985 if self.serialize is not None:
58825986 result["serialize"] = from_union([to_float, lambda x: to_class(Serialize, x), from_none], self.serialize)
58835987 if self.serializer_provider is not None:
58845988 result["SerializerProvider"] = from_union([to_float, lambda x: to_class(SerializerProvider, x), from_none], self.serializer_provider)
5989+ if self.serial_name is not None:
5990+ result["SerialName"] = from_union([to_float, lambda x: to_class(SerialName, x), from_none], self.serial_name)
58855991 if self.set is not None:
58865992 result["set"] = from_union([to_float, lambda x: to_class(Set, x), from_none], self.set)
58875993 if self.short is not None:
@@ -5986,6 +6092,8 @@ class TopLevel:
59866092 result["unsafe"] = from_union([to_float, lambda x: to_class(Unsafe, x), from_none], self.unsafe)
59876093 if self.unsigned is not None:
59886094 result["unsigned"] = from_union([to_float, lambda x: to_class(Unsigned, x), from_none], self.unsigned)
6095+ if self.use_serializers is not None:
6096+ result["UseSerializers"] = from_union([to_float, lambda x: to_class(UseSerializers, x), from_none], self.use_serializers)
59896097 if self.ushort is not None:
59906098 result["ushort"] = from_union([to_float, lambda x: to_class(Ushort, x), from_none], self.ushort)
59916099 if self.using is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+360 −0
@@ -8740,6 +8740,63 @@ class UnionJSONWriter < Dry::Struct
87408740 end
87418741 end
87428742
8743+class KSerializer < Dry::Struct
8744+
8745+ def self.from_dynamic!(d)
8746+ d = Types::Hash[d]
8747+ new(
8748+ )
8749+ end
8750+
8751+ def self.from_json!(json)
8752+ from_dynamic!(JSON.parse(json))
8753+ end
8754+
8755+ def to_dynamic
8756+ {
8757+ }
8758+ end
8759+
8760+ def to_json(options = nil)
8761+ JSON.generate(to_dynamic, options)
8762+ end
8763+end
8764+
8765+class UnionKSerializer < Dry::Struct
8766+ attribute :double, Types::Double.optional
8767+ attribute :k_serializer, KSerializer.optional
8768+
8769+ def self.from_dynamic!(d)
8770+ if schema.key(:double).type.right.valid? d
8771+ return new(double: d, k_serializer: nil)
8772+ end
8773+ begin
8774+ value = KSerializer.from_dynamic!(d)
8775+ if schema.key(:k_serializer).type.right.valid? value
8776+ return new(k_serializer: value, double: nil)
8777+ end
8778+ rescue
8779+ end
8780+ raise "Invalid union"
8781+ end
8782+
8783+ def self.from_json!(json)
8784+ from_dynamic!(JSON.parse(json))
8785+ end
8786+
8787+ def to_dynamic
8788+ if double != nil
8789+ double
8790+ elsif k_serializer != nil
8791+ k_serializer.to_dynamic
8792+ end
8793+ end
8794+
8795+ def to_json(options = nil)
8796+ JSON.generate(to_dynamic, options)
8797+ end
8798+end
8799+
87438800 class Lazy < Dry::Struct
87448801
87458802 def self.from_dynamic!(d)
@@ -11248,6 +11305,63 @@ class UnionPrefix < Dry::Struct
1124811305 end
1124911306 end
1125011307
11308+class PrimitiveKind < Dry::Struct
11309+
11310+ def self.from_dynamic!(d)
11311+ d = Types::Hash[d]
11312+ new(
11313+ )
11314+ end
11315+
11316+ def self.from_json!(json)
11317+ from_dynamic!(JSON.parse(json))
11318+ end
11319+
11320+ def to_dynamic
11321+ {
11322+ }
11323+ end
11324+
11325+ def to_json(options = nil)
11326+ JSON.generate(to_dynamic, options)
11327+ end
11328+end
11329+
11330+class UnionPrimitiveKind < Dry::Struct
11331+ attribute :double, Types::Double.optional
11332+ attribute :primitive_kind, PrimitiveKind.optional
11333+
11334+ def self.from_dynamic!(d)
11335+ if schema.key(:double).type.right.valid? d
11336+ return new(double: d, primitive_kind: nil)
11337+ end
11338+ begin
11339+ value = PrimitiveKind.from_dynamic!(d)
11340+ if schema.key(:primitive_kind).type.right.valid? value
11341+ return new(primitive_kind: value, double: nil)
11342+ end
11343+ rescue
11344+ end
11345+ raise "Invalid union"
11346+ end
11347+
11348+ def self.from_json!(json)
11349+ from_dynamic!(JSON.parse(json))
11350+ end
11351+
11352+ def to_dynamic
11353+ if double != nil
11354+ double
11355+ elsif primitive_kind != nil
11356+ primitive_kind.to_dynamic
11357+ end
11358+ end
11359+
11360+ def to_json(options = nil)
11361+ JSON.generate(to_dynamic, options)
11362+ end
11363+end
11364+
1125111365 class PrintMembers < Dry::Struct
1125211366
1125311367 def self.from_dynamic!(d)
@@ -12730,6 +12844,177 @@ class UnionSendable < Dry::Struct
1273012844 end
1273112845 end
1273212846
12847+class SerialDescriptor < Dry::Struct
12848+
12849+ def self.from_dynamic!(d)
12850+ d = Types::Hash[d]
12851+ new(
12852+ )
12853+ end
12854+
12855+ def self.from_json!(json)
12856+ from_dynamic!(JSON.parse(json))
12857+ end
12858+
12859+ def to_dynamic
12860+ {
12861+ }
12862+ end
12863+
12864+ def to_json(options = nil)
12865+ JSON.generate(to_dynamic, options)
12866+ end
12867+end
12868+
12869+class UnionSerialDescriptor < Dry::Struct
12870+ attribute :double, Types::Double.optional
12871+ attribute :serial_descriptor, SerialDescriptor.optional
12872+
12873+ def self.from_dynamic!(d)
12874+ if schema.key(:double).type.right.valid? d
12875+ return new(double: d, serial_descriptor: nil)
12876+ end
12877+ begin
12878+ value = SerialDescriptor.from_dynamic!(d)
12879+ if schema.key(:serial_descriptor).type.right.valid? value
12880+ return new(serial_descriptor: value, double: nil)
12881+ end
12882+ rescue
12883+ end
12884+ raise "Invalid union"
12885+ end
12886+
12887+ def self.from_json!(json)
12888+ from_dynamic!(JSON.parse(json))
12889+ end
12890+
12891+ def to_dynamic
12892+ if double != nil
12893+ double
12894+ elsif serial_descriptor != nil
12895+ serial_descriptor.to_dynamic
12896+ end
12897+ end
12898+
12899+ def to_json(options = nil)
12900+ JSON.generate(to_dynamic, options)
12901+ end
12902+end
12903+
12904+class SerialName < Dry::Struct
12905+
12906+ def self.from_dynamic!(d)
12907+ d = Types::Hash[d]
12908+ new(
12909+ )
12910+ end
12911+
12912+ def self.from_json!(json)
12913+ from_dynamic!(JSON.parse(json))
12914+ end
12915+
12916+ def to_dynamic
12917+ {
12918+ }
12919+ end
12920+
12921+ def to_json(options = nil)
12922+ JSON.generate(to_dynamic, options)
12923+ end
12924+end
12925+
12926+class UnionSerialName < Dry::Struct
12927+ attribute :double, Types::Double.optional
12928+ attribute :serial_name, SerialName.optional
12929+
12930+ def self.from_dynamic!(d)
12931+ if schema.key(:double).type.right.valid? d
12932+ return new(double: d, serial_name: nil)
12933+ end
12934+ begin
12935+ value = SerialName.from_dynamic!(d)
12936+ if schema.key(:serial_name).type.right.valid? value
12937+ return new(serial_name: value, double: nil)
12938+ end
12939+ rescue
12940+ end
12941+ raise "Invalid union"
12942+ end
12943+
12944+ def self.from_json!(json)
12945+ from_dynamic!(JSON.parse(json))
12946+ end
12947+
12948+ def to_dynamic
12949+ if double != nil
12950+ double
12951+ elsif serial_name != nil
12952+ serial_name.to_dynamic
12953+ end
12954+ end
12955+
12956+ def to_json(options = nil)
12957+ JSON.generate(to_dynamic, options)
12958+ end
12959+end
12960+
12961+class Serializable < Dry::Struct
12962+
12963+ def self.from_dynamic!(d)
12964+ d = Types::Hash[d]
12965+ new(
12966+ )
12967+ end
12968+
12969+ def self.from_json!(json)
12970+ from_dynamic!(JSON.parse(json))
12971+ end
12972+
12973+ def to_dynamic
12974+ {
12975+ }
12976+ end
12977+
12978+ def to_json(options = nil)
12979+ JSON.generate(to_dynamic, options)
12980+ end
12981+end
12982+
12983+class UnionSerializable < Dry::Struct
12984+ attribute :double, Types::Double.optional
12985+ attribute :serializable, Serializable.optional
12986+
12987+ def self.from_dynamic!(d)
12988+ if schema.key(:double).type.right.valid? d
12989+ return new(double: d, serializable: nil)
12990+ end
12991+ begin
12992+ value = Serializable.from_dynamic!(d)
12993+ if schema.key(:serializable).type.right.valid? value
12994+ return new(serializable: value, double: nil)
12995+ end
12996+ rescue
12997+ end
12998+ raise "Invalid union"
12999+ end
13000+
13001+ def self.from_json!(json)
13002+ from_dynamic!(JSON.parse(json))
13003+ end
13004+
13005+ def to_dynamic
13006+ if double != nil
13007+ double
13008+ elsif serializable != nil
13009+ serializable.to_dynamic
13010+ end
13011+ end
13012+
13013+ def to_json(options = nil)
13014+ JSON.generate(to_dynamic, options)
13015+ end
13016+end
13017+
1273313018 class Serialize < Dry::Struct
1273413019
1273513020 def self.from_dynamic!(d)
@@ -18031,6 +18316,63 @@ class UnionUnsigned < Dry::Struct
1803118316 end
1803218317 end
1803318318
18319+class UseSerializers < Dry::Struct
18320+
18321+ def self.from_dynamic!(d)
18322+ d = Types::Hash[d]
18323+ new(
18324+ )
18325+ end
18326+
18327+ def self.from_json!(json)
18328+ from_dynamic!(JSON.parse(json))
18329+ end
18330+
18331+ def to_dynamic
18332+ {
18333+ }
18334+ end
18335+
18336+ def to_json(options = nil)
18337+ JSON.generate(to_dynamic, options)
18338+ end
18339+end
18340+
18341+class UnionUseSerializers < Dry::Struct
18342+ attribute :double, Types::Double.optional
18343+ attribute :use_serializers, UseSerializers.optional
18344+
18345+ def self.from_dynamic!(d)
18346+ if schema.key(:double).type.right.valid? d
18347+ return new(double: d, use_serializers: nil)
18348+ end
18349+ begin
18350+ value = UseSerializers.from_dynamic!(d)
18351+ if schema.key(:use_serializers).type.right.valid? value
18352+ return new(use_serializers: value, double: nil)
18353+ end
18354+ rescue
18355+ end
18356+ raise "Invalid union"
18357+ end
18358+
18359+ def self.from_json!(json)
18360+ from_dynamic!(JSON.parse(json))
18361+ end
18362+
18363+ def to_dynamic
18364+ if double != nil
18365+ double
18366+ elsif use_serializers != nil
18367+ use_serializers.to_dynamic
18368+ end
18369+ end
18370+
18371+ def to_json(options = nil)
18372+ JSON.generate(to_dynamic, options)
18373+ end
18374+end
18375+
1803418376 class Ushort < Dry::Struct
1803518377
1803618378 def self.from_dynamic!(d)
@@ -19116,6 +19458,7 @@ class TopLevel < Dry::Struct
1911619458 attribute :json_parser, Types.Instance(UnionJSONParser).optional
1911719459 attribute :json_reader, Types.Instance(UnionJSONReader).optional
1911819460 attribute :json_token_type, Types.Instance(UnionJSONTokenType).optional
19461+ attribute :k_serializer, Types.Instance(UnionKSerializer).optional
1911919462 attribute :top_level_lambda, Types.Instance(UnionLambda).optional
1912019463 attribute :lazy, Types.Instance(UnionLazy).optional
1912119464 attribute :left, Types.Instance(UnionLeft).optional
@@ -19170,6 +19513,7 @@ class TopLevel < Dry::Struct
1917019513 attribute :postfix, Types.Instance(UnionPostfix).optional
1917119514 attribute :precedence, Types.Instance(UnionPrecedence).optional
1917219515 attribute :prefix, Types.Instance(UnionPrefix).optional
19516+ attribute :primitive_kind, Types.Instance(UnionPrimitiveKind).optional
1917319517 attribute :top_level_print, Types.Instance(UnionPrint).optional
1917419518 attribute :top_level_printf, Types.Instance(UnionPrintf).optional
1917519519 attribute :print_members, Types.Instance(UnionPrintMembers).optional
@@ -19204,8 +19548,11 @@ class TopLevel < Dry::Struct
1920419548 attribute :top_level_self, Types.Instance(UnionSelf).optional
1920519549 attribute :self_1, Types.Instance(UnionSelfUnion).optional
1920619550 attribute :sendable, Types.Instance(UnionSendable).optional
19551+ attribute :serial_descriptor, Types.Instance(UnionSerialDescriptor).optional
19552+ attribute :serializable, Types.Instance(UnionSerializable).optional
1920719553 attribute :serialize, Types.Instance(UnionSerialize).optional
1920819554 attribute :serializer_provider, Types.Instance(UnionSerializerProvider).optional
19555+ attribute :serial_name, Types.Instance(UnionSerialName).optional
1920919556 attribute :set, Types.Instance(UnionSet).optional
1921019557 attribute :short, Types.Instance(UnionShort).optional
1921119558 attribute :signed, Types.Instance(UnionSigned).optional
@@ -19258,6 +19605,7 @@ class TopLevel < Dry::Struct
1925819605 attribute :unowned, Types.Instance(UnionUnowned).optional
1925919606 attribute :unsafe, Types.Instance(UnionUnsafe).optional
1926019607 attribute :unsigned, Types.Instance(UnionUnsigned).optional
19608+ attribute :use_serializers, Types.Instance(UnionUseSerializers).optional
1926119609 attribute :ushort, Types.Instance(UnionUshort).optional
1926219610 attribute :using, Types.Instance(UnionUsing).optional
1926319611 attribute :utf8_json_reader, Types.Instance(UnionUtf8JSONReader).optional
@@ -19453,6 +19801,7 @@ class TopLevel < Dry::Struct
1945319801 json_parser: d.key?("JsonParser") ? UnionJSONParser.from_dynamic!(d["JsonParser"]) : nil,
1945419802 json_reader: d.key?("JsonReader") ? UnionJSONReader.from_dynamic!(d["JsonReader"]) : nil,
1945519803 json_token_type: d.key?("JsonTokenType") ? UnionJSONTokenType.from_dynamic!(d["JsonTokenType"]) : nil,
19804+ k_serializer: d.key?("KSerializer") ? UnionKSerializer.from_dynamic!(d["KSerializer"]) : nil,
1945619805 top_level_lambda: d.key?("lambda") ? UnionLambda.from_dynamic!(d["lambda"]) : nil,
1945719806 lazy: d.key?("lazy") ? UnionLazy.from_dynamic!(d["lazy"]) : nil,
1945819807 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
@@ -19507,6 +19856,7 @@ class TopLevel < Dry::Struct
1950719856 postfix: d.key?("postfix") ? UnionPostfix.from_dynamic!(d["postfix"]) : nil,
1950819857 precedence: d.key?("precedence") ? UnionPrecedence.from_dynamic!(d["precedence"]) : nil,
1950919858 prefix: d.key?("prefix") ? UnionPrefix.from_dynamic!(d["prefix"]) : nil,
19859+ primitive_kind: d.key?("PrimitiveKind") ? UnionPrimitiveKind.from_dynamic!(d["PrimitiveKind"]) : nil,
1951019860 top_level_print: d.key?("print") ? UnionPrint.from_dynamic!(d["print"]) : nil,
1951119861 top_level_printf: d.key?("printf") ? UnionPrintf.from_dynamic!(d["printf"]) : nil,
1951219862 print_members: d.key?("printMembers") ? UnionPrintMembers.from_dynamic!(d["printMembers"]) : nil,
@@ -19541,8 +19891,11 @@ class TopLevel < Dry::Struct
1954119891 top_level_self: d.key?("Self") ? UnionSelf.from_dynamic!(d["Self"]) : nil,
1954219892 self_1: d.key?("self") ? UnionSelfUnion.from_dynamic!(d["self"]) : nil,
1954319893 sendable: d.key?("Sendable") ? UnionSendable.from_dynamic!(d["Sendable"]) : nil,
19894+ serial_descriptor: d.key?("SerialDescriptor") ? UnionSerialDescriptor.from_dynamic!(d["SerialDescriptor"]) : nil,
19895+ serializable: d.key?("Serializable") ? UnionSerializable.from_dynamic!(d["Serializable"]) : nil,
1954419896 serialize: d.key?("serialize") ? UnionSerialize.from_dynamic!(d["serialize"]) : nil,
1954519897 serializer_provider: d.key?("SerializerProvider") ? UnionSerializerProvider.from_dynamic!(d["SerializerProvider"]) : nil,
19898+ serial_name: d.key?("SerialName") ? UnionSerialName.from_dynamic!(d["SerialName"]) : nil,
1954619899 set: d.key?("set") ? UnionSet.from_dynamic!(d["set"]) : nil,
1954719900 short: d.key?("short") ? UnionShort.from_dynamic!(d["short"]) : nil,
1954819901 signed: d.key?("signed") ? UnionSigned.from_dynamic!(d["signed"]) : nil,
@@ -19595,6 +19948,7 @@ class TopLevel < Dry::Struct
1959519948 unowned: d.key?("unowned") ? UnionUnowned.from_dynamic!(d["unowned"]) : nil,
1959619949 unsafe: d.key?("unsafe") ? UnionUnsafe.from_dynamic!(d["unsafe"]) : nil,
1959719950 unsigned: d.key?("unsigned") ? UnionUnsigned.from_dynamic!(d["unsigned"]) : nil,
19951+ use_serializers: d.key?("UseSerializers") ? UnionUseSerializers.from_dynamic!(d["UseSerializers"]) : nil,
1959819952 ushort: d.key?("ushort") ? UnionUshort.from_dynamic!(d["ushort"]) : nil,
1959919953 using: d.key?("using") ? UnionUsing.from_dynamic!(d["using"]) : nil,
1960019954 utf8_json_reader: d.key?("Utf8JsonReader") ? UnionUtf8JSONReader.from_dynamic!(d["Utf8JsonReader"]) : nil,
@@ -19795,6 +20149,7 @@ class TopLevel < Dry::Struct
1979520149 "JsonParser" => json_parser&.to_dynamic,
1979620150 "JsonReader" => json_reader&.to_dynamic,
1979720151 "JsonTokenType" => json_token_type&.to_dynamic,
20152+ "KSerializer" => k_serializer&.to_dynamic,
1979820153 "lambda" => top_level_lambda&.to_dynamic,
1979920154 "lazy" => lazy&.to_dynamic,
1980020155 "left" => left&.to_dynamic,
@@ -19849,6 +20204,7 @@ class TopLevel < Dry::Struct
1984920204 "postfix" => postfix&.to_dynamic,
1985020205 "precedence" => precedence&.to_dynamic,
1985120206 "prefix" => prefix&.to_dynamic,
20207+ "PrimitiveKind" => primitive_kind&.to_dynamic,
1985220208 "print" => top_level_print&.to_dynamic,
1985320209 "printf" => top_level_printf&.to_dynamic,
1985420210 "printMembers" => print_members&.to_dynamic,
@@ -19883,8 +20239,11 @@ class TopLevel < Dry::Struct
1988320239 "Self" => top_level_self&.to_dynamic,
1988420240 "self" => self_1&.to_dynamic,
1988520241 "Sendable" => sendable&.to_dynamic,
20242+ "SerialDescriptor" => serial_descriptor&.to_dynamic,
20243+ "Serializable" => serializable&.to_dynamic,
1988620244 "serialize" => serialize&.to_dynamic,
1988720245 "SerializerProvider" => serializer_provider&.to_dynamic,
20246+ "SerialName" => serial_name&.to_dynamic,
1988820247 "set" => set&.to_dynamic,
1988920248 "short" => short&.to_dynamic,
1989020249 "signed" => signed&.to_dynamic,
@@ -19937,6 +20296,7 @@ class TopLevel < Dry::Struct
1993720296 "unowned" => unowned&.to_dynamic,
1993820297 "unsafe" => unsafe&.to_dynamic,
1993920298 "unsigned" => unsigned&.to_dynamic,
20299+ "UseSerializers" => use_serializers&.to_dynamic,
1994020300 "ushort" => ushort&.to_dynamic,
1994120301 "using" => using&.to_dynamic,
1994220302 "Utf8JsonReader" => utf8_json_reader&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+360 −0
@@ -8740,6 +8740,63 @@ class UnionJSONWriter < Dry::Struct
87408740 end
87418741 end
87428742
8743+class KSerializer < Dry::Struct
8744+
8745+ def self.from_dynamic!(d)
8746+ d = Types::Hash[d]
8747+ new(
8748+ )
8749+ end
8750+
8751+ def self.from_json!(json)
8752+ from_dynamic!(JSON.parse(json))
8753+ end
8754+
8755+ def to_dynamic
8756+ {
8757+ }
8758+ end
8759+
8760+ def to_json(options = nil)
8761+ JSON.generate(to_dynamic, options)
8762+ end
8763+end
8764+
8765+class UnionKSerializer < Dry::Struct
8766+ attribute :double, Types::Double.optional
8767+ attribute :k_serializer, KSerializer.optional
8768+
8769+ def self.from_dynamic!(d)
8770+ if schema.key(:double).type.right.valid? d
8771+ return new(double: d, k_serializer: nil)
8772+ end
8773+ begin
8774+ value = KSerializer.from_dynamic!(d)
8775+ if schema.key(:k_serializer).type.right.valid? value
8776+ return new(k_serializer: value, double: nil)
8777+ end
8778+ rescue
8779+ end
8780+ raise "Invalid union"
8781+ end
8782+
8783+ def self.from_json!(json)
8784+ from_dynamic!(JSON.parse(json))
8785+ end
8786+
8787+ def to_dynamic
8788+ if double != nil
8789+ double
8790+ elsif k_serializer != nil
8791+ k_serializer.to_dynamic
8792+ end
8793+ end
8794+
8795+ def to_json(options = nil)
8796+ JSON.generate(to_dynamic, options)
8797+ end
8798+end
8799+
87438800 class Lazy < Dry::Struct
87448801
87458802 def self.from_dynamic!(d)
@@ -11248,6 +11305,63 @@ class UnionPrefix < Dry::Struct
1124811305 end
1124911306 end
1125011307
11308+class PrimitiveKind < Dry::Struct
11309+
11310+ def self.from_dynamic!(d)
11311+ d = Types::Hash[d]
11312+ new(
11313+ )
11314+ end
11315+
11316+ def self.from_json!(json)
11317+ from_dynamic!(JSON.parse(json))
11318+ end
11319+
11320+ def to_dynamic
11321+ {
11322+ }
11323+ end
11324+
11325+ def to_json(options = nil)
11326+ JSON.generate(to_dynamic, options)
11327+ end
11328+end
11329+
11330+class UnionPrimitiveKind < Dry::Struct
11331+ attribute :double, Types::Double.optional
11332+ attribute :primitive_kind, PrimitiveKind.optional
11333+
11334+ def self.from_dynamic!(d)
11335+ if schema.key(:double).type.right.valid? d
11336+ return new(double: d, primitive_kind: nil)
11337+ end
11338+ begin
11339+ value = PrimitiveKind.from_dynamic!(d)
11340+ if schema.key(:primitive_kind).type.right.valid? value
11341+ return new(primitive_kind: value, double: nil)
11342+ end
11343+ rescue
11344+ end
11345+ raise "Invalid union"
11346+ end
11347+
11348+ def self.from_json!(json)
11349+ from_dynamic!(JSON.parse(json))
11350+ end
11351+
11352+ def to_dynamic
11353+ if double != nil
11354+ double
11355+ elsif primitive_kind != nil
11356+ primitive_kind.to_dynamic
11357+ end
11358+ end
11359+
11360+ def to_json(options = nil)
11361+ JSON.generate(to_dynamic, options)
11362+ end
11363+end
11364+
1125111365 class PrintMembers < Dry::Struct
1125211366
1125311367 def self.from_dynamic!(d)
@@ -12730,6 +12844,177 @@ class UnionSendable < Dry::Struct
1273012844 end
1273112845 end
1273212846
12847+class SerialDescriptor < Dry::Struct
12848+
12849+ def self.from_dynamic!(d)
12850+ d = Types::Hash[d]
12851+ new(
12852+ )
12853+ end
12854+
12855+ def self.from_json!(json)
12856+ from_dynamic!(JSON.parse(json))
12857+ end
12858+
12859+ def to_dynamic
12860+ {
12861+ }
12862+ end
12863+
12864+ def to_json(options = nil)
12865+ JSON.generate(to_dynamic, options)
12866+ end
12867+end
12868+
12869+class UnionSerialDescriptor < Dry::Struct
12870+ attribute :double, Types::Double.optional
12871+ attribute :serial_descriptor, SerialDescriptor.optional
12872+
12873+ def self.from_dynamic!(d)
12874+ if schema.key(:double).type.right.valid? d
12875+ return new(double: d, serial_descriptor: nil)
12876+ end
12877+ begin
12878+ value = SerialDescriptor.from_dynamic!(d)
12879+ if schema.key(:serial_descriptor).type.right.valid? value
12880+ return new(serial_descriptor: value, double: nil)
12881+ end
12882+ rescue
12883+ end
12884+ raise "Invalid union"
12885+ end
12886+
12887+ def self.from_json!(json)
12888+ from_dynamic!(JSON.parse(json))
12889+ end
12890+
12891+ def to_dynamic
12892+ if double != nil
12893+ double
12894+ elsif serial_descriptor != nil
12895+ serial_descriptor.to_dynamic
12896+ end
12897+ end
12898+
12899+ def to_json(options = nil)
12900+ JSON.generate(to_dynamic, options)
12901+ end
12902+end
12903+
12904+class SerialName < Dry::Struct
12905+
12906+ def self.from_dynamic!(d)
12907+ d = Types::Hash[d]
12908+ new(
12909+ )
12910+ end
12911+
12912+ def self.from_json!(json)
12913+ from_dynamic!(JSON.parse(json))
12914+ end
12915+
12916+ def to_dynamic
12917+ {
12918+ }
12919+ end
12920+
12921+ def to_json(options = nil)
12922+ JSON.generate(to_dynamic, options)
12923+ end
12924+end
12925+
12926+class UnionSerialName < Dry::Struct
12927+ attribute :double, Types::Double.optional
12928+ attribute :serial_name, SerialName.optional
12929+
12930+ def self.from_dynamic!(d)
12931+ if schema.key(:double).type.right.valid? d
12932+ return new(double: d, serial_name: nil)
12933+ end
12934+ begin
12935+ value = SerialName.from_dynamic!(d)
12936+ if schema.key(:serial_name).type.right.valid? value
12937+ return new(serial_name: value, double: nil)
12938+ end
12939+ rescue
12940+ end
12941+ raise "Invalid union"
12942+ end
12943+
12944+ def self.from_json!(json)
12945+ from_dynamic!(JSON.parse(json))
12946+ end
12947+
12948+ def to_dynamic
12949+ if double != nil
12950+ double
12951+ elsif serial_name != nil
12952+ serial_name.to_dynamic
12953+ end
12954+ end
12955+
12956+ def to_json(options = nil)
12957+ JSON.generate(to_dynamic, options)
12958+ end
12959+end
12960+
12961+class Serializable < Dry::Struct
12962+
12963+ def self.from_dynamic!(d)
12964+ d = Types::Hash[d]
12965+ new(
12966+ )
12967+ end
12968+
12969+ def self.from_json!(json)
12970+ from_dynamic!(JSON.parse(json))
12971+ end
12972+
12973+ def to_dynamic
12974+ {
12975+ }
12976+ end
12977+
12978+ def to_json(options = nil)
12979+ JSON.generate(to_dynamic, options)
12980+ end
12981+end
12982+
12983+class UnionSerializable < Dry::Struct
12984+ attribute :double, Types::Double.optional
12985+ attribute :serializable, Serializable.optional
12986+
12987+ def self.from_dynamic!(d)
12988+ if schema.key(:double).type.right.valid? d
12989+ return new(double: d, serializable: nil)
12990+ end
12991+ begin
12992+ value = Serializable.from_dynamic!(d)
12993+ if schema.key(:serializable).type.right.valid? value
12994+ return new(serializable: value, double: nil)
12995+ end
12996+ rescue
12997+ end
12998+ raise "Invalid union"
12999+ end
13000+
13001+ def self.from_json!(json)
13002+ from_dynamic!(JSON.parse(json))
13003+ end
13004+
13005+ def to_dynamic
13006+ if double != nil
13007+ double
13008+ elsif serializable != nil
13009+ serializable.to_dynamic
13010+ end
13011+ end
13012+
13013+ def to_json(options = nil)
13014+ JSON.generate(to_dynamic, options)
13015+ end
13016+end
13017+
1273313018 class Serialize < Dry::Struct
1273413019
1273513020 def self.from_dynamic!(d)
@@ -18031,6 +18316,63 @@ class UnionUnsigned < Dry::Struct
1803118316 end
1803218317 end
1803318318
18319+class UseSerializers < Dry::Struct
18320+
18321+ def self.from_dynamic!(d)
18322+ d = Types::Hash[d]
18323+ new(
18324+ )
18325+ end
18326+
18327+ def self.from_json!(json)
18328+ from_dynamic!(JSON.parse(json))
18329+ end
18330+
18331+ def to_dynamic
18332+ {
18333+ }
18334+ end
18335+
18336+ def to_json(options = nil)
18337+ JSON.generate(to_dynamic, options)
18338+ end
18339+end
18340+
18341+class UnionUseSerializers < Dry::Struct
18342+ attribute :double, Types::Double.optional
18343+ attribute :use_serializers, UseSerializers.optional
18344+
18345+ def self.from_dynamic!(d)
18346+ if schema.key(:double).type.right.valid? d
18347+ return new(double: d, use_serializers: nil)
18348+ end
18349+ begin
18350+ value = UseSerializers.from_dynamic!(d)
18351+ if schema.key(:use_serializers).type.right.valid? value
18352+ return new(use_serializers: value, double: nil)
18353+ end
18354+ rescue
18355+ end
18356+ raise "Invalid union"
18357+ end
18358+
18359+ def self.from_json!(json)
18360+ from_dynamic!(JSON.parse(json))
18361+ end
18362+
18363+ def to_dynamic
18364+ if double != nil
18365+ double
18366+ elsif use_serializers != nil
18367+ use_serializers.to_dynamic
18368+ end
18369+ end
18370+
18371+ def to_json(options = nil)
18372+ JSON.generate(to_dynamic, options)
18373+ end
18374+end
18375+
1803418376 class Ushort < Dry::Struct
1803518377
1803618378 def self.from_dynamic!(d)
@@ -19116,6 +19458,7 @@ class TopLevel < Dry::Struct
1911619458 attribute :json_parser, Types.Instance(UnionJSONParser).optional
1911719459 attribute :json_reader, Types.Instance(UnionJSONReader).optional
1911819460 attribute :json_token_type, Types.Instance(UnionJSONTokenType).optional
19461+ attribute :k_serializer, Types.Instance(UnionKSerializer).optional
1911919462 attribute :top_level_lambda, Types.Instance(UnionLambda).optional
1912019463 attribute :lazy, Types.Instance(UnionLazy).optional
1912119464 attribute :left, Types.Instance(UnionLeft).optional
@@ -19170,6 +19513,7 @@ class TopLevel < Dry::Struct
1917019513 attribute :postfix, Types.Instance(UnionPostfix).optional
1917119514 attribute :precedence, Types.Instance(UnionPrecedence).optional
1917219515 attribute :prefix, Types.Instance(UnionPrefix).optional
19516+ attribute :primitive_kind, Types.Instance(UnionPrimitiveKind).optional
1917319517 attribute :top_level_print, Types.Instance(UnionPrint).optional
1917419518 attribute :top_level_printf, Types.Instance(UnionPrintf).optional
1917519519 attribute :print_members, Types.Instance(UnionPrintMembers).optional
@@ -19204,8 +19548,11 @@ class TopLevel < Dry::Struct
1920419548 attribute :top_level_self, Types.Instance(UnionSelf).optional
1920519549 attribute :self_1, Types.Instance(UnionSelfUnion).optional
1920619550 attribute :sendable, Types.Instance(UnionSendable).optional
19551+ attribute :serial_descriptor, Types.Instance(UnionSerialDescriptor).optional
19552+ attribute :serializable, Types.Instance(UnionSerializable).optional
1920719553 attribute :serialize, Types.Instance(UnionSerialize).optional
1920819554 attribute :serializer_provider, Types.Instance(UnionSerializerProvider).optional
19555+ attribute :serial_name, Types.Instance(UnionSerialName).optional
1920919556 attribute :set, Types.Instance(UnionSet).optional
1921019557 attribute :short, Types.Instance(UnionShort).optional
1921119558 attribute :signed, Types.Instance(UnionSigned).optional
@@ -19258,6 +19605,7 @@ class TopLevel < Dry::Struct
1925819605 attribute :unowned, Types.Instance(UnionUnowned).optional
1925919606 attribute :unsafe, Types.Instance(UnionUnsafe).optional
1926019607 attribute :unsigned, Types.Instance(UnionUnsigned).optional
19608+ attribute :use_serializers, Types.Instance(UnionUseSerializers).optional
1926119609 attribute :ushort, Types.Instance(UnionUshort).optional
1926219610 attribute :using, Types.Instance(UnionUsing).optional
1926319611 attribute :utf8_json_reader, Types.Instance(UnionUtf8JSONReader).optional
@@ -19453,6 +19801,7 @@ class TopLevel < Dry::Struct
1945319801 json_parser: d.key?("JsonParser") ? UnionJSONParser.from_dynamic!(d["JsonParser"]) : nil,
1945419802 json_reader: d.key?("JsonReader") ? UnionJSONReader.from_dynamic!(d["JsonReader"]) : nil,
1945519803 json_token_type: d.key?("JsonTokenType") ? UnionJSONTokenType.from_dynamic!(d["JsonTokenType"]) : nil,
19804+ k_serializer: d.key?("KSerializer") ? UnionKSerializer.from_dynamic!(d["KSerializer"]) : nil,
1945619805 top_level_lambda: d.key?("lambda") ? UnionLambda.from_dynamic!(d["lambda"]) : nil,
1945719806 lazy: d.key?("lazy") ? UnionLazy.from_dynamic!(d["lazy"]) : nil,
1945819807 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
@@ -19507,6 +19856,7 @@ class TopLevel < Dry::Struct
1950719856 postfix: d.key?("postfix") ? UnionPostfix.from_dynamic!(d["postfix"]) : nil,
1950819857 precedence: d.key?("precedence") ? UnionPrecedence.from_dynamic!(d["precedence"]) : nil,
1950919858 prefix: d.key?("prefix") ? UnionPrefix.from_dynamic!(d["prefix"]) : nil,
19859+ primitive_kind: d.key?("PrimitiveKind") ? UnionPrimitiveKind.from_dynamic!(d["PrimitiveKind"]) : nil,
1951019860 top_level_print: d.key?("print") ? UnionPrint.from_dynamic!(d["print"]) : nil,
1951119861 top_level_printf: d.key?("printf") ? UnionPrintf.from_dynamic!(d["printf"]) : nil,
1951219862 print_members: d.key?("printMembers") ? UnionPrintMembers.from_dynamic!(d["printMembers"]) : nil,
@@ -19541,8 +19891,11 @@ class TopLevel < Dry::Struct
1954119891 top_level_self: d.key?("Self") ? UnionSelf.from_dynamic!(d["Self"]) : nil,
1954219892 self_1: d.key?("self") ? UnionSelfUnion.from_dynamic!(d["self"]) : nil,
1954319893 sendable: d.key?("Sendable") ? UnionSendable.from_dynamic!(d["Sendable"]) : nil,
19894+ serial_descriptor: d.key?("SerialDescriptor") ? UnionSerialDescriptor.from_dynamic!(d["SerialDescriptor"]) : nil,
19895+ serializable: d.key?("Serializable") ? UnionSerializable.from_dynamic!(d["Serializable"]) : nil,
1954419896 serialize: d.key?("serialize") ? UnionSerialize.from_dynamic!(d["serialize"]) : nil,
1954519897 serializer_provider: d.key?("SerializerProvider") ? UnionSerializerProvider.from_dynamic!(d["SerializerProvider"]) : nil,
19898+ serial_name: d.key?("SerialName") ? UnionSerialName.from_dynamic!(d["SerialName"]) : nil,
1954619899 set: d.key?("set") ? UnionSet.from_dynamic!(d["set"]) : nil,
1954719900 short: d.key?("short") ? UnionShort.from_dynamic!(d["short"]) : nil,
1954819901 signed: d.key?("signed") ? UnionSigned.from_dynamic!(d["signed"]) : nil,
@@ -19595,6 +19948,7 @@ class TopLevel < Dry::Struct
1959519948 unowned: d.key?("unowned") ? UnionUnowned.from_dynamic!(d["unowned"]) : nil,
1959619949 unsafe: d.key?("unsafe") ? UnionUnsafe.from_dynamic!(d["unsafe"]) : nil,
1959719950 unsigned: d.key?("unsigned") ? UnionUnsigned.from_dynamic!(d["unsigned"]) : nil,
19951+ use_serializers: d.key?("UseSerializers") ? UnionUseSerializers.from_dynamic!(d["UseSerializers"]) : nil,
1959819952 ushort: d.key?("ushort") ? UnionUshort.from_dynamic!(d["ushort"]) : nil,
1959919953 using: d.key?("using") ? UnionUsing.from_dynamic!(d["using"]) : nil,
1960019954 utf8_json_reader: d.key?("Utf8JsonReader") ? UnionUtf8JSONReader.from_dynamic!(d["Utf8JsonReader"]) : nil,
@@ -19795,6 +20149,7 @@ class TopLevel < Dry::Struct
1979520149 "JsonParser" => json_parser&.to_dynamic,
1979620150 "JsonReader" => json_reader&.to_dynamic,
1979720151 "JsonTokenType" => json_token_type&.to_dynamic,
20152+ "KSerializer" => k_serializer&.to_dynamic,
1979820153 "lambda" => top_level_lambda&.to_dynamic,
1979920154 "lazy" => lazy&.to_dynamic,
1980020155 "left" => left&.to_dynamic,
@@ -19849,6 +20204,7 @@ class TopLevel < Dry::Struct
1984920204 "postfix" => postfix&.to_dynamic,
1985020205 "precedence" => precedence&.to_dynamic,
1985120206 "prefix" => prefix&.to_dynamic,
20207+ "PrimitiveKind" => primitive_kind&.to_dynamic,
1985220208 "print" => top_level_print&.to_dynamic,
1985320209 "printf" => top_level_printf&.to_dynamic,
1985420210 "printMembers" => print_members&.to_dynamic,
@@ -19883,8 +20239,11 @@ class TopLevel < Dry::Struct
1988320239 "Self" => top_level_self&.to_dynamic,
1988420240 "self" => self_1&.to_dynamic,
1988520241 "Sendable" => sendable&.to_dynamic,
20242+ "SerialDescriptor" => serial_descriptor&.to_dynamic,
20243+ "Serializable" => serializable&.to_dynamic,
1988620244 "serialize" => serialize&.to_dynamic,
1988720245 "SerializerProvider" => serializer_provider&.to_dynamic,
20246+ "SerialName" => serial_name&.to_dynamic,
1988820247 "set" => set&.to_dynamic,
1988920248 "short" => short&.to_dynamic,
1989020249 "signed" => signed&.to_dynamic,
@@ -19937,6 +20296,7 @@ class TopLevel < Dry::Struct
1993720296 "unowned" => unowned&.to_dynamic,
1993820297 "unsafe" => unsafe&.to_dynamic,
1993920298 "unsigned" => unsigned&.to_dynamic,
20299+ "UseSerializers" => use_serializers&.to_dynamic,
1994020300 "ushort" => ushort&.to_dynamic,
1994120301 "using" => using&.to_dynamic,
1994220302 "Utf8JsonReader" => utf8_json_reader&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+90 −0
@@ -423,6 +423,9 @@ pub struct TopLevel {
423423 #[serde(rename = "JsonTokenType")]
424424 pub json_token_type: Option<UnionJsonTokenType>,
425425
426+ #[serde(rename = "KSerializer")]
427+ pub k_serializer: Option<UnionKSerializer>,
428+
426429 pub lambda: Option<UnionLambda>,
427430
428431 pub lazy: Option<UnionLazy>,
@@ -545,6 +548,9 @@ pub struct TopLevel {
545548
546549 pub prefix: Option<UnionPrefix>,
547550
551+ #[serde(rename = "PrimitiveKind")]
552+ pub primitive_kind: Option<UnionPrimitiveKind>,
553+
548554 pub print: Option<UnionPrint>,
549555
550556 pub printf: Option<UnionPrintf>,
@@ -624,11 +630,20 @@ pub struct TopLevel {
624630 #[serde(rename = "Sendable")]
625631 pub sendable: Option<UnionSendable>,
626632
633+ #[serde(rename = "SerialDescriptor")]
634+ pub serial_descriptor: Option<UnionSerialDescriptor>,
635+
636+ #[serde(rename = "Serializable")]
637+ pub serializable: Option<UnionSerializable>,
638+
627639 pub serialize: Option<UnionSerialize>,
628640
629641 #[serde(rename = "SerializerProvider")]
630642 pub serializer_provider: Option<UnionSerializerProvider>,
631643
644+ #[serde(rename = "SerialName")]
645+ pub serial_name: Option<UnionSerialName>,
646+
632647 pub set: Option<UnionSet>,
633648
634649 pub short: Option<UnionShort>,
@@ -752,6 +767,9 @@ pub struct TopLevel {
752767
753768 pub unsigned: Option<UnionUnsigned>,
754769
770+ #[serde(rename = "UseSerializers")]
771+ pub use_serializers: Option<UnionUseSerializers>,
772+
755773 pub ushort: Option<UnionUshort>,
756774
757775 pub using: Option<UnionUsing>,
@@ -2576,6 +2594,18 @@ pub enum UnionJsonWriter {
25762594 pub struct JsonWriter {
25772595 }
25782596
2597+#[derive(Debug, Clone, Serialize, Deserialize)]
2598+#[serde(untagged)]
2599+pub enum UnionKSerializer {
2600+ Double(f64),
2601+
2602+ KSerializer(KSerializer),
2603+}
2604+
2605+#[derive(Debug, Clone, Serialize, Deserialize)]
2606+pub struct KSerializer {
2607+}
2608+
25792609 #[derive(Debug, Clone, Serialize, Deserialize)]
25802610 #[serde(untagged)]
25812611 pub enum UnionLambda {
@@ -3176,6 +3206,18 @@ pub enum UnionPrefix {
31763206 pub struct Prefix {
31773207 }
31783208
3209+#[derive(Debug, Clone, Serialize, Deserialize)]
3210+#[serde(untagged)]
3211+pub enum UnionPrimitiveKind {
3212+ Double(f64),
3213+
3214+ PrimitiveKind(PrimitiveKind),
3215+}
3216+
3217+#[derive(Debug, Clone, Serialize, Deserialize)]
3218+pub struct PrimitiveKind {
3219+}
3220+
31793221 #[derive(Debug, Clone, Serialize, Deserialize)]
31803222 #[serde(untagged)]
31813223 pub enum UnionPrint {
@@ -3584,6 +3626,42 @@ pub enum UnionSendable {
35843626 pub struct Sendable {
35853627 }
35863628
3629+#[derive(Debug, Clone, Serialize, Deserialize)]
3630+#[serde(untagged)]
3631+pub enum UnionSerialDescriptor {
3632+ Double(f64),
3633+
3634+ SerialDescriptor(SerialDescriptor),
3635+}
3636+
3637+#[derive(Debug, Clone, Serialize, Deserialize)]
3638+pub struct SerialDescriptor {
3639+}
3640+
3641+#[derive(Debug, Clone, Serialize, Deserialize)]
3642+#[serde(untagged)]
3643+pub enum UnionSerialName {
3644+ Double(f64),
3645+
3646+ SerialName(SerialName),
3647+}
3648+
3649+#[derive(Debug, Clone, Serialize, Deserialize)]
3650+pub struct SerialName {
3651+}
3652+
3653+#[derive(Debug, Clone, Serialize, Deserialize)]
3654+#[serde(untagged)]
3655+pub enum UnionSerializable {
3656+ Double(f64),
3657+
3658+ Serializable(Serializable),
3659+}
3660+
3661+#[derive(Debug, Clone, Serialize, Deserialize)]
3662+pub struct Serializable {
3663+}
3664+
35873665 #[derive(Debug, Clone, Serialize, Deserialize)]
35883666 #[serde(untagged)]
35893667 pub enum UnionSerialize {
@@ -4604,6 +4682,18 @@ pub enum UnionUnsigned {
46044682 pub struct Unsigned {
46054683 }
46064684
4685+#[derive(Debug, Clone, Serialize, Deserialize)]
4686+#[serde(untagged)]
4687+pub enum UnionUseSerializers {
4688+ Double(f64),
4689+
4690+ UseSerializers(UseSerializers),
4691+}
4692+
4693+#[derive(Debug, Clone, Serialize, Deserialize)]
4694+pub struct UseSerializers {
4695+}
4696+
46074697 #[derive(Debug, Clone, Serialize, Deserialize)]
46084698 #[serde(untagged)]
46094699 pub enum UnionUshort {
Mschema-schemadefault / TopLevel.schema+114 −0
@@ -522,6 +522,9 @@
522522 "JsonTokenType": {
523523 "$ref": "#/definitions/UnionJSONTokenType"
524524 },
525+ "KSerializer": {
526+ "$ref": "#/definitions/UnionKSerializer"
527+ },
525528 "lambda": {
526529 "$ref": "#/definitions/UnionLambda"
527530 },
@@ -684,6 +687,9 @@
684687 "prefix": {
685688 "$ref": "#/definitions/UnionPrefix"
686689 },
690+ "PrimitiveKind": {
691+ "$ref": "#/definitions/UnionPrimitiveKind"
692+ },
687693 "print": {
688694 "$ref": "#/definitions/UnionPrint"
689695 },
@@ -786,12 +792,21 @@
786792 "Sendable": {
787793 "$ref": "#/definitions/UnionSendable"
788794 },
795+ "SerialDescriptor": {
796+ "$ref": "#/definitions/UnionSerialDescriptor"
797+ },
798+ "Serializable": {
799+ "$ref": "#/definitions/UnionSerializable"
800+ },
789801 "serialize": {
790802 "$ref": "#/definitions/UnionSerialize"
791803 },
792804 "SerializerProvider": {
793805 "$ref": "#/definitions/UnionSerializerProvider"
794806 },
807+ "SerialName": {
808+ "$ref": "#/definitions/UnionSerialName"
809+ },
795810 "set": {
796811 "$ref": "#/definitions/UnionSet"
797812 },
@@ -948,6 +963,9 @@
948963 "unsigned": {
949964 "$ref": "#/definitions/UnionUnsigned"
950965 },
966+ "UseSerializers": {
967+ "$ref": "#/definitions/UnionUseSerializers"
968+ },
951969 "ushort": {
952970 "$ref": "#/definitions/UnionUshort"
953971 },
@@ -1184,6 +1202,11 @@
11841202 "additionalProperties": false,
11851203 "title": "JSONTokenType"
11861204 },
1205+ "KSerializer": {
1206+ "type": "object",
1207+ "additionalProperties": false,
1208+ "title": "KSerializer"
1209+ },
11871210 "Locale": {
11881211 "type": "object",
11891212 "additionalProperties": false,
@@ -1229,6 +1252,11 @@
12291252 "additionalProperties": false,
12301253 "title": "ObjectMapper"
12311254 },
1255+ "PrimitiveKind": {
1256+ "type": "object",
1257+ "additionalProperties": false,
1258+ "title": "PrimitiveKind"
1259+ },
12321260 "Protocol": {
12331261 "type": "object",
12341262 "additionalProperties": false,
@@ -1254,6 +1282,21 @@
12541282 "additionalProperties": false,
12551283 "title": "Sendable"
12561284 },
1285+ "SerialDescriptor": {
1286+ "type": "object",
1287+ "additionalProperties": false,
1288+ "title": "SerialDescriptor"
1289+ },
1290+ "SerialName": {
1291+ "type": "object",
1292+ "additionalProperties": false,
1293+ "title": "SerialName"
1294+ },
1295+ "Serializable": {
1296+ "type": "object",
1297+ "additionalProperties": false,
1298+ "title": "Serializable"
1299+ },
12571300 "SerializerProvider": {
12581301 "type": "object",
12591302 "additionalProperties": false,
@@ -1309,6 +1352,11 @@
13091352 "additionalProperties": false,
13101353 "title": "UUID"
13111354 },
1355+ "UseSerializers": {
1356+ "type": "object",
1357+ "additionalProperties": false,
1358+ "title": "UseSerializers"
1359+ },
13121360 "Utf8JSONReader": {
13131361 "type": "object",
13141362 "additionalProperties": false,
@@ -3054,6 +3102,17 @@
30543102 ],
30553103 "title": "UnionJSONTokenType"
30563104 },
3105+ "UnionKSerializer": {
3106+ "anyOf": [
3107+ {
3108+ "$ref": "#/definitions/KSerializer"
3109+ },
3110+ {
3111+ "type": "number"
3112+ }
3113+ ],
3114+ "title": "UnionKSerializer"
3115+ },
30573116 "UnionLocale": {
30583117 "anyOf": [
30593118 {
@@ -3153,6 +3212,17 @@
31533212 ],
31543213 "title": "UnionObjectMapper"
31553214 },
3215+ "UnionPrimitiveKind": {
3216+ "anyOf": [
3217+ {
3218+ "$ref": "#/definitions/PrimitiveKind"
3219+ },
3220+ {
3221+ "type": "number"
3222+ }
3223+ ],
3224+ "title": "UnionPrimitiveKind"
3225+ },
31563226 "UnionProtocol": {
31573227 "anyOf": [
31583228 {
@@ -3208,6 +3278,39 @@
32083278 ],
32093279 "title": "UnionSendable"
32103280 },
3281+ "UnionSerialDescriptor": {
3282+ "anyOf": [
3283+ {
3284+ "$ref": "#/definitions/SerialDescriptor"
3285+ },
3286+ {
3287+ "type": "number"
3288+ }
3289+ ],
3290+ "title": "UnionSerialDescriptor"
3291+ },
3292+ "UnionSerialName": {
3293+ "anyOf": [
3294+ {
3295+ "$ref": "#/definitions/SerialName"
3296+ },
3297+ {
3298+ "type": "number"
3299+ }
3300+ ],
3301+ "title": "UnionSerialName"
3302+ },
3303+ "UnionSerializable": {
3304+ "anyOf": [
3305+ {
3306+ "$ref": "#/definitions/Serializable"
3307+ },
3308+ {
3309+ "type": "number"
3310+ }
3311+ ],
3312+ "title": "UnionSerializable"
3313+ },
32113314 "UnionSerializerProvider": {
32123315 "anyOf": [
32133316 {
@@ -3329,6 +3432,17 @@
33293432 ],
33303433 "title": "UnionUUID"
33313434 },
3435+ "UnionUseSerializers": {
3436+ "anyOf": [
3437+ {
3438+ "$ref": "#/definitions/UseSerializers"
3439+ },
3440+ {
3441+ "type": "number"
3442+ }
3443+ ],
3444+ "title": "UnionUseSerializers"
3445+ },
33323446 "UnionUtf8JSONReader": {
33333447 "anyOf": [
33343448 {
Mschema-swiftdefault / quicktype.swift+450 −0
@@ -179,6 +179,7 @@ struct TopLevel: Codable {
179179 let jsonParser: UnionJSONParser?
180180 let jsonReader: UnionJSONReader?
181181 let jsonTokenType: UnionJSONTokenType?
182+ let kSerializer: UnionKSerializer?
182183 let lambda: UnionLambda?
183184 let topLevelLazy: UnionLazy?
184185 let topLevelLeft: UnionLeft?
@@ -233,6 +234,7 @@ struct TopLevel: Codable {
233234 let topLevelPostfix: UnionPostfix?
234235 let topLevelPrecedence: UnionPrecedence?
235236 let topLevelPrefix: UnionPrefix?
237+ let primitiveKind: UnionPrimitiveKind?
236238 let print: UnionPrint?
237239 let printf: UnionPrintf?
238240 let printMembers: UnionPrintMembers?
@@ -267,8 +269,11 @@ struct TopLevel: Codable {
267269 let topLevelSelf: UnionSelf?
268270 let purpleSelf: UnionSelfUnion?
269271 let sendable: UnionSendable?
272+ let serialDescriptor: UnionSerialDescriptor?
273+ let serializable: UnionSerializable?
270274 let serialize: UnionSerialize?
271275 let serializerProvider: UnionSerializerProvider?
276+ let serialName: UnionSerialName?
272277 let topLevelSet: UnionSet?
273278 let short: UnionShort?
274279 let signed: UnionSigned?
@@ -321,6 +326,7 @@ struct TopLevel: Codable {
321326 let topLevelUnowned: UnionUnowned?
322327 let unsafe: UnionUnsafe?
323328 let unsigned: UnionUnsigned?
329+ let useSerializers: UnionUseSerializers?
324330 let ushort: UnionUshort?
325331 let using: UnionUsing?
326332 let utf8JSONReader: UnionUtf8JSONReader?
@@ -514,6 +520,7 @@ struct TopLevel: Codable {
514520 case jsonParser = "JsonParser"
515521 case jsonReader = "JsonReader"
516522 case jsonTokenType = "JsonTokenType"
523+ case kSerializer = "KSerializer"
517524 case lambda = "lambda"
518525 case topLevelLazy = "lazy"
519526 case topLevelLeft = "left"
@@ -568,6 +575,7 @@ struct TopLevel: Codable {
568575 case topLevelPostfix = "postfix"
569576 case topLevelPrecedence = "precedence"
570577 case topLevelPrefix = "prefix"
578+ case primitiveKind = "PrimitiveKind"
571579 case print = "print"
572580 case printf = "printf"
573581 case printMembers = "printMembers"
@@ -602,8 +610,11 @@ struct TopLevel: Codable {
602610 case topLevelSelf = "Self"
603611 case purpleSelf = "self"
604612 case sendable = "Sendable"
613+ case serialDescriptor = "SerialDescriptor"
614+ case serializable = "Serializable"
605615 case serialize = "serialize"
606616 case serializerProvider = "SerializerProvider"
617+ case serialName = "SerialName"
607618 case topLevelSet = "set"
608619 case short = "short"
609620 case signed = "signed"
@@ -656,6 +667,7 @@ struct TopLevel: Codable {
656667 case topLevelUnowned = "unowned"
657668 case unsafe = "unsafe"
658669 case unsigned = "unsigned"
670+ case useSerializers = "UseSerializers"
659671 case ushort = "ushort"
660672 case using = "using"
661673 case utf8JSONReader = "Utf8JsonReader"
@@ -869,6 +881,7 @@ extension TopLevel {
869881 jsonParser: UnionJSONParser?? = nil,
870882 jsonReader: UnionJSONReader?? = nil,
871883 jsonTokenType: UnionJSONTokenType?? = nil,
884+ kSerializer: UnionKSerializer?? = nil,
872885 lambda: UnionLambda?? = nil,
873886 topLevelLazy: UnionLazy?? = nil,
874887 topLevelLeft: UnionLeft?? = nil,
@@ -923,6 +936,7 @@ extension TopLevel {
923936 topLevelPostfix: UnionPostfix?? = nil,
924937 topLevelPrecedence: UnionPrecedence?? = nil,
925938 topLevelPrefix: UnionPrefix?? = nil,
939+ primitiveKind: UnionPrimitiveKind?? = nil,
926940 print: UnionPrint?? = nil,
927941 printf: UnionPrintf?? = nil,
928942 printMembers: UnionPrintMembers?? = nil,
@@ -957,8 +971,11 @@ extension TopLevel {
957971 topLevelSelf: UnionSelf?? = nil,
958972 purpleSelf: UnionSelfUnion?? = nil,
959973 sendable: UnionSendable?? = nil,
974+ serialDescriptor: UnionSerialDescriptor?? = nil,
975+ serializable: UnionSerializable?? = nil,
960976 serialize: UnionSerialize?? = nil,
961977 serializerProvider: UnionSerializerProvider?? = nil,
978+ serialName: UnionSerialName?? = nil,
962979 topLevelSet: UnionSet?? = nil,
963980 short: UnionShort?? = nil,
964981 signed: UnionSigned?? = nil,
@@ -1011,6 +1028,7 @@ extension TopLevel {
10111028 topLevelUnowned: UnionUnowned?? = nil,
10121029 unsafe: UnionUnsafe?? = nil,
10131030 unsigned: UnionUnsigned?? = nil,
1031+ useSerializers: UnionUseSerializers?? = nil,
10141032 ushort: UnionUshort?? = nil,
10151033 using: UnionUsing?? = nil,
10161034 utf8JSONReader: UnionUtf8JSONReader?? = nil,
@@ -1204,6 +1222,7 @@ extension TopLevel {
12041222 jsonParser: jsonParser ?? self.jsonParser,
12051223 jsonReader: jsonReader ?? self.jsonReader,
12061224 jsonTokenType: jsonTokenType ?? self.jsonTokenType,
1225+ kSerializer: kSerializer ?? self.kSerializer,
12071226 lambda: lambda ?? self.lambda,
12081227 topLevelLazy: topLevelLazy ?? self.topLevelLazy,
12091228 topLevelLeft: topLevelLeft ?? self.topLevelLeft,
@@ -1258,6 +1277,7 @@ extension TopLevel {
12581277 topLevelPostfix: topLevelPostfix ?? self.topLevelPostfix,
12591278 topLevelPrecedence: topLevelPrecedence ?? self.topLevelPrecedence,
12601279 topLevelPrefix: topLevelPrefix ?? self.topLevelPrefix,
1280+ primitiveKind: primitiveKind ?? self.primitiveKind,
12611281 print: print ?? self.print,
12621282 printf: printf ?? self.printf,
12631283 printMembers: printMembers ?? self.printMembers,
@@ -1292,8 +1312,11 @@ extension TopLevel {
12921312 topLevelSelf: topLevelSelf ?? self.topLevelSelf,
12931313 purpleSelf: purpleSelf ?? self.purpleSelf,
12941314 sendable: sendable ?? self.sendable,
1315+ serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1316+ serializable: serializable ?? self.serializable,
12951317 serialize: serialize ?? self.serialize,
12961318 serializerProvider: serializerProvider ?? self.serializerProvider,
1319+ serialName: serialName ?? self.serialName,
12971320 topLevelSet: topLevelSet ?? self.topLevelSet,
12981321 short: short ?? self.short,
12991322 signed: signed ?? self.signed,
@@ -1346,6 +1369,7 @@ extension TopLevel {
13461369 topLevelUnowned: topLevelUnowned ?? self.topLevelUnowned,
13471370 unsafe: unsafe ?? self.unsafe,
13481371 unsigned: unsigned ?? self.unsigned,
1372+ useSerializers: useSerializers ?? self.useSerializers,
13491373 ushort: ushort ?? self.ushort,
13501374 using: using ?? self.using,
13511375 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
@@ -10536,6 +10560,77 @@ extension JSONWriter {
1053610560 }
1053710561 }
1053810562
10563+enum UnionKSerializer: Codable {
10564+ case double(Double)
10565+ case kSerializer(KSerializer)
10566+
10567+ init(from decoder: Decoder) throws {
10568+ let container = try decoder.singleValueContainer()
10569+ if let x = try? container.decode(Double.self) {
10570+ self = .double(x)
10571+ return
10572+ }
10573+ if let x = try? container.decode(KSerializer.self) {
10574+ self = .kSerializer(x)
10575+ return
10576+ }
10577+ throw DecodingError.typeMismatch(UnionKSerializer.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionKSerializer"))
10578+ }
10579+
10580+ func encode(to encoder: Encoder) throws {
10581+ var container = encoder.singleValueContainer()
10582+ switch self {
10583+ case .double(let x):
10584+ try container.encode(x)
10585+ case .kSerializer(let x):
10586+ try container.encode(x)
10587+ }
10588+ }
10589+}
10590+
10591+// MARK: - KSerializer
10592+struct KSerializer: Codable {
10593+ private enum K: String, CodingKey { case unused }
10594+ init(from decoder: Decoder) throws {
10595+ _ = try decoder.container(keyedBy: K.self)
10596+ }
10597+ init() {
10598+ }
10599+}
10600+
10601+// MARK: KSerializer convenience initializers and mutators
10602+
10603+extension KSerializer {
10604+ init(data: Data) throws {
10605+ self = try newJSONDecoder().decode(KSerializer.self, from: data)
10606+ }
10607+
10608+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10609+ guard let data = json.data(using: encoding) else {
10610+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10611+ }
10612+ try self.init(data: data)
10613+ }
10614+
10615+ init(fromURL url: URL) throws {
10616+ try self.init(data: try Data(contentsOf: url))
10617+ }
10618+
10619+ func with(
10620+ ) -> KSerializer {
10621+ return KSerializer(
10622+ )
10623+ }
10624+
10625+ func jsonData() throws -> Data {
10626+ return try newJSONEncoder().encode(self)
10627+ }
10628+
10629+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10630+ return String(data: try self.jsonData(), encoding: encoding)
10631+ }
10632+}
10633+
1053910634 enum UnionLambda: Codable {
1054010635 case double(Double)
1054110636 case lambda(Lambda)
@@ -13305,6 +13400,77 @@ extension Port {
1330513400 }
1330613401 }
1330713402
13403+enum UnionPrimitiveKind: Codable {
13404+ case double(Double)
13405+ case primitiveKind(PrimitiveKind)
13406+
13407+ init(from decoder: Decoder) throws {
13408+ let container = try decoder.singleValueContainer()
13409+ if let x = try? container.decode(Double.self) {
13410+ self = .double(x)
13411+ return
13412+ }
13413+ if let x = try? container.decode(PrimitiveKind.self) {
13414+ self = .primitiveKind(x)
13415+ return
13416+ }
13417+ throw DecodingError.typeMismatch(UnionPrimitiveKind.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionPrimitiveKind"))
13418+ }
13419+
13420+ func encode(to encoder: Encoder) throws {
13421+ var container = encoder.singleValueContainer()
13422+ switch self {
13423+ case .double(let x):
13424+ try container.encode(x)
13425+ case .primitiveKind(let x):
13426+ try container.encode(x)
13427+ }
13428+ }
13429+}
13430+
13431+// MARK: - PrimitiveKind
13432+struct PrimitiveKind: Codable {
13433+ private enum K: String, CodingKey { case unused }
13434+ init(from decoder: Decoder) throws {
13435+ _ = try decoder.container(keyedBy: K.self)
13436+ }
13437+ init() {
13438+ }
13439+}
13440+
13441+// MARK: PrimitiveKind convenience initializers and mutators
13442+
13443+extension PrimitiveKind {
13444+ init(data: Data) throws {
13445+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13446+ }
13447+
13448+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13449+ guard let data = json.data(using: encoding) else {
13450+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13451+ }
13452+ try self.init(data: data)
13453+ }
13454+
13455+ init(fromURL url: URL) throws {
13456+ try self.init(data: try Data(contentsOf: url))
13457+ }
13458+
13459+ func with(
13460+ ) -> PrimitiveKind {
13461+ return PrimitiveKind(
13462+ )
13463+ }
13464+
13465+ func jsonData() throws -> Data {
13466+ return try newJSONEncoder().encode(self)
13467+ }
13468+
13469+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13470+ return String(data: try self.jsonData(), encoding: encoding)
13471+ }
13472+}
13473+
1330813474 enum UnionPrint: Codable {
1330913475 case double(Double)
1331013476 case print(Print)
@@ -15364,6 +15530,219 @@ extension Sendable {
1536415530 }
1536515531 }
1536615532
15533+enum UnionSerialDescriptor: Codable {
15534+ case double(Double)
15535+ case serialDescriptor(SerialDescriptor)
15536+
15537+ init(from decoder: Decoder) throws {
15538+ let container = try decoder.singleValueContainer()
15539+ if let x = try? container.decode(Double.self) {
15540+ self = .double(x)
15541+ return
15542+ }
15543+ if let x = try? container.decode(SerialDescriptor.self) {
15544+ self = .serialDescriptor(x)
15545+ return
15546+ }
15547+ throw DecodingError.typeMismatch(UnionSerialDescriptor.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionSerialDescriptor"))
15548+ }
15549+
15550+ func encode(to encoder: Encoder) throws {
15551+ var container = encoder.singleValueContainer()
15552+ switch self {
15553+ case .double(let x):
15554+ try container.encode(x)
15555+ case .serialDescriptor(let x):
15556+ try container.encode(x)
15557+ }
15558+ }
15559+}
15560+
15561+// MARK: - SerialDescriptor
15562+struct SerialDescriptor: Codable {
15563+ private enum K: String, CodingKey { case unused }
15564+ init(from decoder: Decoder) throws {
15565+ _ = try decoder.container(keyedBy: K.self)
15566+ }
15567+ init() {
15568+ }
15569+}
15570+
15571+// MARK: SerialDescriptor convenience initializers and mutators
15572+
15573+extension SerialDescriptor {
15574+ init(data: Data) throws {
15575+ self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15576+ }
15577+
15578+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15579+ guard let data = json.data(using: encoding) else {
15580+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15581+ }
15582+ try self.init(data: data)
15583+ }
15584+
15585+ init(fromURL url: URL) throws {
15586+ try self.init(data: try Data(contentsOf: url))
15587+ }
15588+
15589+ func with(
15590+ ) -> SerialDescriptor {
15591+ return SerialDescriptor(
15592+ )
15593+ }
15594+
15595+ func jsonData() throws -> Data {
15596+ return try newJSONEncoder().encode(self)
15597+ }
15598+
15599+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15600+ return String(data: try self.jsonData(), encoding: encoding)
15601+ }
15602+}
15603+
15604+enum UnionSerialName: Codable {
15605+ case double(Double)
15606+ case serialName(SerialName)
15607+
15608+ init(from decoder: Decoder) throws {
15609+ let container = try decoder.singleValueContainer()
15610+ if let x = try? container.decode(Double.self) {
15611+ self = .double(x)
15612+ return
15613+ }
15614+ if let x = try? container.decode(SerialName.self) {
15615+ self = .serialName(x)
15616+ return
15617+ }
15618+ throw DecodingError.typeMismatch(UnionSerialName.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionSerialName"))
15619+ }
15620+
15621+ func encode(to encoder: Encoder) throws {
15622+ var container = encoder.singleValueContainer()
15623+ switch self {
15624+ case .double(let x):
15625+ try container.encode(x)
15626+ case .serialName(let x):
15627+ try container.encode(x)
15628+ }
15629+ }
15630+}
15631+
15632+// MARK: - SerialName
15633+struct SerialName: Codable {
15634+ private enum K: String, CodingKey { case unused }
15635+ init(from decoder: Decoder) throws {
15636+ _ = try decoder.container(keyedBy: K.self)
15637+ }
15638+ init() {
15639+ }
15640+}
15641+
15642+// MARK: SerialName convenience initializers and mutators
15643+
15644+extension SerialName {
15645+ init(data: Data) throws {
15646+ self = try newJSONDecoder().decode(SerialName.self, from: data)
15647+ }
15648+
15649+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15650+ guard let data = json.data(using: encoding) else {
15651+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15652+ }
15653+ try self.init(data: data)
15654+ }
15655+
15656+ init(fromURL url: URL) throws {
15657+ try self.init(data: try Data(contentsOf: url))
15658+ }
15659+
15660+ func with(
15661+ ) -> SerialName {
15662+ return SerialName(
15663+ )
15664+ }
15665+
15666+ func jsonData() throws -> Data {
15667+ return try newJSONEncoder().encode(self)
15668+ }
15669+
15670+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15671+ return String(data: try self.jsonData(), encoding: encoding)
15672+ }
15673+}
15674+
15675+enum UnionSerializable: Codable {
15676+ case double(Double)
15677+ case serializable(Serializable)
15678+
15679+ init(from decoder: Decoder) throws {
15680+ let container = try decoder.singleValueContainer()
15681+ if let x = try? container.decode(Double.self) {
15682+ self = .double(x)
15683+ return
15684+ }
15685+ if let x = try? container.decode(Serializable.self) {
15686+ self = .serializable(x)
15687+ return
15688+ }
15689+ throw DecodingError.typeMismatch(UnionSerializable.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionSerializable"))
15690+ }
15691+
15692+ func encode(to encoder: Encoder) throws {
15693+ var container = encoder.singleValueContainer()
15694+ switch self {
15695+ case .double(let x):
15696+ try container.encode(x)
15697+ case .serializable(let x):
15698+ try container.encode(x)
15699+ }
15700+ }
15701+}
15702+
15703+// MARK: - Serializable
15704+struct Serializable: Codable {
15705+ private enum K: String, CodingKey { case unused }
15706+ init(from decoder: Decoder) throws {
15707+ _ = try decoder.container(keyedBy: K.self)
15708+ }
15709+ init() {
15710+ }
15711+}
15712+
15713+// MARK: Serializable convenience initializers and mutators
15714+
15715+extension Serializable {
15716+ init(data: Data) throws {
15717+ self = try newJSONDecoder().decode(Serializable.self, from: data)
15718+ }
15719+
15720+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15721+ guard let data = json.data(using: encoding) else {
15722+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15723+ }
15724+ try self.init(data: data)
15725+ }
15726+
15727+ init(fromURL url: URL) throws {
15728+ try self.init(data: try Data(contentsOf: url))
15729+ }
15730+
15731+ func with(
15732+ ) -> Serializable {
15733+ return Serializable(
15734+ )
15735+ }
15736+
15737+ func jsonData() throws -> Data {
15738+ return try newJSONEncoder().encode(self)
15739+ }
15740+
15741+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15742+ return String(data: try self.jsonData(), encoding: encoding)
15743+ }
15744+}
15745+
1536715746 enum UnionSerialize: Codable {
1536815747 case double(Double)
1536915748 case serialize(Serialize)
@@ -23955,6 +24334,77 @@ extension Unsigned {
2395524334 }
2395624335 }
2395724336
24337+enum UnionUseSerializers: Codable {
24338+ case double(Double)
24339+ case useSerializers(UseSerializers)
24340+
24341+ init(from decoder: Decoder) throws {
24342+ let container = try decoder.singleValueContainer()
24343+ if let x = try? container.decode(Double.self) {
24344+ self = .double(x)
24345+ return
24346+ }
24347+ if let x = try? container.decode(UseSerializers.self) {
24348+ self = .useSerializers(x)
24349+ return
24350+ }
24351+ throw DecodingError.typeMismatch(UnionUseSerializers.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionUseSerializers"))
24352+ }
24353+
24354+ func encode(to encoder: Encoder) throws {
24355+ var container = encoder.singleValueContainer()
24356+ switch self {
24357+ case .double(let x):
24358+ try container.encode(x)
24359+ case .useSerializers(let x):
24360+ try container.encode(x)
24361+ }
24362+ }
24363+}
24364+
24365+// MARK: - UseSerializers
24366+struct UseSerializers: Codable {
24367+ private enum K: String, CodingKey { case unused }
24368+ init(from decoder: Decoder) throws {
24369+ _ = try decoder.container(keyedBy: K.self)
24370+ }
24371+ init() {
24372+ }
24373+}
24374+
24375+// MARK: UseSerializers convenience initializers and mutators
24376+
24377+extension UseSerializers {
24378+ init(data: Data) throws {
24379+ self = try newJSONDecoder().decode(UseSerializers.self, from: data)
24380+ }
24381+
24382+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
24383+ guard let data = json.data(using: encoding) else {
24384+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
24385+ }
24386+ try self.init(data: data)
24387+ }
24388+
24389+ init(fromURL url: URL) throws {
24390+ try self.init(data: try Data(contentsOf: url))
24391+ }
24392+
24393+ func with(
24394+ ) -> UseSerializers {
24395+ return UseSerializers(
24396+ )
24397+ }
24398+
24399+ func jsonData() throws -> Data {
24400+ return try newJSONEncoder().encode(self)
24401+ }
24402+
24403+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
24404+ return String(data: try self.jsonData(), encoding: encoding)
24405+ }
24406+}
24407+
2395824408 enum UnionUshort: Codable {
2395924409 case double(Double)
2396024410 case ushort(Ushort)
Mschema-typescript-effect-schemadefault / TopLevel.ts+24 −0
@@ -58,6 +58,9 @@ export class Using extends S.Class<Using>("Using")(S.Struct({}).pipe(S.filter(va
5858 export class Ushort extends S.Class<Ushort>("Ushort")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
5959 ) {}
6060
61+export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
62+) {}
63+
6164 export class Unsigned extends S.Class<Unsigned>("Unsigned")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
6265 ) {}
6366
@@ -244,6 +247,15 @@ export class SerializerProvider extends S.Class<SerializerProvider>("SerializerP
244247 export class Serialize extends S.Class<Serialize>("Serialize")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
245248 ) {}
246249
250+export class Serializable extends S.Class<Serializable>("Serializable")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
251+) {}
252+
253+export class SerialName extends S.Class<SerialName>("SerialName")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
254+) {}
255+
256+export class SerialDescriptor extends S.Class<SerialDescriptor>("SerialDescriptor")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
257+) {}
258+
247259 export class Sendable extends S.Class<Sendable>("Sendable")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
248260 ) {}
249261
@@ -343,6 +355,9 @@ export class PrintMembers extends S.Class<PrintMembers>("PrintMembers")(S.Struct
343355 export class Print extends S.Class<Print>("Print")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
344356 ) {}
345357
358+export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
359+) {}
360+
346361 export class Prefix extends S.Class<Prefix>("Prefix")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
347362 ) {}
348363
@@ -499,6 +514,9 @@ export class Lazy extends S.Class<Lazy>("Lazy")(S.Struct({}).pipe(S.filter(value
499514 export class Lambda extends S.Class<Lambda>("Lambda")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
500515 ) {}
501516
517+export class KSerializer extends S.Class<KSerializer>("KSerializer")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
518+) {}
519+
502520 export class JsonWriter extends S.Class<JsonWriter>("JsonWriter")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
503521 ) {}
504522
@@ -1170,6 +1188,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
11701188 "JsonParser": S.optional(S.Union(S.Number, JsonParser)),
11711189 "JsonReader": S.optional(S.Union(S.Number, JsonReader)),
11721190 "JsonTokenType": S.optional(S.Union(S.Number, JsonTokenType)),
1191+ "KSerializer": S.optional(S.Union(S.Number, KSerializer)),
11731192 "lambda": S.optional(S.Union(S.Number, Lambda)),
11741193 "lazy": S.optional(S.Union(S.Number, Lazy)),
11751194 "left": S.optional(S.Union(S.Number, Left)),
@@ -1224,6 +1243,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12241243 "postfix": S.optional(S.Union(S.Number, Postfix)),
12251244 "precedence": S.optional(S.Union(S.Number, Precedence)),
12261245 "prefix": S.optional(S.Union(S.Number, Prefix)),
1246+ "PrimitiveKind": S.optional(S.Union(S.Number, PrimitiveKind)),
12271247 "print": S.optional(S.Union(S.Number, Print)),
12281248 "printf": S.optional(S.Union(S.Number, Printf)),
12291249 "printMembers": S.optional(S.Union(S.Number, PrintMembers)),
@@ -1258,8 +1278,11 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12581278 "Self": S.optional(S.Union(S.Number, Self)),
12591279 "self": S.optional(S.Union(S.Number, SelfClass)),
12601280 "Sendable": S.optional(S.Union(S.Number, Sendable)),
1281+ "SerialDescriptor": S.optional(S.Union(S.Number, SerialDescriptor)),
1282+ "Serializable": S.optional(S.Union(S.Number, Serializable)),
12611283 "serialize": S.optional(S.Union(S.Number, Serialize)),
12621284 "SerializerProvider": S.optional(S.Union(S.Number, SerializerProvider)),
1285+ "SerialName": S.optional(S.Union(S.Number, SerialName)),
12631286 "set": S.optional(S.Union(S.Number, Set)),
12641287 "short": S.optional(S.Union(S.Number, Short)),
12651288 "signed": S.optional(S.Union(S.Number, Signed)),
@@ -1312,6 +1335,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
13121335 "unowned": S.optional(S.Union(S.Number, Unowned)),
13131336 "unsafe": S.optional(S.Union(S.Number, Unsafe)),
13141337 "unsigned": S.optional(S.Union(S.Number, Unsigned)),
1338+ "UseSerializers": S.optional(S.Union(S.Number, UseSerializers)),
13151339 "ushort": S.optional(S.Union(S.Number, Ushort)),
13161340 "using": S.optional(S.Union(S.Number, Using)),
13171341 "Utf8JsonReader": S.optional(S.Union(S.Number, Utf8JsonReader)),
Mschema-typescript-zoddefault / TopLevel.ts+30 −0
@@ -665,6 +665,10 @@ export const JsonWriterSchema = z.object({
665665 });
666666 export type JsonWriter = z.infer<typeof JsonWriterSchema>;
667667
668+export const KSerializerSchema = z.object({
669+});
670+export type KSerializer = z.infer<typeof KSerializerSchema>;
671+
668672 export const LambdaSchema = z.object({
669673 });
670674 export type Lambda = z.infer<typeof LambdaSchema>;
@@ -873,6 +877,10 @@ export const PrefixSchema = z.object({
873877 });
874878 export type Prefix = z.infer<typeof PrefixSchema>;
875879
880+export const PrimitiveKindSchema = z.object({
881+});
882+export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
883+
876884 export const PrintSchema = z.object({
877885 });
878886 export type Print = z.infer<typeof PrintSchema>;
@@ -1005,6 +1013,18 @@ export const SendableSchema = z.object({
10051013 });
10061014 export type Sendable = z.infer<typeof SendableSchema>;
10071015
1016+export const SerialDescriptorSchema = z.object({
1017+});
1018+export type SerialDescriptor = z.infer<typeof SerialDescriptorSchema>;
1019+
1020+export const SerialNameSchema = z.object({
1021+});
1022+export type SerialName = z.infer<typeof SerialNameSchema>;
1023+
1024+export const SerializableSchema = z.object({
1025+});
1026+export type Serializable = z.infer<typeof SerializableSchema>;
1027+
10081028 export const SerializeSchema = z.object({
10091029 });
10101030 export type Serialize = z.infer<typeof SerializeSchema>;
@@ -1253,6 +1273,10 @@ export const UnsignedSchema = z.object({
12531273 });
12541274 export type Unsigned = z.infer<typeof UnsignedSchema>;
12551275
1276+export const UseSerializersSchema = z.object({
1277+});
1278+export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1279+
12561280 export const UshortSchema = z.object({
12571281 });
12581282 export type Ushort = z.infer<typeof UshortSchema>;
@@ -1502,6 +1526,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15021526 "JsonParser": z.union([JsonParserSchema, z.number()]).optional(),
15031527 "JsonReader": z.union([JsonReaderSchema, z.number()]).optional(),
15041528 "JsonTokenType": z.union([JsonTokenTypeSchema, z.number()]).optional(),
1529+ "KSerializer": z.union([KSerializerSchema, z.number()]).optional(),
15051530 "lambda": z.union([LambdaSchema, z.number()]).optional(),
15061531 "lazy": z.union([LazySchema, z.number()]).optional(),
15071532 "left": z.union([LeftSchema, z.number()]).optional(),
@@ -1556,6 +1581,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15561581 "postfix": z.union([PostfixSchema, z.number()]).optional(),
15571582 "precedence": z.union([PrecedenceSchema, z.number()]).optional(),
15581583 "prefix": z.union([PrefixSchema, z.number()]).optional(),
1584+ "PrimitiveKind": z.union([PrimitiveKindSchema, z.number()]).optional(),
15591585 "print": z.union([PrintSchema, z.number()]).optional(),
15601586 "printf": z.union([PrintfSchema, z.number()]).optional(),
15611587 "printMembers": z.union([PrintMembersSchema, z.number()]).optional(),
@@ -1590,8 +1616,11 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15901616 "Self": z.union([SelfSchema, z.number()]).optional(),
15911617 "self": z.union([SelfClassSchema, z.number()]).optional(),
15921618 "Sendable": z.union([SendableSchema, z.number()]).optional(),
1619+ "SerialDescriptor": z.union([SerialDescriptorSchema, z.number()]).optional(),
1620+ "Serializable": z.union([SerializableSchema, z.number()]).optional(),
15931621 "serialize": z.union([SerializeSchema, z.number()]).optional(),
15941622 "SerializerProvider": z.union([SerializerProviderSchema, z.number()]).optional(),
1623+ "SerialName": z.union([SerialNameSchema, z.number()]).optional(),
15951624 "set": z.union([SetSchema, z.number()]).optional(),
15961625 "short": z.union([ShortSchema, z.number()]).optional(),
15971626 "signed": z.union([SignedSchema, z.number()]).optional(),
@@ -1644,6 +1673,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
16441673 "unowned": z.union([UnownedSchema, z.number()]).optional(),
16451674 "unsafe": z.union([UnsafeSchema, z.number()]).optional(),
16461675 "unsigned": z.union([UnsignedSchema, z.number()]).optional(),
1676+ "UseSerializers": z.union([UseSerializersSchema, z.number()]).optional(),
16471677 "ushort": z.union([UshortSchema, z.number()]).optional(),
16481678 "using": z.union([UsingSchema, z.number()]).optional(),
16491679 "Utf8JsonReader": z.union([Utf8JsonReaderSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+24 −0
@@ -180,6 +180,7 @@ export interface TopLevel {
180180 JsonParser?: UnionJSONParser;
181181 JsonReader?: UnionJSONReader;
182182 JsonTokenType?: UnionJSONTokenType;
183+ KSerializer?: UnionKSerializer;
183184 lambda?: UnionLambda;
184185 lazy?: UnionLazy;
185186 left?: UnionLeft;
@@ -234,6 +235,7 @@ export interface TopLevel {
234235 postfix?: UnionPostfix;
235236 precedence?: UnionPrecedence;
236237 prefix?: UnionPrefix;
238+ PrimitiveKind?: UnionPrimitiveKind;
237239 print?: UnionPrint;
238240 printf?: UnionPrintf;
239241 printMembers?: UnionPrintMembers;
@@ -268,8 +270,11 @@ export interface TopLevel {
268270 Self?: UnionSelf;
269271 self?: UnionSelfUnion;
270272 Sendable?: UnionSendable;
273+ SerialDescriptor?: UnionSerialDescriptor;
274+ Serializable?: UnionSerializable;
271275 serialize?: UnionSerialize;
272276 SerializerProvider?: UnionSerializerProvider;
277+ SerialName?: UnionSerialName;
273278 set?: UnionSet;
274279 short?: UnionShort;
275280 signed?: UnionSigned;
@@ -322,6 +327,7 @@ export interface TopLevel {
322327 unowned?: UnionUnowned;
323328 unsafe?: UnionUnsafe;
324329 unsigned?: UnionUnsigned;
330+ UseSerializers?: UnionUseSerializers;
325331 ushort?: UnionUshort;
326332 using?: UnionUsing;
327333 Utf8JsonReader?: UnionUtf8JSONReader;
@@ -414,6 +420,8 @@ export type UnionJSONReader = object | number;
414420
415421 export type UnionJSONTokenType = object | number;
416422
423+export type UnionKSerializer = object | number;
424+
417425 export type UnionLocale = object | number;
418426
419427 export type UnionMapEntry = object | number;
@@ -432,6 +440,8 @@ export type UnionNone = object | number;
432440
433441 export type UnionObjectMapper = object | number;
434442
443+export type UnionPrimitiveKind = object | number;
444+
435445 export type UnionProtocol = object | number;
436446
437447 export type UnionRegExp = object | number;
@@ -442,6 +452,12 @@ export type UnionSelf = object | number;
442452
443453 export type UnionSendable = object | number;
444454
455+export type UnionSerialDescriptor = object | number;
456+
457+export type UnionSerialName = object | number;
458+
459+export type UnionSerializable = object | number;
460+
445461 export type UnionSerializerProvider = object | number;
446462
447463 export type UnionSimpleModule = object | number;
@@ -464,6 +480,8 @@ export type UnionType = object | number;
464480
465481 export type UnionUUID = object | number;
466482
483+export type UnionUseSerializers = object | number;
484+
467485 export type UnionUtf8JSONReader = object | number;
468486
469487 export type UnionUtf8JSONWriter = object | number;
@@ -1368,6 +1386,7 @@ const typeMap: any = {
13681386 { json: "JsonParser", js: "JsonParser", typ: u(undefined, u(m("any"), 3.14)) },
13691387 { json: "JsonReader", js: "JsonReader", typ: u(undefined, u(m("any"), 3.14)) },
13701388 { json: "JsonTokenType", js: "JsonTokenType", typ: u(undefined, u(m("any"), 3.14)) },
1389+ { json: "KSerializer", js: "KSerializer", typ: u(undefined, u(m("any"), 3.14)) },
13711390 { json: "lambda", js: "lambda", typ: u(undefined, u(m("any"), 3.14)) },
13721391 { json: "lazy", js: "lazy", typ: u(undefined, u(m("any"), 3.14)) },
13731392 { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1422,6 +1441,7 @@ const typeMap: any = {
14221441 { json: "postfix", js: "postfix", typ: u(undefined, u(m("any"), 3.14)) },
14231442 { json: "precedence", js: "precedence", typ: u(undefined, u(m("any"), 3.14)) },
14241443 { json: "prefix", js: "prefix", typ: u(undefined, u(m("any"), 3.14)) },
1444+ { json: "PrimitiveKind", js: "PrimitiveKind", typ: u(undefined, u(m("any"), 3.14)) },
14251445 { json: "print", js: "print", typ: u(undefined, u(m("any"), 3.14)) },
14261446 { json: "printf", js: "printf", typ: u(undefined, u(m("any"), 3.14)) },
14271447 { json: "printMembers", js: "printMembers", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1456,8 +1476,11 @@ const typeMap: any = {
14561476 { json: "Self", js: "Self", typ: u(undefined, u(m("any"), 3.14)) },
14571477 { json: "self", js: "self", typ: u(undefined, u(m("any"), 3.14)) },
14581478 { json: "Sendable", js: "Sendable", typ: u(undefined, u(m("any"), 3.14)) },
1479+ { json: "SerialDescriptor", js: "SerialDescriptor", typ: u(undefined, u(m("any"), 3.14)) },
1480+ { json: "Serializable", js: "Serializable", typ: u(undefined, u(m("any"), 3.14)) },
14591481 { json: "serialize", js: "serialize", typ: u(undefined, u(m("any"), 3.14)) },
14601482 { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(m("any"), 3.14)) },
1483+ { json: "SerialName", js: "SerialName", typ: u(undefined, u(m("any"), 3.14)) },
14611484 { json: "set", js: "set", typ: u(undefined, u(m("any"), 3.14)) },
14621485 { json: "short", js: "short", typ: u(undefined, u(m("any"), 3.14)) },
14631486 { json: "signed", js: "signed", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1510,6 +1533,7 @@ const typeMap: any = {
15101533 { json: "unowned", js: "unowned", typ: u(undefined, u(m("any"), 3.14)) },
15111534 { json: "unsafe", js: "unsafe", typ: u(undefined, u(m("any"), 3.14)) },
15121535 { json: "unsigned", js: "unsigned", typ: u(undefined, u(m("any"), 3.14)) },
1536+ { json: "UseSerializers", js: "UseSerializers", typ: u(undefined, u(m("any"), 3.14)) },
15131537 { json: "ushort", js: "ushort", typ: u(undefined, u(m("any"), 3.14)) },
15141538 { json: "using", js: "using", typ: u(undefined, u(m("any"), 3.14)) },
15151539 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.